:root {
  font-family: "DM Sans", system-ui, sans-serif;
  --bg: #061420;
  --panel: #0b2230;
  --panel2: #0c1c2a;
  --text: #f8f9fd;
  --muted: #a0b1c1;
  --line: #254052;
  --gold: #ffd16c;
  --red: #d12f38;
  --green: #19b87c;
  --shadow: #0005;
  --hero: #17364c;
  color-scheme: dark;
}
body.light {
  --bg: #f0f4f6;
  --panel: #fff;
  --panel2: #f8fafc;
  --text: #192b38;
  --muted: #536a7b;
  --line: #d7e3e9;
  --hero: #d9e9f3;
  --shadow: #26374917;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 5%, #143c56 0, transparent 55%), var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.desktop-note {
  display: none;
}
.app {
  margin: auto;
  max-width: 490px;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: 90px;
  box-shadow: 0 0 70px #0003;
}
.app-header {
  height: 88px;
  padding: 8px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #051420;
  border-bottom: 1px solid #173342;
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 205px;
  display: flex;
  align-items: center;
}
.logo-button img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #314e60;
  background: #0e2636;
  color: #ffdd92;
  font-size: 21px;
  position: relative;
}
.circle i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #eb4248;
  border-radius: 50%;
  right: 4px;
  top: 4px;
}
.staff-toggle {
  background: #a91f2d;
  border: 1px solid #d94650;
  border-radius: 9px;
  padding: 9px;
  color: white;
  font-size: 11px;
  font-weight: 800;
}
main {
  padding: 0 14px 24px;
  min-height: 75vh;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.serif {
  font-family: "Playfair Display", Georgia, serif;
}
h1 {
  font-size: 35px;
  line-height: 1.12;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.page-head {
  padding: 24px 4px 14px;
}
.page-head p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.hero {
  margin: 0 -14px 13px;
  min-height: 275px;
  padding: 36px 22px 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #05111ef2 5%, #092337bd 53%, #113b5488),
    radial-gradient(circle at 80% 50%, #e69e4e8e, transparent 25%),
    linear-gradient(145deg, #123852, #111b42 55%, #090d20);
  display: flex;
  align-items: end;
}
.hero:before {
  content: "✦";
  position: absolute;
  font-size: 180px;
  right: -30px;
  top: -28px;
  color: #bd8f4660;
  text-shadow: 0 8px 30px #f2a954;
}
.hero:after {
  content: "♜";
  position: absolute;
  font-size: 220px;
  line-height: 1;
  right: 0;
  bottom: 10px;
  color: #f4ad5e28;
  text-shadow: -20px 20px 30px #ffc46a22;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 310px;
}
.hero h1 {
  font-size: 37px;
  text-shadow: 0 2px 12px #0008;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero p {
  font-size: 13px;
  max-width: 275px;
  line-height: 1.55;
}
.primary {
  background: linear-gradient(180deg, #dd3a43, #b82030);
  color: white;
  border: 1px solid #ed4a51;
  border-radius: 9px;
  padding: 12px 17px;
  font-weight: 800;
  font-size: 12px;
}
.gold-btn {
  background: #ffca50;
  color: #1a2530;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  font-weight: 800;
  width: 100%;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  padding: 12px;
  margin: 11px 0;
  box-shadow: 0 4px 20px var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 11px;
  gap: 8px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
}
.section-head h2 b {
  font-family: system-ui;
  font-size: 22px;
  color: var(--gold);
}
.link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}
.media-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 11px;
  padding: 9px;
  margin-bottom: 9px;
}
.thumbnail {
  width: 114px;
  min-width: 114px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #ffca75;
  background:
    radial-gradient(circle at 67% 70%, #ffb14e, #793950 33%, transparent 65%),
    linear-gradient(145deg, #152b5c, #15182c);
}
.thumbnail.news {
  background:
    radial-gradient(circle at 30% 70%, #97c77c, #225b68 38%, transparent 75%),
    linear-gradient(135deg, #204662, #704953);
}
.thumbnail.meet {
  background:
    radial-gradient(circle at 68% 70%, #c58053, #382b4c 45%, transparent 75%),
    #152837;
}
.media-text {
  min-width: 0;
  flex: 1;
}
.media-text h3 {
  font-size: 14px;
}
.media-text p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.4;
}
.tag {
  display: inline-flex;
  border-radius: 6px;
  font-size: 10px;
  padding: 4px 7px;
  background: #af2536;
  color: white;
  font-weight: 700;
}
.tag.gold {
  background: #805a19;
  color: #ffde8c;
}
.tag.green {
  background: #104e3e;
  color: #80edc3;
}
.tag.blue {
  background: #234f8b;
  color: white;
}
.open {
  color: #61dfa7 !important;
}
.closed {
  color: #ff7680 !important;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9px;
}
.split .thumbnail {
  width: 100%;
  min-width: 0;
  height: 114px;
}
.split h3 {
  margin: 10px 0;
}
.split .panel {
  margin: 0;
  padding: 10px;
}
.meter {
  height: 6px;
  border-radius: 10px;
  background: #173541;
  overflow: hidden;
  margin: 8px 0;
}
.meter > div {
  height: 100%;
  background: #29c392;
}
.hierarchy {
  padding: 0;
  margin: 0;
  list-style: none;
}
.hierarchy li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  gap: 8px;
  font-size: 12px;
}
.hierarchy li:last-child {
  border-bottom: 0;
}
.hierarchy .indent {
  padding-left: 15px;
}
.hierarchy .indent2 {
  padding-left: 28px;
}
.status {
  border-radius: 6px;
  padding: 4px 7px;
  font-weight: 700;
  font-size: 10px;
  color: #b8f9d8;
  background: #145e44;
}
.status.closed {
  background: #7a2632;
  color: #ffb6c1 !important;
}
.bottom-nav {
  height: 72px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #04121f;
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 490px;
  z-index: 5;
  border-top: 1px solid #274253;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav button {
  background: transparent;
  border: 0;
  color: #9db5c8;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 10px;
  flex: 1;
  padding: 8px 2px;
}
.bottom-nav button span {
  font-size: 23px;
  line-height: 1.1;
}
.bottom-nav button.active {
  color: #f44751;
  font-weight: 800;
}
.staff-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  margin: 0 -14px 8px;
}
.staff-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 14px 2px 12px;
  font-size: 11px;
}
.staff-tabs button.active {
  border-bottom: 3px solid #ee3e47;
  color: #f55b63;
}
.staff-hero {
  background: linear-gradient(120deg, #471824, #180e20);
  border-color: #672933;
  padding: 14px;
}
.review {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.review:last-child {
  border: 0;
}
.review .thumbnail {
  width: 58px;
  min-width: 58px;
  height: 58px;
  font-size: 24px;
}
.review .media-text h3 {
  font-size: 12px;
}
.review .media-text p {
  font-size: 10px;
}
.mini-btn {
  border: 1px solid #237856;
  background: #105438;
  color: #90e7bf;
  border-radius: 7px;
  padding: 8px;
}
.mini-btn.no {
  background: #51202d;
  border-color: #942b3b;
  color: #ff9a9e;
}
.actions {
  display: flex;
  gap: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.stat {
  border: 1px solid var(--line);
  padding: 10px 4px;
  border-radius: 9px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 19px;
  color: var(--gold);
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.form {
  display: grid;
  gap: 13px;
}
.form label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 8px;
  padding: 11px;
  min-width: 0;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: 430px;
  width: calc(100% - 30px);
  max-height: 84vh;
  overflow: auto;
  padding: 26px 20px;
}
dialog::backdrop {
  background: #000b;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 25px;
}
.secondary {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px;
  border-radius: 9px;
}
.wide {
  width: 100%;
  margin: 6px 0;
}
.settings {
  display: grid;
  gap: 8px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.setting-row label {
  font-size: 13px;
}
input[type="checkbox"] {
  width: auto;
  accent-color: #e9aa37;
  width: 18px;
  height: 18px;
}
.warn {
  color: var(--gold);
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5d78b;
  color: #182330;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  z-index: 15;
  display: none;
  max-width: 90vw;
  width: max-content;
}
#toast.show {
  display: block;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 26px 8px;
}
.demo-flag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbd38a;
  opacity: 0.9;
  margin-bottom: 10px;
}
.image-frame img {
  max-width: 100%;
  max-height: 225px;
  object-fit: cover;
  border-radius: 10px;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-row:last-child {
  border: 0;
}
.nav-row button {
  border: 0;
  background: transparent;
  color: var(--gold);
}
@media (min-width: 650px) {
  body {
    padding: 26px;
  }
  .app {
    border-radius: 34px;
    overflow: clip;
    border: 6px solid #1c2935;
    min-height: 850px;
  }
  .app-header {
    position: relative;
  }
  .bottom-nav {
    bottom: 26px;
    max-width: 478px;
    border-radius: 0 0 28px 28px;
  }
  .desktop-note {
    display: block;
    position: fixed;
    top: 30%;
    right: calc(50% + 275px);
    font-family: Georgia, serif;
    font-size: 23px;
    color: #ffcf75;
    max-width: 220px;
    text-align: right;
  }
  .desktop-note span {
    font-family: system-ui;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    margin-top: 12px;
    color: #b1c4d5;
  }
}
@media (max-width: 365px) {
  .logo-button {
    width: 164px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .thumbnail {
    width: 89px;
    min-width: 89px;
  }
  .media-card {
    gap: 8px;
  }
}
