:root{--text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:18px;--text-xl:20px;--text-page:clamp(28px,2.4vw,32px);--color-text:#1e293b;--color-muted:#475569;--color-primary:#2563eb;--color-focus:#2563eb;--color-surface:#fff;--color-canvas:#f6f8fb;--color-border:#cbd5e1;--color-success:#166534;--color-success-bg:#f0fdf4;--color-warning:#92400e;--color-warning-bg:#fffbeb;--color-danger:#b91c1c;--color-danger-bg:#fef2f2;--color-info:#1d4ed8;--color-info-bg:#eff6ff;--crystal-50:#f2fbff;--crystal-100:#d9f4ff;--crystal-200:#a9e7ff;--crystal-300:#61d2ff;--crystal-400:#16b9f2;--crystal-500:#009ee3;--crystal-600:#0077df;--crystal-700:#005fd0;--crystal-800:#064cb0;--crystal-900:#07337e;--crystal-blue:#0038e8;--brand-gradient:linear-gradient(135deg,var(--crystal-500),var(--crystal-blue) 76%);--brand-gradient-soft:linear-gradient(135deg,rgba(0,158,227,0.16),rgba(0,56,232,0.1));--ink:var(--color-text);--text:var(--color-text);--muted:var(--color-muted);--line:var(--color-border);--border:var(--color-border);--panel:var(--color-surface);--surface:var(--color-surface);--surface-muted:var(--color-canvas);--bg:var(--color-canvas);--shadow:0 4px 16px rgba(15,23,42,0.05);--radius:8px}*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100svh;color:var(--ink);background:var(--color-canvas);font-family:Prompt,Noto Sans Thai,Segoe UI,Tahoma,sans-serif;font-size:var(--text-base);font-weight:400;line-height:1.6;letter-spacing:0}button,input,select,textarea{font:inherit}code,kbd,pre,samp{font-family:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.app-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh;min-height:100svh;background:var(--color-canvas)}.sidebar{position:sticky;top:0;height:100vh;height:100dvh;overflow-y:auto;display:flex;flex-direction:column;gap:22px;padding:22px 18px;color:#eaf8ff;background:linear-gradient(145deg,rgba(255,255,255,.22),transparent 42%),radial-gradient(circle at 74% 14%,rgba(146,235,255,.42),transparent 14rem),var(--brand-gradient);box-shadow:18px 0 45px rgba(0,56,232,.14);z-index:5}.brand{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:12px 14px;padding:0 4px 18px;border-bottom:1px solid rgba(255,255,255,.22);color:#eaf8ff}.brand-mark{flex:0 0 42px;width:42px;height:42px;background:url(/images/treasury-logo.png) 50%/auto 100% no-repeat}.brand .brand-mark{width:76px;height:76px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background-color:#fffdf5;background-size:auto 64px;box-shadow:0 3px 12px rgba(7,51,126,.12)}.brand strong{display:block;font-size:24px;font-weight:600;line-height:1.25;letter-spacing:.02em}.brand-copy{min-width:0}.brand-agency{display:block;margin-top:5px;font-size:var(--text-sm);font-weight:500;color:#fff}.brand small,.mini-label{color:rgba(234,248,255,.7);font-size:var(--text-sm)}.brand .brand-description{grid-column:1/-1;color:rgba(255,255,255,.9);font-size:var(--text-sm);font-weight:400;line-height:1.7}.nav-list{display:grid;gap:6px}.nav-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;color:rgba(234,248,255,.82);background:transparent;border:0;border-radius:8px;text-align:left;text-decoration:none}.nav-item.active,.nav-item:hover{color:#fff;background:rgba(255,255,255,.18)}.nav-item.active:before{content:"";position:absolute;left:-18px;width:4px;height:28px;border-radius:0 6px 6px 0;background:#d9f7ff}.nav-group{display:grid;gap:4px}.nav-parent{justify-content:flex-start}.nav-chevron{width:17px;height:17px;margin-left:auto;transition:transform .16s ease}.nav-chevron.open{transform:rotate(180deg)}.nav-sublist{display:grid;gap:4px;padding:2px 0 6px 42px}.nav-subitem{position:relative;display:flex;align-items:center;min-height:40px;padding:0 10px;color:rgba(234,248,255,.68);border-radius:7px;font-size:var(--text-sm);font-weight:600}.nav-subitem:before{content:"";width:5px;height:5px;margin-right:9px;border-radius:50%;background:currentColor;opacity:.72}.nav-subitem.active,.nav-subitem:hover{color:#fff;background:rgba(255,255,255,.12)}.badge,.pill{display:inline-grid;place-items:center;min-width:24px;height:22px;margin-left:auto;padding:0 7px;color:var(--color-info);background:var(--color-info-bg);border-radius:999px;font-size:var(--text-xs);font-weight:600}.badge,.pill.danger{color:var(--color-danger);background:var(--color-danger-bg)}.nav-parent-count+.nav-chevron{margin-left:0}.badge.teal{color:var(--color-info);background:var(--color-info-bg)}.sidebar-card{margin-top:auto;padding:14px;border:1px solid rgba(255,255,255,.3);border-radius:var(--radius);background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}.sidebar-card strong{display:block;margin:5px 0 10px;font-size:var(--text-sm)}.mini-meter,.progress{overflow:hidden;height:7px;border-radius:999px;background:rgba(255,255,255,.18)}.mini-meter span,.progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e5fbff,#21d3ff)}.main-area{min-width:0;background:transparent}.topbar{position:sticky;top:0;z-index:4;gap:16px;min-height:74px;padding:14px 32px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--color-border);box-shadow:0 2px 8px rgba(15,23,42,.03);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.top-actions,.topbar{display:flex;align-items:center}.top-actions{gap:12px;margin-left:auto}.notification-menu{position:relative;display:inline-flex}.icon-button{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;padding:0;color:var(--crystal-800);border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.94)}.icon-button:hover{border-color:var(--crystal-300);box-shadow:0 8px 22px rgba(0,158,227,.14)}.icon-button .badge{position:absolute;top:-8px;right:-8px;min-width:22px;height:22px;padding:0 5px;font-size:var(--text-xs)}.icon-button.quiet{color:var(--muted);background:transparent}.icon-button.accept{color:var(--color-success)}.icon-button.reject{color:var(--color-danger)}.notification-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:20;width:min(360px,calc(100vw - 32px));overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 22px 56px rgba(0,56,232,.18)}.notification-popover-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}.notification-popover-header strong{color:var(--ink);font-size:var(--text-sm)}.notification-popover-header span{color:var(--muted);font-size:var(--text-sm);font-weight:600}.notification-popover-header button{min-height:40px;padding:0 10px;color:var(--crystal-800);border:1px solid var(--crystal-200);border-radius:7px;background:var(--crystal-50);font-size:var(--text-sm);font-weight:600}.notification-popover-header button:disabled{cursor:wait;opacity:.6}.notification-popover-list{display:grid;max-height:360px;overflow-y:auto}.notification-popover-empty,.notification-popover-item{display:grid;gap:5px;padding:13px 14px;border-bottom:1px solid var(--line)}.notification-popover-item:last-child{border-bottom:0}.notification-popover-empty strong,.notification-popover-item strong{color:var(--ink);font-size:var(--text-sm)}.notification-popover-empty span,.notification-popover-item span,.notification-popover-item time{color:var(--muted);font-size:var(--text-sm);line-height:1.6}.notification-popover-item span{overflow-wrap:anywhere}.mobile-menu{display:none}.profile{display:flex;align-items:center;gap:10px;min-width:150px}.profile strong{display:block;font-size:var(--text-sm)}.profile small{color:var(--muted);font-size:var(--text-sm)}.logout-form{display:inline-flex}.avatar{display:grid;place-items:center;width:40px;height:40px;color:#fff;background:var(--color-primary);border-radius:8px;font-weight:600}.avatar.small{width:34px;height:34px;font-size:var(--text-sm)}.content-view{display:none;padding:30px 32px 48px}.route-view{min-width:0;padding:clamp(22px,2vw,40px) clamp(16px,2vw,48px) 48px}.content-view.active{display:block}.page-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{display:block;color:var(--crystal-700);font-size:var(--text-sm);font-weight:600;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{margin-top:3px;font-size:var(--text-page);font-weight:600;line-height:1.4}h2,h3{font-size:var(--text-lg);line-height:1.5}b,h2,h3,strong{font-weight:600}p{color:var(--muted);font-size:var(--text-base)}.button-group,.segmented-control{display:flex;align-items:center;gap:6px}.segmented-control{flex-wrap:wrap;padding:4px;border:1px solid var(--line);border-radius:8px;background:#fff}.segmented-control button{min-height:40px;padding:0 13px;color:var(--muted);background:transparent;border:0;border-radius:6px}.segmented-control button.active{color:#fff;background:var(--color-primary)}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:8px;font-size:var(--text-sm);font-weight:600}.primary-button{color:#fff;border:1px solid var(--color-primary);background:var(--color-primary);box-shadow:none}.secondary-button{color:var(--color-text);border:1px solid var(--color-border);background:var(--color-surface)}.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--color-danger);border:1px solid #fca5a5;border-radius:8px;background:var(--color-danger-bg);font-size:var(--text-sm);font-weight:600}.danger-button:disabled,.primary-button:disabled,.secondary-button:disabled{cursor:not-allowed;opacity:.55}.primary-button:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.secondary-button:hover:not(:disabled){background:var(--color-canvas);border-color:#94a3b8}.danger-button:hover:not(:disabled){background:#fee2e2;border-color:var(--color-danger)}.row-actions :is(.primary-button,.secondary-button,.danger-button),td :is(.primary-button,.secondary-button,.danger-button){min-height:40px;padding:6px 12px}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.metric-card,.panel{border:1px solid rgba(190,224,255,.9);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.metric-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:150px;padding:22px}.metric-card:after{content:"";position:absolute;inset:auto 0 0 0;height:42px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 60%,white));opacity:.9}.metric-card span{display:block;color:var(--muted);font-size:var(--text-sm)}.metric-card strong{display:block;margin-top:6px;color:var(--accent-dark);font-size:30px;line-height:1.1}.metric-card svg{width:28px;height:28px;color:var(--accent-dark)}.metric-card footer{position:absolute;bottom:13px;left:22px;z-index:1;color:#fff;font-size:var(--text-sm);font-weight:600}.metric-card-link{color:inherit;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.metric-card-link:hover{border-color:color-mix(in srgb,var(--accent) 68%,white);box-shadow:0 20px 52px rgba(0,56,232,.16);transform:translateY(-1px)}.accent-blue{--accent:#009ee3;--accent-dark:var(--crystal-blue)}.accent-cyan{--accent:#38d7ff;--accent-dark:#0082b8}.accent-mint{--accent:#42dca3;--accent-dark:#0e9168}.accent-red{--accent:#f06986;--accent-dark:#d83d59}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:18px;margin-top:18px}.dashboard-chart-card{min-height:414px}.dashboard-chart-card-wide{grid-column:1/-1}.dashboard-attention-panel,.dashboard-calendar-panel{margin-top:18px}.dashboard-calendar-header{align-items:center}.dashboard-calendar-tabs button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.dashboard-calendar-tabs svg{width:16px;height:16px}.dashboard-day-view{display:grid;grid-template-columns:minmax(240px,.45fr) minmax(0,1fr);gap:16px}.dashboard-day-card{display:grid;min-height:210px;align-content:center;gap:6px;padding:22px;overflow:hidden;color:#fff;border-radius:8px;background:linear-gradient(135deg,var(--crystal-600),var(--crystal-blue))}.dashboard-day-card svg{width:30px;height:30px;margin-bottom:8px;opacity:.9}.dashboard-day-card small,.dashboard-day-card span{color:rgba(255,255,255,.78);font-weight:600}.dashboard-day-card strong{font-size:var(--text-lg);line-height:1.25}.dashboard-day-card b{margin-top:6px;font-size:54px;line-height:.95}.dashboard-day-card.tone-danger{background:linear-gradient(135deg,#f06986,#c53d57)}.dashboard-day-card.tone-warning{background:linear-gradient(135deg,#ffc861,#e88a12)}.dashboard-day-card.tone-success{background:linear-gradient(135deg,#42dca3,#0d7f5a)}.dashboard-calendar-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-calendar-stats div{display:grid;align-content:center;gap:8px;min-height:150px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff}.dashboard-calendar-stats span,.dashboard-month-title span,.dashboard-week-day small{color:var(--muted);font-size:var(--text-sm);font-weight:600}.dashboard-calendar-stats strong{color:var(--crystal-800);font-size:36px;line-height:1}.dashboard-week-view{display:grid;grid-auto-columns:minmax(210px,1fr);grid-auto-flow:column;grid-template-columns:none;gap:12px;overflow-x:auto;padding-bottom:6px}.dashboard-week-day{display:grid;grid-template-rows:auto auto;gap:16px;min-height:168px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}.dashboard-week-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dashboard-week-day-head span{color:var(--ink);font-size:var(--text-sm);font-weight:600;line-height:1.6}.dashboard-week-day-head strong{color:var(--crystal-800);font-size:38px;line-height:1}.dashboard-week-status-grid{display:grid;gap:8px}.dashboard-week-status-grid div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:34px;padding:7px 10px;border-radius:7px;background:rgba(242,251,255,.84)}.dashboard-week-status-grid span{color:var(--muted);font-size:var(--text-sm);font-weight:600;white-space:nowrap}.dashboard-week-status-grid strong{color:var(--ink);font-size:var(--text-lg);line-height:1}.dashboard-calendar-day.tone-danger,.dashboard-week-day.tone-danger{border-color:#ffc6d1;background:#fff0f3}.dashboard-calendar-day.tone-warning,.dashboard-week-day.tone-warning{border-color:#ffe0a7;background:#fff8ea}.dashboard-calendar-day.tone-success,.dashboard-week-day.tone-success{border-color:#b8efd8;background:#e7fbf1}.dashboard-month-view{display:grid;gap:12px}.dashboard-month-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.dashboard-month-title strong{color:var(--ink);font-size:var(--text-lg)}.dashboard-month-note{color:var(--muted);font-size:var(--text-sm);font-weight:600}.dashboard-calendar-grid,.dashboard-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.dashboard-calendar-weekdays span{color:var(--muted);font-size:var(--text-sm);font-weight:600;text-align:center}.dashboard-calendar-day{position:relative;display:grid;grid-template-rows:1fr auto;gap:6px;min-height:72px;overflow:hidden;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.dashboard-calendar-day-head,.dashboard-calendar-day>i{position:relative;z-index:1}.dashboard-calendar-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.dashboard-calendar-day-head span{color:var(--muted);font-size:var(--text-sm);font-weight:600}.dashboard-calendar-day-head strong{color:var(--crystal-800);font-size:19px;line-height:1}.dashboard-calendar-day i{display:block;width:100%;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--crystal-500),var(--crystal-blue))}.dashboard-calendar-day.tone-idle{background:rgba(255,255,255,.72)}.dashboard-calendar-day.tone-idle strong{color:var(--color-muted)}.dashboard-calendar-day.tone-danger{background:#fff8fa}.dashboard-calendar-day.tone-warning{background:#fffaf1}.dashboard-calendar-day.tone-success{background:#f4fcf9}.dashboard-calendar-day.is-blank{visibility:hidden}.panel{padding:18px}.panel.wide{min-height:360px}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-actions{display:flex;gap:8px}.chart-wrap{height:272px;padding:8px 4px 0}.dashboard-chart-wrap{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;overflow-x:auto;padding-bottom:4px}.compact-chart-wrap{height:238px}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:-4px 0 12px;color:var(--muted);font-size:var(--text-sm);font-weight:600}.chart-legend span{display:inline-flex;align-items:center;gap:6px;min-height:22px}.chart-dot{width:10px;height:10px;border-radius:50%}.chart-dot-uploaded{background:#1a7ff0}.chart-dot-failed{background:#ef6378}.chart-dot-review{background:#f2a83b}.bar-chart{position:relative;display:grid;grid-template-columns:repeat(10,1fr);align-items:end;gap:13px;height:100%;padding:12px 20px 18px;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 47px,rgba(0,56,232,.1) 48px);border-left:1px solid var(--line);border-bottom:1px solid var(--line)}.grouped-bar-chart{align-items:stretch}.dashboard-chart-wrap .bar-chart,.dashboard-chart-wrap .chart-labels{min-width:560px}.compact-chart-wrap .bar-chart,.compact-chart-wrap .chart-labels{min-width:480px}.chart-period-group{display:flex;align-items:flex-end;gap:5px;min-width:0;height:100%}.bar-chart .chart-bar{display:flex;align-items:flex-start;justify-content:center;flex:1 1;min-width:0;min-height:28px;padding:7px 4px;box-sizing:border-box;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,rgba(97,210,255,.98),rgba(0,56,232,.82))}.bar-chart .chart-bar-uploaded{background:linear-gradient(180deg,#62d4ff,#1a7ff0)}.bar-chart .chart-bar-failed{background:linear-gradient(180deg,#ff9caf,#df405e)}.bar-chart .chart-bar-review{background:linear-gradient(180deg,#ffd681,#f29b20)}.chart-bar strong{max-width:100%;overflow:hidden;color:#fff;font-size:var(--text-sm);font-weight:600;line-height:1;text-align:center;text-overflow:ellipsis;text-shadow:0 1px 5px rgba(0,28,120,.35)}.bar-chart i{position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#ef6378;box-shadow:0 0 0 2px rgba(239,99,120,.28)}.chart-labels{display:grid;gap:13px;color:var(--muted);font-size:var(--text-sm);font-weight:600;text-align:center}.chart-labels span{overflow:hidden;line-height:1.25;text-overflow:ellipsis;white-space:normal}.chart-stat-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.chart-stat-strip-three{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-stat-strip div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.chart-stat-strip span{min-width:0;color:var(--muted);font-size:var(--text-sm);font-weight:600}.chart-stat-strip strong{color:var(--crystal-800);font-size:26px;line-height:1}.stat-panel{overflow:hidden;padding:0}.status-card{min-height:230px;padding:22px;color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.22),transparent 42%),radial-gradient(circle at 72% 18%,rgba(146,235,255,.42),transparent 14rem),var(--brand-gradient)}.status-card h2{margin-bottom:22px}.stacked-bars{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;gap:13px;height:145px}.stacked-bars span{display:block;border-radius:7px 7px 2px 2px;background:rgba(255,255,255,.88)}.dashboard-month-bars{gap:8px}.split-stats{display:grid;grid-template-columns:1fr 1fr;min-height:102px;text-align:center}.split-stats div{display:grid;place-items:center;align-content:center;border-right:1px solid var(--line)}.split-stats div:last-child{border-right:0}.split-stats span{color:var(--muted);font-size:var(--text-sm)}.split-stats strong{margin-top:7px;font-size:26px}.table-wrap{min-width:0;max-width:100%;overflow-x:auto}table{width:100%;min-width:520px;border-collapse:collapse}td,th{padding:13px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}td,th{font-size:var(--text-sm)}th{color:var(--muted);text-transform:uppercase}.status{display:inline-flex;align-items:center;min-height:28px;padding:2px 10px;color:var(--color-muted);background:#f1f5f9;border-radius:999px;font-size:var(--text-sm);font-weight:600}.status.success{color:var(--color-success);background:var(--color-success-bg)}.status.warning{color:var(--color-warning);background:var(--color-warning-bg)}.status.info{color:var(--color-info);background:var(--color-info-bg)}.status.danger{color:var(--color-danger);background:var(--color-danger-bg)}.status.neutral{color:var(--color-muted);background:#f1f5f9}.compact-panel{display:grid;place-items:center;align-content:center}.compact-panel .panel-header{width:100%}.donut{width:172px;height:172px;display:grid;place-items:center;margin:8px auto 16px;border-radius:50%;background:radial-gradient(circle,#fff 0 54%,transparent 55%),conic-gradient(var(--crystal-500) calc(var(--score) * 1%),#f49a6a 0)}.donut span{color:var(--crystal-800);font-size:26px;font-weight:600}.legend{display:flex;justify-content:center;gap:16px;color:var(--muted);font-size:var(--text-sm)}.dot{display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:50%}.dot.blue{background:var(--crystal-500)}.dot.orange{background:#f49a6a}.dashboard-health-panel{align-content:start}.dashboard-health-panel .donut{width:150px;height:150px}.dashboard-status-list{display:grid;gap:12px;width:100%;margin:2px 0 16px}.dashboard-status-item{display:grid;gap:7px}.dashboard-status-item div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:var(--text-sm)}.dashboard-status-item strong{color:var(--ink)}.status-meter{overflow:hidden;height:8px;border-radius:999px;background:#eaf3fb}.status-meter span{display:block;min-width:0;height:100%;border-radius:inherit}.status-meter.info span{background:var(--crystal-500)}.status-meter.success span{background:#42dca3}.status-meter.warning span{background:#f4b45f}.status-meter.danger span{background:#ef6378}.two-column{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:18px}.upload-panel{min-height:420px}.drop-zone{height:100%;min-height:384px;display:grid;place-items:center;align-content:center;gap:12px;color:var(--crystal-800);border:2px dashed var(--crystal-200);border-radius:8px;background:linear-gradient(135deg,rgba(218,246,255,.8),rgba(255,255,255,.94)),repeating-linear-gradient(45deg,transparent 0 12px,rgba(97,210,255,.1) 12px 24px)}.drop-zone svg{width:62px;height:62px;color:var(--crystal-500)}.drop-zone strong{font-size:24px}.drop-zone span{color:var(--muted)}.queue-list,.report-list,.user-list{display:grid;gap:12px}.queue-item,.report-list div,.user-list div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.queue-item strong,.report-list strong,.user-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-item span,.report-list span,.user-list span{color:var(--muted);font-size:var(--text-sm)}.queue-item .progress{width:132px;background:#eaf3fb}.ocr-upload-layout{align-items:start}.ocr-upload-form{display:grid;gap:14px;min-height:100%}.ocr-replacement-context{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:12px 14px;color:#0c4a6e;border:1px solid #7dd3fc;border-radius:9px;background:#f0f9ff}.ocr-replacement-context>svg{width:24px;height:24px}.ocr-replacement-context small,.ocr-replacement-context span,.ocr-replacement-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ocr-replacement-context small,.ocr-replacement-context span{margin-top:2px;color:#47718d;font-size:var(--text-sm)}.ocr-drop-zone{width:100%;text-align:center}.ocr-drop-zone.active{border-color:var(--crystal-500);box-shadow:0 0 0 4px rgba(22,185,242,.14)}.ocr-drop-zone:disabled{cursor:not-allowed;opacity:.68}.ocr-drop-zone strong{max-width:100%;overflow-wrap:anywhere;font-size:22px}.ocr-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ocr-controls select{width:100%;min-height:40px;padding:0 12px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff}.ocr-controls select:focus{border-color:var(--crystal-400);box-shadow:0 0 0 3px rgba(22,185,242,.14)}.ocr-controls select:disabled{cursor:not-allowed;opacity:.7}.ocr-checkbox-control{min-height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff}.ocr-checkbox-control input{width:18px;min-height:18px;flex:0 0 auto;accent-color:var(--crystal-600)}.ocr-checkbox-control span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ocr-checkbox-control:has(input:disabled){cursor:not-allowed;opacity:.55}.ocr-queue-list,.ocr-selected-files{display:grid;gap:12px}.ocr-selected-files{max-height:150px;overflow:auto;padding-right:2px}.ocr-selected-file{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fcff}.ocr-selected-file span,.ocr-selected-file strong{display:block;overflow-wrap:anywhere;white-space:normal}.ocr-selected-file span{color:var(--muted);font-size:var(--text-sm)}.ocr-file-remove{width:40px;height:40px;display:inline-grid;place-items:center;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:#fff}.ocr-file-remove:disabled{cursor:not-allowed;opacity:.55}.ocr-file-remove svg{width:16px;height:16px}.ocr-action-row{flex-wrap:wrap}.ocr-action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.ocr-action-button svg{width:18px;height:18px}.ocr-inline-error{display:flex;align-items:center;gap:8px}.ocr-inline-error svg{width:18px;height:18px}.ocr-empty-state,.ocr-job-card{display:grid;gap:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.ocr-job-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}.ocr-job-card-header .status{flex:0 0 auto}.ocr-job-title{display:flex;align-items:center;gap:12px;min-width:0}.ocr-job-title>svg{width:34px;height:34px;color:var(--crystal-600)}.ocr-job-title span,.ocr-job-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ocr-job-meta{display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;row-gap:2px}.ocr-job-title .ocr-job-time{display:inline-flex;align-items:center;gap:4px;color:var(--crystal-700);font-weight:600}.ocr-job-time svg{width:13px;height:13px;flex:0 0 auto}.ocr-empty-state span,.ocr-job-title span,.ocr-working{color:var(--muted);font-size:var(--text-sm)}.ocr-progress{height:9px;background:#eaf3fb}.ocr-downloads{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.ocr-downloads .status{gap:6px}.ocr-downloads .status svg{width:15px;height:15px}.ocr-queue-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.ocr-small-button{min-height:32px;padding:0 12px;font-size:var(--text-sm)}.ocr-working{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ocr-cancel-button{display:inline-flex;align-items:center;gap:6px;margin-left:auto}.ocr-cancel-button svg{width:13px;height:13px}.ocr-empty-state{min-height:230px;place-items:center;align-content:center;text-align:center}.ocr-empty-state svg{width:46px;height:46px;color:var(--crystal-500)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.review-layout{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr);gap:18px}.document-preview{min-height:660px;display:grid;place-items:center;padding:22px;border:1px solid rgba(205,229,244,.86);border-radius:8px;background:linear-gradient(145deg,rgba(0,158,227,.14),transparent),#dff6ff;box-shadow:var(--shadow)}.paper{position:relative;width:min(430px,100%);min-height:590px;padding:42px 34px;background:#fff;border-radius:6px;box-shadow:0 28px 60px rgba(0,56,232,.18)}.paper-header{position:absolute;top:0;left:0;right:0;height:12px;border-radius:6px 6px 0 0;background:var(--color-primary)}.paper h3{color:var(--crystal-800);font-size:28px}.paper-line{height:12px;width:62%;margin-top:14px;background:#e8f0f6;border-radius:999px}.paper-line.long{width:88%}.ocr-box{position:absolute;display:grid;place-items:center;height:34px;color:#005c91;border:2px solid var(--crystal-400);border-radius:6px;background:rgba(97,210,255,.14);font-size:var(--text-sm);font-weight:600}.box-a{left:34px;top:162px;width:210px}.box-b{right:34px;top:220px;width:126px}.box-c{right:34px;bottom:78px;width:160px}.paper-table{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:9px;margin-top:138px}.paper-table span{height:34px;border-radius:4px;background:#eff6fb}.review-form{min-height:660px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:grid;min-width:0;gap:7px;color:var(--muted);font-size:var(--text-sm);font-weight:500}label.full{grid-column:1/-1}input,select,textarea{width:100%;min-width:0;min-height:44px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff;font-size:var(--text-base);font-weight:400}input,select{padding:0 12px}textarea{min-height:110px;padding:12px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--color-focus);outline:2px solid var(--color-focus);outline-offset:2px}input::placeholder,textarea::placeholder{color:var(--color-muted);opacity:1}.confidence-list{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.confidence-list div{display:grid;grid-template-columns:80px minmax(0,1fr) 45px;align-items:center;gap:10px;color:var(--muted);font-size:var(--text-sm)}meter{width:100%;height:10px}.row-actions{display:flex;gap:8px}.approval-action-cell,.reject-approval-form{display:flex;align-items:center;gap:8px}.approval-action-cell{flex-wrap:nowrap}.reject-reason-input{width:180px;min-width:160px}.approved-documents-panel,.notification-panel{margin-top:18px}.notification-list{display:grid;gap:10px}.notification-list div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.cell-note,.notification-list span{color:var(--muted);font-size:var(--text-sm)}.cell-note{display:inline-block;max-width:260px;overflow-wrap:anywhere;white-space:normal}.report-grid{grid-template-columns:minmax(0,1fr) 340px}.wave-chart{position:relative;height:270px;border-left:1px solid var(--line);border-bottom:1px solid var(--line);background-image:repeating-linear-gradient(0deg,transparent 0,transparent 44px,rgba(0,56,232,.08) 45px)}.wave-chart:before{content:"";position:absolute;inset:28px 26px;border-radius:50%;background:linear-gradient(135deg,rgba(97,210,255,.22),rgba(0,56,232,.06));clip-path:polygon(0 72%,14% 52%,28% 66%,42% 38%,56% 50%,70% 26%,84% 36%,100% 20%,100% 100%,0 100%)}.wave-chart span{position:absolute;left:var(--x);top:var(--y);width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:var(--crystal-500);box-shadow:0 0 0 4px rgba(22,185,242,.18)}.timeline{position:relative;display:grid;gap:16px;padding-left:18px}.timeline:before{content:"";position:absolute;top:6px;bottom:6px;left:4px;width:2px;background:var(--crystal-200)}.timeline div{position:relative;display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.timeline div:before{content:"";position:absolute;left:-21px;top:22px;width:10px;height:10px;border:3px solid #fff;border-radius:50%;background:var(--crystal-500);box-shadow:0 0 0 2px var(--crystal-200)}.timeline time{color:var(--crystal-700);font-size:var(--text-sm);font-weight:600}.timeline span{color:var(--muted);font-size:var(--text-sm)}.user-list div{grid-template-columns:auto minmax(0,1fr) auto}.permission-grid{display:grid;grid-template-columns:minmax(120px,1fr) repeat(3,minmax(88px,.7fr));overflow:hidden;border:1px solid var(--line);border-radius:8px}.permission-grid>*{min-height:44px;display:grid;place-items:center;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;font-size:var(--text-sm)}.permission-grid>:nth-child(4n){border-right:0}.permission-grid strong{color:var(--crystal-800);background:var(--crystal-50)}.permission-grid b{color:var(--crystal-700)}.toast{position:fixed;right:22px;bottom:22px;z-index:20;transform:translateY(18px);max-width:min(380px,calc(100vw - 44px));padding:13px 16px;color:#fff;background:var(--color-primary);border-radius:8px;box-shadow:0 18px 34px rgba(0,56,232,.24);opacity:0;pointer-events:none;transition:.2s ease}.toast.show{transform:translateY(0);opacity:1}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:28px;align-items:stretch;padding:34px}.login-card,.login-hero{border:1px solid rgba(205,229,244,.86);border-radius:8px;box-shadow:var(--shadow)}.login-hero{position:relative;overflow:hidden;min-height:620px;display:flex;flex-direction:column;justify-content:space-between;padding:34px;color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.22),transparent 42%),radial-gradient(circle at 72% 18%,rgba(146,235,255,.42),transparent 18rem),var(--brand-gradient)}.login-hero:after{content:"";position:absolute;right:-90px;bottom:-150px;width:420px;height:520px;border:1px solid rgba(255,255,255,.36);border-radius:48% 52% 42% 58%;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.08)),linear-gradient(135deg,rgba(97,210,255,.34),rgba(0,56,232,.42));box-shadow:inset 0 0 60px rgba(255,255,255,.38)}.login-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}.login-brand strong{display:block;font-size:22px}.login-brand small,.login-copy p{color:rgba(255,255,255,.78)}.login-copy{position:relative;z-index:1;max-width:620px}.login-copy .eyebrow{color:#d9f7ff}.login-copy h1{max-width:720px;margin:10px 0 12px;font-size:clamp(34px,5vw,64px);line-height:1.05}.login-organization{white-space:nowrap}.login-card{display:grid;align-content:center;gap:20px;padding:clamp(24px,4vw,48px);background:rgba(255,255,255,.94)}.login-card h2{margin-top:4px;font-size:34px}.login-form{display:grid;gap:14px}.login-row{display:flex;justify-content:flex-end;margin-top:-4px}.login-form .primary-button{width:100%;margin-top:6px}.auth-text-link{color:var(--crystal-700);font-size:var(--text-sm);font-weight:600}.auth-switch{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:var(--text-sm)}.form-error{color:var(--color-danger);border:1px solid #ffc6d1;border-radius:8px;background:#fff0f3}.form-error,.form-success{padding:12px 14px;font-size:var(--text-sm);font-weight:600}.form-success{margin-bottom:18px;color:var(--color-success);border:1px solid #b8efd8;border-radius:8px;background:#e7fbf1}.admin-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.admin-alert-dismiss{flex:0 0 auto;color:inherit;font-size:var(--text-sm);font-weight:600}.seed-hint{display:grid;gap:5px;padding:14px;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:var(--crystal-50);font-size:var(--text-sm)}.seed-hint strong{color:var(--crystal-800)}.compact-auth-card{width:min(560px,100%);min-height:auto;align-self:center;justify-self:center}.compact-auth-card h1{font-size:34px}.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.admin-summary{flex-wrap:wrap;justify-content:flex-end}.admin-tabs{display:flex;gap:6px;margin:-6px 0 18px;padding:4px;width:fit-content;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.88);box-shadow:0 10px 28px rgba(0,56,232,.08)}.admin-tab{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;color:var(--muted);border-radius:6px;font-size:var(--text-sm);font-weight:600;white-space:nowrap}.admin-tab.active{color:#fff;background:var(--color-primary)}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid,.admin-workspace{display:grid;gap:18px}.admin-form-panel,.admin-wide-panel{grid-column:1/-1}.admin-form{display:grid;gap:16px}.admin-inline-form{display:grid;gap:12px}.admin-form .primary-button{justify-self:start}.split-admin-form{grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);align-items:start}.split-admin-form .admin-form-actions{grid-column:1/-1}.admin-profile-fields{grid-template-columns:1fr}.admin-form-actions{display:flex;flex-wrap:wrap;gap:10px}.checkbox-fieldset{display:grid;gap:10px;margin:0;padding:0;border:0}.checkbox-fieldset legend{margin-bottom:2px;color:var(--muted);font-size:var(--text-sm);font-weight:600}.checkbox-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.permission-checkboxes{grid-template-columns:1fr}.admin-form-panel .checkbox-list:not(.permission-checkboxes),.role-selection-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.role-edit-list{grid-template-columns:repeat(3,minmax(0,1fr))}.checkbox-item{display:flex;align-items:flex-start;gap:10px;min-height:58px;padding:11px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff}.checkbox-item input{width:17px;height:17px;min-height:17px;margin-top:2px;accent-color:var(--crystal-600)}.checkbox-item span{display:grid;gap:2px}.checkbox-item small,.checkbox-item strong{font-size:var(--text-sm)}.checkbox-item small{color:var(--muted);font-weight:600}.compact-checkbox{min-height:50px;padding:9px}.admin-user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-user-card{display:grid;gap:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.admin-card-footer,.admin-user-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-card-footer{padding-top:12px;border-top:1px solid var(--line)}.admin-card-footer span,.table-user small{color:var(--muted);font-size:var(--text-sm)}.admin-directory-panel{min-width:0}.user-directory-list{display:grid;gap:10px}.user-directory-row{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(260px,1.5fr) minmax(150px,.8fr) auto;align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.user-action-cell,.user-main-cell,.user-meta-cell{display:flex;align-items:center;gap:10px}.user-main-cell strong{display:block}.cell-label,.user-main-cell small,.user-meta-cell small{color:var(--muted);font-size:var(--text-sm)}.user-role-cell{display:grid;gap:6px}.user-meta-cell{align-items:flex-start;flex-direction:column}.user-action-cell{justify-content:flex-end}.edit-user-workspace{grid-template-columns:minmax(260px,.34fr) minmax(0,.66fr);align-items:start}.user-profile-panel{display:grid;gap:18px;justify-items:start}.large-avatar{display:grid;place-items:center;width:78px;height:78px;color:#fff;background:var(--color-primary);border-radius:8px;font-size:24px;font-weight:600}.profile-detail-list{display:grid;gap:10px;width:100%}.profile-detail-list div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.profile-detail-list span{color:var(--muted);font-size:var(--text-sm)}.profile-detail-list strong{text-align:right}.role-editor-panel{min-width:0}.role-editor-list{display:grid;gap:10px}.role-editor-item{display:grid;grid-template-columns:auto minmax(180px,.65fr) minmax(0,1fr);align-items:center;gap:12px;min-height:70px;padding:12px;color:var(--ink);border:1px solid var(--line);border-radius:8px;background:#fff}.role-editor-item input{width:18px;height:18px;min-height:18px;accent-color:var(--crystal-600)}.role-editor-item span{display:grid;gap:3px}.role-editor-item small{color:var(--muted);font-size:var(--text-sm);font-weight:600}.table-user{display:flex;align-items:center;gap:10px}.search-results-panel{margin-top:18px}.search-document-cell{min-width:280px}.search-document-cell>span{display:grid;gap:3px;min-width:0}.search-document-cell small,.search-document-cell strong{max-width:360px;overflow:hidden;text-overflow:ellipsis}.review-list{display:grid;gap:12px}.review-item{display:grid;grid-template-areas:"summary details" "actions actions";grid-template-columns:minmax(240px,.75fr) minmax(0,2.25fr);align-items:center;gap:14px 24px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.review-document-summary{grid-area:summary;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-width:0}.review-document-icon{display:grid;place-items:center;width:42px;height:42px;color:var(--crystal-800);border:1px solid var(--crystal-200);border-radius:8px;background:var(--crystal-50)}.review-document-icon svg{width:22px;height:22px}.review-document-meta{display:grid;min-width:0;gap:3px}.review-detail-grid dd,.review-document-meta small,.review-document-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-document-meta strong{color:var(--ink);font-size:var(--text-base)}.review-document-meta small{display:block;max-width:100%;color:var(--muted);font-size:var(--text-sm)}.review-detail-grid{grid-area:details;display:grid;grid-template-columns:minmax(96px,.8fr) minmax(104px,.9fr) minmax(132px,1fr) minmax(68px,.55fr) minmax(120px,.9fr) minmax(80px,.7fr);align-items:center;gap:12px;min-width:0;margin:0}.review-detail-grid div{display:grid;min-width:0;gap:5px}.review-detail-grid dt{color:var(--muted);font-size:var(--text-sm);font-weight:600;text-transform:uppercase}.review-detail-grid dd{min-width:0;margin:0;color:var(--ink);font-size:var(--text-sm)}.review-detail-grid .status,.review-detail-grid .tag{max-width:100%}.review-updated{display:grid;gap:2px;line-height:1.2;white-space:normal}.review-updated small{color:var(--muted);font-size:var(--text-sm)}.review-note-detail .cell-note,.review-note-detail dd{white-space:normal}.review-note-detail .cell-note{max-width:100%}.review-actions{display:grid;gap:8px;min-width:0}.review-item>.review-queue-actions{grid-area:actions;display:grid;grid-template-columns:minmax(180px,.45fr) minmax(180px,.55fr) minmax(360px,1fr);align-items:center;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.review-item>.review-queue-actions .review-open-link{width:100%}.review-item>.review-queue-actions .review-file-links{grid-template-columns:1fr}.review-actions .ocr-action-button,.review-actions form{width:100%}.review-actions .ocr-action-button{min-height:44px;padding:8px 12px;gap:7px;white-space:nowrap;box-shadow:none}.review-reject-form{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px}.review-reject-form .reject-reason-input{width:100%;min-width:0;min-height:44px}.review-actions .reject-button{color:var(--color-danger);border-color:rgba(223,69,96,.24);background:#fff;box-shadow:none}.review-actions .reject-button:hover{border-color:rgba(223,69,96,.45);background:var(--color-danger-bg)}.review-file-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.review-file-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:40px;padding:0 9px;color:var(--crystal-800);border:1px solid var(--crystal-200);border-radius:8px;background:#fff;font-size:var(--text-sm);font-weight:600;white-space:nowrap}.review-file-link:first-child{color:#fff;border-color:transparent;background:var(--color-primary);box-shadow:none}.review-file-link:hover{border-color:var(--crystal-300);box-shadow:0 8px 18px rgba(0,158,227,.14)}.review-actions .ocr-action-button svg,.review-file-link svg{width:16px;height:16px}.ocr-correction-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.ocr-correction-panel,.ocr-source-panel{min-width:0}.ocr-correction-panel{order:1}.ocr-source-panel{order:2}.ocr-correction-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}.ocr-correction-meta div{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.ocr-correction-meta dt{color:var(--muted);font-size:var(--text-sm);font-weight:600;margin-bottom:4px}.ocr-correction-meta dd{margin:0;color:var(--text);font-weight:600}.ocr-preview-frame{overflow:hidden;height:min(42vh,420px);min-height:260px;margin-bottom:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.ocr-preview-frame iframe{width:100%;height:100%;border:0}.ocr-correction-form{min-height:0}.ocr-correction-form,.ocr-review-fieldset{display:flex;flex-direction:column;gap:14px}.ocr-review-fieldset{min-width:0;margin:0;padding:0;border:0}.ocr-review-fieldset:disabled .ocr-section-list{opacity:.78}.ocr-correction-field>.review-evidence-run-status{grid-column:1/-1}.ocr-category-select{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-muted)}.ocr-category-select>label{color:var(--text);font-size:var(--text-sm);font-weight:600}.ocr-category-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.ocr-category-control select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:var(--text-base);font-weight:400}.ocr-category-control .ocr-action-button{min-height:44px;white-space:nowrap}.ocr-category-jump-nav{display:grid;gap:12px;padding:16px;border:1px solid #cbdcf5;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#f3f7ff)}.ocr-category-jump-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.ocr-category-jump-heading strong{color:#0f2f5d;font-size:var(--text-base)}.ocr-category-jump-heading span{color:var(--color-muted);font-size:var(--text-sm)}.ocr-category-jump-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.ocr-category-jump-list a{display:grid;gap:3px;min-width:0;padding:10px 12px;border:1px solid #d6e0ee;border-radius:9px;background:#fff;color:#172b4d;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.ocr-category-jump-list a.is-current,.ocr-category-jump-list a:focus-visible,.ocr-category-jump-list a:hover{border-color:#2583dc;box-shadow:0 5px 14px rgba(26,99,173,.14);transform:translateY(-1px)}.ocr-category-jump-list a>span{color:#1670c5;font-size:var(--text-sm);font-weight:600;letter-spacing:.04em;text-transform:uppercase}.ocr-category-jump-list a>strong{overflow:hidden;font-size:var(--text-sm);line-height:1.6;text-overflow:ellipsis;white-space:nowrap}.ocr-section-list{display:grid;max-height:none;gap:28px;overflow:visible;padding-right:0}.ocr-field-section{--section-accent:#1b74c9;--section-accent-dark:#0f4f8f;--section-tint:#eef7ff;display:grid;gap:0;padding:0;overflow:hidden;scroll-margin-top:88px;border:1px solid #cedaea;border-left:6px solid var(--section-accent);border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(25,53,86,.08)}.ocr-field-section:nth-child(7n+2){--section-accent:#7057cf;--section-accent-dark:#46349b;--section-tint:#f3f0ff}.ocr-field-section:nth-child(7n+3){--section-accent:#078b82;--section-accent-dark:#05645e;--section-tint:#eafaf7}.ocr-field-section:nth-child(7n+4){--section-accent:#c66a13;--section-accent-dark:#8b4608;--section-tint:#fff6e9}.ocr-field-section:nth-child(7n+5){--section-accent:#c04468;--section-accent-dark:#8d2a48;--section-tint:#fff0f5}.ocr-field-section:nth-child(7n+6){--section-accent:#087fa8;--section-accent-dark:#075b78;--section-tint:#eaf8fc}.ocr-field-section:nth-child(7n+7){--section-accent:#485cc7;--section-accent-dark:#30419a;--section-tint:#eef0ff}.ocr-field-section.is-current,.ocr-field-section:target{border-color:var(--section-accent);box-shadow:0 0 0 3px var(--section-tint),0 12px 30px rgba(25,53,86,.16)}.ocr-field-section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #d7e2ef;background:linear-gradient(100deg,var(--section-tint) 0,#fff 82%)}.ocr-field-section-heading{display:flex;align-items:center;gap:13px;min-width:0}.ocr-field-section-number{flex:0 0 auto;min-width:66px;padding:6px 9px;border-radius:999px;background:var(--section-accent);color:#fff;font-size:var(--text-sm);font-weight:600;text-align:center}.ocr-field-section-header h3{margin:0;color:var(--section-accent-dark);font-size:var(--text-lg);line-height:1.6}.ocr-field-section-header p{margin:3px 0 0;color:var(--muted);font-size:var(--text-sm)}.ocr-field-section-count{white-space:nowrap;padding:5px 9px;border:1px solid var(--section-accent);border-radius:999px;color:var(--section-accent-dark);font-size:var(--text-sm);font-weight:600}.ocr-correction-list{display:grid;gap:0;padding:8px 18px 18px}.ocr-field-section[data-section-key=report_summary] .ocr-correction-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}.ocr-field-section[data-section-key=report_summary] .ocr-correction-field{grid-template-columns:220px minmax(0,1fr);align-items:center;min-width:0}.ocr-field-section[data-section-key=report_summary] .ocr-correction-field:is(.field-key-condominium_name,.field-key-condominium_location,.field-key-land_province,.field-key-total_land_area,.field-key-company_owner){grid-column:1/-1}.ocr-field-section[data-section-key=report_summary] textarea{width:100%;height:54px;min-height:54px;resize:vertical}.ocr-field-section[data-section-key=report_summary] .ocr-input-with-unit,.ocr-field-section[data-section-key=report_summary] input:not([type=hidden]):not([type=radio]):not([type=checkbox]),.ocr-field-section[data-section-key=report_summary] select{width:100%}.ocr-field-section[data-section-key=report_summary] .ocr-radio-group{flex-wrap:wrap;row-gap:8px}.ocr-field-section[data-section-key=building_usage] .ocr-correction-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}.ocr-field-section[data-section-key=building_usage] .field-key-usage_residential_building_detail{grid-area:1/1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_residential_building_count{grid-area:1/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_parking_building_detail{grid-area:2/1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_parking_building_count{grid-area:2/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_total_building_count{grid-area:3/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_total_building_area_sqm{grid-area:4/1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_total_unit_area_sqm{grid-area:4/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_residential_highrise_area_sqm{grid-area:5/1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_residential_area_sqm{grid-area:5/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_parking_area_sqm{grid-area:6/1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_parking_unit_area_sqm{grid-area:6/2}.ocr-field-section[data-section-key=building_usage] .field-key-usage_common_asset_locations{grid-area:7/1/auto/-1}.ocr-field-section[data-section-key=building_usage] .ocr-field-group[data-layout-group=usage_parking]{grid-area:8/1/auto/-1}.ocr-field-section[data-section-key=building_usage] .field-key-usage_total_parking_count{grid-area:9/2}.ocr-field-section[data-section-key=building_usage] .ocr-field-group[data-layout-group=usage_commercial_unit]{grid-area:10/1/auto/-1}.ocr-field-section[data-section-key=building_usage] .ocr-field-group[data-layout-group=usage_office_unit]{grid-area:11/1/auto/-1}.ocr-field-section[data-section-key=building_usage] .ocr-field-group[data-layout-group=usage_residential_unit]{grid-area:12/1/auto/-1}.ocr-field-section[data-section-key=building_usage] .ocr-correction-field.field-key-usage_common_asset_locations,.ocr-field-section[data-section-key=building_usage] .ocr-field-group{grid-column:1/-1}.ocr-field-section[data-section-key=building_usage]>.ocr-correction-list>.ocr-correction-field textarea{width:100%;height:54px;min-height:54px;resize:vertical}.ocr-correction-field{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:12px;min-height:66px;padding:12px 4px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:transparent}.ocr-correction-field>label{display:grid;gap:4px;color:var(--text);font-size:var(--text-sm);min-width:0}.ocr-field-section[data-section-key=building_location] .ocr-correction-field{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:12px}.ocr-field-section[data-section-key=building_location] .ocr-correction-field>label{display:inline-flex;align-items:center;gap:4px}.ocr-correction-field>label.field-label-stack{gap:2px}.ocr-correction-field strong{color:var(--color-text);font-size:var(--text-base);font-weight:600;overflow-wrap:anywhere}.ocr-correction-field>label.field-label-stack span{color:var(--color-text);font-size:var(--text-sm);font-weight:600;overflow-wrap:anywhere}.ocr-correction-field small{display:none}.ocr-field-group{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:12px;min-height:66px;padding:12px 4px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:transparent}.ocr-field-group-title{min-width:0;padding-top:9px;color:var(--color-text);font-size:var(--text-base);font-weight:600;overflow-wrap:anywhere}.ocr-correction-list>:last-child{border-bottom:0}.ocr-field-group-grid{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(140px,.7fr) minmax(140px,.7fr) minmax(160px,.8fr);gap:10px;min-width:0}.ocr-field-group[data-layout-group$=_boundary]{grid-template-columns:220px minmax(0,1fr);align-items:center}.ocr-field-group[data-layout-group$=_boundary] .ocr-field-group-title{padding-top:0;white-space:nowrap}.ocr-field-group[data-layout-group$=_boundary] .ocr-field-group-grid{grid-template-columns:minmax(260px,1fr) minmax(190px,.52fr);align-items:center;gap:14px}.ocr-field-group[data-layout-group$=_boundary] .ocr-correction-field.is-compact{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.ocr-field-group[data-layout-group$=_boundary] .ocr-correction-field.is-compact>label{white-space:nowrap}.ocr-field-group[data-layout-group$=sanitary_fixtures]{grid-template-columns:220px minmax(0,1fr);align-items:center}.ocr-field-group[data-layout-group$=sanitary_fixtures] .ocr-field-group-title{padding-top:0;white-space:nowrap}.ocr-field-group[data-layout-group$=sanitary_fixtures] .ocr-field-group-grid{grid-template-columns:repeat(3,minmax(140px,1fr));align-items:center;row-gap:8px}.ocr-field-group[data-layout-group$=utilities]{grid-template-columns:220px minmax(0,1fr);align-items:center}.ocr-field-group[data-layout-group$=utilities] .ocr-field-group-title{padding-top:0;white-space:nowrap}.ocr-field-group[data-layout-group$=utilities] .ocr-field-group-grid{grid-template-columns:repeat(4,minmax(110px,1fr));align-items:center;row-gap:8px}.ocr-field-group[data-layout-group$=access]{grid-template-columns:220px minmax(0,1fr);align-items:center}.ocr-field-group[data-layout-group$=access] .ocr-field-group-title{padding-top:0;white-space:nowrap}.ocr-field-group[data-layout-group$=access] .ocr-field-group-grid{grid-template-columns:minmax(260px,1fr) minmax(190px,.42fr);align-items:center;gap:14px}.ocr-field-group[data-layout-group$=access] .ocr-correction-field.is-compact{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}.ocr-field-group[data-layout-group$=access] .ocr-correction-field.is-compact>label{white-space:nowrap}.ocr-field-group[data-layout-group=common_assets_checklist]{grid-template-columns:1fr}.ocr-field-group[data-layout-group=common_assets_checklist] .ocr-field-group-title{display:none}.ocr-field-group[data-layout-group=common_assets_checklist] .ocr-field-group-grid{grid-template-columns:repeat(2,minmax(220px,1fr));align-items:center;column-gap:28px;row-gap:10px}.ocr-field-group[data-layout-group=common_assets_checklist] .ocr-correction-field.is-compact.is-checkbox-option .ocr-checkbox-control label{min-height:40px}.ocr-correction-field.is-compact{grid-template-columns:1fr;align-items:stretch;gap:6px;min-height:0;padding:0;border:0;border-radius:0;background:transparent}.ocr-correction-field.is-compact.layout-wide{grid-column:span 2}.ocr-correction-field.is-compact>label{gap:2px;font-size:var(--text-sm)}.ocr-correction-field.is-compact small{display:none}.ocr-correction-field.is-compact textarea{min-height:44px}.ocr-correction-field.is-compact.is-checkbox-option{min-height:32px;padding:0}.ocr-correction-field.is-compact.is-checkbox-option .ocr-checkbox-control label{min-height:32px;padding:0;border:0;border-radius:0;background:transparent}.ocr-correction-field textarea{width:100%;min-height:74px;padding:10px 12px;border:1px solid #94a3b8;border-radius:8px;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.06);color:var(--color-text);resize:vertical;font-family:inherit;font-size:var(--text-base);font-weight:400;line-height:1.6}.ocr-correction-field.is-table-editor-field{grid-template-columns:1fr;gap:8px;align-items:stretch}.ocr-table-editor{display:grid;min-width:0;width:100%}.ocr-table-editor-scroll{width:100%;max-height:420px;overflow:auto;border:1px solid #94a3b8;border-radius:8px;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.05)}.ocr-table-editor table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed;font-size:var(--text-sm)}.ocr-table-editor td,.ocr-table-editor th{width:112px;min-width:112px;padding:0;border:1px solid #cbd5e1;vertical-align:top}.ocr-table-editor td:first-child,.ocr-table-editor td:nth-child(10),.ocr-table-editor td:nth-child(11),.ocr-table-editor td:nth-child(5),.ocr-table-editor td:nth-child(6),.ocr-table-editor td:nth-child(8),.ocr-table-editor td:nth-child(9),.ocr-table-editor th:first-child,.ocr-table-editor th:nth-child(10),.ocr-table-editor th:nth-child(11),.ocr-table-editor th:nth-child(5),.ocr-table-editor th:nth-child(6),.ocr-table-editor th:nth-child(8),.ocr-table-editor th:nth-child(9){width:86px;min-width:86px}.ocr-table-editor td:nth-child(4),.ocr-table-editor th:nth-child(4){width:260px;min-width:260px}.ocr-table-editor td:nth-child(7),.ocr-table-editor th:nth-child(7){width:132px;min-width:132px}.ocr-private-asset-table-editor td:first-child,.ocr-private-asset-table-editor td:nth-child(5),.ocr-private-asset-table-editor td:nth-child(6),.ocr-private-asset-table-editor th:first-child,.ocr-private-asset-table-editor th:nth-child(5),.ocr-private-asset-table-editor th:nth-child(6){width:96px;min-width:96px}.ocr-private-asset-table-editor td:nth-child(2),.ocr-private-asset-table-editor th:nth-child(2){width:260px;min-width:260px}.ocr-private-asset-table-editor td:nth-child(3),.ocr-private-asset-table-editor td:nth-child(4),.ocr-private-asset-table-editor th:nth-child(3),.ocr-private-asset-table-editor th:nth-child(4){width:180px;min-width:180px}.ocr-table-editor-actions{padding:6px!important;text-align:center}.ocr-table-add-row,.ocr-table-editor-actions button{border:1px solid #94a3b8;border-radius:6px;background:#fff;color:#0f172a;cursor:pointer;font:inherit;font-size:var(--text-sm);font-weight:600}.ocr-table-editor-actions button{min-height:40px;padding:5px 8px}.ocr-table-add-row{min-height:40px;justify-self:start;margin-top:8px;padding:7px 10px}.ocr-table-editor th{position:sticky;top:0;z-index:1;min-height:44px;padding:8px;color:var(--color-text);background:#f8fafc;font-size:var(--text-sm);font-weight:600;line-height:1.6;text-align:center}.ocr-table-editor input{width:100%;min-width:0;min-height:40px;padding:7px 8px;border:0;background:transparent;color:var(--color-text);font:inherit;font-size:var(--text-base);font-weight:400;line-height:1.6}.ocr-table-editor input:focus{background:#eef8fc;box-shadow:inset 0 0 0 2px var(--crystal-600);outline:2px solid var(--color-focus);outline-offset:2px}.land-block-tables{display:grid;gap:24px;width:100%;min-width:0}.land-block-table-section{container:land-block-section/inline-size;min-width:0;padding:20px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--color-text)}.land-block-heading{display:grid;gap:12px;margin-bottom:20px;padding:4px 0 24px;border-bottom:1px solid #e2e8f0;text-align:center}.land-block-heading h3{margin:0 0 8px;color:#0f172a;font-size:var(--text-base);line-height:1.6}.land-block-heading-line{width:100%;max-width:640px;min-width:0;margin-inline:auto}.land-block-heading-line label{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:12px;margin:0}.land-block-heading-line label>span{color:#475569;font-size:var(--text-sm);font-weight:500;text-align:right}.land-block-heading-line textarea{width:100%;max-width:none;min-width:0;margin:0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#0f172a;font:inherit;font-size:var(--text-sm);font-weight:400;text-align:left;min-height:44px;line-height:1.6;resize:none;overflow:hidden}.land-block-heading-line textarea:focus{outline:2px solid var(--crystal-600);outline-offset:1px;background:#fff}@container land-block-section (max-width: 480px){.land-block-heading-line label{grid-template-columns:minmax(0,1fr);gap:6px}.land-block-heading-line label>span{text-align:left}}.land-block-table-count{margin:0 0 8px;color:#475569;font-size:var(--text-sm);overflow-wrap:anywhere}.land-block-table-scroll{max-height:65vh;overflow:auto}.land-block-pagination{display:flex;flex-wrap:wrap;align-items:end;gap:12px;min-width:0}.land-block-area-picker{display:grid;flex:1 1 280px;gap:6px;min-width:0;max-width:100%}.land-block-area-picker select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:var(--color-text);font:inherit}.land-block-page-buttons{display:flex;align-items:center;gap:12px}.land-block-page-buttons span{white-space:nowrap}.land-block-table{width:100%;min-width:460px;border-collapse:collapse;table-layout:fixed;font-size:var(--text-sm)}.land-block-table td,.land-block-table th{padding:8px;border:1px solid #64748b;vertical-align:top;white-space:normal;overflow-wrap:anywhere;line-height:1.6}.land-block-table th{position:sticky;top:0;z-index:1;background:#f8fafc;text-align:center}.land-block-table td:first-child,.land-block-table th:first-child{width:12%;text-align:center}.land-block-table td:nth-child(3),.land-block-table th:nth-child(3){width:26%;text-align:center}.land-block-table .land-block-row-actions{width:84px;text-align:center}.land-block-delete-button{padding:7px 10px;border:1px solid #fca5a5;border-radius:6px;background:#fff;color:#b91c1c;cursor:pointer;font:inherit;font-size:var(--text-sm);font-weight:600}.land-block-delete-button:hover{background:var(--color-danger-bg)}.land-block-delete-button:focus-visible{outline:2px solid #b91c1c;outline-offset:2px}.land-block-table-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}.land-block-table-actions .ocr-table-add-row{margin-top:0}.land-block-table td:has(textarea){padding:0}.land-block-table textarea{display:block;width:100%;min-width:0;min-height:40px;margin:0;padding:8px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:1.6;text-align:inherit;resize:none;overflow:hidden}.land-block-table textarea:focus{outline:2px solid var(--crystal-600);outline-offset:-2px;background:#eef8fc}.land-block-cell-warning{display:block;padding:6px 8px;color:var(--color-warning);background:var(--color-warning-bg);font-size:var(--text-sm);text-align:left;white-space:normal;overflow-wrap:anywhere}.land-block-row-tools{margin-top:12px;font-size:var(--text-sm)}.land-block-row-tools summary{cursor:pointer}.land-block-row-tool,.land-block-row-tool label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.land-block-row-tool input{width:70px}.ocr-input-with-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;width:100%}.ocr-input-with-unit input{width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid #94a3b8;border-radius:8px;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.06);color:var(--color-text);font:inherit;font-size:var(--text-base);font-weight:400}.ocr-input-with-unit span{display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;padding:0;color:#334155;border:0;border-radius:0;background:transparent;font-size:var(--text-sm);font-weight:600;white-space:nowrap}.ocr-input-with-unit:has(span) input{border-radius:8px}.ocr-correction-field textarea::placeholder,.ocr-input-with-unit input::placeholder{color:var(--color-muted);font-weight:400}.ocr-correction-field textarea:focus,.ocr-input-with-unit input:focus{border-color:var(--crystal-600);box-shadow:0 0 0 3px rgba(0,158,227,.15),inset 0 1px 2px rgba(15,23,42,.06);outline:2px solid var(--color-focus);outline-offset:2px}.ocr-correction-field .ocr-checkbox-control{padding:0;border:0;background:transparent}.ocr-correction-field .ocr-checkbox-control label,.ocr-radio-group label{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;color:var(--text);border:1px solid var(--line);border-radius:8px;background:#fff;font-size:var(--text-sm);font-weight:600}.ocr-correction-field .ocr-checkbox-control input,.ocr-radio-group input{width:17px;height:17px;min-height:17px;padding:0;accent-color:var(--crystal-600);cursor:pointer}.ocr-radio-group{display:flex;flex-wrap:wrap;gap:8px}.ocr-correction-actions{position:sticky;top:86px;z-index:3;display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:16px;padding:10px 12px;border:1px solid rgba(0,56,232,.16);border-radius:9px;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(0,56,232,.12);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.ocr-correction-action-copy{display:grid;min-width:0;gap:2px}.ocr-correction-action-copy strong{color:var(--text);font-size:var(--text-sm)}.ocr-correction-action-copy span{color:var(--muted);font-size:var(--text-sm);line-height:1.6}.ocr-correction-action-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.review-actions.ocr-correction-actions .ocr-action-button{width:auto;min-width:140px}.review-files-empty{display:grid;place-items:center;min-height:38px;color:var(--muted);border:1px dashed var(--line);border-radius:8px;font-size:var(--text-sm);font-weight:600}.tag-list{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;color:var(--crystal-800);border:1px solid var(--crystal-200);border-radius:999px;background:var(--crystal-50);font-size:var(--text-sm);font-weight:600}.permission-tag{color:var(--color-muted);border-color:var(--color-border);background:#f1f5f9}.security-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:18px}.session-list{display:grid;gap:10px}.session-item{display:grid;gap:7px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff}.session-item div{display:grid;gap:4px}.session-item small,.session-item span{color:var(--muted);font-size:var(--text-sm)}.bot-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}.admin-filter-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,auto) minmax(160px,auto) auto;gap:10px;margin-bottom:16px}.admin-filter-form input,.admin-filter-form select{min-height:40px}.pagination{display:flex;align-items:center;justify-content:flex-end;margin-top:16px;color:var(--muted);font-weight:600}.pagination [aria-disabled=true]{opacity:.45;pointer-events:none}.table-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.report-selection-actions{justify-content:flex-end;flex-wrap:wrap;margin-bottom:12px}.report-selection-actions+.table-wrap input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:var(--crystal-600)}.vertical-actions{display:grid;gap:10px;width:100%}.vertical-actions button,.vertical-actions form{width:100%}.secret-code{overflow-wrap:anywhere;color:var(--ink);font-family:inherit;font-size:var(--text-sm);font-weight:600}.totp-setup{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:14px}.totp-qr{width:220px;height:220px;border:1px solid var(--line);border-radius:8px;background:#fff}.checkbox-inline{display:flex;align-items:center;gap:10px;min-height:42px;color:var(--ink);font-weight:600}.checkbox-inline input{width:18px;height:18px;min-height:18px}.inline-status{margin-left:8px;vertical-align:middle}.checkbox-item.disabled{opacity:.68}.nav-open .sidebar{transform:translateX(0)}@media (max-width:1180px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.ocr-correction-layout,.report-grid,.review-layout,.two-column{grid-template-columns:1fr}.ocr-correction-list,.ocr-preview-frame,.ocr-section-list{max-height:none}.ocr-correction-field{align-items:stretch}.ocr-correction-field,.ocr-field-section[data-section-key=building_usage] .ocr-correction-list,.ocr-field-section[data-section-key=report_summary] .ocr-correction-list{grid-template-columns:1fr}.ocr-field-section[data-section-key=building_usage] .ocr-correction-field.field-key-usage_common_asset_locations,.ocr-field-section[data-section-key=building_usage] .ocr-correction-field.field-key-usage_total_building_count,.ocr-field-section[data-section-key=building_usage] .ocr-correction-field.field-key-usage_total_parking_count,.ocr-field-section[data-section-key=building_usage] .ocr-field-group{grid-area:auto;grid-column:auto}.ocr-field-section[data-section-key=building_usage] .ocr-correction-field,.ocr-field-section[data-section-key=building_usage] .ocr-field-group[data-layout-group]{grid-area:auto}.ocr-field-section[data-section-key=report_summary] .ocr-correction-field,.ocr-field-section[data-section-key=report_summary] .ocr-correction-field:is(.field-key-condominium_name,.field-key-condominium_location,.field-key-land_province,.field-key-total_land_area,.field-key-company_owner){grid-column:auto;grid-template-columns:220px minmax(0,1fr)}.ocr-field-group{grid-template-columns:1fr}.ocr-field-group-title{padding-top:0}.ocr-field-group-grid,.ocr-field-group[data-layout-group$=_boundary],.ocr-field-group[data-layout-group$=_boundary] .ocr-field-group-grid,.ocr-field-group[data-layout-group$=access],.ocr-field-group[data-layout-group$=access] .ocr-field-group-grid,.ocr-field-group[data-layout-group$=sanitary_fixtures],.ocr-field-group[data-layout-group$=sanitary_fixtures] .ocr-field-group-grid,.ocr-field-group[data-layout-group$=utilities],.ocr-field-group[data-layout-group$=utilities] .ocr-field-group-grid,.ocr-field-group[data-layout-group=common_assets_checklist] .ocr-field-group-grid{grid-template-columns:1fr}.ocr-correction-field.is-compact.layout-wide{grid-column:auto}.review-layout{grid-template-columns:minmax(0,1fr)}.document-preview,.review-form{min-height:auto}.admin-grid,.admin-user-grid,.edit-user-workspace,.security-grid,.split-admin-form{grid-template-columns:1fr}.user-directory-row{grid-template-columns:minmax(0,1fr);align-items:start}.user-action-cell{justify-content:flex-start}.role-edit-list{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-filter-form{grid-template-columns:1fr 1fr}.review-item{grid-template-areas:"summary" "details" "actions";grid-template-columns:minmax(0,1fr);align-items:stretch}.review-detail-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.review-actions{grid-template-columns:minmax(0,1fr) minmax(160px,auto);align-items:center}.review-item>.review-queue-actions{grid-template-columns:minmax(180px,.7fr) minmax(200px,1fr)}.review-item>.review-queue-actions .review-reject-form{grid-column:1/-1}.dashboard-day-view{grid-template-columns:1fr}.dashboard-week-view{grid-auto-columns:minmax(210px,1fr);grid-template-columns:none}}@media (max-width:860px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;width:270px;transform:translateX(-100%);transition:transform .2s ease}.mobile-menu{display:inline-grid}.topbar{padding:12px 16px}.ocr-category-control{grid-template-columns:1fr}.ocr-category-jump-heading,.ocr-field-section-header{align-items:flex-start;flex-direction:column}.ocr-category-jump-list{grid-template-columns:1fr}.ocr-field-section-heading{align-items:flex-start}.ocr-field-section-count{align-self:flex-start}.ocr-field-section[data-section-key=report_summary] .ocr-correction-list{grid-template-columns:1fr}.ocr-field-section[data-section-key=report_summary] .ocr-correction-field,.ocr-field-section[data-section-key=report_summary] .ocr-correction-field:is(.field-key-condominium_name,.field-key-condominium_location,.field-key-land_province,.field-key-total_land_area,.field-key-company_owner){grid-column:auto;grid-template-columns:1fr}.content-view,.route-view{padding:22px 16px 38px}.page-title{align-items:flex-start;flex-direction:column}.admin-tabs{width:100%}.top-actions{gap:8px}.profile div{display:none}.login-page{grid-template-columns:1fr;padding:16px}.login-hero{min-height:360px}.review-actions{grid-template-columns:1fr}}@media (max-width:620px){.metrics-grid,.review-item>.review-queue-actions,.review-item>.review-queue-actions .review-reject-form{grid-template-columns:1fr}.topbar{flex-wrap:wrap}.field-grid{grid-template-columns:1fr}.button-group,.segmented-control{width:100%;overflow-x:auto}.paper{min-height:500px;padding-inline:20px}.box-a{left:20px;width:170px}.box-b,.box-c{right:20px}.login-card{padding:22px}.login-copy h1{font-size:36px}.checkbox-list,.role-edit-list{grid-template-columns:1fr}.admin-card-footer,.admin-user-card-header{align-items:flex-start;flex-direction:column}.role-editor-item{grid-template-columns:auto minmax(0,1fr)}.role-editor-item .tag-list{grid-column:2}.admin-form .primary-button{width:100%}.admin-filter-form{grid-template-columns:1fr}.pagination{align-items:stretch;flex-direction:column}.totp-setup{grid-template-columns:1fr}.totp-qr{justify-self:center}.panel-header{flex-direction:column}.dashboard-calendar-header{align-items:stretch}.dashboard-calendar-stats{grid-template-columns:1fr}.dashboard-week-view{grid-auto-columns:minmax(205px,82vw);grid-template-columns:none}.dashboard-calendar-grid,.dashboard-calendar-weekdays{gap:5px}.dashboard-calendar-day{min-height:64px;padding:7px}.dashboard-calendar-day-head strong{font-size:var(--text-base)}.chart-stat-strip-three{grid-template-columns:1fr}.review-item{padding:12px}.review-detail-grid{grid-template-columns:1fr 1fr}.review-note-detail{grid-column:1/-1}.review-file-links{grid-template-columns:1fr}}.submitted-review-header,.submitted-review-summary{align-items:center}.submitted-review-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.submitted-review-document-meta{display:grid;min-width:0;gap:2px}.submitted-review-document-meta small,.submitted-review-document-meta strong{display:block;overflow-wrap:anywhere;white-space:normal}.submitted-ai-trigger{display:grid;justify-items:start;gap:5px}.submitted-ai-trigger small{color:var(--muted);font-size:var(--text-sm)}.submitted-ai-dialog{width:min(1600px,calc(100vw - 24px));max-width:none;max-height:min(92vh,980px);padding:0;overflow:hidden;color:var(--ink);border:0;border-radius:14px;background:#fff;box-shadow:0 28px 80px rgba(3,24,54,.3)}.submitted-ai-dialog::backdrop{background:rgba(4,20,42,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.submitted-ai-dialog-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:min(92dvh,980px);max-height:min(92vh,980px)}.submitted-ai-dialog-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#eef7ff,#fff 76%)}.submitted-ai-dialog-header h2,.submitted-ai-dialog-header p{margin:0}.submitted-ai-dialog-header h2{color:var(--crystal-800);font-size:var(--text-lg)}.submitted-ai-dialog-header p{overflow:hidden;color:var(--muted);font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap}.submitted-ai-dialog-icon{display:inline-grid;width:38px;height:38px;place-items:center;color:#fff;border-radius:10px;background:var(--color-primary)}.submitted-ai-dialog-icon svg{width:19px;height:19px}.submitted-ai-dialog-content{display:grid;align-content:start;gap:18px;min-height:0;padding:18px;overflow-y:auto}.submitted-ai-dialog-section{display:grid;gap:10px}.submitted-ai-dialog-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.submitted-ai-dialog-section-heading h3,.submitted-ai-dialog-section-heading p{margin:0}.submitted-ai-dialog-section-heading h3{color:var(--ink);font-size:var(--text-base)}.submitted-ai-dialog-section-heading p{margin-top:2px;color:var(--muted);font-size:var(--text-sm)}.submitted-ai-section-list{display:grid;gap:22px}.submitted-ai-category-section{min-width:0;scroll-margin-top:0}.submitted-ai-correction-list{width:100%;min-width:0}.submitted-ai-correction-field{min-width:0}.submitted-ai-correction-field .ocr-field-state-badge{justify-self:start;width:fit-content;min-height:20px;padding:2px 7px;font-size:var(--text-sm)}.submitted-ai-correction-field.is-checkbox-option .submitted-ai-readonly-choice{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}.submitted-ai-empty-choice{color:var(--muted);font-size:var(--text-sm)}.submitted-ai-readonly-choice input{cursor:default;pointer-events:none}.submitted-ai-readonly-choice label{cursor:default}.ocr-checkbox-control.submitted-ai-readonly-choice:has(input:disabled){cursor:default;opacity:1}.submitted-ai-readonly-choice label>span{overflow:visible;white-space:normal;text-overflow:clip}.submitted-ai-readonly-choice input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;flex-shrink:0;width:17px;height:17px;padding:0;border:1px solid #94a3b8;border-radius:3px;background:#fff;opacity:1}.submitted-ai-readonly-choice input[type=checkbox]:checked{border-color:#1674d1;background:#1674d1}.submitted-ai-readonly-choice input[type=checkbox]:checked:after{content:"";width:5px;height:9px;margin-top:-2px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.submitted-ai-dialog-footer{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid var(--line);background:#f8fbff}.submitted-review-snapshot-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin:10px 0;color:var(--muted);font-size:var(--text-sm)}.submitted-review-snapshot-meta .snapshot-current{color:var(--color-success);font-weight:600}.submitted-review-snapshot-meta .snapshot-superseded{color:var(--color-warning);font-weight:600}.submitted-ai-input-with-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;width:100%}.submitted-ai-field-value{display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;color:var(--color-text);border:1px solid #94a3b8;border-radius:8px;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.06);font:inherit;font-weight:400}.submitted-ai-field-value[readonly]{cursor:text}.submitted-ai-field-unit{display:inline-flex;min-height:44px;align-items:center;color:var(--color-text);font-size:var(--text-base);font-weight:600;white-space:nowrap}.submitted-ai-structured-table{width:100%;max-height:420px;overflow:auto;scrollbar-gutter:stable;border:1px solid #cfe0f4;border-radius:7px}.submitted-ai-structured-table table{width:max-content;min-width:100%;border-collapse:collapse}.submitted-ai-structured-table td,.submitted-ai-structured-table th{min-width:120px;padding:8px 10px;border-right:1px solid #dbe7f5;border-bottom:1px solid #dbe7f5;font-size:var(--text-sm);vertical-align:top;white-space:normal}.submitted-ai-structured-table th{position:sticky;top:0;z-index:1;color:#315a82;background:#eef7ff;font-weight:600;text-transform:none}.submitted-ai-structured-table td:last-child,.submitted-ai-structured-table th:last-child{border-right:0}.submitted-ai-structured-table tbody tr:last-child td{border-bottom:0}.submitted-ai-structured-table .submitted-ai-structured-table-empty{color:var(--muted);font-style:italic;text-align:center}.submitted-review-warnings{margin:10px 0 0;padding-left:20px;color:var(--color-warning);font-size:var(--text-sm)}.submitted-review-status{display:grid;min-width:220px;gap:7px;white-space:normal}.submitted-review-status .status{justify-self:start}@media (max-width:620px){.submitted-review-header{align-items:flex-start}.submitted-review-summary{justify-content:flex-start}.submitted-ai-dialog{width:calc(100vw - 18px);max-height:92vh;border-radius:10px}.submitted-ai-dialog-shell{max-height:92vh}.submitted-ai-dialog-content,.submitted-ai-dialog-footer,.submitted-ai-dialog-header{padding-right:12px;padding-left:12px}.submitted-ai-dialog-section-heading{flex-direction:column}}.submitted-ai-compare-toolbar,.submitted-ai-pdf-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:10px 18px;border-bottom:1px solid var(--line);white-space:normal;font-size:var(--text-sm)}.submitted-ai-compare-toolbar{color:var(--muted);background:#f8fbff}.submitted-ai-compare-actions,.submitted-ai-compare-actions a,.submitted-ai-compare-size,.submitted-ai-pdf-heading a,.submitted-ai-pdf-heading strong{display:inline-flex;align-items:center;gap:8px}.submitted-ai-compare-actions{flex-wrap:wrap}.submitted-ai-compare-actions .secondary-button{min-height:40px;padding:4px 8px;font-size:var(--text-sm)}.submitted-ai-compare-actions svg{width:16px;height:16px}.submitted-ai-compare-size select{width:auto;min-height:40px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}.submitted-ai-compare-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;min-width:0;overflow:hidden;white-space:normal}.submitted-ai-compare-workspace[data-pdf-width="40"]{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}.submitted-ai-compare-workspace[data-pdf-width="60"]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.submitted-ai-pdf-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;min-width:0;border-right:1px solid var(--line);background:#e9edf3}.submitted-ai-pdf-heading{padding:8px 12px;background:#fff}.submitted-ai-pdf-heading svg{width:16px;height:16px}.submitted-ai-pdf-heading a{min-height:40px;padding:4px 8px;font-size:var(--text-sm)}.submitted-ai-pdf-panel iframe{display:block;width:100%;height:100%;min-height:0;border:0}.submitted-ai-pdf-empty{align-self:center;padding:24px;color:var(--muted);text-align:center}.submitted-ai-compare-workspace .submitted-ai-dialog-content{min-width:0;overscroll-behavior:contain;scrollbar-gutter:stable}.submitted-ai-snapshot-details{min-width:0;color:var(--muted);font-size:var(--text-sm);overflow-wrap:anywhere}.submitted-ai-snapshot-details summary{cursor:pointer}.submitted-ai-compare-workspace[data-pdf-visible=true] .submitted-ai-correction-field,.submitted-ai-compare-workspace[data-pdf-visible=true] .submitted-ai-field-group{grid-template-columns:minmax(0,1fr);gap:6px}.submitted-ai-compare-workspace[data-pdf-visible=true] .ocr-field-group-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}.submitted-ai-compare-workspace[data-pdf-visible=true] .ocr-correction-field.is-compact.layout-wide{grid-column:1/-1}.submitted-ai-compare-workspace[data-pdf-visible=true] .ocr-field-group-title{white-space:normal}@media (max-width:760px){.submitted-ai-compare-workspace[data-pdf-width]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,45fr) minmax(0,55fr)}.submitted-ai-compare-size{display:none}.submitted-ai-pdf-panel{border-right:0;border-bottom:1px solid var(--line)}.submitted-ai-compare-toolbar{padding:8px 12px}}.submitted-ai-compare-workspace[data-pdf-visible=false]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.submitted-ai-pdf-panel[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.evidence-viewer{display:grid;min-width:0;gap:10px}.evidence-viewer-page-nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}.evidence-viewer-page-button{flex:0 0 auto;min-height:40px;padding:0 10px;color:var(--muted);border:1px solid var(--border,var(--line));border-radius:6px;background:var(--surface,#fff);font-size:var(--text-sm);font-weight:600}.evidence-viewer-page-button:focus-visible,.evidence-viewer-page-button:hover{color:var(--crystal-800);border-color:var(--crystal-300);outline:2px solid var(--color-focus);outline-offset:2px;box-shadow:0 0 0 3px rgba(22,185,242,.14)}.evidence-viewer-page-button.active{color:#fff;border-color:var(--crystal-600);background:var(--color-primary)}.evidence-viewer-page-shell{overflow:auto;max-height:min(68vh,840px);border:1px solid var(--border,var(--line));border-radius:8px;background:#edf5fb}.evidence-viewer-page-caption{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:12px;padding:8px 12px;color:var(--muted);border-bottom:1px solid rgba(148,163,184,.35);background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:var(--text-sm);font-weight:600}.evidence-viewer-page-caption span:last-child{color:var(--crystal-700)}.evidence-viewer-page-canvas{position:relative;width:100%;line-height:0}.evidence-viewer-page-image{display:block;width:100%;height:auto;background:#fff}.evidence-viewer-overlay{position:absolute;inset:0;z-index:2;pointer-events:none}.evidence-viewer-highlight{position:absolute;z-index:1;display:block;box-sizing:border-box;min-width:0;min-height:0;padding:0;margin:0;color:#075985;border:2px solid rgba(2,132,199,.96);border-radius:3px;background:rgba(56,189,248,.2);box-shadow:0 0 0 1px rgba(255,255,255,.78),0 0 10px rgba(2,132,199,.2);pointer-events:none}button.evidence-viewer-highlight{pointer-events:auto;cursor:pointer}button.evidence-viewer-highlight:after{position:absolute;inset:-5px;content:""}.evidence-viewer-highlight.selected,button.evidence-viewer-highlight:focus-visible,button.evidence-viewer-highlight:hover{z-index:2;border-color:#e96f23;background:rgba(251,146,60,.28);box-shadow:0 0 0 2px rgba(255,255,255,.92),0 0 0 4px rgba(234,88,12,.34),0 0 14px rgba(234,88,12,.25)}button.evidence-viewer-highlight:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.evidence-viewer-empty-state,.evidence-viewer-pdf-fallback{display:grid;gap:12px;padding:14px;border:1px solid var(--border,var(--line));border-radius:8px;background:var(--surface-muted,#f8fafc)}.evidence-viewer-empty-state,.evidence-viewer-fallback-message{color:var(--muted);font-size:var(--text-sm)}.evidence-viewer-empty-state strong,.evidence-viewer-fallback-message strong{display:block;margin-bottom:3px;color:var(--text,var(--ink))}.evidence-viewer-pdf-frame{width:100%;min-height:280px;height:min(52vh,620px);border:1px solid var(--border,var(--line));border-radius:6px;background:#fff}.evidence-viewer-pdf-link{justify-self:start}.review-evidence-panel{display:grid;gap:10px}.review-evidence-actions{display:flex;justify-content:flex-start}.review-evidence-run-status{display:grid;gap:3px;padding:9px 11px;border:1px solid #bae6fd;border-radius:7px;background:#f0f9ff;color:#0c4a6e;font-size:var(--text-sm)}.review-evidence-run-status strong{font-weight:600}.review-evidence-run-status.processing,.review-evidence-run-status.queued{border-color:#fde68a;background:var(--color-warning-bg);color:var(--color-warning)}.review-evidence-run-status.failed{border-color:#fecaca;background:var(--color-danger-bg);color:var(--color-danger)}.land-appraisal-consistency{display:grid;gap:4px;margin-top:14px;padding:11px 13px;border:1px solid;border-radius:8px;font-size:var(--text-sm);line-height:1.6}.land-appraisal-consistency.is-consistent{border-color:#86efac;background:var(--color-success-bg);color:var(--color-success)}.land-appraisal-consistency.is-mismatch{border-color:#fca5a5;background:var(--color-danger-bg);color:var(--color-danger)}.ocr-field-evidence-hint{display:block;margin:-2px 0 6px;color:#0369a1;font-size:var(--text-sm);font-weight:600;line-height:1.6}.ocr-field-evidence-hint.is-manual{color:var(--color-success)}.ocr-correction-field.review-state-extracted{border-color:#93c5fd;background:#eff6ff}.ocr-correction-field.review-state-needs_review{border-color:#f59e0b;background:var(--color-warning-bg);box-shadow:inset 3px 0 #f59e0b}.ocr-correction-field.review-state-confirmed,.ocr-correction-field.review-state-corrected{border-color:#86efac;background:var(--color-success-bg)}.ocr-correction-field.review-state-rejected{border-color:#fecaca;background:#fff7f7}.ocr-field-review-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:2px 0 7px}.ocr-correction-field.has-low-confidence{outline:2px solid #dc2626;outline-offset:-2px;border-radius:8px;background:#fff5f5}.ocr-correction-field .ocr-low-confidence-notice{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 10px;color:var(--color-danger);font-size:var(--text-sm);line-height:1.6}.ocr-low-confidence-notice strong{color:var(--color-danger);font-size:inherit}.ocr-low-confidence-source{border:1px solid #dc2626;border-radius:6px;padding:4px 10px;background:white;color:var(--color-danger);cursor:pointer;font:inherit}.ocr-low-confidence-source:hover{background:#fee2e2}.ocr-low-confidence-source:focus-visible{outline:2px solid #991b1b;outline-offset:2px}.ocr-field-state-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#475569;font-size:var(--text-sm);font-weight:600}.ocr-field-state-badge.state-extracted{border-color:#93c5fd;background:#dbeafe;color:#1e40af}.ocr-field-state-badge.state-needs_review{border-color:#fbbf24;background:#fef3c7;color:var(--color-warning)}.ocr-field-state-badge.state-confirmed,.ocr-field-state-badge.state-corrected{border-color:#86efac;background:#dcfce7;color:var(--color-success)}.ocr-field-state-badge.state-rejected{border-color:#fca5a5;background:#fee2e2;color:var(--color-danger)}.ocr-field-evidence-details{position:relative;font-size:var(--text-sm)}.ocr-field-evidence-details>summary{cursor:pointer;color:#075985;font-weight:600}.ocr-field-evidence-card{display:grid;gap:5px;min-width:min(420px,80vw);margin-top:7px;padding:10px;border:1px solid #bae6fd;border-radius:8px;background:#fff;color:#334155}.ocr-field-evidence-card blockquote{margin:2px 0;padding:8px;border-left:3px solid #38bdf8;background:#f0f9ff;white-space:pre-wrap}.ocr-unresolved-note{align-self:center;color:var(--color-warning);font-size:var(--text-sm);font-weight:600}.evidence-viewer-highlight.role-label{border-color:#2563eb;background:rgba(59,130,246,.14)}.evidence-viewer-highlight.role-value{border-color:#059669;background:rgba(16,185,129,.18)}.evidence-viewer-highlight.state-needs_review{border-color:#d97706;background:rgba(245,158,11,.2)}.evidence-viewer-highlight.state-rejected{border-color:#dc2626;border-style:dashed;background:rgba(239,68,68,.1)}@media (max-width:620px){.review-actions.ocr-correction-actions{top:76px;grid-template-columns:1fr;align-items:stretch;gap:8px}.ocr-correction-action-buttons{display:grid;grid-template-columns:1fr}.review-actions.ocr-correction-actions .ocr-action-button{width:100%}.evidence-viewer-page-shell{max-height:min(62vh,680px)}.evidence-viewer-page-caption{align-items:flex-start;flex-direction:column;gap:2px}}.app-shell{background:#f6f8fb}.notification-summary{margin:0;padding:10px 16px;font-size:var(--text-sm);color:var(--color-muted)}.notification-document-link{display:inline-block;color:#1d4ed8;font-size:var(--text-sm);text-decoration:underline;text-underline-offset:3px}.ocr-correction-form[aria-busy=true] button[type=submit]{opacity:.6;cursor:wait}.pagination{flex-wrap:wrap;gap:12px;padding-block:16px;font-size:var(--text-sm);color:#475569}.permission-summary{gap:10px;padding:16px;margin-top:16px}.permission-summary,.role-assignment-card{display:grid;border:1px solid var(--line);border-radius:12px}.role-assignment-card{gap:8px;padding:12px;min-width:0}.permission-summary .tag,.role-assignment-card .tag{overflow-wrap:anywhere;white-space:normal}.audit-filter-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end;margin-bottom:20px}.audit-filter-form label{display:grid;gap:6px}.admin-form,.admin-workspace,.checkbox-fieldset,.permission-summary,.role-editor-list,.user-profile-panel{min-width:0;min-inline-size:0}.checkbox-item span,.user-profile-panel>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.admin-form input:not([type=checkbox]):not([type=hidden]),.admin-form select,.admin-form textarea{width:100%;min-width:0}.edit-user-workspace{grid-template-areas:"summary profile" "summary roles"}.edit-user-workspace>.user-profile-panel{grid-area:summary}.edit-user-workspace>.role-editor-panel{grid-area:profile}.edit-user-workspace>.role-editor-panel:last-child{grid-area:roles}@media (max-width:1180px){.edit-user-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"summary" "profile" "roles"}}.field-grid>*,.login-card,.ocr-correction-layout>*,.page-title>*,.panel,.panel-header>*,.review-layout>*,.route-view>*,.security-grid>*{min-width:0}.auth-switch,.page-title h1,.panel-header h2,.profile strong,.seed-hint,.session-item{overflow-wrap:anywhere}.auth-switch,.notification-popover-header,.panel-header{flex-wrap:wrap}.profile{max-width:min(360px,40vw)}.profile>div:last-child{min-width:0}.avatar,.top-actions>.icon-button{flex-shrink:0}.nav-backdrop{display:none}.nav-close{justify-self:end;align-self:flex-end;flex-shrink:0}@media screen and (min-width:1025px) and (max-height:800px),screen and (min-width:1025px) and (max-width:1440px){.app-shell{grid-template-columns:232px minmax(0,1fr)}.sidebar{gap:16px;padding:16px 12px}.brand{grid-template-columns:58px minmax(0,1fr);gap:8px 10px;padding:0 4px 14px}.brand .brand-mark{width:58px;height:58px;background-size:auto 50px}.brand strong{font-size:21px}.brand-agency{font-size:var(--text-sm)}.nav-list{gap:4px}.nav-item{min-height:40px;gap:8px;padding:6px 8px;font-size:var(--text-sm)}.nav-item>svg{width:18px;height:18px}.nav-item.active:before{left:-12px}.nav-sublist{padding-left:26px}.nav-subitem{min-height:40px;font-size:var(--text-sm)}.topbar{min-height:64px;padding:10px 20px}.route-view{padding:20px 20px 32px}.page-title{gap:12px;margin-bottom:18px}.page-title h1{font-size:28px}.panel{padding:18px}.review-actions.ocr-correction-actions{top:74px}}@media (max-width:1024px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,calc(100vw - 48px));height:100dvh;overscroll-behavior:contain;visibility:hidden;transform:translateX(-100%);transition:transform .2s ease;z-index:31}.nav-open .sidebar{visibility:visible;transform:translateX(0)}.nav-backdrop{display:block;position:fixed;inset:0;z-index:30;border:0;background:rgb(15 23 42/42%)}.mobile-menu{display:inline-grid}.topbar{padding:12px 16px}.top-actions{gap:8px}.profile{min-width:0;max-width:none}.profile .avatar{display:grid}.profile>div:last-child{display:none}.notification-popover{position:fixed;top:76px;right:16px;max-height:calc(100dvh - 92px);overflow-y:auto}}@media (max-width:620px){.topbar{gap:8px}.topbar .icon-button{width:44px;height:44px}.topbar .avatar{width:36px;height:36px}.top-actions{gap:6px}.route-view{padding:20px 16px 32px}.panel{padding:16px}.login-hero{padding:24px}.login-brand{flex-wrap:wrap}.compact-auth-card h1{font-size:clamp(26px,7vw,34px)}.button-group{flex-wrap:wrap}.segmented-control>*{flex-shrink:0}.admin-tab,.nav-subitem{min-height:44px}.review-actions.ocr-correction-actions{position:static}.totp-qr{width:min(220px,100%);height:auto}.role-editor-item{grid-template-columns:auto minmax(0,1fr)}.audit-filter-form{grid-template-columns:minmax(0,1fr)}.session-item{overflow-wrap:anywhere}body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:var(--text-base)}}@media (prefers-reduced-motion:reduce){.sidebar{transition:none}}:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}.sidebar :is(a,button):focus-visible{outline-color:#fff}.ocr-low-confidence-source{min-height:40px}