:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --bg: #090e15;
  --panel: #101822;
  --panel-hi: #141f2b;
  --line: #253240;
  --muted: #82909f;
  --text: #e5edf2;
  --mint: #77e0c1;
  --blue: #72baff;
  --gold: #ecc47a;
  --red: #ff7b86;
}

* { box-sizing: border-box; }
body { min-width: 360px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.ambient { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: .1; pointer-events: none; }
.ambient-one { top: -280px; left: 32%; background: #25baa5; }
.ambient-two { right: -370px; bottom: -250px; background: #356acd; }
.layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; width: 260px; flex-direction: column; padding: 25px 17px 20px; border-right: 1px solid #1e2935; background: #0b1119f5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px 30px; color: inherit; text-decoration: none; }
.brand-mark,.login-emblem { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid #498a7d; border-radius: 12px; color: #031c18; background: linear-gradient(140deg,#94edce,#43af9e); box-shadow: 0 7px 22px #54cdb330; font-size: 23px; font-weight: 800; }
.brand strong,.brand small { display: block; }
.brand strong { color: #edf4f8; font-size: 12px; letter-spacing: .09em; }
.brand small { margin-top: 4px; color: #6d8389; font-size: 8px; letter-spacing: .17em; }
.side-label,.banner-kicker,.eyebrow { color: #6b8790; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.side-label { padding: 19px 8px 10px; border-top: 1px solid #1d2833; }
.sidebar-stats { display: flex; align-items: center; gap: 8px; padding: 10px 8px 16px; color: #8ca0ab; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.sidebar-stats strong { margin-left: auto; color: #b8c8ce; font-size: 12px; }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #77e0c188; }
.gang-list { display: grid; gap: 5px; overflow-y: auto; }
.gang-nav-item { display: flex; min-height: 56px; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.gang-nav-item:hover { background: #ffffff08; }
.gang-nav-item.active { border-color: #24443f; background: linear-gradient(100deg,#14312e,#111e25); box-shadow: inset 2px 0 #70dfbc; }
.gang-nav-emblem { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #314452; border-radius: 10px; color: #9bb8c2; background: #17232e; font-size: 13px; font-weight: 700; }
.active .gang-nav-emblem { border-color: #39695e; color: var(--mint); background: #1c3936; }
.gang-nav-copy { display: grid; min-width: 0; gap: 4px; }
.gang-nav-copy strong { overflow: hidden; color: #d8e2e8; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gang-nav-copy small { overflow: hidden; color: #72838f; font-size: 8px; letter-spacing: .11em; text-overflow: ellipsis; white-space: nowrap; }
.gang-nav-count { display: grid; min-width: 22px; height: 21px; place-items: center; margin-left: auto; border-radius: 6px; color: #9cabb4; background: #202b35; font-size: 9px; }
.sidebar-empty { padding: 4px 8px; color: #778895; font-size: 11px; }
.sidebar-bottom { display: grid; gap: 20px; margin-top: auto; }
.security-note { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #24343d; border-radius: 10px; background: #101a22; }
.security-note > span { color: var(--mint); font-size: 18px; }
.security-note p { margin: 0; color: #b5c3c9; font-size: 10px; line-height: 1.5; }
.security-note small { color: #71818a; font-size: 9px; }
.build-label { padding-left: 4px; color: #536570; font-size: 8px; letter-spacing: .12em; }
.build-label span { color: var(--mint); }
.main { min-height: 100vh; margin-left: 260px; }
.topbar { position: sticky; top: 0; z-index: 1; display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 4.4vw; border-bottom: 1px solid #1d2833; background: #0b121aeF; backdrop-filter: blur(15px); }
.crumbs { display: flex; gap: 10px; align-items: center; color: #667783; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.crumbs i { color: #46545e; font-style: normal; }
.crumbs strong { color: #b9c7cd; }
.account-area { display: flex; align-items: center; gap: 10px; }
.account-avatar { display: grid; width: 32px; height: 32px; overflow: hidden; place-items: center; border: 1px solid #334554; border-radius: 10px; color: var(--mint); background: #162630; font-weight: 700; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-copy { display: grid; gap: 3px; }
.account-name { color: #dce5e9; font-size: 10px; }
.role-badge { color: var(--mint); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.role-viewer { color: #98b8d8; }
.role-manager { color: var(--gold); }
.logout-button { margin-left: 6px; padding: 7px 9px; border: 1px solid #293743; border-radius: 7px; color: #93a2ad; background: #121c25; font-size: 9px; }
.logout-button:hover { color: #e8eff3; border-color: #4a5c67; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 8px 0 5px; color: #f1f5f7; font-size: clamp(24px,3vw,34px); font-weight: 620; letter-spacing: -.04em; }
.subheading { margin: 0; color: #7e8d98; font-size: 11px; }
.main > #dashboard { max-width: 1320px; margin: 0 auto; padding: 35px clamp(20px,4.4vw,66px) 60px; }
.personal-profile-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 16px; }
.personal-profile-card { min-width: 0; padding: 24px; border: 1px solid #263642; border-radius: 12px; background: linear-gradient(145deg,#121d27,#101820); }
.profile-card-heading { margin-bottom: 22px; }
.profile-card-heading h2 { margin: 8px 0 0; color: #e4edf1; font-size: 17px; font-weight: 600; }
.identity-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.identity-preview > div { display: grid; gap: 6px; }
.identity-preview strong { color: #e7eff2; font-size: 15px; }
.identity-preview small { color: #82919c; font-size: 10px; }
.large-profile-avatar { width: 68px; height: 68px; border: 1px solid #45635f; border-radius: 50%; object-fit: cover; background: #182831; }
.profile-form { display: grid; gap: 16px; }
.profile-form > label:not(.upload-box) { display: grid; gap: 8px; color: #b7c5cb; font-size: 10px; font-weight: 600; }
.profile-form input:not([type="radio"]):not([type="file"]) { min-height: 39px; padding: 0 11px; border: 1px solid #33434e; border-radius: 7px; outline: none; color: #e2ebef; background: #0c141c; }
.profile-form input:focus { border-color: #5ba995; }
.avatar-choices { display: grid; gap: 11px; margin: 0; padding: 13px; border: 1px solid #283943; border-radius: 8px; }
.avatar-choices legend { padding: 0 5px; color: #98aab2; font-size: 10px; }
.avatar-choices label { display: flex; align-items: center; gap: 9px; color: #c3cfd4; font-size: 10px; }
.avatar-choices input { accent-color: #77e0c1; }
.profile-form .upload-box { background: #131e27; }
.profile-save-hint { margin: 0; color: #82929a; font-size: 10px; line-height: 1.5; }
.profile-login-meta { display: grid; gap: 7px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #26343e; }
.profile-login-meta small { color: #71848e; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.profile-login-meta strong { color: #cbd7dc; font-size: 11px; font-weight: 550; }
.directory-user-avatar { width: 23px; height: 23px; margin-right: 8px; border: 1px solid #3a5158; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.profile-user-avatar { width: 68px; height: 68px; border: 1px solid #45635f; border-radius: 50%; object-fit: cover; }
.intel-author { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; color: #82969e; font-size: 9px; }
.intel-author img { width: 19px; height: 19px; border: 1px solid #39514f; border-radius: 50%; object-fit: cover; }
.record-detail-fields > .intel-author { grid-column: 1 / -1; }
.welcome-banner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 30px; padding: 12px 16px; border: 1px solid #263840; border-radius: 10px; background: linear-gradient(100deg,#12211f,#111a22); }
.welcome-banner > div { display: grid; gap: 6px; }
.welcome-banner strong { color: #c9d9dc; font-size: 11px; font-weight: 550; }
.secure-badge { display: flex; align-items: center; gap: 7px; color: #84a99e; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 10px; font-weight: 650; text-decoration: none; transition: .16s; }
.button-primary { border-color: #68c8ac; color: #061a16; background: linear-gradient(110deg,#82e3c1,#75c6bd); box-shadow: 0 5px 18px #52caab18; }
.button-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button-primary span { font-size: 15px; }
.button-secondary { border-color: #35434e; color: #bcc9d0; background: #19242e; }
.button-secondary:hover { border-color: #597078; }
.button-danger { border-color: #653740; color: #ff9099; background: #281a20; }
.button-danger:hover { background: #352027; }
.profile-hero { position: relative; display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 14px; padding: 28px 32px; border: 1px solid #2a3b42; border-radius: 14px; background: radial-gradient(ellipse at 82% 44%,#174a4270 0%,transparent 45%),linear-gradient(120deg,#111d26,#14241f 80%,#132325); }
.profile-orb { position: absolute; top: -90px; right: 14%; width: 240px; height: 240px; border: 1px solid #9de5c410; border-radius: 50%; box-shadow: 0 0 0 22px #9de5c406,0 0 0 48px #9de5c404; }
.profile-copy { position: relative; z-index: 1; max-width: 75%; }
.type-pill,.intel-type { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #416c60; border-radius: 5px; color: #91dac1; background: #19342e; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.profile-copy h2 { margin: 12px 0 7px; color: #f1f5f3; font-size: clamp(22px,3vw,32px); font-weight: 620; letter-spacing: -.035em; }
.profile-copy p { max-width: 670px; margin: 0; color: #a3b2b5; font-size: 11px; line-height: 1.6; }
.profile-hero > button { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 38px; }
.stat-card { display: flex; min-height: 75px; align-items: center; gap: 12px; padding: 12px; border: 1px solid #25313d; border-radius: 10px; background: #111a24; }
.stat-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 17px; }
.stat-icon.cyan { color: #84d9dc; background: #19343a; }
.stat-icon.violet { color: #b6a6ec; background: #2a263b; }
.stat-icon.lime { color: #afd98b; background: #293627; }
.stat-icon.amber { color: #e9c784; background: #3b3224; }
.stat-copy { display: grid; gap: 5px; }
.stat-copy span { color: #768793; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.stat-copy strong { color: #e1e8eb; font-size: 19px; font-weight: 600; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.section-head h2 { margin-top: 6px; color: #e6edf0; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.intel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.intel-card { overflow: hidden; border: 1px solid #273440; border-radius: 11px; background: #111a24; transition: transform .18s,border-color .18s; }
.intel-card:hover { transform: translateY(-2px); border-color: #3b555c; }
.intel-image { position: relative; display: grid; height: 165px; overflow: hidden; place-items: center; border-bottom: 1px solid #26313c; background: radial-gradient(ellipse at 50% 100%,#18322e,#151e27 70%); }
.intel-image img { width: 100%; height: 100%; object-fit: cover; }
.intel-image.image-missing::after { position: absolute; inset: auto 0 0; padding: 7px; color: #e5aa9b; background: #1c1518dd; content: "Image unavailable"; font-size: 9px; text-align: center; }
.image-placeholder { color: #7faaa0; font-size: 47px; font-weight: 200; }
.intel-card-body { padding: 13px; }
.intel-card-top { display: flex; align-items: center; justify-content: space-between; }
.intel-type { padding: 4px 6px; border-color: #3b5861; color: #96c8d2; background: #1a2a34; font-size: 7px; }
.intel-outfit { border-color: #625444; color: #e0bf8e; background: #30291f; }
.edit-record-button { padding: 5px 8px; border: 1px solid #34434e; border-radius: 5px; color: #a8b7c0; background: #17232c; font-size: 9px; }
.intel-card h3 { margin: 11px 0 6px; color: #e5edf1; font-size: 14px; font-weight: 600; }
.intel-details { min-height: 42px; margin: 0; color: #8797a2; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.intel-card-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #25313b; color: #5f717d; font-size: 7px; letter-spacing: .06em; }
.intel-empty,.empty-state { display: grid; min-height: 180px; place-content: center; justify-items: center; gap: 8px; border: 1px dashed #34414b; border-radius: 12px; color: #80909b; background: #101821a8; text-align: center; }
.intel-empty strong,.empty-state h2 { color: #cbd6db; font-size: 13px; }
.intel-empty p,.empty-state p { max-width: 420px; margin: 0; color: #7d8b96; font-size: 10px; line-height: 1.5; }
.empty-icon { color: #84cdb5; font-size: 28px; }
.empty-state { min-height: 240px; }
.login-screen { display: grid; min-height: calc(100vh - 63px); place-items: center; padding: 25px; }
.login-card { width: min(100%,440px); padding: 37px; border: 1px solid #2b3c46; border-radius: 17px; background: radial-gradient(ellipse at 100% 0%,#17433c55,transparent 48%),#111a23; box-shadow: 0 20px 80px #0005; }
.login-emblem { width: 50px; height: 50px; margin-bottom: 29px; border-radius: 14px; }
.login-card h1 { margin: 12px 0; color: #eef4f5; font-size: 34px; line-height: 1.12; letter-spacing: -.04em; }
.login-card h1 em { color: var(--mint); font-style: normal; }
.login-card > p { margin: 0 0 24px; color: #92a1aa; font-size: 12px; line-height: 1.6; }
.button-discord { min-height: 43px; color: #101820; background: #c4d4df; }
.button-discord:hover { background: #e0eaf0; }
.discord-symbol { font-size: 18px; }
.login-foot { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: #71828c; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 10; max-width: min(420px,calc(100vw - 50px)); padding: 12px 15px; border: 1px solid #416b5e; border-radius: 9px; opacity: 0; color: #d3e8df; background: #14251f; box-shadow: 0 12px 35px #0005; font-size: 11px; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #75414a; color: #ffd3d6; background: #2a1b20; }
.editor-dialog { width: min(100% - 30px,540px); max-height: min(90vh,800px); overflow-y: auto; padding: 0; border: 1px solid #354450; border-radius: 14px; color: var(--text); background: #101922; box-shadow: 0 25px 100px #000a; }
.editor-dialog::backdrop { background: #03070bc9; backdrop-filter: blur(5px); }
.editor-dialog form { display: grid; gap: 15px; padding: 22px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.dialog-head h2 { margin-top: 5px; color: #e8eef1; font-size: 19px; }
.icon-button { width: 30px; height: 30px; border: 1px solid #2c3943; border-radius: 7px; color: #a5b3bb; background: #17222b; font-size: 19px; }
.editor-dialog label:not(.upload-box):not(.check-row) { display: grid; gap: 7px; color: #afbec6; font-size: 10px; font-weight: 600; }
.editor-dialog input:not([type=file]):not([type=checkbox]),.editor-dialog select,.editor-dialog textarea { width: 100%; padding: 10px 11px; border: 1px solid #34434e; border-radius: 7px; outline: none; color: #e1e9ec; background: #0b1219; font-size: 11px; }
.editor-dialog input:focus,.editor-dialog select:focus,.editor-dialog textarea:focus { border-color: #65bda5; box-shadow: 0 0 0 2px #64c4a51b; }
.editor-dialog textarea { resize: vertical; }
.record-detail-fields small { color: #758791; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.record-detail-fields strong { color: #c5d1d5; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.upload-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px dashed #3b4d57; border-radius: 8px; color: #c2cdd1; background: #131e27; font-size: 10px; }
.upload-box small { display: block; margin-top: 5px; color: #778992; font-size: 8px; }
.upload-box input { width: min(55%,230px); color: #8ea0a9; font-size: 9px; }
.check-row { display: flex; align-items: center; gap: 8px; color: #c0ccd1; font-size: 10px; }
.check-row input { accent-color: #68c8ac; }
.image-preview { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 11px; color: #82929b; font-size: 9px; }
.image-preview img { width: 80px; height: 54px; border: 1px solid #34434e; border-radius: 6px; object-fit: cover; }
.image-preview small { overflow: hidden; text-overflow: ellipsis; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.dialog-actions > span { flex: 1; }
.shell { width: min(100% - 40px,1500px); min-height: 100vh; margin: 0 auto; padding-bottom: 60px; }
.masthead { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 6px; }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: grid; gap: 4px; }
.brand-text small { color: #86bcaf; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.brand-text strong { color: #e9f0f1; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.account-area { display: flex; align-items: center; gap: 10px; }
.account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-tabs { display: flex; min-height: 56px; align-items: stretch; gap: 5px; border-top: 1px solid #25303a; border-bottom: 1px solid #25303a; }
.main-tab { display: flex; min-width: 138px; align-items: center; justify-content: center; gap: 9px; margin: 0 0 -1px; padding: 0 15px; border: 0; border-bottom: 2px solid transparent; color: #8898a2; background: transparent; font-size: 11px; }
.main-tab > span { color: #a4c8bb; font-size: 14px; }
.main-tab b { display: grid; min-width: 20px; height: 18px; place-items: center; border-radius: 5px; color: #9eafb7; background: #1b2731; font-size: 8px; }
.main-tab:hover { color: #e0e9ea; background: #ffffff05; }
.main-tab.active { border-bottom-color: #86d8b6; color: #edf3f1; }
.main-tab.active b { color: #a1e3c6; background: #1d3a31; }
.tabs-spacer { flex: 1; }
.sync-database-button { display: inline-flex; min-height: 30px; align-self: center; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #35464e; border-radius: 6px; color: #b6ccc7; background: #17232b; font-size: 9px; font-weight: 600; white-space: nowrap; }
.sync-database-button:hover:not(:disabled) { border-color: #65bda5; color: #d9eee6; background: #1a302b; }
.sync-database-button:disabled { opacity: .65; cursor: wait; }
.sync-database-button[aria-busy="true"] span { animation: sync-spin .8s linear infinite; }
@keyframes sync-spin { to { transform: rotate(360deg); } }
.connection-status { display: flex; align-items: center; gap: 8px; color: #73858e; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.connection-status i,.login-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px #77e0c180; }
#dashboard { padding-top: 32px; }
.page-heading { margin: 0 0 25px; }
.page-heading h1 { margin: 7px 0 5px; font-size: 29px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; }
.search-box { display: flex; width: min(100%,370px); height: 37px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #2b3944; border-radius: 7px; color: #8ca0a9; background: #111a23; }
.search-box > span { font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; color: #e2ebee; background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #697a85; }
.directory-total { color: #73838c; font-size: 9px; }
.directory-list { display: grid; gap: 7px; }
.directory-row { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(120px,.8fr) minmax(100px,.65fr) minmax(110px,.65fr) auto; min-height: 67px; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid #273440; border-radius: 9px; background: linear-gradient(105deg,#131e28,#101821); transition: border-color .16s,transform .16s; }
.directory-row:hover { transform: translateY(-1px); border-color: #46645f; }
.directory-cell { display: grid; min-width: 0; gap: 5px; }
.directory-cell small { color: #70828d; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.directory-cell strong { overflow: hidden; color: #dfe8eb; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.directory-name { display: flex; align-items: center; gap: 10px; }
.directory-emblem { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid #345147; border-radius: 9px; color: #a1e4c7; background: #1a302a; font-size: 12px; font-weight: 700; }
.directory-open { padding: 7px 10px; border: 1px solid #33434d; border-radius: 6px; color: #b5c4ca; background: #1a252f; font-size: 9px; }
.directory-open:hover { border-color: #67b99e; color: #c8eddd; }
.type-label { width: fit-content; padding: 4px 7px; border: 1px solid #3b5148; border-radius: 5px; color: #a4d8c2; background: #1b3029; font-size: 8px; text-transform: uppercase; }
.detail-view { animation: fade-in .18s ease; }
.back-button { margin: 0 0 20px; padding: 5px 0; border: 0; color: #93aaa9; background: transparent; font-size: 10px; }
.back-button:hover { color: #c3e5d7; }
.detail-heading { margin-bottom: 16px; }
.detail-heading .eyebrow { display: block; margin-bottom: 7px; }
.detail-heading h1 { color: #f0f5f5; font-size: 28px; }
.detail-heading p { margin-top: 5px; color: #82939b; font-size: 10px; }
.detail-columns { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(0,1.55fr); align-items: start; gap: 15px; }
.profile-panel,.records-panel { min-width: 0; border: 1px solid #293743; border-radius: 10px; background: #111a23; }
.profile-panel { padding: 18px; }
.profile-avatar { display: grid; width: 54px; height: 54px; overflow: hidden; place-items: center; border: 1px solid #426256; border-radius: 13px; color: #9be2c5; background: #1b332c; font-size: 22px; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-panel h2 { margin: 14px 0 7px; overflow-wrap: anywhere; color: #e8f0f0; font-size: 18px; font-weight: 600; }
.profile-panel .type-pill { margin-bottom: 9px; }
.profile-description { margin: 0; color: #97a7ad; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #27343e; }
.profile-actions .button { min-height: 31px; padding: 0 10px; font-size: 9px; }
.profile-meta { display: grid; gap: 12px; margin-top: 17px; }
.profile-meta > div { display: grid; gap: 5px; }
.profile-meta small { color: #758791; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.profile-meta strong { color: #c5d1d5; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.records-panel { padding: 17px; }
.records-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.records-header h2 { margin: 0; color: #e1e9eb; font-size: 14px; font-weight: 600; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding-bottom: 11px; border-bottom: 1px solid #26333e; }
.category-tab { min-height: 29px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: #8999a3; background: transparent; font-size: 9px; }
.category-tab:hover { color: #dae4e7; background: #ffffff06; }
.category-tab.active { border-color: #456856; color: #a9e0c8; background: #1b3028; }
.record-list { display: grid; gap: 8px; }
.record-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px; border: 1px solid #293641; border-radius: 8px; background: #141e28; }
.record-open { display: grid; min-width: 0; grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 11px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.record-open:hover .record-copy h3 { color: #a9e0c8; }
.record-open:focus-visible { border-radius: 6px; outline: 2px solid #65bda5; outline-offset: 3px; }
.record-thumb { display: grid; width: 74px; height: 60px; overflow: hidden; place-items: center; border: 1px solid #2b3b45; border-radius: 6px; color: #92c9b6; background: #17252b; font-size: 21px; }
.record-thumb img { width: 100%; height: 100%; object-fit: cover; }
.record-copy { min-width: 0; }
.record-copy h3 { overflow: hidden; margin: 0 0 5px; color: #e1e9ec; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.record-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #91a1a9; font-size: 9px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.record-copy small { display: block; margin-top: 6px; color: #677984; font-size: 7px; }
.record-actions { display: flex; gap: 5px; }
.record-detail-dialog { width: min(100% - 30px,760px); max-height: 90vh; overflow-y: auto; padding: 20px; border: 1px solid #354450; border-radius: 14px; color: var(--text); background: #101922; box-shadow: 0 25px 100px #000a; }
.record-detail-dialog::backdrop { background: #03070bc9; backdrop-filter: blur(5px); }
.record-detail-content { display: grid; gap: 16px; }
.record-detail-image-link { display: grid; min-height: 120px; max-height: min(58vh,560px); place-items: center; overflow: hidden; border: 1px solid #2d3d48; border-radius: 9px; background: #080e14; }
.record-detail-image { display: block; width: 100%; max-height: min(58vh,560px); object-fit: contain; }
.record-detail-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.record-detail-fields > div { padding: 10px; border: 1px solid #293843; border-radius: 7px; background: #141e28; }
.record-detail-description { grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px solid #293843; border-radius: 7px; color: #c1cdd2; background: #141e28; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-inline { display: grid; min-height: 125px; place-content: center; justify-items: center; gap: 7px; color: #7f9099; text-align: center; }
.empty-inline strong { color: #c4d0d4; font-size: 11px; }
.empty-inline p { margin: 0; font-size: 9px; }
.user-row { grid-template-columns: minmax(190px,1fr) minmax(160px,.8fr) minmax(100px,.55fr) auto; }
.user-id { color: #a7bbc5 !important; font-family: Consolas,monospace; font-size: 10px !important; }
.id-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; padding: 10px 11px; border: 1px solid #2e3d48; border-radius: 7px; color: #adbec5; background: #141f29; font-family: Consolas,monospace; font-size: 10px; overflow-wrap: anywhere; }
.id-banner span { color: #78909c; font-family: Inter,"Segoe UI",sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.permissions-list { display: grid; gap: 9px; margin-top: 12px; }
.user-permissions { display: grid; gap: 11px; margin: 2px 0 0; padding: 14px; border: 1px solid #2d4149; border-radius: 8px; background: #111d25; }
.user-permissions legend { padding: 0 5px; color: #a9bbc1; font-size: 10px; font-weight: 650; }
.user-permissions label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; color: #c0cdd1 !important; font-size: 10px !important; font-weight: 500 !important; }
.user-permissions input { accent-color: #77e0c1; }
.user-permissions small { color: #81929a; font-size: 9px; line-height: 1.5; }
.permission-item { display: flex; align-items: center; gap: 8px; color: #9aabb2; font-size: 9px; }
.permission-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.permission-item.disabled i { background: #52616b; }
.search-box:focus-within { border-color: #5eaa94; }
.button-discord { display: inline-flex; }
@media (max-width:850px) { .shell { width: min(100% - 26px,1500px); } .detail-columns { grid-template-columns: minmax(220px,.75fr) minmax(0,1.25fr); } .directory-row { grid-template-columns: minmax(155px,1.1fr) minmax(90px,.7fr) minmax(90px,.6fr) auto; } .directory-row .directory-cell:nth-child(4) { display:none; } }
@media (max-width:620px) { .shell { width: calc(100% - 22px); } .masthead { min-height: 73px; } .brand-text strong { font-size: 14px; } .brand-text small { font-size: 7px; } .account-name { max-width: 78px; } .main-tabs { min-height: 47px; } .main-tab { min-width: 115px; padding: 0 8px; font-size: 9px; } .connection-status { display:none; } #dashboard { padding-top: 23px; } .page-heading { align-items: start; gap: 10px; } .page-heading h1 { font-size: 23px; } .page-heading .subheading { max-width: 250px; font-size: 9px; } .page-heading > .button { min-height: 31px; padding: 0 8px; font-size: 8px; white-space: nowrap; } .directory-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 10px; } .directory-row .directory-cell:not(.directory-name) { display:none; } .detail-columns { grid-template-columns: 1fr; } .profile-panel { display:grid; grid-template-columns: 49px minmax(0,1fr); column-gap: 12px; } .profile-panel .profile-avatar { grid-row: span 2; width: 45px; height: 45px; } .profile-panel h2 { margin: 3px 0; font-size: 15px; } .profile-panel .type-pill { grid-column: 2; width: fit-content; margin: 0; } .profile-panel .profile-description,.profile-panel .profile-actions,.profile-panel .profile-meta { grid-column: 1 / -1; } .profile-panel .profile-description { margin-top: 13px; } .profile-panel .profile-actions { margin-top: 12px; padding-top: 11px; } .records-panel { padding: 12px; } .record-row { grid-template-columns: 55px minmax(0,1fr) auto; gap: 8px; padding: 7px; } .record-thumb { width: 55px; height: 48px; } .record-actions { flex-direction: column; } .dialog-actions { flex-wrap: wrap; } .directory-toolbar { align-items: start; flex-direction: column; } .directory-total { align-self: end; } .login-card { padding: 25px; } }
@media (max-width:1050px) { .sidebar { width: 225px; } .main { margin-left: 225px; } .intel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .sidebar { position: static; width: 100%; padding: 13px 14px; border-right: 0; border-bottom: 1px solid #1e2935; } .brand { padding-bottom: 12px; } .side-label,.sidebar-stats,.security-note,.build-label { display: none; } .gang-list { display: flex; gap: 7px; overflow-x: auto; padding-top: 8px; } .gang-nav-item { min-width: 175px; min-height: 48px; } .sidebar-bottom { display: none; } .main { margin-left: 0; } .topbar { min-height: 55px; padding: 0 16px; } .crumbs { font-size: 7px; } .logout-button { font-size: 8px; } .main > #dashboard { padding: 25px 15px 40px; } .page-heading { align-items: start; } .welcome-banner { align-items: start; flex-direction: column; } .profile-hero { min-height: 180px; align-items: start; flex-direction: column; padding: 22px; } .profile-copy { max-width: 100%; } .profile-hero > button { align-self: end; } .intel-grid { grid-template-columns: 1fr; } .intel-image { height: 205px; } .stats-grid { gap: 7px; } .stat-card { gap: 8px; padding: 9px; } .stat-icon { width: 29px; height: 29px; } .stat-copy span { font-size: 6px; } .stat-copy strong { font-size: 17px; } .section-head h2 { font-size: 15px; } .login-card { padding: 27px; } }
@media (max-width:720px) { .personal-profile-grid { grid-template-columns: 1fr; } }
@media (max-width:620px) {
  .record-row { grid-template-columns: minmax(0,1fr) auto; }
  .record-open { grid-template-columns: 55px minmax(0,1fr); gap: 8px; }
  .record-detail-fields { grid-template-columns: 1fr; }
  .record-detail-description { grid-column: 1; }
}
