/* PlumbPro OS dashboard, round 2. One dashboard, three style options.
   body[data-opt="1"] Top nav · body[data-opt="2"] Sidebar CRM · body[data-opt="3"] Navy header */

:root {
  --navy: #163056; --navy-2: #1d3b68; --navy-deep: #0e2140;
  --blue: #1a6ea6; --blue-h: #155c8c; --sky: #288ece; --sky-50: #eaf4fb;
  --bg: #f4f6f9; --card: #fff; --ink: #0f1b2a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e5e9f0; --line-2: #d6dce5;
  --green: #16a34a; --green-50: #eaf7ef; --amber: #d97706; --amber-50: #fdf4e6; --red: #dc2626; --red-50: #fdeeee;
  --violet: #6d4fd1; --violet-50: #f1edfc; --teal: #0e8f8f; --teal-50: #e6f5f5;
  /* chart order: always this order */
  --c1: #163056; --c2: #288ece; --c3: #0e8f8f; --c4: #d97706; --c5: #a8b4c4;
  --r: 12px; --r-sm: 8px;
  --sh: 0 1px 2px rgba(15, 27, 42, .05), 0 1px 3px rgba(15, 27, 42, .04);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- shells ---------- */
.app { min-height: 100vh; }
.page { padding: 24px 28px 48px; max-width: 1480px; margin: 0 auto; }

/* option 1: navy top nav (Shane's structure) */
.tnav { background: var(--navy); color: #fff; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.tnav .logo { display: flex; align-items: center; gap: 6px; }
.tnav .logo img { height: 28px; display: block; }
.tnav .logo b { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--sky); padding-top: 3px; }
.tnav nav { display: flex; gap: 2px; height: 100%; }
.tnav nav a { color: #c5d3e6; font-weight: 500; padding: 0 14px; display: flex; align-items: center; height: 100%; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.tnav nav a:hover { color: #fff; }
.tnav nav a.on { color: #fff; border-bottom-color: var(--sky); }
.tnav .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 7px 12px; width: 300px; color: #a9bbd2; }
.tnav .ibtn { color: #c5d3e6; position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.tnav .ibtn:hover { background: rgba(255,255,255,.08); }
.dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #f87171; }

/* option 2 and 3: sidebar */
.with-side { display: grid; grid-template-columns: 248px 1fr; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 16px 12px; border-right: 1px solid var(--line); background: #fff; }
.side .logo { display: flex; align-items: center; gap: 6px; padding: 4px 10px 18px; }
.side .logo img { height: 27px; }
.side .logo b { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--sky); padding-top: 3px; }
.side .grp { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 6px; display: flex; align-items: center; gap: 8px; }
.side .grp i { width: 6px; height: 6px; border-radius: 2px; }
.side a.it { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.side a.it:hover { background: var(--bg); }
.side a.it.on { background: var(--sky-50); color: var(--blue); font-weight: 600; }
.side a.it .n { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--bg); color: var(--muted); padding: 0 7px; border-radius: 99px; }
.side a.it .n.hot { background: var(--red); color: #fff; }
.side a.it.sub { padding-left: 26px; }
.side .closed { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--ink-2); font-weight: 500; border-radius: 8px; }
.side .closed i { width: 6px; height: 6px; border-radius: 2px; }
.side .closed .ico { margin-left: auto; width: 15px; height: 15px; color: var(--faint); }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .crumb { font-weight: 600; font-size: 15px; }
.topbar .search { flex: 1; max-width: 440px; margin-left: 24px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--faint); }
.topbar .sp { flex: 1; }
.ibtn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--ink-2); }
.ibtn:hover { background: var(--bg); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--sky); flex: none; }

/* option 3: navy sidebar + navy header band */
body[data-opt="3"] .side { background: var(--navy-deep); border-right: 0; }
body[data-opt="3"] .side a.it { color: #b8c7da; }
body[data-opt="3"] .side a.it:hover { background: rgba(255,255,255,.06); }
body[data-opt="3"] .side a.it.on { background: rgba(40,142,206,.2); color: #fff; }
body[data-opt="3"] .side a.it .n { background: rgba(255,255,255,.1); color: #cfdbea; }
body[data-opt="3"] .side a.it .n.hot { background: var(--red); color: #fff; }
body[data-opt="3"] .side .grp { color: #6f86a5; }
body[data-opt="3"] .side .closed { color: #b8c7da; }
body[data-opt="3"] .topbar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
body[data-opt="3"] .topbar .search { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #9fb2cb; }
body[data-opt="3"] .topbar .ibtn { color: #c5d3e6; }
body[data-opt="3"] .band { background: var(--navy); color: #fff; padding: 22px 28px 76px; }
body[data-opt="3"] .band .hello h1 { color: #fff; }
body[data-opt="3"] .band .hello p, body[data-opt="3"] .band .hello .tag { color: #a9bbd2; }
body[data-opt="3"] .band .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
body[data-opt="3"] .band .wx { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
body[data-opt="3"] .band .wx small { color: #a9bbd2; }
body[data-opt="3"] .page { margin-top: -64px; padding-top: 0; }

/* ---------- header row ---------- */
.hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h1 { font-size: 24px; font-weight: 700; color: var(--navy); }
.hello p { margin: 2px 0 0; color: var(--muted); }
.hello .tag { color: var(--muted); font-size: 13.5px; padding-left: 16px; border-left: 1px solid var(--line-2); align-self: stretch; display: flex; align-items: center; }
.hello .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wx { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.wx .t { font-size: 20px; font-weight: 700; }
.wx small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.pri:hover { background: var(--blue-h); }
.btn .ico { width: 16px; height: 16px; }

/* ---------- KPI row ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px 18px; color: inherit; display: block; position: relative; transition: border-color .15s, box-shadow .15s; }
.kpi:hover { border-color: #b9c6d6; box-shadow: 0 4px 14px rgba(15,27,42,.07); }
.kpi .top { display: flex; align-items: center; gap: 10px; }
.kpi .tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.kpi .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi .sub b { color: var(--ink-2); font-weight: 600; }
.kpi .go { font-size: 12.5px; font-weight: 600; color: var(--blue); }
.t-blue { background: var(--sky-50); color: var(--blue); }
.t-green { background: var(--green-50); color: var(--green); }
.t-navy { background: #e8edf5; color: var(--navy); }
.t-violet { background: var(--violet-50); color: var(--violet); }
.t-amber { background: var(--amber-50); color: var(--amber); }
.t-red { background: var(--red-50); color: var(--red); }
.t-teal { background: var(--teal-50); color: var(--teal); }

/* option 2: one connected KPI strip */
body[data-opt="2"] .kpis { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
body[data-opt="2"] .kpi { border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body[data-opt="2"] .kpi:first-child { border-left: 0; }
body[data-opt="2"] .kpi:hover { background: #fafbfd; }
body[data-opt="2"] .kpi .tile { width: 30px; height: 30px; border-radius: 8px; }
body[data-opt="2"] .kpi .tile .ico { width: 16px; height: 16px; }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); display: flex; flex-direction: column; min-width: 0; }
.ch { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ch h2 { font-size: 15px; font-weight: 650; font-weight: 600; }
.ch .ico { color: var(--muted); }
.ch .act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ch .link { font-size: 13px; font-weight: 600; }
.ch .handle { color: var(--line-2); cursor: grab; margin-left: -6px; display: none; }
body[data-opt="2"] .ch .handle { display: block; }
.cb { padding: 14px 18px; flex: 1; }
.cb.flush { padding: 0; }
.sel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.sel .ico { width: 14px; height: 14px; }

/* schedule */
.sch { list-style: none; margin: 0; padding: 0; }
.sch > li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.sch > li:first-child { border-top: 0; }
.sch .nm { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sch .stops { margin-top: 4px; display: grid; gap: 3px; }
.sch .stop { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; font-size: 13px; align-items: center; }
.sch .stop time { color: var(--muted); font-variant-numeric: tabular-nums; }
.sch .stop span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }

/* status pills: one meaning each */
.pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.p-sched { background: #eef1f5; color: #475569; }
.p-way { background: var(--sky-50); color: var(--blue); }
.p-prog { background: var(--teal-50); color: var(--teal); }
.p-done { background: var(--green-50); color: var(--green); }
.p-hold { background: var(--amber-50); color: #b45309; }
.p-late { background: var(--red-50); color: var(--red); }
.p-ai { background: var(--violet-50); color: var(--violet); }

/* donut */
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .mid b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.donut .mid small { color: var(--muted); font-size: 12px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto 40px; gap: 9px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.legend small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* bars (option 3 charts) */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .tr { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 5px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 4px 0 14px; }

/* quick actions */
.qa { display: grid; gap: 8px; }
.qa a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 500; }
.qa a:hover { border-color: var(--blue); color: var(--blue); }
.qa a .tile { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.qa a .tile .ico { width: 15px; height: 15px; }
.qa a > .ico { margin-left: auto; color: var(--faint); width: 15px; height: 15px; }

/* tables */
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 9px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.tb td { padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
.tb tr:hover td { background: #fafbfd; }
.tb .ref { font-weight: 600; color: var(--blue); white-space: nowrap; }
.tb .muted { color: var(--muted); white-space: nowrap; }
.tb .r { text-align: right; }
.dl { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* approvals */
.ap { list-style: none; margin: 0; padding: 0; }
.ap li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); }
.ap li:first-child { border-top: 0; }
.ap .tile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ap .tile .ico { width: 15px; height: 15px; }
.ap b { display: block; font-weight: 600; font-size: 13.5px; }
.ap small { color: var(--muted); font-size: 12.5px; }
.ap .money { color: #b45309; font-weight: 600; }
.ap .btn { margin-left: auto; padding: 5px 10px; font-size: 12.5px; }

/* photos */
.ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ph a { color: inherit; }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); }
.ph b { display: block; font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.ph small { color: var(--muted); font-size: 11.5px; }

.customize-note { display: none; }

/* ---------- phone ---------- */
.m-top, .m-tabs { display: none; }
@media (max-width: 899px) {
  .tnav, .side, .topbar { display: none; }
  .with-side { display: block; }
  .m-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; background: var(--navy); position: sticky; top: 0; z-index: 20; }
  .m-top img { height: 24px; }
  .m-top b { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--sky); padding-top: 2px; }
  .m-top .sp { flex: 1; }
  .m-top .ibtn { color: #dbe5f1; width: 38px; height: 38px; }
  body[data-opt="2"] .m-top { background: #fff; border-bottom: 1px solid var(--line); }
  body[data-opt="2"] .m-top .ibtn { color: var(--ink-2); }
  .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 6px 2px 20px; }
  .m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; }
  .m-tabs a.on { color: var(--blue); }
  .m-tabs a .ico { width: 22px; height: 22px; }
  .m-tabs a .bd { position: absolute; top: -3px; left: 50%; margin-left: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }
  .page { padding: 16px 14px 100px; }
  body[data-opt="3"] .band { padding: 16px 14px 60px; }
  body[data-opt="3"] .page { margin-top: -52px; }
  .hello { gap: 4px; margin-bottom: 14px; }
  .hello h1 { font-size: 21px; }
  .hello .tag, .hello .right .btn { display: none; }
  .hello .right { margin-left: 0; width: 100%; }
  .hello .wx { display: none; }
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -14px 14px; padding: 0 14px 4px; scrollbar-width: none; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 66%; scroll-snap-align: start; padding: 14px; }
  .kpi .val { font-size: 25px; }
  body[data-opt="2"] .kpis { margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  body[data-opt="2"] .kpi { flex: none; border-left: 0; border-top: 1px solid var(--line); }
  body[data-opt="2"] .kpi:nth-child(-n+2) { border-top: 0; }
  body[data-opt="2"] .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  body[data-opt="2"] .kpi:last-child { grid-column: span 2; }
  body[data-opt="2"] .kpi .val { font-size: 22px; margin-top: 8px; }
  .grid { display: flex; flex-direction: column; gap: 12px; }
  .grid > * { order: var(--mo); }
  .m-hide { display: none !important; }
  .donut-wrap { grid-template-columns: 120px 1fr; }
  .donut, .donut svg { width: 120px; height: 120px; }
  .ph { grid-template-columns: repeat(2, 1fr); }
  .tb th:nth-child(4), .tb td:nth-child(4) { display: none; }
  .tb th, .tb td { padding-left: 14px; padding-right: 14px; }
  .ch, .cb, .sch > li, .ap li { padding-left: 14px; padding-right: 14px; }
}

/* narrow cards: keep legend on one line */
.legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (min-width: 900px) {
  body[data-opt="2"] .donut-wrap { grid-template-columns: 116px 1fr; gap: 14px; }
  body[data-opt="2"] .donut, body[data-opt="2"] .donut svg { width: 116px; height: 116px; }
  body[data-opt="2"] .donut .mid b { font-size: 22px; }
  body[data-opt="2"] .legend li { grid-template-columns: 10px 1fr auto 34px; gap: 7px; }
}
@media (max-width: 899px) {
  .sch .stop { grid-template-columns: 60px 1fr auto; align-items: start; gap: 6px; }
  .sch .stop span { white-space: normal; }
  .sch .stop time { font-size: 12.5px; padding-top: 1px; }
}

/* option 3 on phones: all five numbers in one compact list, no swiping */
@media (max-width: 899px) {
  body[data-opt="3"] .kpis { display: block; overflow: visible; margin: 0 0 14px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
  body[data-opt="3"] .kpi { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "tile lbl val" "tile sub val"; column-gap: 12px; align-items: center; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  body[data-opt="3"] .kpi:first-child { border-top: 0; }
  body[data-opt="3"] .kpi .top { display: contents; }
  body[data-opt="3"] .kpi .tile { grid-area: tile; width: 34px; height: 34px; }
  body[data-opt="3"] .kpi .lbl { grid-area: lbl; color: var(--ink); font-size: 14px; }
  body[data-opt="3"] .kpi .sub, body[data-opt="3"] .kpi .go { grid-area: sub; font-size: 12px; }
  body[data-opt="3"] .kpi .val { grid-area: val; margin: 0; font-size: 21px; text-align: right; }
}

/* ---------- option 3: collapsible menu ---------- */
.side3 .logo { position: relative; padding-right: 34px; }
.side3 .logo .mark { display: none; height: 26px; }
.side3 .collapse { position: absolute; right: 0; top: 2px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #8fa3bb; cursor: pointer; }
.side3 .collapse:hover { background: rgba(255,255,255,.08); color: #fff; }
.side3 .collapse .ico { width: 17px; height: 17px; }
.side3 a.it .ico { width: 17px; height: 17px; opacity: .85; }
.side3 a.it.on .ico { opacity: 1; }
.side3 .chevr { margin-left: auto; display: flex; color: #6f86a5; }
.side3 .chevr .ico { width: 15px; height: 15px; }
.side3 .grp { padding-top: 14px; }
@media (min-width: 900px) {
  body[data-opt="3"] .with-side { transition: grid-template-columns .2s ease; }
  body.collapsed .with-side { grid-template-columns: 72px 1fr; }
  body.collapsed .side3 { padding: 14px 10px; overflow-x: hidden; }
  body.collapsed .side3 .logo { flex-direction: column; align-items: center; gap: 10px; padding: 2px 0 12px; }
  body.collapsed .side3 .logo .full { display: none; }
  body.collapsed .side3 .logo .mark { display: block; }
  body.collapsed .side3 .collapse { position: static; }
  body.collapsed .side3 .lbl, body.collapsed .side3 .chevr { display: none; }
  body.collapsed .side3 .grp { font-size: 0; padding: 0; height: 1px; margin: 10px 8px; background: rgba(255,255,255,.1); }
  body.collapsed .side3 .grp i { display: none; }
  body.collapsed .side3 a.it { justify-content: center; padding: 10px 0; position: relative; }
  body.collapsed .side3 a.it .ico { width: 19px; height: 19px; }
  body.collapsed .side3 a.it .n { position: absolute; top: 3px; right: 6px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; text-align: center; }
}

/* ---------- option 3: customize mode ---------- */
body[data-opt="3"] .grid { grid-auto-flow: row; }
.edit-bar, .edit-ctl { display: none; }
.is-hidden { display: none !important; }
body.editing .edit-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--sky); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(26,110,166,.12); position: sticky; top: 70px; z-index: 8; }
.eb-text { display: flex; align-items: center; gap: 12px; }
.eb-text > .ico { color: var(--blue); width: 22px; height: 22px; }
.eb-text b { display: block; font-size: 14.5px; }
.eb-text span { color: var(--muted); font-size: 13px; }
.eb-hidden { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.eb-hidden button { border: 1px dashed var(--line-2); background: var(--bg); border-radius: 99px; padding: 3px 10px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.eb-hidden button:hover { border-color: var(--blue); color: var(--blue); }
.eb-btns { margin-left: auto; display: flex; gap: 8px; }
body.editing .edit-ctl { display: inline-flex; gap: 2px; margin-left: 4px; }
.edit-ctl button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 7px; color: var(--ink-2); cursor: pointer; }
.edit-ctl button:hover { border-color: var(--blue); color: var(--blue); }
.edit-ctl button[data-hide]:hover { border-color: var(--red); color: var(--red); }
.edit-ctl .ico { width: 15px; height: 15px; }
body.editing .grid > [data-k] > .card { outline: 2px dashed #b7cfe3; outline-offset: 2px; }
body.editing .grid > [data-k] { cursor: grab; }
body.editing .grid > [data-k] .ch .handle { display: block; color: var(--sky); }
body.editing .grid > [data-k] .ch .link, body.editing .grid > [data-k] .ch .sel { display: none; }
.grid > .dragging { opacity: .45; }
.grid > .drop-before > .card { box-shadow: -4px 0 0 var(--blue), 0 -4px 0 var(--blue); }
.grid > .drop-after > .card { box-shadow: 4px 0 0 var(--blue), 0 4px 0 var(--blue); }
body[data-opt="3"] .grid > [data-k] { display: flex; flex-direction: column; }
body[data-opt="3"] .grid > [data-k] > .card { flex: 1; }

@media (max-width: 899px) {
  body[data-opt="3"] .hello .right { display: flex; }
  body[data-opt="3"] .hello .right .btn[data-customize] { display: inline-flex; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; padding: 6px 11px; font-size: 13px; }
  body.editing .edit-bar { top: 62px; padding: 10px 12px; gap: 10px; }
  .eb-text span { display: none; }
  .eb-btns { margin-left: 0; width: 100%; }
  .eb-btns .btn { flex: 1; justify-content: center; }
  body[data-opt="3"] .grid > [data-k] { order: 0; }
}
