:root {
  --bg: #f6f4ee;
  --panel: #fffefb;
  --ink: #1d2b25;
  --muted: #69746e;
  --brand: #18392b;
  --brand-2: #2e634c;
  --accent: #c99145;
  --line: #dedfd9;
  --danger: #a33a34;
  --warning: #9a6618;
  --success: #2c6b49;
  --shadow: 0 10px 30px rgba(24, 57, 43, 0.07);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { position: fixed; inset: 0 0 auto 0; height: 64px; background: rgba(255,254,251,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.brand { color: var(--brand); font-weight: 800; font-size: 18px; text-decoration: none; }
.version { font-size: 12px; color: var(--muted); margin-left: 8px; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.role-chip, .stage-chip, .card-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; background: #e9efe9; color: var(--brand); }
.user-name { color: var(--muted); }
.link-button { border: 0; background: transparent; color: var(--brand-2); padding: 0; }
.sidebar { position: fixed; top: 64px; bottom: 0; left: 0; width: 224px; padding: 22px 14px; border-right: 1px solid var(--line); background: #f1efe8; z-index: 20; }
.sidebar nav { display: grid; gap: 6px; }
.nav-link { padding: 11px 13px; border-radius: 12px; color: var(--ink); font-weight: 650; }
.nav-link:hover { background: #e6e9e2; text-decoration: none; }
.nav-divider { border-top: 1px solid var(--line); margin: 10px 0; }
.page-shell { margin-left: 224px; padding: 96px 30px 70px; max-width: 1500px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #e6eee7, transparent 42%), var(--bg); }
.bottom-nav { display: none; }
.readonly-banner, .notice-banner { position: fixed; top: 64px; left: 224px; right: 0; z-index: 35; padding: 10px 22px; background: #fff0d8; color: #69461c; border-bottom: 1px solid #ead2ae; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notice-banner { background: #e9f3ec; color: var(--brand); }
.readonly-banner + .sidebar ~ .page-shell, .notice-banner + .sidebar ~ .page-shell { padding-top: 142px; }
.auth-card { width: min(480px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
h1, h2, h3 { line-height: 1.2; color: var(--brand); margin-top: 0; }
h1 { font-size: clamp(27px, 4vw, 38px); margin-bottom: 10px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin-top: 0; }
.lead { color: #4d5b54; font-size: 17px; }
.lead.compact { max-width: 820px; margin-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--accent); margin-bottom: 7px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.stack-form { display: grid; gap: 15px; }
.stack-form label, .form-grid label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
input, select, textarea { width: 100%; border: 1px solid #cfd4ce; border-radius: 11px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(46,99,76,.11); }
textarea { resize: vertical; }
.button { display: inline-flex; border: 1px solid #c9d0ca; background: #fff; color: var(--brand); border-radius: 11px; padding: 10px 14px; font-weight: 750; align-items: center; justify-content: center; text-decoration: none; }
.button:hover { text-decoration: none; background: #f1f5f1; }
.button.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button.small { font-size: 12px; padding: 6px 9px; }
.button.full { width: 100%; }
.demo-box { margin-top: 18px; padding: 12px; border-radius: 12px; background: #f4f5f1; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(24,57,43,.025); }
.panel-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.panel-header h2 { margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 15px; display: grid; gap: 9px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 26px; color: var(--brand); }
.stat-card.danger strong { color: var(--danger); }
.stat-card.warning strong { color: var(--warning); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.summary-grid .panel { display: grid; gap: 5px; }
.summary-grid strong { font-size: 18px; }
.summary-grid small { color: var(--muted); }
.label { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.list-stack { display: grid; gap: 9px; }
.list-item { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 12px; border: 1px solid #e4e5df; border-radius: 13px; background: #fff; }
.list-item.clickable { color: inherit; }
.list-item.clickable:hover { background: #f6f8f5; text-decoration: none; }
.list-item.overdue { border-left: 4px solid var(--danger); }
.right-text { text-align: right; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.principle-panel { margin-top: 18px; border-left: 5px solid var(--accent); }
.search-bar { display: flex; gap: 9px; margin-bottom: 18px; }
.search-bar input { flex: 1; }
.search-bar select { max-width: 230px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.customer-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: inherit; box-shadow: 0 2px 8px rgba(24,57,43,.02); }
.customer-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.customer-card h3 { margin: 14px 0 8px; font-size: 19px; }
.customer-card p { color: #58655e; min-height: 48px; }
.card-row { display: flex; justify-content: space-between; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.mini-grid span { color: var(--muted); font-size: 11px; }
.mini-grid strong { display: block; color: var(--ink); font-size: 13px; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .wide, .form-section, .form-actions { grid-column: 1/-1; }
.form-section { border-bottom: 1px solid var(--line); padding: 14px 0 8px; margin: 0; }
.form-section:first-child { padding-top: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; }
.role-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.role-card span, .role-card small { color: var(--muted); font-size: 11px; }
.role-card strong { font-size: 14px; }
.nba-box { background: #eef4ef; border-left: 5px solid var(--brand-2); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.nba-box span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.nba-box strong { display: block; margin: 6px 0; font-size: 16px; }
.nba-box p { margin: 0; color: #536158; }
.chip-row, .gate-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 14px; }
.gate { border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.gate.pass { background: #dff0e5; color: #246242; }
.gate.fail { background: #f4e4e1; color: #8a332f; }
details { border-top: 1px solid var(--line); padding: 9px 0; }
summary { cursor: pointer; font-weight: 750; color: var(--brand); }
ul, ol { padding-left: 22px; }
.inline-actions, .inline-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.inline-actions { margin: 14px 0; }
.inline-form input { flex: 1 1 220px; }
.inline-form select { width: auto; min-width: 160px; }
.checkbox { display: flex !important; grid-auto-flow: column; align-items: center; gap: 7px !important; font-weight: 600 !important; white-space: nowrap; }
.checkbox input { width: auto; }
.timeline { display: grid; gap: 12px; }
.timeline-item { border-left: 3px solid #cfd9d1; padding-left: 14px; }
.timeline-item span { font-size: 11px; color: var(--accent); font-weight: 800; margin-right: 8px; }
.timeline-item p { white-space: pre-wrap; color: #56635c; margin: 7px 0 0; }
.meeting-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 18px; margin-bottom: 18px; }
.sticky-card { position: sticky; top: 90px; align-self: start; }
.progress-board { display: grid; gap: 8px; margin-top: 18px; }
.progress-board div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.progress-board span { color: var(--muted); }
.article { max-width: 850px; margin: auto; }
.article-body { font-size: 16px; line-height: 1.8; margin: 24px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stale-row { background: #fff5f3; }
.danger-text { color: var(--danger); font-size: 11px; font-weight: 800; }
.license-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.license-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.license-grid span { display: block; color: var(--muted); font-size: 12px; }
.license-grid strong { display: block; margin-top: 5px; font-size: 17px; }
.flash { margin-bottom: 14px; border-radius: 12px; padding: 11px 14px; border: 1px solid; }
.flash.info { background: #eef4fa; border-color: #c8d9e8; }
.flash.success { background: #e6f4ea; border-color: #bedbc8; color: #245d3c; }
.flash.warning { background: #fff2dc; border-color: #ead2a7; color: #775018; }
.flash.error { background: #fbe8e5; border-color: #e6bdb7; color: #853630; }

@media (max-width: 1050px) {
  .stat-grid { grid-template-columns: repeat(3,1fr); }
  .sidebar { width: 190px; }
  .page-shell { margin-left: 190px; }
  .readonly-banner, .notice-banner { left: 190px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .topbar { height: 58px; padding: 0 14px; }
  .version, .role-chip, .user-name, .topbar-right form { display: none; }
  .sidebar { display: none; }
  .page-shell { margin-left: 0; padding: 78px 13px 88px; }
  .readonly-banner, .notice-banner { top: 58px; left: 0; padding: 9px 13px; font-size: 12px; }
  .readonly-banner + .sidebar ~ .page-shell, .notice-banner + .sidebar ~ .page-shell { padding-top: 128px; }
  .bottom-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,254,251,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: grid; place-items: center; gap: 2px; padding: 8px 2px; color: var(--muted); }
  .bottom-nav span { font-size: 19px; }
  .bottom-nav small { font-size: 10px; }
  .page-heading { align-items: flex-end; }
  .page-heading h1 { font-size: 26px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .two-col, .three-col, .meeting-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .form-section, .form-actions { grid-column: auto; }
  .form-section { grid-column: 1/-1; }
  .search-bar { flex-wrap: wrap; }
  .search-bar select { max-width: none; }
  .inline-form { align-items: stretch; }
  .inline-form > * { width: 100% !important; }
  .license-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 19px; }
}
.market-card h2 { min-height: 48px; }
.compact-form { flex-wrap: nowrap; margin: 0; }
.compact-form select { min-width: 110px; }
@media (max-width: 760px) {
  .market-card h2 { min-height: auto; }
  .compact-form { flex-wrap: wrap; }
}


.voice-capture { margin-bottom: 18px; padding: 16px; border: 1px solid #d6ddd7; border-radius: 14px; background: #f5f8f5; }
.voice-capture h3 { margin-bottom: 7px; }
.voice-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 650; margin: 12px 0; }
.voice-consent input { width: auto; margin-top: 3px; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.voice-status { min-height: 42px; border-radius: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.voice-status[data-state="recording"] { background: #fbe8e5; color: #853630; border-color: #e6bdb7; }
.voice-status[data-state="paused"] { background: #fff2dc; color: #775018; border-color: #ead2a7; }
.voice-status[data-state="uploading"], .voice-status[data-state="transcribing"] { background: #eef4fa; color: #31566f; border-color: #c8d9e8; }
.voice-status[data-state="ready"] { background: #e6f4ea; color: #245d3c; border-color: #bedbc8; }
.voice-recovery { display: grid; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff2dc; border: 1px solid #ead2a7; }
.voice-recovery-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.voice-recovery-item p { flex-basis: 100%; margin: 0; }
.voice-recovery[hidden] { display: none; }
.voice-status[data-state="error"] { background: #fbe8e5; color: #853630; border-color: #e6bdb7; }
.manual-entry-heading { margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.voice-cancel-form { margin-top: 14px; }
.voice-transcript-panel { max-width: 900px; }

@media (max-width: 760px) {
  .voice-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .voice-actions .button { width: 100%; }
  .voice-transcript-panel textarea { min-height: 260px; }
}

.voice-file-fallback { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 12px 0; }
.voice-file-fallback label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.voice-file-fallback input[type="file"] { padding: 8px; background: #fff; }
@media (max-width: 760px) {
  .voice-file-fallback { grid-template-columns: 1fr; align-items: stretch; }
  .voice-file-fallback .button { width: 100%; }
}

/* P0.1: capture-first layout, compact daily work and customer lists. */
.capture-flow { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.capture-first { border: 2px solid var(--brand-2); }
.confirmed-profile, .decision-participants, #tasks { margin-bottom: 18px; }
#capture, #advisory, #tasks { scroll-margin-top: 82px; }
.confirmed-items { display: flex; flex-wrap: wrap; gap: 18px 32px; }
.confirmed-items div { display: grid; gap: 4px; }
.confirmed-items span, .confirmed-items small { color: var(--muted); font-size: 12px; }
.decision-participants > p, .form-group .form-grid { margin-top: 14px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-list { display: grid; gap: 8px; }
.compact-customer { padding: 12px 15px; border-radius: 12px; min-width: 0; }
.customer-row-title { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.compact-customer h3 { margin: 0; font-size: 17px; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.customer-contact { font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compact-customer p { margin: 4px 0 0; min-height: 0; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stats-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 10px 0 16px; font-size: 13px; color: var(--muted); }
.stats-inline strong { color: var(--brand); }
.priority-list { list-style: none; padding: 0; margin: 0; }
.priority-item { display: grid; grid-template-columns: 26px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.priority-item:hover { text-decoration: none; background: #f5f8f5; }
.priority-number { font-size: 13px; color: var(--muted); }
.priority-item p { margin: 4px 0; }
.priority-item small { color: var(--muted); }
.missing-guidance p { margin-top: 10px; }
.form-group { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .bottom-nav { grid-template-columns: repeat(5,1fr); }
  .customers-heading { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .customers-heading h1 { margin-bottom: 0; }
  .customers-heading .eyebrow { display: none; }
  .customers-heading .button { min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .compact-customer { padding: 10px 12px; }
  .compact-customer h3 { font-size: 16px; }
  .customer-row-title .stage-chip { max-width: 125px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .today-panel, .capture-first { padding: 14px; }
  .capture-first .panel-header { flex-wrap: wrap; gap: 6px; }
  .priority-item { gap: 7px; padding: 12px 0; }
  .form-group .form-grid { gap: 12px; }
  .form-group summary { min-height: 44px; display: flex; align-items: center; }
}

.inventory-filters { margin-bottom: 18px; }

/* Preserve native hidden state against authored button display rules. */
[hidden] { display: none !important; }

/* P0.1 completion: compact work lists and explicit appointment controls. */
.count-badge {display:inline-flex;font-size:16px;padding:4px 9px;background:#e9efe9;border-radius:20px;vertical-align:middle;}
.count-line {margin:8px 0 12px;font-size:13px;color:var(--muted);}
.customer-order {font-size:13px;color:var(--muted);font-weight:600;}
.reminder-group,.reminder-create,.source-card,.inventory-minima,.import-history {margin:14px 0;}
.reminder-item {padding:12px;border:1px solid var(--line);border-radius:12px;}
.reminder-item p {margin:5px 0;}
.task-deadline {color:var(--brand);font-size:14px;font-weight:700;}
.source-url {font-size:12px;overflow-wrap:anywhere;}
.minimum-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;}
.minimum-card {display:grid;gap:5px;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0;}
.minimum-card small {font-size:12px;color:var(--muted);}
.minimum-card b {font-size:17px;}
.inventory-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px;}
.offer-card {min-width:0;}
.offer-card h2 {margin:6px 0;font-size:19px;}
.offer-heading {display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;}
.offer-card p {margin:8px 0;}
.install-panel {max-width:760px;}
.install-panel h2 {margin-top:24px;}
.note-preview {max-width:300px;white-space:pre-wrap;overflow-wrap:anywhere;}
.stack-form .checkbox,.form-grid .checkbox {white-space:normal;}
.inline-form label {display:grid;gap:5px;}
input,select,textarea {min-width:0;}
@media(max-width:760px){
  .bottom-nav {grid-template-columns:repeat(5,1fr);background:#fffefb;}
  .page-heading {gap:10px;flex-wrap:wrap;}
  .page-heading>.button {white-space:nowrap;}
  .customers-heading h1 {margin-bottom:0;}
  .heading-actions {display:flex;flex-wrap:wrap;gap:8px;}
  .heading-actions .button {font-size:12px;padding:8px 10px;min-height:40px;}
  .inventory-list {grid-template-columns:1fr;}
  .minimum-grid {grid-template-columns:1fr;}
  .source-card,.offer-card,.reminder-group {padding:14px;}
  .panel-header {align-items:flex-start;flex-wrap:wrap;}
  .checkbox {white-space:normal;}
  .inline-form label {width:100%;}
  .customer-contact {overflow-wrap:anywhere;}
}

[hidden]{display:none!important}html.hhos-app-window .bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.topbar-right form{display:block}.topbar-right .link-button{min-height:44px;padding:6px;font-size:12px}.brand{font-size:16px}}
.push-panel,.install-guide {margin:14px 0;max-width:760px;}
.guide-steps li {margin:6px 0;}

/* R12.62: Sổ học việc - mỗi dòng gọn trên điện thoại */
.notebook-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.notebook-line form{display:flex;gap:6px;margin:0}.notebook-line .notebook-edit{flex:1 1 220px}.notebook-line .notebook-edit input{flex:1;min-width:0}.notebook-line small{flex-basis:100%}
/* R12.65a: dien thoai co o "Thêm" (du moi muc nhu thanh ben), hien ten + vai tro tren thanh tren */
.more-account {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.more-menu {display:grid;gap:2px;padding:8px;}
.more-link {display:block;padding:13px 12px;border-radius:8px;color:var(--ink,inherit);min-height:44px;}
.more-link:hover,.more-link.active {background:#f1efe8;}
.more-menu .nav-divider {margin:8px 4px;}
.more-logout {margin:14px 0;}
@media(max-width:760px){
  html.hhos-app-window .bottom-nav, .bottom-nav {grid-template-columns:repeat(5,minmax(0,1fr));}
  .bottom-nav.bottom-nav-company, html.hhos-app-window .bottom-nav.bottom-nav-company {grid-template-columns:repeat(2,minmax(0,1fr));}
  .brand-rest {display:none;}
  .topbar-right {gap:6px;min-width:0;}
  .more-account .more-role {display:inline-flex;}
  .topbar-right .role-chip {display:inline-block;font-size:11px;padding:3px 7px;white-space:nowrap;}
  .topbar-right .user-name {display:inline-block;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
}
/* R12.65a: trang dang ky - dai dung thu nam trong the (truoc dung notice-banner co dinh nen de len tieu de), o ma ro rang, o bay an */
.trial-notice {margin:12px 0 18px;padding:12px 14px;border:1px solid #e8d9a8;border-radius:14px;background:#fbf5e3;font-size:13px;line-height:1.5;}
.code-fields {border:1px solid var(--line);border-radius:14px;padding:10px 14px 4px;margin:4px 0 6px;display:grid;gap:12px;}
.code-fields legend {font-weight:700;padding:0 6px;}
.code-fields .muted {margin:0;font-size:13px;}
.optional {font-weight:400;font-size:12px;color:var(--muted);}
.hp-field {position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden;}
.menu-badge {display:inline-block;min-width:18px;padding:0 6px;margin-left:6px;border-radius:999px;background:#b5462f;color:#fff;font-size:11px;font-weight:700;text-align:center;line-height:18px;}
.bottom-nav a {position:relative;}
.bottom-nav .tab-dot {position:absolute;top:6px;right:calc(50% - 16px);width:9px;height:9px;border-radius:50%;background:#b5462f;}
/* R12.66j (buổi thử 27/10 17:40): ô chọn "Để ở / Đầu tư / Chưa rõ" - vòng tròn và chữ cùng dòng (trước bị .stack-form label dạng lưới + input rộng 100% đẩy vòng tròn lên trên chữ) */
.stack-form .care-quick label {display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0;font-weight:600;}
.stack-form .care-quick input[type="radio"] {width:auto;margin:0;padding:0;flex:none;}

/* v2 08/11/2026: nút con mắt hiện/ẩn mật khẩu (vùng bấm 44px cho điện thoại) */
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted, #667); border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.stack-form > label[for="login-password"] { margin-bottom: -9px; }

/* v2 08/11/2026: nút con mắt hiện/ẩn mật khẩu (vùng bấm 44px cho điện thoại) */
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted, #667); border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.stack-form > label[for="login-password"] { margin-bottom: -9px; }
