/*
 * Bishop Workspace design system.
 * Source of truth: https://bishop-solutions.com/site/site.css  (variables --gold #ffcc00, --gold-2 #ffdf5e, --gold-d #c9a100,
 * --ink #07070b, --ink-2 #0e0f16, --ink-3 #161823, --surface #0d0e15, --surface-2 #12131c, --paper #f6f5f1, --text #1a1b22,
 * --muted #6b6e7c, --tx #e6e7ee, --mut #9a9db0, --line rgba(255,255,255,.09)), fonts Raleway (Latin) + Tajawal (Arabic),
 * pill buttons at weight 700, and the "checkmate" motif (gold/ink checker band, faint checkerboard, spotlit bishop).
 * Tokens marked "derived" are not on the site: they are neutral mixes of the official values (light-mode borders, status colours).
 * Components never hard-code a hex; change a token here and everything follows.
 */
@font-face { font-family: Raleway; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/raleway-latin-500.woff2') format('woff2'); }
@font-face { font-family: Raleway; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/raleway-latin-700.woff2') format('woff2'); }
@font-face { font-family: Raleway; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/raleway-latin-800.woff2') format('woff2'); }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/tajawal-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/tajawal-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/tajawal-arabic-500.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/tajawal-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: Tajawal; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/tajawal-arabic-800.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

:root {
  /* official */
  --gold: #ffcc00; --gold-2: #ffdf5e; --gold-d: #c9a100; --on-gold: #111111; --gold-rgb: 255, 204, 0;
  --ink: #07070b; --ink-2: #0e0f16; --ink-3: #161823; --paper: #f6f5f1;
  --font: 'Raleway', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* the shell (sidebar) is ink in both themes, exactly like the site's dark sections */
  --shell-bg: var(--ink-2); --shell-text: #b9bccb; --shell-line: rgba(255,255,255,.09);

  /* light theme (default) */
  --bg-page: var(--paper); --bg-surface: #ffffff; --bg-subtle: #eeece5; --bg-hover: rgba(7,7,11,.05);
  --border: #e4e1d7; --border-strong: #cfcbbd;                                  /* derived from --paper */
  --text: #1a1b22; --text-2: #484a57; --text-muted: #6b6e7c;
  --accent-text: #8a6d00;                                                        /* derived: --gold-d darkened for AA contrast on white */
  --link: #1a1b22;
  --success: #12805c; --danger: #c2303f; --warning: #8a6d00;                     /* derived, restrained */
  --radius: 12px; --radius-lg: 16px; --sidebar-w: 224px; --topbar-h: 54px; --bottom-h: 60px;
  --shadow: 0 1px 2px rgba(7,7,11,.06), 0 10px 28px -12px rgba(7,7,11,.18);
  --checker: conic-gradient(var(--gold) 25%, var(--ink) 0 50%, var(--gold) 0 75%, var(--ink) 0) 0 0 / 28px 28px;
  --checker-faint: conic-gradient(rgba(7,7,11,.045) 25%, transparent 0 50%, rgba(7,7,11,.045) 0 75%, transparent 0) 0 0 / 44px 44px;
}
[data-theme="dark"] {
  --bg-page: var(--ink); --bg-surface: #0d0e15; --bg-subtle: #12131c; --bg-hover: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.18);
  --text: #e6e7ee; --text-2: #c3c5d2; --text-muted: #9a9db0;
  --accent-text: var(--gold); --link: var(--gold);
  --success: #3ddc97; --danger: #ff6b78; --warning: var(--gold);
  --shell-bg: #0a0a10;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 14px 34px -14px rgba(0,0,0,.7);
  --checker-faint: conic-gradient(rgba(255,255,255,.04) 25%, transparent 0 50%, rgba(255,255,255,.04) 0 75%, transparent 0) 0 0 / 44px 44px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-page); color: var(--text); font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums; --bs-body-bg: var(--bg-page); --bs-body-color: var(--text); --bs-border-color: var(--border); --bs-body-font-family: var(--font);
}
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 800; letter-spacing: -.01em; }
b, strong, th, .fw-semibold { font-weight: 700 !important; }
.text-muted, .text-body-secondary { color: var(--text-muted) !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(var(--gold-rgb), .35); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .5rem 1rem; z-index: 2000; font-weight: 700; } .skip-link:focus { left: 8px; top: 8px; }
.checker-band { height: 10px; background: var(--checker); background-size: 20px 20px; }

/* ---------- shell ---------- */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--shell-bg); color: var(--shell-text); display: flex; flex-direction: column; z-index: 1030; overflow-y: auto; border-right: 1px solid var(--shell-line); }
.app-sidebar .brand { display: block; padding: 1.1rem 1.1rem .9rem; }
.app-sidebar .brand img { display: block; width: 138px; height: auto; }
.app-sidebar .brand small { display: block; margin-top: .55rem; color: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.app-sidebar nav { padding: .2rem .6rem 1rem; flex: 1; }
.app-sidebar .nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #7e8196; padding: 1rem .65rem .35rem; font-weight: 800; }
.app-sidebar a.nav-item { display: flex; align-items: center; gap: .65rem; padding: .42rem .65rem; border-radius: 9px; color: var(--shell-text); text-decoration: none; font-size: 13.5px; position: relative; font-weight: 600; }
.app-sidebar a.nav-item i { font-size: 1.02rem; opacity: .85; }
.app-sidebar a.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-sidebar a.nav-item.active { background: rgba(var(--gold-rgb), .12); color: var(--gold); }
.app-sidebar a.nav-item.active::before { content: ''; position: absolute; left: -.6rem; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.app-sidebar a.nav-item .badge { margin-left: auto; }
.app-sidebar .checker-band { opacity: .9; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 1020; height: var(--topbar-h); display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem; background: color-mix(in srgb, var(--bg-surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.app-content { padding: 1.1rem 1.35rem 2.2rem; flex: 1; max-width: 1520px; width: 100%; min-width: 0; }
.global-search { position: relative; flex: 1; max-width: 460px; }
.global-search input { background: var(--bg-subtle); border-color: transparent; padding-left: 2.1rem; height: 36px; border-radius: 999px; }
.global-search input:focus { background: var(--bg-surface); }
.global-search .bi-search { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-results { position: absolute; top: 42px; left: 0; right: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; display: none; z-index: 1040; }
.search-results.show { display: block; }
.search-results .grp { font-size: 10.5px; text-transform: uppercase; color: var(--accent-text); padding: .6rem .9rem .2rem; letter-spacing: .12em; font-weight: 800; }
.search-results a { display: block; padding: .38rem .9rem; color: var(--text); text-decoration: none; } .search-results a:hover, .search-results a:focus { background: var(--bg-hover); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn .dot { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: var(--on-gold); font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 800; }
.work-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .75rem; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12.5px; background: var(--bg-surface); color: var(--text); cursor: pointer; font-weight: 700; }
.work-pill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.work-pill.working { border-color: rgba(var(--gold-rgb), .6); } .work-pill.working .led { background: var(--success); box-shadow: 0 0 0 3px rgba(61,220,151,.22); } .work-pill.on_break .led { background: var(--gold); }
.timer-bar { display: none; align-items: center; gap: .6rem; background: var(--gold); color: var(--on-gold); padding: .32rem 1.1rem; font-size: 13px; font-weight: 800; }
.timer-bar.show { display: flex; } .timer-bar .tt { margin-left: auto; font-variant-numeric: tabular-nums; }
.timer-bar button { background: rgba(0,0,0,.14); border: 0; color: inherit; border-radius: 999px; padding: .1rem .6rem; }

/* ---------- page + components ---------- */
.page-head { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; line-height: 1.15; display: flex; align-items: center; gap: .6rem; }
.page-head h1::before { content: ''; width: 10px; height: 22px; border-radius: 3px; background: var(--checker); background-size: 10px 10px; flex: none; }
.page-head .text-muted { font-size: 12.5px; margin-top: .15rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-h { display: flex; align-items: center; padding: .6rem .95rem; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13px; gap: .5rem; letter-spacing: .01em; }
.panel-h .more { margin-left: auto; font-weight: 600; font-size: 12.5px; }
.panel-b { padding: .8rem .95rem; }

.btn { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .9rem; --bs-btn-font-size: .85rem; --bs-btn-font-weight: 700; --bs-btn-border-radius: 999px; border-radius: 999px; font-weight: 700; }
.btn-sm { --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8rem; }
.btn-primary { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: var(--on-gold); --bs-btn-hover-bg: var(--gold-2); --bs-btn-hover-border-color: var(--gold-2); --bs-btn-hover-color: #000; --bs-btn-active-bg: var(--gold-2); --bs-btn-active-border-color: var(--gold-2); --bs-btn-active-color: #000; --bs-btn-disabled-bg: var(--gold); --bs-btn-disabled-border-color: var(--gold); --bs-btn-disabled-color: var(--on-gold); box-shadow: 0 6px 18px -10px rgba(var(--gold-rgb), .9); }
.btn-outline-secondary { --bs-btn-color: var(--text); --bs-btn-border-color: var(--border-strong); --bs-btn-hover-bg: var(--bg-hover); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: var(--text-muted); --bs-btn-active-bg: var(--bg-hover); --bs-btn-active-color: var(--text); --bs-btn-active-border-color: var(--text-muted); }
.btn-ghost { background: transparent; border: 0; color: var(--text-2); } .btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.form-control, .form-select { background-color: var(--bg-surface); color: var(--text); border-color: var(--border-strong); font-size: 13.5px; border-radius: 10px; font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--gold-d); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .25); background-color: var(--bg-surface); color: var(--text); }
.form-control::placeholder { color: var(--text-muted); opacity: .8; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold-d); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .25); border-color: var(--gold-d); }
.form-label { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: .22rem; letter-spacing: .01em; }
.form-text { font-size: 12px; }
.ts-control { border-color: var(--border-strong); background: var(--bg-surface); color: var(--text); font-size: 13.5px; border-radius: 10px; }
.ts-dropdown { background: var(--bg-surface); color: var(--text); border-color: var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); } .ts-dropdown .active { background: var(--bg-hover); color: var(--text); } .ts-control input { color: var(--text); }
.ts-wrapper.multi .ts-control > div { background: var(--bg-subtle); color: var(--text); border-radius: 999px; }
.dropdown-menu { --bs-dropdown-bg: var(--bg-surface); --bs-dropdown-color: var(--text); --bs-dropdown-border-color: var(--border); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--bg-hover); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-active-bg: rgba(var(--gold-rgb), .2); --bs-dropdown-link-active-color: var(--text); --bs-dropdown-divider-bg: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem; font-size: 13.5px; font-weight: 600; }
.dropdown-item { border-radius: 8px; padding: .38rem .7rem; }
.modal-content { background: var(--bg-surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--border); } .modal-title { font-weight: 800; }
.btn-close { filter: none; opacity: .6; } [data-theme="dark"] .btn-close { filter: invert(1) grayscale(1); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); margin: 0; font-size: 13.5px; }
.table.compact > :not(caption) > * > * { padding: .42rem .75rem; }
.table thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 800 !important; border-bottom-color: var(--border-strong); white-space: nowrap; background: transparent; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: var(--bg-hover); --bs-table-hover-color: var(--text); }
.row-click { cursor: pointer; }
.badge-soft { display: inline-block; font-size: 11px; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; background: var(--bg-subtle); color: var(--text-2); white-space: nowrap; letter-spacing: .02em; }
.badge-soft.s-in_progress, .badge-soft.s-on_hold, .badge-soft.s-at_risk, .badge-soft.s-high, .badge-soft.s-pending, .badge-soft.s-waiting, .badge-soft.s-clarification, .badge-soft.s-important, .badge-soft.s-requested { background: rgba(var(--gold-rgb), .2); color: var(--accent-text); }
.badge-soft.s-in_review { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
.badge-soft.s-done, .badge-soft.s-on_track, .badge-soft.s-approved, .badge-soft.s-closed, .badge-soft.s-resolved, .badge-soft.s-granted, .badge-soft.s-active { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge-soft.s-blocked, .badge-soft.s-delayed, .badge-soft.s-rejected, .badge-soft.s-urgent, .badge-soft.s-expired { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
img.avatar { object-fit: cover; background: var(--ink-3); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.progress { height: 6px; background: var(--bg-subtle); border-radius: 999px; } .progress-bar { background: var(--gold); border-radius: 999px; }
.empty { text-align: center; color: var(--text-muted); padding: 2.2rem 1rem; font-weight: 600; }
.empty i { display: flex; margin-left: auto; margin-right: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(var(--gold-rgb), .14); color: var(--accent-text); font-size: 1.25rem; margin-bottom: .55rem; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; } .filters .form-control, .filters .form-select { width: auto; min-width: 120px; height: 34px; padding-top: .15rem; padding-bottom: .15rem; border-radius: 999px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--bg-surface); } .seg a { padding: .22rem .85rem; font-size: 12.5px; color: var(--text-2); text-decoration: none; font-weight: 700; } .seg a:hover { background: var(--bg-hover); } .seg a.active { background: var(--gold); color: var(--on-gold); }
.tabs-line { display: flex; gap: .15rem; border-bottom: 1px solid var(--border); margin-bottom: .95rem; overflow-x: auto; } .tabs-line a { padding: .5rem .9rem; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 13px; font-weight: 700; margin-bottom: -1px; } .tabs-line a:hover { color: var(--text); } .tabs-line a.active { color: var(--text); border-color: var(--gold); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .35rem .8rem; font-size: 13px; } .kv dt { color: var(--text-muted); font-weight: 600; } .kv dd { margin: 0; }
.chk-done { text-decoration: line-through; color: var(--text-muted); }
.due-over { color: var(--danger); font-weight: 800; }
.alert { border-radius: var(--radius); border: 1px solid var(--border); font-weight: 600; }
.alert-warning { background: rgba(var(--gold-rgb), .14); color: var(--text); border-color: rgba(var(--gold-rgb), .45); }
.alert-success { background: color-mix(in srgb, var(--success) 12%, var(--bg-surface)); color: var(--text); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert-danger { background: color-mix(in srgb, var(--danger) 10%, var(--bg-surface)); color: var(--text); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-info, .alert-secondary { background: var(--bg-subtle); color: var(--text); }
.pagination { --bs-pagination-bg: var(--bg-surface); --bs-pagination-color: var(--text); --bs-pagination-border-color: var(--border); --bs-pagination-hover-bg: var(--bg-hover); --bs-pagination-hover-color: var(--text); --bs-pagination-active-bg: var(--gold); --bs-pagination-active-border-color: var(--gold); --bs-pagination-active-color: var(--on-gold); --bs-pagination-disabled-bg: var(--bg-surface); --bs-pagination-disabled-color: var(--text-muted); }

/* dashboard: ink hero strip with the faint checkerboard of the site */
.hero-strip { position: relative; background: var(--ink-2); color: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,.08); isolation: isolate; }
.hero-strip::before { content: ''; position: absolute; inset: 0; z-index: -1; background: conic-gradient(rgba(255,255,255,.05) 25%, transparent 0 50%, rgba(255,255,255,.05) 0 75%, transparent 0) 0 0 / 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0, #000, transparent 70%); }
.hero-strip::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--checker); background-size: 6px 6px; }
.hero-strip h1 { color: #fff; font-size: 1.3rem; margin: 0; } .hero-strip .sub { color: #9a9db0; font-size: 12.5px; }
.hero-strip .seg { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); } .hero-strip .seg a { color: #d8d9e2; }
.stat-row { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .85rem; }
.stat { flex: 1 1 120px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: .5rem .8rem; }
.stat .l { font-size: 11px; color: #9a9db0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; } .stat .n { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: #fff; }
.stat.hot .n { color: var(--gold); } .stat.bad .n { color: #ff6b78; } .stat.ok .n { color: #3ddc97; }

/* board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.board-col { background: var(--bg-subtle); border-radius: var(--radius); padding: .5rem; min-height: 120px; } .board-col h6 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin: .25rem .3rem .5rem; font-weight: 800; }
.board-col.drag-over { outline: 2px dashed var(--gold); }
.card-task { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .65rem; margin-bottom: .45rem; cursor: pointer; font-size: 13px; } .card-task:hover { border-color: var(--gold-d); box-shadow: var(--shadow); } .card-task[draggable=true]:active { opacity: .6; }

/* drawer */
.ws-drawer { --bs-offcanvas-width: min(560px, 100vw); background: var(--bg-surface); color: var(--text); border-left: 1px solid var(--border); }
.ws-drawer .offcanvas-header { border-bottom: 1px solid var(--border); padding: .65rem 1rem; position: relative; } .ws-drawer .offcanvas-header::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--checker); background-size: 6px 6px; }
.ws-drawer .offcanvas-body { padding: 1rem; } .ws-drawer .offcanvas-title { font-weight: 800; font-size: 1rem; }
.drawer-loading { text-align: center; padding: 3rem; color: var(--text-muted); }
.toast-wrap { position: fixed; right: 12px; bottom: 12px; z-index: 2100; display: flex; flex-direction: column; gap: .4rem; }
.ws-toast { background: var(--ink-2); color: #fff; border-left: 4px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); padding: .55rem .9rem; min-width: 220px; max-width: 340px; font-weight: 700; animation: tin .15s ease-out; } .ws-toast.err { border-left-color: var(--danger); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* chat + calendar */
.chat-wrap { display: grid; grid-template-columns: 290px 1fr; height: calc(100vh - var(--topbar-h) - 3rem); min-height: 420px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; } .chat-list a { display: flex; gap: .55rem; padding: .6rem .75rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); } .chat-list a.active, .chat-list a:hover { background: var(--bg-hover); }
.chat-pane { display: flex; flex-direction: column; min-width: 0; } .chat-msgs { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.msg { max-width: 78%; padding: .42rem .7rem; border-radius: 14px; background: var(--bg-subtle); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; } .msg.me { background: rgba(var(--gold-rgb), .26); align-self: flex-end; } .msg small { display: block; color: var(--text-muted); font-size: 10.5px; }
.cal-cell { min-width: 0; overflow: hidden; }
.filters > * { min-width: 0; max-width: 100%; }

/* ---------- mobile ---------- */
.bottom-nav { display: none; }
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s; } .app-sidebar.open { transform: none; box-shadow: var(--shadow); }
  .app-main { margin-left: 0; padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .app-content { padding: .8rem .8rem 1.5rem; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg-surface); border-top: 1px solid var(--border); z-index: 1035; }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; text-decoration: none; background: none; border: 0; position: relative; }
  .bottom-nav a.active { color: var(--text); } .bottom-nav a.active i { color: var(--accent-text); } .bottom-nav i { font-size: 1.25rem; }
  .bottom-nav .fab { flex: none; width: 54px; height: 54px; margin: -20px .3rem 0; border-radius: 50%; background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -8px rgba(var(--gold-rgb), .9); }
  .bottom-nav .fab i { font-size: 1.55rem; color: var(--on-gold); }
  .global-search { display: none; } .global-search.mobile-open { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 1050; max-width: none; background: var(--bg-surface); padding: .5rem; }
  .ws-drawer { --bs-offcanvas-width: 100vw; }
  .table-responsive-stack thead { display: none; } .table-responsive-stack tr { display: block; padding: .5rem .75rem; border-bottom: 1px solid var(--border); } .table-responsive-stack td { display: block; padding: .1rem 0 !important; border: 0; }
  .kv { grid-template-columns: 100px 1fr; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .timer-bar { position: sticky; top: var(--topbar-h); z-index: 1019; }
  .modal-dialog { margin: 0; max-width: none; min-height: 100%; } .modal-content { min-height: 100vh; border-radius: 0; }
  .hero-strip { padding: .85rem; } .hero-strip h1 { font-size: 1.1rem; }
}
@media (max-width: 575.98px) {
  .filters .form-control, .filters .form-select:not(.tomselected), .filters .ts-wrapper { width: 100% !important; min-width: 0 !important; flex: 1 1 100%; }
  .filters select.tomselected.ts-hidden-access { width: 0 !important; }
  .cal-cell { min-height: 52px !important; padding: 2px !important; font-size: 10.5px; } .cal-cell a { font-size: 10px; }
  .page-head h1 { font-size: 1.15rem; } .seg { flex-wrap: wrap; border-radius: 16px; }
}
@media (max-width: 767.98px) { .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - var(--topbar-h) - var(--bottom-h) - 2rem); } .chat-wrap.has-conv .chat-list { display: none; } .chat-wrap:not(.has-conv) .chat-pane { display: none; } }
@media print { .app-sidebar, .app-topbar, .bottom-nav, .timer-bar { display: none !important; } .app-main { margin: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- guest / login / errors ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); background: var(--ink); color: #e6e7ee; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem 2.6rem; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(46rem 28rem at 70% -10%, rgba(var(--gold-rgb), .20), transparent 60%), var(--ink); }
.auth-art::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9; background: conic-gradient(rgba(255,255,255,.045) 25%, transparent 0 50%, rgba(255,255,255,.045) 0 75%, transparent 0) 0 0 / 96px 96px; -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 100%); mask-image: linear-gradient(180deg, transparent 25%, #000 100%); }
.auth-art .logo { width: 190px; height: auto; display: block; }
.auth-art .piece { align-self: center; width: min(360px, 62%); border-radius: 22px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.auth-art .tag { font-weight: 800; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; max-width: 18ch; } .auth-art .tag span { color: var(--gold); }
.auth-art .checker-band { position: absolute; inset: auto 0 0 0; height: 14px; background-size: 28px 28px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.4rem; background: var(--ink-2); border-left: 1px solid rgba(255,255,255,.08); }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h1 { color: #fff; font-size: 1.55rem; } .auth-card .lead { color: #9a9db0; font-size: 13.5px; }
.auth-card .form-control { background: var(--ink-3); border-color: rgba(255,255,255,.14); color: #fff; height: 42px; } .auth-card .form-control:focus { background: var(--ink-3); color: #fff; }
.auth-card .form-label { color: #c3c5d2; } .auth-card .form-check-label, .auth-card .form-text { color: #9a9db0; } .auth-card a { color: var(--gold); } .auth-card .btn-lg { padding: .6rem 1rem; font-size: .95rem; }
.auth-card .btn-outline-secondary { --bs-btn-color: #e6e7ee; --bs-btn-border-color: rgba(255,255,255,.25); --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-color: #fff; }
.auth-card .invalid-feedback, .auth-card .text-danger { color: #ff8a94 !important; }
.auth-mobile-logo { display: none; }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-panel { border-left: 0; min-height: 100vh; align-items: flex-start; padding-top: 2.5rem; } .auth-mobile-logo { display: block; width: 170px; height: auto; margin: 0 0 1.6rem; } }
.err-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--ink); color: #e6e7ee; position: relative; overflow: hidden; }
.err-shell::before { content: ''; position: absolute; inset: 0; background: conic-gradient(rgba(255,255,255,.04) 25%, transparent 0 50%, rgba(255,255,255,.04) 0 75%, transparent 0) 0 0 / 80px 80px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.err-card { position: relative; text-align: center; max-width: 440px; } .err-card img { width: 150px; margin-bottom: 1.4rem; } .err-card .code { font-size: 4.4rem; font-weight: 800; color: var(--gold); line-height: 1; } .err-card h1 { color: #fff; font-size: 1.35rem; margin: .6rem 0 .4rem; } .err-card p { color: #9a9db0; }
.err-card .checker-band { width: 120px; margin: 1.2rem auto 0; border-radius: 3px; height: 8px; background-size: 16px 16px; }

/* ---------- Vault ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-2); font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; } .chip.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.v-ico { width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--gold); font-size: .95rem; } .v-ico.lg { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
.min-w-0 { min-width: 0; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-muted); padding: 0; }
.copy-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); } .copy-btn.done { color: var(--success); border-color: var(--success); }
.copy-btn.fav.on { color: var(--gold-d); } [data-theme="dark"] .copy-btn.fav.on { color: var(--gold); }
.btn.done { border-color: var(--success); color: var(--success); }
.vfields { margin: 0; display: grid; gap: .1rem; } .vf { display: grid; grid-template-columns: 120px 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--border); align-items: center; } .vf dt { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; } .vf dd { margin: 0; min-width: 0; }
.vf-val { font-variant-ligatures: none; word-break: break-all; } [data-secret-val].revealed { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; background: rgba(var(--gold-rgb), .18); padding: .1rem .4rem; border-radius: 6px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .25rem .8rem; max-height: 180px; overflow: auto; padding: .5rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); }
.vault-table td { vertical-align: middle; }
@media (max-width: 991.98px) { .vf { grid-template-columns: 96px 1fr; } .vault-table td:nth-child(4), .vault-table td:nth-child(5) { display: none !important; } .copy-btn { width: 36px; height: 36px; } }
.vault-table td:first-child { width: 46%; } .vault-table td:nth-child(2) { width: 28%; }
