.iv-page,.iv-form,.iv-detail,#iv-choices {
  --iv-ink:var(--text,#202735); --iv-muted:var(--muted,#667085); --iv-line:var(--border,#e1e4e8); --iv-primary:var(--brand-primary,var(--primary,#edb642));
  color:var(--iv-ink);
}
.iv-page {max-width:1480px;margin-inline:auto;}
.iv-heading,.iv-tools,.iv-sectionbar,.iv-button,.iv-stat,.iv-search,.iv-chip,.iv-choice,.iv-add,.iv-total,.iv-iconbtn,.iv-tabs {display:flex;align-items:center;}
.iv-heading,.iv-tools,.iv-sectionbar,.iv-total {justify-content:space-between;gap:15px;}
.iv-heading {margin:0 0 26px;align-items:flex-end;}
.iv-heading h1 {margin:0;font-size:clamp(27px,3vw,38px);line-height:1.15;letter-spacing:-.045em;}
.iv-heading p {margin:8px 0 0;font-size:14px;color:var(--iv-muted);line-height:1.6;}
.iv-button,.iv-iconbtn,.iv-choice,.iv-add,.iv-tabs button {font:inherit;cursor:pointer;}
.iv-button {border:1px solid var(--iv-line);border-radius:8px;min-height:40px;padding:0 14px;gap:8px;white-space:nowrap;justify-content:center;background:white;color:var(--iv-ink);font-size:13px;font-weight:650;}
.iv-button.iv-primary {background:var(--iv-primary);color:var(--brand-on-primary,#26332e);border-color:transparent;}
.iv-button:hover,.iv-iconbtn:hover,.iv-choice:hover,.iv-add:hover {filter:brightness(.96);}
.iv-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px;}
.iv-stat,.iv-panel {border:1px solid var(--iv-line);border-radius:13px;background:white;box-shadow:0 2px 5px #17243b04;}
.iv-stat {gap:13px;padding:21px 18px;}
.iv-symbol {display:grid;place-items:center;background:#f0f3f2;color:#54705f;border-radius:10px;width:40px;height:40px;flex-shrink:0;}
.iv-stat:nth-child(2) .iv-symbol {background:#fff2e3;color:#ab7526;}
.iv-stat:nth-child(3) .iv-symbol {background:#edf2fa;color:#507398;}
.iv-caption {display:block;font-size:12px;color:var(--iv-muted);font-weight:550;}
.iv-stat strong {display:block;font-size:22px;margin-top:4px;letter-spacing:-.035em;}
.iv-panel {overflow:hidden;}
.iv-sectionbar {padding:0 20px;min-height:53px;border-bottom:1px solid var(--iv-line);}
.iv-sectionbar h2 {font-size:17px;letter-spacing:-.025em;margin:0;}
.iv-tabs {gap:20px;align-self:stretch;}
.iv-tabs button {border:0;border-bottom:2px solid transparent;background:none;color:var(--iv-muted);font-size:14px;font-weight:600;}
.iv-tabs button[aria-pressed=true] {color:#674a15;border-color:var(--iv-primary);}
.iv-tools {padding:15px 20px;}
.iv-tools select,.iv-search {background:white;border:1px solid var(--iv-line);border-radius:8px;min-height:38px;color:var(--iv-ink);font:inherit;font-size:13px;}
.iv-tools select {max-width:260px;padding:0 9px;}
.iv-search {gap:8px;padding:0 10px;color:var(--iv-muted);}
.iv-search input {color:var(--iv-ink);border:0;outline:none;background:transparent;min-width:0;width:185px;font:inherit;}
.iv-scroll {overflow-x:auto;}
.iv-table {border-collapse:collapse;width:100%;font-size:13px;color:var(--iv-ink);}
.iv-table th,.iv-table td {text-align:left;padding:13px 17px;white-space:nowrap;}
.iv-table th {background:#f8f9fa;color:var(--iv-muted);font-size:10px;letter-spacing:.045em;text-transform:uppercase;font-weight:700;border-block:1px solid var(--iv-line);}
.iv-table tr+tr {border-top:1px solid var(--iv-line);}
.iv-table td strong {font-size:13px;font-weight:600;}
.iv-table td small {display:block;color:var(--iv-muted);font-size:11px;margin-top:3px;}
.iv-num {font-weight:600;font-variant-numeric:tabular-nums;}
.iv-chip {display:inline-flex;gap:6px;color:#53615f;font-size:12px;}
.iv-chip svg {color:#7d8986;}
.iv-iconbtn {justify-content:center;border-radius:7px;min-width:32px;height:32px;background:white;border:1px solid var(--iv-line);color:var(--iv-muted);}
.iv-iconbtn:disabled {opacity:.35;cursor:default;}
.iv-table td.iv-empty {color:var(--iv-muted);text-align:center;white-space:normal;padding:35px 15px;}
.iv-form {font-size:13px;}
.iv-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.iv-field {display:grid;align-content:start;gap:6px;min-width:0;color:var(--iv-ink);font-size:13px;font-weight:600;}
.iv-field input,.iv-field select {padding:9px 10px;box-sizing:border-box;width:100%;min-width:0;min-height:40px;background:white;border:1px solid var(--iv-line);border-radius:7px;font:inherit;font-size:14px;font-weight:400;color:var(--iv-ink);}
.iv-field input[type=file] {font-size:12px;}
.iv-full {grid-column:1/-1;}
.iv-stocknote {margin:0;padding:9px 12px;background:#f1f5f2;border-radius:6px;color:#51665c;font-weight:550;}
.iv-stocknote:empty {display:none;}
#iv-choices {display:grid;gap:8px;}
.iv-choice {width:100%;padding:13px 15px;gap:12px;color:var(--iv-ink);border:1px solid var(--iv-line);border-radius:8px;background:white;text-align:left;font-size:14px;}
.iv-choice svg:last-child {margin-left:auto;color:var(--iv-muted);}
.iv-page-actions,.iv-unknown-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.iv-reader {border:1px solid var(--iv-line);border-radius:10px;padding:14px;margin:0 0 17px;background:#fafbf9;}
.iv-reader #iv-scan {min-height:44px;}
.iv-scan {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:12px;}
.iv-scanfield {display:flex;align-items:center;gap:6px;}
.iv-scanfield input {flex:1;box-sizing:border-box;width:100%;font:inherit;color:var(--iv-ink);background:white;border:1px solid var(--iv-line);border-radius:7px;padding:9px 10px;min-height:40px;min-width:0;}
.iv-scanfield .iv-iconbtn {height:40px;min-width:40px;}
.iv-feedback {margin:8px 0 0;line-height:1.45;color:#4d6054;overflow-wrap:anywhere;}
.iv-feedback:empty {display:none;}
#iv-video-wrap {margin:12px 0 0;}
#iv-video-wrap p {font-size:12px;line-height:1.45;color:var(--iv-muted);margin:7px 0 0;}
.iv-viewfinder {position:relative;overflow:hidden;border-radius:8px;background:#18231e;}
#iv-camera {display:block;width:100%;height:clamp(145px,25dvh,230px);object-fit:contain;}
.iv-target {--guide:var(--brand-primary,#f8cd68);position:absolute;inset:25% 14%;border-radius:3px;pointer-events:none;background:
linear-gradient(var(--guide),var(--guide)) left top / 18px 2px,
linear-gradient(var(--guide),var(--guide)) left top / 2px 16px,
linear-gradient(var(--guide),var(--guide)) right top / 18px 2px,
linear-gradient(var(--guide),var(--guide)) right top / 2px 16px,
linear-gradient(var(--guide),var(--guide)) left bottom / 18px 2px,
linear-gradient(var(--guide),var(--guide)) left bottom / 2px 16px,
linear-gradient(var(--guide),var(--guide)) right bottom / 18px 2px,
linear-gradient(var(--guide),var(--guide)) right bottom / 2px 16px;
background-repeat:no-repeat;}
.iv-unknown {margin-top:12px;border-top:1px solid var(--iv-line);padding-top:12px;}
.iv-unknown>p {font-size:13px;margin:3px 0 10px;overflow-wrap:anywhere;}
.iv-unknown .iv-fields {margin-top:8px;}
.iv-unknown-actions {margin-top:10px;}
.iv-line {margin:9px 0 0;padding:12px;border:1px solid var(--iv-line);background:#fafbfb;border-radius:9px;}
.iv-line-top {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;}
.iv-line-top .iv-iconbtn {height:40px;width:36px;}
.iv-line-bottom {display:grid;grid-template-columns:1.25fr .7fr 1fr;gap:10px;margin-top:9px;}
.iv-ref {display:block;color:var(--iv-muted);font-size:11px;margin-top:6px;}
.iv-ref:empty {display:none;}
.iv-add {display:inline-flex;gap:6px;font-weight:600;font-size:13px;color:#74541c;border:0;background:transparent;padding:11px 2px 4px;}
.iv-total {border-block:1px solid var(--iv-line);margin:13px 0 15px;padding:12px 0;font-weight:600;font-size:14px;}
.iv-total strong {font-size:18px;letter-spacing:-.035em;}
.iv-warning {padding:12px 14px;margin:0 0 13px;border-radius:7px;background:#fff4e2;color:#80501e;font-size:13px;line-height:1.5;}
.iv-detail dl {display:grid;grid-template-columns:auto 1fr;gap:7px 18px;font-size:14px;}
.iv-detail dt {color:var(--iv-muted);}
.iv-detail dd {margin:0;}
.iv-detail .iv-receipt {max-width:100%;max-height:400px;object-fit:contain;}
@media(max-width:720px){
  .iv-stats {gap:8px;}
  .iv-stat {padding:12px;align-items:start;}
  .iv-symbol {display:none;}
  .iv-stat strong {font-size:18px;}
  .iv-heading {align-items:start;flex-direction:column;margin-bottom:17px;}
}
@media(max-width:500px){
  .iv-tools {align-items:stretch;flex-direction:column;padding:12px;}
  .iv-tools select {max-width:none;}
  .iv-search input {flex:1;}
  .iv-caption {font-size:11px;}
  .iv-stat {padding:10px 8px;}
  .iv-stat strong {font-size:16px;}
  .iv-table td,.iv-table th {padding:11px 12px;}
  .iv-fields {grid-template-columns:minmax(0,1fr);}
  .iv-reader {padding:11px;}
  #iv-scan {width:100%;}
  .iv-page-actions {width:100%;}
  .iv-page-actions button {flex:auto;}
  .iv-page-actions #iv-start-scan {order:-1;}
  .iv-form input:not([type=file]),.iv-form select {font-size:16px;}
  .iv-line-bottom {grid-template-columns:1fr 1fr;}
  .iv-line-bottom .iv-field:first-child {grid-column:1/-1;}
}
.iv-project-purchase {display:flex;align-items:center;gap:12px;padding:0 0 14px;}
.iv-project-purchase>span {width:36px;height:36px;display:grid;place-items:center;background:var(--brand-soft,#f1f4f2);color:var(--brand-ink,#284539);border-radius:8px;}
.iv-project-purchase strong,.iv-project-purchase small {display:block;}
.iv-project-purchase small {margin-top:3px;color:var(--iv-muted);font-size:12px;}
.iv-row-actions {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.iv-impact {margin:0 0 12px;padding:10px 12px;border-radius:7px;background:#edf3ef;color:#334f3e;font-size:13px;line-height:1.5;}
