/* PRIMIA Documents — brand: Pantone 2287 (#47C820) + Pantone 7540 (#5B5D62), Century Gothic / Cairo */
:root {
  --green: #47C820;
  --green-d: #36a315;
  --green-soft: #eaf8e4;
  --char: #5B5D62;
  --char-d: #45474b;
  --char-dd: #393a3e;
  --ink: #26272a;
  --muted: #74767c;
  --line: #e3e4e6;
  --bg: #f3f4f4;
  --card: #ffffff;
  --red: #d64545;
  --red-soft: #fbeaea;
  --amber: #c98a00;
  --amber-soft: #fdf3dc;
  --blue: #3b7dd8;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 31, 34, .06), 0 2px 8px rgba(30, 31, 34, .04);
  --font: "Century Gothic", CenturyGothic, "Questrial", AppleGothic, "Cairo", Arial, sans-serif;
  --font-ar: "Cairo", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[lang="ar"], .ar { font-family: var(--font-ar); direction: rtl; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: .01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--char); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side::after { /* brand complementary lattice */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none; opacity: .22;
  background-image: url("lattice.svg"); background-size: 140px auto; background-repeat: repeat-x; background-position: left bottom;
}
.side-brand { padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand img { width: 150px; display: block; }
.side-brand .sub { font-size: 10px; letter-spacing: .32em; color: var(--green); margin-top: 8px; text-transform: uppercase; }
.side nav { padding: 14px 10px; overflow-y: auto; flex: 1; position: relative; z-index: 1; }
.side .nav-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 14px 12px 6px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 5px; color: rgba(255,255,255,.86); text-decoration: none; font-size: 13.5px; }
.side a.nav:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.nav.active { background: rgba(71,200,32,.16); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.side a.nav .ic { color: rgba(255,255,255,.6); width: 17px; height: 17px; }
.side a.nav.active .ic { color: var(--green); }
.side a.nav .count { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.5); }
.side a.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 6px; }
.side-foot { padding: 12px 16px; font-size: 11px; color: rgba(255,255,255,.45); position: relative; z-index: 1; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 62px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.top .menu-btn { display: none; }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px 0 38px; background: var(--bg); font: inherit; }
.search input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(71,200,32,.15); }
.search .ic { position: absolute; left: 13px; top: 10px; color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 22px; cursor: pointer; border: 1px solid transparent; background: none; font: inherit; color: inherit; }
.user-chip:hover { border-color: var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--char); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-chip .role { font-size: 11px; color: var(--muted); display: block; line-height: 1.1; }
.content { padding: 26px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.page-head .crumbs a { text-decoration: none; }
.page-head .crumbs a:hover { color: var(--green-d); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- dropdown ---------- */
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 230px; padding: 6px; z-index: 50; display: none; }
.dd.open .dd-menu { display: block; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 4px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--bg); }
.dd-menu .ic { color: var(--char); }
.dd-menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.dd-menu .hint { display: block; font-size: 11px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 5px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfd1d4; background: #fafafa; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }
.btn-dark { background: var(--char); border-color: var(--char); color: #fff; }
.btn-dark:hover { background: var(--char-d); border-color: var(--char-d); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: #f0c4c4; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-add { height: 38px; padding: 0 16px; border-radius: 20px; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 5px; border: 1px solid transparent; background: none; color: var(--char); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--bg); border-color: var(--line); }
form.inline { display: inline; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1.6fr 1fr; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--char); }
.stat.expired::before { background: var(--red); }
.stat.soon::before { background: var(--amber); }
.stat.valid::before { background: var(--green); }
.stat.none::before { background: #b9bbbf; }
.stat .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .label .ic { width: 15px; height: 15px; }
.stat .value { font-size: 32px; font-weight: 700; line-height: 1.15; margin-top: 6px; }
.stat.expired .value { color: var(--red); }
.stat.soon .value { color: var(--amber); }
.stat.valid .value { color: var(--green-d); }
.stat .foot { font-size: 12px; color: var(--muted); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-expired { background: var(--red-soft); color: var(--red); }
.badge-soon { background: var(--amber-soft); color: var(--amber); }
.badge-valid { background: var(--green-soft); color: var(--green-d); }
.badge-none { background: #eeeff0; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px; background: var(--bg); color: var(--char); border: 1px solid var(--line); }
.tag-role-admin { background: var(--char); color: #fff; border-color: var(--char); }
.tag-role-editor { background: var(--green-soft); color: var(--green-d); border-color: #cdeec0; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafa; white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: #fafbfa; }
table.t .title-cell a { font-weight: 700; text-decoration: none; }
table.t .title-cell a:hover { color: var(--green-d); }
table.t .sub { font-size: 12px; color: var(--muted); }
table.t td.actions { text-align: right; white-space: nowrap; }
.row-expired td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-soon td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; color: #c3c5c8; display: block; margin: 0 auto 10px; }

/* file type chip */
.ftype { display: inline-grid; place-items: center; width: 34px; height: 40px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-size: 9.5px; font-weight: 700; color: var(--char); flex: none; position: relative; }
.ftype.pdf { background: #fdeeee; border-color: #f4cccc; color: #c43b3b; }
.ftype.img { background: #eaf2fd; border-color: #c9dcf6; color: var(--blue); }
.doc-line { display: flex; align-items: center; gap: 12px; }

/* sections grid */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.section-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .12s, box-shadow .12s; }
.section-tile:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(71,200,32,.12); }
.section-tile .sic { width: 40px; height: 40px; border-radius: 8px; background: var(--char); color: var(--green); display: grid; place-items: center; flex: none; }
.section-tile .sic .ic { width: 20px; height: 20px; }
.section-tile b { display: block; font-size: 13.5px; line-height: 1.3; }
.section-tile span { font-size: 12px; color: var(--muted); }
.section-tile .warn { color: var(--red); font-weight: 700; }

/* list rows (attention) */
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.alist li:last-child { border-bottom: 0; }
.alist .when { margin-left: auto; text-align: right; }
.alist a { text-decoration: none; font-weight: 700; }
.alist a:hover { color: var(--green-d); }
.daybox { width: 58px; text-align: center; border-radius: 6px; padding: 4px 0; flex: none; }
.daybox b { display: block; font-size: 17px; line-height: 1.1; }
.daybox span { font-size: 9px; white-space: nowrap; display: block; text-transform: uppercase; letter-spacing: .1em; }
.daybox.expired { background: var(--red-soft); color: var(--red); }
.daybox.soon { background: var(--amber-soft); color: var(--amber); }
.daybox.valid { background: var(--green-soft); color: var(--green-d); }

/* document page */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.viewer { background: #525659; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: calc(100vh - 190px); min-height: 520px; display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--char-dd); color: #fff; font-size: 12.5px; }
.viewer-bar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar a { color: #fff; margin-left: auto; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; opacity: .85; }
.viewer-bar a:hover { opacity: 1; }
.viewer iframe, .viewer .img-wrap { flex: 1; width: 100%; border: 0; background: #525659; }
.viewer .img-wrap { overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 20px; }
.viewer .img-wrap img { max-width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,.3); background: #fff; }
.viewer .noprev { flex: 1; display: grid; place-items: center; color: #ddd; text-align: center; padding: 30px; }
.meta { list-style: none; margin: 0; padding: 0; }
.meta li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.meta li:last-child { border-bottom: 0; }
.meta li > span:first-child { color: var(--muted); flex: none; }
.meta li > span:last-child { text-align: right; word-break: break-word; }
.expiry-hero { padding: 18px; border-radius: var(--radius); margin-bottom: 14px; }
.expiry-hero.expired { background: var(--red-soft); }
.expiry-hero.soon { background: var(--amber-soft); }
.expiry-hero.valid { background: var(--green-soft); }
.expiry-hero.none { background: var(--bg); }
.expiry-hero .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.expiry-hero .d { font-size: 22px; font-weight: 700; margin: 2px 0; }
.expiry-hero .h { font-size: 12px; color: var(--muted); }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.versions li:last-child { border-bottom: 0; }
.versions li.viewing { background: #f7fcf5; }
.versions .vno { font-weight: 700; font-size: 12px; background: var(--char); color: #fff; border-radius: 3px; padding: 1px 6px; flex: none; margin-top: 2px; }
.versions .vno.cur { background: var(--green); }
.versions .vbody { flex: 1; min-width: 0; }
.versions .vbody a.vname { font-weight: 700; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versions .vbody a.vname:hover { color: var(--green-d); }
.versions .vact { display: flex; gap: 2px; flex-wrap: wrap; }

/* forms */
.form { max-width: 860px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; color: var(--char-d); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, select.input, textarea.input { width: 100%; height: 40px; border: 1px solid #d6d7da; border-radius: 5px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(71,200,32,.15); }
.input[disabled] { background: var(--bg); color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); }
.form-section { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-d); font-weight: 700; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.drop { border: 2px dashed #cfd1d4; border-radius: 8px; padding: 26px; text-align: center; background: #fafbfa; cursor: pointer; transition: border-color .12s, background .12s; position: relative; }
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ic { width: 30px; height: 30px; color: var(--green); }
.drop .fname { font-weight: 700; margin-top: 6px; }
.cat-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafafa; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; margin: 0; color: var(--char); }
.icon-pick input { display: none; }
.icon-pick input:checked + label { border-color: var(--green); background: var(--green-soft); color: var(--green-d); }

/* alerts */
.flashes { margin-bottom: 18px; display: grid; gap: 8px; }
.alert { padding: 11px 14px; border-radius: 5px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.alert-success { background: var(--green-soft); border-color: #c8ebbb; color: #276b12; }
.alert-error { background: var(--red-soft); border-color: #f1c6c6; color: #a12f2f; }
.alert-info { background: #edf4fd; border-color: #cddff6; color: #2a5d9f; }
.alert ul { margin: 0; padding-left: 18px; }
.callout { padding: 14px 16px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.callout code, code { background: #eceded; padding: 1px 5px; border-radius: 3px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; font-size: 12.5px; background: #fff; }
.pill:hover { border-color: #cfd1d4; }
.pill.on { background: var(--char); border-color: var(--char); color: #fff; }
.pill .n { font-size: 11px; opacity: .7; }

/* auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--char); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #fff; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: url("lattice.svg"); background-size: 260px auto; opacity: .18; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art img { width: 260px; }
.auth-art h1 { font-size: 34px; font-weight: 400; line-height: 1.2; max-width: 440px; }
.auth-art h1 b { color: var(--green); font-weight: 700; }
.auth-art p { color: rgba(255,255,255,.7); max-width: 420px; }
.auth-art .ar { font-size: 18px; color: rgba(255,255,255,.8); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 22px; margin-bottom: 4px; }
.auth-form .lead { color: var(--muted); margin: 0 0 26px; }
.auth-form .btn-primary { width: 100%; height: 44px; justify-content: center; font-size: 14px; }
.auth-foot { margin-top: 30px; font-size: 12px; color: var(--muted); text-align: center; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; font-size: 12.5px; }
.checks li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.checks .ok { color: var(--green-d); }
.checks .bad { color: var(--red); }


/* sharing */
.share-pick { max-height: calc(100vh - 260px); overflow-y: auto; }
.share-group { border-bottom: 1px solid var(--line); }
.share-group-head { padding: 10px 16px; background: #fafafa; position: sticky; top: 0; z-index: 1; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 30px; cursor: pointer; font-size: 13.5px; }
.share-row:hover { background: var(--green-soft); }
.share-row input, .cb { width: 16px; height: 16px; accent-color: var(--green); flex: none; cursor: pointer; }
.share-row .grow { flex: 1; min-width: 0; }
.share-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 14px; background: var(--green-soft); border-bottom: 1px solid #cdeec0; }
.copy-box { display: flex; gap: 8px; }
.copy-box .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.share-page { background: var(--bg); }
.share-top { background: var(--char); padding: 18px 24px; border-bottom: 4px solid var(--green); }
.share-top img { height: 34px; display: block; }
.share-main { max-width: 760px; margin: 0 auto; padding: 32px 16px; }
.share-main h1 { margin-bottom: 4px; }
.share-main .alist .when { display: flex; gap: 6px; }
@media (max-width: 600px) { .share-main .alist li { flex-wrap: wrap; } .share-main .alist .when { margin-left: 46px; } .copy-box { flex-direction: column; } }

/* responsive */
@media (max-width: 1150px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  .viewer { height: 70vh; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .top { padding: 0 14px; gap: 8px; }
  .top .menu-btn { display: inline-grid; }
  .user-chip .who { display: none; }
  .btn-add .lbl { display: none; }
  .btn-add { padding: 0 11px; }
  .content { padding: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form .row, .form .row-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; min-height: 0; }
  .auth-art h1 { font-size: 24px; margin: 18px 0 6px; }
  .auth-art img { width: 180px; }
  .hide-sm { display: none; }
  table.t th, table.t td { padding: 10px; }
}
@media print {
  .side, .top, .actions, .btn { display: none !important; }
  .shell { display: block; }
}
