:root {
  --pink: #ff2d87;
  --pink-2: #ff6fb1;
  --pink-50: #fff3f8;
  --pink-100: #ffe3ef;
  --pink-200: #ffc6de;
  --purple: #a24bf0;
  --ink: #22172c;
  --ink-2: #4b3f57;
  --muted: #6e6278; /* >= 4.5:1 tren nen hong nhat (cu #8d8098 chi 3.3-3.7) */
  --pink-ink: #c2185b; /* chu hong tren nen hong nhat, du tuong phan */
  --line: rgba(34, 23, 44, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .92);
  --shadow: 0 14px 34px -14px rgba(214, 51, 132, .28), 0 2px 6px rgba(34, 23, 44, .04);
  --green: #16a34a;
  --amber: #e08a00;
  --blue: #3b82f6;
  --red: #ef4444;
  --r: 22px;
  --r-sm: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; caret-color: var(--pink); accent-color: var(--pink); scrollbar-color: var(--pink-200) transparent; }
::selection { background: var(--pink-200); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--pink-200); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
/* Vien sang khi dung ban phim (khong hien khi bam chuot / cham) */
:where(a, button, summary, [tabindex], select):focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fbeef5;
  min-height: 100vh;
  font-variant-numeric: tabular-nums; /* so dem thang cot, khong nhay khi doi */
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, #ffd0e5 0, transparent 38%),
    radial-gradient(circle at 88% 8%, #ffe9f4 0, transparent 34%),
    radial-gradient(circle at 72% 88%, #ffc0dc 0, transparent 42%),
    radial-gradient(circle at 30% 95%, #f9d9ff 0, transparent 35%),
    linear-gradient(135deg, #fff6fa, #fde5f0);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.boot { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 100vh; color: var(--muted); font-weight: 500; }
.boot-logo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-2)); box-shadow: 0 10px 24px -10px rgba(214, 51, 132, .6); animation: bootPulse 1.2s ease-in-out infinite; }
.boot-logo svg { width: 28px; height: 28px; }
@keyframes bootPulse { 50% { transform: scale(.92); opacity: .75; } }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 18px; padding: 18px; min-height: 100vh; }
.sidebar {
  position: sticky; top: 18px; height: calc(100vh - 36px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 14px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border); border-radius: 26px; box-shadow: var(--shadow);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; font-weight: 700; font-size: 18px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-2)); box-shadow: 0 8px 16px -6px rgba(255, 45, 135, .6);
}
.brand b { color: var(--pink); }
.nav-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px;
  color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .7); }
.nav-link.active { background: #fff; color: var(--pink); box-shadow: 0 6px 16px -8px rgba(214, 51, 132, .35); }
.nav-link .badge { margin-left: auto; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 600;
  display: inline-grid; place-items: center; background: var(--pink-100); color: var(--pink);
}
.badge.red { background: var(--red); color: #fff; }
.side-card {
  margin-top: auto; padding: 18px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 227, 239, .9));
  border: 1px solid #fff;
}
.side-card .big { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.side-card h4 { font-size: 15px; margin-bottom: 4px; }
.side-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.side-card.alert { background: linear-gradient(160deg, #fff, #ffe4e6); }

.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tb-left h1 { font-size: 26px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-search {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; width: 270px;
  background: var(--glass-strong); border: 1px solid #fff; border-radius: 14px; color: var(--muted);
}
.tb-search input { border: 0; outline: 0; background: none; font: inherit; width: 100%; color: var(--ink); }
.only-m { display: none !important; }
.page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nav-overlay { display: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; min-width: 0;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 16px; }
.card-h .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card.pink {
  background: linear-gradient(150deg, #ff3a8e, #ff73b5); color: #fff; border-color: rgba(255, 255, 255, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
}
.card.pink .feat-ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.card.pink .feat-ic .ic { width: 28px; height: 28px; }
.card.pink .v { font-size: 30px; font-weight: 700; line-height: 1.1; }
.card.pink p { margin: 0; opacity: .9; font-size: 12.5px; }
.card.red-soft { background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 228, 230, .9)); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { display: flex; align-items: center; gap: 14px; }
.kpi .k-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-100); color: var(--pink); flex: none; }
.kpi .k-ic.purple { background: #f1e4ff; color: var(--purple); }
.kpi .k-ic.green { background: #dcfce7; color: var(--green); }
.kpi .k-ic.red { background: #fee2e2; color: var(--red); }
.kpi .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.finance-note { font-size: 12px; color: var(--muted); margin-top: -8px; }

/* ---------- Controls ---------- */
.btn {
  height: 40px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: transform .1s, box-shadow .15s, background .15s; color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 10px 20px -8px rgba(255, 45, 135, .65); }
.btn-primary:hover { box-shadow: 0 12px 24px -8px rgba(255, 45, 135, .8); }
.btn-ghost { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-soft { background: var(--pink-100); color: var(--pink); }
.btn-soft:hover { background: var(--pink-200); }
.btn-white { background: #fff; color: var(--pink); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-zalo { background: #e6f0ff; color: #0068ff; }
.btn-lark { background: #e8f7f3; color: #00a37a; }
.btn-msg { background: #f0e9ff; color: #7c3aed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(34, 23, 44, .12);
  background: rgba(255, 255, 255, .88); font: inherit; font-size: 14px; color: var(--ink); outline: 0;
  transition: border .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 135, .12); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled .input { background: rgba(255, 255, 255, .5); color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.one { grid-template-columns: 1fr; }
.field label, .lbl { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field .req { color: var(--pink); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.form-sec { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--pink); }
.check-list { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.check-pill input { accent-color: var(--pink); }
.check-pill:has(input:checked) { border-color: var(--pink); background: var(--pink-50); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { display: none; }
.stars label { font-size: 24px; color: #e5d5df; cursor: pointer; margin: 0; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5a524; }
fieldset:disabled .stars label { cursor: default; }

.seg { display: inline-flex; background: rgba(255, 255, 255, .62); border: 1px solid #fff; border-radius: 13px; padding: 4px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 3px 10px rgba(34, 23, 44, .07); }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab.active { color: var(--ink); font-weight: 500; border-color: var(--pink); }

/* ---------- Chips & avatars ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #f1edf3; color: var(--ink-2); }
.chip.gray { background: #eeeaf1; color: #6b6275; }
.chip.amber { background: #fff3d6; color: #a15c00; }
.chip.blue { background: #e1edff; color: #1d5fd6; }
.chip.purple { background: #f1e4ff; color: #7b2fd0; }
.chip.green { background: #dcfce7; color: #15803d; }
.chip.red { background: #fee2e2; color: #b91c1c; }
.chip.pink { background: var(--pink-100); color: var(--pink-ink); }
.chip.win { background: linear-gradient(135deg, var(--pink), #ff8cc0); color: #fff; }
.chip.normal { background: #e8e3ff; color: #5b3fd1; }
.chip.flop { background: #3a3142; color: #fff; }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 600; flex: none; }
.av.lg { width: 42px; height: 42px; font-size: 14px; }
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.av-stack { display: inline-flex; padding-left: 8px; }
.av-stack .av { margin-left: -8px; border: 2px solid #fff; }

/* ---------- Topbar extras ---------- */
.pop { position: relative; }
.pop-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 330px; z-index: 40;
  background: rgba(255, 255, 255, .97); border: 1px solid #fff; border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(80, 20, 60, .3); padding: 10px;
}
.pop.open .pop-panel { display: block; }
.pop-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 13.5px; }
.pop-item:hover { background: var(--pink-50); }
.pop-item .ic { color: var(--pink); }
.pop-item.red .ic { color: var(--red); }
.pop-h { font-size: 12px; color: var(--muted); padding: 6px 10px; }
.bell-btn { position: relative; }
.bell-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--glass-strong); border: 1px solid #fff; cursor: pointer; }
.user-chip .n { font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-chip .r { font-size: 11px; color: var(--muted); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: inherit; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-row { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend-row i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ---------- Lists ---------- */
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); }
.row-item + .row-item { margin-top: 8px; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .t { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item.red { background: #fff1f2; border-left: 4px solid var(--red); }
.row-item.amber { border-left: 4px solid #f5a524; }
.row-item.purple { border-left: 4px solid var(--purple); }
.row-item.blue { border-left: 4px solid var(--blue); }
.row-item.pink { border-left: 4px solid var(--pink); }
.row-item.gray { border-left: 4px solid #c9c0d0; }
.thumb-sm { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--pink-100); display: grid; place-items: center; color: var(--pink); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.task-group { margin-bottom: 4px; }
.task-group h4 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.task-group h4 .ic { color: var(--pink); }
.task-group.red h4 .ic { color: var(--red); }
.task-group.red h4 { color: #b91c1c; }
.hello-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hello-banner .big { font-size: 40px; }

/* ---------- Samples ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; }
.toolbar .input { width: auto; flex: 1 1 150px; min-width: 140px; max-width: 230px; }
.toolbar .search { flex: 3 1 240px; max-width: none; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.s-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.s-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(214, 51, 132, .38); }
.s-card.overdue { border: 2px solid var(--red); box-shadow: 0 10px 26px -14px rgba(239, 68, 68, .45), var(--shadow); }
.s-card .thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--pink-100), #f6e6ff); overflow: hidden; }
.s-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pink-2); }
.s-card .thumb .ph .ic { width: 42px; height: 42px; }
.ribbon { position: absolute; top: 10px; left: 10px; background: #c81e1e; color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; box-shadow: 0 6px 14px -4px rgba(239, 68, 68, .6); }
.lbl-badge { position: absolute; top: 10px; right: 10px; }
.s-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sub .s-shop { font-weight: 600; color: var(--ink-2); }
.s-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.s-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 6px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(255, 255, 255, .6); }
.table tr.row-red td { background: rgba(239, 68, 68, .06); }
.table tr.row-red td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-main .t { font-weight: 500; }
.cell-main .s { font-size: 12px; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Sample detail ---------- */
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.cover, .detail-head .cover { width: 108px; height: 108px; border-radius: 20px; object-fit: cover; background: var(--pink-100); flex: none; display: grid; place-items: center; color: var(--pink); }
.detail-head .info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.detail-head h2 { font-size: 22px; line-height: 1.3; }
.alert-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fee2e2; color: #991b1b; font-weight: 500; }
.alert-bar.amber { background: #fff3d6; color: #8a4b00; }
.alert-bar .ic { flex: none; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.link { color: var(--pink); font-weight: 500; overflow-wrap: anywhere; }
.link:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gallery .g-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--pink-100); cursor: zoom-in; border: 2px solid transparent; }
.gallery .g-img.sel { border-color: var(--pink); }
.gallery .g-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-img .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gallery .g-img .del .ic { width: 14px; height: 14px; }
.pick-grid .g-img { cursor: pointer; }
.pick-grid .g-img input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--pink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; }
.compare .ph-box { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--pink-50); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.compare .ph-box img { width: 100%; height: 100%; object-fit: cover; }
.compare figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.strip img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; flex: none; }
.strip img.on { border-color: var(--pink); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { flex: 1 1 120px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .6); color: var(--muted); font-size: 13px; font-weight: 500; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #efe8f2; font-size: 12px; flex: none; }
.step.on { background: #fff; color: var(--ink); }
.step.on .n { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; }
.label-box { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); flex-wrap: wrap; }
.label-box .big { font-size: 34px; }
.thresholds { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.chip-btn { border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.chip-btn:active { transform: scale(.96); }
.chip-btn.on { border-color: currentColor; box-shadow: 0 2px 10px rgba(255, 45, 135, .18); }
.label-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.lp {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px;
  border: 2px solid rgba(34, 23, 44, .1); background: rgba(255, 255, 255, .85); font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: all .15s; margin: 0;
}
.lp input { display: none; }
.lp:hover:not(:disabled) { border-color: var(--pink-200); }
.lp:disabled { cursor: default; opacity: .75; }
.lp.win.on, .lp.win:has(input:checked) { background: linear-gradient(135deg, var(--pink), #ff8cc0); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(255, 45, 135, .7); }
.lp.normal.on, .lp.normal:has(input:checked) { background: #e8e3ff; color: #5b3fd1; border-color: #8b74f0; }
.lp.flop.on, .lp.flop:has(input:checked) { background: #3a3142; color: #fff; border-color: transparent; }
.lp.up.on { background: #dcfce7; color: #15803d; border-color: #4ade80; }
.lp.notup.on { background: #fff1f2; color: #b91c1c; border-color: #fca5a5; }
.lp.done .ic { width: 16px; height: 16px; }
.lp.done.on { background: var(--pink-100); color: var(--pink); border-color: var(--pink-200); }
.lp.done.on .ic { fill: currentColor; }
.heart {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #c4b6cc;
  box-shadow: 0 6px 16px -6px rgba(80, 20, 60, .35); transition: transform .15s, color .15s;
}
.heart .ic { width: 20px; height: 20px; }
.heart:hover:not(:disabled) { transform: scale(1.1); color: var(--pink-2); }
.heart.on { color: var(--pink); }
.heart.on .ic { fill: currentColor; }
.heart:disabled { cursor: default; }
.heart.inline { position: static; width: 34px; height: 34px; box-shadow: none; background: var(--pink-50); }
.lp.none:has(input:checked) { border-color: var(--ink-2); color: var(--ink); }
.var-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 42px; gap: 8px; margin-bottom: 8px; }
.live-preview { padding: 12px 14px; border-radius: 14px; background: var(--pink-50); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.contact-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Modal, toast, lightbox ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; background: rgba(50, 12, 36, .32); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: fade .15s ease;
}
.modal { width: min(640px, 100%); background: rgba(255, 255, 255, .97); border-radius: 24px; box-shadow: 0 40px 80px -20px rgba(80, 20, 60, .45); animation: pop .18s ease; }
.modal.wide { width: min(920px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); grid-column: 1 / -1; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { padding: 12px 16px; border-radius: 14px; background: #22172c; color: #fff; font-size: 13.5px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .35); max-width: 360px; animation: pop .2s ease; }
.toast.err { background: #b91c1c; }
.toast.ok { background: linear-gradient(135deg, var(--pink), #e0337f); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(15, 5, 12, .86); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 14px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pink-100); border-top-color: var(--pink); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(430px, 100%); padding: 32px; background: var(--glass-strong); }
.login-card .brand { padding: 0 0 18px; justify-content: center; font-size: 22px; }
.login-card h2 { font-size: 22px; text-align: center; }
.login-card > p { text-align: center; margin: 6px 0 22px; color: var(--muted); font-size: 13px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card .switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.login-card .switch a { color: var(--pink); font-weight: 500; cursor: pointer; }
.demo-list { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.demo-list button { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.demo-list button:hover { border-color: var(--pink); }
.mode-note { font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--pink-50); line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .c-3 { grid-column: span 6; } .c-4 { grid-column: span 6; } .c-5 { grid-column: span 12; }
  .c-7 { grid-column: span 12; } .c-8 { grid-column: span 12; }
  .tb-search { width: 200px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; padding: 12px 16px; }
  .sidebar { position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; width: 260px; z-index: 55; transform: translateX(-120%); transition: transform .25s ease; background: rgba(255, 255, 255, .95); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .nav-overlay { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(50, 12, 36, .3); }
  .only-m { display: inline-flex !important; }
  .tb-search { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .user-chip .txt { display: none; }
  .user-chip { padding: 4px; }
}
@media (max-width: 640px) {
  .dash-grid > * { grid-column: span 12; }
  .tb-left h1 { font-size: 21px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .btn-primary span.hide-s { display: none; }
  .kpis { gap: 12px; }
  .kpi .v { font-size: 18px; }
  .card { padding: 16px; }
  .modal-back { padding: 12px; }
  .compare { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pop-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
}

/* ---------- Tổng quan ---------- */
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { display: flex; flex-direction: column; gap: 10px; }
.stat-top { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); }
.stat-top .k-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--pink-100); color: var(--pink); }
.stat-v { font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat-v span { font-size: 14px; font-weight: 500; color: var(--muted); }
.progress { height: 12px; border-radius: 99px; background: #f6dbe8; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.legend.row { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.donut-wrap { flex-wrap: wrap; }
.seg button { white-space: nowrap; }
@media (max-width: 640px) {
  .kpis.three { gap: 8px; }
  .stat-card { padding: 12px; gap: 6px; }
  .stat-top { font-size: 12px; }
  .stat-top .k-ic { display: none; }
  .stat-v { font-size: 26px; }
  .stat-v span { font-size: 12px; }
  .stat-card .small { font-size: 11px; }
  .donut-wrap { justify-content: center; }
}

/* =====================================================================
   TỐI ƯU MOBILE (web app trên điện thoại)
   ===================================================================== */
.m-only { display: none; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-top: -6px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(34, 23, 44, .1);
  background: rgba(255, 255, 255, .8); font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.pill b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #f1edf3; display: inline-grid; place-items: center; font-size: 11.5px; }
.pill.red b { background: #fee2e2; color: #b91c1c; }
.pill.on { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(255, 45, 135, .7); }
.pill.on b { background: rgba(255, 255, 255, .25); color: #fff; }
.more-filters { display: contents; }
.filter-btn { position: relative; }
.filter-btn .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 10px; display: grid; place-items: center; }
.bottom-nav { display: none; }

@media (max-width: 960px) {
  .hide-m { display: none !important; }
  .main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    height: 64px; align-items: center; justify-content: space-around; padding: 0 6px;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid #fff; border-radius: 22px; box-shadow: 0 14px 34px -12px rgba(120, 20, 80, .35);
  }
  .bn-item {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    font: inherit; font-size: 10.5px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0;
  }
  .bn-item .ic { width: 22px; height: 22px; }
  .bn-item.on { color: var(--pink); }
  .bn-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
  .bn-fab {
    flex: none; width: 56px; height: 56px; margin-top: -30px; border-radius: 18px; border: 4px solid #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; display: grid; place-items: center;
    box-shadow: 0 12px 24px -8px rgba(255, 45, 135, .8);
  }
  .bn-fab .ic { width: 26px; height: 26px; }
  .toasts { left: 16px; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); align-items: center; }
  .side-card { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .m-only { display: inline-flex; }
  .app { padding: 10px 12px; gap: 12px; }
  .main, .page { gap: 12px; }
  .topbar { gap: 10px; }
  .tb-left { gap: 10px; }
  .tb-left h1 { font-size: 20px; }
  .tb-left .seg { width: 100%; }
  .tb-left .seg button { flex: 1; padding: 9px 10px; font-size: 14px; }
  .tb-right { gap: 8px; }
  .card { padding: 14px; border-radius: 18px; }

  /* Nút & ô nhập to, dễ bấm, không bị iPhone tự phóng to */
  .input, select.input, textarea.input { font-size: 16px; height: 48px; border-radius: 13px; }
  textarea.input { height: auto; }
  .btn { height: 44px; }
  .btn-sm { height: 38px; font-size: 13.5px; }
  .btn-icon { width: 44px; }
  .btn-icon.btn-sm { width: 38px; }

  /* Thanh tìm kiếm + lọc */
  .toolbar { padding: 10px; gap: 8px; flex-wrap: nowrap; }
  .toolbar .search { min-width: 0; }
  .more-filters { display: none; }
  .more-filters.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 12px; background: rgba(255, 255, 255, .98); border-radius: 18px; box-shadow: 0 20px 40px -14px rgba(80, 20, 60, .35); }
  .more-filters.open .input { max-width: none; width: 100%; }
  .more-filters.open .seg { display: none; }
  .toolbar { position: relative; overflow: visible; }

  /* Thẻ mẫu dạng danh sách gọn: ảnh trái, thông tin phải, tim bên phải */
  .s-grid { grid-template-columns: 1fr; gap: 10px; }
  .s-card { flex-direction: row; position: relative; border-radius: 18px; min-height: 104px; }
  .s-card:hover { transform: none; }
  .s-card .thumb { position: static; width: 104px; aspect-ratio: auto; flex: none; }
  .s-card .thumb img { position: absolute; top: 0; left: 0; width: 104px; height: 100%; }
  .s-card .thumb .ph { right: auto; width: 104px; }
  .s-card .ribbon, .s-card .lbl-badge { display: none; }
  .s-body { padding: 12px 58px 12px 12px; gap: 5px; min-width: 0; }
  .s-title { font-size: 15px; -webkit-line-clamp: 2; }
  .s-foot .av-stack { display: none; }
  .s-card.overdue { border-width: 2px; box-shadow: var(--shadow); }
  .heart { right: 10px; top: 50%; bottom: auto; transform: translateY(-50%); width: 44px; height: 44px; }
  .heart:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); }

  /* Form dạng sheet trượt từ dưới lên, nút lưu luôn hiện ở đáy */
  .modal-back { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: sheet .22s ease; }
  .modal-h { padding: 14px 18px; position: relative; }
  .modal-h::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #e5d9e1; }
  .modal-b { padding: 16px 18px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-f { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 12px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; }
  .var-row { grid-template-columns: minmax(0, 1fr) 96px 44px; }
  .label-pick .lp { flex: 1 1 auto; justify-content: center; height: 46px; }

  /* Trang chi tiết */
  .detail-head { gap: 12px; }
  .detail-head .cover { width: 76px; height: 76px; border-radius: 16px; }
  .detail-head h2 { font-size: 18px; }
  .detail-head .btn-row { width: 100%; }
  .detail-head .btn-row .btn { flex: 1; }
  .tabs { gap: 18px; }
  .tab { font-size: 14.5px; padding: 12px 0; }
  .row-item { padding: 12px; }
  .user-chip { padding: 2px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }

/* ---------- Nút lọc theo màu trạng thái & phân loại hàng ---------- */
.pill.amber b { background: #fff3d6; color: #a15c00; }
.pill.purple b { background: #f1e4ff; color: #7b2fd0; }
.pill.green b { background: #dcfce7; color: #15803d; }
.pills.cat { margin-top: -4px; }
.pills.cat .pill { height: 34px; font-size: 12.5px; }
/* Hàng mẫu: chip lọc gọn, xuống dòng, cùng kiểu Kho Mã Livestream */
.sf-chips { padding: 14px; display: grid; gap: 10px; }
.sf-chips .pills { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.sf-chips .pills.cat { padding-top: 10px; border-top: 1px dashed rgba(34, 23, 44, .1); }
.sf-chips .pill { --c: var(--pink-ink); --bg: var(--pink-100); height: 32px; padding: 0 6px 0 12px; font-size: 12.5px; font-weight: 600; background: var(--bg); color: var(--c); border: 2px solid transparent; box-shadow: none; transition: transform .12s; }
.sf-chips .pill:active { transform: scale(.96); }
.sf-chips .pill.red { --c: #b91c1c; --bg: #fee2e2; }
.sf-chips .pill.amber { --c: #a15c00; --bg: #fff3d6; }
.sf-chips .pill.purple { --c: #7b2fd0; --bg: #f1e4ff; }
.sf-chips .pill.green { --c: #15803d; --bg: #dcfce7; }
.sf-chips .pill.gray { --c: #6b6275; --bg: #eeeaf1; }
.sf-chips .pills.cat .pill { --c: var(--ink-2); --bg: #f4f0f6; height: 32px; }
.sf-chips .pill b, .sf-chips .pill.red b, .sf-chips .pill.amber b, .sf-chips .pill.purple b, .sf-chips .pill.green b { min-width: 20px; height: 20px; background: rgba(255, 255, 255, .75); color: var(--c); font-size: 11px; }
.sf-chips .pill.on, .sf-chips .pills.cat .pill.on { background: var(--bg); color: var(--c); border-color: var(--c); box-shadow: 0 2px 10px rgba(255, 45, 135, .18); }
.sf-chips .pills.cat .pill.on { --c: var(--pink-ink); --bg: var(--pink-100); }
@media (max-width: 640px) { .sf-chips .pill, .sf-chips .pills.cat .pill { height: 36px; } }
.sf-chips .pill.on b { background: var(--c); color: #fff; }
.lp.cat:has(input:checked) { background: var(--pink-100); color: var(--pink); border-color: var(--pink-200); }

/* =====================================================================
   THƯƠNG HIỆU QUYNH.SENA + TRANG ĐĂNG NHẬP CÓ ẢNH NỀN
   ===================================================================== */
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-txt b { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.brand .brand-txt small { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; color: var(--pink); margin-top: 3px; }
.brand.lg .logo { width: 46px; height: 46px; border-radius: 14px; }
.brand.lg .logo .ic { width: 24px; height: 24px; }
.brand.lg .brand-txt b { font-size: 24px; }
.brand.lg .brand-txt small { font-size: 11px; }

.login-wrap { display: none; }
.login-hero {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: linear-gradient(180deg, #fde6ee 0%, #fbc4db 32%, #fc9ec2 64%, #fb70a9 100%);
}
.login-photo { position: relative; overflow: hidden; }
.login-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 32px 24px; }
.login-hero .login-card { width: min(420px, 100%); background: rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -24px rgba(160, 20, 80, .45); }
.login-hero .login-card .brand { justify-content: center; padding-bottom: 16px; }
.login-contact {
  width: min(420px, 100%); display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .8);
  font-size: 13.5px; color: var(--ink-2);
}
.login-contact .lc-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 2px; }
.login-contact a, .login-contact span { display: flex; align-items: center; gap: 8px; }
.login-contact a { color: var(--ink); font-weight: 500; }
.login-contact .ic { width: 15px; height: 15px; color: var(--pink); }
.login-contact .lc-note { font-weight: 400; color: var(--muted); font-size: 13px; }
.login-contact .lc-note::before { content: "·"; margin-right: 6px; }

@media (max-width: 900px) {
  .login-hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-photo { height: 46vh; min-height: 300px; max-height: 460px; }
  .login-photo img {
    object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .login-panel { justify-content: flex-start; margin-top: -70px; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }
  .login-hero .login-card { padding: 22px 20px; }
  .login-hero .login-card h2 { font-size: 20px; }
  .login-hero .login-card > p { margin: 4px 0 16px; }
}

/* ---------- Sticker tim (đã quay) + mặt cười (đã up) ---------- */
.stickers { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; z-index: 2; }
.stickers .heart, .stickers .smile { position: static; transform: none; }
.smile {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #c4b6cc; box-shadow: 0 6px 16px -6px rgba(80, 20, 60, .35); transition: transform .15s, color .15s, background .15s;
}
.smile .ic { width: 22px; height: 22px; }
.smile:hover:not(:disabled) { transform: scale(1.1); color: #f59e0b; }
.smile.on { background: linear-gradient(135deg, #fde047, #f59e0b); color: #5b3a00; box-shadow: 0 8px 18px -6px rgba(245, 158, 11, .7); }
.smile.on .ic { stroke-width: 2.4; }
.smile:disabled { cursor: default; }
.smile.inline { width: 34px; height: 34px; box-shadow: none; background: #fff8e1; }
.smile.inline.on { background: linear-gradient(135deg, #fde047, #f59e0b); }
.heart.inline, .smile.inline { display: inline-grid; vertical-align: middle; }

/* ---------- Xếp hạng ở Tổng quan ---------- */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; }
.rank-row + .rank-row { margin-top: 4px; }
.rank-row:hover { background: rgba(255, 255, 255, .7); }
.rank-row .grow { flex: 1; min-width: 0; }
.rank-row .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #f1edf3; color: var(--ink-2); }
.rank.r1 { background: linear-gradient(135deg, #fde047, #f59e0b); color: #5b3a00; }
.rank.r2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.rank.r3 { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }
.rank-bar { height: 7px; border-radius: 99px; background: #f6dbe8; overflow: hidden; margin-top: 6px; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.rank-num { text-align: right; flex: none; display: flex; flex-direction: column; line-height: 1.2; }
.rank-num b { font-size: 18px; }
.rank-num span { font-size: 11px; color: var(--muted); }

@media (max-width: 640px) {
  .s-card .stickers { right: 10px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; gap: 6px; }
  .s-card .stickers .heart, .s-card .stickers .smile { width: 42px; height: 42px; }
  .s-card .stickers .heart:hover:not(:disabled), .s-card .stickers .smile:hover:not(:disabled) { transform: none; }
  .s-card { min-height: 112px; }
}

/* ---------- Nhắc việc & cảnh báo (đầu trang Tổng quan) ---------- */
.alerts-card .card-h { margin-bottom: 10px; }
.alert-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; text-align: left; color: var(--ink); background: rgba(255, 255, 255, .75);
  border-left: 4px solid #c9c0d0;
}
.alert-row + .alert-row { margin-top: 8px; }
.alert-row:hover { background: #fff; }
.alert-row .a-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #f1edf3; color: var(--ink-2); }
.alert-row .grow { flex: 1; min-width: 0; }
.alert-row b { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; background: #f1edf3; }
.alert-row .chev { width: 16px; height: 16px; transform: rotate(180deg); color: var(--muted); }
.alert-row.red { border-left-color: var(--red); background: #fff1f2; }
.alert-row.red .a-ic, .alert-row.red b { background: #fee2e2; color: #b91c1c; }
.alert-row.amber { border-left-color: #f5a524; }
.alert-row.amber .a-ic, .alert-row.amber b { background: #fff3d6; color: #a15c00; }
.alert-row.purple { border-left-color: var(--purple); }
.alert-row.purple .a-ic, .alert-row.purple b { background: #f1e4ff; color: #7b2fd0; }
.alert-row.pink { border-left-color: var(--pink); }
.alert-row.pink .a-ic, .alert-row.pink b { background: var(--pink-100); color: var(--pink); }

/* ---------- Ô tìm shop bằng bàn phím ---------- */
.combo { position: relative; display: flex; align-items: center; }
.combo > .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.combo .input { padding-left: 38px; padding-right: 40px; }
.combo-clear { position: absolute; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.combo-clear .ic { width: 16px; height: 16px; }
.combo-list {
  margin-top: 6px; max-height: 260px; overflow-y: auto; border-radius: 14px; background: #fff;
  border: 1px solid rgba(34, 23, 44, .1); box-shadow: 0 16px 32px -16px rgba(80, 20, 60, .3); padding: 4px;
}
.combo-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: var(--ink);
}
.combo-item:hover, .combo-item:focus { background: var(--pink-50); outline: 0; }
.combo-item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item span { font-size: 12px; color: var(--muted); flex: none; }
.combo-item.new { justify-content: flex-start; color: var(--pink); }
.combo-item.new .ic { width: 16px; height: 16px; flex: none; }
.combo-empty { padding: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .combo-item { padding: 13px 12px; font-size: 15px; } }

/* ---------- Nút quay lại trang trước ---------- */
.tb-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-btn { flex: none; border-radius: 13px; }
.back-btn .ic { width: 20px; height: 20px; }
@media (max-width: 640px) { .back-btn { width: 40px; height: 40px; } }

/* ---------- Lọc theo ngày / tháng nhận ---------- */
.date-f { display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; max-width: 200px; margin: 0; }
.date-f span { font-size: 11px; color: var(--muted); font-weight: 500; padding-left: 4px; }
.date-f .input { width: 100%; max-width: none; }
.active-filters { display: flex; gap: 8px; margin-top: -4px; }
.active-filters .pill .ic { width: 15px; height: 15px; }
@media (max-width: 640px) { .more-filters.open .date-f { max-width: none; } }
@media (max-width: 640px) {
  .toolbar { z-index: 30; }
  .more-filters.open { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .more-filters.open > * { min-width: 0; max-width: none; width: 100%; flex: none; }
  .more-filters.open .btn { width: auto; }
}
.toolbar .date-f .input { flex: none; min-width: 0; height: 42px; }
@media (max-width: 640px) { .toolbar .date-f .input { height: 46px; } }

/* Ô thống kê bấm được ở Tổng quan */
.stat-card.click { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat-card.click:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 45, 135, .18); }


/* Báo Cáo Công Việc */
.rep-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 6px 8px; background: rgba(255, 255, 255, .6); border: 1px solid #fff; border-radius: 13px; }
.rep-nav b { font-size: 14px; text-align: center; flex: 1; }
.rep-nav .btn { font-size: 20px; line-height: 1; }
.rep-me { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .45); }
.rep-num { font-size: 18px; font-weight: 600; }
.table tr.rep-miss td { color: var(--muted); }
.table tr.rep-miss td:first-child .t::after { content: ' · chưa báo cáo'; color: #d97706; font-size: 12px; font-weight: 500; }

/* Nhắc báo cáo công việc ở Tổng quan */
.rep-remind { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1.5px solid #fca5a5; background: linear-gradient(135deg, rgba(254, 226, 226, .85), rgba(255, 255, 255, .7)); }
.rep-remind .big { font-size: 34px; line-height: 1; }
.rep-remind .grow { flex: 1; min-width: 180px; }
.rep-remind h3 { color: #b91c1c; font-size: 16px; }
@media (max-width: 640px) { .rep-remind .btn { width: 100%; justify-content: center; } }

/* Video tồn chưa sửa (Tổng quan – Trưởng nhóm / Admin) */
.bl-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bl-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 100px; }
.bl-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; min-width: 30px; }
.bl-bar b { font-size: 11.5px; }
.bl-bar i { display: block; width: 18px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #ff2d87, #a24bf0); }
.bl-bar span { font-size: 10.5px; color: var(--muted); }
.bl-bar:hover i { opacity: .8; }

/* Thông báo Telegram (Cấu hình) */
.tg-steps { margin: 0 0 16px; padding: 12px 14px 12px 32px; background: rgba(255, 255, 255, .6); border: 1px solid #fff; border-radius: 14px; font-size: 13.5px; line-height: 1.7; }
.tg-steps code { background: var(--pink-50); padding: 1px 6px; border-radius: 6px; }
.row-input { display: flex; gap: 8px; }
.row-input .input { flex: 1; min-width: 0; }
.row-input .btn { flex: none; }

/* Thời tiết – ô nhỏ cạnh lời chào */
.wx { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .55); border: 1px solid #fff; font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: default; }
.wx b { font-size: 14px; color: var(--ink); }
.wx-sub { color: var(--muted); font-size: 12px; }
.wx[hidden] { display: none; }

/* Lời chúc đầu trang: chữ vừa phải, không bị bóp thành cột hẹp */
.tb-left h1.wish { font-size: 21px; line-height: 1.3; flex: 1 1 260px; min-width: 0; }
@media (max-width: 640px) { .tb-left h1.wish { font-size: 18px; flex-basis: 100%; } }

/* Gộp shop trùng */
.merge-list { max-height: 260px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .6); }
.merge-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13.5px; }
.merge-item + .merge-item { border-top: 1px solid var(--line); }
.merge-item:hover { background: rgba(255, 255, 255, .85); }
.merge-item input { width: 17px; height: 17px; accent-color: var(--pink); flex: none; }
.merge-item .grow { flex: 1; min-width: 0; }
.merge-item:has(input:checked) { background: var(--pink-50); }
.dup-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.dup-row + .dup-row { border-top: 1px solid var(--line); }
.dup-row .grow { flex: 1; min-width: 200px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Chi phí ---------- */
.exp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.exp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.exp-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-cat input { position: absolute; opacity: 0; pointer-events: none; }
.exp-cat span { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.exp-cat input:checked + span { background: linear-gradient(135deg, var(--pink), #ff8cc0); color: #fff; border-color: transparent; font-weight: 500; }
.exp-cat input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.exp-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.exp-total .v { font-size: 28px; font-weight: 700; line-height: 1.1; }
.exp-total .l { font-size: 12.5px; color: var(--muted); }
.exp-cols { display: flex; align-items: stretch; gap: 3px; height: 140px; padding: 4px 0 0; }
.exp-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.exp-col i { display: block; width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--pink), var(--purple)); }
.exp-col em { font-style: normal; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.exp-col span { font-size: 11px; color: var(--muted); height: 14px; line-height: 14px; }
.exp-col.today span { color: var(--pink); font-weight: 700; }
.exp-cols.month { gap: 2px; }
.exp-cols.month .exp-col i { border-radius: 3px 3px 1px 1px; }
.exp-h { margin: 18px 0 6px; font-size: 14px; }
.exp-catrow { cursor: default; }
.exp-emo { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-100); font-size: 18px; flex: none; }
.exp-amt { text-align: right; display: flex; flex-direction: column; }
.exp-amt b { font-size: 14px; white-space: nowrap; }
.exp-amt span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .exp-kpis { gap: 8px; }
  .exp-kpis .kpi { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .exp-kpis .kpi .k-ic { width: 32px; height: 32px; border-radius: 10px; }
  .exp-kpis .kpi .v { font-size: 15px; }
  .exp-cat span { height: 38px; }
}

/* ---------- Hoàn huỷ & Hoa hồng (đơn hàng TikTok) ---------- */
.oc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oc-up-h, .oc-res-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.oc-up-h .grow, .oc-res-h .grow { flex: 1; min-width: 0; }
.oc-up-h h3, .oc-res-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.oc-up-h .sub, .oc-res-h .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.oc-guide { margin-top: 10px; }
.oc-guide summary { cursor: pointer; font-size: 13.5px; color: var(--pink); font-weight: 600; padding: 4px 0; }
.oc-steps { margin: 6px 0 4px; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.oc-pick { position: relative; cursor: pointer; }
.oc-run { width: 100%; justify-content: center; margin-top: 12px; height: 46px; font-size: 15px; }
.oc-file { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .6); margin-top: 10px; }
.oc-file .t { font-weight: 600; font-size: 14px; word-break: break-all; display: flex; gap: 6px; align-items: center; }
.oc-file .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.oc-file-a { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.oc-file-a select { flex: 1; min-width: 0; height: 36px; }
.oc-hh { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-bottom: 14px; border: 1px solid; font-size: 14.5px; }
.oc-hh .ic { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.oc-hh .grow { flex: 1; min-width: 0; }
.oc-hh .small { font-size: 13px; margin-top: 3px; opacity: .9; }
.oc-hh.ok { background: #effaf2; border-color: #bfe8cc; color: #166534; }
.oc-hh.warn { background: #fff7e8; border-color: #f6dca8; color: #8a5300; }
.oc-hh.bad { background: #fff0f0; border-color: #fac5c5; color: #b42318; cursor: pointer; }
.oc-hh.bad::after { content: '›'; font-size: 26px; line-height: 22px; align-self: center; }
.oc-res { margin-top: 0; }
.oc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 14px 0 4px; background: rgba(34, 23, 44, .05); border-radius: 14px; }
.oc-seg button { border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-2); height: 40px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; padding: 0 4px; min-width: 0; }
.oc-seg button.on { background: #fff; color: var(--pink); font-weight: 600; box-shadow: 0 2px 8px rgba(34, 23, 44, .08); }
.oc-seg span { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(34, 23, 44, .07); display: inline-grid; place-items: center; font-weight: 600; }
.oc-seg span.red { background: var(--red); color: #fff; }
.oc-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 12px 0 10px; }
.oc-tools .input { height: 40px; min-width: 0; }
.oc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oc-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .72); min-width: 0; }
.oc-item.hot { border-color: #fac5c5; background: #fff6f6; }
.oc-item.click { cursor: pointer; }
.oc-item.click:active { transform: scale(.99); }
.oc-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.oc-name { font-weight: 600; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; }
.oc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.oc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.oc-nums b { color: var(--ink); }
.oc-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.oc-sample { font-size: 12.5px; color: var(--pink); text-decoration: none; background: var(--pink-50); border-radius: 99px; padding: 3px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hhbig { font-size: 22px; font-weight: 700; margin-top: 8px; color: var(--amber); }
.oc-hhbig span { color: var(--muted); font-weight: 400; margin: 0 4px; }
.oc-hhbig.down { color: var(--red); }
.oc-hhbig.up { color: var(--green); }
.oc-tl { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.oc-tl span { background: rgba(34, 23, 44, .05); border-radius: 8px; padding: 2px 8px; }
.oc-tl i { font-style: normal; color: var(--muted); }
.oc-more { width: 100%; justify-content: center; margin-top: 10px; }
.oc-histbox { margin-top: 18px; }
.oc-histbox summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 15px; list-style: none; }
.oc-histbox summary::-webkit-details-marker { display: none; }
.oc-histbox summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.oc-histbox[open] summary { margin-bottom: 8px; }
.oc-hist { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.oc-hist + .oc-hist { margin-top: 4px; }
.oc-hist:hover, .oc-hist.on { background: rgba(255, 255, 255, .7); }
.oc-hist.on { box-shadow: inset 3px 0 0 var(--pink); }
.oc-hist .grow { flex: 1; min-width: 0; }
.oc-hist .t { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hist .s { font-size: 12px; color: var(--muted); }
.oc-map { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; align-items: center; }
.oc-map label { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .oc-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .oc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-kpis .kpi .v { font-size: 17px; }
  .oc-up-h .oc-pick { width: 100%; justify-content: center; height: 44px; }
  .oc-tools { grid-template-columns: 1fr 1fr; }
  .oc-tools input.input { grid-column: 1 / -1; }
  .oc-tools .input { height: 44px; font-size: 15px; }
  .oc-seg button { height: 42px; font-size: 14px; }
  .oc-seg span { min-width: 18px; padding: 0 5px; }
  .oc-item { padding: 12px; }
  .oc-name { font-size: 14.5px; }
  .oc-nums { font-size: 13.5px; }
  .oc-res-h .btn { margin-left: auto; }
  .oc-map { grid-template-columns: 1fr; gap: 2px; }
  .oc-map select { margin-bottom: 8px; }
}
.oc-note { margin: -6px 4px 14px; line-height: 1.5; }
.oc-rec { margin-bottom: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.oc-rec summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.oc-rec summary::-webkit-details-marker { display: none; }
.oc-rec[open] summary { margin-bottom: 6px; }
.oc-rec-r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.oc-rec-r b { font-weight: 600; text-align: right; }
.oc-rec-r.b { border-bottom: 0; font-size: 15px; }
.oc-rec-r.b b { color: var(--pink-ink); }
.oc-weeks { margin-bottom: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.oc-weeks summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.oc-weeks summary::-webkit-details-marker { display: none; }
.oc-weeks[open] summary { margin-bottom: 6px; }
.oc-wk { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.oc-wk:last-child { border-bottom: 0; }
.oc-wk-d { display: grid; gap: 2px; font-size: 13px; }
.oc-wk-d .muted { font-size: 12px; }
.oc-wk-bar { height: 6px; border-radius: 99px; background: #f1e6ee; overflow: hidden; }
.oc-wk-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.oc-wk.open .oc-wk-bar i { background: var(--amber); }
.oc-wk-v { display: grid; justify-items: end; gap: 3px; text-align: right; }
.oc-wk-warn { color: #a15c00; }
.oc-wk.open .chip { opacity: .7; }
@media (max-width: 640px) { .oc-wk { grid-template-columns: minmax(0, 1fr) auto; } .oc-wk-bar { grid-column: 1 / -1; grid-row: 2; } }
.oc-tmp { display: inline-block; font-size: 10.5px; font-weight: 600; color: #a15c00; background: #fff3d6; padding: 1px 6px; border-radius: 99px; vertical-align: middle; }
.oc-rate { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
