/* =========================================================
   Dự toán chào thầu — giao diện chung
   Hướng: công cụ vận hành gọn (kiểu Linear): nền trung tính ấm, một màu nhấn xanh ngọc,
   chữ Inter, bo góc 10px, viền mảnh thay bóng đổ, số liệu căn cột. Có chế độ tối.
   ========================================================= */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: #f5f6f4; --card: #fff; --field: #fff; --subtle: #f1f4f2; --sidebar: #fbfcfb;
  --ink: #0f1a1c; --ink-2: #34423f; --muted: #667470; --line: #e3e8e5; --line-strong: #cfd8d4;
  --accent: #0f766e; --accent-hover: #0b5f58; --accent-soft: #e3f3f0; --accent-ink: #0b5f58; --on-accent: #fff;
  --ok: #15803d; --ok-soft: #e5f5ea; --ok-ink: #116332;
  --warn: #b45309; --warn-soft: #fdf1dc; --warn-ink: #8a4108;
  --danger: #c62828; --danger-soft: #fdeaea; --danger-ink: #a31f1f;
  --info: #1d4ed8; --info-soft: #e8effd; --info-ink: #1a3fb0;
  --radius: 10px; --radius-sm: 8px;
  --shadow-pop: 0 12px 32px -8px rgba(15, 26, 28, .22), 0 2px 6px rgba(15, 26, 28, .06);
  --ring: 0 0 0 3px rgba(15, 118, 110, .22);
  --side-w: 276px;
  /* tên biến cũ, các trang đang dùng */
  --chu: var(--ink); --phu: var(--muted); --vien: var(--line); --nen: var(--bg); --nhan: var(--accent);
  --do: var(--danger); --xanh: var(--ok); --vang: var(--warn-soft);
}
[data-theme="dark"] {
  --bg: #0b1111; --card: #121a1a; --field: #0e1515; --subtle: #172120; --sidebar: #0e1616;
  --ink: #e8f0ee; --ink-2: #c3d0cc; --muted: #8a9a96; --line: #233130; --line-strong: #30423f;
  --accent: #2dd4bf; --accent-hover: #5eead4; --accent-soft: #0f2e2b; --accent-ink: #5eead4; --on-accent: #04201d;
  --ok: #4ade80; --ok-soft: #0f2a1a; --ok-ink: #86efac;
  --warn: #fbbf24; --warn-soft: #2b2108; --warn-ink: #fcd34d;
  --danger: #f87171; --danger-soft: #2d1415; --danger-ink: #fca5a5;
  --info: #7aa2ff; --info-soft: #101e3d; --info-ink: #a5bfff;
  --shadow-pop: 0 16px 40px -10px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(45, 212, 191, .28);
  color-scheme: dark;
}

/* ---------- nền tảng ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 26px 0 10px; }
code { font-family: var(--mono); font-size: 12px; background: var(--subtle); padding: 1px 5px; border-radius: 5px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }
.mo-ta { color: var(--muted); margin: 0 0 18px; max-width: 980px; }
.mo { color: var(--muted); font-size: 13px; }

/* ---------- khung app: thanh bên + vùng nội dung ---------- */
.khung { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.thanh-ben { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebar);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; }
.thuong-hieu { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; text-decoration: none; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  color: #04201d; background: linear-gradient(145deg, #2dd4bf, #0f766e); box-shadow: 0 6px 16px -6px rgba(15, 118, 110, .6); flex: none; }
.thuong-hieu b { display: block; font-size: 14.5px; letter-spacing: -.02em; line-height: 1.2; }
.thuong-hieu small { color: var(--muted); font-size: 11.5px; }
.nhom-nav { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 14px 10px 6px; }
.muc-nav { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 550; transition: background .15s, color .15s, transform .15s; }
.muc-nav svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.muc-nav:hover { background: var(--subtle); color: var(--ink); }
.muc-nav:active { transform: scale(.98); }
.muc-nav.dang { background: var(--accent-soft); color: var(--accent-ink); }
.muc-nav.dang svg { opacity: 1; }
.muc-nav.dang::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); animation: hien-thanh .3s ease both; }
.muc-nav .dem { margin-left: auto; font-size: 11.5px; font-weight: 650; min-width: 20px; text-align: center; padding: 0 6px;
  border-radius: 99px; background: var(--danger-soft); color: var(--danger-ink); }
.muc-nav .dem.nhat { background: var(--subtle); color: var(--muted); }
a.nhom-lien-ket { display: block; text-decoration: none; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
a.nhom-lien-ket:hover, a.nhom-lien-ket.dang { color: var(--accent-ink); background: var(--subtle); }
.muc-nav .ten-muc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muc-nav .ma-muc { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); opacity: .75; }
.muc-nav.dang .ma-muc { color: var(--accent-ink); opacity: 1; }
.cuoi-ben { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.vung { min-width: 0; display: flex; flex-direction: column; }
.thanh-tren { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.thanh-tren .tieu-de { font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thanh-tren .phai { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dong-ho { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nut-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; padding: 0; }
.nut-icon:hover { background: var(--subtle); border-color: var(--line-strong); }
.nut-icon:active { transform: scale(.94); }
.nut-icon svg { width: 17px; height: 17px; }
.mo-menu { display: none; }
.tai-khoan { position: relative; }
.tai-khoan > button { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; transition: border-color .15s; }
.tai-khoan > button:hover { border-color: var(--line-strong); }
.anh { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); }
.menu-tk { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); display: none;
  transform-origin: top right; animation: bat-ra .16s ease both; }
.tai-khoan.mo .menu-tk { display: block; }
.menu-tk .dau { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-tk a, .menu-tk button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; border: 0;
  background: none; color: var(--ink-2); font: inherit; text-decoration: none; cursor: pointer; }
.menu-tk a:hover, .menu-tk button:hover { background: var(--subtle); color: var(--ink); }
.nhan-xay-dung { white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); border-radius: 99px; padding: 4px 10px; }

main { width: 100%; max-width: 1440px; padding: 24px 28px 48px; animation: hien-len .35s ease both; }

/* ---------- thẻ, KPI ---------- */
.the { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s; }
.the:hover { border-color: var(--line-strong); }
.hep { max-width: 440px; margin: 48px auto; }
.luoi-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 4px 0 22px; }
.kpi { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px 14px; transition: transform .2s ease, border-color .2s, box-shadow .2s; animation: hien-len .45s ease both; }
.kpi:nth-child(2) { animation-delay: .05s; } .kpi:nth-child(3) { animation-delay: .1s; }
.kpi:nth-child(4) { animation-delay: .15s; } .kpi:nth-child(5) { animation-delay: .2s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-strong); }
.kpi.accent::before { background: var(--accent); } .kpi.ok::before { background: var(--ok); }
.kpi.warn::before { background: var(--warn); } .kpi.danger::before { background: var(--danger); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.kpi .l { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.kpi .v { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.accent .v { color: var(--accent-ink); } .kpi.ok .v { color: var(--ok); } .kpi.warn .v { color: var(--warn); } .kpi.danger .v { color: var(--danger); }
.kpi .p { font-size: 12px; color: var(--muted); margin-top: 2px; }
a.kpi { color: inherit; text-decoration: none; display: block; }

/* ---------- nút Hỏi trợ lý nổi (M11.1) ---------- */
.nut-tro-ly { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 11px 16px 11px 13px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-weight: 650;
  text-decoration: none; box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--accent) 75%, transparent);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s; animation: truot-vao .45s ease both .3s; }
.nut-tro-ly svg { width: 18px; height: 18px; transition: transform .4s ease; }
.nut-tro-ly:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.nut-tro-ly:hover svg { transform: rotate(18deg) scale(1.1); }
.toast-vung { bottom: 80px; }
@media print { .nut-tro-ly { display: none; } }

/* ---------- trang Tiện ích ---------- */
.luoi-tien-ich { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.the-ti { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s, box-shadow .2s;
  animation: hien-len .45s ease both; }
.the-ti:nth-child(2) { animation-delay: .04s; } .the-ti:nth-child(3) { animation-delay: .08s; } .the-ti:nth-child(4) { animation-delay: .12s; }
.the-ti:nth-child(5) { animation-delay: .16s; } .the-ti:nth-child(6) { animation-delay: .2s; } .the-ti:nth-child(7) { animation-delay: .24s; }
.the-ti:nth-child(8) { animation-delay: .28s; } .the-ti:nth-child(9) { animation-delay: .32s; }
.the-ti:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.the-ti.bo-sung { border-style: dashed; }
.dau-ti { display: flex; align-items: center; justify-content: space-between; }
.dau-ti svg { width: 20px; height: 20px; color: var(--accent-ink); }
.ma-ti { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 6px; }
.the-ti h3 { margin: 2px 0 0; font-size: 15px; letter-spacing: -.01em; }
.the-ti p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.so-ti { font-size: 12.5px; color: var(--muted); }
.so-ti b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.so-ti b.do { color: var(--danger); }
.the-ti > .nut { align-self: flex-start; }
.chon-da { display: flex; gap: 8px; }
.chon-da select { flex: 1; min-width: 0; }

/* ---------- form ---------- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 0 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit;
  background: var(--field); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=file] { width: 100%; padding: 7px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--subtle);
  font: inherit; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
input[type=file]:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; vertical-align: -2px; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
input.so { text-align: right; font-variant-numeric: tabular-nums; }
td select { width: auto; min-width: 64px; padding: 4px 8px; }
td input[type=text] { padding: 5px 8px; }
textarea { resize: vertical; }

/* ---------- nút ---------- */
button, .nut { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px;
  border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s; }
button:hover, .nut:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
button:active, .nut:active { transform: translateY(1px) scale(.98); }
button.phu, .nut.phu { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
button.phu:hover, .nut.phu:hover { background: var(--subtle); border-color: var(--muted); box-shadow: none; }
button.nho { padding: 4px 10px; font-size: 12.5px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
button.dang-xu-ly { color: transparent !important; pointer-events: none; }
button.dang-xu-ly::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--on-accent); border-right-color: transparent; animation: quay .7s linear infinite; }
button.phu.dang-xu-ly::after { border-color: var(--accent); border-right-color: transparent; }
.hang { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.hang > * { flex: 0 0 auto; }

/* ---------- thông báo ---------- */
.bao-loi, .bao-tot, .bao-vang { position: relative; padding: 11px 14px 11px 40px; border-radius: var(--radius); margin: 10px 0 14px;
  border: 1px solid transparent; animation: hien-len .3s ease both; }
.bao-loi::before, .bao-tot::before, .bao-vang::before { position: absolute; left: 14px; top: 10px; font-weight: 800; width: 18px; height: 18px;
  border-radius: 99px; display: grid; place-items: center; font-size: 12px; }
.bao-loi { background: var(--danger-soft); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.bao-loi::before { content: "!"; background: var(--danger); color: var(--card); }
.bao-tot { background: var(--ok-soft); color: var(--ok-ink); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.bao-tot::before { content: "✓"; background: var(--ok); color: var(--card); }
.bao-vang { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.bao-vang::before { content: "i"; background: var(--warn); color: var(--card); }
.bao-vang a, .bao-loi a, .bao-tot a { color: inherit; font-weight: 600; }

.toast-vung { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  animation: truot-vao .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; flex: none;
  background: var(--ok-soft); color: var(--ok-ink); font-weight: 800; font-size: 12px; }
.toast.an { animation: truot-ra .3s ease both; }

/* ---------- nhãn ---------- */
.nhan { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--subtle); color: var(--muted); }
.nhan.do { background: var(--danger-soft); color: var(--danger-ink); }
.nhan.xanh { background: var(--ok-soft); color: var(--ok-ink); }

/* ---------- bảng ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--card); font-size: 13.5px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
th { background: var(--subtle); color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  position: sticky; top: 0; z-index: 1; }
tbody tr, table > tr { transition: background .12s; }
tbody tr:hover, table > tr:hover { background: var(--subtle); }
td.so, th.so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.tong td { font-weight: 650; background: color-mix(in srgb, var(--accent-soft) 55%, var(--card)); color: var(--ink); }
tr.da-sua td { background: var(--warn-soft); }
.cuon { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cuon table { border: 0; border-radius: 0; }

details { margin: 6px 0; }
details summary { cursor: pointer; color: var(--ink-2); font-weight: 550; padding: 4px 0; }
details[open] summary { margin-bottom: 6px; }

/* ---------- trang đăng nhập ---------- */
.dang-nhap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); min-height: 100vh; }
.anh-hung { position: relative; overflow: hidden; background: #0c1514; color: #e6efed; padding: 44px 56px;
  display: flex; flex-direction: column; justify-content: space-between; }
.anh-hung::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 0% 0%, rgba(45, 212, 191, .22), transparent 60%),
              radial-gradient(60% 50% at 100% 100%, rgba(45, 212, 191, .09), transparent 70%); animation: tho 9s ease-in-out infinite alternate; }
.anh-hung::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 20% 20%, #000, transparent); }
.anh-hung > * { position: relative; z-index: 1; }
.anh-hung .thuong-hieu { color: #e6efed; padding: 0; }
.anh-hung h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; max-width: 480px; animation: hien-len .6s ease both .1s; }
.anh-hung p { color: #9fb3ae; max-width: 440px; margin: 0; font-size: 15px; animation: hien-len .6s ease both .2s; }
.buoc { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #7f918d; }
.buoc span { border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px 11px; animation: hien-len .5s ease both; }
.buoc span:nth-child(2) { animation-delay: .06s; } .buoc span:nth-child(3) { animation-delay: .12s; }
.buoc span:nth-child(4) { animation-delay: .18s; } .buoc span:nth-child(5) { animation-delay: .24s; }
.o-form { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.o-form form, .o-form .noi { width: 100%; max-width: 380px; animation: hien-len .45s ease both .1s; }
.o-form h1 { font-size: 24px; }
.o-form .phu-de { color: var(--muted); margin: 0 0 20px; }
.o-form button[type=submit], .o-form .rong { width: 100%; padding: 11px; font-size: 15px; margin-top: 10px; }
.o-form .tro-giup { margin-top: 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.nut-goi-y { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.nut-goi-y button { padding: 3px 10px; font-size: 12.5px; font-weight: 550; background: var(--subtle); color: var(--ink-2); border-color: var(--line-strong); }
.nut-goi-y button:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }

/* ---------- hiệu ứng ---------- */
@keyframes hien-len { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hien-thanh { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bat-ra { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes truot-vao { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes truot-ra { to { opacity: 0; transform: translateX(24px); } }
@keyframes quay { to { transform: rotate(360deg); } }
@keyframes tho { from { opacity: .75; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- màn hình hẹp ---------- */
@media (max-width: 900px) {
  .khung { grid-template-columns: 1fr; }
  .thanh-ben { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-100%);
    transition: transform .25s ease; box-shadow: var(--shadow-pop); }
  body.mo-ben .thanh-ben { transform: none; }
  .mo-menu { display: inline-grid; }
  main { padding: 18px 16px 40px; }
  .thanh-tren { padding: 0 14px; }
  .dong-ho { display: none; }
  .dang-nhap { grid-template-columns: 1fr; }
  .anh-hung { padding: 28px 24px; min-height: 260px; }
}

/* ---------- in ---------- */
@media print {
  .thanh-ben, .thanh-tren, .toast-vung { display: none !important; }
  .khung { display: block; }
  main { padding: 0; animation: none; }
}

/* M11.2 các bước so sánh báo giá */
.buoc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.buoc li { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--subtle); color: var(--muted); }
.buoc li.dang { background: var(--accent-soft); color: var(--accent-ink); }
.buoc li.xong { background: var(--ok-soft); color: var(--ok-ink); }
