/* ProjectHub stylesheet */
:root {
  --bg: #f6f7f9; --card: #fff; --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e2e8f0; --line2: #cbd5e1;
  --side: #0f172a; --side2: #1e293b; --side-ink: #cbd5e1;
  --brand: #0f766e; --brand2: #115e59; --blue: #2563eb; --green: #059669; --amber: #d97706; --red: #dc2626;
  --green-bg: #ecfdf5; --amber-bg: #fffbeb; --red-bg: #fef2f2; --blue-bg: #eff6ff;
  --r: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 12px; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.ic { flex: none; vertical-align: -3px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* shell */
.shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--side) 240px, var(--bg) 240px); }
@media (max-width: 760px) { .shell { background: var(--bg); } }
.side { width: 240px; flex: none; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; }
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand small { display: block; color: #94a3b8; font-size: 11px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.bell { margin-left: auto; color: #94a3b8; position: relative; padding: 6px; border-radius: 8px; }
.bell:hover { background: var(--side2); color: #fff; text-decoration: none; }
.bell b { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 5px; }
.side nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); }
.side nav a:hover { background: var(--side2); color: #fff; text-decoration: none; }
.side nav a.on { background: var(--side2); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.me { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--side2); color: var(--side-ink); }
.me:hover { background: var(--side2); text-decoration: none; }
.me strong { display: block; color: #fff; font-weight: 600; font-size: 13px; }
.me small { color: #94a3b8; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.content { padding: 24px 28px 48px; max-width: 1400px; }

/* page */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card > h3:first-child { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
a.stat:hover { border-color: var(--line2); text-decoration: none; }
.stat.red .n { color: var(--red); } .stat.green .n { color: var(--green); } .stat.blue .n { color: var(--blue); } .stat.amber .n { color: var(--amber); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1e293b; }
.btn.danger { color: var(--red); border-color: #fecaca; }
.btn.danger:hover { background: var(--red-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #f1f5f9; }
.btn.sm { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.btn.icon { padding: 5px; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[disabled], fieldset[disabled] .btn { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] .ro-hide { display: none !important; }

/* forms */
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line2); border-radius: 7px; padding: 7px 9px; background: #fff; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
input[disabled], select[disabled], textarea[disabled] { background: #f8fafc; color: var(--ink2); }
textarea { min-height: 70px; resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.row-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.row-form label { flex: 1 1 150px; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-input label { flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; font-weight: 500; cursor: pointer; background: #fff; }
.chips-input label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-input input { display: none; }
.reldate { display: inline-flex; gap: 4px; align-items: center; width: 100%; }
.reldate .rd-mode { width: 70px; flex: none; padding: 7px 4px; }
.reldate .rd-rel { display: inline-flex; gap: 4px; flex: 1; }
.reldate .rd-rel[hidden] { display: none; }
.reldate .rd-rel input { width: 64px; }
div.req::after { content: " *"; color: var(--red); }
.rq { color: var(--red); font-weight: 600; }

/* switches */
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; }
.switch input { display: none; }
.switch i { width: 30px; height: 17px; border-radius: 10px; background: var(--line2); position: relative; transition: .15s; flex: none; }
.switch i::after { content: ""; position: absolute; width: 13px; height: 13px; top: 2px; left: 2px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { left: 15px; }

/* tables and lists */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.t input, .t select { padding: 5px 7px; }
.t .delay-row td { background: var(--red-bg); }
.t .sub-row > td { background: #f8fafc; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: #f8fafc; text-decoration: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .t2 { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .col { color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .w120 { width: 120px; } .list-row .w160 { width: 160px; } .list-row .w200 { width: 200px; }
.list-row > .ic:last-child { color: var(--muted); }

/* pills and chips */
.pill { --c: #94a3b8; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 75%, #000); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: var(--ink2); white-space: nowrap; }
.chip.red { background: var(--red-bg); color: var(--red); } .chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.green { background: var(--green-bg); color: var(--green); } .chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.dark { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; color: var(--ink2); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.side .av { background: var(--side2); color: #fff; }
.av.lg { width: 48px; height: 48px; font-size: 18px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.dot.green { background: var(--green); } .dot.red { background: var(--red); } .dot.blue { background: var(--blue); }

/* messages */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--green-bg); color: #065f46; border: 1px solid #a7f3d0; }
.flash.err { background: var(--red-bg); color: #991b1b; border-color: #fecaca; }
.flash.warn { background: var(--amber-bg); color: #92400e; border-color: #fde68a; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--blue-bg); color: #1e3a8a; border: 1px solid #bfdbfe; margin-bottom: 14px; }
.notice.err { background: var(--red-bg); color: #991b1b; border-color: #fecaca; }
.notice.warn { background: var(--amber-bg); color: #92400e; border-color: #fde68a; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.empty.small { padding: 18px; font-size: 13px; }
.locked { text-align: center; padding: 60px 20px; color: var(--ink2); }
.lock-icon { width: 54px; height: 54px; border-radius: 50%; background: #f1f5f9; display: inline-grid; place-items: center; margin-bottom: 10px; }
.hidden-section { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.seg { display: inline-flex; background: #e2e8f0; border-radius: 8px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 6px; color: var(--ink2); font-weight: 600; font-size: 13px; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg a:hover { text-decoration: none; }

/* toolbar */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 380px; }
.toolbar .search .ic { position: absolute; left: 9px; top: 9px; color: var(--muted); }
.toolbar .search input { padding-left: 32px; }
.toolbar select { width: auto; }
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop .pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 14px; width: 280px; display: flex; flex-direction: column; gap: 10px; }
details.pop.left .pop-body { left: 0; right: auto; }
.badge { background: var(--brand); color: #fff; border-radius: 9px; font-size: 10px; padding: 0 6px; }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut .d-n { font-size: 22px; font-weight: 700; fill: var(--ink); }
.donut .d-l { font-size: 10px; fill: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; flex: 1; min-width: 150px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; }

/* pipeline */
.pipeline { display: flex; align-items: center; overflow-x: auto; padding: 6px 2px 10px; gap: 0; }
.pipeline a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 104px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.pipeline a:hover { text-decoration: none; color: var(--ink); }
.pipeline .n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); background: #fff; display: grid; place-items: center; color: var(--ink2); }
.pipeline .done .n { background: var(--green); border-color: var(--green); color: #fff; }
.pipeline .cur .n { border-color: var(--ink); background: var(--ink); color: #fff; }
.pipeline .sel { color: var(--ink); }
.pipeline .sel .n { box-shadow: 0 0 0 4px #ccfbf1; }
.pipeline .bar { flex: 1; min-width: 18px; height: 2px; background: var(--line2); margin-top: -22px; }
.pipeline .bar.done { background: var(--green); }

/* kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kcol { flex: 0 0 270px; background: #eef1f5; border-radius: 10px; padding: 10px; }
.kcol h4 { margin: 2px 4px 10px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.kcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; color: var(--ink); box-shadow: var(--shadow); }
.kcard:hover { border-color: var(--line2); text-decoration: none; }
.kcard b { display: block; margin-bottom: 4px; }
.kcard span { display: block; font-size: 12px; color: var(--muted); }

/* gantt */
.gantt { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.g-row { display: flex; border-bottom: 1px solid var(--line); min-height: 34px; align-items: center; }
.g-row:last-child { border-bottom: 0; }
.g-name { width: 220px; flex: none; padding: 6px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; border-right: 1px solid var(--line); }
.g-track { flex: 1; position: relative; height: 34px; }
.g-mark { position: absolute; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 3px; }
.g-mark.plan { border: 2px solid var(--muted); background: #fff; transform: rotate(45deg); }
.g-mark.act { background: var(--blue); border-radius: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; }
.g-link { position: absolute; top: 16px; height: 2px; background: var(--line2); }
.g-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--red); opacity: .5; }
.g-head { background: #f8fafc; font-size: 11px; color: var(--muted); }
.g-head .g-track { height: 26px; }
.g-head .g-track span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }

/* progress */
.bar-outer { height: 8px; background: #e2e8f0; border-radius: 6px; overflow: hidden; }
.bar-inner { height: 100%; background: var(--brand); border-radius: 6px; }
.bar-inner.red { background: var(--red); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 11px; color: var(--muted); text-align: center; padding: 4px; font-weight: 600; }
.cal a, .cal span.blank { min-height: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; color: var(--ink); display: flex; flex-direction: column; font-size: 12px; }
.cal span.blank { background: transparent; border-color: transparent; }
.cal a:hover { border-color: var(--line2); text-decoration: none; }
.cal a.today { border-color: var(--brand); }
.cal a.sel { background: var(--ink); color: #fff; }
.cal a .cnt { margin-top: auto; font-size: 11px; color: var(--brand); font-weight: 600; }
.cal a.sel .cnt { color: #99f6e4; }

/* misc */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats small { color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f8fafc; position: relative; }
.photo img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo .cap { padding: 6px 8px; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.cred { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cred .pw { font-family: Consolas, monospace; }
.media-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.media h4 { margin: 0 0 8px; font-size: 13px; }
.tag-x { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 12px; margin: 0 4px 4px 0; }
.tag-x button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; line-height: 1; }
.sugg { border: 1px dashed var(--line2); background: #fff; border-radius: 6px; font-size: 11px; padding: 2px 7px; cursor: pointer; margin: 0 4px 4px 0; color: var(--ink2); }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif.unread { background: #f0fdfa; }
.notif .ic { color: var(--muted); margin-top: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; align-items: center; }
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, 94vw); box-shadow: 0 25px 60px rgba(15, 23, 42, .3); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { margin: 0; }
dialog .dlg-body { padding: 18px; }
.warn-banner { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; margin-bottom: 12px; font-size: 13px; }
.warn-banner.red { background: var(--red-bg); color: #991b1b; border-color: #fecaca; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.ro-badge { background: #fef3c7; color: #92400e; }

/* auth */
body.auth { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(160deg, #0f172a, #134e4a); padding: 20px; }
.auth-card { background: #fff; border-radius: 14px; padding: 28px; width: min(400px, 100%); box-shadow: 0 25px 60px rgba(0, 0, 0, .3); }
.brand.big { padding: 0 0 20px; }
.brand.big strong { color: var(--ink); font-size: 18px; }
.brand.big small { color: var(--muted); }

/* responsive */
@media (max-width: 1100px) {
  .hide-lg { display: none !important; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hide-md { display: none !important; }
}
@media (max-width: 760px) {
  .side { position: fixed; left: -260px; z-index: 50; transition: left .2s; }
  .side.open { left: 0; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 40; }
  .menu-btn { background: none; border: 0; color: #fff; padding: 4px; }
  .content { padding: 16px; }
  .g-name { width: 130px; }
  .dl { grid-template-columns: 110px 1fr; }
}
@media print {
  .side, .topbar, .btn, .ro-hide { display: none !important; }
  .content { padding: 0; }
}
