/* Giặt Thơm — app khách (khung điện thoại) + bảng tiệm */

/* =================== APP KHÁCH =================== */
.kh { min-height: 100svh; display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 40px; width: min(1180px, 100% - 48px); margin: 0 auto; align-items: center; padding: 32px 0; }
.kh-side { display: flex; flex-direction: column; gap: 32px; align-self: stretch; justify-content: space-between; padding: 12px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muc-2); }
.back-link:hover { color: var(--muc); }
.kh-side-in { display: grid; gap: 22px; justify-items: start; }
.kh-side-in .eyebrow { margin: 18px 0 -6px; }
.kh-h { font: 400 clamp(40px, 4.4vw, 60px)/1.02 var(--f-d); letter-spacing: -.035em; }
.kh-side-in .muted { font-size: 16.5px; max-width: 40ch; }
.phone-shell { display: grid; place-items: center; position: relative; }
.phone-shell::before { content: ""; position: absolute; inset: 6% 4%; background: var(--vai) var(--linen); border-radius: 4px; z-index: -1; }

.ph { position: relative; width: 390px; height: 820px; border-radius: 54px; overflow: hidden; background: var(--bong); box-shadow: 0 0 0 11px #1b1f21, 0 0 0 12px #3a4145, 0 60px 100px -40px rgba(20, 26, 28, .55); isolation: isolate; }
.ph.mock { width: 390px; height: 820px; border-radius: 0; box-shadow: none; }
.ph-status { position: absolute; z-index: 6; inset: 0 0 auto; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; font-size: 15px; font-weight: 600; pointer-events: none; }
.ph-isl { position: absolute; left: 50%; top: 11px; width: 118px; height: 34px; margin-left: -59px; background: #0c0e0f; border-radius: 20px; }
.ph-sig { display: flex; align-items: flex-end; gap: 2.5px; }
.ph-sig i { width: 3.5px; background: currentColor; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 6px; } .ph-sig i:nth-child(2) { height: 9px; } .ph-sig i:nth-child(3) { height: 12px; }
.ph-sig b { width: 24px; height: 12px; border-radius: 3.5px; margin-left: 6px; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0) 2.5px 2.5px / 17px 7px no-repeat; }
.ph-body { position: absolute; inset: 0 0 84px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.ph-body::-webkit-scrollbar { display: none; }
.scr { min-height: 100%; padding-top: 50px; display: flex; flex-direction: column; }
.ph-pad { padding: 14px 20px 28px; }
.ph-tabs { position: absolute; z-index: 5; inset: auto 0 0; height: 84px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 8px 8px 0; background: color-mix(in srgb, var(--giay) 94%, transparent); box-shadow: 0 -1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ph-tabs a { display: grid; justify-items: center; gap: 3px; min-height: 52px; padding-top: 6px; text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--muc-2); border-radius: 12px; transition: color .2s; }
.ph-tabs a .ic { width: 22px; height: 22px; }
.ph-tabs a.on { color: var(--muc); }
.ph-tabs a.on .ic { color: var(--ho-phach-dam); }
.ph-tabs a.mid .ic { width: 44px; height: 44px; padding: 11px; margin-top: -14px; border-radius: 50%; background: var(--ho-phach); color: #1E1408; box-shadow: 0 8px 18px -8px var(--ho-phach); stroke-width: 2; }
.ph-tabs a.mid { gap: 2px; }

.ph-hello { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 22px; }
.ph-hello h1 { font: 400 32px/1.1 var(--f-d); letter-spacing: -.02em; margin-top: 4px; }
.av.lg { width: 48px; height: 48px; font-size: 18px; text-decoration: none; }
.av.xl { width: 64px; height: 64px; font-size: 24px; }

.bag-card { display: block; text-decoration: none; background: var(--xam-dam); color: #F4EFE6; border-radius: 14px; padding: 22px 22px 18px; margin-bottom: 14px; transition: transform .2s var(--ease); position: relative; overflow: hidden; }
[data-theme="dark"] .bag-card { background: #243136; }
.bag-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .05); }
.bag-card:active { transform: scale(.985); }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-code { font-size: 13.5px; color: #B9C4C6; }
.bag-card .chip.amber { background: rgba(241, 200, 148, .16); color: #F1C894; }
.bc-big { font: 400 27px/1.15 var(--f-d); margin: 16px 0 6px; letter-spacing: -.01em; }
.bc-sub { color: #C9D2D2; font-size: 15px; }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 18px 0 16px; }
.dots li { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.dots li.done { background: #F1C894; }
.dots li.now { background: linear-gradient(90deg, #F1C894 50%, rgba(255, 255, 255, .14) 0) 0 0/200% 100%; animation: fillp 1.6s ease-in-out infinite alternate; }
@keyframes fillp { from { background-position: 100% 0; } to { background-position: 0 0; } }
.bc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #C9D2D2; }
.bc-foot span { display: flex; align-items: center; gap: 8px; }
.bc-foot .ic { width: 17px; height: 17px; }

.book-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 18px 22px; border-radius: 14px; background: var(--ho-phach); color: #1E1408; text-decoration: none; margin-bottom: 30px; transition: transform .18s var(--ease); }
.book-cta:active { transform: scale(.97); }
.book-cta span:first-child { display: grid; }
.book-cta b { font-size: 18px; }
.book-cta small { font-size: 14px; opacity: .8; }
.bc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(30, 20, 8, .12); }

.ph-h2 { font: 500 20px/1.2 var(--f-d); margin: 0 0 14px; }
.ph-h3 { font-size: 15px; font-weight: 600; margin: 22px 0 12px; }
.svc-row, .prod-row { scroll-padding-inline: 20px; display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; margin: 0 -20px 30px; padding: 0 20px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.svc-row::-webkit-scrollbar, .prod-row::-webkit-scrollbar { display: none; }
.svc, .pmini { display: grid; gap: 4px; text-decoration: none; scroll-snap-align: start; }
.svc img { width: 148px; height: 128px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; transition: transform .3s var(--ease); }
.svc:active img { transform: scale(.97); }
.svc-n, .pm-n { font-weight: 600; font-size: 15px; line-height: 1.3; }
.svc-p, .pm-p { font-size: 13.5px; color: var(--muc-2); }
.pm-img { --ar: 0.8; position: relative; display: block; width: 148px; height: 185px; overflow: hidden; border-radius: 10px; margin-bottom: 6px; background: var(--vai); }
.pm-img > img { width: 100%; height: 100%; object-fit: cover; }
.plan-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--giay); text-decoration: none; margin-bottom: 30px; }
.plan-mini span { display: grid; flex: 1; }
.plan-mini small { color: var(--muc-2); font-size: 14px; }
.plan-mini .ic { color: var(--muc-2); }
.ring { width: 48px; height: 48px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--vai); }
.ring-fg { stroke: var(--ho-phach); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.empty-card { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 22px; background: var(--giay); border-radius: 14px; margin-bottom: 14px; }
.empty-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.empty-card p { color: var(--muc-2); }

.ph-top { display: flex; align-items: center; gap: 8px; padding: 6px 14px 0 12px; min-height: 56px; }
.ph-top h1 { font: 400 26px/1.1 var(--f-d); flex: 1; padding-left: 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 20px 0; }
.steps li { font-size: 12.5px; font-weight: 600; color: var(--muc-2); padding-top: 10px; border-top: 3px solid var(--vai); transition: border-color .3s, color .3s; }
.steps li.done { border-color: color-mix(in srgb, var(--ho-phach) 55%, var(--vai)); }
.steps li.now { border-color: var(--ho-phach); color: var(--muc); }
.flow { flex: 1; padding-bottom: 110px; }
.flow > .muted { font-size: 15px; margin-bottom: 16px; }
.pick-svc { display: grid; gap: 10px; }
.pick-svc li { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; padding: 12px; border-radius: 12px; background: var(--giay); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s; }
.pick-svc li.on { box-shadow: inset 0 0 0 2px var(--ho-phach); }
.pick-svc img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.ps-b { display: grid; gap: 1px; }
.ps-b b { font-size: 15.5px; }
.ps-b small { font-size: 13px; color: var(--muc-2); }
.stepper { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.stepper button { width: 44px; height: 40px; border-radius: 10px; border: 0; background: var(--vai); font-size: 20px; font-weight: 500; transition: transform .15s var(--ease), background-color .2s; }
.stepper button:active { transform: scale(.94); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 64px; text-align: center; font-size: 15px; font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; min-height: 60px; border: 0; border-radius: 12px; background: var(--giay); transition: background-color .2s, transform .15s var(--ease); }
.day:active { transform: scale(.96); }
.day small { font-size: 13px; color: var(--muc-2); }
.day b { font-size: 15px; }
.day.on { background: var(--muc); color: var(--bong); }
.day.on small { color: color-mix(in srgb, var(--bong) 75%, transparent); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { display: grid; justify-items: start; gap: 1px; padding: 12px 14px; min-height: 52px; border-radius: 12px; border: 0; background: var(--giay); text-align: left; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s, transform .15s var(--ease); }
.slot span { font-size: 14.5px; font-weight: 600; }
.slot small { font-size: 13px; color: var(--muc-2); }
.slot:active { transform: scale(.97); }
.slot.on { background: var(--ho-phach-nhat); box-shadow: inset 0 0 0 2px var(--ho-phach); }
.slot:disabled { cursor: not-allowed; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.slot:disabled span { color: var(--muc-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muc) 30%, transparent); }
.note-line { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14.5px; color: var(--muc-2); }
.note-line b { color: var(--muc); }
.ph-sticky { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 14px 20px; margin-top: auto; background: color-mix(in srgb, var(--bong) 94%, transparent); box-shadow: 0 -1px 0 var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph-sticky > div { display: grid; flex: 1; line-height: 1.25; }
.ph-sticky small { font-size: 13px; }
.ph-sticky b { font-size: 18px; }
.ph-sticky .btn { padding: 0 18px; }

.done-v { display: grid; gap: 16px; padding-top: 30px; }
.done-tag { width: 250px; justify-self: center; transform: rotate(-3deg); margin-bottom: 12px; }
.done-v h1 { font: 400 30px/1.12 var(--f-d); letter-spacing: -.02em; }

.seg.tabs { margin-bottom: 16px; }
.olist { display: grid; gap: 10px; }
.olist a { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--giay); text-decoration: none; transition: transform .15s var(--ease); }
.olist a:active { transform: scale(.98); }
.olist img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.ol-b { display: grid; min-width: 0; }
.ol-b b { font-size: 14.5px; }
.ol-b small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-r { display: grid; justify-items: end; gap: 6px; }
.ol-r b { font-size: 14px; }
.ol-r .chip { height: 24px; padding: 0 9px; font-size: 12.5px; }
.sk-row { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--giay); }
.sk-img { width: 60px; height: 60px; border-radius: 8px; }
.sk-lines { display: grid; gap: 10px; }
.sk.short { width: 55%; }

.trk-hero { position: relative; height: 220px; margin-top: -50px; overflow: hidden; flex: none; }
.trk-hero.tall { height: 320px; }
.trk-hero img, .trk-hero .ph-prod { width: 100%; height: 100%; object-fit: cover; }
.trk-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.ph-prod { --ar: 1.22; position: relative; overflow: hidden; }
.ph-prod > img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn.over { position: absolute; z-index: 2; left: 14px; top: 56px; background: rgba(251, 250, 246, .9); color: #1C2427; }
.trk h1, .ph-pad > h1 { font: 400 30px/1.12 var(--f-d); letter-spacing: -.02em; margin: 6px 0 8px; }
.trk > .muted { font-size: 15px; }
.tl { margin: 24px 0 26px; }
.tl li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding-bottom: 18px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: var(--vai); }
.tl li:last-child::before { display: none; }
.tl li.done::before { background: color-mix(in srgb, var(--ho-phach) 60%, var(--vai)); }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--bong); box-shadow: inset 0 0 0 2px var(--vai); }
.tl li.done .tl-dot { background: var(--ho-phach); box-shadow: none; }
.tl li.now .tl-dot { background: var(--bong); box-shadow: inset 0 0 0 4px var(--ho-phach), 0 0 0 5px color-mix(in srgb, var(--ho-phach) 22%, transparent); }
.tl-b { display: grid; }
.tl-b b { font-size: 15px; font-weight: 500; color: var(--muc-2); }
.tl li.done .tl-b b, .tl li.now .tl-b b { color: var(--muc); font-weight: 600; }
.tl-b small { font-size: 13.5px; color: var(--ho-phach-dam); }
.tl-t { font-size: 13px; color: var(--muc-2); }
.receipt.sm .rc-l { font-size: 14px; }
.trk .btn.block, .ph-pad > .btn.block { margin-top: 10px; }
.big-p { font-size: 20px; font-weight: 600; margin: 4px 0 14px; }
.ph-pad > p:not(.muted):not(.big-p) { color: var(--muc-2); font-size: 15.5px; margin-bottom: 20px; }

.plan-now { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 14px; background: var(--giay); margin-bottom: 22px; }
.plan-now .ring { width: 88px; height: 88px; }
.plan-now h2 { font: 400 24px/1.1 var(--f-d); }
.big-n { font-size: 34px; font-weight: 600; margin: 4px 0; letter-spacing: -.03em; }
.big-n small { font-size: 15px; color: var(--muc-2); font-weight: 500; }
.plan-list { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 12px; background: var(--giay); }
.plan-list li.on { box-shadow: inset 0 0 0 2px var(--la); }
.plan-list li div { display: grid; gap: 2px; }
.plan-list small { font-size: 13px; color: var(--muc-2); }
.me { display: flex; gap: 16px; align-items: center; margin: 10px 0 10px; }
.me h2 { font: 400 24px/1.1 var(--f-d); }
.set-list { display: grid; gap: 4px; background: var(--giay); border-radius: 12px; padding: 6px; }
.set-list li { display: flex; gap: 14px; align-items: center; padding: 10px; }
.set-list li > .ic { color: var(--xam); }
.set-list button { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 48px; border: 0; background: none; text-align: left; padding: 0; border-radius: 8px; }
.set-list span { display: grid; }
.set-list small { font-size: 13px; color: var(--muc-2); }
.set-list .ic { color: var(--xam); }

@media (max-width: 900px) {
  .kh { grid-template-columns: 1fr; width: 100%; padding: 0; gap: 0; }
  .kh-side { display: none; }
  .phone-shell::before { display: none; }
  .ph { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .ph > .ph-status { display: none; }
  .scr { padding-top: 8px; }
  .trk-hero { margin-top: -8px; }
  .icon-btn.over { top: 16px; }
  .ph-body { inset: 0 0 76px; }
  .ph-tabs { height: 76px; padding-bottom: env(safe-area-inset-bottom); }
}

/* =================== BẢNG TIỆM =================== */
.tm { display: grid; grid-template-columns: 264px 1fr; min-height: 100svh; }
.tm-sb { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 6px; padding: 24px 16px 18px; background: var(--giay); overflow-y: auto; }
.tm-logo { text-decoration: none; padding: 4px 10px 18px; }
.store-sw { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
.store-sw .ic { position: absolute; left: 12px; color: var(--xam); pointer-events: none; }
.store-sw select { width: 100%; min-height: 48px; padding: 0 12px 0 42px; border-radius: var(--r); border: 0; background: var(--vai); font-weight: 600; font-size: 15px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muc-2) 50%), linear-gradient(135deg, var(--muc-2) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.sb-g { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muc-2); padding: 16px 12px 6px; }
.tm-sb ul a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--muc-2); transition: background-color .2s, color .2s; }
.tm-sb ul a:hover { background: var(--vai); color: var(--muc); }
.tm-sb ul a.on { background: var(--muc); color: var(--bong); }
.tm-sb ul a.on .ic { color: var(--ho-phach); }
.cnt { margin-left: auto; font: 600 12.5px/22px var(--f-m); font-style: normal; min-width: 24px; text-align: center; border-radius: 11px; background: var(--ho-phach-nhat); color: var(--ho-phach-dam); }
.sb-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.sb-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--vai); color: var(--muc-2); font-size: 15px; }
.sb-search kbd { margin-left: auto; font: 500 12.5px var(--f-m); padding: 2px 7px; border-radius: 5px; background: var(--giay); }
.sb-me { display: flex; gap: 10px; align-items: center; padding: 8px 4px 0; }
.sb-me span:last-child { display: grid; line-height: 1.3; }
.sb-me small { color: var(--muc-2); font-size: 13px; }
.tm-main { min-width: 0; padding: 32px clamp(20px, 3.4vw, 52px) 40px; }
.tm-view { max-width: 1240px; }
.tm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.tm-top h1 { font: 400 clamp(30px, 3vw, 40px)/1.1 var(--f-d); letter-spacing: -.025em; margin-top: 4px; }
.tm-top-r { display: flex; gap: 10px; align-items: center; }
.tm-concept { max-width: 1240px; margin-top: 56px; padding-top: 20px; box-shadow: 0 -1px 0 var(--line); }
.tm-tabs { display: none; }

.band { position: relative; height: 210px; border-radius: 14px; overflow: hidden; margin-bottom: 28px; color: #F6F1E7; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 24, 26, .78), rgba(18, 24, 26, .1) 70%); }
.band-in { position: absolute; z-index: 1; left: 32px; bottom: 26px; }
.band-in h2 { font: 400 40px/1.05 var(--f-d); letter-spacing: -.025em; margin: 6px 0; }
.band-in .mono { font-size: 13.5px; color: #F1C894; }
.band-in p:last-child { color: #DCD5C9; font-size: 15px; }

.today-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; }
.tile, .card { background: var(--giay); border-radius: 14px; padding: 28px; }
.tile.focus { grid-row: span 2; display: flex; flex-direction: column; }
.tile-k { font-size: 14.5px; font-weight: 600; color: var(--muc-2); }
.tile-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tile-h .txt-link { font-size: 14px; }
.hero-n { font: 400 clamp(64px, 7vw, 104px)/1 var(--f-d); letter-spacing: -.05em; margin: 12px 0 10px; }
.tile-sub { font-size: 16px; color: var(--muc-2); margin-bottom: 22px; }
.tile-sub b { color: var(--muc); }
.urgent { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; align-content: start; }
.urgent li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.urgent img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.urgent span:nth-child(2) { display: grid; }
.urgent small { color: var(--muc-2); font-size: 14px; }
.urgent .due { font-size: 15px; font-weight: 600; color: var(--ho-phach-dam); }
.tile.focus .btn { align-self: flex-start; }
.mid-n { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; margin: 4px 0 16px; }
.mid-n b { font-weight: 600; }
.mid-n.mono { font-size: 30px; }
.mid-n .muted { font-size: 22px; }
.mini-drums { display: flex; gap: 14px; flex-wrap: wrap; }
.mini-drums > div { display: grid; justify-items: center; gap: 6px; text-align: center; }
.trips-mini { display: grid; gap: 14px; }
.trips-mini li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.tm-h { font-weight: 600; color: var(--ho-phach-dam); padding-top: 1px; }
.trips-mini span:last-child { display: grid; min-width: 0; }
.trips-mini b { font-weight: 600; font-size: 15px; }
.trips-mini small { color: var(--muc-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.tile.split a { display: block; padding: 28px; text-decoration: none; border-radius: 14px; transition: background-color .2s; }
.tile.split a + a { box-shadow: -1px 0 0 var(--line); }
.tile.split a:hover { background: var(--vai); }
.tile.split .mid-n { margin-bottom: 0; }
.spark { width: 100%; height: 60px; margin-bottom: 8px; }
.spark polyline { fill: none; stroke: var(--ho-phach); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.intake-grid { display: grid; grid-template-columns: minmax(340px, .9fr) 1.5fr; gap: 24px; align-items: start; }
.card h2 { font: 400 24px/1.2 var(--f-d); margin-bottom: 20px; }
.card h2 .muted { font: 500 16px var(--f-m); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-h h2 { margin: 0; }
.card-h .search-in { width: min(280px, 100%); }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-pick label { position: relative; cursor: pointer; }
.svc-pick input { position: absolute; opacity: 0; }
.svc-pick span { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--vai); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s; }
.svc-pick img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.svc-pick b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.svc-pick input:checked + span { background: var(--ho-phach-nhat); box-shadow: inset 0 0 0 2px var(--ho-phach); }
.svc-pick input:focus-visible + span { outline: 2.5px solid var(--ho-phach); }
.scale-row { display: flex; gap: 10px; align-items: flex-end; }
.scale-row .fld { margin-bottom: 0; }
.grow { flex: 1; }
.kg-in { position: relative; }
.kg-in input { font: 600 26px var(--f-m) !important; min-height: 60px !important; padding-right: 48px !important; }
.kg-in em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muc-2); font-weight: 600; }
.scale-row .btn { min-height: 60px; }
#kg-h { margin: 8px 0 18px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muc-2); padding: 0 12px 10px; }
.tbl td { padding: 10px 12px; height: 72px; font-size: 15px; box-shadow: 0 -1px 0 var(--line); }
.tbl tbody tr { cursor: pointer; transition: background-color .15s; }
.tbl tbody tr:hover, .tbl tbody tr:focus-visible { background: var(--vai); }
.tbl tbody tr:focus-visible { outline: 2.5px solid var(--ho-phach); outline-offset: -2px; }
.tbl td:first-child { border-radius: 10px 0 0 10px; } .tbl td:last-child { border-radius: 0 10px 10px 0; }
.tbl .num { text-align: right; }
.cellimg { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cellimg img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.cellimg > span { display: grid; min-width: 0; }
.cellimg small { color: var(--muc-2); font-size: 13.5px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 28px 16px; }
.empty img { width: min(320px, 100%); height: 160px; object-fit: cover; border-radius: 10px; }
.empty p { color: var(--muc-2); max-width: 40ch; }
.empty.sm img { height: 110px; }
.empty.big img { width: min(520px, 100%); height: 260px; }
.bd-top { display: grid; grid-template-columns: 140px 1fr; gap: 20px; margin-bottom: 22px; align-items: start; }
.bd-top img { width: 140px; height: 140px; border-radius: 10px; object-fit: cover; }
.bd-top h3 { font: 400 24px/1.2 var(--f-d); margin: 2px 0 6px; }
.bd-top p { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.bd-top .big-p { font-size: 17px; }
.tag-prev { display: grid; place-items: center; padding: 20px 0 22px; }
.tag-prev .hangtag { width: 280px; transform: rotate(-2deg); }

.m-sum { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.m-sum p { padding: 14px 22px; border-radius: 12px; background: var(--giay); font-size: 15px; color: var(--muc-2); }
.m-sum b { font: 600 24px var(--f-m); color: var(--muc); margin-right: 6px; }
.m-sum p.hl { background: var(--ho-phach-nhat); color: var(--ho-phach-dam); }
.m-sum p.hl b { color: var(--ho-phach-dam); }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.mcard { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: 14px; background: var(--giay); }
.mcard.maint { background: repeating-linear-gradient(135deg, var(--giay) 0 14px, var(--vai) 14px 16px); }
.mc-b { display: grid; gap: 4px; min-width: 0; }
.mc-id { display: flex; gap: 10px; align-items: baseline; }
.mc-id b { font-size: 18px; }
.mc-id .muted { font-size: 14px; }
.mc-st { font-size: 14.5px; font-weight: 600; color: var(--muc-2); }
.mc-st.run { color: var(--ho-phach-dam); }
.mc-st.done { color: color-mix(in srgb, var(--la) 70%, var(--muc)); }
[data-theme="dark"] .mc-st.done { color: var(--la); }
.mc-cd { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.mc-cd.done { color: var(--muc-2); }
.mc-b .sm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-act { margin-top: 10px; }
.drumviz { position: relative; width: var(--sz); height: var(--sz); flex: none; }
.drumviz svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.drumviz circle { fill: none; stroke-width: 5; }
.dv-bg { stroke: var(--vai); }
.dv-fg { stroke: var(--ho-phach); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.drumviz.done .dv-fg { stroke: var(--la); }
.drumviz.idle .dv-fg, .drumviz.maint .dv-fg { stroke: transparent; }
.dv-glass { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #fff 0, #dfe6e8 40%, #b9c5c9 100%); box-shadow: inset 0 0 0 4px #c9d0d2, inset 0 6px 14px rgba(0, 0, 0, .18); }
[data-theme="dark"] .dv-glass { background: radial-gradient(circle at 35% 30%, #4a5a60 0, #2c383d 60%, #1d272b 100%); box-shadow: inset 0 0 0 4px #3c4a50, inset 0 6px 14px rgba(0, 0, 0, .4); }
.cl { position: absolute; width: 40%; height: 26%; border-radius: 40% 60% 50% 45%; opacity: 0; }
.c1 { background: #E9B77A; left: 18%; top: 50%; } .c2 { background: #F6F2EA; left: 44%; top: 56%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); } .c3 { background: #7F939B; left: 30%; top: 62%; }
.water { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; border-radius: 45%; background: rgba(120, 160, 175, .35); opacity: 0; }
.run .cl, .done .cl { opacity: 1; }
.run .dv-glass { animation: tumble 2.4s linear infinite; }
.run.wash .water { opacity: 1; animation: slosh 3s ease-in-out infinite; }
.done .cl { top: auto; bottom: 14%; }
@keyframes tumble { to { transform: rotate(360deg); } }
@keyframes slosh { 50% { transform: rotate(-10deg) translateY(-6%); } }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.kcol { background: var(--vai) var(--linen); border-radius: 14px; padding: 18px; min-height: 300px; }
.kcol h2 { font: 400 22px/1.2 var(--f-d); padding: 4px 6px 16px; }
.kcol h2 .muted { font: 500 14px var(--f-m); }
.kcol.doing { background: var(--ho-phach-nhat); }
.kcard { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; border-radius: 12px; background: var(--giay); margin-bottom: 12px; }
.kcard img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.kc-b { display: grid; gap: 4px; min-width: 0; }
.kc-b h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.due-l { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ho-phach-dam); }
.due-l .ic { width: 16px; height: 16px; }
.kc-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.kc-act .btn.ghost { padding: 0 12px; }

.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muc-2); }
.legend i { width: 14px; height: 14px; border-radius: 4px; margin-left: 10px; }
.lg-lay { background: var(--xam); } .lg-giao { background: var(--ho-phach); }
.sched { margin-bottom: 24px; padding: 24px 0 18px; }
.sched-scroll { overflow-x: auto; padding: 0 24px; }
.sched-in { min-width: 860px; }
.tl-hours, .tl-row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: center; }
.tl-hours .tl-track { height: 30px; }
.tl-hours .tl-track span { position: absolute; top: 0; transform: translateX(-50%); font: 500 13px var(--f-m); color: var(--muc-2); }
.tl-track { position: relative; height: 72px; }
.tl-row { padding: 6px 0; box-shadow: 0 -1px 0 var(--line); }
.tl-row .tl-track { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 7)); }
.tl-who { display: flex; gap: 12px; align-items: center; }
.tl-who span:last-child { display: grid; }
.tl-who small { color: var(--muc-2); font-size: 13px; }
.trip { position: absolute; top: 10px; height: 52px; border: 0; border-radius: 8px; padding: 6px 10px; text-align: left; display: grid; align-content: center; overflow: hidden; font-size: 13px; line-height: 1.25; transition: transform .15s var(--ease), box-shadow .2s; min-width: 44px; }
.trip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4); }
.trip b { font-weight: 600; } .trip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip.lay { background: var(--xam); color: #fff; }
.trip.giao { background: var(--ho-phach); color: #1E1408; }
.trip.done { opacity: .45; }
.trip.now { box-shadow: 0 0 0 3px var(--giay), 0 0 0 5px var(--ho-phach); }
.now-line { position: absolute; top: 22px; width: 2px; height: 300px; background: var(--do); z-index: 2; pointer-events: none; }
.now-line em { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12.5px; background: var(--do); color: #fff; padding: 1px 6px; border-radius: 4px; }
.sched-in { position: relative; overflow: hidden; }

.issues { display: grid; gap: 18px; }
.issue { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px; border-radius: 14px; background: var(--giay); }
.issue.done { opacity: .7; }
.issue img { width: 180px; height: 150px; border-radius: 10px; object-fit: cover; }
.is-b { display: grid; gap: 8px; align-content: start; }
.is-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.is-b h3 { font: 400 22px/1.25 var(--f-d); }
.is-b .sm { display: flex; gap: 10px; align-items: center; }
.is-b .sm .av { width: 32px; height: 32px; font-size: 13px; }

.rev-hero { margin-bottom: 24px; }
.rev-hero .hero-n { font-family: var(--f-m); font-weight: 600; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.05em; }
.up { color: color-mix(in srgb, var(--la) 70%, var(--muc)); }
[data-theme="dark"] .up { color: var(--la); }
.bars { width: 100%; height: auto; margin: 8px 0 10px; overflow: visible; }
.bars rect { fill: color-mix(in srgb, var(--xam) 40%, var(--vai)); transition: fill .2s; }
.bars rect:hover { fill: var(--xam); }
.bars rect.mx { fill: var(--xam); }
.bars rect.today { fill: var(--ho-phach); }
.bars text { font: 600 13px var(--f-m); fill: var(--muc); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hbars, .store-rev { display: grid; gap: 6px; }
.hbars li { display: grid; grid-template-columns: minmax(150px, 1fr) 1.2fr 76px; gap: 14px; align-items: center; min-height: 64px; }
.hbars .cellimg img, .store-rev .cellimg img { width: 48px; height: 48px; }
.hbars b { font-weight: 600; font-size: 15px; }
.hbar { height: 10px; border-radius: 5px; background: var(--vai); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--xam); border-radius: 5px; }
.hbars li:first-child .hbar i { background: var(--ho-phach); }
.hbars .num, .store-rev .num { text-align: right; font-weight: 600; }
.store-rev li { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 72px; box-shadow: 0 -1px 0 var(--line); }
.store-rev li:first-child { box-shadow: none; }

/* mock bảng tiệm trong laptop ở landing */
.tm.mock { width: 1280px; height: 800px; overflow: hidden; }
.tm.mock .tm-sb { position: relative; height: 800px; }
.tm.mock .tm-main { padding-top: 36px; }
.tm.mock .m-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1180px) {
  .today-grid { grid-template-columns: 1fr 1fr; }
  .intake-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tm { grid-template-columns: 1fr; }
  .tm-sb { display: none; }
  .tm.mock .tm-sb { display: flex; }
  .tm.mock { grid-template-columns: 264px 1fr; }
  .tm-main { padding: 20px 20px 110px; }
  .tm-tabs { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 74px; padding: 6px 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--giay) 95%, transparent); box-shadow: 0 -1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tm-tabs a, .tm-tabs button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 56px; border: 0; background: none; text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--muc-2); border-radius: 12px; }
  .tm-tabs .on { color: var(--muc); }
  .tm-tabs .on .ic { color: var(--ho-phach-dam); }
  .kanban { grid-template-columns: 1fr; }
  .kcol { min-height: 0; }
}
@media (max-width: 640px) {
  .today-grid { grid-template-columns: 1fr; gap: 16px; }
  .tile.focus { grid-row: auto; }
  .tile, .card { padding: 22px 20px; }
  .band { height: 170px; }
  .band-in { left: 20px; bottom: 18px; }
  .band-in h2 { font-size: 30px; }
  .hide-s { display: none; }
  .m-grid { grid-template-columns: 1fr; }
  .mcard { padding: 20px; gap: 18px; }
  .drumviz { --sz: 96px !important; }
  .mini-drums .drumviz { --sz: 64px !important; }
  .issue { grid-template-columns: 1fr; }
  .issue img { width: 100%; height: 170px; }
  .hbars li { grid-template-columns: 1fr 70px; }
  .hbars .hbar { grid-column: 1 / -1; grid-row: 2; }
  .bd-top { grid-template-columns: 96px 1fr; }
  .bd-top img { width: 96px; height: 96px; }
  .tbl td { padding: 8px 6px; }
  .cellimg { gap: 10px; }
  .card-h .search-in { width: 100%; }
  .seg.tabs { display: flex; }
  .tm-top-r .btn { padding: 0 14px; }
}
.me-links { display: grid; gap: 10px; margin-top: 24px; } .me-links .concept-note { margin-top: 8px; }
.sched-in { padding-right: 28px; }
@media (max-width: 640px) {
  .tl-hours, .tl-row { grid-template-columns: 150px 1fr; }
  .sched-in { min-width: 760px; }
  .sched .cellimg small { display: none; }
}
