:root { --site-accent: #168df0; color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #030a13; color: #e8f1ff; } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; background: #030a13; } button, input, select { font: inherit; } button { cursor: pointer; }
.login-screen[hidden], #dashboard[hidden], .panel[hidden] { display: none !important; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 18.5rem minmax(0, 1fr); background: radial-gradient(ellipse at 72% 0, #0d2742 0, transparent 36rem), #030a13; } .sidebar { display: flex; flex-direction: column; padding: 1.35rem .9rem; border-right: 1px solid #163047; background: #06111e; } .brand { display: flex; align-items: center; gap: .8rem; padding: .2rem .55rem 1.5rem; } .brand-mark, .assistant-orb { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid #1684eb; border-radius: 50%; box-shadow: inset 0 0 0 6px #06233d, 0 0 22px #0a8bf855; color: #45b9ff; font-size: 1.4rem; font-weight: 900; } .brand strong { display: block; color: #39aaff; font-size: 1.65rem; letter-spacing: .13em; } .brand small { display: block; margin-top: .1rem; color: #40bdff; font-size: .64rem; letter-spacing: .14em; } nav { display: grid; gap: .35rem; } .nav-link { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: .55rem; color: #9ebee5; font-size: 1rem; text-decoration: none; } .nav-link:hover, .nav-link.active { color: #e4f4ff; background: linear-gradient(100deg, #075ba7, #0a3f72); box-shadow: inset 0 0 0 1px #188de5; } .sidebar-note { margin: auto 1rem .2rem; color: #7197c3; font-style: italic; line-height: 1.45; }
main { min-width: 0; padding: 0 1.25rem 2rem; } .topbar { display: flex; align-items: center; justify-content: space-between; min-height: 4.6rem; border-bottom: 1px solid #163047; gap: 1rem; } .topbar-left { display: flex; align-items: center; gap: .55rem; min-width: 0; flex: 1; } .mobile-menu-button, .menu-backdrop { display: none; } .search-pill { display: flex; align-items: center; gap: .85rem; width: min(52vw, 52rem); padding: .65rem .9rem; border: 1px solid #24425d; border-radius: .55rem; background: #071525; color: #90a9c9; text-align: left; } .search-pill:hover { border-color: #328bd4; color: #d9ecff; } .top-meta { display: flex; align-items: center; gap: .75rem; color: #a9bdd7; } .top-meta strong { color: #eaf4ff; font-size: 1.55rem; } .time-label { font-size: .75rem; } .avatar { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: 50%; background: #0f73ce; color: white; font-weight: 800; }.greeting { padding: 1.15rem .2rem .85rem; }.greeting h1, .login-card h1 { margin: .15rem 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 650; letter-spacing: -.035em; } .eyebrow { margin: 0; color: #53a9f2; font-size: .7rem; font-weight: 800; letter-spacing: .15em; } .muted { color: #8fa9c9; } .greeting p { margin-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr .68fr; gap: .95rem; max-width: 1220px; } .panel { min-width: 0; border: 1px solid #18354e; border-radius: .65rem; padding: 1.15rem; background: linear-gradient(145deg, #071729ee, #06111eee); box-shadow: 0 14px 32px #0000002b; } .panel h2 { margin: 0; color: #e7f0ff; font-size: 1.1rem; font-weight: 650; } .panel h2 small { color: #afc6e4; font-size: .8rem; font-weight: 500; }.panel-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; } .online, .offline { display: flex; align-items: center; gap: .45rem; color: #23dc66; font-size: .82rem; } .offline { color: #e6b45b; } i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; }.metric { margin-top: 1.25rem; }.metric > div:first-child { display: flex; justify-content: space-between; margin-bottom: .45rem; color: #d7e6fa; font-size: .9rem; }.metric b { font-weight: 500; }.bar { height: .65rem; overflow: hidden; border-radius: 1rem; background: #11293f; }.bar i { display: block; height: 100%; border-radius: inherit; }.cyan { background: #04a9f4; }.violet { background: #6c42ff; }.green { background: #1ed16c; }
.dashboard-grid.subpage { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); max-width: 1100px; }
.dashboard-grid.subpage .panel { grid-column: auto; grid-row: auto; }
.dashboard-grid.subpage .minecraft-log-panel { grid-column: 1 / -1; }
.minecraft-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 1.2rem; }
.minecraft-facts span { display: grid; gap: .2rem; padding: .7rem; border: 1px solid #173b58; border-radius: .45rem; background: #06111d; }
.minecraft-facts small { color: #7696ba; }
.minecraft-facts b { color: #dcecff; font-size: .9rem; }
.tool-form { margin-top: 1rem; }
.tool-form label { display: block; margin-bottom: .4rem; color: #bcd3ed; font-size: .82rem; font-weight: 700; }
.tool-form > div { display: flex; gap: .45rem; }
.tool-form input { min-width: 0; flex: 1; padding: .68rem .75rem; border: 1px solid #274a67; border-radius: .45rem; outline: 0; background: #061321; color: #e9f4ff; }
.tool-form input:focus { border-color: #2495eb; box-shadow: 0 0 0 3px #168def22; }
.form-note { margin: .45rem 0 0; color: #7898b9; font-size: .76rem; }
.tool-result { min-height: 1.25rem; margin: .9rem 0 0; color: #78caff; font-size: .85rem; }
.minecraft-log-panel pre { max-height: 23rem; margin: 1rem 0 0; overflow: auto; padding: .85rem; border: 1px solid #173b58; border-radius: .45rem; background: #020811; color: #9fb9d6; font: .76rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.voxel-panel { grid-column: 2; }.voxel-wake { width: 100%; margin-top: 1.1rem; }.minecraft-summary { grid-column: 1; }.quick-actions { grid-column: 3; grid-row: 1 / span 3; }.large-status { margin: 1.2rem 0 .35rem; color: #cae2ff; font-size: 1.1rem; }.button-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }.primary, .soft, .danger, .action-button { border: 1px solid #2a638d; border-radius: .45rem; padding: .63rem .85rem; background: #0875d1; color: #f3faff; font-weight: 700; }.primary:hover { background: #1590ee; }.soft { background: #0a1d30; border-color: #244b6b; }.danger { border-color: #83363e; background: #35141b; color: #ff9c9c; }.action-button { display: flex; width: 100%; align-items: center; gap: .75rem; margin-top: .55rem; padding: .67rem .8rem; text-align: left; }.green-action { border-color: #176a4a; background: #09261f; color: #45e68a; }.red-action { border-color: #7c3039; background: #30141a; color: #ff858d; }.amber-action { border-color: #76541f; background: #2d220f; color: #ffc660; }.blue-action { border-color: #1a5782; background: #092033; color: #4bb8ff; }.assistant-panel { grid-column: 2 / span 2; }.assistant-title { display: flex; align-items: center; gap: .8rem; }.assistant-orb { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; font-size: 1rem; }.assistant-title p { margin: .25rem 0 0; font-size: .82rem; }.assistant-form { display: flex; gap: .6rem; margin-top: 1rem; }.assistant-form input { width: 100%; min-width: 0; padding: .75rem .85rem; border: 1px solid #274a67; border-radius: .45rem; outline: 0; background: #061321; color: #e9f4ff; }.assistant-form input:focus { border-color: #2495eb; box-shadow: 0 0 0 3px #168def22; }.assistant-reply { min-height: 1.2rem; margin: .85rem 0 0; color: #b9d2ef; white-space: pre-wrap; }.activity-panel { grid-column: 1 / span 2; }.activity-list { display: grid; gap: .5rem; margin-top: 1rem; color: #a9c4e3; font-size: .9rem; }.activity-item { display: flex; gap: .75rem; }.activity-item time { width: 3.2rem; color: #6d91b8; }.activity-item i { width: .6rem; height: .6rem; margin-top: .35rem; color: #20d66a; }.system-panel { grid-column: 3; }.system-panel ul { display: grid; gap: .8rem; padding: 0; margin: 1rem 0; list-style: none; font-size: .85rem; }.system-panel li { display: flex; justify-content: space-between; gap: .5rem; }.system-panel li span { display: flex; align-items: center; gap: .45rem; }.system-panel i { width: .55rem; height: .55rem; color: #20d66a; }.system-panel b { color: #39e274; font-weight: 500; }.text-button { padding: 0; border: 0; background: none; color: #51b4f3; font-size: .82rem; }.signout { border: 0; background: none; color: #8ba6c4; }.sidebar-signout { width: 100%; margin: auto 0 0; text-align: left; }.sidebar-note { margin: 1rem 1rem .2rem; }.login-screen { display: grid; min-height: 100vh; place-items: center; }.login-card { width: min(100%, 28rem); padding: 2rem; border: 1px solid #1e405d; border-radius: .75rem; background: #081729; box-shadow: 0 30px 80px #0008; }.login-card label { display: block; margin: 1rem 0; color: #c0d4ec; font-size: .9rem; }.login-card input { display: block; width: 100%; margin-top: .4rem; padding: .72rem; border: 1px solid #2b5375; border-radius: .42rem; outline: 0; background: #040d19; color: white; }.login-card input:focus { border-color: #37a5fb; }.full { width: 100%; }.error { min-height: 1.3rem; color: #ff9c9c; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 1050px) { .dashboard-grid { grid-template-columns: 1fr 1fr; }.quick-actions { grid-column: 1 / span 2; grid-row: auto; }.quick-actions .action-button { display: inline-flex; width: auto; margin-right: .3rem; }.assistant-panel, .activity-panel { grid-column: 1 / span 2; }.system-panel { grid-column: auto; } }

@media (max-width: 760px) {
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: min(82vw, 18rem); padding: 1.1rem .8rem calc(1rem + env(safe-area-inset-bottom)); border-right: 1px solid #244c6d; background: #06111efc; box-shadow: 18px 0 45px #000a; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .brand { display: flex; padding: .1rem .45rem 1.2rem; }
  .brand-mark { width: 2.7rem; height: 2.7rem; }
  .brand strong { font-size: 1.25rem; }
  .brand small { display: block; }
  .sidebar-note { display: block; }
  .sidebar nav { display: grid; grid-template-columns: 1fr; gap: .3rem; width: 100%; }
  .nav-link { min-height: 3.1rem; flex-direction: row; justify-content: flex-start; gap: .9rem; padding: .7rem .85rem; border-radius: .55rem; font-size: 1rem; text-align: left; }
  .nav-link span { display: block; overflow: visible; font-size: .92rem; font-weight: 650; line-height: 1.2; white-space: normal; }
  .menu-backdrop { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: #0009; }
  body.menu-open .menu-backdrop { display: block; }
  body.login-mode .sidebar, body.login-mode .menu-backdrop, body.login-mode .mobile-menu-button { display: none; }
  body.login-mode main { padding-bottom: 0; }
  main { width: 100%; padding: 0 .75rem calc(1rem + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 10; min-height: 3.65rem; gap: .5rem; background: #030a13ed; backdrop-filter: blur(12px); }
  .mobile-menu-button { display: grid; flex: 0 0 auto; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid #285477; border-radius: .55rem; background: #081a2a; color: #54b9ff; font-size: 1.35rem; }
  .search-pill { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: .55rem; }
  .search-pill span, .time-label { display: none; }
  .top-meta { gap: .5rem; }
  .top-meta strong { font-size: 1.15rem; }
  .avatar { width: 2.25rem; height: 2.25rem; }
  .greeting { padding: 1rem 0 .75rem; }
  .greeting h1 { font-size: 1.55rem; line-height: 1.15; }
  .greeting .muted { font-size: .85rem; line-height: 1.4; }
  .dashboard-grid, .dashboard-grid.subpage { grid-template-columns: minmax(0, 1fr); gap: .75rem; width: 100%; }
  .dashboard-grid .panel, .dashboard-grid.subpage .panel, .server-panel, .voxel-panel, .minecraft-summary, .quick-actions, .assistant-panel, .activity-panel, .system-panel { grid-column: auto; grid-row: auto; width: 100%; padding: .95rem; }
  .panel-title { align-items: flex-start; }
  .metric > div:first-child { gap: .75rem; }
  .metric b { max-width: 68%; text-align: right; }
  .button-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .button-row button { min-width: 0; min-height: 2.8rem; padding: .6rem .35rem; }
  .quick-actions .action-button { display: flex; width: 100%; min-height: 3rem; margin-right: 0; }
  .assistant-title { align-items: flex-start; }
  .assistant-form input { min-height: 3rem; }
  .assistant-form button { min-width: 3rem; min-height: 3rem; }
  .minecraft-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-form > div { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-form input { grid-column: 1 / -1; min-height: 3rem; }
  #minecraft-message-form > div { grid-template-columns: 1fr; }
  .activity-item { align-items: flex-start; }
  .activity-item span { min-width: 0; overflow-wrap: anywhere; }
  .system-panel li { align-items: center; }
  .login-screen { min-height: 100dvh; }
  .login-card { padding: 1.35rem; }
  button, .nav-link { touch-action: manipulation; }
}

/* Modern interface theme */
:root {
  --surface: rgba(8, 22, 38, .82);
  --surface-strong: rgba(9, 27, 46, .94);
  --border: rgba(96, 174, 238, .2);
  --border-bright: rgba(74, 179, 255, .46);
  --text: #eef7ff;
  --muted-text: #91abc8;
  --accent: #1da1ff;
  --accent-strong: #0876de;
  --success: #2be477;
  --danger: #ff6673;
  --radius: 1rem;
}

html { background: #020812; }
body { position: relative; isolation: isolate; color: var(--text); background: #020812; letter-spacing: -.01em; }
body::before, body::after { position: fixed; z-index: -1; border-radius: 999px; filter: blur(80px); content: ""; pointer-events: none; }
body::before { top: -13rem; right: -8rem; width: 34rem; height: 34rem; background: #075aa033; }
body::after { bottom: -16rem; left: 12%; width: 30rem; height: 30rem; background: #4425c826; }
body.login-mode .sidebar, body.login-mode .menu-backdrop { display: none !important; }
body.login-mode .app-shell { grid-template-columns: minmax(0, 1fr); }
::selection { color: white; background: #148fe6aa; }
* { scrollbar-color: #28506e #07111d; scrollbar-width: thin; }

.app-shell { background: radial-gradient(circle at 65% -10%, #0a315044, transparent 34rem), linear-gradient(145deg, #020812, #06101c 55%, #030a13); }
.sidebar { position: sticky; top: 0; height: 100vh; border-color: var(--border); background: linear-gradient(180deg, rgba(7, 20, 34, .96), rgba(3, 12, 22, .94)); box-shadow: 15px 0 55px #0004; backdrop-filter: blur(22px); }
.brand { padding-top: .35rem; }
.brand-mark, .assistant-orb { border-color: #2aaeff; background: radial-gradient(circle, #0a3458, #061522 64%); box-shadow: inset 0 0 0 6px #061a2c, 0 0 28px #168ff65e; }
.brand strong { background: linear-gradient(90deg, #66c8ff, #168ff3); background-clip: text; color: transparent; }
.nav-link { border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { border-color: #2672a855; background: #0d2942a8; transform: translateX(2px); }
.nav-link.active { border-color: #279cf5aa; background: linear-gradient(110deg, #0874d5d9, #0a477fd9); box-shadow: 0 8px 24px #006fc72c, inset 0 1px #7dd0ff33; }
.sidebar-signout:hover { border-color: #ff697355; background: #42172180; color: #ffb0b6; }

.topbar { position: sticky; top: 0; z-index: 12; border-color: var(--border); background: rgba(2, 9, 17, .76); backdrop-filter: blur(20px); }
.search-pill { border-color: var(--border); border-radius: .8rem; background: rgba(9, 26, 44, .78); box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.search-pill:hover { border-color: var(--border-bright); background: #0b2239; box-shadow: 0 0 0 3px #168def18; }
.avatar { background: linear-gradient(145deg, #168df0, #0755a2); box-shadow: 0 8px 24px #0874c84d, inset 0 1px #8bd5ff55; }
.greeting { padding-top: 1.45rem; }
.greeting h1 { color: #f5f9ff; text-shadow: 0 6px 30px #0008; }
.eyebrow { color: #5fc0ff; }
.muted { color: var(--muted-text); }

.dashboard-grid { gap: 1rem; }
.panel { border-color: var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(9, 28, 48, .88), rgba(5, 16, 29, .88)); box-shadow: 0 20px 45px #0003, inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(16px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.panel:hover { border-color: rgba(83, 171, 237, .34); box-shadow: 0 24px 55px #0005, 0 0 0 1px #0f6daa18; transform: translateY(-2px); }
.panel h2 { color: #f2f7ff; letter-spacing: -.02em; }
.online i, .system-panel i { box-shadow: 0 0 13px currentColor; }
.bar { height: .55rem; background: #10263a; box-shadow: inset 0 1px 3px #0008; }
.bar i { box-shadow: 0 0 14px currentColor; }

.primary, .soft, .danger, .action-button, .mobile-menu-button { min-height: 2.65rem; border-radius: .7rem; transition: transform .16s ease, filter .16s ease, border-color .16s ease, box-shadow .16s ease; }
.primary { border-color: #2ca6ff88; background: linear-gradient(135deg, #118de9, #075db8); box-shadow: 0 8px 22px #0475ce35, inset 0 1px #9adeff55; }
.primary:hover { background: linear-gradient(135deg, #25a3fb, #0872d4); }
.soft { background: #0b2135; }
.danger { background: linear-gradient(135deg, #4c1720, #2d1118); }
.action-button:hover, .primary:hover, .soft:hover, .danger:hover, .mobile-menu-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.action-button:active, .primary:active, .soft:active, .danger:active, .mobile-menu-button:active { transform: translateY(1px); }
button:focus-visible, input:focus-visible, .nav-link:focus-visible { outline: 3px solid #32aaff66; outline-offset: 2px; }

.login-card { border-color: var(--border-bright); border-radius: 1.25rem; background: linear-gradient(145deg, rgba(10, 31, 52, .96), rgba(5, 15, 27, .97)); box-shadow: 0 35px 90px #000b, 0 0 60px #087ad01f; }
.login-card input, .assistant-form input, .tool-form input { border-radius: .7rem; background: rgba(2, 10, 18, .8); }
.activity-item { padding: .35rem .45rem; border-radius: .45rem; }
.activity-item:hover { background: #0d263b99; }
.minecraft-facts span { border-color: var(--border); border-radius: .7rem; background: rgba(4, 14, 24, .72); }

/* Assistant conversation */
.assistant-panel { display: flex; min-height: 28rem; flex-direction: column; }
.dashboard-grid.subpage .assistant-panel { grid-column: 1 / -1; min-height: min(70vh, 44rem); }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.assistant-history { display: flex; min-height: 13rem; max-height: 28rem; flex: 1; flex-direction: column; gap: .85rem; margin-top: 1rem; overflow-y: auto; padding: 1rem; border: 1px solid #173b58; border-radius: .75rem; background: rgba(2, 8, 16, .72); scrollbar-color: #285a80 transparent; }
.dashboard-grid.subpage .assistant-history { max-height: 52vh; }
.assistant-empty { margin: auto; color: #7895b5; font-size: .9rem; text-align: center; }
.chat-message { width: fit-content; max-width: min(82%, 46rem); padding: .75rem .9rem; border: 1px solid #244865; border-radius: .8rem .8rem .8rem .2rem; background: #091d2f; color: #dcecff; }
.chat-message.user { align-self: flex-end; border-color: #1d69a5; border-radius: .8rem .8rem .2rem .8rem; background: #0a4f89; }
.chat-message.chat-error { border-color: #713b43; background: #31171d; color: #ffb2b8; }
.chat-message-label { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: .35rem; color: #72bdf4; font-size: .72rem; }
.chat-message.user .chat-message-label { color: #c9eaff; }
.chat-message-label time { color: #7f9ab7; font-weight: 500; }
.chat-message p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.assistant-form { margin-top: .85rem; }
.assistant-form button:disabled, .assistant-form input:disabled { cursor: wait; opacity: .6; }
.assistant-reply { min-height: 1rem; margin: .45rem 0 0; font-size: .8rem; }

@media (max-width: 760px) {
  .assistant-panel, .dashboard-grid.subpage .assistant-panel { min-height: 30rem; }
  .assistant-header { align-items: flex-start; }
  .assistant-history, .dashboard-grid.subpage .assistant-history { min-height: 17rem; max-height: 55dvh; padding: .75rem; }
  .chat-message { max-width: 92%; }
}

/* System tools */
.dashboard-grid.subpage .system-tools-panel { grid-column: 1 / -1; }
.system-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.system-tool { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; align-items: center; min-width: 0; padding: .8rem; border: 1px solid #244765; border-radius: .7rem; background: rgba(6, 24, 40, .78); color: #dcecff; text-align: left; }
.system-tool:hover { border-color: #2996df; background: rgba(9, 43, 70, .86); }
.system-tool > span { display: grid; grid-row: 1 / 3; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid #27628e; border-radius: .55rem; background: #0a2a44; color: #66c5ff; font-weight: 800; }
.system-tool b { min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.system-tool small { min-width: 0; overflow: hidden; color: #809dbd; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.system-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.system-details > span { display: grid; gap: .25rem; padding: .7rem; border: 1px solid #193b56; border-radius: .6rem; background: rgba(3, 13, 23, .62); }
.system-details small { color: #7895b5; font-size: .72rem; }
.system-details b { color: #dcecff; font-size: .85rem; }
.dashboard-grid.subpage .voxel-performance-panel { grid-column: 1 / -1; }
.voxel-performance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.voxel-performance-metric { min-width: 0; padding: .8rem; border: 1px solid #193b56; border-radius: .7rem; background: rgba(3, 13, 23, .62); }
.voxel-performance-metric > div:first-child { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; color: #d7e6fa; font-size: .85rem; }
.voxel-performance-metric b { min-width: 0; color: #dcecff; font-size: .8rem; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.voxel-storage-metrics { display: contents; }
.voxel-storage-metrics > .muted { grid-column: 1 / -1; margin: 0; padding: .8rem; border: 1px dashed #244765; border-radius: .7rem; }
.voxel-performance-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; }
.voxel-performance-details > span { display: grid; gap: .25rem; min-width: 0; padding: .7rem; border: 1px solid #193b56; border-radius: .6rem; background: rgba(3, 13, 23, .62); }
.voxel-performance-details small { color: #7895b5; font-size: .72rem; }
.voxel-performance-details b { min-width: 0; color: #dcecff; font-size: .8rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .system-tool-grid { grid-template-columns: 1fr; }
  .system-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-tool { min-height: 4.25rem; }
  .voxel-performance-grid { grid-template-columns: minmax(0, 1fr); }
  .voxel-performance-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile layout v35 */
.mobile-topbar-brand { display: none; }

@media (max-width: 760px) {
  html, body { width: 100%; overflow-x: hidden; }
  body { min-width: 0; }
  body.menu-open { overflow: hidden; }
  .app-shell { display: block; width: 100%; min-height: 100dvh; }

  main { width: 100%; min-height: 100dvh; padding: 0 .7rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; z-index: 30; top: 0; min-height: 4rem; margin: 0 -.7rem; padding: max(.55rem, env(safe-area-inset-top)) .7rem .55rem; border-bottom: 1px solid rgba(68, 137, 190, .25); background: rgba(3, 12, 22, .96); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); backdrop-filter: blur(18px); }
  .topbar-left { gap: .65rem; }
  .mobile-menu-button { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; place-items: center; padding: 0; border: 1px solid #285270; border-radius: .65rem; background: #0a1c2c; color: #d8edff; font-size: 1.25rem; }
  .mobile-topbar-brand { display: flex; min-width: 0; flex-direction: column; line-height: 1.05; }
  .mobile-topbar-brand b { color: #62c4ff; font-size: .92rem; letter-spacing: .12em; }
  .mobile-topbar-brand small { margin-top: .22rem; color: #718da9; font-size: .55rem; letter-spacing: .09em; }
  .search-pill { width: 2.75rem; height: 2.75rem; min-height: 0; flex: 0 0 2.75rem; justify-content: center; margin-left: auto; padding: 0; border-radius: .65rem; font-size: 1.2rem; }
  .search-pill span { display: none; }
  .top-meta { flex: 0 0 auto; gap: 0; }
  .top-meta .time-label, .top-meta .avatar { display: none; }
  .top-meta strong { font-size: .95rem; font-variant-numeric: tabular-nums; }

  .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(84vw, 20rem); height: 100dvh; padding: calc(1rem + env(safe-area-inset-top)) .8rem calc(.8rem + env(safe-area-inset-bottom)); overflow-y: auto; border-right: 1px solid #285270; background: #06111e; box-shadow: 24px 0 60px rgba(0, 0, 0, .58); transform: translateX(-105%); transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar .brand { padding: .2rem .45rem 1rem; }
  .sidebar .brand-mark { width: 2.75rem; height: 2.75rem; }
  .sidebar .brand strong { font-size: 1.25rem; }
  .nav-link { min-height: 3.15rem; padding: .8rem .9rem; font-size: .98rem; }
  .sidebar-signout { margin-top: 1rem; }
  .sidebar-note { display: none; }
  .menu-backdrop { position: fixed; z-index: 45; inset: 0; display: none; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0, 5, 10, .68); backdrop-filter: blur(2px); }
  body.menu-open .menu-backdrop { display: block; }

  .greeting { padding: 1rem .15rem .8rem; }
  .greeting h1 { margin-top: .18rem; font-size: 1.45rem; line-height: 1.15; }
  .greeting .muted { margin-top: .45rem; font-size: .8rem; }
  .eyebrow { font-size: .62rem; }

  .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; width: 100%; }
  .dashboard-grid.subpage { grid-template-columns: minmax(0, 1fr); gap: .7rem; width: 100%; }
  .dashboard-grid .panel { min-width: 0; width: 100%; padding: .85rem; border-radius: .8rem; }
  .dashboard-grid:not(.subpage) .server-panel,
  .dashboard-grid:not(.subpage) .assistant-panel,
  .dashboard-grid:not(.subpage) .activity-panel,
  .dashboard-grid:not(.subpage) .system-panel { grid-column: 1 / -1; }
  .dashboard-grid:not(.subpage) .voxel-panel,
  .dashboard-grid:not(.subpage) .minecraft-summary { grid-column: span 1; }
  .dashboard-grid.subpage .panel,
  .dashboard-grid.subpage .server-panel,
  .dashboard-grid.subpage .voxel-panel,
  .dashboard-grid.subpage .minecraft-summary,
  .dashboard-grid.subpage .assistant-panel,
  .dashboard-grid.subpage .activity-panel,
  .dashboard-grid.subpage .system-panel,
  .dashboard-grid.subpage .system-tools-panel { grid-column: 1; grid-row: auto; }

  .panel h2 { font-size: 1rem; }
  .panel h2 small { display: block; margin-top: .15rem; font-size: .68rem; }
  .panel-title { align-items: flex-start; flex-wrap: wrap; }
  .online, .offline { font-size: .7rem; }
  .metric { margin-top: .85rem; }
  .metric > div:first-child { align-items: flex-start; gap: .5rem; font-size: .8rem; }
  .metric b { max-width: 70%; font-size: .75rem; text-align: right; }
  .bar { height: .5rem; }
  .large-status { margin: .85rem 0 .3rem; font-size: .92rem; line-height: 1.3; }
  .voxel-panel .muted, .minecraft-summary .muted { font-size: .72rem; line-height: 1.35; }
  .voxel-wake { min-height: 2.65rem; padding: .55rem; font-size: .78rem; }
  .minecraft-summary .button-row { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-top: .8rem; }
  .minecraft-summary .button-row button { min-height: 2.35rem; padding: .45rem .3rem; font-size: .72rem; }

  .assistant-panel, .dashboard-grid.subpage .assistant-panel { min-height: 30rem; }
  .assistant-header { align-items: flex-start; }
  .assistant-title { min-width: 0; }
  .assistant-orb { width: 2.4rem; height: 2.4rem; flex-basis: 2.4rem; }
  .assistant-history, .dashboard-grid.subpage .assistant-history { min-height: 17rem; max-height: 52dvh; padding: .7rem; }
  .chat-message { max-width: 94%; padding: .65rem .75rem; font-size: .86rem; }
  .assistant-form { gap: .45rem; }
  .assistant-form input { min-height: 3rem; padding: .7rem; }
  .assistant-form button { width: 3rem; min-width: 3rem; min-height: 3rem; padding: 0; }

  .activity-list { font-size: .8rem; }
  .activity-item { gap: .5rem; }
  .activity-item time { width: 2.8rem; flex: 0 0 2.8rem; }
  .system-panel li { font-size: .78rem; }

  .system-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .system-tool { grid-template-columns: 2rem minmax(0, 1fr); min-height: 4.25rem; column-gap: .55rem; padding: .65rem; }
  .system-tool > span { width: 2rem; height: 2rem; }
  .system-tool b { font-size: .76rem; }
  .system-tool small { font-size: .64rem; }
  .system-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .system-details > span { padding: .6rem; }
  .system-details b { font-size: .76rem; }

  .minecraft-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-form > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-form input { grid-column: 1 / -1; min-height: 3rem; }
  #minecraft-message-form > div { grid-template-columns: 1fr; }

  .login-screen { width: 100%; min-width: 0; min-height: 100dvh; overflow: hidden; padding: max(.75rem, env(safe-area-inset-top)) 0 max(.75rem, env(safe-area-inset-bottom)); }
  .login-card { width: calc(100vw - 2rem); min-width: 0; max-width: 27rem; padding: 1.3rem; border-radius: 1rem; }
  .login-card form, .login-card label, .login-card input { min-width: 0; max-width: 100%; }
  .login-card input, .login-card button { min-height: 3rem; }
}

@media (max-width: 350px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid:not(.subpage) .voxel-panel,
  .dashboard-grid:not(.subpage) .minecraft-summary { grid-column: 1; }
  .system-tool-grid { grid-template-columns: 1fr; }
  .mobile-topbar-brand small { display: none; }
}

/* Restricted Minecraft and AI account */
.limited-only, .limited-signout { display: none; }
.limited-account-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .65rem; align-items: end; margin-top: 1rem; }
.limited-account-form label { display: grid; gap: .4rem; color: #a9c4e3; font-size: .78rem; }
.limited-account-form input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .7rem .8rem; border: 1px solid #274a67; border-radius: .65rem; outline: 0; background: rgba(2, 10, 18, .8); color: #e9f4ff; }
.limited-account-form input:focus { border-color: #2495eb; box-shadow: 0 0 0 3px #168def22; }
.status-badge { padding: .3rem .55rem; border: 1px solid #315472; border-radius: 999px; color: #94b8d7; font-size: .7rem; }
.dashboard-grid.subpage .limited-account-panel { grid-column: 1 / -1; }

body.limited-mode .sidebar,
body.limited-mode .menu-backdrop,
body.limited-mode .mobile-menu-button,
body.limited-mode .avatar { display: none !important; }
body.limited-mode .app-shell { grid-template-columns: minmax(0, 1fr); }
body.limited-mode main { width: 100%; max-width: 72rem; margin: 0 auto; }
body.limited-mode .limited-signout,
body.limited-mode .limited-only { display: inline-flex; }
body.limited-mode .dashboard-grid { grid-template-columns: minmax(0, 1fr); max-width: 58rem; margin: 0 auto; }
body.limited-mode .minecraft-summary,
body.limited-mode .assistant-panel { grid-column: 1 / -1; }
body.limited-mode .minecraft-summary .button-row { display: none; }
body.limited-mode .minecraft-summary .limited-only { margin-top: .9rem; }
body.limited-mode .assistant-panel { min-height: min(70vh, 44rem); }
body.limited-mode .assistant-history { max-height: 50vh; }

@media (max-width: 760px) {
  .limited-account-form { grid-template-columns: minmax(0, 1fr); }
  .limited-account-form button { min-height: 3rem; }
  body.limited-mode .topbar { margin: 0 -.7rem; }
  body.limited-mode .topbar-left { flex: 1; }
  body.limited-mode .mobile-topbar-brand { display: flex; }
  body.limited-mode .search-pill { margin-left: auto; }
  body.limited-mode .limited-signout { min-height: 2.75rem; padding: .55rem .7rem; font-size: .75rem; }
  body.limited-mode .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.limited-mode .minecraft-summary,
  body.limited-mode .assistant-panel { grid-column: 1; }
}

/* Minecraft version, world, and address management */
.minecraft-address-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: 1rem; }
.minecraft-address-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .6rem; align-items: center; padding: .75rem; border: 1px solid #1d425f; border-radius: .7rem; background: rgba(3, 14, 24, .7); }
.minecraft-address-grid > .minecraft-public-address { grid-column: 1 / -1; border-color: rgba(24, 167, 255, .7); background: linear-gradient(110deg, rgba(0, 111, 190, .2), rgba(3, 14, 24, .82)); box-shadow: inset 0 0 0 1px rgba(71, 190, 255, .08); }
.minecraft-public-address code { color: #d9f3ff; font-size: .95rem; font-weight: 700; }
.minecraft-address-grid small { grid-column: 1 / -1; color: #7897b8; font-size: .72rem; }
.minecraft-address-grid code { min-width: 0; overflow: hidden; color: #9dd8ff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.minecraft-address-grid button { min-height: 2.2rem; padding: .4rem .65rem; }
.minecraft-management-form { display: grid; gap: .45rem; margin-top: 1rem; color: #a9c4e3; font-size: .8rem; }
.minecraft-management-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.minecraft-management-form select { width: 100%; min-width: 0; min-height: 2.75rem; padding: .65rem .75rem; border: 1px solid #274a67; border-radius: .65rem; outline: 0; background: #061321; color: #e9f4ff; }
.minecraft-management-form select:focus { border-color: #2495eb; box-shadow: 0 0 0 3px #168def22; }
.minecraft-world-form { display: grid; gap: .65rem; margin-top: 1rem; }
.minecraft-world-form label { color: #a9c4e3; font-size: .8rem; }
.minecraft-world-form input[type="file"] { width: 100%; min-width: 0; padding: .7rem; border: 1px dashed #315b7c; border-radius: .65rem; background: rgba(3, 14, 24, .7); color: #a9c4e3; }
.minecraft-world-form input[type="file"]::file-selector-button { margin-right: .65rem; padding: .5rem .7rem; border: 1px solid #2a638d; border-radius: .5rem; background: #0b5792; color: white; cursor: pointer; }
.management-warning { margin: .8rem 0 0; color: #d4ab68; font-size: .75rem; line-height: 1.45; }
.minecraft-world-panel code { color: #9dd8ff; }

@media (max-width: 760px) {
  .minecraft-address-grid { grid-template-columns: minmax(0, 1fr); }
  .minecraft-management-form > div { grid-template-columns: minmax(0, 1fr); }
  .minecraft-management-form button, .minecraft-world-form button { min-height: 3rem; }
}
.minecraft-log-panel pre { border-color: var(--border); border-radius: .75rem; background: #01060d; }
.quick-actions { grid-column: 1 / -1; grid-row: auto; }
.quick-actions-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.quick-actions-heading .eyebrow { margin-bottom: .25rem; }
.quick-actions-ready { display: flex; align-items: center; gap: .4rem; color: var(--success); font-size: .78rem; }
.quick-actions-ready i { width: .55rem; height: .55rem; box-shadow: 0 0 12px currentColor; }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.quick-action-tile { display: flex; min-width: 0; min-height: 5rem; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid var(--border); border-radius: .85rem; color: #eaf5ff; text-align: left; transition: transform .16s ease, border-color .16s ease, filter .16s ease, box-shadow .16s ease; }
.quick-action-tile:hover { border-color: currentColor; filter: brightness(1.12); transform: translateY(-2px); }
.quick-action-tile:active { transform: translateY(1px); }
.quick-action-tile > span:last-child { display: grid; min-width: 0; gap: .2rem; }
.quick-action-tile b { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-tile small { color: #8fa9c5; font-size: .72rem; line-height: 1.25; }
.quick-action-icon { display: grid; flex: 0 0 auto; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid currentColor; border-radius: .7rem; background: #020b14aa; box-shadow: inset 0 1px #ffffff14; font-size: 1.05rem; }
.quick-action-tile.green-action { background: linear-gradient(135deg, #0a3026, #071d19); }
.quick-action-tile.red-action { background: linear-gradient(135deg, #38151d, #211015); }
.quick-action-tile.amber-action { background: linear-gradient(135deg, #38280f, #21190c); }
.quick-action-tile.blue-action { background: linear-gradient(135deg, #0a2942, #071a2b); }
.quick-action-tile.violet-action { background: linear-gradient(135deg, #241d4b, #151329); color: #a994ff; }
.quick-action-tile.cyan-action { background: linear-gradient(135deg, #08303a, #071d25); color: #49d7ed; }

@media (max-width: 760px) {
  .sidebar { position: fixed; height: auto; border-color: var(--border-bright); background: linear-gradient(180deg, rgba(7, 22, 38, .99), rgba(3, 12, 22, .99)); }
  .topbar { margin: 0 -.75rem; padding: 0 .75rem; }
  .mobile-menu-button { border-color: #2c81bc88; background: linear-gradient(145deg, #0c2b45, #071827); box-shadow: inset 0 1px #5cc3ff2b; }
  .panel { border-radius: .9rem; box-shadow: 0 14px 32px #0004; }
  .panel:hover { transform: none; }
  .quick-actions { grid-column: auto; }
  .quick-action-grid { grid-template-columns: 1fr; }
  .quick-action-tile { min-height: 4.5rem; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Detailed activity history */
.activity-summary { margin: .28rem 0 0; color: #718ead; font-size: .75rem; }
.activity-list { gap: .55rem; }
.activity-item { display: grid; grid-template-columns: 9.5rem .65rem minmax(0, 1fr); align-items: start; gap: .75rem; padding: .55rem .6rem; }
.activity-item time { width: auto; color: #6d91b8; font-size: .76rem; line-height: 1.5; }
.activity-item i { width: .6rem; height: .6rem; margin-top: .28rem; color: #20d66a; }
.activity-copy { display: grid; min-width: 0; gap: .18rem; }
.activity-copy strong { color: #dcecff; font-size: .86rem; font-weight: 650; }
.activity-copy small { color: #7895b5; font-size: .75rem; overflow-wrap: anywhere; }
.activity-danger i { color: #ff6672; }
.activity-warning i { color: #ffba52; }
.activity-info i { color: #31aaff; }
.activity-empty { margin: 0; color: #7895b5; }
.dashboard-grid.subpage .activity-list { max-height: 65vh; overflow-y: auto; padding-right: .25rem; scrollbar-color: #285a80 transparent; }

@media (max-width: 760px) {
  .activity-item { grid-template-columns: 7.8rem .55rem minmax(0, 1fr); gap: .45rem; }
  .activity-item time { width: auto; flex: none; font-size: .68rem; }
  .activity-copy strong { font-size: .8rem; }
  .activity-copy small { font-size: .68rem; }
}

/* Safe in-dashboard site editor */
.brand strong, .mobile-topbar-brand b, [data-site-name] { color: var(--site-accent); }
.brand-mark, .assistant-orb { border-color: var(--site-accent); color: var(--site-accent); }
.nav-link.active { border-color: var(--site-accent); box-shadow: inset 0 0 0 1px var(--site-accent), 0 8px 24px #0003; }
.site-editor-panel { grid-column: 1 / -1 !important; }
.site-editor-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); gap: 1rem; margin-top: 1rem; }
.site-editor-form { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .7rem .9rem; align-items: center; }
.site-editor-form > label { color: #bad0e8; font-size: .82rem; font-weight: 700; }
.site-editor-form > input, .site-editor-form select { min-width: 0; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid #274a67; border-radius: .65rem; outline: 0; background: #061321; color: #e9f4ff; }
.site-editor-form > input:focus, .site-editor-form select:focus { border-color: var(--site-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent) 24%, transparent); }
.site-color-row { display: flex; min-height: 2.8rem; align-items: center; gap: .7rem; padding: .35rem .55rem; border: 1px solid #274a67; border-radius: .65rem; background: #061321; }
.site-color-row input { width: 3.2rem; height: 2rem; padding: 0; border: 0; border-radius: .4rem; background: transparent; }
.site-color-row code { color: #a9c9e7; }
.site-editor-actions { display: flex; grid-column: 2; flex-wrap: wrap; gap: .55rem; }
.site-editor-form .tool-result { grid-column: 2; margin: 0; }
.site-preview { --preview-accent: #168df0; min-width: 0; padding: 1rem; border: 1px solid color-mix(in srgb, var(--preview-accent) 65%, #173b58); border-radius: .9rem; background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--preview-accent) 22%, transparent), transparent 55%), #04101d; box-shadow: inset 0 1px #ffffff0d; }
.site-preview-brand { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 1.35rem; }
.site-preview-brand .assistant-orb { border-color: var(--preview-accent); color: var(--preview-accent); }
.site-preview-brand strong { display: block; color: var(--preview-accent); font-size: 1.35rem; letter-spacing: .12em; overflow-wrap: anywhere; }
.site-preview-brand small { display: block; margin-top: .15rem; color: #7ea1c3; font-size: .62rem; letter-spacing: .12em; }
.site-preview h3 { margin: 0 0 .45rem; color: #f1f7ff; font-size: 1.25rem; }
.site-preview > p:last-child { margin: 0; color: #8fa9c9; line-height: 1.45; }
body.compact-layout .dashboard-grid { gap: .6rem; }
body.compact-layout .dashboard-grid .panel { padding: .85rem; }

@media (max-width: 760px) {
  .site-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .site-editor-form { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .site-editor-form > label:not(:first-child) { margin-top: .35rem; }
  .site-editor-actions, .site-editor-form .tool-result { grid-column: 1; }
  .site-editor-actions { display: grid; grid-template-columns: 1fr; margin-top: .45rem; }
}

/* Accent color applies to the complete interactive theme */
.nav-link:hover, .nav-link.active { background: linear-gradient(100deg, color-mix(in srgb, var(--site-accent) 72%, #09223a), color-mix(in srgb, var(--site-accent) 36%, #071827)); }
.brand-mark, .assistant-orb { box-shadow: inset 0 0 0 6px #06233d, 0 0 22px color-mix(in srgb, var(--site-accent) 45%, transparent); }
.primary { border-color: color-mix(in srgb, var(--site-accent) 75%, white); background: linear-gradient(135deg, color-mix(in srgb, var(--site-accent) 88%, white 12%), color-mix(in srgb, var(--site-accent) 72%, #001a35)); box-shadow: 0 8px 22px color-mix(in srgb, var(--site-accent) 28%, transparent), inset 0 1px #ffffff55; }
.primary:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--site-accent) 78%, white 22%), var(--site-accent)); }
.avatar { background: linear-gradient(145deg, color-mix(in srgb, var(--site-accent) 82%, white), color-mix(in srgb, var(--site-accent) 68%, #001a35)); }
.eyebrow, .text-button { color: var(--site-accent); }
.cyan { background: var(--site-accent); }
.search-pill:hover { border-color: var(--site-accent); }

/* Conversational Site Editor */
.site-editor-assistant { margin-top: 1rem; padding: 1rem; border: 1px solid #1d425f; border-radius: .9rem; background: rgba(3, 14, 24, .72); }
.site-editor-assistant h3 { margin: 0; color: #edf7ff; font-size: 1rem; }
.site-editor-assistant .assistant-title p { margin-top: .2rem; }
.site-editor-chat { display: flex; max-height: 16rem; flex-direction: column; gap: .55rem; margin-top: .9rem; overflow-y: auto; padding: .75rem; border: 1px solid #173b58; border-radius: .75rem; background: #020a13; }
.site-editor-message { width: fit-content; max-width: 86%; margin: 0; padding: .62rem .75rem; border: 1px solid #244865; border-radius: .7rem .7rem .7rem .2rem; background: #091d2f; color: #cfe4fa; font-size: .82rem; line-height: 1.45; }
.site-editor-message.user { align-self: flex-end; border-color: var(--site-accent); border-radius: .7rem .7rem .2rem .7rem; background: color-mix(in srgb, var(--site-accent) 38%, #061321); color: white; }
.site-editor-message.error { border-color: #713b43; background: #31171d; color: #ffb2b8; }
.site-editor-assistant-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; margin-top: .7rem; }
.site-editor-assistant-form input { min-width: 0; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #274a67; border-radius: .7rem; outline: 0; background: #061321; color: #e9f4ff; }
.site-editor-assistant-form input:focus { border-color: var(--site-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent) 24%, transparent); }
.site-editor-assistant-form :disabled { cursor: wait; opacity: .65; }

@media (max-width: 760px) {
  .site-editor-assistant-form { grid-template-columns: minmax(0, 1fr); }
  .site-editor-assistant-form button { min-height: 3rem; }
  .site-editor-message { max-width: 94%; }
}
