/* Barrick Shop — demo. Barrick brand: deep brown + safety orange, steel grays. */
:root {
  --brown: #2B1A14; --brown-2: #3E261D; --brown-3: #5A382B;
  --orange: #F25C1F; --orange-2: #FF7A3D; --orange-soft: #FFE9DF;
  --steel: #3B4048; --ink: #1F1A17; --ink-2: #4D4540; --ink-3: #857A72;
  --bg: #F5F2EE; --bg-2: #ECE6E0; --card: #FFFFFF; --line: #E7E0D8;
  --ok: #1E9A5C; --ok-bg: #E2F6EB; --warn: #B76A00; --warn-bg: #FFF1DC; --bad: #D3392F; --bad-bg: #FDE8E6; --info: #1F6FB2; --info-bg: #E3F0FB;
  --r: 18px; --r-lg: 26px;
  --shadow: 0 1px 2px rgba(43,26,20,.06), 0 8px 24px -12px rgba(43,26,20,.18);
  --shadow-lg: 0 2px 4px rgba(43,26,20,.06), 0 24px 48px -20px rgba(43,26,20,.35);
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.2,1.4,.4,1);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: .01em; margin: 0; }
svg { flex: none; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 700; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--brown) 0%, #1E120D 100%); color: #EADFD8; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(242,92,31,.8); }
.brand .mark svg { width: 28px; height: 28px; color: #fff; }
.brand b { font-family: var(--head); font-size: 22px; letter-spacing: .06em; color: #fff; display: block; line-height: 1; }
.brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #C9A898; }
.nav-sec { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9C7F72; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #E6D8D0; font-weight: 500; transition: background .2s, color .2s, transform .2s; position: relative; }
.nav a svg { width: 20px; height: 20px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(242,92,31,.28), rgba(242,92,31,.08)); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav a .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.side .foot { margin-top: auto; padding-top: 14px; }
.demo-pill { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #D9C3B8; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; }
.demo-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(245,242,238,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 44px; color: var(--ink-3); cursor: text; transition: box-shadow .2s, border-color .2s; }
.search:hover { border-color: #D8CEC4; box-shadow: var(--shadow); }
.search svg { width: 18px; height: 18px; }
.search kbd { white-space: nowrap; margin-left: auto; font: 600 11px var(--body); background: var(--bg-2); border-radius: 6px; padding: 3px 7px; color: var(--ink-3); }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--ink-2); transition: transform .15s, box-shadow .2s; }
.iconbtn:hover { box-shadow: var(--shadow); } .iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dotn { position: absolute; top: 8px; right: 9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.roleswitch { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 12px; height: 44px; }
.roleswitch label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.roleswitch select { border: 0; background: var(--bg); border-radius: 10px; font-weight: 700; padding: 8px 10px; color: var(--brown); cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(150deg, var(--orange-2), var(--orange)); flex: none; }
.content { padding: 8px 28px 60px; max-width: 1400px; width: 100%; }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; gap: 16px; margin: 14px 0 20px; flex-wrap: wrap; }
.ph h1 { font-size: 38px; line-height: 1; color: var(--brown); }
.ph .sub { color: var(--ink-3); margin-top: 6px; }
.ph .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; } .crumb a { text-decoration: none; color: var(--orange); font-weight: 600; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { box-shadow: var(--shadow); } .btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(242,92,31,.9); }
.btn.primary:hover { box-shadow: 0 14px 28px -12px rgba(242,92,31,1); }
.btn.dark { background: var(--brown); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.04); box-shadow: none; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.btn.lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.busy { pointer-events: none; color: transparent !important; position: relative; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.dark).busy::after { border-color: rgba(0,0,0,.15); border-top-color: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.in { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.in:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,92,31,.14); }
textarea.in { min-height: 96px; resize: vertical; }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23857A72' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.fgrid .full { grid-column: 1 / -1; }
.seg { display: inline-flex; background: var(--bg-2); padding: 4px; border-radius: 14px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: var(--brown); box-shadow: var(--shadow); }
.toggle { position: relative; width: 50px; height: 30px; border-radius: 15px; background: #D8CEC4; border: 0; cursor: pointer; transition: background .25s; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.toggle.on { background: var(--ok); } .toggle.on::after { transform: translateX(20px); }
input[type=range] { width: 100%; accent-color: var(--orange); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--orange); }

/* ---------- cards, chips, tables ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; border: 1px solid rgba(231,224,216,.6); }
.card.flat { box-shadow: none; }
.card h3 { font-size: 22px; color: var(--brown); }
.card .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card .ch .acts { margin-left: auto; display: flex; gap: 8px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); } .chip.or { background: var(--orange-soft); color: #C2410C; } .chip.dark { background: var(--brown); color: #fff; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr.click { cursor: pointer; } .tbl tbody tr.click:hover { background: #FBF8F5; }
.tbl .r { text-align: right; }
.tblwrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.kpi { position: relative; overflow: hidden; }
.kpi .lab { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi .val { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--brown); line-height: 1.1; margin-top: 6px; }
.kpi .delta { font-size: 13px; font-weight: 700; margin-top: 4px; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--bad); }
.kpi .spark { position: absolute; right: 14px; bottom: 14px; width: 110px; height: 40px; opacity: .9; }
.kpi .ico { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.kpi .ico svg { width: 22px; height: 22px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty svg { width: 54px; height: 54px; color: #D4C6BA; margin-bottom: 10px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange-2), var(--orange)); width: 0; transition: width 1.1s var(--ease); }
.bar-fill.ok { background: linear-gradient(90deg, #4CC98A, var(--ok)); } .bar-fill.warn { background: linear-gradient(90deg, #FFC15E, #E58A00); } .bar-fill.bad { background: linear-gradient(90deg, #F27A70, var(--bad)); }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--bg-2); flex: none; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-weight: 500; }
.banner svg { width: 22px; height: 22px; flex: none; }
.banner.info { background: var(--info-bg); color: #164E80; } .banner.warn { background: var(--warn-bg); color: #8A5000; } .banner.bad { background: var(--bad-bg); color: #9B231B; } .banner.ok { background: var(--ok-bg); color: #126B40; } .banner.or { background: var(--orange-soft); color: #9A3412; }
.steps-line { display: flex; gap: 0; align-items: flex-start; overflow-x: auto; padding: 6px 0 4px; }
.step { flex: 1; min-width: 96px; text-align: center; position: relative; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.step .dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-3); position: relative; z-index: 1; transition: background .4s, color .4s, transform .4s var(--spring); }
.step .dot svg { width: 16px; height: 16px; }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--bg-2); }
.step:first-child::before { display: none; }
.step.done .dot { background: var(--ok); color: #fff; } .step.done::before { background: var(--ok); }
.step.now .dot { background: var(--orange); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(242,92,31,.18); } .step.now::before { background: var(--ok); } .step.now { color: var(--brown); }

/* ---------- modal / sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30,18,13,.45); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.overlay.out { animation: fadeout .2s ease forwards; }
.modal { background: #fff; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .35s var(--spring); }
.modal.wide { max-width: 980px; } .modal.mid { max-width: 760px; }
.overlay.out .modal { animation: popout .2s ease forwards; }
.modal .mh { display: flex; align-items: center; gap: 12px; padding: 20px 24px 6px; }
.modal .mh h2 { font-size: 28px; color: var(--brown); }
.modal .mh .x { margin-left: auto; }
.modal .mb { padding: 8px 24px 20px; overflow-y: auto; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } } @keyframes popout { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 101; box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); display: flex; flex-direction: column; animation: slidein .35s var(--ease); }
.drawer.out { animation: slideout .25s ease forwards; }
@keyframes slidein { from { transform: translateX(100%); } } @keyframes slideout { to { transform: translateX(100%); } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 600; animation: toastin .45s var(--spring); max-width: 92vw; }
.toast svg { width: 20px; height: 20px; color: #7EE2A8; }
.toast.bad svg { color: #FF9A8F; }
.toast.out { animation: toastout .3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(20px) scale(.9); } } @keyframes toastout { to { opacity: 0; transform: translateY(10px); } }

/* ---------- notifications drawer ---------- */
.note-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.note-item:hover { background: #FBF8F5; }
.note-item.unread { background: #FFF7F2; }
.note-item .ni { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.note-item .ni svg { width: 20px; height: 20px; }

/* ---------- command palette ---------- */
.palette { max-width: 640px; }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.palette .pin input { flex: 1; border: 0; font-size: 18px; outline: 0; font-family: var(--body); }
.palette .pres { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette .pr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.palette .pr.sel, .palette .pr:hover { background: var(--orange-soft); }
.palette .pr .pi { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--brown-3); }
.palette .pr .pi svg { width: 18px; height: 18px; }
.palette .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 12px 4px; font-weight: 700; }

/* ---------- tour ---------- */
.tour-ring { position: fixed; z-index: 150; border-radius: 16px; box-shadow: 0 0 0 4px var(--orange), 0 0 0 9999px rgba(30,18,13,.55); transition: all .45s var(--ease); pointer-events: none; }
.tour-tip { position: fixed; z-index: 151; background: #fff; border-radius: 20px; padding: 18px 20px; width: 340px; box-shadow: var(--shadow-lg); transition: all .45s var(--ease); }
.tour-tip h4 { font-size: 22px; color: var(--brown); margin-bottom: 6px; }
.tour-tip p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.45; }
.tour-tip.docked { border-radius: 22px; padding: 16px 18px; box-shadow: 0 -10px 40px -12px rgba(0,0,0,.45); }
.tour-tip.docked h4 { font-size: 20px; } .tour-tip.docked p { font-size: 14px; margin-bottom: 12px; }
.tour-tip.docked .btn.sm { min-height: 44px; padding: 0 16px; }

/* ---------- motion helpers ---------- */
.rise { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.chart-bar { transform-origin: bottom; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.chart-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-area { opacity: 0; animation: fadein 1s .5s ease forwards; }
@keyframes fadein { to { opacity: 1; } }
.donut-seg { transition: stroke-dasharray 1.2s var(--ease); }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.shimmer { background: linear-gradient(90deg, var(--bg-2) 0%, #F6F1EC 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- lock screen (subscription) ---------- */
.lock { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #4A2C21 0%, #1A0F0B 70%); color: #fff; padding: 20px; animation: fade .4s ease; }
.lock .box { max-width: 460px; text-align: center; }
.lock h2 { font-size: 40px; margin: 16px 0 8px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { position: relative; overflow: hidden; background: #1A0F0B; }
.login .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.06); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -2%); } }
.login .art .over { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(43,26,20,.2), rgba(26,15,11,.92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; color: #fff; }
.login .art h1 { font-size: 56px; line-height: .95; color: #fff; }
.login .art h1 em { font-style: normal; color: var(--orange); }
.login .form { display: grid; place-items: center; padding: 30px; }
.login .form .box { width: 100%; max-width: 400px; }

/* ---------- kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.lane { background: var(--bg-2); border-radius: 20px; padding: 12px; min-height: 300px; transition: background .2s, box-shadow .2s; }
.lane.over { background: #F8E3D8; box-shadow: inset 0 0 0 2px var(--orange); }
.lane .lh { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 700; color: var(--brown); }
.lane .lh .cnt { margin-left: auto; font-size: 12px; background: #fff; border-radius: 99px; padding: 2px 9px; color: var(--ink-3); }
.jcard { background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: grab; transition: transform .2s var(--ease), box-shadow .2s; border-left: 4px solid var(--orange); }
.jcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.jcard.dragging { opacity: .4; transform: rotate(2deg); }
.jcard.late { border-left-color: var(--bad); }

/* ---------- responsive ---------- */
.mob-nav { display: none; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.4); }
  .mob-nav { display: grid; }
  .top { padding: 10px 14px; } .content { padding: 4px 14px 90px; }
  .search kbd, .roleswitch label { display: none; }
  .top { gap: 8px; }
  .search { flex: 0 0 44px; width: 44px; padding: 0; justify-content: center; }
  .search > span { display: none; }
  .roleswitch { padding: 4px; min-width: 0; flex: 1 1 auto; max-width: 170px; }
  .roleswitch select { width: 100%; min-width: 0; }
  .top > .grow { display: none; }
  .top .avatar { display: none; }
  html, body { overflow-x: clip; }
  .docpaper { padding: 18px 14px !important; overflow-x: auto; }
  .docpaper table { min-width: 0; }
  .dochead > div:last-child { text-align: left !important; flex-basis: 100%; }
  .modal .mf > .muted { display: none; }
  .overlay { padding: 10px; } .modal .mb { padding: 8px 16px 18px; } .modal .mh { padding: 16px 16px 4px; } .modal .mf { padding: 12px 16px 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .ph h1 { font-size: 30px; }
  .login { grid-template-columns: 1fr; } .login .art { min-height: 0; } .login .art h1 { font-size: 36px; } .login .art .over { position: relative; padding: 28px 22px 26px; } .login .art .over p { font-size: 15px !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  .side, .top, .toasts, .overlay .mh .x, .modal .mf, .no-print { display: none !important; }
  .overlay { position: static; background: none; backdrop-filter: none; padding: 0; display: block; }
  .modal { box-shadow: none; max-height: none; max-width: none; border-radius: 0; }
  .shell { display: block; } .content { padding: 0; }
  body.printing #app { display: none; }
}
