:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #f5f4ee;
  background: #090b0f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 65% -20%, #35241370, transparent 35%), #090b0f;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid #ffffff12;
  background: #0b0d11d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}
.mobile-menu-toggle,
.mobile-menu-backdrop { display:none; }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -1.6px;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-period {
  color: #ffca53;
}
.top-actions,
#account {
  display: flex;
  align-items: center;
  gap: 11px;
}
.account-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; border:1px solid #d5b16c72; background:#252a32; }
.account-fallback { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff; background:#5b65b4; font-weight:850; }
.account-name {
  font-size: 13px;
  color: #d1d0c8;
  font-weight: 650;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.text-button {
  border: 0;
  background: transparent;
  color: #b3ada2;
  padding: 8px;
  font-size: 12px;
}
.text-button:hover {
  color: #fff;
}
.toast {
  display: none;
  position: fixed;
  z-index: 20;
  top: 86px;
  right: 24px;
  max-width: min(450px, calc(100vw - 48px));
  border: 1px solid #ffffff24;
  background: #201c19;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 20px 50px #0009;
  font-size: 13px;
}
.toast.show {
  display: block;
}
.toast.success {
  border-color: #a5c27f77;
}
.toast.error {
  border-color: #ec797977;
}
.button {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 11px 16px;
  border: 1px solid #ffffff29;
  color: #eee;
  background: #22252a;
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    filter 0.16s;
}
.button:hover:not(:disabled) {
  background: #30343a;
}
.button.gold {
  color: #201508;
  background: linear-gradient(115deg, #f8d877, #e6a944);
  border-color: #f7d37d;
  box-shadow: 0 8px 28px #df9e3829;
}
.button.gold:hover:not(:disabled) {
  background: linear-gradient(115deg, #f8d877, #e6a944);
  box-shadow: 0 12px 32px #df9e3844;
  filter: brightness(1.06);
}
.button.danger {
  border-color: #7d4141;
  color: #ffb9b9;
  background: #3c2225;
}
.button.small {
  padding: 8px 11px;
  font-size: 11px;
}
.eyebrow,
.side-label,
.nav-group {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 850;
  color: #d9ab54;
}
.eyebrow b {
  margin-left: 8px;
}
.login-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 460px);
  place-content: center;
  padding: 40px 20px;
}
.app-shell {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
.sidebar {
  border-right: 1px solid #ffffff13;
  background: #0c0f13;
  padding: 23px 13px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.side-label {
  padding: 0 11px 11px;
  color: #797e7f;
}
.server-select {
  padding: 0 3px 12px;
}
.guild-picker .entity-trigger { min-height:51px; border-color:#a4875555; background:linear-gradient(130deg,#202025,#171b20); font-size:12px; font-weight:750; padding:8px; gap:9px; }
.guild-picker .entity-menu { min-width:235px; }
.guild-picker .entity-option { gap:9px; padding:7px; }
.guild-picker .entity-option .entity-check { margin-left:auto; }
.guild-picker .entity-value { min-width:0; }
.guild-icon { width:30px; height:30px; flex:none; border-radius:9px; object-fit:cover; background:#2c303a; }
.guild-icon-fallback { display:grid; place-items:center; color:#edd69d; background:linear-gradient(135deg,#665137,#332b36); font-size:13px; font-weight:850; }
.navigation {
  display: grid;
  gap: 4px;
}
.nav-group {
  color: #bca77b;
  margin: 21px 10px 7px;
  padding: 0 2px;
  font-size: 9px;
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
}
.nav-group::after { content:""; flex:1; min-width:16px; border-top:1px solid #c5923c35; }
.nav-group img { width:16px; height:16px; object-fit:contain; }
.navigation button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #9fa3a5;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 13px;
}
.navigation button:hover {
  background: #ffffff0b;
  color: #fff;
}
.navigation button.active {
  background: linear-gradient(90deg, #dba94828, #dba94808);
  border-color: #e5ad4a36;
  color: #f6d487;
}
.navigation .nav-overview {
  margin-bottom: 7px;
  border-color: #ffffff17;
  background: #191d22;
  color: #cbd0ce;
  font-weight: 750;
}
.navigation .nav-overview:hover {
  border-color: #d9aa4c52;
  background: #25231e;
  color: #f5e1b1;
}
.navigation .nav-overview.active {
  border-color: #e3b45b8a;
  background: linear-gradient(110deg, #4a3418, #25211a);
  color: #ffe5a1;
  box-shadow: inset 3px 0 #d9aa4c, 0 8px 20px #0002;
}
.nav-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: none;
  filter: saturate(.8);
}
.navigation button:hover .nav-icon,.navigation button.active .nav-icon { filter:none; }
.sidebar-bottom {
  margin-top: auto;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e3d3ad;
  font-size: 11px;
  font-weight: 750;
  background: #16191b;
}
.sidebar-bottom img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.sidebar-bottom small {
  display: block;
  color: #7d8585;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}
.workspace {
  min-width: 0;
  padding: 0 35px 70px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.workspace-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #777d7d;
}
.breadcrumb b {
  color: #b28a48;
  margin: 0 8px;
}
.content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 20px;
  padding: 8px 0 19px;
  border-bottom: 1px solid #ffffff16;
}
.content-heading { flex:1; min-width:0; }
.page-icon { width:42px; height:42px; object-fit:contain; flex:none; }
.content-head h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 5px;
}
.content-head p {
  color: #858b8a;
  font-size: 12px;
  margin: 0;
}
.content {
  min-height: 280px;
}
.loading,
.empty-state {
  border: 1px dashed #ffffff24;
  border-radius: 14px;
  color: #8e9695;
  padding: 35px;
  text-align: center;
  font-size: 13px;
}
.empty-state img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}
.card {
  border: 1px solid #ffffff16;
  background: #13171bd9;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px #0002;
}
.card + .card {
  margin-top: 14px;
}
.card-head {
  display: flex;
  align-items: start;
  gap: 13px;
  margin-bottom: 20px;
}
.card-head > .ui-icon { width:29px; height:29px; flex:none; object-fit:contain; }
.icon-title { display:flex; align-items:center; gap:9px; margin-bottom:9px; }
.icon-title > .ui-icon { width:24px; height:24px; object-fit:contain; flex:none; }
.icon-title h3 { margin:0; }
.card-head h3 {
  font-size: 16px;
  margin: 0 0 5px;
  letter-spacing: -0.25px;
}
.card-head p {
  font-size: 12px;
  color: #8c9290;
  line-height: 1.5;
  margin: 0;
}
.card-eyebrow {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.4px;
  color: #d5a954;
  margin-bottom: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field > span {
  font-size: 12px;
  font-weight: 750;
  color: #dcdedb;
}
.field small {
  font-size: 10px;
  color: #858b88;
  line-height: 1.45;
  min-height: 14px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0b0e12;
  color: #f3f0e9;
  border: 1px solid #ffffff26;
  border-radius: 9px;
  padding: 10px 11px;
  outline: none;
  font-size: 12px;
  min-height: 40px;
}
.field select[multiple] {
  min-height: 120px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #e8bd62;
  box-shadow: 0 0 0 3px #dcb55122;
}
.field option {
  padding: 4px;
}
.field .hint {
  font-size: 10px;
  color: #8e9491;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ffffff13;
  padding-top: 18px;
  margin-top: 21px;
}
.save-note {
  font-size: 11px;
  color: #828a88;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.item-card {
  position:relative;
  border: 1px solid #ffffff18;
  background: #15191d;
  border-radius: 13px;
  padding: 17px;
  text-align: left;
  color: #fff;
  min-height: 112px;
  transition:
    border 0.16s,
    box-shadow 0.16s;
}
.item-card > .ui-icon { width:37px; height:37px; object-fit:contain; position:absolute; top:14px; right:15px; }
.item-card:hover {
  border-color: #d5ab5a7a;
  box-shadow: 0 8px 22px #0003;
}
.item-card .item-type {
  display:block;
  padding-right:37px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #d8ac5e;
  font-weight: 850;
}
.item-card strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 15px;
}
.item-card small {
  color: #8a918f;
  font-size: 11px;
  line-height: 1.4;
}
.back-button {
  border: 0;
  background: none;
  color: #d4ad67;
  padding: 0 0 15px;
  font-size: 12px;
  font-weight: 750;
}
.subtabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 0 19px;
}
.subtabs button {
  border: 1px solid #ffffff20;
  background: #111519;
  color: #9da4a1;
  padding: 9px 13px;
  border-radius: 100px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}
.subtabs button.active {
  color: #24190b;
  background: #e8c16f;
  border-color: #e8c16f;
}
.vk-help-preview-body {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #ffffff1b;
  border-radius: 12px;
  background: #191b1e;
}
.compact-list {
  display: grid;
  gap: 8px;
}
.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0d1114;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  padding: 10px 12px;
  color: #d7d8d3;
  font-size: 12px;
}
.compact-row small {
  display: block;
  color: #838b88;
  margin-top: 3px;
}
.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
  padding: 13px 0;
}
.rule-row:last-child {
  border: 0;
}
.rule-row strong {
  font-size: 12px;
}
.rule-row select {
  width: 100%;
  min-height: 65px;
  background: #0b0e12;
  color: #eee;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
}
.inline-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-fields input,
.inline-fields select {
  background: #0b0e12;
  color: #eee;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  max-width: 180px;
}
.note {
  border: 1px solid #d5a84d3c;
  background: #daa74712;
  color: #d9c49a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.danger-zone {
  border-top: 1px solid #ffffff17;
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 17px;
}
.stat {
  position:relative;
  border: 1px solid #ffffff18;
  background: #15191c;
  border-radius: 12px;
  padding: 18px;
}
.stat > .ui-icon { width:34px; height:34px; object-fit:contain; position:absolute; right:13px; top:12px; }
.stat b {
  display: block;
  font-size: 22px;
  color: #efc976;
}
.stat span {
  font-size: 11px;
  color: #9a9f9a;
}
.overview-hero {
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px;
  border:1px solid #d7a84c38;
  border-radius:16px;
  background:linear-gradient(110deg,#30271b,#191d20 57%,#14191d);
  margin-bottom:26px;
}
.overview-hero > .guild-icon { width:58px; height:58px; border-radius:15px; font-size:23px; }
.overview-hero-copy { min-width:0; flex:1; }
.overview-eyebrow { color:#e6bf70; font-size:10px; letter-spacing:1.8px; font-weight:850; }
.overview-hero h3 { margin:5px 0 4px; font-size:21px; }
.overview-hero p { margin:0; color:#aab0ac; font-size:12px; line-height:1.5; }
.overview-inventory { display:flex; flex-direction:column; align-items:flex-end; gap:6px; color:#d8c49a; font-size:11px; white-space:nowrap; }
.overview-inventory span { padding:7px 10px; border-radius:8px; background:#ffffff0b; border:1px solid #ffffff13; }
.overview-section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:0 0 12px; }
.overview-section-heading h3 { margin:0; font-size:16px; }
.overview-section-heading span { color:#858d89; font-size:11px; }
.overview-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.overview-stat { display:grid; grid-template-columns:42px 1fr; align-items:center; column-gap:12px; row-gap:2px; min-width:0; text-align:left; padding:16px; border-radius:13px; border:1px solid #ffffff19; background:#15191d; color:#e9e7dd; transition:border-color .16s,background .16s,box-shadow .16s; }
.overview-stat:hover { border-color:#d4ac6080; background:#1c2023; box-shadow:0 8px 22px #0003; }
.overview-stat > .ui-icon { grid-row:1/4; width:36px; height:36px; object-fit:contain; }
.overview-stat strong { font-size:22px; color:#efc976; line-height:1.1; }
.overview-stat span { font-size:12px; font-weight:750; }
.overview-stat small { font-size:10px; color:#8d9691; line-height:1.4; }
.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
}
.action-list {
  display: grid;
  align-content: start;
  gap: 7px;
}
.action-list > button {
  border: 1px solid #ffffff18;
  background: #14181b;
  color: #d9d8d0;
  padding: 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
  display:flex;
  align-items:center;
  gap:9px;
}
.action-list > button .ui-icon { width:23px; height:23px; object-fit:contain; flex:none; }
.action-list > button span { min-width:0; overflow-wrap:anywhere; }
.action-list > button.active {
  border-color: #d4ac60;
  color: #f6d587;
}
.action-list button small {
  display: block;
  color: #818785;
  margin-top: 4px;
}
.action-create-card { min-width:0; }
.action-create-fields { display:grid; gap:13px; align-items:start; }
.action-create-fields > select,
.action-create-fields > .field,
.action-create-fields > .entity-select { width:100%; min-width:0; }
.action-create-fields > .button { justify-self:start; margin:0; }
.field textarea.code {
  min-height: 230px;
}
.question-list { display:grid; gap:14px; margin-top:17px; }
.question-list:empty { min-height:72px; border:1px dashed #655077; border-radius:11px; background:#b58cff08; }
.question-card { min-width:0; overflow:visible; border:1px solid #594869; border-radius:12px; background:#11151a; box-shadow:0 8px 22px #0002; }
.question-card:focus-within { border-color:#9774af; }
.question-card-head { display:grid; grid-template-columns:42px minmax(0,1fr) 32px; align-items:center; gap:11px; padding:11px 14px; border-bottom:1px solid #ffffff1a; border-radius:11px 11px 0 0; background:linear-gradient(100deg,#2e2340,#1b1924); }
.question-card-drag { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid #806196; border-radius:8px; background:linear-gradient(135deg,#65467e,#3a2a4a); color:#f1d9ff; font-size:20px; cursor:grab; touch-action:none; }
.question-card-drag:hover { background:linear-gradient(135deg,#9a72bb,#563d6c); }
.question-card-drag:active { cursor:grabbing; }
.question-card-drag:focus-visible { outline:2px solid #f4d69c; outline-offset:2px; }
.question-card-identity { display:flex; align-items:center; gap:10px; min-width:0; color:#f0e4f7; font-size:12px; }
.question-card-number { color:#e6bf74; font-size:11px; font-weight:850; letter-spacing:.5px; }
.question-card-remove { position:relative; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:7px; background:#4a2528; color:#ffb4b4; font-size:0; }
.question-card-remove::before,.question-card-remove::after,.question-option-remove::before,.question-option-remove::after { content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; border-radius:2px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); }
.question-card-remove::after,.question-option-remove::after { transform:translate(-50%,-50%) rotate(-45deg); }
.question-card-remove:hover { background:#663035; }
.question-card-body { display:grid; gap:12px; padding:15px; }
.question-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,190px) 124px; align-items:end; gap:10px; }
.question-field { display:grid; gap:6px; min-width:0; }
.question-field > span,.question-required > span { color:#c4abc9; font-size:10px; font-weight:800; letter-spacing:.7px; }
.question-field input,.question-field select { width:100%; min-width:0; min-height:38px; padding:8px 10px; border:1px solid #ffffff25; border-radius:8px; background:#0b0e12; color:#f3f0e9; font-size:12px; }
.question-field .entity-select { width:100%; min-width:0; }
.question-field input:focus,.question-field select:focus { outline:1px solid #e4bcf9; }
.question-required { display:grid; align-content:end; gap:8px; min-height:57px; }
.question-required .ruby-switch { margin:0; }
.question-card-source { opacity:.28; }
.question-card-ghost { border-color:#ad85cb; background:#251d32; box-shadow:0 25px 60px #000a; opacity:.94; transform:scale(1.025) rotate(.5deg); }
.section-divider {
  height: 1px;
  background: #ffffff15;
  margin: 20px 0;
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .workspace {
    padding: 0 18px 50px;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 690px) {
  body.mobile-menu-open { overflow:hidden; }
  body.dashboard-active .mobile-menu-toggle {
    position:fixed;
    z-index:102;
    top:12px;
    left:13px;
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border:1px solid #b5884380;
    border-radius:10px;
    background:linear-gradient(145deg,#3d301d,#211d19);
    color:#ffe2a1;
    box-shadow:0 5px 18px #0007;
  }
  .mobile-menu-toggle:focus-visible { outline:2px solid #ffe2a1; outline-offset:3px; }
  .mobile-menu-bars { display:grid; gap:4px; width:18px; }
  .mobile-menu-bars i { display:block; height:2px; width:18px; border-radius:2px; background:currentColor; transition:transform .24s,opacity .18s; }
  body.mobile-menu-open .mobile-menu-bars i:first-child { transform:translateY(6px) rotate(45deg); }
  body.mobile-menu-open .mobile-menu-bars i:nth-child(2) { opacity:0; }
  body.mobile-menu-open .mobile-menu-bars i:last-child { transform:translateY(-6px) rotate(-45deg); }
  body.dashboard-active .mobile-menu-backdrop { position:fixed; inset:0; z-index:98; display:block; background:#050507d1; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s,visibility .25s; }
  body.mobile-menu-open .mobile-menu-backdrop { opacity:1; visibility:visible; pointer-events:auto; }
  .topbar {
    padding: 0 15px;
  }
  body.dashboard-active .topbar .brand { margin-left:51px; }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .account-name { max-width:90px; }
  .account-avatar,.account-fallback { width:29px; height:29px; }
  .app-shell {
    display: block;
  }
  .sidebar {
    position:fixed;
    z-index:100;
    inset:0 auto 0 0;
    width:min(310px,86vw);
    height:100dvh;
    padding:75px 14px 18px;
    border:0;
    border-right:1px solid #b5884366;
    box-shadow:18px 0 48px #000a;
    transform:translateX(-106%);
    transition:transform .29s cubic-bezier(.22,.8,.2,1);
    overflow:hidden;
  }
  body.mobile-menu-open .sidebar { transform:translateX(0); }
  .side-label { display:block; padding:0 7px 10px; }
  .sidebar-bottom { display:flex; flex:none; margin-top:12px; }
  .nav-group { display:flex; }
  .server-select { padding:0 0 10px; flex:none; }
  .navigation {
    display:grid;
    align-content:start;
    gap:4px;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    flex:1;
    padding:0 2px 12px;
  }
  .navigation button {
    white-space:normal;
    width:100%;
    min-height:43px;
    padding:9px 11px;
    text-align:left;
  }
  .nav-icon { width:25px; height:25px; }
  .workspace-top {
    height: 49px;
  }
  .content-head {
    margin-top: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .summary-stats {
    grid-template-columns: 1fr;
  }
  .overview-hero { flex-wrap:wrap; padding:17px; }
  .overview-inventory { width:100%; flex-direction:row; align-items:flex-start; flex-wrap:wrap; }
  .overview-stats { grid-template-columns:1fr; }
  .overview-section-heading { display:block; }
  .overview-section-heading span { display:block; margin-top:4px; }
  .rule-row {
    grid-template-columns: 1fr;
  }
}
.block-row {
  border: 1px solid #ffffff1a;
  background: #0d1114;
  border-radius: 11px;
  padding: 13px;
  margin-bottom: 9px;
}
.block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.block-top strong {
  font-size: 11px;
  color: #d9b86f;
}
.block-controls {
  display: flex;
  gap: 4px;
}
.block-controls button {
  border: 1px solid #ffffff22;
  border-radius: 6px;
  background: #25282a;
  color: #deddda;
  width: 27px;
  height: 26px;
}
.block-controls button:hover {
  background: #3c3731;
}
.block-row textarea,
.block-row .wide-input {
  width: 100%;
  background: #080c0e;
  color: #f3f0e9;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  min-height: 75px;
  resize: vertical;
}
.block-row .wide-input {
  min-height: 35px;
}
.block-row .inline-fields {
  margin: 7px 0;
}
.block-row small {
  color: #8c9290;
  font-size: 11px;
}
.card > h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.card > .subtabs {
  margin-top: 15px;
}
.card select {
  background: #0b0e12;
  color: #eee;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
}
.card > .button:not(:first-child) { margin-top:12px; }
.summary-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.question-file-types {
  width: 100%;
  background: #0b0e12;
  color: #eee;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  margin: 0 0 9px;
}
.question-file-types {
  min-height: 100px;
}
.boot {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #d9c49b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.boot img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px #ed853d66);
  animation: float 1.8s ease-in-out infinite alternate;
}
@keyframes float {
  to {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot img {
    animation: none;
  }
}
.login-card { border:1px solid #d9b45d30; border-radius:22px; background:linear-gradient(150deg,#1a1d20,#101316); box-shadow:0 26px 90px #0007; padding:clamp(28px,5vw,48px); text-align:center; }
.login-avatar { display:block; width:76px; height:76px; object-fit:contain; border-radius:22px; margin:0 auto 24px; }
.login-card .eyebrow { display:block; text-align:center; }
.login-card h1 { font-size:clamp(27px,4vw,34px); line-height:1.15; letter-spacing:-1.2px; margin:13px 0; }
.login-card .button { display:inline-flex; justify-content:center; min-width:220px; }
.login-card .button.gold:focus-visible { outline:2px solid #ffe49c; outline-offset:4px; }
.login-card small { display:block; color:#858e8b; margin-top:23px; font-size:11px; }
.entity-select { position:relative; min-width:0; width:100%; }
.entity-select.is-single .entity-trigger { flex-wrap:nowrap; }
.entity-select.is-single .entity-value { flex:1; }
.entity-select.is-single .entity-option .entity-check { border-radius:50%; }
.entity-select.is-single .entity-option.selected .entity-check { color:transparent; background:#e4b65d; box-shadow:inset 0 0 0 4px #171c20; }
.inline-fields > .entity-select { flex:1 1 185px; max-width:260px; }
.entity-select select.entity-native { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; padding:0; min-height:0; }
.entity-trigger { width:100%; min-height:41px; display:flex; align-items:center; gap:5px; flex-wrap:wrap; text-align:left; padding:7px 11px; border:1px solid #ffffff2a; border-radius:9px; color:#f3f0e9; background:#0b0e12; font-size:12px; }
.entity-trigger:hover,.entity-trigger[aria-expanded="true"] { border-color:#dcb551; }
.entity-trigger:focus-visible,.entity-option:focus-visible { outline:2px solid #e8bd62; outline-offset:2px; }
.entity-placeholder { color:#8e9793; } .entity-value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entity-chip { max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:#3c3325; color:#f3dba4; border:1px solid #ac884766; padding:3px 7px; border-radius:6px; }
.entity-count { color:#dbb861; font-weight:800; } .entity-chevron { margin-left:auto; color:#c7ad72; }
.entity-menu { position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:50; padding:8px; border:1px solid #bd945b77; border-radius:11px; background:#171c20; box-shadow:0 18px 42px #000a; }
.entity-menu[hidden] { display:none; }
.entity-search { width:100%; min-height:37px; border:1px solid #ffffff26; border-radius:7px; background:#0b0e12; color:#fff; padding:8px 10px; outline:none; }
.inline-fields .entity-search { max-width:none; }
.entity-search:focus { border-color:#e8bd62; } .entity-options { max-height:232px; overflow-y:auto; margin-top:6px; }
.entity-option { display:flex; align-items:center; gap:8px; width:100%; text-align:left; border:0; border-radius:7px; background:transparent; color:#d8dedb; font-size:12px; padding:8px; overflow-wrap:anywhere; }
.entity-option:hover,.entity-option.selected { background:#302c25; }
.entity-check { width:16px; height:16px; flex:none; display:grid; place-items:center; border:1px solid #a5937388; border-radius:4px; color:#e4b65d; }
.entity-option.selected .entity-check { border-color:#e4b65d; } .entity-empty { padding:13px; color:#929a97; font-size:12px; text-align:center; }
.entity-select.is-single .entity-option .entity-check { font-size:0; }
.question-options { margin:0 0 12px; padding:13px; border:1px solid #ffffff25; border-radius:11px; background:#0f1217; }
.question-options-title { margin-bottom:10px; color:#e1bb70; font-size:10px; font-weight:800; letter-spacing:1px; }
.question-options-list { display:grid; gap:7px; }
.question-option { display:grid; grid-template-columns:38px 27px minmax(0,1fr) 32px; align-items:center; gap:8px; padding:5px; border:1px solid #ffffff1d; border-radius:8px; background:#191d22; }
.question-option-source { opacity:.28; }
.question-option-ghost { border-color:#a879c6; background:#30263b; box-shadow:0 24px 55px #0009; opacity:.94; transform:scale(1.025) rotate(.5deg); }
.question-option-drag { width:38px; height:38px; border:1px solid #715586; border-radius:7px; background:linear-gradient(135deg,#624478,#382944); color:#e6cdf4; font-size:20px; cursor:grab; touch-action:none; user-select:none; }
.question-option-drag:hover { background:linear-gradient(135deg,#9570b4,#543b6d); }
.question-option-drag:focus-visible { outline:2px solid #e4bcf9; outline-offset:2px; }
.question-option-drag:active { cursor:grabbing; }
.question-option-number { text-align:center; color:#bda779; font-size:11px; font-weight:800; }
.question-option input { min-width:0; width:100%; min-height:35px; padding:7px 9px; border:1px solid #ffffff20; border-radius:6px; background:#101419; color:#f3f0e9; }
.question-option input:focus { outline:1px solid #dfb55e; }
.question-option-remove { position:relative; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:6px; background:#4a2528; color:#ffb4b4; font-size:0; cursor:pointer; }
.question-option-add { margin-top:10px; }
html,body,* { scrollbar-width:thin; scrollbar-color:#8f6aaf #1d172b; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:#1d172b; border-radius:99px; }
::-webkit-scrollbar-thumb { background:linear-gradient(180deg,#a17bc0,#6d508d); border:2px solid #1d172b; border-radius:99px; }
::-webkit-scrollbar-thumb:hover { background:linear-gradient(180deg,#c8a1df,#8c64b0); }
::-webkit-scrollbar-corner { background:#1d172b; }
.composer-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr); gap:16px; align-items:start; }
.composer-layout .card { min-width:0; }
.panel-preview { position:sticky; top:18px; overflow:hidden; border:1px solid #ffffff2b; border-radius:14px; background:#24262a; color:#dbdee1; }
.preview-head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:13px 15px; background:#1b1d20; border-bottom:1px solid #ffffff20; }
.preview-head strong { color:#f3f3f4; font-size:12px; } .preview-head small { color:#aab0b5; font-size:10px; text-align:right; }
.preview-chat { min-height:230px; padding:18px 15px; font-family:Arial,sans-serif; }
.preview-identity { display:flex; align-items:center; gap:7px; margin-bottom:8px; }
.preview-identity img { width:31px; height:31px; object-fit:cover; border-radius:50%; }
.preview-identity strong { color:#f1d089; font-size:12px; } .preview-identity span { background:#5865f2; color:white; border-radius:3px; padding:2px 4px; font-size:8px; font-weight:800; }
.preview-container { margin:7px 0 10px 38px; background:#2b2d31; border:1px solid #414349; border-radius:9px; padding:12px; overflow-wrap:anywhere; }
.preview-text { white-space:pre-wrap; font-size:12px; line-height:1.5; } .preview-container hr { border:0; border-top:1px solid #4f5259; margin:10px 0; }
.preview-text-emoji { width:1.35em; height:1.35em; object-fit:contain; vertical-align:-0.3em; }
.preview-buttons { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.preview-button { display:inline-flex; align-items:center; gap:5px; border-radius:4px; background:#4e5058; color:white; padding:6px 10px; font-size:11px; font-weight:700; white-space:nowrap; }
.preview-button-emoji { width:16px; height:16px; flex:none; object-fit:contain; }
.preview-button.Primary { background:#5865f2; } .preview-button.Success { background:#248046; } .preview-button.Danger { background:#da373c; }
.preview-button.disabled { background:#43444a; color:#a8a9ae; opacity:.56; filter:grayscale(1); }
.preview-section { display:flex; align-items:center; justify-content:space-between; gap:10px; } .preview-section > img { width:62px; height:62px; border-radius:7px; object-fit:cover; flex:none; }
.preview-image-placeholder { display:grid; place-items:center; width:62px; height:62px; flex:none; border:1px dashed #777b84; border-radius:7px; color:#aeb2ba; font-size:10px; }
.preview-count { padding:10px 15px; color:#aeb4ba; border-top:1px solid #ffffff1b; text-align:right; font-size:10px; } .preview-count.over { color:#ff9c9c; }
.advanced-config { margin-top:16px; } .advanced-config summary { cursor:pointer; color:#c4a262; font-size:12px; padding:9px; } .advanced-config > .card { margin-top:7px; }
@media (max-width:1150px) { .composer-layout { grid-template-columns:1fr; } .panel-preview { position:static; } }
@media (max-width:690px) { .login-shell { display:grid; padding:26px 16px; } .login-card { padding:30px 22px; } }
.unban-entry-list { display:grid; gap:12px; margin:18px 0; }
.unban-publish-card { margin-top:28px; }
.panel-publish-card { margin-top:28px; }
.panel-publish-card .button { margin-top:16px; }
.unban-publish-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-top:22px; }
.unban-publish-actions .ruby-switch { margin-left:4px; }
.unban-message-editor { margin-top:28px; }
.unban-message-editor + .unban-editor-card { margin-top:28px; }
.unban-message-editor > .note { margin:8px 0 16px; }
.unban-vote-options { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.unban-vote-options span { padding:8px 12px; border:1px solid #604b73; border-radius:8px; background:#30253e; color:#ead9f4; font-size:12px; }
.ruby-text-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:9px; }
.ruby-text-tools select { min-width:0; max-width:100%; border:1px solid #604b73; border-radius:8px; background:#30253e; color:#ead9f4; padding:8px 10px; font:inherit; font-size:12px; }
.ruby-text-emoji-wrap { position:relative; min-width:190px; }
.unban-message-editor .ruby-block-content { grid-template-columns:minmax(0,1fr); }
.unban-message-editor .ruby-accessory-button { justify-self:start; }
.ruby-text-emoji-wrap .ruby-emoji-toggle { min-height:36px; }
.ruby-text-emoji-picker { position:absolute; z-index:30; top:calc(100% + 5px); right:0; width:min(330px,80vw); box-shadow:0 16px 40px #0009; }
@media (max-width:800px) { .question-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .question-row .question-field:first-child { grid-column:1/-1; } }
@media (max-width:540px) { .question-card-head { padding:10px; } .question-card-body { padding:11px; } .question-row { grid-template-columns:minmax(0,1fr); } .question-row .question-field:first-child { grid-column:auto; } .question-required { min-height:0; } }
.ruby-textarea-frame { position:relative; display:block; width:100%; min-width:0; }
.ruby-textarea-frame textarea { display:block; width:100%; resize:none!important; padding-bottom:30px!important; }
.ruby-textarea-grip { position:absolute; left:50%; bottom:5px; transform:translateX(-50%); width:48px; height:16px; display:grid; place-items:center; padding:0; border:1px solid #5c486d; border-radius:99px; background:#2a2036; cursor:ns-resize; touch-action:none; box-shadow:inset 0 1px #ffffff12; }
.ruby-textarea-grip span { display:block; width:19px; height:5px; border-top:1px solid #b99ccc; border-bottom:1px solid #b99ccc; opacity:.8; }
.ruby-textarea-grip:hover,.ruby-textarea-frame.resizing .ruby-textarea-grip { border-color:#b897d0; background:#4a345e; }
.ruby-textarea-grip:focus-visible { outline:2px solid #f4d69c; outline-offset:2px; }
.ruby-textarea-frame.resizing textarea { border-color:#a47ac7; box-shadow:0 0 0 3px #a47ac733; }
.unban-token-note { margin:12px 0 16px; padding:13px 15px; border:1px solid #ffffff1b; border-radius:10px; background:#ffffff08; color:#c9bbd4; font-size:12px; line-height:1.55; }
.unban-token-note code { color:#e8c16f; }
.unban-entry { padding:16px; gap:16px; }
.unban-entry-head { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#ead9f4; }
.unban-entry .field { min-width:0; }
.unban-entry .ruby-switch { margin-top:4px; }
.unban-editor-footer { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:16px; border-top:1px solid #ffffff20; }
.unban-editor-footer .save-note { margin-left:auto; }
@media (max-width:690px) { .unban-editor-footer .save-note { margin-left:0; flex-basis:100%; } }

.preview-gallery-image { display:block; width:100%; max-height:420px; object-fit:contain; border-radius:7px; margin:6px 0; }
