:root {
  --bg: #09090b;
  --panel: #121216;
  --panel2: #18181d;
  --line: #292930;
  --text: #f5f5f7;
  --muted: #9696a0;
  --red: #e63946;
  --red2: #ff5964;
  --shadow: 0 22px 70px #0009;
}

/* Planka-style guide editor refinements */
.guide-folder-card{--folder-color:#ef4b5f}.guide-folder-card:after{background:color-mix(in srgb,var(--folder-color) 13%,transparent)}.guide-folder-card .folder-icon{color:var(--folder-color);background:color-mix(in srgb,var(--folder-color) 13%,transparent);border-color:color-mix(in srgb,var(--folder-color) 32%,transparent);box-shadow:0 0 22px color-mix(in srgb,var(--folder-color) 18%,transparent)}
.folder-color-setting{display:block;margin:18px 0}.folder-color-setting>div{display:flex;align-items:center;gap:10px;margin-top:7px}.folder-color-setting input[type=color]{width:48px;height:42px;padding:4px;flex:0 0 48px}#folder-color-v2{max-width:150px;text-transform:uppercase}
.toolbar-separator{width:1px;height:22px;background:#ffffff20;margin:0 3px}.guide-toolbar button{cursor:pointer}.guide-toolbar button:active{transform:translateY(1px)}
.guide-content{background:#111116;color:#f2f2f4}.guide-content h1,.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{color:#fff}.guide-content a{color:#ff7485;text-decoration:underline;text-underline-offset:3px}.guide-content blockquote{color:#d6d6dc;background:#18181f}.guide-content details{border-color:#ffffff22;background:#15151b}
.guide-content pre{position:relative;margin:16px 0;padding:18px 54px 18px 18px;min-height:52px;background:#0b0b0f;border:1px solid #ffffff18;border-radius:11px;color:#f2f2f4;white-space:pre-wrap}.guide-content pre code{display:block;font-family:"Courier New",monospace;line-height:1.55}.code-copy{position:absolute!important;top:9px;right:9px;width:32px!important;height:32px!important;min-width:32px!important;padding:7px!important;border:1px solid #ffffff1c!important;border-radius:7px!important;background:#18181f!important;color:#c9c9d1!important;display:grid!important;place-items:center!important;z-index:2}.code-copy:hover{background:#24242d!important;color:#fff!important}.code-copy.copied{color:#62d78b!important}.code-copy svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.guide-content.is-editing pre code{min-height:24px}.selection-toolbar{z-index:10}
@media(max-width:720px){.toolbar-separator{display:none}.guide-content{padding:28px 22px}.guide-toolbar{gap:3px}.folder-color-setting>div{align-items:stretch}}
.folder-drag{position:absolute;right:14px;top:13px;z-index:2;width:34px;height:34px;padding:0;border:1px solid #ffffff18;border-radius:8px;background:#ffffff08;color:#aaa;font-size:20px;cursor:grab}.folder-drag:active{cursor:grabbing}.guide-folder-card[draggable=true]{transition:transform .16s ease,border-color .16s ease,opacity .16s ease}.guide-folder-card.is-dragging{opacity:.48;transform:scale(.985);border-color:var(--folder-color)}.guide-folder-card.drag-over{border-color:color-mix(in srgb,var(--folder-color) 65%,white);box-shadow:0 0 24px color-mix(in srgb,var(--folder-color) 18%,transparent)}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font:
    15px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 50% -20%, #3a0b10 0, transparent 37%),
    linear-gradient(#0b0b0e, #080809);
  display: flex;
  flex-direction: column;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
#glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: #e6394613;
  filter: blur(75px);
  left: calc(50% - 220px);
  top: 180px;
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
header {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 76px);
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #ffffff0a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 0.12em;
}
.brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.brand b {
  font-weight: 800;
}
nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #101014aa;
  border: 1px solid #ffffff0d;
  border-radius: 13px;
}
nav a {
  padding: 8px 16px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
nav a.active,
nav a:hover {
  background: #24242a;
  color: #fff;
}
#account {
  justify-self: end;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #24242a;
  border: 1px solid #ffffff1a;
}
.logout,
.ghost,
.primary,
.danger {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  background: #1a1a1f;
  color: #eee;
  font-weight: 700;
}
.logout {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 17px;
}
.primary {
  background: linear-gradient(135deg, var(--red), #b81f2c);
  border-color: #ff596455;
  box-shadow: 0 8px 26px #e6394633;
}
.primary:hover {
  filter: brightness(1.1);
}
.ghost:hover,
.logout:hover {
  background: #25252b;
}
main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  flex: 1;
  padding: 70px 0 90px;
  position: relative;
  z-index: 1;
}
.login-shell {
  min-height: 62vh;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(480px, 100%);
  padding: 40px;
  border: 1px solid #ffffff15;
  border-radius: 20px;
  background: linear-gradient(145deg, #1b1b20ee, #111115ee);
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.eyebrow {
  color: var(--red2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 850;
}
.login-card h1,
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
  margin: 15px 0 10px;
  letter-spacing: -0.04em;
}
.muted {
  color: var(--muted);
}
.auth-stack {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.auth {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #ffffff16;
  border-radius: 11px;
  background: #25252b;
  font-weight: 750;
}
.auth:hover {
  background: #303037;
}
.auth.discord {
  background: #5865f2;
}
.error {
  color: #ff8f97;
  margin: 12px 0;
}
.hero {
  padding: 40px 0 48px;
}
.hero p {
  max-width: 680px;
  font-size: 17px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
  border: 1px solid #ffffff12;
  background: linear-gradient(135deg, #19191eee, #101014ee);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.profile-card .avatar {
  width: 82px;
  height: 82px;
}
.profile-card h1 {
  margin: 0;
  font-size: 34px;
}
.profile-card p {
  margin: 3px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 20px 0;
}
.section-head h1,
.section-head h2 {
  margin: 0;
}
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.application-card {
  padding: 25px;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  background: linear-gradient(145deg, #17171c, #101014);
  box-shadow: 0 16px 40px #0005;
  transition: 0.2s;
}
.application-card:hover {
  transform: translateY(-2px);
  border-color: #ffffff24;
}
.tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team) 17%, transparent);
  color: var(--team);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 900;
}
.application-card h3 {
  font-size: 21px;
  margin: 16px 0 8px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 22px;
}
.actions {
  display: flex;
  gap: 8px;
}
.disabled {
  color: #85858d;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
}
.form-shell {
  max-width: 820px;
  margin: auto;
}
.back {
  color: var(--muted);
  display: inline-block;
  margin-bottom: 25px;
}
.form-title h1 {
  font-size: 38px;
  margin: 12px 0;
}
.description {
  white-space: pre-wrap;
  color: #c9c9d0;
}
.section {
  margin-top: 24px;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  background: #121216;
  padding: 25px;
}
.section h2 {
  margin: 0 0 4px;
}
.question {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.question:first-of-type {
  margin-top: 15px;
}
.question label {
  display: block;
  font-weight: 760;
  margin-bottom: 7px;
}
.question small {
  display: block;
  color: var(--muted);
  margin: -3px 0 9px;
}
.required {
  color: var(--red2);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #33333b;
  border-radius: 10px;
  background: #0d0d10;
  color: #fff;
  padding: 12px 13px;
  outline: none;
}
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23c7c7cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 9 4-4 4 4' fill='none' stroke='%23c7c7cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input:focus,
textarea:focus,
select:focus {
  border-color: #e6394688;
  box-shadow: 0 0 0 3px #e6394616;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  display: flex;
  gap: 9px;
  align-items: center;
}
.choice input {
  width: auto;
}
.submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.editor-toolbar {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #15151be8;
  backdrop-filter: blur(14px);
  border: 1px solid #ffffff15;
  border-radius: 13px;
  margin-bottom: 20px;
}
.editor-section {
  position: relative;
}
.editor-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.question-editor {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
  margin-top: 12px;
  background: #0e0e12;
}
.question-editor .q-timer,
.question-editor .q-options {
  margin-top: 10px;
}
.bank-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  align-items: end;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0e0e12;
}
.bank-settings > label:not(.switch) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.question-editor .row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}
.tiny {
  padding: 7px 10px;
  font-size: 12px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.switch input {
  width: auto;
}
.drag {
  color: #777;
  cursor: grab;
}
.legal {
  max-width: 820px;
  margin: auto;
}
.legal h1 {
  font-size: 42px;
}
.legal h2 {
  margin-top: 32px;
}
.legal p,
.legal li {
  color: #b8b8c0;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 76px);
  color: #686872;
  border-top: 1px solid #ffffff0a;
  font-size: 12px;
  position: relative;
  z-index: 2;
}
footer div {
  display: flex;
  gap: 20px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal.hidden {
  display: none;
}
.dialog {
  width: min(480px, 100%);
  background: #17171c;
  border: 1px solid #ffffff18;
  border-radius: 17px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.dialog h2 {
  margin-top: 0;
}
.dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
}
.success {
  text-align: center;
  max-width: 620px;
  margin: 80px auto;
  padding: 45px;
  border: 1px solid #ffffff15;
  border-radius: 20px;
  background: #15151a;
}
.success .check {
  font-size: 42px;
  color: #62d894;
}
.loader {
  text-align: center;
  color: var(--muted);
  padding: 100px;
}
.custom-role-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:24px;max-width:1080px;margin:28px auto}.custom-role-card,.terms-card{background:#121216;border:1px solid #ffffff18;border-radius:20px;padding:28px;box-shadow:var(--shadow)}.custom-role-card h2{font-size:42px;margin:18px 0 8px}.custom-role-card h2 small{font-size:14px;color:var(--muted)}.purchase-mode{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0}.purchase-mode label,.terms-check{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;cursor:pointer}.purchase-mode label{padding:10px 13px;border:1px solid #ffffff18;border-radius:12px;background:#19191f;white-space:nowrap}.purchase-mode input,.terms-check input{appearance:none;-webkit-appearance:none;box-sizing:border-box;position:relative;inline-size:20px!important;block-size:20px!important;min-inline-size:20px;max-inline-size:20px;min-block-size:20px;max-block-size:20px;flex:0 0 20px;padding:0!important;margin:0;border:1px solid #ffffff38;background:#0d0d11;transition:.18s ease}.purchase-mode input{border-radius:50%}.terms-check input{border-radius:5px}.purchase-mode input:checked,.terms-check input:checked{border-color:#f04c61;background:#f04c61;box-shadow:0 0 12px #f04c6170}.purchase-mode input:checked:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);inline-size:7px;block-size:7px;border-radius:50%;background:white}.terms-check input:checked:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-52%);color:white;font-size:12px;font-weight:900;line-height:1}.gift-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:8px}.terms-check{margin:24px 0 18px;width:max-content;max-width:100%}.payment-note{text-align:center;font-size:12px}.terms-card details summary{font-size:19px;font-weight:800;cursor:pointer}.terms-content{color:var(--muted);line-height:1.65}.terms-content h3{color:var(--text);margin:24px 0 5px}.purchase-login{display:inline-flex;margin-top:20px}.empty-state.compact{margin-top:22px;padding:18px}.hidden{display:none!important}@media (max-width:800px){.custom-role-layout{grid-template-columns:1fr}.gift-row{grid-template-columns:1fr}}
.guide-heading{align-items:center}.guide-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.guide-folder-card{display:grid;grid-template-columns:auto 1fr;gap:17px;background:linear-gradient(145deg,#15151b,#101014);border:1px solid #ffffff17;border-radius:18px;padding:22px;min-height:170px;box-shadow:var(--shadow);position:relative;overflow:hidden}.guide-folder-card:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;background:#ef4b5f14;filter:blur(24px);right:-35px;top:-45px}.folder-icon,.doc-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:#ff6679;background:#ef4b5f19;border:1px solid #ef4b5f33;font-size:20px}.guide-folder-card h2{margin:3px 0 8px}.folder-actions{grid-column:1/-1;display:flex;gap:9px;align-items:center;z-index:1}.guide-breadcrumb{display:flex;gap:10px;align-items:center;color:var(--muted);margin:4px 0 24px}.guide-breadcrumb a{color:#ff7a8a;text-decoration:none}.guide-document-list{display:grid;gap:12px}.guide-document-list article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:18px 20px;background:#131318;border:1px solid #ffffff16;border-radius:15px}.guide-document-list h3,.guide-document-list p{margin:0 0 4px}.guide-admin-panel{padding:24px;background:#141419;border:1px solid #ffffff1c;border-radius:18px;margin-bottom:24px;box-shadow:var(--shadow)}.guide-admin-panel>.row{display:grid;grid-template-columns:1fr 1.5fr;gap:14px}.guide-admin-panel label>input{margin-top:7px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:16px 0}.permission-grid fieldset{border:1px solid #ffffff18;border-radius:13px;padding:13px;max-height:310px;overflow:auto}.permission-grid legend{text-transform:capitalize;font-weight:800;padding:0 7px}.permission-grid label{display:flex;align-items:center;gap:8px;padding:5px 2px;font-size:13px}.permission-grid input{width:16px;height:16px;flex:0 0 16px}.guide-document{max-width:1120px;margin:0 auto;background:#111116;border:1px solid #ffffff18;border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.guide-document-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:30px 34px 22px;border-bottom:1px solid #ffffff12}.guide-document-head h1{margin:5px 0 7px}.guide-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:9px 12px;background:#1b1b21;border-bottom:1px solid #ffffff1c;box-shadow:0 8px 24px #0005}.guide-toolbar button,.guide-toolbar select,.color-tool{height:34px;min-width:34px;padding:0 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);display:inline-flex;align-items:center;justify-content:center;font:inherit}.guide-toolbar button:hover,.guide-toolbar select:hover,.color-tool:hover{background:#ffffff0d;border-color:#ffffff19}.guide-toolbar select{width:auto}.color-tool{position:relative;font-weight:800;cursor:pointer}.color-tool input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.guide-content{min-height:520px;padding:44px 58px;font-size:16px;line-height:1.7;background:#fbfbfd;color:#202027}.guide-content.is-editing{outline:none}.guide-content h1,.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{color:#16161c}.guide-content blockquote{border-left:4px solid #ef4b5f;padding:7px 16px;color:#565663;background:#f2f2f5;margin-left:0}.guide-content pre{background:#202028;color:#eee;padding:16px;border-radius:9px;overflow:auto}.guide-content table{width:100%;border-collapse:collapse}.guide-content td,.guide-content th{border:1px solid #aaa;padding:8px}.guide-content img{max-width:100%;height:auto}.guide-content details{border:1px solid #d7d7dd;border-radius:8px;padding:10px 13px;margin:12px 0}.guide-content summary{font-weight:700;cursor:pointer}.guide-content .checklist{list-style:"☐  ";}.guide-savebar{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:13px 18px;background:#17171d;border-top:1px solid #ffffff1c}.guide-savebar .actions{margin:0}
.guide-content .guide-note{border-left:4px solid #ef4b5f;background:#fff0f2;padding:12px 16px;border-radius:7px;margin:14px 0}.guide-content .document-header,.guide-content .document-footer{color:#777;border-bottom:1px solid #bbb;padding:8px 0;margin-bottom:18px}.guide-content .document-footer{border-top:1px solid #bbb;border-bottom:0;margin-top:22px;margin-bottom:0}
.guide-document{position:relative}.guide-content{background:#111116;color:#ececf1;caret-color:#fff}.guide-content h1,.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{color:#fff}.guide-content blockquote{color:#d4d4dc;background:#1a1a21;border-left-color:#ef4b5f}.guide-content pre{position:relative;background:#09090d;color:#e9e9ef;border:1px solid #ffffff1b;padding:42px 18px 18px;border-radius:10px;white-space:pre-wrap}.code-copy{position:absolute;right:9px;top:8px;border:1px solid #ffffff22;background:#1d1d24;color:#eee;border-radius:7px;padding:5px 9px;cursor:pointer}.guide-content table{background:#15151b;border-radius:8px;overflow:hidden}.guide-content td,.guide-content th{border-color:#ffffff27;color:#eee;min-width:90px}.guide-content tr:nth-child(even){background:#ffffff05}.table-wrap{overflow:auto;margin:16px 0;border:1px solid #ffffff1d;border-radius:9px}.guide-content details{border-color:#ffffff24;background:#17171d}.guide-content figure{margin:18px 0;text-align:center}.guide-content figcaption{color:#999;font-size:13px;margin-top:7px}.guide-content .guide-note{background:#251419;color:#f3d8dd}.guide-content .note-blue{border-left-color:#579dff;background:#111d2c;color:#d7e9ff}.guide-content .note-green{border-left-color:#58d68d;background:#10231a;color:#daf9e7}.guide-content .note-yellow{border-left-color:#f7d154;background:#29230f;color:#fff2bc}.guide-content .note-red{border-left-color:#ef4b5f;background:#251419;color:#f3d8dd}.guide-toolbar select{color-scheme:dark;background:#1b1b21;color:#f2f2f4;border-color:#ffffff16}.guide-toolbar select option{background:#1b1b21;color:#f2f2f4}.selection-toolbar{position:absolute;z-index:9;display:flex;gap:4px;align-items:center;padding:7px;background:#202027;border:1px solid #ffffff22;border-radius:9px;box-shadow:0 10px 28px #0009}.selection-toolbar button,.selection-toolbar select,.selection-toolbar .color-tool{height:32px;min-width:32px;background:transparent;color:#fff;border:0;border-radius:6px;padding:0 8px}.selection-toolbar button:hover{background:#ffffff12}.guide-document-list article.is-pinned{border-color:#ef4b5f55;background:linear-gradient(100deg,#ef4b5f0c,#131318)}.pin-setting{display:flex!important;align-items:center;gap:9px;margin:16px 0}.pin-setting input{width:18px!important;height:18px}.danger:disabled{opacity:.4;cursor:not-allowed}.guide-admin-panel .permission-grid input{accent-color:#ef4b5f}
@media(max-width:800px){.guide-folder-grid{grid-template-columns:1fr}.guide-admin-panel>.row{grid-template-columns:1fr}.guide-document-list article{grid-template-columns:auto 1fr}.guide-document-list .actions{grid-column:1/-1}.guide-content{padding:28px 22px}.guide-toolbar{position:static}}
@media (max-width: 760px) {
  header {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 16px 18px;
    gap: 14px;
  }
  nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: center;
  }
  .brand b {
    display: none;
  }
  .application-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    align-items: flex-start;
  }
  .editor-toolbar {
    position: static;
  }
  .question-editor .row {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 12px;
  }
}

/* Guide overrides must remain after the legacy guide rules. */
.guide-folder-card{--folder-color:#ef4b5f}.guide-folder-card:after{background:color-mix(in srgb,var(--folder-color) 13%,transparent)}.guide-folder-card .folder-icon{color:var(--folder-color);background:color-mix(in srgb,var(--folder-color) 13%,transparent);border-color:color-mix(in srgb,var(--folder-color) 32%,transparent);box-shadow:0 0 22px color-mix(in srgb,var(--folder-color) 18%,transparent)}
.folder-color-setting{display:block;margin:18px 0}.folder-color-setting>div{display:flex;align-items:center;gap:10px;margin-top:7px}.folder-color-setting input[type=color]{width:48px;height:42px;padding:4px;flex:0 0 48px}#folder-color-v2{max-width:150px;text-transform:uppercase}
.toolbar-separator{width:1px;height:22px;background:#ffffff20;margin:0 3px}.guide-toolbar button{cursor:pointer}.guide-toolbar button:active{transform:translateY(1px)}
.guide-content{background:#111116;color:#f2f2f4}.guide-content h1,.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{color:#fff}.guide-content a{color:#ff7485;text-decoration:underline;text-underline-offset:3px}.guide-content blockquote{color:#d6d6dc;background:#18181f}.guide-content details{border-color:#ffffff22;background:#15151b}
.guide-content pre{position:relative;margin:16px 0;padding:18px 54px 18px 18px;min-height:52px;background:#0b0b0f;border:1px solid #ffffff18;border-radius:11px;color:#f2f2f4;white-space:pre-wrap}.guide-content pre code{display:block;font-family:"Courier New",monospace;line-height:1.55}.code-copy{position:absolute!important;top:9px;right:9px;width:32px!important;height:32px!important;min-width:32px!important;padding:7px!important;border:1px solid #ffffff1c!important;border-radius:7px!important;background:#18181f!important;color:#c9c9d1!important;display:grid!important;place-items:center!important;z-index:2}.code-copy:hover{background:#24242d!important;color:#fff!important}.code-copy.copied{color:#62d78b!important}.code-copy svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.guide-content.is-editing pre code{min-height:24px}.selection-toolbar{z-index:10}
@media(max-width:720px){.toolbar-separator{display:none}.guide-content{padding:28px 22px}.guide-toolbar{gap:3px}.folder-color-setting>div{align-items:stretch}}
.folder-icon,.doc-mark{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;text-align:center!important;padding:0!important}.folder-icon{font-size:21px!important}.doc-mark{font-size:20px!important}.guide-content hr{height:1px;border:0;background:#555761;margin:24px 0;opacity:.72}
.guide-document-list article{position:relative}.document-drag{position:absolute;right:10px;top:8px;z-index:2;width:30px;height:30px;padding:0;border:1px solid #ffffff18;border-radius:7px;background:#ffffff08;color:#aaa;font-size:18px;cursor:grab}.document-drag:active{cursor:grabbing}.guide-document-list article:has(.document-drag)>.actions{padding-right:34px}.guide-document-list article.is-dragging{opacity:.48;transform:scale(.99);border-color:#ef4b5f}.guide-document-list article.drag-over{border-color:#ef4b5f88;box-shadow:0 0 20px #ef4b5f20}
