:root {
  color-scheme: dark;
  --bg: #080b18;
  --bg-soft: #0c1020;
  --panel: #111629;
  --panel-2: #171d34;
  --panel-3: #202747;
  --line: #293253;
  --line-soft: rgba(110, 151, 255, .14);
  --text: #f4f1fb;
  --muted: #9892a8;
  --muted-2: #716b81;
  --accent: #a77bff;
  --accent-2: #13c8f4;
  --accent-soft: rgba(117, 87, 255, .16);
  --green: #54d6a2;
  --teal: #5dd6cf;
  --blue: #7aaaff;
  --amber: #eab76d;
  --rose: #f18dba;
  --danger: #fa7887;
  --radius: 17px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .35);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse at 82% -18%, rgba(22, 120, 255, .15), transparent 42%), radial-gradient(ellipse at -20% 55%, rgba(116, 48, 255, .13), transparent 44%), var(--bg);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.roo-mark { display: block; width: 42px; height: 42px; flex: 0 0 auto; }
.topbar {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 clamp(18px, 4vw, 54px); position: sticky; top: 0; z-index: 30;
  background: rgba(12, 11, 18, .88); border-bottom: 1px solid rgba(196, 177, 255, .10); backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.brand-copy strong { font-size: 13px; font-weight: 850; letter-spacing: .15em; }
.brand-copy small { color: #8c829f; font-size: 8px; letter-spacing: .22em; font-weight: 750; }
.topbar-right { display: flex; align-items: center; gap: 23px; }
.top-link, .text-button { color: #c5bdd4; font-size: 12px; font-weight: 600; transition: color .18s ease; }
.top-link:hover, .text-button:hover { color: white; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 650; color: #ddd6e9; }
.avatar-fallback { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #f2eaff; background: linear-gradient(145deg, #60488d, #392c59); border: 1px solid #785ea7; font-size: 12px; font-weight: 800; }
.logout-form { margin: 0; }
.text-button { background: none; border: 0; padding: 0; cursor: pointer; }
.mobile-menu { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 11px; background: #171420; cursor: pointer; }
.mobile-menu span { display: block; width: 15px; height: 1.5px; background: #d8c9f3; border-radius: 5px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 17px; border-radius: 11px; border: 1px solid transparent; font-size: 11px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .72; cursor: wait; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, #a989ff, #7b56df); box-shadow: 0 9px 25px rgba(126, 83, 221, .22); }
.button-primary:hover { background: linear-gradient(135deg, #b99fff, #8966e9); box-shadow: 0 11px 29px rgba(126, 83, 221, .3); }
.button-outline { color: #e1d9ef; background: rgba(255,255,255,.025); border-color: #3a334d; }
.button-outline:hover { border-color: #7d65ad; background: rgba(169,138,255,.08); }
.button-ghost { color: #e1d9ef; border-color: #332d43; background: transparent; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 10px; border-radius: 9px; }
.button-full { width: 100%; }
.discord-glyph { font-size: 16px; }
.sidebar-scrim { display: none; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); max-width: 1780px; margin: 0 auto; min-height: calc(100vh - 76px); }
.side-nav { display: flex; flex-direction: column; min-height: calc(100vh - 76px); padding: 25px 16px 22px; background: rgba(15, 13, 22, .78); border-right: 1px solid rgba(196,177,255,.09); }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 30px; border: 1px solid #302943; border-radius: 13px; background: linear-gradient(145deg, rgba(39,31,57,.8), rgba(24,21,34,.88)); }
.workspace-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 11px; background: #0b1022; border: 1px solid rgba(100,155,255,.35); box-shadow: 0 5px 18px rgba(37,105,255,.18); }
.workspace-icon img { width: 100%; height: 100%; object-fit: cover; }
.workspace-switcher>span:nth-child(2) { flex: 1; min-width: 0; }
.workspace-switcher small, .workspace-switcher strong { display: block; }
.workspace-switcher small { color: #8e85a0; font-size: 8px; letter-spacing: .16em; font-weight: 800; }
.workspace-switcher strong { margin-top: 3px; color: #eee8f8; font-size: 11px; font-weight: 750; }
.chevron { color: #827a91; font-size: 17px; }
.side-label { padding: 0 11px; margin: 0 0 10px; color: #6e687e; font-size: 8px; letter-spacing: .17em; font-weight: 850; }
.side-label-spaced { margin-top: 28px; }
.side-link { display: flex; align-items: center; gap: 11px; min-height: 41px; margin: 2px 0; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: #a49cb3; font-size: 11px; font-weight: 600; transition: .18s ease; }
.side-link:hover { color: #f0e9ff; background: rgba(255,255,255,.035); }
.side-link.active { color: #e1d5ff; background: linear-gradient(90deg, rgba(145,107,230,.19), rgba(145,107,230,.055)); border-color: rgba(160,127,240,.18); }
.nav-glyph { width: 18px; color: #9e8bca; text-align: center; font-size: 15px; }
.link-arrow { margin-left: auto; color: #9c86d2; font-size: 17px; }
.side-bottom { margin-top: auto; padding: 17px 10px 0; border-top: 1px solid rgba(196,177,255,.10); }
.system-pulse { display: flex; align-items: center; gap: 8px; color: #b8b0c6; font-size: 9px; }
.system-pulse i, .live-dot, .footer-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(84,214,162,.5); }
.system-pulse b { margin-left: auto; color: var(--green); font-size: 8px; letter-spacing: .1em; }
.sidebar-logout { display: none; margin-top: 12px; }
.sidebar-logout button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; border: 1px solid rgba(196,177,255,.1); border-radius: 8px; color: #a99eb9; background: rgba(255,255,255,.02); font-size: 9px; cursor: pointer; }
.sidebar-logout button:hover { color: #f0e8fb; border-color: #59466f; }
.side-bottom>small { display: block; margin-top: 10px; color: #655e74; font-size: 8px; letter-spacing: .12em; }
.side-bottom>small span { color: #a28bda; }
.app-content { width: 100%; max-width: 1450px; min-width: 0; margin: 0 auto; padding: 30px clamp(22px, 4vw, 58px) 58px; }
.content-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #777085; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.breadcrumb b { color: #504861; }
.breadcrumb strong { color: #a79db9; }
.breadcrumb a { color: #b6a2ec; }
.topline-date { display: inline-flex; align-items: center; gap: 8px; color: #8d849e; font-size: 8px; letter-spacing: .11em; font-weight: 800; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #b59bfa; font-size: 8px; font-weight: 850; letter-spacing: .17em; }
.eyebrow-mark { color: #d0baff; font-size: 13px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 27px; }
.page-heading h1 { margin: 10px 0 9px; color: #f5f0fc; font-size: clamp(29px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.055em; font-weight: 850; }
.page-heading h1 span { color: #b69aff; }
.page-heading p { max-width: 640px; margin: 0; color: #92899f; font-size: 11px; line-height: 1.7; }
.dashboard-heading>.button { margin-bottom: 4px; }
.overview-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 39px; padding: 18px 21px; border: 1px solid #382e4d; border-radius: 14px; background: linear-gradient(100deg, rgba(62,47,92,.42), rgba(26,22,37,.82) 60%, rgba(21,19,31,.84)); }
.overview-copy { display: flex; align-items: center; gap: 15px; min-width: 0; }
.overview-symbol { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; background: rgba(152,116,236,.13); border: 1px solid rgba(180,151,255,.19); }
.overview-symbol .roo-mark { width: 36px; height: 36px; }
.overview-copy strong, .overview-copy span { display: block; }
.overview-copy strong { margin-bottom: 4px; color: #eee7fa; font-size: 12px; }
.overview-copy span { color: #978da6; font-size: 10px; }
.overview-count { min-width: 120px; padding-left: 22px; border-left: 1px solid rgba(201,179,255,.15); text-align: right; }
.overview-count strong { display: block; color: #f4effe; font-size: 25px; font-weight: 850; line-height: 1.05; }
.overview-count span { color: #897f9b; font-size: 8px; letter-spacing: .11em; font-weight: 800; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.section-title-row h2 { margin: 5px 0 3px; color: #efeaf7; font-size: 18px; letter-spacing: -.035em; font-weight: 800; }
.section-title-row p { margin: 0; color: #81798f; font-size: 10px; }
.server-search { display: flex; align-items: center; gap: 8px; width: min(230px, 42%); height: 38px; padding: 0 11px; background: #13111b; border: 1px solid #302a40; border-radius: 9px; color: #9387aa; }
.server-search span { font-size: 17px; }
.server-search input, .case-tools input { width: 100%; min-width: 0; color: #e7e1f1; background: transparent; border: 0; outline: none; font-size: 10px; }
.server-search input::placeholder, .case-tools input::placeholder { color: #6f687d; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.server-card { min-width: 0; padding: 17px; border: 1px solid #2b263a; border-radius: 14px; background: linear-gradient(145deg, rgba(27,24,39,.98), rgba(19,17,27,.98)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.server-card:hover { transform: translateY(-2px); border-color: #66518f; box-shadow: 0 15px 35px rgba(0,0,0,.18); }
.server-card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.server-avatar { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; border: 1px solid #67518d; color: #e8dbff; background: linear-gradient(145deg, #594477, #302741); font-size: 17px; font-weight: 850; }
.server-meta { min-width: 0; flex: 1; }
.server-meta h3 { overflow: hidden; margin: 0 0 4px; color: #f0eaf7; font-size: 12px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.server-meta>span { color: #81798e; font-size: 9px; }
.meta-sep { padding: 0 4px; color: #554d63; }
.server-menu-mark { align-self: flex-start; color: #6b6379; font-size: 13px; letter-spacing: 2px; }
.server-card-middle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 13px; padding-top: 13px; border-top: 1px solid rgba(196,177,255,.09); }
.server-label { color: #686176; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.installed-pill, .missing-pill, .connected-pill, .muted-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 100px; font-size: 8px; letter-spacing: .06em; font-weight: 800; }
.installed-pill, .connected-pill { color: #78ddb4; background: rgba(62,190,139,.09); border: 1px solid rgba(84,214,162,.16); }
.installed-pill i, .connected-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.missing-pill { color: #d2ab74; background: rgba(234,183,109,.08); border: 1px solid rgba(234,183,109,.15); }
.missing-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.empty-state { display: flex; align-items: center; flex-direction: column; padding: 52px 20px; text-align: center; border: 1px dashed #403650; border-radius: 15px; background: rgba(22,19,31,.48); }
.empty-emblem { width: 69px; height: 69px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #4c3e68; border-radius: 21px; background: #211a30; }
.empty-emblem .roo-mark { width: 56px; height: 56px; }
.empty-state h2 { margin: 8px 0 5px; font-size: 19px; }
.empty-state p { max-width: 420px; margin: 0 0 18px; color: #90879e; font-size: 11px; }
.empty-state .button { margin-top: 4px; }
.no-search-results { padding: 17px; color: #988eaa; text-align: center; font-size: 10px; }
.dashboard-footnote { display: flex; align-items: center; gap: 13px; margin-top: 30px; padding: 17px; border: 1px solid #2b263a; border-radius: 12px; background: rgba(19,17,27,.7); }
.footnote-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #c4adff; background: #29213b; font-size: 17px; }
.dashboard-footnote>div { flex: 1; min-width: 0; }
.dashboard-footnote strong { color: #ded6ea; font-size: 10px; }
.dashboard-footnote p { margin: 2px 0 0; color: #81798e; font-size: 9px; }
.dashboard-footnote>a { color: #bca4ff; font-size: 9px; font-weight: 750; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px clamp(18px, 4vw, 54px); border-top: 1px solid rgba(196,177,255,.08); color: #655f72; font-size: 9px; }
.site-footer>span:last-child { display: flex; align-items: center; gap: 8px; }
.footer-dot { width: 5px; height: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #9588ad; }
.footer-links a:hover { color: #d6c8f7; }
.document-shell { max-width: 1080px; margin: 0 auto; padding: 42px clamp(18px, 4vw, 54px) 70px; }
.document-shell .page-heading { display: block; margin-bottom: 26px; }
.document-shell .page-heading p { max-width: 760px; margin-bottom: 8px; font-size: 13px; }
.document-shell .page-heading small { color: #746c83; font-size: 10px; }
.document-card { padding: clamp(20px, 3vw, 34px); border: 1px solid #302a40; border-radius: 16px; background: linear-gradient(145deg, rgba(27,24,39,.94), rgba(17,15,24,.97)); }
.document-card h2 { margin: 25px 0 8px; color: #e9e1f7; font-size: 16px; }
.document-card h2:first-child { margin-top: 0; }
.document-card p, .document-card li { color: #a59caf; font-size: 12px; line-height: 1.85; }
.document-card ol { padding-left: 21px; }
.document-card a { color: #b59bfa; text-decoration: underline; text-underline-offset: 3px; }
.document-card code { padding: 2px 5px; border: 1px solid #383148; border-radius: 5px; background: #211c2c; color: #d7c8fb; font-size: .92em; }
/* Server console */
.guild-content { padding-top: 26px; }
.guild-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; padding: 20px 21px; border: 1px solid #332a47; border-radius: 15px; background: radial-gradient(ellipse at 0% 0%, rgba(135,95,216,.2), transparent 53%), linear-gradient(120deg, #1d182a, #171420 64%, #15121e); }
.guild-hero-main { display: flex; align-items: center; gap: 17px; min-width: 0; }
.guild-avatar-large { width: 65px; height: 65px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #876ac0; border-radius: 19px; background: linear-gradient(145deg, #725595, #372a4c); color: #f2e8ff; font-size: 25px; font-weight: 900; box-shadow: 0 9px 25px rgba(0,0,0,.2); }
.guild-title { min-width: 0; }
.guild-title h1 { overflow-wrap: anywhere; margin: 4px 0 4px; color: #f3edf9; font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.045em; line-height: 1.15; }
.guild-title p { margin: 0; color: #968ba4; font-size: 10px; }
.guild-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.muted-pill { color: #9d94ac; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.guild-hero>.button { flex: 0 0 auto; }
.alert-success { display: flex; align-items: center; gap: 11px; margin: 0 0 15px; padding: 11px 14px; border: 1px solid rgba(84,214,162,.23); border-radius: 10px; color: #77dfb5; background: rgba(49,167,121,.09); }
.alert-success>span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(84,214,162,.13); }
.alert-success strong, .alert-success small { display: block; }
.alert-success strong { font-size: 10px; }
.alert-success small { margin-top: 2px; color: #90bba9; font-size: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 11px; margin-bottom: 34px; }
.stat-card { min-width: 0; padding: 14px 15px; border: 1px solid #2b2639; border-radius: 12px; background: linear-gradient(145deg, #1b1726, #14121c); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #837a93; font-size: 8px; letter-spacing: .1em; font-weight: 850; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; }
.stat-icon.purple { color: #c1aaff; background: rgba(169,138,255,.13); }
.stat-icon.blue { color: #9ec1ff; background: rgba(122,170,255,.12); }
.stat-icon.green { color: #80e0b7; background: rgba(84,214,162,.12); }
.stat-icon.amber { color: #ecc17f; background: rgba(234,183,109,.12); }
.stat-card>strong { display: block; margin-top: 11px; color: #f4eefb; font-size: 26px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.stat-card>strong em { margin-left: 3px; color: #71697e; font-size: 13px; font-style: normal; font-weight: 650; }
.stat-card>small { display: block; margin-top: 7px; color: #777084; font-size: 9px; }
.console-section-title { margin: 0 0 15px; }
.save-indicator { display: inline-flex; align-items: center; gap: 7px; color: #8f87a0; font-size: 8px; letter-spacing: .08em; font-weight: 800; white-space: nowrap; }
.save-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.settings-form { display: grid; gap: 13px; }
.settings-card { min-width: 0; padding: 21px; border: 1px solid #2c273a; border-radius: 15px; background: linear-gradient(145deg, rgba(26,23,37,.98), rgba(19,17,27,.98)); scroll-margin-top: 22px; }
.settings-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.settings-card-heading h2 { margin: 4px 0 4px; color: #eee8f6; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.settings-card-heading p { margin: 0; color: #8b8398; font-size: 10px; }
.settings-symbol { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #c0aaff; background: rgba(148,111,226,.12); border: 1px solid rgba(164,130,237,.17); border-radius: 10px; font-size: 17px; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.module-card { min-width: 0; padding: 14px; border: 1px solid #342e45; border-radius: 12px; background: linear-gradient(145deg, #201b2d, #171420); }
.module-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; }
.module-icon.purple { color: #d0baff; background: rgba(169,138,255,.13); }
.module-icon.teal { color: #85e1d9; background: rgba(93,214,207,.12); }
.module-card-copy { margin-top: 12px; }
.module-card-copy strong { display: block; color: #e9e2f1; font-size: 11px; }
.module-card-copy p { min-height: 31px; margin: 4px 0 0; color: #8c8398; font-size: 9px; line-height: 1.6; }
.module-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(196,177,255,.09); color: #6d667a; font-size: 7px; letter-spacing: .1em; font-weight: 800; }
.module-state { display: inline-flex; align-items: center; gap: 6px; color: #827b8e; }
.module-state i { width: 5px; height: 5px; border-radius: 50%; background: #6c647a; }
.module-state.enabled { color: #77ddb3; }
.module-state.enabled i { background: var(--green); box-shadow: 0 0 8px rgba(84,214,162,.4); }
.switch-control { position: relative; display: inline-flex; width: 34px; height: 19px; flex: 0 0 auto; cursor: pointer; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control>span { position: relative; width: 34px; height: 19px; border-radius: 20px; background: #3a3448; transition: background .2s ease; }
.switch-control>span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #b6adbf; transition: transform .2s ease, background .2s ease; }
.switch-control input:checked+span { background: #7856d4; }
.switch-control input:checked+span::after { transform: translateX(15px); background: #fff; }
.switch-control input:focus-visible+span { outline: 2px solid var(--accent); outline-offset: 3px; }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0 13px; padding-top: 16px; border-top: 1px solid rgba(196,177,255,.1); }
.subsection-heading strong, .subsection-heading small { display: block; }
.subsection-heading strong { color: #d9d1e4; font-size: 10px; }
.subsection-heading small { margin-top: 3px; color: #80788e; font-size: 9px; }
.subsection-chip { padding: 5px 8px; border: 1px solid #393148; border-radius: 6px; color: #9d91b2; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field>span { color: #cfc7da; font-size: 9px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; padding: 10px 11px; color: #eee8f5; background: #100e17; border: 1px solid #393248; border-radius: 8px; outline: none; font-size: 10px; transition: border-color .18s ease, box-shadow .18s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #9878e8; box-shadow: 0 0 0 3px rgba(169,138,255,.08); }
.field input::placeholder, .field textarea::placeholder { color: #5f586b; }
.field small { color: #746d80; font-size: 8px; line-height: 1.5; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.three-cols { grid-template-columns: repeat(3,minmax(0,1fr)); }
.four-cols { grid-template-columns: repeat(4,minmax(0,1fr)); }
.input-with-unit { display: flex; align-items: center; border: 1px solid #393248; border-radius: 8px; background: #100e17; }
.input-with-unit input { border: 0; background: transparent; box-shadow: none !important; }
.input-with-unit>span { padding: 0 10px; color: #71697e; font-size: 8px; font-weight: 850; }
.field-full { margin-top: 14px; }
.log-channel-list { display: grid; }
.log-channel-row { display: grid; grid-template-columns: 35px minmax(130px,1fr) minmax(160px, .9fr) 36px; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(196,177,255,.08); }
.log-channel-row:first-child { border-top: 0; padding-top: 0; }
.log-channel-symbol { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; }
.log-channel-symbol.purple { color: #c9b5ff; background: rgba(169,138,255,.13); }
.log-channel-symbol.teal { color: #85e1d9; background: rgba(93,214,207,.12); }
.log-channel-symbol.amber { color: #edc484; background: rgba(234,183,109,.12); }
.log-channel-symbol.blue { color: #a3c1ff; background: rgba(122,170,255,.12); }
.log-channel-symbol.rose { color: #efa4c6; background: rgba(241,141,186,.12); }
.log-channel-info { min-width: 0; }
.log-channel-info strong, .log-channel-info small { display: block; }
.log-channel-info strong { color: #ddd5e8; font-size: 10px; }
.log-channel-info small { margin-top: 3px; color: #7e768c; font-size: 8px; line-height: 1.5; }
.channel-field>span { display: none; }
.channel-field input { padding: 9px 10px; }
.switch-inline { justify-self: end; }
.inline-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(122,170,255,.13); border-radius: 9px; background: rgba(87,132,203,.06); color: #99b9ed; }
.inline-note>span { font-size: 13px; }
.inline-note p { margin: 0; color: #8c9fbd; font-size: 8px; line-height: 1.6; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 2px 2px 13px; }
.sticky-save { position: sticky; bottom: 10px; z-index: 5; padding: 11px 13px; border: 1px solid #403453; border-radius: 12px; background: rgba(24,20,34,.94); box-shadow: 0 12px 36px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.sticky-save>div { display: flex; align-items: center; gap: 9px; }
.sticky-save>div>span:last-child strong, .sticky-save>div>span:last-child small { display: block; }
.sticky-save>div>span:last-child strong { color: #d9d0e6; font-size: 9px; }
.sticky-save>div>span:last-child small { color: #7a7188; font-size: 8px; }
.save-lock { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #c3adfb; background: rgba(169,138,255,.12); }
.history-card { margin-top: 24px; }
.history-heading { align-items: center; }
.case-tools { display: flex; align-items: center; gap: 9px; }
.case-total { padding: 6px 8px; border: 1px solid #393148; border-radius: 6px; color: #968ca8; font-size: 8px; letter-spacing: .08em; font-weight: 800; white-space: nowrap; }
.case-tools input { width: 155px; height: 32px; padding: 0 9px; border: 1px solid #393248; border-radius: 7px; background: #100e17; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(196,177,255,.09); border-radius: 9px; }
.case-table { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 9px; }
.case-table th { padding: 11px 10px; color: #746c82; background: #171421; border-bottom: 1px solid #302a40; text-align: left; font-size: 7px; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.case-table td { padding: 12px 10px; color: #bdb4ca; border-bottom: 1px solid rgba(196,177,255,.07); vertical-align: top; }
.case-table tbody tr:last-child td { border-bottom: 0; }
.case-table tbody tr:hover { background: rgba(255,255,255,.018); }
.case-table code { color: #baa4ed; font-size: 8px; }
.case-id-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.case-id { user-select: all; }
.copy-id { width: 19px; height: 19px; display: inline-grid; place-items: center; border: 1px solid #393148; border-radius: 5px; color: #9789b0; background: #211b2d; font-size: 11px; cursor: pointer; }
.copy-id:hover, .copy-id.copied { color: #8fe1ba; border-color: #4b826c; }
.case-subline { display: block; margin-top: 4px; color: #70687d; font-size: 7px; }
.discord-id { color: #938a9f !important; }
.case-tag { display: inline-flex; padding: 4px 6px; border: 1px solid #493a61; border-radius: 5px; color: #c9b7ef; background: rgba(169,138,255,.1); font-size: 7px; font-weight: 850; letter-spacing: .06em; }
.case-ban { color: #ffa0a6; border-color: rgba(250,120,135,.23); background: rgba(250,120,135,.08); }
.case-kick { color: #efc080; border-color: rgba(234,183,109,.23); background: rgba(234,183,109,.08); }
.case-timeout { color: #a6c3ff; border-color: rgba(122,170,255,.23); background: rgba(122,170,255,.08); }
.case-warn { color: #e2c1ff; }
.case-reason { min-width: 170px; max-width: 250px; overflow-wrap: anywhere; line-height: 1.5; }
.case-reason>span { color: #c8bfd4; }
.case-edited { display: block; margin-top: 5px; color: #8f80b6; font-size: 7px; }
.case-date { display: block; white-space: nowrap; color: #b9b0c6; }
.case-edit { min-width: 100px; }
.case-edit summary { display: inline-flex; align-items: center; gap: 6px; color: #c3aafa; cursor: pointer; font-size: 8px; font-weight: 750; white-space: nowrap; list-style: none; }
.case-edit summary::-webkit-details-marker { display: none; }
.case-edit summary span { font-size: 12px; }
.case-edit form { display: grid; gap: 8px; min-width: 210px; padding-top: 10px; }
.case-edit .field textarea { min-height: 66px; }
.case-edit small { color: #81788f; font-size: 7px; }
.case-table-footer { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px 0; color: #6f687d; font-size: 8px; }
.case-table-footer code { color: #a998d0; }
.empty-inline { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 30px 15px; border: 1px dashed #3a3249; border-radius: 9px; color: #8c8399; }
.empty-inline-icon { color: #b7a1e7; font-size: 22px; }
.empty-inline strong { color: #d6cde1; font-size: 11px; }
.empty-inline span { font-size: 9px; }
.guild-footer-note { display: flex; align-items: center; gap: 10px; margin-top: 27px; padding: 5px 3px; }
.guild-footer-note .roo-mark { width: 33px; height: 33px; }
.guild-footer-note>span:nth-child(2) { flex: 1; }
.guild-footer-note strong, .guild-footer-note small { display: block; }
.guild-footer-note strong { color: #bdb2cd; font-size: 9px; }
.guild-footer-note small { color: #756d83; font-size: 8px; }
.guild-footer-version { color: #645c70; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.error-shell { max-width: 520px; margin: 100px auto; padding: 30px; text-align: center; }
.error-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 16px; color: #ffabb2; background: #30223b; font-size: 24px; font-weight: 800; }
.error-shell h1 { margin: 12px 0; font-size: 33px; }
.error-shell p { margin-bottom: 24px; color: #9b91a8; font-size: 12px; }
/* Landing page */
.landing-shell { max-width: 1320px; margin: 0 auto; padding: 66px 34px 84px; }
.hero { display: grid; grid-template-columns: 1fr .98fr; align-items: center; gap: 55px; min-height: 485px; }
.hero-copy { max-width: 630px; }
.hero h1 { margin: 20px 0; color: #f5effb; font-size: clamp(42px, 5vw, 65px); line-height: 1.04; letter-spacing: -.06em; font-weight: 900; }
.hero h1 span, .section-heading h2 span { color: #b396ff; }
.hero-subtitle { max-width: 550px; margin-bottom: 27px; color: #aaa1b7; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 13px 18px; flex-wrap: wrap; margin-top: 26px; color: #8c829b; font-size: 9px; }
.hero-meta span::first-letter { color: var(--green); }
.hero-visual { overflow: hidden; border: 1px solid #3a304d; border-radius: 17px; background: #13111c; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.window-bar { height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #302a3e; background: #1a1724; }
.window-bar>span { width: 6px; height: 6px; border-radius: 50%; background: #6d6478; }
.window-bar small { margin-left: 8px; color: #827990; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.mock-layout { display: grid; grid-template-columns: 47px 1fr; min-height: 365px; }
.mock-sidebar { display: flex; align-items: center; flex-direction: column; gap: 17px; padding: 15px 0; border-right: 1px solid #2e283b; background: #171421; }
 .mock-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(140deg,#a98aff,#6845bf); font-size: 13px; font-weight: 900; }
.mock-sidebar i { width: 16px; height: 16px; border-radius: 6px; background: #383147; }
.mock-sidebar i.active { background: #9876eb; box-shadow: 0 0 12px rgba(152,118,235,.45); }
.mock-sidebar-bottom { width: 18px; height: 18px; margin-top: auto; border-radius: 50%; background: #3b344c; }
.mock-main { min-width: 0; padding: 21px 20px; }
.mock-title small, .mock-stats small, .mock-panel-head small { display: block; color: #827990; font-size: 7px; letter-spacing: .13em; }
.mock-title strong { display: block; margin-top: 4px; color: #ece5f5; font-size: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 16px 0; }
.mock-stats>div { padding: 11px; border: 1px solid #332c43; border-radius: 9px; background: #1c1828; }
.mock-stats b { display: inline-block; margin-right: 6px; color: #f4effb; font-size: 21px; }
.mock-stats em { color: var(--green); font-size: 8px; font-style: normal; }
.mock-panel { padding: 12px; border: 1px solid #342d44; border-radius: 10px; background: #1b1725; }
.mock-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mock-panel-head strong { color: #e8e0f0; font-size: 9px; }
.mock-module { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #312a3d; }
.mock-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #c9b7ff; background: #302542; }
.mock-module>span:nth-child(2) { flex: 1; min-width: 0; }
.mock-module b, .mock-module small { display: block; }
.mock-module b { color: #e5deec; font-size: 8px; }
.mock-module small { color: #817890; font-size: 7px; }
.status-on, .status-off { font-size: 7px; letter-spacing: .1em; }
.status-on { color: var(--green); }
.status-off { color: #858093; }
.mock-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; color: #766d82; font: 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
.mock-bottom i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.feature-section { padding: 95px 0 55px; }
.section-heading { margin-bottom: 35px; text-align: center; }
.section-heading h2 { margin: 12px 0; color: #f2ecf8; font-size: clamp(29px,4vw,42px); line-height: 1.15; letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.feature-card { min-height: 170px; padding: 21px; border: 1px solid #302a40; border-radius: 13px; background: linear-gradient(145deg, rgba(29,25,41,.9), rgba(19,17,27,.9)); }
.feature-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(169,138,255,.15); border-radius: 10px; color: #c7b2ff; background: rgba(169,138,255,.11); font-size: 15px; }
.feature-card h3 { margin: 15px 0 6px; color: #e8e1ef; font-size: 12px; font-weight: 800; }
.feature-card p { margin: 0; color: #91889d; font-size: 10px; line-height: 1.8; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding: 29px 32px; border: 1px solid #493765; border-radius: 15px; background: linear-gradient(110deg, rgba(85,59,130,.32), rgba(25,21,36,.88)); }
.cta-panel h2 { margin: 8px 0 3px; color: #efe8f8; font-size: 21px; letter-spacing: -.03em; }
.cta-panel p { margin: 0; color: #9e94ac; font-size: 10px; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .side-nav { padding-left: 12px; padding-right: 12px; }
  .app-content { padding-left: 25px; padding-right: 25px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { gap: 34px; }
}
@media (max-width: 800px) {
  .topbar { height: 68px; padding: 0 17px; }
  .topbar-right { gap: 13px; }
  .top-link, .user-name, .logout-form { display: none; }
  .sidebar-logout { display: block; }
  .mobile-menu { display: flex; }
  .app-shell { display: block; min-height: calc(100vh - 68px); }
  .side-nav { position: fixed; top: 68px; bottom: 0; left: 0; z-index: 42; width: min(290px, 86vw); min-height: 0; overflow-y: auto; border-right: 1px solid #493b60; box-shadow: 25px 0 60px rgba(0,0,0,.35); transform: translateX(-105%); transition: transform .22s ease; }
  .side-nav.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 68px 0 0; z-index: 40; display: block; visibility: hidden; opacity: 0; background: rgba(4,3,8,.68); transition: opacity .2s ease, visibility .2s ease; }
  .sidebar-scrim.is-visible { visibility: visible; opacity: 1; }
  body.sidebar-open { overflow: hidden; }
  .app-content { max-width: 100%; padding: 24px 20px 48px; }
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { width: min(100%, 670px); margin: 0 auto; transform: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .topbar { height: 64px; }
  .brand .roo-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 7px; }
  .avatar-fallback { width: 28px; height: 28px; }
  .side-nav { top: 64px; }
  .sidebar-scrim { inset: 64px 0 0; }
  .app-content { padding: 20px 14px 40px; }
  .content-topline { margin-bottom: 20px; }
  .topline-date { font-size: 7px; }
  .dashboard-heading, .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-heading h1 { font-size: 31px; }
  .dashboard-heading>.button { width: 100%; }
  .overview-strip { align-items: flex-start; padding: 14px; }
  .overview-copy { align-items: flex-start; gap: 10px; }
  .overview-symbol { width: 39px; height: 39px; }
  .overview-copy strong { font-size: 10px; }
  .overview-copy span { font-size: 8px; line-height: 1.5; }
  .overview-count { min-width: 75px; padding-left: 12px; }
  .overview-count strong { font-size: 21px; }
  .overview-count span { font-size: 6px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .server-search { width: 100%; }
  .server-grid { grid-template-columns: 1fr; }
  .dashboard-footnote { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-footnote>a { margin-left: 47px; }
  .guild-hero { align-items: flex-start; flex-direction: column; padding: 15px; }
  .guild-hero-main { align-items: flex-start; gap: 12px; }
  .guild-avatar-large { width: 49px; height: 49px; border-radius: 14px; font-size: 19px; }
  .guild-title h1 { font-size: 23px; }
  .guild-title p { font-size: 9px; }
  .guild-hero>.button { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 25px; }
  .stat-card { padding: 11px; }
  .stat-card>strong { font-size: 22px; }
  .stat-top { font-size: 7px; }
  .save-indicator { display: none; }
  .settings-card { padding: 15px; }
  .settings-card-heading { gap: 10px; }
  .settings-card-heading h2 { font-size: 15px; }
  .settings-card-heading p { font-size: 9px; }
  .module-grid, .field-grid, .three-cols, .four-cols { grid-template-columns: 1fr; }
  .module-card-copy p { min-height: 0; }
  .log-channel-row { grid-template-columns: 31px minmax(0,1fr) 34px; gap: 9px; }
  .log-channel-info { grid-column: 2; }
  .channel-field { grid-column: 2 / 3; }
  .channel-field>span { display: block; }
  .switch-inline { grid-column: 3; grid-row: 1 / span 2; }
  .log-channel-row:first-child { grid-template-columns: 31px minmax(0,1fr); }
  .log-channel-row:first-child .channel-field { grid-column: 2 / 3; }
  .inline-note { align-items: flex-start; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .sticky-save { align-items: center; flex-direction: row; }
  .sticky-save>.button { min-height: 39px; padding: 0 12px; }
  .history-heading { align-items: flex-start; flex-direction: column; }
  .case-tools { width: 100%; }
  .case-tools input { flex: 1; }
  .case-table-footer { flex-direction: column; gap: 5px; }
  .guild-footer-version { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .landing-shell { padding: 43px 17px 55px; }
  .hero h1 { font-size: 43px; }
  .hero-subtitle { font-size: 12px; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .mock-layout { min-height: 330px; }
  .mock-main { padding: 16px 13px; }
  .feature-section { padding-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 31px; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 22px; }
  .cta-panel>.button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.reason-history { margin-top: 6px; }
.reason-history summary { color: #b9a1ed; font-size: 7px; cursor: pointer; font-weight: 750; }
.revision-list { display: grid; gap: 7px; min-width: 210px; margin-top: 7px; }
.revision-list article { display: grid; gap: 4px; padding: 8px; border: 1px solid #393148; border-radius: 7px; background: #171321; }
.revision-list article>span { color: #847a93; font-size: 7px; }
.revision-list article>small { color: #b8afc4; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.revision-list article>small b { color: #91859f; font-weight: 750; }

/* Security controls and incident monitoring */
.security-module-divider { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:25px 0 14px; padding-top:18px; border-top:1px solid #30283d; }
.security-module-divider>span { color:#c7b5e8; font-size:8px; font-weight:850; letter-spacing:.13em; }
.security-module-divider>small { color:#7f758e; font-size:8px; text-align:right; }
.security-module { border-color:#44324b; background:linear-gradient(145deg,rgba(40,25,45,.72),rgba(18,16,25,.95)); }
.trust-grid { margin-top:15px; }
.field select[multiple] { min-height:118px; padding:7px; }
.field select[multiple] option { padding:5px 7px; border-radius:4px; }
.incident-card { margin-bottom:18px; }
.incident-list { display:grid; }
.incident-row { display:flex; align-items:flex-start; gap:13px; padding:14px 2px; border-top:1px solid #302a3b; }
.incident-mark { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:1px solid #5a3c50; border-radius:10px; color:#f3a8bb; background:rgba(164,61,93,.12); font-size:17px; }
.incident-mark.contained { color:#ffb2a0; border-color:#74483d; background:rgba(180,81,55,.14); }
.incident-main { min-width:0; flex:1; }
.incident-title { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.incident-title strong { color:#e9e2f1; font-size:10px; }
.incident-status { padding:4px 6px; border-radius:5px; color:#e5bb78; background:rgba(175,129,58,.12); font-size:6px; font-weight:850; letter-spacing:.08em; }
.incident-status.contained { color:#a4dfba; background:rgba(53,145,91,.13); }
.incident-status.response_unavailable { color:#f1a8a8; background:rgba(165,58,58,.13); }
.incident-main p { margin:6px 0 4px; color:#b4aabc; font-size:9px; line-height:1.6; }
.incident-main small { color:#786f83; font-size:7px; overflow-wrap:anywhere; }
@media (max-width:600px) {
  .security-module-divider { align-items:flex-start; flex-direction:column; }
  .security-module-divider>small { text-align:left; }
  .incident-row { gap:9px; }
  .incident-main p { font-size:8px; }
}

/* Verification and sharing network settings */
.sharing-status-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 15px; }
.sharing-status-row > div { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.sharing-status-row strong { color: var(--muted); font-size: 10px; }
.sharing-status-row span:not(.incident-status) { color: var(--text); font-size: 10px; font-weight: 750; }
.sharing-copy { max-width: 900px; margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sharing-toggle-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.sharing-toggle-form > span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 180px; }
.sharing-toggle-form strong { color: var(--text); font-size: 11px; }
.sharing-toggle-form small { color: var(--muted); font-size: 9px; }
@media (max-width: 600px) {
  .sharing-toggle-form .button { width: 100%; }
  .sharing-status-row > div { width: 100%; justify-content: space-between; }
}

.admin-decision-form { display: grid; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.admin-decision-form .form-actions { justify-content: flex-start; flex-wrap: wrap; }

/* 1.3.1 dashboard polish: clearer hierarchy, touch targets and mobile layouts */
.topbar { min-height: 72px; }
.brand { gap: 14px; }
.brand .roo-mark { width: 46px; height: 46px; }
.brand-copy strong { font-size: 14px; letter-spacing: .16em; }
.brand-copy small { font-size: 9px; }
.app-shell { grid-template-columns: 258px minmax(0, 1fr); }
.side-nav { position: sticky; top: 72px; height: calc(100vh - 72px); min-height: 560px; align-self: start; }
.side-link { min-height: 44px; font-size: 12px; border-radius: 10px; }
.side-label { font-size: 9px; }
.app-content { padding-top: 34px; }
.page-heading h1 { font-size: clamp(32px, 3.5vw, 46px); }
.page-heading p, .section-title-row p { font-size: 12px; }
.overview-strip, .server-card, .settings-card, .stat-card { box-shadow: 0 12px 34px rgba(0,0,0,.12); }
.server-card { padding: 20px; border-radius: 16px; }
.server-meta h3 { font-size: 14px; }
.server-meta>span { font-size: 10px; }
.server-label, .installed-pill, .missing-pill { font-size: 9px; }
.button { min-height: 46px; font-size: 12px; }
.button-small { min-height: 39px; }
.settings-card { border-radius: 17px; padding: 24px; }
.settings-card-heading h2 { font-size: 19px; }
.settings-card-heading p { font-size: 12px; line-height: 1.65; }
.field>span { font-size: 11px; }
.field input, .field textarea, .field select { min-height: 42px; font-size: 12px; }
.field small, .inline-note p { font-size: 10px; }
.module-card { border-radius: 13px; }
.sticky-save { bottom: max(12px, env(safe-area-inset-bottom)); padding: 13px 15px; }
.sticky-save>div>span:last-child strong { font-size: 11px; }
.sticky-save>div>span:last-child small { font-size: 9px; }
.error-page-shell { min-height: min(760px, calc(100vh - 145px)); display: grid; place-items: center; padding: 44px 20px; }
.error-shell { width: min(100%, 650px); margin: 0; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(196,177,255,.13); border-radius: 24px; background: linear-gradient(145deg, rgba(27,23,39,.94), rgba(15,13,22,.96)); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.error-mark { width: 68px; height: 68px; margin-bottom: 25px; border-radius: 20px; font-size: 29px; }
.error-shell .eyebrow { font-size: 10px; }
.error-shell h1 { margin: 17px 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
.error-shell p { max-width: 480px; margin: 0 auto 27px; font-size: 14px; line-height: 1.75; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; }
.error-help { display: block; margin-top: 22px; color: #716980; font-size: 10px; }
@media (max-width: 800px) {
  .topbar { min-height: 68px; }
  .app-shell { display: block; }
  .side-nav { position: fixed; top: 68px; height: auto; min-height: 0; }
  .brand .roo-mark { width: 42px; height: 42px; }
  .app-content { padding: 25px 22px 50px; }
  .server-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .error-page-shell { min-height: calc(100svh - 150px); }
}
@media (max-width: 600px) {
  .topbar { min-height: 66px; padding-inline: 15px; }
  .brand { gap: 10px; }
  .brand .roo-mark { width: 39px; height: 39px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 7px; letter-spacing: .18em; }
  .app-content { padding: 22px 15px calc(42px + env(safe-area-inset-bottom)); }
  .content-topline { align-items: flex-start; }
  .breadcrumb { font-size: 8px; flex-wrap: wrap; }
  .topline-date { font-size: 7px; }
  .page-heading h1 { font-size: 32px; }
  .overview-strip { gap: 10px; }
  .server-grid { grid-template-columns: 1fr; gap: 11px; }
  .server-card { padding: 17px; }
  .settings-card { padding: 17px; }
  .settings-card-heading { margin-bottom: 15px; }
  .settings-card-heading h2 { font-size: 17px; }
  .field-grid, .module-grid, .three-cols, .four-cols { grid-template-columns: minmax(0,1fr); }
  .log-channel-row { grid-template-columns: 32px minmax(0,1fr) 34px; }
  .sticky-save { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); gap: 9px; }
  .sticky-save>div>span:last-child small { display: none; }
  .sticky-save>.button { min-height: 42px; white-space: nowrap; }
  .error-page-shell { min-height: calc(100svh - 142px); padding: 24px 14px; }
  .error-shell { padding: 30px 20px; border-radius: 19px; }
  .error-shell h1 { font-size: 32px; }
  .error-shell p { font-size: 13px; }
  .error-actions { flex-direction: column; }
  .error-actions .button { width: 100%; }
}


/* Roo Protector brand refresh: wolf-shield artwork, violet/cyan security palette. */
.roo-mark { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.brand .roo-mark { width: 48px; height: 48px; }
.button-primary { background: linear-gradient(115deg, #8055ed 0%, #586ef0 58%, #08bfe9 100%); box-shadow: 0 8px 24px rgba(61, 94, 245, .22); }
.button-primary:hover { background: linear-gradient(115deg, #966fff 0%, #6680ff 58%, #27d2f4 100%); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #24c9f4; }
.brand-copy small { color: #91a5d8; }
.mock-logo { overflow: hidden; background: #090e20; border: 1px solid rgba(71,157,255,.45); }
.mock-logo img { width: 100%; height: 100%; object-fit: cover; }
