/* 8matter DEMO — giao diện. --brand lấy từ màu khách chọn trong form. */
:root {
  --brand: #0f766e;
  --bg: #f5f6f8; --card: #fff; --ink: #1d2433; --muted: #6b7385; --line: #e3e6ec;
  --green: #15803d; --red: #c62828; --amber: #b45309; --blue: #1d4ed8;
  --green-bg: #e7f6ec; --red-bg: #fdecec; --amber-bg: #fff4e0; --blue-bg: #e8effd; --grey-bg: #eef0f3;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
h1 { font-size: 20px; margin: 0; } h3 { font-size: 15px; margin: 0; } h4 { font-size: 13px; margin: 14px 0 6px; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); } .xs { font-size: 12px; } .mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .5px; }
.green { color: var(--green); } .red { color: var(--red); }
.num { text-align: right; white-space: nowrap; }

/* ---- khung ---- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: #fff; border-bottom: 3px solid var(--brand); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.logo-txt { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.b-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-sub { color: var(--muted); font-size: 12px; }
.demo-badge { background: #c62828; color: #fff; font-weight: 800; letter-spacing: 2px; padding: 3px 10px; border-radius: 6px; font-size: 13px; }
.top-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.role-sel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.role-sel select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.layout.no-nav { grid-template-columns: 1fr; } .layout.no-nav .side { display: none; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; }
.nav { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.nav:hover { background: var(--grey-bg); } .nav.on { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-weight: 600; }
.ni { width: 20px; text-align: center; }
.side-foot { margin-top: auto; font-size: 11px; color: var(--muted); padding: 10px; border-top: 1px solid var(--line); line-height: 1.7; }
.main { padding: 18px 22px 60px; min-width: 0; }
.page-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mod { font-size: 12px; color: var(--muted); }
.foot { margin-top: 30px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.watermark { position: fixed; right: -40px; bottom: 90px; transform: rotate(-30deg); font-size: 120px; font-weight: 900; color: rgba(198, 40, 40, .06); pointer-events: none; z-index: 1; letter-spacing: 10px; }

/* ---- thành phần ---- */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #c5cad3; } .btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: none; } .btn.sm { padding: 4px 9px; font-size: 12.5px; } .btn.big { padding: 11px 22px; font-size: 15px; } .btn.block { display: block; width: 100%; margin-top: 10px; }
.icon-btn { border: 0; background: none; font-size: 16px; color: var(--muted); padding: 4px 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
details.card { padding: 12px 16px; } details.card summary { cursor: pointer; font-weight: 600; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-b { padding: 14px 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .grid2.tight { gap: 12px; } .grid2.wide-left { grid-template-columns: 1.6fr 1fr; }
.grid2 > .card { margin-bottom: 0; } .grid2 { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.kpi.ok { border-left-color: var(--green); } .kpi.warn { border-left-color: var(--amber); } .kpi.bad { border-left-color: var(--red); }
.kpi-l { font-size: 12px; color: var(--muted); } .kpi-v { font-size: 20px; font-weight: 700; margin-top: 2px; } .kpi-s { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px; white-space: nowrap; vertical-align: middle; letter-spacing: .2px; }
.tag-now { background: var(--green-bg); color: var(--green); border: 1px solid #b7e2c4; }
.tag-road { background: #f3effc; color: #6d28d9; border: 1px solid #ddd0f7; }
.chip { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; font-weight: 500; }
.st-green { background: var(--green-bg); color: var(--green); } .st-red { background: var(--red-bg); color: var(--red); } .st-amber { background: var(--amber-bg); color: var(--amber); } .st-blue { background: var(--blue-bg); color: var(--blue); } .st-grey { background: var(--grey-bg); color: #475066; }
.callout { background: #f0f7f6; border: 1px solid #cfe5e1; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; }
.callout.warn { background: var(--amber-bg); border-color: #f3d9a4; }
.empty { color: var(--muted); padding: 14px; text-align: center; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.act-list li { font-size: 13px; }
.flow { padding-left: 18px; margin: 6px 0; } .flow li { margin: 6px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.segs { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 10px; }
.seg { border: 0; border-right: 1px solid var(--line); background: #fff; padding: 6px 12px; font-size: 13px; }
.seg:last-child { border-right: 0; } .seg.on { background: var(--brand); color: #fff; }
.inp { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.inp:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.form-row { margin-bottom: 10px; } .form-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.switch { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---- bảng ---- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.tbl td { padding: 8px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.tbl.compact td, .tbl.compact th { padding: 5px 8px; }
.tbl tr.row-warn td { background: #fffaf0; } .tbl tr.row-bad td { background: #fff5f5; } .tbl tr.row-total td { background: #f6f8fa; border-top: 2px solid var(--line); }
.tbl tr.row-new td, .kcard.row-new { animation: flash 2.4s ease; }
@keyframes flash { 0%, 40% { background: #d9f7e3; } 100% { background: inherit; } }

/* ---- stepper ---- */
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 16px; gap: 6px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.stepper li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grey-bg); font-size: 11px; font-weight: 700; }
.stepper li.done { color: var(--green); border-color: #b7e2c4; } .stepper li.done span { background: var(--green); color: #fff; }
.stepper li.cur { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 600; } .stepper li.cur span { background: #fff; color: var(--brand); }

/* ---- TT60 ---- */
.comply { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; margin-bottom: 12px; }
.comply.ok { background: var(--green-bg); color: #14532d; } .comply.bad { background: var(--red-bg); color: #7f1d1d; }
.comply .big { font-size: 34px; font-weight: 800; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; } .compare > div { background: #fafbfc; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }

/* ---- sơ đồ phòng ---- */
.legend-row { display: flex; flex-wrap: wrap; gap: 8px; }
.legend-i { font-size: 12px; padding: 3px 9px; border-radius: 6px; border-left: 4px solid; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bname { margin: 4px 0 8px; }
.floor { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.floor-l { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.tile { text-align: left; border: 1px solid var(--line); border-left: 5px solid; border-radius: 8px; background: #fff; padding: 7px 9px; position: relative; color: var(--ink); min-height: 92px; }
.tile:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.rs-occ { border-left-color: #2563eb; } .rs-book { border-left-color: #7c3aed; } .rs-dirty { border-left-color: #d97706; } .rs-vac { border-left-color: #16a34a; }
.t-h { display: flex; justify-content: space-between; } .t-k { font-size: 10.5px; color: var(--muted); }
.t-s { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.t-dev { display: flex; justify-content: space-between; font-size: 11.5px; gap: 4px; } .t-dev .on { color: var(--blue); font-weight: 600; } .t-dev .off { color: var(--muted); }
.t-w { font-size: 11px; color: var(--muted); }
.t-icons { position: absolute; right: 7px; bottom: 5px; font-size: 12px; }
.tile.waste { background: #fff1f1; border-color: #f2b8b8; animation: pulse 1.2s infinite; }
.tile.alarm { background: #ffe1e1; border-color: var(--red); }
.t-alert { font-size: 11px; color: var(--red); font-weight: 600; margin-top: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(198, 40, 40, .18); } }
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dev { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; } .dev-h { font-size: 12px; color: var(--muted); } .dev-v { font-weight: 600; margin: 3px 0 6px; font-size: 13px; }

/* ---- biểu đồ ---- */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--brand); } .chart .bar.s1 { fill: color-mix(in srgb, var(--brand) 55%, #fff); }
.chart .bar.muted-bar { fill: #c9ced8; } .chart .bar.green-bar { fill: #16a34a; }
.chart .grid { stroke: #eceef2; } .chart .ax { font-size: 10px; fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; background: var(--brand); vertical-align: middle; }
.sw.s1 { background: color-mix(in srgb, var(--brand) 55%, #fff); } .sw.muted-bar { background: #c9ced8; } .sw.green-bar { background: #16a34a; }

/* ---- QR, Zalo ---- */
.vietqr { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: #fff; }
.vq-h { font-size: 13px; margin-bottom: 6px; color: #0b5ed7; } .vq-l { font-size: 12.5px; text-align: left; margin: 8px auto; max-width: 240px; }
.qr { border: 6px solid #fff; outline: 1px solid var(--line); }
.zalo-msg { background: #f2f6ff; border: 1px solid #d6e2ff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; text-align: left; }
.zalo-oa { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.zalo-logo { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #0068ff; color: #fff; font-weight: 800; font-size: 12px; }
.zalo-title { font-weight: 700; margin-bottom: 3px; } .zalo-cta { margin-top: 6px; color: #0068ff; font-weight: 600; }

/* ---- PCCC ---- */
.pccc-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.countdown { display: flex; gap: 12px; align-items: center; background: #fff5f5; border: 1px solid #f5c2c2; border-radius: 12px; padding: 12px 16px; }
.cd-n { font-size: 40px; font-weight: 800; color: var(--red); line-height: 1; }
.alarm-box { background: var(--red); color: #fff; padding: 14px; border-radius: 10px; margin-bottom: 12px; animation: pulse 1.2s infinite; }
.alarm-big { font-size: 24px; font-weight: 800; }
.alert { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.al-crit { background: var(--red-bg); } .al-warn { background: var(--amber-bg); } .al-info { background: var(--blue-bg); }

/* ---- sự cố ---- */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kcol { background: #eef0f4; border-radius: 10px; padding: 10px; min-height: 200px; } .kcol-h { font-weight: 700; margin-bottom: 8px; }
.kcard { background: #fff; border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; box-shadow: var(--shadow); font-size: 13px; display: grid; gap: 4px; }
.kcard.sensor { border-left: 4px solid var(--red); }

/* ---- kịch bản ---- */
.scens { display: grid; gap: 8px; }
.scen { display: grid; text-align: left; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--brand); }
.scen:hover { background: #f8fafb; } .scen span { font-size: 12px; color: var(--muted); } .scen.rec { background: #f3faf9; }
.tour { position: fixed; left: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 36px); background: #10232a; color: #fff; border-radius: 14px; padding: 12px 14px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.tour-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .8; } .tour .icon-btn { color: #fff; }
.tour-dots { display: flex; gap: 4px; margin: 6px 0; } .tour-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); } .tour-dots i.d { background: #5eead4; } .tour-dots i.c { background: #fff; }
.tour-t { font-weight: 700; font-size: 15px; } .tour-say { font-size: 13px; opacity: .92; margin: 6px 0 10px; line-height: 1.5; }
.tour-f { display: flex; gap: 8px; justify-content: flex-end; } .tour .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); } .tour .btn.primary { background: #14b8a6; border-color: #14b8a6; }

/* ---- mô phỏng ---- */
.sim-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: #111827; color: #fff; border: 0; padding: 11px 16px; border-radius: 30px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sim-panel { position: fixed; right: 18px; bottom: 70px; width: 330px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); padding: 10px; z-index: 55; max-height: 70vh; overflow: auto; }
.sim-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.sim-btn { display: flex; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; margin-bottom: 6px; align-items: center; }
.sim-btn:hover { background: #f6f7f9; } .sim-btn > span:last-child { display: grid; } .sim-i { font-size: 20px; }

/* ---- thông báo & hộp thoại ---- */
.toasts { position: fixed; top: 76px; right: 18px; z-index: 80; display: grid; gap: 8px; width: 380px; max-width: calc(100vw - 36px); }
.toast { background: #fff; border-left: 5px solid var(--blue); padding: 10px 14px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); font-size: 13.5px; transition: opacity .4s, transform .4s; }
.toast-ok { border-left-color: var(--green); } .toast-warn { border-left-color: var(--amber); } .toast-bad { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateX(30px); }
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 70; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 14px; width: 560px; max-width: 100%; max-height: 90vh; overflow: auto; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.modal-card.wide { width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 14px 18px; } .modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.demo-mark.sm { position: absolute; top: 16px; right: 52px; font-size: 10px; font-weight: 800; color: #c62828; border: 1px solid #c62828; padding: 0 5px; border-radius: 4px; letter-spacing: 1px; }

/* ---- báo cáo ---- */
.report-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: linear-gradient(180deg, #f6fbfa, #fff); }
.rc-big { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.roi-ctl label { display: block; margin: 10px 0; font-size: 13px; } .roi-ctl input[type=range] { width: 100%; accent-color: var(--brand); }
.big-code { font-size: 16px; font-weight: 700; }

/* ---- điện thoại ---- */
.phone-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.phone-side { flex: 1 1 280px; max-width: 420px; }
.phone { width: 360px; height: 720px; border: 12px solid #111; border-radius: 42px; background: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); flex: none; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #111; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-top { display: flex; justify-content: space-between; padding: 6px 18px 4px; font-size: 11px; font-weight: 600; background: var(--brand); color: #fff; }
.phone-screen { flex: 1; overflow: hidden; display: flex; flex-direction: column; background: #f4f6f8; }
.phone-mark { position: absolute; top: 36px; right: 10px; font-size: 10px; font-weight: 800; color: #fff; background: #c62828; padding: 1px 6px; border-radius: 4px; letter-spacing: 1px; z-index: 3; }
.app { flex: 1; overflow: auto; padding: 12px; font-size: 13px; }
.app h4 { margin-top: 4px; }
.app-hello { font-size: 18px; font-weight: 700; margin: 8px 0 12px; }
.app-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.app-card.due { border-top: 4px solid var(--brand); } .app-card.ok { color: var(--green); font-weight: 600; }
.app-big { font-size: 24px; font-weight: 800; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.app-grid button { background: #fff; border: 0; border-radius: 12px; padding: 12px 8px; box-shadow: var(--shadow); display: grid; gap: 4px; font-size: 20px; text-align: center; color: var(--ink); }
.app-grid button span { font-size: 12px; }
.app-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); gap: 8px; } .app-line.total { font-size: 15px; border-bottom: 0; }
.app-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #fff; }
.app-nav button { border: 0; background: none; padding: 7px 0 9px; font-size: 11px; color: var(--muted); display: grid; } .app-nav button span { font-size: 18px; } .app-nav button.on { color: var(--brand); font-weight: 700; }
.app .inp { margin-bottom: 8px; }
.app .vietqr .qr { width: 150px; height: 150px; }

/* ---- màn hình tạo demo ---- */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #e7f3f1, #f5f6f8 60%); }
.land-card { background: #fff; border-radius: 18px; padding: 26px; width: 760px; max-width: 100%; box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.land-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; } .land-h h1 { font-size: 22px; } .land-h p { margin: 4px 0 0; } .land-h .demo-badge { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 18px; }
.form-grid label { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; } .form-grid .span2 { grid-column: span 2; }
.inp.color { padding: 2px; height: 38px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 16px 0 8px; }

/* ---- màn hình hẹp ---- */
@media (max-width: 980px) {
  .grid2, .grid2.wide-left { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr 1fr; }
  .pccc-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .top { position: static; } .brand { flex-basis: 100%; } .top-r { width: 100%; } .role-sel { flex: 1; } .role-sel select { width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 8px 10px; } .kpi-v { font-size: 17px; }
  .watermark { font-size: 70px; }
  .modal-card.wide { width: 100%; } .grid2.tight { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; z-index: 20; }
  .nav { white-space: nowrap; flex: none; } .side-foot { display: none; }
  .main { padding: 14px 16px 90px; }
  .top { padding: 8px 12px; } .top-r .btn.ghost { display: none; }
  .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; }
  .phone { width: 100%; max-width: 360px; height: 680px; }
  .floor { grid-template-columns: 1fr; } .floor-l { padding-top: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { left: 8px; right: 8px; bottom: 70px; width: auto; }
  .sim-fab { right: 10px; bottom: 10px; padding: 9px 13px; }
  .compare { grid-template-columns: 1fr; }
  .alert { grid-template-columns: auto 1fr; }
}
