@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: #12151e;
  --surface-raised: #171b26;
  --surface-soft: #1c2130;
  --line: #ffffff12;
  --line-strong: #ffffff20;
  --text: #f3f5fa;
  --muted: #929aac;
  --muted-soft: #687184;
  --accent: #8993ff;
  --accent-strong: #6976fa;
  --mint: #59dfad;
  --radius: 15px;
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 79% -10%, #3943953b 0, transparent 36%),
    radial-gradient(ellipse at 4% 48%, #283b5b20 0, transparent 30%),
    var(--bg);
  font-family: inherit;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 56px 56px;
  content: '';
  mask-image: linear-gradient(to bottom, #0007, transparent 76%);
  pointer-events: none;
}
.hidden { display: none !important; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid #ffffff0e;
  background: #0c0e14d9;
  backdrop-filter: blur(22px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand b, .brand small { display: block; }
.brand b { font-size: 13px; font-weight: 700; letter-spacing: .015em; }
.brand small { margin-top: 4px; color: var(--muted-soft); font-size: 9px; letter-spacing: .19em; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: linear-gradient(145deg, #a0a8ff, #6875fa 58%, #4c55c9);
  box-shadow: 0 8px 26px #6875fa50, inset 0 1px #ffffff63;
  color: white;
  font-size: 17px;
  font-weight: 800;
}
.brand-mark.large { width: 62px; height: 62px; margin: 0 auto 23px; border-radius: 19px; font-size: 25px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.primary { background: linear-gradient(135deg, #8993ff, #6876f4); box-shadow: 0 7px 24px #6474f43d; color: white; }
.primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 30px #6474f455; }
.wide { width: 100%; margin-top: 12px; }
.account { display: flex; align-items: center; gap: 13px; font-size: 12px; }
.guild-wrap { display: flex; min-height: 40px; align-items: center; gap: 10px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: #171b25; color: var(--muted); font-size: 10px; }
.guild-wrap::before { color: #929cff; content: '◈'; font-size: 14px; }
.guild-wrap select { min-width: 150px; border: 0; outline: 0; background: transparent; color: var(--text); cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 600; }
.guild-wrap option { background: var(--surface); }
.avatar { width: 32px; height: 32px; border: 1px solid #ffffff24; border-radius: 50%; background: var(--surface-soft); object-fit: cover; }
.logout { color: var(--muted); font-size: 11px; text-decoration: none; transition: color .15s; }
.logout:hover { color: #ff858d; }

.login-gate { display: grid; min-height: calc(100vh - 76px); place-items: center; padding: 24px; }
.login-card { position: relative; width: min(100%, 450px); overflow: hidden; padding: 48px 42px 42px; border: 1px solid #ffffff1b; border-radius: 24px; background: linear-gradient(155deg, #1c2232f5, #141720f5 64%); box-shadow: 0 30px 100px #0008, inset 0 1px #ffffff10; text-align: center; }
.login-card::before { position: absolute; top: -115px; left: calc(50% - 145px); width: 290px; height: 220px; border-radius: 50%; background: #7887ff24; content: ''; filter: blur(52px); pointer-events: none; }
.login-card > * { position: relative; }
.eyebrow { margin: 0; color: #a5adff; font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.login-card h1 { margin: 12px 0 10px; font-size: 23px; letter-spacing: -.035em; line-height: 1.45; }
.login-card p:not(.eyebrow) { margin: 10px 0 23px; color: var(--muted); font-size: 12px; line-height: 1.9; }

.layout { display: grid; width: min(100%, 1580px); min-height: calc(100vh - 76px); grid-template-columns: 260px minmax(0, 1fr); margin: 0 auto; }
.sidebar { position: sticky; top: 76px; display: flex; height: calc(100vh - 76px); min-height: 560px; flex-direction: column; padding: 25px 17px 20px; border-right: 1px solid #ffffff0c; background: #11141ccc; backdrop-filter: blur(14px); }
.workspace-card { position: relative; display: flex; align-items: center; gap: 11px; margin: 0 1px 28px; padding: 13px 12px; border: 1px solid #8993ff2e; border-radius: 13px; background: linear-gradient(125deg, #252b45, #191d2a); box-shadow: inset 0 1px #ffffff0b; }
.workspace-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid #aeb5ff40; border-radius: 10px; background: linear-gradient(145deg, #848eff35, #6976f41c); color: #bbc1ff; font-size: 18px; }
.workspace-card b, .workspace-caption { display: block; }
.workspace-card b { margin-top: 4px; font-size: 12px; }
.workspace-caption { color: #8c95ab; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.workspace-live { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px #59dfadaa; }
.nav-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin: 0 0 10px; color: #737d91; }
#category-count { display: grid; min-width: 20px; height: 18px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #8d96a9; font-size: 9px; letter-spacing: 0; }
.sidebar nav { display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #343a4b transparent; }
.nav-item { position: relative; display: flex; min-height: 45px; align-items: center; gap: 10px; padding: 6px 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #9199aa; cursor: pointer; text-align: left; transition: .16s ease; }
.nav-item:hover { border-color: #ffffff0c; background: #ffffff07; color: #e7e9f1; }
.nav-item.active { border-color: #8792ff30; background: linear-gradient(100deg, #7887ff21, #7887ff09); color: #d8dcff; box-shadow: inset 3px 0 #929cff; }
.nav-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid #ffffff0b; border-radius: 8px; background: #ffffff08; font-size: 13px; }
.nav-item.active .nav-icon { border-color: #9ba4ff2c; background: #8792ff20; }
.nav-label { min-width: 0; flex: 1; font-size: 10px; font-weight: 600; }
.nav-label small { display: block; margin-top: 2px; color: #687286; font-size: 8px; font-weight: 500; }
.nav-arrow { color: #5e6679; font-size: 17px; opacity: 0; transform: translateX(-3px); transition: .16s; }
.nav-item.active .nav-arrow, .nav-item:hover .nav-arrow { opacity: 1; transform: none; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 9px 2px; border-top: 1px solid #ffffff0d; }
.db-indicator { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px #59dfad8a; }
.sidebar-foot b, .sidebar-foot small { display: block; }
.sidebar-foot b { font-size: 10px; font-weight: 600; }
.sidebar-foot small { margin-top: 4px; color: #788194; font-size: 9px; }

.content { width: 100%; max-width: 1120px; padding: 43px clamp(22px, 5vw, 72px) 32px; margin: 0 auto; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; margin-bottom: 23px; border-bottom: 1px solid #ffffff10; }
.title-block { display: flex; align-items: center; gap: 15px; min-width: 0; }
.title-block .eyebrow { margin-bottom: 7px; color: #969eff; }
.section-icon { display: grid; width: 51px; height: 51px; flex: 0 0 auto; place-items: center; border: 1px solid #9ba4ff35; border-radius: 15px; background: radial-gradient(circle at 25% 20%, #a3aaff35, #7887ff16 60%, #7887ff08); box-shadow: 0 8px 28px #5967ef1c, inset 0 1px #ffffff14; color: #c2c7ff; font-size: 22px; }
.content-head h1 { margin: 0 0 5px; font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; letter-spacing: -.04em; }
.content-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.save-state-wrap { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 7px; }
.sync-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #59dfad28; border-radius: 7px; background: #59dfad0c; color: #9de9ca; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.sync-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px var(--mint); }
.save-state { color: #8790a3; font-size: 9px; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.setting-card { position: relative; min-width: 0; overflow: hidden; padding: 17px 18px 15px; border: 1px solid #ffffff12; border-radius: var(--radius); background: linear-gradient(145deg, #191d28, #141720 82%); box-shadow: 0 8px 25px #00000013, inset 0 1px #ffffff08; transition: border-color .18s, transform .18s, background .18s; }
.setting-card::after { position: absolute; top: -35px; right: -38px; width: 90px; height: 90px; border-radius: 50%; background: #8792ff0a; content: ''; filter: blur(20px); pointer-events: none; }
.setting-card:hover { transform: translateY(-2px); border-color: #a3aaff29; background: linear-gradient(145deg, #1c2130, #151821 82%); }
.setting-card.full { grid-column: 1 / -1; }
.setting-head { position: relative; z-index: 1; display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.setting-label { color: #e6e8f0; font-size: 11px; font-weight: 600; }
.setting-help { margin-top: 5px; color: #828b9e; font-size: 9px; line-height: 1.65; }
.field-origin { display: inline-block; margin-top: 7px; color: #758097; font-size: 8px; }
.field-control { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #ffffff16; border-radius: 9px; outline: none; background: #0e1118b8; color: var(--text); font-family: inherit; font-size: 11px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field-control:disabled { border-color: #ffffff0e; background: #0e111866; color: #aeb5c3; cursor: default; opacity: 1; }
.field-control:focus { border-color: #929cff9c; background: #10131c; box-shadow: 0 0 0 3px #7887ff18; }
.field-control::placeholder { color: #60697b; }
textarea.field-control { min-height: 86px; resize: vertical; line-height: 1.65; }
textarea.json-control { min-height: 190px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; tab-size: 2; white-space: pre; }
select.field-control { cursor: pointer; }
select.field-control option { background: #171b26; color: var(--text); }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type='color'] { width: 44px; height: 39px; padding: 4px; border: 1px solid #ffffff20; border-radius: 9px; outline: 0; background: #0e1118; cursor: pointer; }
.color-field input[type='color']::-webkit-color-swatch-wrapper { padding: 1px; }
.color-field input[type='color']::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-field .field-control { max-width: 145px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; }
.switch { position: relative; width: 40px; height: 23px; flex: 0 0 auto; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border: 1px solid #ffffff14; border-radius: 20px; background: #323846; cursor: pointer; transition: background .2s, box-shadow .2s; }
.switch span::before { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #d7dbe5; box-shadow: 0 1px 4px #0008; content: ''; transition: transform .2s, background .2s; }
.switch input:checked + span { border-color: #59dfad50; background: #35b982; box-shadow: 0 0 14px #35b9822a; }
.switch input:checked + span::before { transform: translateX(17px); background: white; }
.switch input:focus-visible + span { outline: 2px solid #a9afff; outline-offset: 3px; }
.field-actions { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.edit-button, .save-button { min-height: 30px; padding: 0 11px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 700; transition: .16s; }
.edit-button { border: 1px solid #ffffff18; background: #ffffff08; color: #b5bdcc; }
.edit-button:hover { border-color: #ffffff34; background: #ffffff10; color: white; }
.save-button { position: relative; z-index: 1; border: 1px solid #8993ff36; background: linear-gradient(120deg, #8993ff20, #8993ff0d); color: #bbc1ff; }
.save-button:hover { border-color: #a5adff78; background: #8993ff2e; color: white; }
.save-button:disabled { border-color: #ffffff0e; background: #ffffff05; color: #70798b; cursor: not-allowed; opacity: .75; }
.switch input:disabled + span { cursor: progress; opacity: .6; }
.empty { padding: 48px 20px; border: 1px dashed #ffffff22; border-radius: var(--radius); background: #ffffff04; color: var(--muted); font-size: 12px; text-align: center; }
.content-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 24px; margin-top: 29px; border-top: 1px solid #ffffff0c; color: #60697a; font-size: 8px; letter-spacing: .08em; }
.content-footer span:last-child { letter-spacing: 0; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; transform: translateY(8px); border: 1px solid #59dfad77; border-radius: 11px; background: #1a2030; box-shadow: 0 12px 40px #0007; color: var(--text); font-size: 11px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: none; opacity: 1; }

.server-page { width: min(100% - 40px, 1080px); min-height: calc(100vh - 76px); padding: 58px 0 28px; margin: 0 auto; }
.server-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 3px 23px; border-bottom: 1px solid #ffffff10; }
.server-page-head .eyebrow { margin-bottom: 10px; }
.server-page-head h1 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.045em; }
.server-page-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.server-count { display: flex; min-width: 88px; flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px; border: 1px solid #ffffff14; border-radius: 12px; background: linear-gradient(145deg, #1b2030, #141720); }
.server-count b { color: #c6cbff; font-size: 21px; letter-spacing: -.04em; }
.server-count small { color: #848da1; font-size: 9px; }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding-top: 22px; }
.server-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid #ffffff14; border-radius: 16px; background: linear-gradient(145deg, #1a1e2a, #13161f 80%); box-shadow: 0 12px 34px #00000018, inset 0 1px #ffffff08; transition: transform .18s, border-color .18s, box-shadow .18s; }
.server-card::before { position: absolute; top: -85px; right: -48px; width: 190px; height: 155px; border-radius: 50%; background: #7887ff16; content: ''; filter: blur(42px); pointer-events: none; }
.server-card:hover { transform: translateY(-3px); border-color: #929cff43; box-shadow: 0 18px 42px #00000030, 0 0 28px #7887ff0a; }
.server-card-main { position: relative; display: flex; min-height: 86px; align-items: center; gap: 15px; }
.server-card-icon { position: relative; display: grid; width: 62px; height: 62px; flex: 0 0 auto; overflow: hidden; place-items: center; border: 1px solid #aab0ff35; border-radius: 18px; background: linear-gradient(145deg, #333b66, #222844); box-shadow: 0 8px 22px #0004, inset 0 1px #ffffff20; }
.server-icon-fallback { color: #e4e6ff; font-size: 23px; font-weight: 700; }
.server-card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.server-card-info { min-width: 0; }
.server-card-caption { color: #8e98b1; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.server-card-info h2 { overflow: hidden; margin: 5px 0 7px; font-size: 16px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.server-connected { display: inline-flex; align-items: center; gap: 6px; color: #8f9bae; font-size: 9px; }
.server-connected i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px #59dfad99; }
.server-card-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 15px; border-top: 1px solid #ffffff10; }
.server-card-footer > span { color: #778195; font-size: 9px; }
.manage-server-button { min-height: 34px; gap: 10px; padding: 0 12px; border-color: #8993ff55; background: linear-gradient(130deg, #8993ff2b, #6976fa20); color: #d5d8ff; font-size: 10px; }
.manage-server-button span { color: #aab1ff; font-size: 13px; transition: transform .16s; }
.manage-server-button:hover { border-color: #aab1ff; background: linear-gradient(130deg, #8993ff4a, #6976fa31); color: white; }
.manage-server-button:hover span { transform: translate(2px, -2px); }
.manage-server-button:disabled { cursor: progress; opacity: .65; }
.server-empty { max-width: 560px; padding: 48px 25px; margin: 54px auto 0; border: 1px solid #ffffff13; border-radius: 18px; background: linear-gradient(145deg, #191d28, #13161f); box-shadow: 0 18px 50px #0003; text-align: center; }
.empty-server-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; border: 1px solid #929cff36; border-radius: 18px; background: #8993ff14; color: #b6bdff; font-size: 27px; }
.server-empty .eyebrow { color: #858da1; }
.server-empty h2 { margin: 8px 0; font-size: 20px; letter-spacing: -.03em; }
.server-empty p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.server-page > .content-footer { margin-top: 42px; }
.content-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.back-button { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #ffffff16; border-radius: 8px; background: #ffffff06; color: #aab2c2; cursor: pointer; font-family: inherit; font-size: 9px; font-weight: 600; transition: .15s; }
.back-button:hover { border-color: #9ba4ff44; background: #8993ff10; color: #e0e3ff; }
.back-button span { font-size: 14px; }

@media (min-width: 1500px) { .layout { grid-template-columns: 278px minmax(0, 1fr); } }
@media (max-width: 840px) {
  .layout { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .content { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 680px) {
  .topbar { min-height: 68px; height: auto; gap: 10px; padding: 11px 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand b { font-size: 11px; }
  .brand small { font-size: 7px; }
  .account { justify-content: flex-end; gap: 8px; }
  #user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .layout { display: flex; flex-direction: column; }
  .sidebar { position: relative; top: auto; height: auto; min-height: auto; padding: 11px 12px 9px; border-right: 0; border-bottom: 1px solid #ffffff0e; }
  .workspace-card, .nav-heading, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .nav-item { min-height: 38px; flex: 0 0 auto; gap: 7px; padding: 5px 9px; }
  .nav-icon { width: 25px; height: 25px; font-size: 11px; }
  .nav-label { font-size: 9px; }
  .nav-label small, .nav-arrow { display: none; }
  .content { padding: 24px 15px 24px; }
  .server-page { width: calc(100% - 30px); min-height: calc(100vh - 68px); padding-top: 34px; }
  .server-page-head { align-items: flex-start; padding-bottom: 17px; }
  .server-page-head h1 { font-size: 23px; }
  .server-page-head p:not(.eyebrow) { max-width: 300px; font-size: 10px; }
  .server-count { min-width: 65px; padding: 9px 10px; }
  .server-grid { grid-template-columns: 1fr; gap: 11px; padding-top: 15px; }
  .server-card { padding: 15px; }
  .server-card-icon { width: 54px; height: 54px; border-radius: 15px; }
  .server-card-info h2 { font-size: 14px; }
  .server-empty { padding: 37px 17px; margin-top: 35px; }
  .content-actions { align-items: flex-end; gap: 9px; }
  .back-button { min-height: 31px; padding: 0 8px; font-size: 8px; }
  .sync-chip { display: none; }
  .content-head { align-items: flex-start; padding-bottom: 18px; margin-bottom: 17px; }
  .title-block { gap: 10px; }
  .section-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
  .content-head h1 { font-size: 19px; }
  .content-head p:not(.eyebrow) { max-width: 340px; font-size: 10px; }
  .sync-chip { padding: 5px 6px; font-size: 7px; }
  .settings-grid { grid-template-columns: 1fr; gap: 10px; }
  .setting-card.full { grid-column: auto; }
  .setting-card { padding: 15px; }
  .content-footer { flex-direction: column; gap: 7px; }
  .login-card { padding: 38px 23px 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }


.channel-restriction-list { display: grid; gap: 10px; }
.channel-restriction-card { padding: 13px; border: 1px solid #ffffff12; border-radius: 11px; background: linear-gradient(145deg, #121620, #10131b); }
.restriction-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.restriction-control { display: grid; min-width: 0; gap: 5px; color: #9fa8ba; font-size: 10px; }
.restriction-control.wide { grid-column: 1 / -1; }
.restriction-color-field { align-items: center; }
.restriction-color-field input[type="color"] { width: 43px; height: 39px; }
.remove-restriction-button, .add-restriction-button { min-height: 32px; margin-top: 10px; padding: 0 10px; border: 1px solid #ffffff16; border-radius: 8px; background: #ffffff06; color: #c4ccda; cursor: pointer; font: inherit; font-size: 10px; }
.remove-restriction-button { border-color: #ff747d28; color: #ff9da3; }
.remove-restriction-button:hover { background: #ff747d12; }
.add-restriction-button { border-color: #929cff38; color: #c7ccff; }
.add-restriction-button:hover { background: #8993ff14; }
.add-restriction-button:disabled, .remove-restriction-button:disabled { opacity: .48; cursor: default; }
@media (max-width: 680px) { .restriction-fields { grid-template-columns: 1fr; } .restriction-control.wide { grid-column: auto; } }

.public-nav { display:flex; align-items:center; justify-content:center; gap:clamp(14px,3vw,42px); min-height:62px; padding:10px 24px; border-bottom:1px solid #ffffff0c; background:#11141caa; }
.public-nav > a:not(.button) { color:#adb4c4; font-size:12px; text-decoration:none; } .public-nav > a:hover { color:#fff; } .public-nav .button { margin-left:clamp(4px,2vw,24px); }
.landing-page { width:min(100% - 40px,1080px); margin:0 auto; } .hero { min-height:450px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:68px 20px 52px; text-align:center; } .hero h1 { margin:16px 0 12px; font-size:clamp(42px,7vw,76px); line-height:1.12; letter-spacing:-.06em; background:linear-gradient(120deg,#f8f8ff,#aeb7ff 75%); color:transparent; background-clip:text; } .hero > p:not(.eyebrow) { max-width:560px; color:var(--muted); font-size:14px; line-height:1.8; } .hero-actions { display:flex; gap:11px; margin-top:19px; } .hero-actions .button { min-height:44px; padding:0 20px; } .button.secondary { border:1px solid #ffffff20; background:#ffffff08; color:#d7dbea; } .login-hint { margin-top:20px; color:#aab2c2; font-size:11px; } .login-hint a { color:#bbc1ff; }
.faq-section { max-width:760px; padding:24px 0 68px; margin:0 auto; scroll-margin-top:30px; } .faq-section h2 { margin:9px 0 22px; font-size:25px; letter-spacing:-.04em; } .faq-section details { padding:17px 18px; margin:9px 0; border:1px solid #ffffff12; border-radius:12px; background:#191d28; } .faq-section summary { color:#e6e8f0; font-size:12px; font-weight:600; cursor:pointer; } .faq-section details p { margin:12px 0 0; color:var(--muted); font-size:11px; line-height:1.8; } .server-connected .offline { background:#ffbb65; box-shadow:0 0 8px #ffbb6580; }
@media(max-width:680px){.public-nav{justify-content:space-between;gap:10px;padding:9px 12px}.public-nav>a:not(.button){font-size:9px}.public-nav .button{min-height:32px;padding:0 9px;font-size:9px}.hero{min-height:390px;padding:52px 8px 38px}.hero-actions{flex-direction:column;width:min(100%,250px)}.landing-page{width:calc(100% - 30px)}.faq-section{padding-bottom:42px}}
