/* Avenlyr visual system. Presentation only; existing controls and state remain authoritative. */
:root {
  --brand-ink: #172d2a;
  --brand-primary: #176b56;
  --brand-primary-dark: #10503f;
  --brand-primary-light: #e7f3ed;
  --brand-accent: #176b56;
  --surface: #fff;
  --surface-sunken: #f5f6f3;
  --page-bg: #f4f5f1;
  --border: #dce2dc;
  --border-soft: #edf0eb;
  --text-strong: #1e302a;
  --text-body: #45534d;
  --text-muted: #65736b;
  --text-faint: #738077;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --shadow-card: 0 2px 3px #152d201f, 0 6px 20px #152d2004;
  --shadow-pop: 0 18px 60px #152d2029;
  --topbar-h: 72px;
  --sidebar-w: 244px;
  --font-sans: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
html { color-scheme: light; scroll-padding-top: 96px; }
[hidden] { display: none !important; }
body { font-family: var(--font-sans); background: var(--page-bg); color: var(--text-body); font-size: 14px; line-height: 1.55; }
::selection { background: #c7e4d4; color: #102c22; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3d8b74; outline-offset: 3px; }
h1 { font-size: clamp(25px, 2.4vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; color: var(--text-strong); }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
h3 { color: var(--text-strong); letter-spacing: -.015em; }
.subtitle, .sub { color: var(--text-muted); line-height: 1.65; }
.page-wrap { max-width: 1500px; padding: 38px 40px 64px; }
.dashboard-shell { width: 100%; max-width: 1500px; padding: 38px 40px 64px; }
.header-row { align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.header-row h1 { margin: 0; }
.panel { padding: 26px; border-color: var(--border); box-shadow: 0 2px 5px #152d2005; }
.panel .panel { box-shadow: none; background: #fafbf8; }
.panel > h2:first-child { padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.app-topbar { padding: 0 28px; background: #fff; gap: 22px; border-bottom-color: var(--border); }
.app-topbar > .brand-mark { width: 194px; flex-shrink: 0; }
.brand-mark-word { font-size: 24px; font-weight: 650; letter-spacing: -.055em; color: var(--brand-ink); }
.brand-mark svg { width: 34px; height: 34px; }
.org-brand { padding-left: 20px; border-left: 1px solid var(--border); max-width: 240px; }
.org-brand-name { font-size: 12px; font-weight: 600; }
.topbar-search { width: 300px; margin-left: auto; }
.topbar-search-input { padding: 11px 14px; border-color: #e6ebe4; background: #f5f7f3; border-radius: 9px; }
.topbar-search-input::placeholder { color: #78877d; }
.topbar-user-btn { border: 0; background: transparent; padding: 0 0 0 12px; min-height: 38px; }
.topbar-user-btn small { margin-top: 3px; }
.ac-bell { border: 1px solid #e4e9e2; border-radius: 50%; width: 38px; height: 38px; color: #435e50; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.sidebar { background: #182d29; border-right: 0; padding: 24px 14px; scrollbar-width: thin; scrollbar-color: #496159 transparent; }
.sidebar-nav { gap: 22px; }
.nav-group-label { color: #a5b7ad; font-size: 10px; letter-spacing: .12em; font-weight: 600; padding: 7px 12px; }
.nav-group-label:hover { background: #223b34; color: #fff; }
.nav-group-items { gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: #d0dbd5; font-weight: 450; font-size: 12.5px; border-radius: 7px; line-height: 1.35; }
.nav-link .ui-icon { opacity: .76; width: 16px; height: 16px; flex-basis: 16px; }
.nav-link:hover { background: #263e36; color: #fff; }
.nav-link-active, .nav-link-active:hover { background: #dcefca; color: #213e2b; font-weight: 650; box-shadow: none; }
.nav-link-active .ui-icon { opacity: 1; }
.nav-group-chevron { color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { border-color: #d8e0d8; border-radius: 7px; background-color: #fff; min-height: 39px; padding: 9px 12px; color: #243a2d; transition: border-color .16s, box-shadow .16s; }
input:focus, select:focus, textarea:focus { border-color: #548b6b; box-shadow: 0 0 0 3px #176b5614; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-primary); }
label { font-size: 12px; font-weight: 600; color: #435347; }
button { border-radius: 7px; font-weight: 600; transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:disabled { cursor: not-allowed; opacity: .5; }
.toggle-btn, .secondary-btn, .btn-secondary, .btn-ghost { border: 1px solid #dbe2d9; background: #fff; color: #3a5143; box-shadow: 0 1px 2px #182d2905; }
.toggle-btn:hover, .secondary-btn:hover, .btn-secondary:hover, .btn-ghost:hover { background: #eef3e9; border-color: #b7c7b8; color: #1e3929; }
.decision-btn, .btn { min-height: 36px; padding: 8px 15px; }
.approve-btn, .btn-primary { background: var(--brand-primary); color: #fff; }
.approve-btn:hover, .btn-primary:hover { background: var(--brand-primary-dark); }
table { font-size: 12.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th { background: #f7f9f4; color: #687768; font-size: 10px; font-weight: 650; letter-spacing: .075em; padding: 13px 14px; }
td { padding: 15px 14px; border-bottom-color: #edf0e9; }
tbody tr:hover { background: #f9fbf6; }
td a { color: #24634b; text-underline-offset: 3px; }
.table-wrap { border: 1px solid var(--border-soft); border-radius: 9px; }
.table-wrap table { margin: 0; }
.status-badge, .pill, .badge { border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 650; letter-spacing: .025em; line-height: 1.35; }
.filter-tabs { gap: 4px; padding: 4px; border: 1px solid #e2e7dd; border-radius: 9px; background: #f5f7f1; width: fit-content; max-width: 100%; }
.filter-tabs button { border: 0; background: transparent; padding: 8px 13px; color: #586653; border-radius: 6px; font-size: 12px; }
.filter-tabs button.on { background: #fff; color: #1f513b; box-shadow: 0 1px 4px #1a39251c; }
.detail-row { padding-top: 12px; padding-bottom: 12px; border-bottom-color: #edf0e9; }
.modal, .modal-box { border: 1px solid #e1e6dc; border-radius: 16px; box-shadow: var(--shadow-pop); }
.modal-back { background: #10241c80; backdrop-filter: blur(3px); }
.dashboard-intro { margin-bottom: 28px; }
.dashboard-eyebrow { color: #658464; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.dashboard-intro h1 { font-size: clamp(29px, 3vw, 40px); font-weight: 550; }
.dashboard-intro p:last-child { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.dashboard-links { gap: 10px; }
.dashboard-links a { background: #fff; border: 1px solid #e0e6db; border-radius: 8px; color: #344c39; box-shadow: 0 1px 2px #21371d04; padding: 13px 17px; font-size: 12px; }
.dashboard-links a:hover { border-color: #a8bca0; background: #f6faee; }
.dashboard-links a > span { display: flex; color: #658450; }
.stat-grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.stat-card { padding: 23px; border: 1px solid #e0e6d9; border-radius: 12px; box-shadow: 0 2px 4px #152d2004; }
.stat-card:hover { transform: translateY(-2px); border-color: #a5bea0; box-shadow: 0 8px 20px #152d2008; }
.stat-value { font-size: 27px; font-weight: 550; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-label { font-size: 11px; color: #6e7a65; margin-top: 7px; }
.my-actions-cta { border: 1px solid #cddfc2; border-left: 1px solid #cddfc2; background: #edf4e5; box-shadow: none; padding: 18px 22px; }
.my-actions-cta:hover { background: #e6f0dc; }
.my-actions-cta .mac-count { background: #244734; color: #e1efcf; border-radius: 8px; }
.my-actions-cta .mac-text strong { color: #2a4630; }
.my-actions-cta b { color: #436943; }
.wgrid { gap: 20px; }
.wcard { padding: 24px; border-radius: 12px; box-shadow: 0 2px 4px #152d2005; }
.wcard h3 { font-size: 14px; margin-bottom: 20px; }
.kpis { gap: 14px; }
.kpi { background: #f9fbf5; padding: 20px; border-color: #e1e7da; border-radius: 10px; }
.kpi .v { font-size: 28px; font-weight: 550; letter-spacing: -.04em; color: #24402c; }
.kpi .l { margin-top: 8px; color: #65775c; font-size: 11px; }
.barrow .bar { background: #4f8765; height: 10px; border-radius: 3px; }
.barrow:nth-child(3n+2) .bar { background: #86a970; }
.barrow:nth-child(3n) .bar { background: #bbc794; }
.cat-card { border-color: #dfe6d8; border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.cat-card:hover { border-color: #a2bb94; box-shadow: 0 8px 25px #213c2010; }
.cat-card .thumb { background: #edf2e7; height: 152px; }
.cat-card .body { padding: 18px; gap: 7px; }
.cat-card .nm { font-size: 15px; color: #263c29; }
.cat-card .price { font-size: 19px; letter-spacing: -.025em; }
.cat-card .foot { padding: 12px 18px; background: #fafcf7; }
.cart { top: 92px; padding: 23px; background: #fff; border-radius: 12px; box-shadow: 0 3px 14px #152d2005; }
.portal-bar { background: #182d29; padding: 18px 32px; gap: 25px; }
.portal-brand { font-size: 22px; letter-spacing: -.035em; color: #fff; }
.portal-brand small { font-size: 11px; letter-spacing: 0; color: #bdcfc0; }
.portal-nav { flex-wrap: wrap; }
.portal-nav a { color: #bcd0bf; font-size: 12px; padding: 7px 0; }
.portal-nav a.on { border-color: #d7e9bb; }
.portal-main { max-width: 1280px; padding: 0 32px; margin-top: 40px; }
.portal-main .card { max-width: none; text-align: left; padding: 25px; border-color: #dfe6d8; border-radius: 12px; box-shadow: 0 2px 5px #152d2005; }
.portal-main .card h2 { text-transform: none; font-size: 16px; letter-spacing: -.02em; }
.portal-main .grid2 { gap: 22px; }
.portal-bar #portal-bell { color: #fff; border-color: #466052; }
.portal-bell-panel { color: var(--text-body); }
/* Sign-in: original editorial brand composition, with the real auth form. */
.login-page { background: #f9faf6; }
.login-page .center-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 1fr; padding: 0; background: none; }
.login-story { min-height: 100vh; padding: 52px 64px; background: #182d29; color: #e8efdf; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-story .brand-mark-word { color: #f3f5ec; font-size: 29px; }
.login-story .brand-mark svg { width: 40px; height: 40px; }
.login-story-copy { position: relative; z-index: 1; max-width: 560px; margin: 72px 0; }
.login-story .eyebrow { color: #b6cd9f; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.login-story h1 { font-size: clamp(42px, 4.5vw, 68px); color: #f5f7ed; font-weight: 450; line-height: 1.09; letter-spacing: -.055em; margin: 22px 0; }
.login-story h1 em { font-style: normal; color: #c6e4a3; }
.login-story-copy > p:last-of-type { color: #b9cabc; font-size: 15px; line-height: 1.85; max-width: 380px; }
.brand-flow { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: #c3d3ba; font-size: 11px; letter-spacing: .045em; }
.brand-flow span { border: 1px solid #48614d; border-radius: 7px; padding: 9px 12px; }
.login-story-footer { font-size: 11px; letter-spacing: .06em; color: #9eb09f; }
.login-orbit { position: absolute; width: 590px; height: 590px; border: 1px solid #8ca87825; border-radius: 50%; bottom: -370px; right: -170px; }
.login-orbit::before, .login-orbit::after { content: ''; position: absolute; inset: 40px; border: 1px solid #8ca87825; border-radius: 50%; }
.login-orbit::after { inset: 90px; }
.login-page .card { justify-self: center; margin: 48px 24px; width: calc(100% - 48px); max-width: 420px; text-align: left; padding: 20px; border: 0; box-shadow: none; background: transparent; }
.login-page .card > .brand-mark { display: none; }
.login-page .card h2 { font-size: 32px; font-weight: 550; letter-spacing: -.045em; margin-bottom: 8px; }
.login-page .card > .subtitle { margin-bottom: 36px; }
.login-page label { margin-top: 21px; margin-bottom: 8px; }
.login-page input { min-height: 48px !important; }
.login-page button[type=submit] { margin-top: 28px; min-height: 48px; border-radius: 8px; }
.login-page .password-toggle { margin: 0; }
.login-note { font-size: 11px; color: #798572; text-align: center; margin-top: 24px; }
@media (min-width: 1280px) {
  .dashboard-shell > main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 22px; align-items: start; }
  .dashboard-intro, #my-actions-cta, #shortcuts-mount, #dashboard-content, #activity-section { grid-column: 1 / -1; }
  #exec-section .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #exec-section .stat-card { padding: 17px; }
  #exec-section .stat-value { font-size: 24px; }
}
@media (min-width: 1600px) { .page-wrap, .dashboard-shell { padding-left: 56px; padding-right: 56px; } }
@media (max-width: 1200px) { .org-brand { display: none; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .login-story { padding: 40px; } }
@media (max-width: 960px) { .app-topbar { padding: 0 20px; gap: 14px; } .app-topbar > .brand-mark { width: auto; } .page-wrap, .dashboard-shell { padding: 28px 22px 48px; } .wgrid { grid-template-columns: minmax(0, 1fr); } .portal-bar { flex-wrap: wrap; padding: 18px 22px; } .portal-nav { order: 3; flex-basis: 100%; gap: 22px; } .login-story { padding: 32px; } .login-story h1 { font-size: 43px; } }
@media (max-width: 680px) { :root { --topbar-h: 64px; } .topbar-search { display: none; } .topbar-spacer { flex: 1; } .topbar-user-btn { font-size: 11px; } .topbar-user-btn small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand-mark-word { font-size: 21px; } .page-wrap, .dashboard-shell { padding: 26px 16px 40px; } .panel { padding: 18px; overflow-wrap: anywhere; } .form-grid, .grid2, .portal-main .grid2 { grid-template-columns: minmax(0, 1fr); } .wcard { padding: 18px; } .kpi { padding: 14px; } .kpi .v { font-size: 22px; } .barrow { grid-template-columns: 100px minmax(0, 1fr) 85px; font-size: 11px; } .portal-main { padding: 0 16px; } .login-page .center-wrap { grid-template-columns: minmax(0, 1fr); } .login-story { min-height: auto; padding: 28px; } .login-story-copy { margin: 36px 0 20px; } .login-story h1 { font-size: 36px; } .login-story-copy > p:last-of-type, .brand-flow, .login-story-footer { display: none; } .login-page .card { margin: 28px 24px; } .login-page .card > .subtitle { margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { body.has-sidebar { padding: 0; } .app-topbar, .sidebar, .sidebar-backdrop { display: none !important; } body { background: #fff; } .panel, .wcard { box-shadow: none; break-inside: avoid; } }
