/* ui.css — Design tokens + styles. Tông màu bám theo Affordable Car Loans (ACL) thật:
   xanh lá thương hiệu #4cb050 + trắng + chữ đậm (NFR-UI-02). Rebrand = đổi biến trong :root,
   hoặc swap preset sống ở màn Assumptions (OI-07). */
:root {
  /* Brand — ACL (Affordable Car Loans) palette */
  --acl-primary: #1c4a2b;       /* xanh lá đậm cho topbar / sidebar */
  --acl-primary-700: #143a21;   /* đậm hơn (hover / gradient) */
  --acl-primary-300: #6fae87;   /* xanh nhạt (nhãn mờ trên nền tối) */
  --acl-accent: #4cb050;        /* xanh lá thương hiệu ACL */
  --acl-accent-700: #3d9142;    /* xanh đậm hơn cho hover */
  /* Status */
  --ok: #16a34a; --ok-bg: #dcfce7;
  --warn: #d97706; --warn-bg: #fef3c7;
  --danger: #dc2626; --danger-bg: #fee2e2;
  --info: #2563eb; --info-bg: #dbeafe;
  /* Neutrals */
  --bg: #eef2f5; --surface: #ffffff; --surface-2: #f8fafc;
  --border: #e2e8f0; --border-strong: #cbd5e1;
  --text: #0f172a; --muted: #64748b; --muted-2: #94a3b8;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; }
#app { height: 100vh; display: flex; flex-direction: column; }
a { color: var(--acl-accent-700); text-decoration: none; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
button { font-family: inherit; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: 16px; background: var(--acl-primary); color: #fff; padding: 0 16px; height: 56px; flex: 0 0 auto; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand .logo { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--acl-accent), #6fd47a); display: grid; place-items: center; color: var(--acl-primary-700); font-weight: 800; font-size: 15px; }
.brand small { font-weight: 500; opacity: .7; font-size: 11px; display: block; letter-spacing: .04em; }
.topbar .spacer { flex: 1; }
.mockup-ribbon { background: var(--warn); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 3px 9px; border-radius: 5px; }
.topbar-ctrls { display: flex; align-items: center; gap: 10px; }

/* clock + persona pills */
.pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12.5px; }
.pill .lbl { opacity: .65; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pill b { font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: rgba(255,255,255,.10); border-radius: 8px; padding: 2px; border: 1px solid rgba(255,255,255,.16); }
.seg button { background: transparent; border: 0; color: #fff; opacity: .7; padding: 5px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.seg button.active { background: #fff; color: var(--acl-primary); opacity: 1; font-weight: 600; }
.btn-clock { background: var(--acl-accent); border: 0; color: #04201d; font-weight: 650; padding: 6px 11px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.btn-clock:hover { background: #57c25c; }
.btn-ghost-light { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }

/* ---------- Layout ---------- */
.workspace { flex: 1; display: flex; overflow: hidden; }
.workspace.split .pane { width: 50%; border-right: 1px solid var(--border-strong); }
.workspace.split .pane:last-child { border-right: 0; }
.pane { flex: 1; display: flex; overflow: hidden; min-width: 0; }
.pane-head { display: none; }
.workspace.split .pane-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.pane-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pane-inner { display: flex; flex: 1; overflow: hidden; }

/* sidebar */
.sidebar { width: 236px; flex: 0 0 auto; background: var(--acl-primary-700); color: #cdd9e1; padding: 12px 10px; overflow-y: auto; overflow-x: hidden; transition: width .16s ease, padding .16s ease; }
.workspace.split .sidebar { width: 184px; }
/* thu gọn: chỉ còn icon */
.sidebar.collapsed { width: 56px; padding-left: 6px; padding-right: 6px; }
.workspace.split .sidebar.collapsed { width: 52px; }
.sidebar .sb-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sidebar.collapsed .sb-top { justify-content: center; }
.sidebar .grp { flex: 1; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #6f8ea3; margin: 10px 8px 2px; }
.sb-toggle { flex: 0 0 auto; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #cdd9e1; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1; }
.sb-toggle:hover { background: rgba(255,255,255,.18); color: #fff; }
.sidebar a { display: flex; align-items: center; gap: 9px; color: #cdd9e1; padding: 10px 12px; border-radius: 7px; font-size: 14px; margin-bottom: 4px; white-space: nowrap; }
.sidebar.collapsed a { justify-content: center; padding: 9px 0; }
.sidebar a .ico { width: 16px; text-align: center; opacity: .85; }
.sidebar.collapsed a .ico { width: auto; }
.sidebar a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a.active { background: var(--acl-accent); color: #04201d; font-weight: 600; }
.sidebar .sb-foot { margin-top: 16px; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7e98aa; }
/* nhóm nav (category) thu/mở được */
.sidebar .sb-section { margin-bottom: 2px; }
.sidebar .sb-group { display: flex; align-items: center; gap: 6px; width: 100%; background: 0; border: 0; cursor: pointer;
  color: #6f8ea3; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 9px 8px 4px; }
.sidebar .sb-group:hover { color: #9fb6c6; }
.sidebar .sb-group .caret { font-size: 9px; width: 10px; }
/* dấu * cho tính năng đề xuất (ngoài MVP) */
.prop-star { color: var(--warn); font-weight: 800; margin-left: 1px; }
.sidebar .prop-star { color: #fbbf24; }
.prop-badge { margin-left: 10px; vertical-align: middle; font-size: 10.5px; }

/* Alerts / notification center (PROPOSED) */
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.alert-row:last-child { border-bottom: 0; }
.alert-row:hover { background: var(--surface-2); }
.alert-ico { font-size: 18px; width: 24px; text-align: center; }
.alert-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.alert-title { font-weight: 600; font-size: 13.5px; }
.alert-detail { color: var(--muted); font-size: 12.5px; }
.alert-go { color: var(--muted); font-size: 18px; }
.btn-ghost-light.bell { position: relative; }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* main scroll area */
.main { flex: 1; overflow-y: auto; padding: 22px 26px 60px; min-width: 0; }
.workspace.split .main { padding: 16px 16px 50px; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.page-head .titles h1 { font-size: 21px; }
.page-head .titles p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.crumb { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }

/* ---------- "Why this screen?" note ---------- */
.btn-why { color: var(--info); border-color: var(--info); background: var(--info-bg); font-weight: 600; }
.btn-why:hover { background: #cfe0fd; border-color: var(--info); }
.btn-why.on { background: var(--info); color: #fff; border-color: var(--info); }
.btn-why .i { font-size: 14px; line-height: 1; }
.screen-note { position: relative; background: var(--info-bg); border: 1px solid #bfdbfe; border-left: 3px solid var(--info);
  border-radius: var(--radius-sm); padding: 14px 38px 14px 16px; margin: -6px 0 18px; }
.screen-note .x { position: absolute; top: 8px; right: 10px; background: 0; border: 0; color: var(--info); font-size: 18px; line-height: 1; cursor: pointer; opacity: .7; }
.screen-note .x:hover { opacity: 1; }
.screen-note .sn-row { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; }
.screen-note .sn-row p { margin: 0; font-size: 13px; color: #1e3a5f; }
.sn-tag { flex: 0 0 122px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--info); }
.sn-points { margin: 8px 0 0; padding: 10px 0 0 18px; border-top: 1px dashed #bfdbfe; }
.sn-points li { font-size: 12.5px; color: #1e3a5f; margin: 3px 0; }
.sn-points b { color: #0c2d52; }
.snote-enter-active, .snote-leave-active { transition: opacity .15s ease, transform .15s ease; }
.snote-enter-from, .snote-leave-to { opacity: 0; transform: translateY(-6px); }

/* ---------- Cards / KPI ---------- */
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.workspace.split .cols-4 { grid-template-columns: repeat(2, 1fr); }
.workspace.split .cols-3 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-h { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card .card-h h3 { font-size: 14px; }
.card .card-h .actions { margin-left: auto; display: flex; gap: 6px; }
.card .card-b { padding: 16px; }
.card.pad { padding: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.kpi.accent { background: linear-gradient(160deg, var(--acl-primary), var(--acl-primary-700)); color: #fff; border: 0; }
.kpi.accent .k-label, .kpi.accent .k-sub { color: rgba(255,255,255,.75); }

/* ---------- Usage bar ---------- */
.usage { margin-top: 8px; }
.usage .track { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.usage .fill { height: 100%; background: linear-gradient(90deg, var(--acl-accent), #34d399); transition: width .6s cubic-bezier(.2,.8,.2,1), background .4s; border-radius: 99px; }
.usage .fill.high { background: linear-gradient(90deg, var(--warn), #f59e0b); }
.usage .fill.full { background: linear-gradient(90deg, var(--danger), #f87171); }
.usage .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.t-strong { font-weight: 600; }
.t-mut { color: var(--muted); }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.badge.info { color: var(--info); background: var(--info-bg); }
.badge.neutral { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.badge.accent { color: var(--acl-accent-700); background: #dcf3dd; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 550; cursor: pointer; transition: .12s; }
.btn:hover { border-color: var(--muted-2); background: var(--surface-2); }
.btn.primary { background: var(--acl-primary); border-color: var(--acl-primary); color: #fff; }
.btn.primary:hover { background: var(--acl-primary-700); }
.btn.accent { background: var(--acl-accent); border-color: var(--acl-accent); color: #04201d; }
.btn.accent:hover { background: var(--acl-accent-700); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.link { border: 0; background: transparent; color: var(--acl-accent-700); padding: 4px 6px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: #334155; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=number], input[type=email], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13.5px; font-family: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--acl-accent); box-shadow: 0 0 0 3px rgba(76,176,80,.18); }
textarea { min-height: 70px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.check input { width: auto; }
.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { max-width: 180px; }

/* ---------- Money flash (realtime emphasis) ---------- */
.money { font-variant-numeric: tabular-nums; transition: color .2s; }
.money.flash { animation: flashmoney .85s ease-out; }
@keyframes flashmoney { 0% { background: #fde68a; color: #92400e; border-radius: 4px; box-shadow: 0 0 0 3px #fde68a; } 100% { background: transparent; box-shadow: none; } }
.row-new { animation: rowin .9s ease-out; }
@keyframes rowin { 0% { background: var(--ok-bg); } 100% { background: transparent; } }

/* ---------- Modal ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; }
.modal.lg { max-width: 760px; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-h h3 { font-size: 16px; }
.modal-h .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 20px; background: 0; border: 0; }
.modal-b { padding: 20px; overflow-y: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; }
.toast { background: var(--text); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; align-items: center; gap: 9px; }
.toast.success { background: #14532d; } .toast.info { background: #1e3a5f; } .toast.warn { background: #7c2d12; }
.toast-enter-active, .toast-leave-active { transition: .3s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(10px); }

/* ---------- Misc ---------- */
.notice { padding: 12px 14px; border-radius: 9px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-bg); color: #92400e; }
.notice.danger { background: var(--danger-bg); color: #991b1b; }
.notice.info { background: var(--info-bg); color: #1e40af; }
.notice.ok { background: var(--ok-bg); color: #166534; }
.notice .ic { font-size: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { font-size: 30px; opacity: .4; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 550; }
.tag-rate { font-variant-numeric: tabular-nums; }
.sep { height: 1px; background: var(--border); margin: 14px 0; }
.fee-row, .band-row { display: grid; gap: 8px; align-items: center; margin-bottom: 8px; }
.band-row { grid-template-columns: 1fr 1fr 1fr auto; }
.fee-row { grid-template-columns: 2fr 1fr 1fr 1.2fr auto; }
.kbd { font-family: ui-monospace, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.big-amount { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Demo guide drawer */
.guide-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--acl-primary); color: #fff; border: 0; border-radius: 99px; padding: 11px 16px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg); }
.guide-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 380px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 70; display: flex; flex-direction: column; }
.guide-drawer .gh { padding: 16px 18px; background: var(--acl-primary); color: #fff; display: flex; align-items: center; }
.guide-drawer .gh .x { margin-left: auto; background: 0; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.guide-drawer .gb { padding: 18px; overflow-y: auto; }
.guide-step { border-left: 2px solid var(--acl-accent); padding: 4px 0 14px 14px; position: relative; }
.guide-step:before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; background: var(--acl-accent); border-radius: 50%; }
.guide-step h4 { font-size: 13.5px; } .guide-step p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

/* Feedback widget */
.fb-fab { position: fixed; right: 16px; bottom: 62px; z-index: 60; background: var(--acl-accent); color: #04201d; border: 0; border-radius: 99px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); }
.fb-fab:hover { background: var(--acl-accent-700); color: #fff; }
.fb-drawer .gh { background: var(--acl-accent-700); }
.fb-target { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.fb-drawer .seg.sm { background: var(--surface-2); border: 1px solid var(--border); padding: 2px; }
.fb-drawer .seg.sm button { color: var(--muted); font-weight: 600; }
.fb-drawer .seg.sm button.active { background: var(--acl-primary); color: #fff; }
.fb-screen { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 11px; font-size: 13px; margin-bottom: 12px; }
.fb-lbl { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 5px; }
.fb-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: var(--font); color: var(--text); }
.fb-input:focus { outline: 0; border-color: var(--acl-accent); }
.fb-stars { display: flex; align-items: center; gap: 4px; }
.fb-stars span { font-size: 24px; line-height: 1; color: var(--border-strong); cursor: pointer; transition: color .1s; }
.fb-stars span.on { color: #f59e0b; }
.fb-stars small { margin-left: 6px; }
.fb-send { width: 100%; margin-top: 12px; background: var(--acl-primary); color: #fff; border: 0; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fb-send:hover { background: var(--acl-primary-700); }
.fb-send:disabled { opacity: .6; cursor: default; }
.fb-list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fb-export { font-size: 11.5px; font-weight: 600; }
.fb-warn { font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: 7px; padding: 7px 9px; margin: 0 0 10px; }
.fb-item { border-top: 1px solid var(--border); padding: 10px 0; }
.fb-item-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fb-mini-stars { color: #f59e0b; font-size: 12px; }
.fb-time { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.fb-note { font-size: 12.5px; color: var(--text); margin-top: 4px; white-space: pre-wrap; }
.fb-meta { font-size: 11px; color: var(--muted-2); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.fb-row-actions { margin-left: auto; display: flex; gap: 10px; }
.fb-row-actions a { font-size: 11px; color: var(--acl-primary); text-decoration: none; }
.fb-row-actions a:hover { text-decoration: underline; }
.fb-row-actions a.del { color: #dc2626; }
.fb-stars-sm span { font-size: 18px; }
.fb-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.fb-act { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; cursor: pointer; }
.fb-act.save { background: var(--acl-primary); border-color: var(--acl-primary); color: #fff; }
.fb-act:disabled { opacity: .6; cursor: default; }

/* Login */
.login-wrap { flex: 1; display: grid; place-items: center; background: linear-gradient(160deg, var(--acl-primary), var(--acl-primary-700)); }
.login-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 380px; padding: 30px; }
.login-card .lc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.persona-grid { display: grid; gap: 10px; }
.persona-opt { border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.persona-opt:hover { border-color: var(--acl-accent); background: var(--surface-2); }
.persona-opt.sel { border-color: var(--acl-accent); background: #eef7ef; }
.persona-opt .pi { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--acl-primary); color: #fff; font-weight: 700; }
.mfa-boxes { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.mfa-boxes input { width: 42px; height: 50px; text-align: center; font-size: 20px; font-weight: 700; }
.sso-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.sso-sep:before, .sso-sep:after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Brand preset chips (OI-07 — Assumptions) */
.brand-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 550; cursor: pointer; transition: .12s; }
.brand-chip:hover { border-color: var(--muted-2); background: var(--surface-2); }
.brand-chip.sel { border-color: var(--acl-accent); box-shadow: 0 0 0 3px rgba(76,176,80,.18); }
.brand-chip .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
