@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap");

:root {
  color-scheme: dark;
  --night: #071015;
  --night-soft: #0b171c;
  --panel: #0e1c21;
  --panel-light: #13252b;
  --line: rgba(203, 232, 228, 0.12);
  --line-strong: rgba(203, 232, 228, 0.2);
  --ink: #f4f8f5;
  --muted: #92a7a7;
  --ice: #80e6dd;
  --ice-dark: #183f40;
  --amber: #efb968;
  --green: #77d29c;
  --red: #ed8882;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--night); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(47, 109, 105, 0.14), transparent 32rem),
    var(--night);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.brand-rune {
  display: block;
  width: 45px;
  aspect-ratio: 1;
  border: 1px solid rgba(128,230,221,.4);
  background: #0b171c;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(128,230,221,.1);
}

.brand-rune img { display: block; width: 100%; height: 100%; object-fit: cover; }

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 34px 22px 24px;
}

.login-brand, .sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.login-topbar { width: min(1040px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.staff-header-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: .7rem; font-weight: 700; }
.staff-header-button:hover { border-color: rgba(128,230,221,.36); color: var(--ink); }
.login-brand > span:last-child, .sidebar-brand > span:last-child { display: grid; }
.login-brand strong, .sidebar-brand strong { font-family: Unbounded, sans-serif; letter-spacing: -.04em; }
.login-brand small, .sidebar-brand small { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.login-card {
  width: min(480px, 100%);
  align-self: center;
  margin-block: 50px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(18,39,45,.97), rgba(9,22,27,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.42);
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.025);
  pointer-events: none;
}

.eyebrow { margin: 0 0 10px; color: var(--ice); font-size: .69rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.login-card h1 { margin-bottom: 18px; font-family: Unbounded, sans-serif; font-size: clamp(2.25rem, 7vw, 3.35rem); line-height: 1.02; letter-spacing: -.07em; }
.login-card h1 span { color: var(--ice); }
.login-intro { margin-bottom: 30px; color: #b4c5c4; line-height: 1.7; }

label { display: grid; gap: 9px; color: #dce7e4; font-size: .8rem; font-weight: 700; }
.check-row { grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.check-row input { width: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--ice); }
.input-wrap { position: relative; }
.input-wrap input { padding-left: 48px; }
.cube-icon { position: absolute; left: 17px; top: 50%; width: 14px; height: 14px; border: 1px solid var(--ice); transform: translateY(-50%) rotate(30deg) skew(-5deg); opacity: .8; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: none;
  background: rgba(4,14,18,.72);
  color: var(--ink);
  padding: 14px 15px;
}
input:focus, textarea:focus, select:focus { border-color: rgba(128,230,221,.62); box-shadow: 0 0 0 3px rgba(128,230,221,.08); }
textarea { resize: vertical; min-height: 130px; }
.form-hint { margin: 8px 0 18px; color: #778e8f; font-size: .7rem; }
.field-note { color: #778e8f; font-size: .68rem; font-weight: 500; line-height: 1.5; }
.optional-label { margin-left: 6px; color: #778e8f; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ticket-submit-error { min-height: 0; margin: 14px 0 0; }

.primary-button, .ghost-button, .icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 3px;
  background: var(--ice);
  color: #061315;
  font-weight: 800;
  transition: transform .18s, background .18s;
}
.primary-button:hover { background: #a1f1ea; transform: translateY(-1px); }
.primary-button.compact { width: auto; min-height: 43px; }
.login-error { min-height: 18px; margin: 9px 0 0; color: var(--red); font-size: .76rem; }
.staff-divider { display: flex; align-items: center; gap: 12px; margin: 15px 0; color: #678082; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.staff-divider::before, .staff-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.staff-login-button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 31px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(255,255,255,.025); color: var(--ink); cursor: pointer; text-align: left; }
.staff-login-button:hover { border-color: rgba(128,230,221,.36); background: rgba(128,230,221,.045); }
.staff-login-button > span:nth-child(2) { display: grid; }
.staff-login-button strong { font-size: .76rem; }
.staff-login-button small { color: var(--muted); font-size: .63rem; }
.staff-lock { display: grid; width: 28px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(239,185,104,.3); color: var(--amber); }
.verification-note { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.verification-note p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.verification-note strong { color: #cfddda; }
.status-dot, .server-status > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.verification-note .status-dot { margin-top: 5px; }
.login-footer { color: #667d7e; font-size: .72rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(8,20,24,.96);
  backdrop-filter: blur(20px);
}
.sidebar-brand { padding: 0 11px 28px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 20px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: .83rem;
  font-weight: 700;
}
.nav-item:hover, .nav-item.active { background: rgba(128,230,221,.09); color: var(--ink); }
.nav-item.active { box-shadow: inset 2px 0 var(--ice); }
.nav-item svg, .search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 10px; background: rgba(128,230,221,.12); color: var(--ice); text-align: center; font-size: .67rem; }
.sidebar-callout { margin: auto 5px 18px; padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.callout-icon { display: grid; width: 25px; height: 25px; margin-bottom: 12px; place-items: center; border: 1px solid var(--amber); color: var(--amber); font-weight: 800; transform: rotate(45deg); }
.sidebar-callout strong { font-size: .76rem; }
.sidebar-callout p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.profile-button { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 17px 5px 0; cursor: pointer; text-align: left; }
.profile-button > span:nth-child(2) { display: grid; min-width: 0; }
.profile-button strong { overflow: hidden; text-overflow: ellipsis; font-size: .76rem; }
.profile-button small { color: var(--muted); font-size: .62rem; }
.player-avatar { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(128,230,221,.4); background: var(--ice-dark); color: var(--ice); font-weight: 800; }
.logout-icon { color: #6d8585; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px,4vw,54px); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.topbar a:hover { color: var(--ice); }
.server-status { display: flex; align-items: center; gap: 8px; }
.server-status small { color: #627a7b; }
.menu-button { display: none; border: 0; background: none; font-size: 1.25rem; }
.content { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: clamp(42px,6vw,70px) 0 70px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.page-heading h1 { margin-bottom: 10px; font-family: Unbounded, sans-serif; font-size: clamp(2.25rem, 5vw, 4.1rem); letter-spacing: -.065em; }
.page-heading p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 20px; }
.stats article { min-height: 90px; display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); background: rgba(14,28,33,.72); }
.stats article > div { display: grid; }
.stats small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.stats strong { font-size: 1.6rem; line-height: 1.2; }
.stat-icon { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border: 1px solid; border-radius: 50%; }
.stat-icon.blue { color: var(--ice); background: rgba(128,230,221,.08); }
.stat-icon.amber { color: var(--amber); background: rgba(239,185,104,.08); }
.stat-icon.green { color: var(--green); background: rgba(119,210,156,.08); }

.ticket-panel { border: 1px solid var(--line); background: rgba(10,24,29,.72); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 4px; }
.filter { min-height: 34px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: .71rem; font-weight: 700; }
.filter:hover, .filter.active { background: rgba(128,230,221,.1); color: var(--ice); }
.search-box { position: relative; display: block; width: min(220px, 100%); color: var(--muted); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.search-box input { height: 36px; padding: 0 12px 0 38px; font-size: .73rem; }
.ticket-list { display: grid; }
.ticket-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 110px 110px 90px; gap: 15px; align-items: center; min-height: 92px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: rgba(128,230,221,.035); }
.type-icon { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--ice); font-size: .75rem; font-weight: 800; transform: rotate(45deg); }
.type-icon > span { transform: rotate(-45deg); }
.ticket-main { min-width: 0; }
.ticket-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; font-size: .84rem; font-weight: 700; }
.ticket-meta { color: #6f8585; font-size: .67rem; }
.ticket-category { color: var(--muted); font-size: .7rem; }
.ticket-author { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: .7rem; }
.ticket-author .player-avatar { width: 24px; }
.ticket-author span:last-child { overflow: hidden; text-overflow: ellipsis; }
.status-pill { width: fit-content; padding: 5px 8px; border: 1px solid; border-radius: 12px; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.status-open { color: var(--ice); background: rgba(128,230,221,.07); border-color: rgba(128,230,221,.2); }
.status-progress { color: var(--amber); background: rgba(239,185,104,.07); border-color: rgba(239,185,104,.2); }
.status-resolved { color: var(--green); background: rgba(119,210,156,.07); border-color: rgba(119,210,156,.2); }
.status-pill.outcome-needs-info, .status-pill.outcome-voting, .status-pill.outcome-in_progress, .status-pill.outcome-discord_ticket { color: var(--amber); background: rgba(239,185,104,.07); border-color: rgba(239,185,104,.2); }
.status-pill.outcome-declined, .status-pill.outcome-failed, .status-pill.outcome-no_action, .status-pill.outcome-not_added { color: var(--red); background: rgba(237,136,130,.07); border-color: rgba(237,136,130,.22); }
.status-pill.outcome-completed, .status-pill.outcome-warned { color: var(--green); background: rgba(119,210,156,.07); border-color: rgba(119,210,156,.2); }
.status-pill.outcome-working_as_intended { color: var(--ice); background: rgba(128,230,221,.07); border-color: rgba(128,230,221,.2); }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state span { color: var(--ice); font-size: 2rem; }
.empty-state h2 { margin: 10px 0 5px; color: var(--ink); font-size: 1rem; }
.empty-state p { margin: 0; font-size: .76rem; }

.modal { width: min(600px, calc(100% - 28px)); max-height: calc(100vh - 30px); overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: #0d1d22; color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.modal::backdrop { background: rgba(2,8,10,.78); backdrop-filter: blur(7px); }
.modal form, .detail-modal > div { padding: clamp(24px,5vw,38px); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }
.modal h2 { margin: 0; font-family: Unbounded, sans-serif; font-size: 1.7rem; letter-spacing: -.05em; }
.modal form > label { margin-top: 18px; }
.staff-login-copy { margin: -8px 0 24px; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.staff-login-copy code { color: var(--amber); }
.staff-login-modal { width: min(470px, calc(100% - 28px)); }
.icon-button { width: 34px; aspect-ratio: 1; background: rgba(255,255,255,.04); color: var(--muted); font-size: 1.5rem; }
.ghost-button { min-height: 43px; padding: 0 18px; background: transparent; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.privacy-copy { margin: 15px 0 0; color: #6e8585; font-size: .68rem; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.detail-title { font-family: Unbounded, sans-serif; font-size: clamp(1.35rem,4vw,2rem); letter-spacing: -.05em; }
.detail-description { padding: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.14); color: #b8c8c6; font-size: .84rem; line-height: 1.7; white-space: pre-wrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 25px; color: var(--muted); font-size: .69rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 17px; margin: 20px 0; border: 1px solid rgba(239,185,104,.2); background: rgba(239,185,104,.04); }
.admin-actions button { min-height: 35px; padding: 0 11px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: #d8e3e0; cursor: pointer; font-size: .68rem; }
.admin-actions button:disabled { cursor: not-allowed; opacity: .48; }
.admin-actions .decision-complete { border-color: rgba(119,210,156,.32); color: var(--green); }
.admin-actions .decision-progress { border-color: rgba(128,230,221,.34); color: var(--ice); }
.admin-actions .decision-warning { border-color: rgba(239,185,104,.34); color: var(--amber); }
.admin-actions .decision-neutral { border-color: rgba(184,204,202,.28); color: #c8d9d7; }
.admin-actions .decision-decline, .admin-actions .decision-failed { border-color: rgba(237,136,130,.28); color: #f0a09a; }
.admin-actions .delete-ticket { margin-left: auto; border-color: rgba(237,136,130,.5); background: rgba(237,136,130,.08); color: #ffaaa4; }
.action-heading { flex-basis: 100%; margin-bottom: 3px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mail-recipient { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(0,0,0,.15); font-size: .75rem; }
.mail-recipient span { color: var(--muted); }
.mail-recipient strong { overflow-wrap: anywhere; color: var(--ice); }
.notification-log { margin: 22px 0; }
.notification-log h3 { margin: 0 0 10px; color: var(--muted); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.notification-entry { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.notification-entry > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(128,230,221,.2); color: var(--ice); font-size: .68rem; }
.notification-entry strong, .notification-entry small { display: block; }
.notification-entry strong { font-size: .7rem; }
.notification-entry small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.comment-list { display: grid; gap: 10px; margin: 20px 0; }
.comment { padding: 13px; border-left: 2px solid var(--ice-dark); background: rgba(255,255,255,.025); }
.comment strong { font-size: .71rem; }
.comment p { margin: 5px 0 0; color: #a9bbba; font-size: .78rem; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { min-width: 0; }
.comment-form button { width: auto; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; transform: translateY(20px); opacity: 0; padding: 12px 16px; border: 1px solid rgba(128,230,221,.3); background: #11282d; color: var(--ice); font-size: .75rem; pointer-events: none; transition: .22s; }
.toast.show { transform: translateY(0); opacity: 1; }

.access-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 34px; align-items: start; }
.access-create, .access-list-panel { padding: 24px; border: 1px solid var(--line); background: rgba(14,28,33,.72); }
.access-create h2, .access-list-heading h2 { margin: 0 0 22px; font-family: Unbounded, sans-serif; font-size: 1.25rem; letter-spacing: -.04em; }
.access-create label { margin-top: 16px; }
.access-create button { margin-top: 22px; }
.access-list-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.access-list-heading .ghost-button { min-height: 34px; padding-inline: 10px; border: 1px solid var(--line); }
.access-list { display: grid; gap: 9px; }
.access-user { display: grid; grid-template-columns: minmax(120px,1fr) 120px 82px minmax(150px,1fr) auto; gap: 9px; align-items: center; padding: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.13); }
.access-user-name { min-width: 0; }
.access-user-name strong, .access-user-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
.access-user-name strong { font-size: .78rem; }
.access-user-name small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.access-user select { padding: 9px; }
.access-user .panel-password { padding: 9px; font-size: .68rem; }
.access-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .68rem; }
.access-state input { width: 15px; height: 15px; padding: 0; accent-color: var(--ice); }
.access-actions { display: flex; gap: 6px; }
.access-actions button { min-height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: var(--ink); cursor: pointer; font-size: .65rem; }
.access-actions .revoke-access { color: var(--red); border-color: rgba(237,136,130,.25); }
.access-actions .delete-access { color: #ffaaa4; border-color: rgba(237,136,130,.42); background: rgba(237,136,130,.06); }
.staff-modal { width: min(520px, calc(100% - 28px)); }
.staff-modal-copy { margin: -8px 0 22px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.format-help { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 18px; color: var(--muted); font-size: .68rem; }
.format-help code { padding: 5px 7px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--ice); }
.news-admin-list { display: grid; gap: 10px; }
.news-admin-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: rgba(14,28,33,.72); }
.news-admin-card h2 { margin: 5px 0 8px; font-family: Unbounded, sans-serif; font-size: 1.05rem; }
.news-admin-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.news-admin-meta { color: #6f8889; font-size: .62rem; }
.news-status { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-status.published { border-color: rgba(119,210,156,.34); color: var(--green); }
.news-admin-actions { display: flex; gap: 7px; }
.news-admin-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: var(--ink); cursor: pointer; font-size: .66rem; }
.news-admin-actions .delete-news { border-color: rgba(237,136,130,.35); color: var(--red); }
.news-modal { width: min(760px, calc(100% - 28px)); }
.news-publish-row { margin-top: 18px; }
.news-preview-wrap { margin-top: 22px; padding: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.12); }
.news-preview { margin-top: 13px; }
.formatted-update h2, .formatted-update h3, .formatted-update h4 { margin: 1.1em 0 .5em; color: var(--ink); font-family: Unbounded, sans-serif; line-height: 1.25; }
.formatted-update h2:first-child, .formatted-update h3:first-child, .formatted-update h4:first-child, .formatted-update p:first-child { margin-top: 0; }
.formatted-update p { margin: 0 0 .85em; color: #b8c8c6; line-height: 1.75; }
.formatted-update ul, .formatted-update ol { margin: .4em 0 1em; padding-left: 22px; color: #b8c8c6; line-height: 1.7; }
.formatted-update strong { color: var(--ink); }
.formatted-update em { color: #dce7e4; }
.formatted-update code { padding: 2px 5px; background: rgba(128,230,221,.08); color: var(--ice); }
.formatted-update blockquote { margin: 1em 0; padding: 10px 14px; border-left: 3px solid var(--amber); background: rgba(239,185,104,.05); color: #d4c2a5; }
.formatted-update hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .24s; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: block; }
  .topbar { justify-content: flex-start; gap: 20px; }
  .topbar a { margin-left: auto; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .staff-header-button { padding-inline: 10px; }
  .staff-header-button span { display: none; }
  .login-view { padding-top: 24px; }
  .content { width: min(100% - 28px, 1120px); padding-top: 34px; }
  .page-heading { align-items: start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stats article { min-height: 72px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filters { overflow-x: auto; }
  .search-box { width: 100%; }
  .ticket-row { grid-template-columns: 42px 1fr auto; gap: 10px; min-height: 88px; padding: 13px; }
  .ticket-category, .ticket-author { display: none; }
  .server-status small { display: none; }
  .access-user { grid-template-columns: 1fr 1fr; }
  .access-actions { justify-content: flex-end; }
  .news-admin-card { grid-template-columns: 1fr; }
  .news-admin-actions { justify-content: flex-start; }
}

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