/* =====================================================================
   CRM design system (white-label: colours come from Administration → Branding)
   Navy / white / light grey with restrained gold accents.
   ===================================================================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #081834;
  --navy-900: #0B1F44;
  --navy-800: #0E2A5C;
  --navy-700: #163A78;
  --navy-600: #24508F;
  --navy-500: #3A67A8;
  --navy-100: #DCE5F2;
  --navy-50:  #EEF2F9;

  --gold-700: #8C6E37;
  --gold-600: #A4834A;
  --gold-500: #B8975A;
  --gold-200: #E8DABF;
  --gold-50:  #F8F3E9;

  --ink:      #152036;
  --text-2:   #4A556B;
  --text-3:   #7B859A;
  --text-4:   #A2AABB;

  --bg:       #F3F5F9;
  --surface:  #FFFFFF;
  --surface-2:#F8F9FC;
  --border:   #E2E6EE;
  --border-2: #CDD4E0;

  --success:  #1E7F55;  --success-bg: #E7F4EE;
  --warning:  #B86E0E;  --warning-bg: #FCF1E1;
  --danger:   #B23838;  --danger-bg:  #FBEAEA;
  --info:     #2C64A8;  --info-bg:    #E8F0FA;
  --neutral:  #5C667A;  --neutral-bg: #EEF0F4;

  --radius:   6px;
  --radius-sm:4px;
  --shadow-1: 0 1px 2px rgba(14, 42, 92, .06), 0 1px 1px rgba(14, 42, 92, .04);
  --shadow-2: 0 4px 16px rgba(14, 42, 92, .10), 0 1px 3px rgba(14, 42, 92, .06);
  --shadow-3: 0 18px 48px rgba(8, 24, 52, .22);

  --sidebar-w: 248px;
  --topbar-h: 58px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 20px; line-height: 1.3; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
small, .small { font-size: 12px; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.strong { font-weight: 600; }
.icon { flex-shrink: 0; vertical-align: middle; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
code { font-size: 12px; background: var(--neutral-bg); padding: 1px 5px; border-radius: 3px; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--navy-900);
  color: #C9D3E6;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--navy-950);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  height: var(--topbar-h); padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff; text-decoration: none !important;
}
.brand img { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 13px; letter-spacing: .09em; color: #fff; line-height: 1.15; }
.brand-sub { font-size: 10px; letter-spacing: .04em; color: var(--gold-200); opacity: .85; font-weight: 500; }
.nav { padding: 10px 10px 24px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-label {
  padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #7E8CA8;
}
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; margin: 1px 0;
  border-radius: var(--radius-sm);
  color: #C9D3E6; font-weight: 500; font-size: 13px;
  text-decoration: none;
}
.nav a .icon { color: #8C9BB8; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a:hover .icon { color: #fff; }
.nav a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.nav a.is-active .icon { color: var(--gold-500); }
.nav a.is-active::before {
  content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--gold-500);
}
.nav-count {
  margin-left: auto; min-width: 20px; padding: 0 6px; height: 18px; border-radius: 9px;
  font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center;
  background: rgba(184,151,90,.18); color: var(--gold-200);
}
.nav-count.is-alert { background: #B23838; color: #fff; }
.sidebar-foot {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px; color: #6F7E9C;
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.icon-btn.menu-toggle { display: none; }
.global-search { position: relative; flex: 0 1 420px; }
.global-search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); font: inherit; color: var(--ink);
}
.global-search input:focus { outline: none; background: #fff; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(36,80,143,.12); }
.global-search > .icon { position: absolute; left: 11px; top: 9px; color: var(--text-3); }
.search-results {
  position: absolute; top: 42px; left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-2); max-height: 380px; overflow-y: auto; padding: 4px;
}
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.is-focused { background: var(--navy-50); }
.search-results .meta { font-size: 11.5px; color: var(--text-3); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: var(--radius); border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.user-chip:hover { background: var(--surface-2); border-color: var(--border); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--navy-800); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; flex-shrink: 0;
}
.avatar.gold { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.user-chip .name { font-weight: 600; font-size: 12.5px; line-height: 1.2; }
.user-chip .role { font-size: 11px; color: var(--text-3); line-height: 1.2; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: 5px; display: none;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none;
  border-radius: var(--radius-sm); color: var(--ink); font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--navy-50); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 5px 0; }
.notif-menu { width: 360px; padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block !important; padding: 10px 14px !important; border-bottom: 1px solid var(--border); border-radius: 0 !important; }
.notif-item.unread { background: #FAFBFE; box-shadow: inset 3px 0 0 var(--gold-500); }
.notif-item .t { font-weight: 600; font-size: 12.5px; }
.notif-item .b { color: var(--text-2); font-size: 12px; }
.notif-item .w { color: var(--text-3); font-size: 11px; margin-top: 2px; }
.notif-foot { padding: 8px; text-align: center; }

.content { padding: 22px 24px 48px; max-width: 1560px; width: 100%; }

/* --------------------------------------------------------- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .crumbs { font-size: 12px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.page-head .crumbs a { color: var(--text-3); }
.page-head .sub { color: var(--text-2); margin-top: 3px; font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 550; font-size: 13px; white-space: nowrap;
  cursor: pointer; text-decoration: none !important;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-4); color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(36,80,143,.2); }
.btn-primary { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn-danger { background: #fff; border-color: #E5BDBD; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--neutral-bg); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 5px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.btn-group .btn.is-active { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); z-index: 1; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--navy-600); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .hint { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: 340px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; } .mb-sm { margin-bottom: 8px; }

/* ------------------------------------------------------------- KPI tiles */
.kpi { padding: 14px 16px 13px; position: relative; }
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 23px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--navy-900); }
.kpi-value .unit { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.kpi-meta { margin-top: 6px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi-meta .progress { flex: 0 0 100%; }
.kpi.is-feature { border-top: 2px solid var(--gold-500); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 11.5px; }
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }
.delta.flat { color: var(--text-3); }
a.kpi-link { color: inherit; text-decoration: none !important; display: block; }
a.kpi-link:hover .card { border-color: var(--border-2); box-shadow: var(--shadow-2); }

/* -------------------------------------------------------------- progress */
.progress { height: 6px; border-radius: 3px; background: var(--neutral-bg); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 3px; background: var(--navy-700); }
.progress.lg { height: 9px; border-radius: 5px; }
.progress.over > span { background: var(--gold-500); }
.progress.low > span { background: #C4553D; }
.progress.mid > span { background: var(--navy-500); }
.target-row { display: grid; grid-template-columns: 150px 1fr 120px 64px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.target-row:last-child { border-bottom: 0; }
.target-row .who { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.target-row .fig { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.target-row .fig small { display: block; color: var(--text-3); }
.target-row .p { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.ring { --p: 0; --c: var(--navy-700); width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--neutral-bg) 0);
  display: grid; place-items: center; flex-shrink: 0; }
.ring::before { content: ""; grid-area: 1/1; width: 82px; height: 82px; border-radius: 50%; background: #fff; }
.ring span { grid-area: 1/1; font-weight: 700; font-size: 19px; z-index: 1; font-variant-numeric: tabular-nums; color: var(--navy-900); }

/* --------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-gold { background: var(--gold-50); color: var(--gold-700); box-shadow: inset 0 0 0 1px var(--gold-200); }
.badge-navy { background: var(--navy-50); color: var(--navy-700); }
.badge-custom { background: color-mix(in srgb, var(--badge-color) 13%, white); color: color-mix(in srgb, var(--badge-color) 85%, black); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.s-overdue { background: #C8372D; } .s-today { background: #E08A1E; } .s-done { background: #2E9467; } .s-upcoming { background: #9AA3B5; }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid var(--border); border-radius: 3px; font-size: 11.5px; color: var(--text-2); background: #fff; }
.rep-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.rep-chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--navy-500)); display: inline-block; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  position: sticky; top: 0; z-index: 1;
  padding: 9px 12px; text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .primary-cell > a:first-child { white-space: nowrap; }
.table .primary-cell { font-weight: 600; color: var(--ink); }
.table .primary-cell a { color: var(--ink); }
.table .primary-cell a:hover { color: var(--navy-600); }
.table .sub-cell { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border-2); border-bottom: 0; }
.table.compact td { padding: 7px 12px; }
.table tr.is-flagged td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.table tr.is-warn td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.table tr.is-gold td:first-child { box-shadow: inset 3px 0 0 var(--gold-500); }
.th-sort { color: inherit !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px; }
.th-sort.is-active { color: var(--navy-800) !important; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.table-toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-toolbar .search { position: relative; flex: 0 1 300px; }
.table-toolbar .search input { padding-left: 32px; }
.table-toolbar .search .icon { position: absolute; left: 10px; top: 9px; color: var(--text-3); }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); gap: 12px; flex-wrap: wrap; }
.pagination { display: flex; gap: 4px; }
.pagination a, .pagination span {
  min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); background: #fff; font-size: 12.5px; text-decoration: none;
}
.pagination a:hover { border-color: var(--border-2); color: var(--ink); }
.pagination .is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .45; }
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); }
.empty .icon { color: var(--text-4); margin-bottom: 8px; }
.empty strong { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 3px; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .help { font-size: 11.5px; color: var(--text-3); }
.input, .select, .textarea,
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 13px;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea, .textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.field select, .select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B859A' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(36,80,143,.13);
}
.is-invalid, .field .is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(178,56,56,.10) !important; }
.field-error { color: var(--danger); font-size: 11.5px; font-weight: 500; }
.input-sm, .toolbar-select { height: 32px !important; font-size: 12.5px !important; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink); }
.check input { width: 15px; height: 15px; accent-color: var(--navy-800); }
.input-group { display: flex; }
.input-group .addon { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 600; }
.input-group input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .field { flex-direction: row; align-items: center; }
.dropzone {
  border: 1.5px dashed var(--border-2); border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--navy-500); background: var(--navy-50); }
.dropzone input { display: none; }
.dropzone .fname { margin-top: 8px; font-weight: 600; color: var(--navy-800); }

/* ---------------------------------------------------------------- alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius); border: 1px solid; font-size: 13px; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: #C7D8EE; color: #1F4E86; }
.alert-success { background: var(--success-bg); border-color: #BFE0D0; color: #17623F; }
.alert-warning { background: var(--warning-bg); border-color: #F0D5AB; color: #8A520A; }
.alert-danger { background: var(--danger-bg); border-color: #EDC4C4; color: #8E2A2A; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-3); font-size: 13px;
  animation: toastIn .18s ease-out;
}
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #6FD3A5; } .toast.error .icon { color: #FF9C9C; } .toast.warning .icon { color: #F5C26B; } .toast.info .icon { color: #9CC1F5; }
.toast button { margin-left: auto; background: none; border: 0; color: #9FB0CC; cursor: pointer; padding: 0; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- modals */
dialog.modal {
  border: 0; padding: 0; border-radius: 8px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  box-shadow: var(--shadow-3); color: var(--ink);
}
dialog.modal.lg { width: min(880px, calc(100vw - 32px)); }
dialog.modal.sm { width: min(440px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(8, 24, 52, .45); }
dialog.modal[open] { animation: modalIn .16s ease-out; display: flex; flex-direction: column; }
@keyframes modalIn { from { transform: translateY(10px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.modal form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.confirm-body { display: flex; gap: 14px; }
.confirm-body .icon-wrap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); flex-shrink: 0; }
.confirm-body .icon-wrap.danger { background: var(--danger-bg); color: var(--danger); }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button {
  padding: 9px 14px; border: 0; background: none; font: inherit; font-weight: 550; font-size: 13px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 7px;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .is-active { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.tabs .count { font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--neutral-bg); color: var(--text-2); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.segmented { display: inline-flex; padding: 3px; background: var(--neutral-bg); border-radius: var(--radius); gap: 2px; }
.segmented a { padding: 5px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 550; font-size: 12.5px; text-decoration: none !important; }
.segmented a.is-active { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-1); }

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; padding-left: 4px; }
.tl-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100); }
.tl-icon.sale { background: var(--success-bg); color: var(--success); border-color: #CBE6D8; }
.tl-icon.quote { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-200); }
.tl-icon.collection { background: var(--info-bg); color: var(--info); border-color: #CBDDF2; }
.tl-icon.system { background: var(--neutral-bg); color: var(--neutral); border-color: var(--border); }
.tl-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-title { font-weight: 600; }
.tl-time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.tl-body { color: var(--text-2); margin-top: 3px; font-size: 12.5px; white-space: pre-line; }
.tl-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ------------------------------------------------------------- key/value */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.stat-list > div { background: #fff; padding: 11px 14px; }
.stat-list .l { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat-list .v { font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-list .v small { font-weight: 400; color: var(--text-3); }

/* profile header */
.profile-head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.profile-logo { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .03em; flex-shrink: 0; }
.profile-head h1 { font-size: 19px; }
.profile-head .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; margin-top: 5px; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* contact cards */
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; }
.contact-card .name { font-weight: 600; }
.contact-card .pos { font-size: 12px; color: var(--text-3); }
.contact-card .lines { margin-top: 6px; display: grid; gap: 2px; font-size: 12.5px; color: var(--text-2); }
.contact-card .lines span { display: inline-flex; align-items: center; gap: 6px; }

/* chart containers */
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 210px; }
.chart-box.lg { height: 340px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* import wizard */
.steps { display: flex; gap: 0; margin-bottom: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 12.5px; color: var(--text-3); font-weight: 550; border-right: 1px solid var(--border); }
.step:last-child { border-right: 0; }
.step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-2); font-size: 11.5px; font-weight: 700; }
.step.is-done { color: var(--success); }
.step.is-done .n { background: var(--success); border-color: var(--success); color: #fff; }
.step.is-current { color: var(--navy-800); background: var(--navy-50); }
.step.is-current .n { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.map-table td { vertical-align: middle; }
.sample-vals { font-size: 11.5px; color: var(--text-3); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list { margin: 0; padding-left: 16px; font-size: 12px; }
.msg-list li.err { color: var(--danger); }
.msg-list li.warn { color: var(--warning); }

/* permission matrix */
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; }
.matrix th, .matrix td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.matrix thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: center; z-index: 2; vertical-align: bottom; }
.matrix thead th:first-child { text-align: left; }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; }
.matrix tr.module td { background: var(--navy-50); font-weight: 650; color: var(--navy-800); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.matrix input { width: 15px; height: 15px; accent-color: var(--navy-800); }
.matrix .slug { display: block; color: var(--text-4); font-size: 10.5px; font-family: ui-monospace, monospace; }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-brand {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px;
}
.auth-brand::after {
  content: ""; position: absolute; right: -140px; bottom: -150px; width: 560px; height: 560px;
  background: url("../img/mark-white.png") center/contain no-repeat; opacity: .045;
}
.auth-brand .logo { display: flex; align-items: center; gap: 14px; }
.auth-brand .logo img { width: 42px; }
.auth-brand .logo b { display: block; letter-spacing: .14em; font-size: 15px; }
.auth-brand .logo small { color: var(--gold-200); letter-spacing: .03em; font-size: 11.5px; }
.auth-brand h2 { color: #fff; font-size: 30px; line-height: 1.22; font-weight: 600; max-width: 460px; letter-spacing: -.02em; }
.auth-brand h2 em { font-style: normal; color: var(--gold-500); }
.auth-brand p { color: #AFBCD6; max-width: 430px; font-size: 14px; margin-top: 14px; }
.auth-points { display: grid; gap: 10px; margin-top: 30px; }
.auth-points div { display: flex; gap: 10px; align-items: center; color: #D5DDEC; font-size: 13px; }
.auth-points .icon { color: var(--gold-500); }
.auth-brand .foot { font-size: 11.5px; color: #6F7E9C; position: relative; z-index: 1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .field input { height: 42px !important; }
.auth-card .btn { width: 100%; height: 42px; margin-top: 6px; }
.gold-rule { width: 36px; height: 3px; background: var(--gold-500); border-radius: 2px; margin-bottom: 18px; }

.guest-wrap { max-width: 880px; margin: 0 auto; padding: 40px 20px; }
.guest-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.guest-head img { width: 36px; }

/* error pages */
.error-page { text-align: center; padding: 70px 20px; }
.error-page .code { font-size: 64px; font-weight: 700; color: var(--navy-100); letter-spacing: -.03em; line-height: 1; }
.error-page h1 { margin: 10px 0 6px; }
.error-page p { color: var(--text-2); max-width: 520px; margin: 0 auto 20px; }

/* loading overlay */
.loading-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold-500); z-index: 300; transition: width .3s; }
.loading-bar.is-active { width: 70%; transition: width 2.5s cubic-bezier(.1,.6,.2,1); }
.skeleton { background: linear-gradient(90deg, #EEF1F6 25%, #F6F8FB 37%, #EEF1F6 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 4px; height: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 100; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-3); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,24,52,.4); z-index: 90; }
  .icon-btn.menu-toggle { display: inline-grid; }
  .grid-main, .grid-side, .grid-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 720px) {
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .user-chip .name, .user-chip .role { display: none; }
  .grid-2, .grid-4, .grid-5, .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .target-row { grid-template-columns: 1fr 80px; }
  .target-row .progress { grid-column: 1 / -1; order: 3; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .steps { flex-direction: column; }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .page-head { align-items: flex-start; }
  .notif-menu { width: calc(100vw - 24px); right: -60px; }
  .hide-sm { display: none !important; }
}
@media print {
  .sidebar, .topbar, .page-actions, .table-toolbar, .table-foot { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* =====================================================================
   v1.1 — refined look & new components
   ===================================================================== */
:root {
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .06);
  --bg: #F4F6FA;
  --border: #E4E8F0;
  --sidebar-w: 256px;
  --topbar-h: 60px;
}
body { font-size: 13.5px; }
h1 { font-size: 22px; letter-spacing: -.02em; }

/* sidebar */
.sidebar { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); border-right: 0; }
.brand { height: 72px; padding: 0 16px; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-logo img { width: 26px; height: 26px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-sub { align-self: flex-start; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); opacity: 1; padding: 1px 6px; border-radius: 4px; background: rgba(184,151,90,.14); }
.nav { padding: 6px 12px 24px; }
.nav-group { margin-top: 18px; }
.nav-label { font-size: 10px; letter-spacing: .13em; color: rgba(255,255,255,.38); padding-left: 10px; }
.nav a { padding: 8px 10px; border-radius: 7px; font-size: 13px; color: rgba(255,255,255,.72); transition: background .12s, color .12s; }
.nav a .icon { color: rgba(255,255,255,.45); }
.nav a.is-active { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.nav a.is-active::before { left: -12px; top: 8px; bottom: 8px; }
.sidebar-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: rgba(255,255,255,.4); font-size: 11px; }
.sidebar-foot .ver { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.06); }

/* topbar & content */
.topbar { background: rgba(255,255,255,.92); border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(16,24,40,.02); padding: 0 28px; }
.global-search input { height: 38px; border-radius: 9px; background: var(--bg); border-color: transparent; }
.content { padding: 26px 28px 56px; }
.page-head { margin-bottom: 20px; }
.page-head .sub { font-size: 13.5px; max-width: 880px; }

/* cards / kpis / tables */
.card { border-color: var(--border); box-shadow: var(--shadow-1); border-radius: 10px; }
.card-head { min-height: 50px; }
.card-head h2 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.kpi { padding: 16px 18px 15px; }
.kpi-value { font-size: 24px; font-weight: 700; }
.kpi.is-feature { border-top: 3px solid var(--gold-500); }
.table th { background: var(--surface-2); }
.btn { border-radius: 8px; font-weight: 550; }
.btn-primary { box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.08); }
.modal { border-radius: 14px; }
.tabs a.is-active, .tabs button.is-active { color: var(--navy-800); }

/* auth */
.auth-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.auth-mark { width: 44px; height: 44px; object-fit: contain; margin-bottom: 18px; }
.auth-brand .logo b { letter-spacing: .08em; text-transform: uppercase; }

/* shared helpers */
.sticky-col { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; }
.link-list { display: flex; flex-direction: column; gap: 2px; }
.link-list a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 13px; }
.link-list a:hover { background: var(--navy-50); }
.link-list a.is-active { background: var(--navy-50); color: var(--navy-800); font-weight: 600; }
.link-list a .icon { color: var(--text-3); }
.icon-btn.sm { width: 28px; height: 28px; }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: 11.5px; font-weight: 700; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; background: var(--neutral-bg); color: var(--text-2); }

/* settings / branding */
.settings-nav { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.settings-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 7px; color: var(--text-2); font-weight: 550; text-decoration: none; }
.settings-nav a:hover { background: var(--navy-50); color: var(--navy-800); }
.preset-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.preset { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 10px; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; text-align: left; transition: border-color .12s, box-shadow .12s; }
.preset:hover { border-color: var(--navy-500); box-shadow: var(--shadow-1); }
.preset span { height: 26px; border-radius: 6px; }
.preset small { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 44px; height: 38px; padding: 3px; border: 1px solid var(--border-2); border-radius: 8px; background: #fff; cursor: pointer; }
.color-field input:not([type=color]) { flex: 1; font-family: ui-monospace, monospace; text-transform: uppercase; }
.upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.upload-tile { border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 230px; }
.upload-preview { height: 96px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--border-2); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; margin-bottom: 4px; }
.upload-preview.on-dark { background: var(--navy-900); border-style: solid; border-color: var(--navy-900); }
.upload-preview img { max-height: 64px; max-width: 80%; object-fit: contain; }
.module-list { display: flex; flex-direction: column; }
.module-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); cursor: pointer; }
.module-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.module-row:hover { background: var(--surface-2); }
.switch { position: relative; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { display: block; width: 40px; height: 22px; border-radius: 11px; background: var(--border-2); transition: background .15s; position: relative; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(36,80,143,.25); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.brand-preview { display: grid; grid-template-columns: 130px 1fr; min-height: 210px; margin: 0 16px 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.bp-side { background: linear-gradient(180deg, color-mix(in srgb, var(--p) 78%, black), color-mix(in srgb, var(--p) 58%, black)); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.bp-brand { display: flex; gap: 7px; align-items: center; margin-bottom: 10px; color: #fff; }
.bp-brand img { width: 20px; height: 20px; object-fit: contain; }
.bp-brand b { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.bp-brand small { font-size: 8px; color: var(--a); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bp-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 5px; color: rgba(255,255,255,.7); font-size: 11px; position: relative; }
.bp-item span { width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.3); }
.bp-item.is-active { background: rgba(255,255,255,.12); color: #fff; }
.bp-item.is-active span { background: var(--a); }
.bp-main { padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.bp-title { font-weight: 700; color: color-mix(in srgb, var(--p) 80%, black); }
.bp-kpi { background: #fff; border-radius: 8px; padding: 10px; border-top: 3px solid var(--a); box-shadow: var(--shadow-1); }
.bp-kpi small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.bp-kpi b { font-size: 16px; color: color-mix(in srgb, var(--p) 80%, black); }
.bp-bar { height: 5px; border-radius: 3px; background: var(--border); margin-top: 6px; }
.bp-bar i { display: block; height: 5px; width: 62%; border-radius: 3px; background: var(--p); }
.bp-btn { align-self: flex-start; background: var(--p); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 7px; }

/* credit */
.credit-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.credit-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-1); text-decoration: none !important; color: var(--ink); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.credit-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.credit-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.credit-tile.is-active { box-shadow: 0 0 0 2px var(--tone); }
.ct-n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--tone); }
.ct-n small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.ct-l { font-size: 12px; color: var(--text-2); font-weight: 550; }
.ct-s { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.tone-success { --tone: var(--success); } .tone-warning { --tone: var(--warning); } .tone-gold { --tone: var(--gold-600); } .tone-danger { --tone: var(--danger); } .tone-navy { --tone: var(--navy-700); } .tone-info { --tone: var(--info); } .tone-neutral { --tone: var(--neutral); }
.credit-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cc-opt { position: relative; display: block; cursor: pointer; }
.cc-opt input { position: absolute; opacity: 0; }
.cc-opt > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px 10px 34px; border: 1px solid var(--border-2); border-radius: 9px; background: #fff; transition: border-color .12s, background .12s; }
.cc-opt > span::before { content: ""; position: absolute; left: 12px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-2); background: #fff; }
.cc-opt b { font-size: 13px; }
.cc-opt small { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.cc-opt:hover > span { border-color: var(--tone); }
.cc-opt input:checked + span { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 7%, white); box-shadow: 0 0 0 1px var(--tone); }
.cc-opt input:checked + span::before { border-color: var(--tone); background: var(--tone); box-shadow: inset 0 0 0 2px #fff; }
.cc-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(36,80,143,.25); }
.credit-card { border-top: 3px solid var(--tone); }
.credit-state { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 9px; background: color-mix(in srgb, var(--tone) 8%, white); }
.cs-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); margin-top: 4px; flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 20%, white); }

/* imports */
.how-it-works { display: grid; gap: 8px; }
.how-it-works div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); }
.how-it-works span { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--navy-50); color: var(--navy-700); }
.radio-card { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 9px; cursor: pointer; margin-top: 6px; align-items: flex-start; }
.radio-card:has(input:checked) { border-color: var(--navy-600); background: var(--navy-50); }
.radio-card input { margin-top: 3px; }
.radio-card span { display: flex; flex-direction: column; gap: 2px; }
.radio-card small { color: var(--text-3); font-size: 11.5px; line-height: 1.35; }
.map-table tr.is-mapped td:first-child { box-shadow: inset 3px 0 0 var(--success); }
.result-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.result-tiles .rt { position: relative; padding: 16px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-1); overflow: hidden; }
.result-tiles .rt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.result-tiles b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--tone); line-height: 1.1; }
.result-tiles span { font-size: 12.5px; color: var(--text-2); }
.msg-list li.info { color: var(--text-2); }
.row-pager { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }

/* weekly figures */
.entry-table td { padding: 6px 8px; }
.entry-table input { width: 100%; min-width: 80px; }
.entry-table .calc-row td { background: var(--gold-50); font-weight: 600; }
.calc-out { height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; background: var(--navy-50); color: var(--navy-800); font-weight: 650; font-variant-numeric: tabular-nums; }
.glance { display: flex; flex-direction: column; padding: 4px 16px 10px; }
.glance div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.glance div:last-child { border-bottom: 0; }
.glance span { color: var(--text-2); }
.glance b { font-variant-numeric: tabular-nums; color: var(--navy-900); }
.week-bar .card-body { padding: 12px 16px; }

@media (max-width: 1200px) {
  .credit-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preset-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .credit-tiles, .result-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-grid, .check-grid { grid-template-columns: 1fr; }
  .preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-col { position: static; }
  .brand-preview { grid-template-columns: 1fr; }
}
.brand { flex-shrink: 0; }
.field .color-field input[type=color] { flex: 0 0 46px; width: 46px; height: 38px; padding: 3px; }
.field .color-field input:not([type=color]) { flex: 1 1 auto; width: auto; min-width: 0; }
.upload-tile .help { font-size: 11.5px; line-height: 1.4; }
.entry-table input { min-width: 70px; }
.icon-btn .dot { top: 1px; right: 0; min-width: 14px; height: 14px; line-height: 14px; font-size: 9.5px; padding: 0 3px; }
.credit-tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .credit-tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.data-card h2 { margin: 10px 0 4px; font-size: 15px; }
.data-card p { min-height: 54px; }
.dc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); }
.auth-simple { grid-template-columns: 1fr; }
.secret-key { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .12em; padding: 10px 12px; border-radius: 8px; background: var(--navy-50); color: var(--navy-900); word-break: break-all; user-select: all; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-family: ui-monospace, Menlo, monospace; }
.code-grid span { padding: 6px 10px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 6px; text-align: center; }

/* Monthly sales figures (manual entry) */
.ms-table th:first-child { width: 64px; }
.ms-table { table-layout: fixed; min-width: 1060px; }
.ms-table th:first-child { width: 54px; }
.ms-table th:last-child { width: 100px; }
.ms-table td, .ms-table th { padding: 6px 3px !important; vertical-align: middle; }
.ms-table tbody th { padding-left: 12px !important; }
.ms-table input.input { width: 100%; min-width: 0 !important; height: 34px; text-align: right; font-variant-numeric: tabular-nums; padding: 0 5px !important; font-size: 12.5px; letter-spacing: -.01em; }
.ms-table td[data-total] { padding-top: 12px !important; padding-right: 10px !important; }
.ms-table td.is-manual input { background: var(--gold-50); border-color: var(--gold-400, #d9c08a); font-weight: 600; }
.ms-table input::placeholder { color: var(--text-3, #9aa3b5); }
.ms-hint { font-size: 11px; color: var(--text-3, #8a93a6); text-align: right; margin-top: 2px; white-space: nowrap; }
.ms-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 3px; background: var(--surface, #fff); }
.ms-key.is-manual { background: var(--gold-50); border-color: var(--gold-400, #d9c08a); }

/* Installer: new vs reconnect */
.install-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.install-mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: inherit; text-decoration: none; }
.install-mode strong { display: block; color: var(--navy-800); }
.install-mode span { font-size: 13px; color: var(--text-2, #5b6478); }
.install-mode.is-active { border-color: var(--navy-700, #1a3a73); box-shadow: 0 0 0 3px rgba(14,42,92,.10); }
@media (max-width: 640px) { .install-modes { grid-template-columns: 1fr; } }
.remark-cell { max-width: 260px; white-space: normal; line-height: 1.35; }

/* ---------------------------------------------------------------- v1.4 Sales Support */
.table tr.is-muted td { opacity: .55; }
.tl-icon.danger { background: var(--danger-bg); color: var(--danger); border-color: #EBC9C9; }
.calc-list { display: flex; flex-direction: column; gap: 12px; }
.calc-card { padding: 16px; }
.calc-card.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.calc-grid { display: grid; gap: 12px; align-items: end; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, .8fr)) minmax(0, 1.25fr) 36px; }
.calc-grid .field input[readonly] { background: var(--surface-2); color: var(--text-2); }
.calc-custom { margin-top: 6px; }
.cc-out { display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 7px 12px; background: var(--success-bg); border-radius: var(--radius); min-width: 0; }
.cc-out span { font-size: 11.5px; color: var(--success); font-weight: 600; }
.cc-out strong { font-size: 22px; line-height: 1.15; font-weight: 750; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.cc-out em { font-style: normal; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-grid .c-remove { align-self: center; }
.calc-packs { margin-top: 8px; }
.calc-packs:empty { display: none; }
.chip-btn { display: inline-block; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 1px 9px; font-size: 12px; color: var(--navy-800); cursor: pointer; margin-left: 2px; }
.chip-btn:hover { background: var(--navy-50); border-color: var(--navy-200, var(--border-2)); }
.calc-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 12px; line-height: 1.6; color: var(--text-2); }
.calc-note b { color: var(--navy-800); }
/* sticker preview: 105 × 99 mm, same proportions and font as the printed sticker (1 pt = 1.2 px at full size) */
@font-face { font-family: 'HTM Sticker'; src: url('../fonts/HTMSticker-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.sticker { position: relative; width: 100%; max-width: 357px; aspect-ratio: 297.64 / 280.63; margin: 0 auto; background: #fff; border: 1px dashed #A9B0BE; color: #000; font-family: 'HTM Sticker', Arial, sans-serif; font-weight: 700; container-type: inline-size; }
.sticker-top { position: absolute; left: 7.81%; right: 6.12%; top: 10.6%; display: flex; justify-content: space-between; gap: 8px; font-size: 5.36cqw; line-height: 1; }
.sticker-size { white-space: nowrap; word-spacing: .14em; }
.sticker-name { position: absolute; left: 7.81%; right: 5%; top: 24.4%; font-size: 13.1cqw; line-height: .845; overflow-wrap: anywhere; }
.sticker-bar { position: absolute; left: 7.78%; right: 6.1%; top: 80.4%; height: 12.27%; }
.sticker-bar img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.st-line.is-active { border-color: var(--navy-300, var(--navy-800)); box-shadow: 0 0 0 3px var(--navy-50); }
.st-actions { justify-content: flex-end; align-items: flex-end; }
.st-start { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; }
.st-start label { cursor: pointer; }
.st-start input { position: absolute; opacity: 0; pointer-events: none; }
.st-start span { display: grid; place-items: center; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--text-2); background: #fff; }
.st-start input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.st-start input:focus-visible + span { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.tr-lines td { vertical-align: middle; }
@media (max-width: 1200px) {
  .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc-grid .calc-product { grid-column: 1 / -1; }
  .calc-grid .cc-out { grid-column: span 3; }
}
@media (max-width: 720px) {
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid .cc-out { grid-column: 1 / -1; }
  .calc-grid .c-remove { grid-column: 1 / -1; justify-self: end; }
}
.tr-wrap { overflow: visible; }
@media (max-width: 720px) { .tr-wrap { overflow-x: auto; } }

/* v1.5 — sample requests, supplier updates, out-of-stock */
[hidden] { display: none !important; }
.seg { display: inline-flex; padding: 3px; background: var(--neutral-bg); border-radius: var(--radius); gap: 2px; flex-wrap: wrap; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.seg input:checked + span { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-1); }
.seg input:focus-visible + span { outline: 2px solid var(--navy-800); outline-offset: 1px; }
.su-list { display: flex; flex-direction: column; }
.su-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.su-item:first-child { border-top: 0; }
.su-item.is-pinned { background: var(--gold-50, #FBF7EF); }
.su-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); color: var(--navy-700, #1d3b6e); }
.su-ic.t-price { background: var(--warning-bg); color: var(--warning); }
.su-ic.t-new_product { background: var(--success-bg); color: var(--success); }
.su-ic.t-discontinued { background: var(--danger-bg); color: var(--danger); }
.su-ic.t-shipment, .su-ic.t-promotion { background: var(--info-bg); color: var(--info); }
.su-title { font-weight: 650; color: var(--text-1, #18212f); }
.su-meta { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.su-body { font-size: 13px; color: var(--text-2); margin-top: 6px; white-space: pre-line; }
.su-actions { display: flex; gap: 4px; align-items: flex-start; }
.slide-deck { position: relative; overflow: hidden; }
.slide-track { display: flex; transition: transform .35s ease; }
.slide { min-width: 100%; padding: 16px 18px 12px; box-sizing: border-box; }
.slide .su-title { font-size: 15px; }
.slide-dots { display: flex; gap: 6px; justify-content: center; padding: 0 0 12px; }
.slide-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.slide-dots button.is-active { background: var(--navy-800); width: 18px; border-radius: 4px; }
.oos-tag { display: inline-block; font-size: 11px; font-weight: 650; color: var(--danger); background: var(--danger-bg); border-radius: 999px; padding: 1px 8px; }

/* v1.6 approval workflows */
.text-danger { color: var(--danger); }
.ap-sum { text-decoration: none !important; color: inherit; transition: box-shadow .15s; }
.ap-sum:hover { box-shadow: var(--shadow-2, 0 4px 14px rgba(14,42,92,.08)); }
.ap-routes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ap-route-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.ap-route-edit select { width: 190px; max-width: 100%; }
.ap-route-n { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); width: 62px; }
.ap-plus { color: var(--text-3); font-weight: 700; }
.ap-positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ap-pos { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.ap-people { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow: auto; padding-right: 4px; }
.ap-people small { font-size: 11px; }
.ap-route { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px; }
.ap-route.is-done { border-color: color-mix(in srgb, var(--success) 45%, white); background: var(--success-bg); }
.ap-or { text-align: center; margin: 6px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.ap-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.ap-step + .ap-step { border-top: 1px dashed var(--border); }
.ap-dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--neutral-bg); color: var(--text-3); flex-shrink: 0; }
.ap-step.is-done .ap-dot { background: var(--success-bg); color: var(--success); }
.ap-step.is-rejected .ap-dot { background: var(--danger-bg); color: var(--danger); }
.ap-step b { display: block; font-size: 13px; }
@media (max-width: 640px) { .ap-route-edit select { width: 100%; } .ap-route-n { width: 100%; } .ap-plus { display: none; } }

/* ---------------------------------------------------------------- v1.7: light interaction polish (kept subtle) */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes revealIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.content > .page-head { animation: pageIn .18s ease-out both; }
.content > .card, .content > .grid, .content > .alert, .content > form.card, .content > .stack { animation: pageIn .22s ease-out both; }
.content > :nth-child(3) { animation-delay: .02s; }
.content > :nth-child(n+4) { animation-delay: .04s; }
.btn { transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .08s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:hover { box-shadow: 0 3px 10px rgba(14, 42, 92, .18); }
.table tbody tr td { transition: background .12s; }
.nav a { position: relative; }
.nav a .icon { transition: transform .15s, color .12s; }
.nav a:hover .icon { transform: translateX(1px); }
.nav a.is-active::before { animation: revealIn .2s ease-out; }
.card { transition: box-shadow .18s, border-color .18s; }
a.card:hover, .card.is-clickable:hover { box-shadow: var(--shadow-2); }
input, select, textarea { transition: border-color .14s, box-shadow .14s, background .14s; }
.badge { transition: transform .12s; }
.tag:hover, .badge:hover { transform: translateY(-1px); }
.contact-card { transition: background .15s; border-radius: 10px; }
.contact-card:hover { background: var(--surface-2); }
.reveal { animation: revealIn .22s ease-out both; }
.new-contact-inner { border: 1px dashed var(--navy-200, var(--border-2)); background: var(--navy-50, #F4F7FC); border-radius: 10px; padding: 12px 14px 4px; }
.new-contact-title { font-weight: 600; font-size: 13px; color: var(--navy-800, var(--ink)); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.is-locked { background: var(--surface-2) !important; color: var(--text-2); cursor: not-allowed; }
.pending-strip { border-left: 3px solid var(--warning, #C98A1B); }
.pending-strip .card-head h2 { display: flex; align-items: center; gap: 6px; }
.diff-table s { text-decoration-color: rgba(181, 71, 71, .55); }
@media (prefers-reduced-motion: reduce) {
  .content > *, .reveal, .nav a.is-active::before { animation: none !important; }
  .btn, .card, .nav a .icon, .badge, .tag { transition: none !important; }
}
