/* Neglect CRM - noir: black and deep crimson melting into each other, gold only as fine decoration (hairlines, ornaments, small caps) */
:root {
  --bg: #050304; --text: #f7efe6; --muted: #b3a59a;
  --red: #d0121f; --red2: #ff4452; --crimson: #7d0a15; --wine: #2b060b;
  --gold: #d4af37; --goldbright: #f3d36b; --golddim: rgba(212, 175, 55, .28);
  --glass: linear-gradient(155deg, rgba(120, 10, 24, .42) 0%, rgba(34, 8, 12, .8) 42%, rgba(9, 5, 6, .92) 100%);
  --glass2: linear-gradient(155deg, rgba(150, 14, 30, .5) 0%, rgba(48, 9, 15, .85) 100%);
  --card2: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .07);
  --accent: #d0121f; --accent2: #ff6a75;
  --green: #4ade9d; --greenbg: rgba(30, 140, 90, .18); --redbg: rgba(208, 18, 31, .2); --amber: #f5b942; --amberbg: rgba(245, 185, 66, .14); --blue: #7db4ff;
  --radius: 20px; --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #7d0a15 #0a0405; }
body {
  margin: 0; color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(1000px 700px at 4% -8%, rgba(200, 16, 32, .42), transparent 62%),
    radial-gradient(900px 800px at 104% 108%, rgba(140, 8, 20, .5), transparent 62%),
    radial-gradient(700px 500px at 62% 34%, rgba(90, 5, 12, .3), transparent 70%),
    linear-gradient(180deg, #080304, #050203);
  background-attachment: fixed; min-height: 100vh;
}
::selection { background: rgba(212, 175, 55, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(#a30f1c, #4a060d); border-radius: 99px; border: 2px solid #080304; } ::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .015em; }
h1 { font-size: 38px; } h2 { font-size: 24px; } h3 { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
h1::after { content: ""; display: block; width: 92px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0)); }
.dept-head h1::after, .modal h2::after, .card h2::after, .tile h2::after { display: none; }
a { color: var(--goldbright); text-decoration: none; transition: color .15s; } a:hover { color: #fff; text-decoration: none; }
.muted { color: var(--muted); } .center { text-align: center; } .small { font-size: 13px; } .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; color: var(--gold); font-weight: 600; }
.hide { display: none !important; }
.loading { margin-top: 30vh; }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(185deg, rgba(110, 8, 22, .72) 0%, rgba(30, 6, 11, .9) 38%, rgba(7, 3, 4, .96) 100%); backdrop-filter: blur(10px);
  box-shadow: inset -1px 0 0 var(--golddim), 8px 0 40px rgba(0, 0, 0, .4); padding: 26px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 3px;
}
.brand { padding: 2px 8px 24px; margin-bottom: 8px; position: relative; display: flex; align-items: center; gap: 10px; }
.brand::after { content: "◆"; position: absolute; left: 12px; bottom: -8px; color: var(--gold); font-size: 9px; line-height: 1; background: transparent; }
.brand::before { content: ""; position: absolute; left: 26px; right: 12px; bottom: -4px; height: 1px; background: linear-gradient(90deg, var(--golddim), transparent); }
.brand-logo { width: 54px; height: 54px; object-fit: cover; border-radius: 14px; flex: none; mix-blend-mode: screen; filter: drop-shadow(0 0 12px rgba(255, 40, 55, .6)); -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 74%); mask-image: radial-gradient(circle, #000 52%, transparent 74%); }
.brand b { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .2em; white-space: nowrap; color: #fff; text-shadow: 0 0 22px rgba(255, 60, 70, .55); font-weight: 600; }
.brand span { color: var(--gold); font-size: 9.5px; letter-spacing: .16em; white-space: nowrap; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-radius: 12px; color: #d8c9bd; font-weight: 500; border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.nav a > span:first-child { width: 22px; display: grid; place-items: center; color: var(--gold); opacity: .9; }
.nav a.on > span:first-child, .nav a:hover > span:first-child { color: var(--goldbright); opacity: 1; }
.ico-svg { width: 19px; height: 19px; display: block; }
.nav a:hover { background: rgba(208, 18, 31, .16); color: #fff; transform: translateX(2px); }
.nav a.on { background: linear-gradient(90deg, rgba(208, 18, 31, .62), rgba(208, 18, 31, .08)); color: #fff; border-color: rgba(212, 175, 55, .22); box-shadow: inset 3px 0 0 var(--gold), 0 6px 20px rgba(150, 8, 20, .25); }
.nav .count { margin-left: auto; background: linear-gradient(135deg, #f0303d, #a00c18); color: #fff; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; box-shadow: 0 0 0 1px rgba(243, 211, 107, .5); }
.nav .group { text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px; color: var(--gold); margin: 16px 13px 4px; opacity: .85; }
.side .grow { flex: 1; }
.main { padding: 30px clamp(16px, 4vw, 48px) 90px; max-width: 1180px; width: 100%; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.top { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.top .search { flex: 1; min-width: 200px; }
.shell { transition: grid-template-columns .22s ease; }
.shell.folded { grid-template-columns: 0 1fr; }
.shell.folded .side { transform: translateX(-100%); box-shadow: none; pointer-events: none; }
.side { transition: transform .22s ease; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 24% 0 0; z-index: 30; transform: translateX(-102%); transition: transform .2s; height: 100dvh; }
  .side.open { transform: none; }
  .shell.folded { grid-template-columns: 1fr; }
  .shell.folded .side.open { transform: none; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
  h1 { font-size: 30px; }
}

/* ---------------------------------------------------------------- controls */
input, textarea, select { width: 100%; background: rgba(8, 3, 4, .6); border: 1px solid rgba(255, 255, 255, .1); color: var(--text); border-radius: 14px; padding: 11px 15px; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: #85776c; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .16), 0 0 24px rgba(208, 18, 31, .18); background: rgba(20, 5, 8, .75); }
select option { background: #14070a; color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-size: 12px; color: var(--gold); margin: 15px 0 6px; letter-spacing: .1em; text-transform: uppercase; }
.pickrow, .permgrid label { text-transform: none; letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: var(--text); padding: 9px 18px; border-radius: 99px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .18s, border-color .18s, box-shadow .18s, transform .12s;
}
.btn:hover { background: rgba(255, 255, 255, .11); border-color: var(--golddim); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #f0303d 0%, #b30f1c 55%, #7d0a15 100%); border-color: rgba(243, 211, 107, .45); color: #fff; box-shadow: 0 6px 22px rgba(190, 14, 28, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { box-shadow: 0 8px 30px rgba(230, 30, 45, .55), 0 0 0 1px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .3); background: linear-gradient(135deg, #ff4452, #c0101e 55%, #8a0b17); }
.btn.good { background: var(--greenbg); color: var(--green); border-color: rgba(74, 222, 157, .25); } .btn.bad { background: var(--redbg); color: #ff8791; border-color: rgba(255, 90, 100, .3); }
.btn.bad:hover { background: rgba(208, 18, 31, .35); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--golddim); }
.btn.sm { padding: 5px 13px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.pill { display: inline-block; background: rgba(255, 255, 255, .08); color: #d6c8bc; border-radius: 99px; padding: 2px 11px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .05); }
.pill.green { background: var(--greenbg); color: var(--green); border-color: rgba(74, 222, 157, .2); } .pill.red { background: var(--redbg); color: #ff8791; border-color: rgba(255, 90, 100, .25); }
.pill.amber { background: var(--amberbg); color: var(--amber); border-color: rgba(245, 185, 66, .2); } .pill.violet { background: rgba(212, 175, 55, .13); color: var(--goldbright); border-color: rgba(212, 175, 55, .35); }
.row { display: flex; gap: 12px; align-items: center; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .gap-s { gap: 6px; }
.stack > * + * { margin-top: 12px; }

/* ---------------------------------------------------------------- cards */
.card, .list, details, .widget, .dept, .tile, .actions {
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(212, 175, 55, .3); backdrop-filter: blur(8px);
}
.card { border-radius: var(--radius); padding: 22px; position: relative; }
.card.plain-card { background: rgba(10, 4, 5, .8); }
main.card { max-width: 440px; width: 100%; }
.hero { margin-bottom: 26px; padding: 22px 0 8px; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40px -10px -30px 46%; background: url(/static/banner.webp) center / cover no-repeat; mix-blend-mode: screen; opacity: .85; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%); pointer-events: none; }
@media (max-width: 760px) { .hero::before { inset: -10px -10px -10px 0; opacity: .35; } } .hero .eyebrow { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.hero h1 { font-size: 46px; text-shadow: 0 0 40px rgba(220, 20, 36, .45); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 34px; }
.tile { border-radius: 24px; padding: 22px; cursor: pointer; text-align: left; color: inherit; font: inherit; min-height: 164px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 30, 45, .45), transparent 65%); pointer-events: none; }
.tile:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .5); box-shadow: 0 18px 46px rgba(0, 0, 0, .6), 0 0 0 1px var(--golddim), inset 0 1px 0 rgba(243, 211, 107, .55); }
.tile .ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--goldbright); border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: 0 0 0 1px var(--golddim); }
.tile .big { font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: -.01em; margin-top: 16px; line-height: 1; } .tile .lab { color: #e2d3c7; margin-top: 4px; }
.tile .sub { font-size: 12.5px; margin-top: 4px; }
.section-title { text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; font-weight: 700; color: var(--gold); margin: 8px 0 14px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--golddim), transparent); }
.list { border-radius: var(--radius); overflow: hidden; }
.list > .item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list > .item:last-child { border-bottom: 0; }
.list > .item.click { cursor: pointer; } .list > .item.click:hover { background: linear-gradient(90deg, rgba(208, 18, 31, .22), transparent); }
.finrow .right { text-align: right; }
/* the VRChat profile card (looks like the profile on vrchat.com) */
.vrcp { border-radius: 20px; overflow: hidden; background: #171b20; color: #e6e9ec; border: 1px solid rgba(255, 255, 255, .08); }
.vrcp .vp-action { position: absolute; right: 24px; top: 70px; }
@media (max-width: 620px) { .vrcp .vp-action { position: static; margin-top: 10px; } }
.vrcp .vp-banner { display: block; width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg, #0f2a33, #171b20); }
.vrcp .vp-ident { padding: 0 24px; margin-top: -58px; position: relative; }
.vrcp .vp-pic { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #171b20; background: #232830; }
.vrcp .vp-name { margin-top: 10px; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .vrcp .vp-name a { color: #fff; }
.vrcp .vp-plus { font-size: 11px; font-weight: 800; color: #1a1a1a; background: #f4d21f; border-radius: 6px; padding: 1px 7px; letter-spacing: .5px; }
.vrcp .vp-dim { color: #8f98a3; font-size: 13px; font-weight: 400; }
.vrcp .vp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.vrcp .vp-chip { background: #272c34; color: #e6e9ec; border-radius: 999px; padding: 5px 13px; font-size: 13px; }
.vrcp .vp-body { padding: 18px 24px 22px; }
.vrcp .vp-label { color: #8f98a3; font-size: 11px; font-weight: 700; letter-spacing: .8px; margin-bottom: 6px; }
.vrcp .vp-bio { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.vrcp .vp-links { display: flex; flex-direction: column; gap: 6px; }
.vrcp .vp-link { display: flex; flex-direction: column; background: #20252c; border-radius: 12px; padding: 8px 12px; color: #4fc3da; overflow-wrap: anywhere; } .vrcp .vp-link span { color: #8f98a3; font-size: 12px; }
.vrcp .vp-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; } .heat .l { font-size: 10px; color: var(--muted); text-align: center; }
.heat .c { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.list > .note { margin: 0; border-radius: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list .grow, .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; font-size: 16px; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, #4a0a12, #1a0508); object-fit: cover; flex: none; display: inline-grid; place-items: center; font-weight: 700; color: var(--goldbright); box-shadow: 0 0 0 2px rgba(212, 175, 55, .4); }
.avatar.lg { width: 78px; height: 78px; font-size: 26px; box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(220, 20, 36, .4); } .avatar.sq { border-radius: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 22px; margin: 18px 0 4px; }
.facts div span { display: block; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 2px; }
details { border-radius: var(--radius); margin-top: 12px; }
details > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "▾"; margin-left: auto; color: var(--gold); transition: transform .15s; }
details[open] > summary::after { transform: rotate(180deg); }
details > .body { padding: 0 20px 18px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.note { background: rgba(0, 0, 0, .32); border-left: 2px solid rgba(212, 175, 55, .5); border-radius: 4px 14px 14px 4px; padding: 10px 14px; margin-top: 8px; } .note .meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #cdbfb3; padding: 8px 17px; border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; transition: all .18s; }
.tabs button:hover { border-color: var(--golddim); color: #fff; }
.tabs button.on { background: linear-gradient(135deg, #e8222f, #8e0b17); color: #fff; border-color: rgba(243, 211, 107, .5); box-shadow: 0 6px 20px rgba(190, 14, 28, .4); }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; font-style: italic; }
.banner { border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .4); margin-bottom: 14px; } .banner img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.clamp { max-height: 7.5em; overflow: hidden; position: relative; } .clamp.open { max-height: none; }
.actions { border-radius: var(--radius); overflow: hidden; }
.actions button { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; text-align: left; padding: 18px 22px; cursor: pointer; transition: background .15s, padding .15s; }
.actions button:last-child { border-bottom: 0; } .actions button:hover { background: linear-gradient(90deg, rgba(208, 18, 31, .28), transparent); padding-left: 28px; }
.chart { width: 100%; height: 170px; display: block; } .chart text { fill: var(--muted); font-size: 11px; }
.log-row { display: grid; grid-template-columns: 150px 140px 1fr; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 14px; } .log-row:last-child { border: 0; }
@media (max-width: 620px) { .log-row { grid-template-columns: 1fr; gap: 2px; } .kv { grid-template-columns: 1fr; } .list > .item { padding: 14px; flex-wrap: wrap; } }

/* ---------------------------------------------------------------- modal + toast + login */
.overlay { position: fixed; inset: 0; background: rgba(4, 1, 2, .72); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: linear-gradient(160deg, #3a070f 0%, #14070a 48%, #080304 100%); border: 1px solid rgba(212, 175, 55, .5); border-radius: 26px; width: min(100%, 680px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .75), 0 0 60px rgba(190, 14, 28, .22), inset 0 1px 0 rgba(243, 211, 107, .5); animation: pop .22s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal.wide { width: min(100%, 880px); }
.modal .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--golddim); }
.x { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--text); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 15px; transition: all .15s; } .x:hover { background: var(--red); border-color: var(--gold); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(92vw, 520px); }
.toast { background: linear-gradient(135deg, #2c0910, #120709); border: 1px solid var(--golddim); border-radius: 16px; padding: 13px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); white-space: pre-wrap; animation: rise .25s ease both; }
.toast.bad { background: linear-gradient(135deg, #5a0a14, #200609); border-color: rgba(255, 90, 100, .5); } .toast.good { background: linear-gradient(135deg, #0f3a28, #08140f); border-color: rgba(74, 222, 157, .45); }
.login { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100vh; padding: 16px; }
.login .card { width: min(100%, 520px); min-width: 0; overflow: hidden; padding: 36px 32px; text-align: center; border-radius: 28px; }
.login-banner { display: block; width: calc(100% + 64px); max-width: none; height: auto; margin: -36px -32px 8px; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 55%, transparent 80%); }
.login .emblem { width: 76px; height: 76px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 30px; color: var(--goldbright); transform: rotate(45deg); border-radius: 18px; background: linear-gradient(135deg, #e8222f, #5a0710); box-shadow: 0 0 0 1px var(--gold), 0 0 50px rgba(230, 30, 45, .55); }
.login .emblem > span { transform: rotate(-45deg); display: block; font-family: var(--serif); font-weight: 700; }
.login h1 { font-size: 34px; } .login h1::after { margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.login .btn { width: 100%; padding: 12px; }

/* ---------------------------------------------------------------- part 2 */
.livedot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b49; box-shadow: 0 0 0 0 rgba(255, 59, 73, .7); animation: pulse 1.6s infinite; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 73, 0); } }
.bar { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, #7d0a15, #e8222f 70%, var(--gold)); border-radius: 99px; box-shadow: 0 0 14px rgba(232, 34, 47, .55); }
.bignum { font-family: var(--serif); font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpis > div, .kpis > a, .kpis > button { background: rgba(0, 0, 0, .34); border-radius: 16px; padding: 12px 15px; border: 1px solid var(--line); color: inherit; text-align: left; font: inherit; box-shadow: inset 0 1px 0 rgba(212, 175, 55, .16); }
.kpis span { display: block; font-size: 10.5px; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 2px; } .kpis b { font-size: 20px; font-family: var(--serif); font-weight: 600; }
.kpis > a, .kpis > button { cursor: pointer; transition: border-color .15s, transform .15s; } .kpis > a:hover, .kpis > button:hover { border-color: rgba(212, 175, 55, .55); transform: translateY(-1px); text-decoration: none; }
.report { border-left: 3px solid var(--red2); background: linear-gradient(90deg, rgba(208, 18, 31, .22), rgba(0, 0, 0, .25)); border-radius: 4px 14px 14px 4px; padding: 10px 14px; margin-top: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.cal .dow { text-align: center; font-size: 11.5px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; padding: 4px 0; }
.cal .day { min-height: 96px; background: rgba(0, 0, 0, .32); border: 1px solid var(--line); border-radius: 14px; padding: 7px; cursor: pointer; overflow: hidden; text-align: left; color: inherit; font: inherit; transition: border-color .15s, background .15s; }
.cal .day:hover { border-color: rgba(212, 175, 55, .6); background: rgba(120, 10, 24, .3); } .cal .day.today { border-color: var(--gold); background: linear-gradient(160deg, rgba(208, 18, 31, .38), rgba(0, 0, 0, .3)); box-shadow: inset 0 0 0 1px var(--golddim); }
.cal .day .n { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; font-family: var(--serif); }
.cal .chip { display: block; font-size: 11px; line-height: 1.25; border-radius: 6px; padding: 1px 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, .07); border-left: 3px solid var(--muted); }
.k-event { border-color: var(--red2) !important; } .k-session { border-color: var(--gold) !important; } .k-task { border-color: var(--amber) !important; } .k-partner { border-color: var(--green) !important; }
.k-application, .k-staff { border-color: var(--blue) !important; } .k-case { border-color: #ff7d86 !important; } .k-finance { border-color: #d98cff !important; } .k-dept { border-color: #7fd6d6 !important; } .k-report { border-color: #ff9a5c !important; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); margin: 14px 0 0; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 700px) { .cal .day { min-height: 64px; padding: 3px; } .cal .chip { font-size: 9px; padding: 0 3px; } }
.funnel { display: grid; gap: 10px; } .funnel .stage { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; }
.funnel .stage .bar { height: 26px; border-radius: 9px; } .funnel .stage .bar > i { border-radius: 9px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--golddim); border-radius: var(--radius); background: rgba(0, 0, 0, .3); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; } table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 11px 15px; text-align: left; vertical-align: top; }
table.cmp th { background: rgba(70, 6, 14, .85); position: sticky; top: 0; font-family: var(--serif); } table.cmp td:first-child, table.cmp th:first-child { width: 190px; color: var(--muted); font-size: 13px; background: rgba(20, 6, 9, .8); }
table.cmp tr.sec td { background: rgba(212, 175, 55, .1); color: var(--goldbright); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 11.5px; }
.pickrow { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0; color: var(--text); font-size: 15px; } .pickrow input { width: auto; accent-color: var(--red); }
.permgroup { margin-top: 20px; } .permrow { display: grid; grid-template-columns: 240px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); } .permrow:last-child { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip2 { display: inline-flex; align-items: center; gap: 6px; background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .35); border-radius: 99px; padding: 2px 4px 2px 12px; font-size: 13px; color: var(--goldbright); }
.chip2 button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; } .chip2 button:hover { color: #ff6a75; }
@media (max-width: 760px) { .permrow { grid-template-columns: 1fr; } }
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; } .permgrid label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 13.5px; padding: 3px 0; } .permgrid input { width: auto; accent-color: var(--red); }
.permgrid label.risky { color: var(--amber); } .role-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.dept { border-radius: 24px; padding: 20px; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; text-align: left; color: inherit; font: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.dept:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .5); box-shadow: 0 18px 46px rgba(0, 0, 0, .6), 0 0 34px rgba(190, 14, 28, .25), inset 0 1px 0 rgba(243, 211, 107, .5); }
.dept .logo, .dept-head .logo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, #f0303d, #5a0710); display: grid; place-items: center; font-size: 30px; flex: none; box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(190, 14, 28, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.badge { display: inline-block; background: rgba(74, 222, 157, .12); color: var(--green); border: 1px solid rgba(74, 222, 157, .3); border-radius: 99px; padding: 2px 12px; font-size: 12.5px; font-weight: 600; margin: 5px 0; }
.dept-head { display: flex; gap: 20px; align-items: flex-start; } .dept-head .logo { width: 88px; height: 88px; font-size: 42px; border-radius: 24px; }
.resp li { margin: 6px 0; } .resp { padding-left: 22px; margin: 8px 0 0; }
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.widget { border-radius: var(--radius); padding: 18px; } .widget > h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 700; }
.wrow { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; } .wrow:last-child { border: 0; } .wrow.click { cursor: pointer; } .wrow.click:hover .t { color: var(--goldbright); }
.wrow .t { font-weight: 600; overflow-wrap: anywhere; } .wrow .m { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.wrow.done .t { text-decoration: line-through; opacity: .55; }
.inboxrow { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 10px; background: rgba(0, 0, 0, .3); border-left: 2px solid rgba(212, 175, 55, .5); }
.finrow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); } .finrow:last-child { border: 0; }
.finrow.paused { opacity: .5; }

.tile .ico .ico-svg { width: 22px; height: 22px; } .rowico { color: var(--gold); display: grid; place-items: center; width: 26px; } .rowico .ico-svg { width: 21px; height: 21px; }

/* ---- fine permissions + security ---- */
.permrow2 { display: grid; grid-template-columns: 230px 1fr 1fr; gap: 16px; align-items: start; padding: 15px 18px; border-bottom: 1px solid var(--line); } .permrow2:last-child { border: 0; }
.permblock { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; } .permblock .eyebrow { margin-bottom: 6px; font-size: 10.5px; } .permblock select { padding: 7px 12px; font-size: 13.5px; }
@media (max-width: 900px) { .permrow2 { grid-template-columns: 1fr; } }
.viewbanner { background: linear-gradient(90deg, rgba(245, 185, 66, .22), rgba(0, 0, 0, .2)); border: 1px solid rgba(245, 185, 66, .35); border-radius: 14px; padding: 10px 16px; margin-bottom: 16px; color: #f5d9a0; }
.viewbanner b { letter-spacing: .15em; color: var(--amber); }
.viewonly button.btn:not(.keep), .viewonly .actions button:not(.keep), .viewonly .widget h3 .btn, .viewonly .wrow .btn { display: none !important; }

/* ---- staff overview ---- */
.grpstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.grpcard { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: inset 0 1px 0 rgba(212, 175, 55, .18); } .grpcard.bad { border-color: rgba(255, 90, 100, .5); } .grpcard .eyebrow { font-size: 10px; }
.matrix-wrap { overflow-x: auto; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 1px 0 rgba(212, 175, 55, .3); }
table.matrix { border-collapse: collapse; width: 100%; min-width: 760px; }
table.matrix th { text-align: left; padding: 11px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--golddim); font-weight: 600; white-space: nowrap; }
table.matrix th.dotcol { text-align: center; max-width: 96px; white-space: normal; line-height: 1.25; } table.matrix th.dotcol span { display: block; }
table.matrix td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.matrix tr.rankhead td { background: linear-gradient(90deg, rgba(208, 18, 31, .3), transparent); font-family: var(--serif); font-size: 16px; letter-spacing: .04em; padding: 8px 14px; color: #fff; border-bottom: 1px solid var(--golddim); } table.matrix tr.rankhead small { color: var(--gold); font-family: inherit; }
table.matrix tr.prow { cursor: pointer; transition: background .15s; } table.matrix tr.prow:hover { background: rgba(208, 18, 31, .14); } table.matrix tr.prow.warn td:first-child { box-shadow: inset 3px 0 0 var(--red2); }
table.matrix .dotcell { text-align: center; width: 70px; } table.matrix .dotcell.own { background: rgba(212, 175, 55, .09); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .25); }
.dot { font-size: 17px; line-height: 1; } .dot.on { color: var(--green); text-shadow: 0 0 10px rgba(74, 222, 157, .6); } .dot.off { color: #8a7c70; } .dot.na { color: #5d524a; }
b.dot { font-weight: 400; margin-right: 4px; } .ownkey { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: rgba(212, 175, 55, .2); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .5); margin-right: 6px; vertical-align: -2px; }
.grp-mark { font-size: 18px; width: 22px; text-align: center; } .grp-mark.in { color: var(--green); } .grp-mark.out { color: #8a7c70; } .grp-mark.na { color: var(--amber); }

.dot.pend { color: var(--amber); text-shadow: 0 0 10px rgba(245, 185, 66, .55); }
