:root {
  --bg: #070b12;
  --bg-soft: #0d1421;
  --surface: #111a2a;
  --surface-soft: #182335;
  --surface-strong: #0c1422;
  --text: #edf3fb;
  --muted: #a4b2c7;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(240, 190, 61, 0.22);
  --blue: #7ea3ff;
  --blue-strong: #3f68d8;
  --gold: #f0be3d;
  --gold-soft: #ffe39a;
  --burgundy: #761817;
  --burgundy-strong: #b3211b;
  --danger: #c45249;
  --danger-soft: rgba(240, 190, 61, 0.16);
  --warning-text: #1d1604;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(240, 190, 61, 0.12), transparent 24rem),
    radial-gradient(circle at top left, rgba(126, 163, 255, 0.14), transparent 22rem),
    linear-gradient(180deg, #08101d 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: var(--gold-soft);
}

.shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.site-utility {
  background: linear-gradient(90deg, var(--burgundy-strong) 0%, var(--burgundy) 62%, #551111 100%);
  border-bottom: 3px solid var(--gold);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  color: #fff6db;
  font-size: 0.88rem;
  gap: 1rem;
}

.utility-divider {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 190, 61, 0.12);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-lockup-utility {
  flex: 0 1 auto;
}

.brand-mark-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark {
  display: block;
  width: auto;
  height: 3.5rem;
  max-width: min(22vw, 10rem);
  object-fit: contain;
}

.brand {
  display: inline-block;
  font-family: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  color: rgba(255, 246, 219, 0.86);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  justify-content: flex-end;
  width: max-content;
  white-space: nowrap;
}

.main-nav a {
  text-decoration: none;
  background: rgba(7, 11, 18, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.52rem 0.92rem;
  color: #fff8e6;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.main-nav-utility {
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a:hover,
.main-nav a.is-active {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffd86f 0%, var(--gold) 100%);
  border-color: rgba(255, 214, 105, 0.9);
  color: #22170a;
}

.page-shell {
  padding: 1.6rem 0 3.4rem;
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.flash {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 42, 0.9);
}

.flash-error {
  background: rgba(118, 24, 23, 0.24);
  border-color: rgba(196, 82, 73, 0.56);
}

.flash-success {
  background: rgba(58, 99, 40, 0.22);
  border-color: rgba(120, 185, 113, 0.42);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-dashboard {
  background-color: #09111e;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 223, 132, 0.24), transparent 7.5rem),
    linear-gradient(90deg, rgba(7, 11, 18, 0.16) 0%, rgba(7, 11, 18, 0.02) 28%, rgba(7, 11, 18, 0.38) 100%);
  opacity: 1;
  pointer-events: none;
}

.hero-dashboard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.7rem;
  background: linear-gradient(90deg, #f7cf64 0%, var(--gold) 55%, #f7cf64 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  color: #ffe8ac;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.home-bottom-tiles {
  margin-top: 2.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 156px;
  padding: 1.3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 35, 53, 0.96) 0%, rgba(13, 20, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(31, 45, 67, 0.96) 0%, rgba(13, 20, 33, 0.98) 100%);
}

.tile-accent {
  background:
    linear-gradient(140deg, rgba(179, 33, 27, 0.78) 0%, rgba(120, 30, 26, 0.5) 28%, rgba(15, 23, 37, 0.96) 100%);
}

.tile-muted {
  background: linear-gradient(180deg, rgba(19, 28, 42, 0.96) 0%, rgba(11, 18, 29, 0.98) 100%);
}

.tile-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.tile-text {
  color: var(--muted);
  line-height: 1.55;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.9rem;
  }

.panel {
  background: linear-gradient(180deg, rgba(17, 26, 42, 0.96) 0%, rgba(12, 20, 34, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 4px solid var(--gold);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.panel.narrow {
  width: min(100%, 540px);
  margin: 0 auto;
}

.panel-wide {
  width: 100%;
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-header h1,
.panel-header h2 {
  margin: 0 0 0.35rem;
  font-family: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
  color: var(--blue);
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.login-intro {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.login-intro-link {
  margin: 0;
}

.login-request-copy {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 0;
}

.login-debug-panel {
  margin-top: 1.35rem;
}

.login-intro-action {
  margin: 0.2rem 0 0;
}

.filter-form {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(8, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.filter-grid label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.logbook-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.logbook-toolbar-form {
  display: flex;
  flex: 1 1 700px;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.inline-filter {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  white-space: nowrap;
}

.inline-filter span {
  color: var(--muted);
}

.inline-filter select {
  min-width: 170px;
  width: auto;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row span {
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 11, 18, 0.9);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #7d8aa0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, #ffd86f 0%, var(--gold) 100%);
  color: #241607;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(240, 190, 61, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.button-danger {
  background: linear-gradient(180deg, #c04e4a 0%, #923431 100%);
  color: #fff7f7;
  box-shadow: none;
}

.list-stack {
  display: grid;
  gap: 0.9rem;
}

.list-card,
.news-card,
.info-card {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 50, 0.96) 0%, rgba(15, 24, 39, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.list-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.list-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}

.pill {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-warning {
  background: rgba(240, 190, 61, 0.92);
  color: var(--warning-text);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.toolbar-tight {
  margin-top: 1rem;
  margin-bottom: 0;
}

.toolbar form {
  margin: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-actions-nowrap {
  flex-wrap: nowrap;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-button-accent {
  background: linear-gradient(180deg, #ffd86f 0%, var(--gold) 100%);
  color: #241607;
  border-color: rgba(255, 214, 105, 0.9);
}

.news-image {
  width: 100%;
  max-width: 320px;
  display: block;
  border-radius: 16px;
  margin: 0.9rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-preview {
  max-width: 240px;
}

.news-body {
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.file-meta {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(8, 15, 26, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-help {
  color: var(--muted);
  margin: 0 0 1rem;
}

.dialog-close-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.75rem;
}

.login-request-dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 35, 53, 0.98) 0%, rgba(13, 20, 33, 1) 100%);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.login-request-dialog::backdrop {
  background: rgba(4, 8, 14, 0.72);
}

.panel-header-compact h2 {
  margin-top: 0;
}

.debug-output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-value {
  line-height: 1.5;
  white-space: pre-wrap;
}

.top-gap {
  margin-top: 1rem;
}

.category-stack {
  display: grid;
  gap: 1rem;
}

.category-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 35, 53, 0.96) 0%, rgba(13, 20, 33, 0.98) 100%);
  overflow: hidden;
}

.category-card h3 {
  margin: 0;
  padding: 1rem 1rem 0;
}

.category-toggle {
  width: 100%;
  justify-content: space-between;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.category-toggle-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.category-content {
  padding: 1rem;
}

.question-stack {
  display: grid;
  gap: 0.85rem;
}

.question-card {
  display: grid !important;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.question-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.question-title {
  font-weight: 700;
}

.question-answer {
  white-space: pre-wrap;
  line-height: 1.6;
}

.question-card-display {
  gap: 0.9rem;
}

.question-prompt {
  display: grid;
  gap: 0.2rem;
}

.question-label,
.answer-label,
.summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-block {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-card {
  display: block;
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 35, 53, 0.96) 0%, rgba(13, 20, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
}

.admin-card:hover {
  border-color: var(--line-strong);
}

.admin-card h3 {
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tool-overview-stack {
  display: grid;
  gap: 1.25rem;
}

.tool-overview-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.96) 0%, rgba(11, 18, 29, 0.98) 100%);
  overflow: hidden;
}

.tool-overview-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.tool-overview-group-head h2 {
  margin: 0 0 0.2rem;
}

.tool-overview-group-head p {
  margin: 0;
  color: var(--muted);
}

.tool-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.2rem;
}

.tool-overview-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.32);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-overview-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(14, 22, 34, 0.66);
}

.tool-overview-thumb-wrap {
  width: 88px;
}

.tool-overview-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tool-overview-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem;
}

.tool-overview-body {
  min-width: 0;
}

.tool-overview-body strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #ffffff;
  font-size: 1rem;
}

.tool-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.tool-overview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.planning-status-pill-muted {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.admin-form-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-form-table th,
.admin-form-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.admin-form-table th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.admin-form-table form {
  display: contents;
}

.admin-form-table textarea {
  min-height: 5.5rem;
}

.checkbox-center {
  text-align: center;
}

.inline-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.profile-summary {
  display: grid;
  gap: 0.85rem;
}

.readonly-field {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.readonly-field strong {
  font-size: 1rem;
  color: #ffffff;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-form-grid .field-span-2 {
  grid-column: 1 / -1;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.subscription-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 50, 0.96) 0%, rgba(15, 24, 39, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.subscription-card h3 {
  margin: 0;
  color: #ffffff;
}

.subscription-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.handbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.handbook-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 50, 0.96) 0%, rgba(15, 24, 39, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.handbook-preview {
  display: block;
  height: 240px;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f4f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.handbook-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  pointer-events: none;
}

.handbook-content h3 {
  margin: 0 0 0.4rem;
}

.handbook-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.planning-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1rem;
}

.planning-filter-row form {
  margin: 0;
}

.planning-filter-row label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.planning-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
}

.planning-sidebar {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.planning-item-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 35, 53, 0.96) 0%, rgba(13, 20, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}

.planning-item-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.55);
}

.planning-item-card:hover,
.planning-item-card.is-active,
.planning-new-card:hover {
  border-color: var(--line-strong);
}

.planning-new-card {
  border-style: dashed;
}

.planning-status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(126, 163, 255, 0.14);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.planning-detail {
  min-width: 0;
}

.planning-image-preview {
  display: grid;
  gap: 0.6rem;
}

.planning-image-preview img {
  width: 100%;
  max-width: 420px;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.55);
}

.tool-general-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.tool-general-main {
  margin: 0;
}

.tool-general-side {
  min-width: 0;
}

.tool-photo-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
}

.tool-video-preview {
  display: grid;
  gap: 0.6rem;
}

.tool-video-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.65);
}

.tool-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tool-project-layout {
  display: grid;
  gap: 1rem;
}

.tool-project-form {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-project-cards {
  display: grid;
  gap: 0.9rem;
}

.tool-project-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 50, 0.96) 0%, rgba(15, 24, 39, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.tool-project-meta strong {
  color: #ffffff;
}

.tool-project-text {
  line-height: 1.65;
}

.tool-project-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-project-files a {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(126, 163, 255, 0.14);
  color: var(--blue);
  text-decoration: none;
}

.planning-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.planning-tabs button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.planning-tabs button.is-active {
  background: linear-gradient(180deg, #ffd86f 0%, var(--gold) 100%);
  color: #241607;
}

.tab-content {
  display: none;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-content.active {
  display: block;
}

.summary-strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.summary-card {
  min-width: 150px;
  flex: 0 0 auto;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.highlight-row {
  background: rgba(240, 190, 61, 0.08);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .settings-grid,
  .profile-form-grid,
  .planning-layout {
    grid-template-columns: 1fr;
  }

  .profile-form-grid .field-span-2 {
    grid-column: auto;
  }

  .tool-general-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .utility-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav-utility {
    margin-left: 0;
    width: 100%;
  }
}
