:root {
  --primary: #072350;
  --primary-dark: #031430;
  --primary-soft: #eaeef4;
  --accent: #fe5f01;
  --accent-dark: #d94f00;
  --teal: #0e9384;
  --success: #15803d;
  --warning: #d97706;
  --danger: #b42318;
  --ink: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

* { box-sizing: border-box; }
html { font-family: Inter, "Noto Sans Devanagari", system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(38, 55, 200, .24); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: #072350; color: #fff; display: flex; flex-direction: column; z-index: 20; }
.brand-mark { display: flex; align-items: center; gap: 11px; min-height: 48px; }
.brand-mark > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand-mark strong { font-size: 18px; letter-spacing: -.02em; }
.brand-mark small { color: #aeb7db; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.brand-symbol { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.workspace-label { margin: 27px 0 12px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 4px; }
.workspace-label span { color: #aeb7db; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.workspace-label strong { font-size: 13px; font-weight: 600; }
.nav-list { display: grid; gap: 3px; overflow-y: auto; padding-right: 3px; }
.nav-list a { min-height: 42px; padding: 11px 13px; border-radius: 8px; color: #dce1f5; font-size: 13px; font-weight: 500; }
.nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2b3864; font-weight: 700; }
.user-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.user-chip strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { color: #9fa9cf; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button { margin-top: 11px; padding: 7px 0; background: none; border: 0; color: #aeb7db; cursor: pointer; font-size: 12px; }

.main-shell { min-width: 0; }
.topbar { min-height: 89px; padding: 18px 34px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(10px); }
.topbar h1 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.03em; }
.topbar-context { color: var(--muted); font-size: 11px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.notification-button { min-width: 36px; height: 36px; padding: 0 8px; display: flex; gap: 4px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; color: var(--primary); font-size: 9px; background: #fff; }
.notification-button span { color: var(--ink); font-size: 11px; font-weight: 700; }
.secure-label { color: var(--success); padding: 7px 10px; border-radius: 8px; background: #ecfdf3; font-size: 11px; font-weight: 600; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; }
.menu-toggle { display: none; }
.content { max-width: 1480px; padding: 30px 34px 70px; margin: 0 auto; }

.page-heading { margin-bottom: 23px; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.page-heading.compact { align-items: center; }
.page-heading h2 { margin: 5px 0 4px; font-size: 28px; letter-spacing: -.04em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.inverse { color: #b9c1ff; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
.button { min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(38,55,200,.16); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.button-success { background: var(--success); color: #fff; }
.button-danger { background: #fff1f0; color: var(--danger); border-color: #ffd5d2; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.button-block { width: 100%; }
.link-primary { color: var(--primary); font-weight: 700; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.metric-card { min-height: 128px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.metric-card:after { content: ""; position: absolute; top: -20px; right: -20px; width: 68px; height: 68px; border-radius: 50%; background: var(--primary-soft); }
.metric-card.teal:after { background: #e8faf7; }
.metric-card.amber:after { background: #fff7e8; }
.metric-card.green:after { background: #ecfdf3; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-value { margin-top: 17px; display: block; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.metric-note { margin-top: 5px; display: block; color: var(--muted); font-size: 10px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 1px rgba(23,32,51,.02); }
.card-header { min-height: 62px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 14px; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.card-body { padding: 19px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 18px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 14px; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--border); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table strong { display: block; font-size: 12px; }
.data-table small { color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status:before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.status-success { color: var(--success); background: #ecfdf3; }
.status-danger { color: var(--danger); background: #fff1f0; }
.status-warning { color: var(--warning); background: #fff7e8; }
.status-neutral { color: #475467; background: #f2f4f7; }

.task-list { display: grid; }
.task-item { padding: 14px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eef0f3; }
.task-item:last-child { border-bottom: 0; }
.task-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong { display: block; font-size: 12px; }
.task-copy small { color: var(--muted); font-size: 10px; }
.urgent-card { margin-bottom: 20px; padding: 20px 22px; border: 1px solid #cbd1ff; border-radius: var(--radius); background: linear-gradient(120deg, #eef0ff, #f9faff); display: flex; align-items: center; gap: 18px; }
.urgent-card .urgent-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--primary); font-size: 22px; }
.urgent-card h3 { margin: 0 0 5px; font-size: 15px; }
.urgent-card p { margin: 0; color: var(--muted); font-size: 11px; }
.urgent-card .button { margin-left: auto; }

.offer-grid, .counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.offer-card, .counter-card { overflow: hidden; }
.product-placeholder { min-height: 150px; display: grid; place-items: center; color: var(--primary); background: linear-gradient(145deg, #f0f2ff, #e7faf7); font-size: 42px; font-weight: 700; }
.offer-content, .counter-content { padding: 18px; }
.offer-content h3, .counter-content h3 { margin: 6px 0; font-size: 16px; }
.offer-content p, .counter-content p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.offer-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
.offer-meta span { padding: 9px; border-radius: 8px; background: #f8f9fc; }
.offer-meta small { display: block; color: var(--muted); font-size: 9px; }
.offer-meta strong { margin-top: 3px; display: block; font-size: 11px; }

.detail-hero { padding: 24px; margin-bottom: 18px; display: flex; align-items: center; gap: 20px; }
.detail-hero .product-placeholder { min-height: 100px; width: 110px; flex: 0 0 110px; border-radius: 10px; }
.detail-hero h2 { margin: 5px 0 7px; font-size: 22px; }
.detail-hero p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-hero .actions { margin-left: auto; }
.detail-list { display: grid; gap: 12px; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 11px; border-bottom: 1px solid #eef0f3; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); font-size: 11px; }
.detail-row strong { text-align: right; font-size: 11px; }
.principle-banner { padding: 14px 16px; border-left: 3px solid var(--teal); border-radius: 8px; background: #effcf9; color: #11695f; font-size: 11px; line-height: 1.6; }

.form-card { max-width: 840px; }
.model-form { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field:has(textarea), .field:has(input[type=file]), .field-checkbox, .form-actions, .message { grid-column: 1 / -1; }
.field label, .stack-form label { font-size: 11px; font-weight: 700; }
.required, .field-error { color: var(--danger); }
.field small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.field-error { font-size: 10px; }
.form-control, .stack-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d7dbe3; border-radius: 8px; color: var(--ink); background: #fff; }
textarea.form-control { min-height: 90px; resize: vertical; }
.form-control:focus, .stack-form input:focus { border-color: var(--primary); outline: 3px solid rgba(38,55,200,.1); }
.field-checkbox { flex-direction: row; align-items: center; }
.field-checkbox input { width: 18px; height: 18px; order: -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 7px; }

.messages { margin-bottom: 18px; }
.message { padding: 12px 14px; border-radius: 8px; font-size: 11px; }
.message-success { color: var(--success); background: #ecfdf3; border: 1px solid #c7f0d5; }
.message-error { color: var(--danger); background: #fff1f0; border: 1px solid #ffd5d2; }
.message-warning { color: var(--warning); background: #fff7e8; border: 1px solid #ffe0ac; }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-state .empty-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.empty-state h3 { margin: 0 0 7px; font-size: 15px; }
.empty-state p { max-width: 440px; margin: 0 auto 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.score-ring { width: 114px; height: 114px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--primary) calc(var(--score) * 1%), #eaecf0 0); }
.score-ring:after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring > span { z-index: 1; font-size: 25px; font-weight: 700; }
.star-line { color: #e4a11b; letter-spacing: 2px; }
.progress-row { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; margin: 10px 0; font-size: 10px; }
.progress-track { height: 7px; border-radius: 99px; background: #eef0f3; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--primary); }

.evidence-frame { min-height: 420px; display: grid; place-items: center; border-radius: 10px; background: #072350; overflow: hidden; color: #cfd5ee; }
.evidence-frame img { width: 100%; max-height: 560px; object-fit: contain; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metadata-item { padding: 11px; border-radius: 8px; background: #f8f9fc; }
.metadata-item span { display: block; color: var(--muted); font-size: 9px; }
.metadata-item strong { margin-top: 4px; display: block; font-size: 10px; word-break: break-word; }
.review-form { display: grid; gap: 12px; }
.review-form label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 700; }
.review-form select, .review-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }

.filter-bar { padding: 13px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.filter-bar input, .filter-bar select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.filter-bar .button { margin-left: auto; }
.stars { color: #e4a11b; }
.queue-number { min-width: 32px; height: 32px; padding: 0 7px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.audit-summary { max-width: 360px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; word-break: break-word; }

.auth-body { background: #072350; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); }
.login-story { min-height: 100vh; padding: 46px 7vw; color: white; background: radial-gradient(circle at 20% 15%, rgba(80,99,255,.28), transparent 32%), radial-gradient(circle at 90% 75%, rgba(14,147,132,.2), transparent 34%), #072350; display: flex; flex-direction: column; }
.login-brand { align-self: flex-start; }
.login-copy { max-width: 620px; margin: auto 0; }
.login-copy h1 { margin: 15px 0 18px; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.login-copy > p { max-width: 540px; color: #c2c9e3; font-size: 15px; line-height: 1.7; }
.proof-principle { max-width: 530px; margin-top: 34px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); display: flex; gap: 13px; }
.proof-principle > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); }
.proof-principle div { display: flex; flex-direction: column; gap: 5px; }
.proof-principle small { color: #b5bdd9; line-height: 1.5; }
.pilot-note { color: #8e99c1; font-size: 10px; }
.login-panel { padding: 35px; display: grid; place-items: center; background: #f7f8fc; }
.login-card { width: min(440px, 100%); padding: 38px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.login-card-wordmark { height: 34px; width: auto; margin-bottom: 18px; }
.login-card h2 { margin: 9px 0 8px; font-size: 26px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 23px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stack-form { display: grid; gap: 10px; }
.stack-form .button { margin-top: 8px; }
.language-row { margin-top: 22px; padding-top: 18px; display: flex; justify-content: center; gap: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.legal-copy { display: block; margin-top: 16px; color: #98a2b3; text-align: center; line-height: 1.5; }

.shopper-page { min-height: 100vh; padding: 26px 18px 60px; background: linear-gradient(160deg, #f0f2ff, #f7fffd 55%, #fff); }
.shopper-shell { width: min(520px, 100%); margin: 0 auto; }
.shopper-brand { justify-content: center; margin-bottom: 20px; color: var(--ink); }
.shopper-card { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.shopper-image { min-height: 280px; display: grid; place-items: center; background: #f3f5ff; }
.shopper-image img { width: 100%; max-height: 380px; object-fit: contain; }
.shopper-image span { color: var(--primary); font-size: 72px; font-weight: 700; }
.shopper-copy { padding: 25px; }
.shopper-copy h1 { margin: 7px 0 6px; font-size: 27px; }
.shopper-copy .price { font-size: 22px; font-weight: 700; }
.shopper-copy p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.shopper-actions { display: grid; gap: 10px; margin-top: 20px; }
.privacy-copy { margin-top: 16px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.6; }
.mobile-nav, .sidebar-scrim { display: none; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid, .counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 270px; transition: transform .2s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(17,25,54,.46); }
  .menu-open .sidebar-scrim { display: block; }
  .menu-toggle { display: grid; place-items: center; }
  .topbar { padding: 14px 18px; }
  .topbar-actions .secure-label { display: none; }
  .content { padding: 24px 18px 80px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 30px 28px; }
  .login-copy { margin: 70px 0; }
  .login-copy h1 { font-size: 42px; }
  .login-panel { padding: 30px 18px 60px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 74px; }
  .topbar h1 { font-size: 18px; }
  .topbar-context { display: none; }
  .content { padding: 18px 14px 95px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h2 { font-size: 23px; }
  .page-heading .actions { width: 100%; }
  .page-heading .button { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .metric-value { margin-top: 15px; font-size: 20px; }
  .offer-grid, .counter-grid, .three-column { grid-template-columns: 1fr; }
  .urgent-card { align-items: flex-start; }
  .urgent-card .button { margin: 12px 0 0; }
  .detail-hero { align-items: flex-start; flex-wrap: wrap; }
  .detail-hero .actions { width: 100%; margin-left: 0; }
  .model-form { grid-template-columns: 1fr; padding: 18px; }
  .field { grid-column: 1 / -1; }
  .form-actions .button { flex: 1; }
  .metadata-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .button { margin-left: 0; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; min-height: 67px; padding: 8px 6px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8px; }
  .mobile-nav a span { font-size: 16px; }
  .mobile-nav .mobile-proof span { width: 38px; height: 38px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 7px 18px rgba(38,55,200,.28); }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; }
  .login-card { padding: 26px 21px; }
}

