/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f4efe7;
  --panel: #fffdf9;
  --line: #ddcfbf;
  --text: #1d1f1e;
  --muted: #66625b;
  --dark: #16222a;
  --olive: #637a3a;
  --sand: #e7dccd;
  --accent: #c96f38;
  --shadow: 0 18px 45px rgba(29, 31, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body.flowpulse-body {
  margin: 0;
  color: var(--text);
  font-family: Arial, sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(201, 111, 56, 0.08),
      transparent 22%
    ),
    radial-gradient(
      circle at left 20%,
      rgba(99, 122, 58, 0.08),
      transparent 26%
    ),
    var(--bg);
}

.home-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(221, 207, 191, 0.8);
  box-shadow: 0 10px 25px rgba(29, 31, 30, 0.04);
  backdrop-filter: blur(8px);
}

.sub-nav {
  justify-content: flex-start;
  margin-top: -4px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.sub-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sub-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(221, 207, 191, 0.8);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.sub-nav-links a:hover {
  color: var(--text);
  background: #f5f0e8;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.top-nav-links a:hover {
  color: var(--text);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dark);
  color: white !important;
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.user-trigger::-webkit-details-marker {
  display: none;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 5;
}

.user-dropdown a,
.user-menu-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-menu-button:hover {
  background: #f5f0e8;
}

.auth-shell,
.dashboard-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.app-sidebar-shell {
  position: relative;
}

.app-sidebar {
  background: linear-gradient(180deg, #18232b 0%, #111920 100%);
  border: 1px solid rgba(221, 207, 191, 0.22);
  border-radius: 28px;
  padding: 18px 14px;
  color: white;
  box-shadow: var(--shadow);
}

.app-sidebar-toggle,
.app-sidebar-overlay,
.app-sidebar-mobile-head {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

.app-sidebar-mobile-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-sidebar-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.workspace-switcher {
  margin-bottom: 18px;
}

.workspace-switcher-form {
  margin: 0;
}

.workspace-switcher-select {
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.app-sidebar-brand h2 {
  margin: 0;
  font-size: 1.1rem;
}

.app-sidebar-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-sidebar-nav {
  display: grid;
  gap: 14px;
}

.sidebar-group {
  display: grid;
  gap: 6px;
  padding-left: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.14);
}

.sidebar-group-traveler {
  border-left-color: #d3b38b;
}

.sidebar-group-creator {
  border-left-color: #8db06f;
}

.sidebar-group-professionals {
  border-left-color: #6f93b8;
}

.sidebar-group-superadmin {
  border-left-color: #d37d57;
}

.sidebar-group-space {
  border-left-color: #7f8b99;
}

.sidebar-group-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-group a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.sidebar-group a:hover,
.sidebar-group a.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-group form {
  margin: 0;
}

.sidebar-accordion {
  gap: 0;
}

.sidebar-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-accordion-summary::after {
  content: "▾";
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.sidebar-accordion[open] .sidebar-accordion-summary::after {
  transform: rotate(180deg);
}

.sidebar-accordion-summary::-webkit-details-marker {
  display: none;
}

.sidebar-accordion-body {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sidebar-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 22px;
}

.auth-copy,
.auth-card,
.dashboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-copy-inline {
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-copy h1,
.dashboard-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.96;
  max-width: 10ch;
}

.dashboard-card.admin-page h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  max-width: none;
}

.auth-copy p,
.dashboard-card p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--text);
  font: inherit;
}

.text-input {
  min-height: 46px;
  padding: 0 14px;
}

.text-area {
  padding: 12px 14px;
  resize: vertical;
}

.readonly-field {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f3ec;
  color: var(--muted);
  font-weight: 700;
}

.text-input:focus,
.text-area:focus {
  outline: 2px solid rgba(201, 111, 56, 0.18);
  border-color: var(--accent);
}

.auth-submit {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.auth-links a,
.auth-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flash-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
}

.flash-card strong,
.flash-card p {
  margin: 0;
}

.flash-card p {
  margin-top: 4px;
}

.flash-alert {
  background: #fff1ed;
  border: 1px solid #f2c5b6;
}

.flash-notice {
  background: #eef7f0;
  border: 1px solid #cfe4d2;
}

.status-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.status-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.request-creator-box {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f6f0e7;
  border: 1px solid var(--line);
}

.request-creator-box-success {
  background: #edf5ea;
  border-color: #c9ddbf;
}

.request-creator-box p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.request-price {
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.dashboard-actions {
  display: grid;
  gap: 16px;
}

.tree-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.tree-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-section {
  margin-top: 24px;
}

.admin-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfaf7;
}

.admin-list-copy strong,
.admin-list-copy p {
  margin: 0;
}

.admin-list-copy p {
  color: var(--muted);
  line-height: 1.45;
}

.admin-list-copy {
  display: grid;
  gap: 4px;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-compact-list {
  display: grid;
  gap: 10px;
}

.admin-compact-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(108px, 0.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfaf7;
}

.admin-compact-item-static {
  grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(108px, 0.6fr);
}

.admin-compact-main,
.admin-compact-col {
  display: grid;
  gap: 4px;
}

.admin-compact-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-compact-main-inline {
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.admin-compact-item .admin-compact-col:nth-child(4) {
  justify-items: end;
  text-align: right;
  white-space: nowrap;
}

.admin-compact-main strong,
.admin-compact-main span,
.admin-compact-col span {
  margin: 0;
}

.admin-compact-main span,
.admin-compact-col span {
  color: var(--muted);
  line-height: 1.4;
}

.admin-compact-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4ece1;
  border: 1px solid rgba(29, 31, 30, 0.08);
  color: var(--text) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-inline-badge-creator {
  background: #e9f1fb;
  color: #2f5f8e !important;
}

.admin-inline-badge-professional {
  background: #f8e9e3;
  color: #9a4f33 !important;
}

.admin-inline-badge-waiting {
  background: #f5efe3;
  color: #7d5a18 !important;
}

.admin-inline-badge-active {
  background: #edf6ec;
  color: #365427 !important;
}

.dashboard-meta {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(29, 31, 30, 0.09);
}

.dashboard-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-item p {
  margin: 0;
}

.dashboard-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dashboard-status-strong {
  display: inline-flex;
}

.dashboard-section {
  margin: 22px 0;
}

.dashboard-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel-stack {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-grid-professionals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fcfaf7;
}

.dashboard-panel-blue {
  background: #eaf2fb;
}

.dashboard-panel-green {
  background: #edf6ec;
}

.dashboard-panel-red {
  background: #f9ece8;
}

.dashboard-panel-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.dashboard-panel-price {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.dashboard-panel p {
  margin: 0;
}

.dashboard-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.dashboard-panel-meta.outside {
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

.dashboard-state-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(29, 31, 30, 0.08);
}

.dashboard-state-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0.42;
}

.dashboard-state-tab.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(29, 31, 30, 0.08);
}

.dashboard-state-tab-success {
  color: #365427;
}

.dashboard-state-tab-waiting {
  color: #7d5a18;
}

.dashboard-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(29, 31, 30, 0.09);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-panel-status {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.dashboard-panel-note {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.dashboard-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fcfaf7;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

.dashboard-tab-link small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(29, 31, 30, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-tab-link:hover {
  background: #f5f0e8;
}

.dashboard-tab-link.active {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.dashboard-tab-link.active small {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.dashboard-tabs-subtle {
  margin-top: 0;
  margin-bottom: 18px;
}

.dashboard-tabs-subtle .dashboard-tab-link {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  border-color: rgba(29, 31, 30, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-tabs-subtle .dashboard-tab-link:hover {
  background: rgba(29, 31, 30, 0.03);
  color: var(--text);
}

.dashboard-tabs-subtle .dashboard-tab-link.active {
  background: #f1e8db;
  border-color: #d8c6b1;
  color: var(--text);
}

.home-hero,
.info-card,
.wide-card,
.hero-card {
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 22px;
}

.hero-copy {
  padding: 22px 18px;
}

.eyebrow,
.hero-card-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy h1,
.wide-card h2,
.info-card h2 {
  margin: 0 0 14px;
}

.about-step-title {
  margin: 26px 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.hero-text,
.info-card p,
.wide-card p,
.small-note,
.hero-list span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel {
  display: flex;
}

.hero-card {
  width: 100%;
  padding: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(231, 220, 205, 0.8),
      rgba(255, 253, 249, 0.96)
    ),
    var(--panel);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease;
}

form.button_to {
  margin: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-secondary {
  background: var(--sand);
  color: var(--text);
}

.btn-admin-muted {
  background: #f5efe6;
  color: #4d4a44;
}

.btn-block {
  width: 100%;
}

.section-grid,
.split-section {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.wide-card {
  padding: 24px;
}

.split-section {
  grid-template-columns: 1.15fr 0.85fr;
}

.tree-preview {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f2ea;
  border: 1px solid var(--line);
  font-family: "Courier New", monospace;
  line-height: 1.8;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(99, 122, 58, 0.08), rgba(255, 253, 249, 0.96)),
    var(--panel);
}

.journey-list {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.journey-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-weight: 700;
}

.changelog-head {
  display: block;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(221, 207, 191, 0.9);
}

.changelog-stream {
  margin-top: 6px;
  display: grid;
}

.changelog-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(221, 207, 191, 0.68);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  cursor: pointer;
}

.changelog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.changelog-line,
.changelog-modal-text {
  margin: 0;
}

.changelog-item:hover .changelog-line {
  color: var(--accent);
}

.change-pill,
.changelog-modal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}

.change-pill-update {
  color: var(--dark);
}

.change-pill-ux {
  color: var(--accent);
}

.change-pill-link {
  color: var(--olive);
}

.changelog-modal-pill {
  color: var(--dark);
}

.changelog-line {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}

.changelog-modal {
  width: min(560px, calc(100% - 24px));
  border: none;
  padding: 0;
  background: transparent;
}

.changelog-modal::backdrop {
  background: rgba(22, 34, 42, 0.42);
  backdrop-filter: blur(4px);
}

.changelog-modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(22, 34, 42, 0.18);
}

.changelog-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.changelog-modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.changelog-modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.changelog-modal-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.port-modal {
  position: fixed;
  inset: 0;
  width: min(640px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  margin: auto;
}

.port-modal-card {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

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

.port-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.port-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sea-island {
  min-width: 132px;
  padding: 0.6rem 0.72rem;
  border: 0;
  box-shadow:
    0 22px 38px rgba(15, 23, 42, 0.12),
    0 10px 22px rgba(14, 116, 144, 0.1);
  cursor: default;
  user-select: none;
  text-align: center;
  transition: transform 0.1s;
  z-index: 10;
  backdrop-filter: blur(1px);
}

.sea-island::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -12px;
  height: 18px;
  border-radius: 50%;
  background: rgba(14, 116, 144, 0.16);
  filter: blur(10px);
  z-index: -1;
}

.sea-island-flag {
  position: absolute;
  top: -12px;
  left: 10px;
  width: 26px;
  height: 34px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  z-index: 2;
}

.sea-island-flag-pole {
  width: 3px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.sea-island-flag-cloth {
  display: inline-block;
  width: 15px;
  height: 11px;
  margin-top: 2px;
  margin-left: 1px;
  border: 1px solid;
  border-left: 0;
  border-radius: 1px 8px 8px 1px;
  clip-path: polygon(0 0, 100% 10%, 82% 50%, 100% 90%, 0 100%);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

.sea-island.island-brand,
.sea-island.island-blog,
.sea-island.island-book,
.sea-island.island-generic {
  border-radius: 47% 53% 41% 59% / 58% 42% 56% 44%;
}

.sea-island.island-map {
  width: 124px;
  min-height: 108px;
  border-radius: 52% 48% 46% 54% / 57% 43% 59% 41%;
}

.sea-island-shore {
  width: 100%;
  min-width: 112px;
  padding: 0.42rem 0.48rem;
  border-radius: 49% 51% 43% 57% / 59% 41% 55% 45%;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.99), rgba(254, 249, 231, 0.96) 34%, rgba(239, 246, 255, 0.88) 68%, rgba(191, 219, 254, 0.58) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.7));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(147, 197, 253, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.36),
    0 1px 0 rgba(255, 248, 220, 0.75);
}

.sea-island-core {
  width: 100%;
  min-width: 100px;
  min-height: 74px;
  padding: 0.62rem 0.85rem 0.58rem;
  border: 2px solid;
  border-radius: 52% 48% 44% 56% / 58% 42% 54% 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 8px rgba(15, 23, 42, 0.05);
}

.sea-island-icon {
  font-size: 1.28rem;
  line-height: 1;
}

.sea-island-name {
  font-size: 0.78rem;
  color: #0f172a;
  line-height: 1.15;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
}

.sea-island.island-map .sea-island-core {
  min-height: 80px;
  justify-content: center;
  border-radius: 56% 44% 52% 48% / 46% 58% 42% 54%;
}

.sea-island.island-brand .sea-island-core {
  transform: rotate(-1.5deg);
}

.sea-island.island-blog .sea-island-core {
  transform: rotate(1deg);
}

.sea-island.island-book .sea-island-core {
  transform: rotate(-0.8deg);
}

.sea-chart-wave-layer,
.sea-chart-reef-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sea-chart-wave-layer {
  z-index: 1;
  opacity: 0.42;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='220' viewBox='0 0 600 220'%3E%3Cg fill='none' stroke='%23539dd1' stroke-width='2.4'%3E%3Cpath opacity='0.22' d='M0 74c42-18 84-18 126 0s84 18 126 0 84-18 126 0 84 18 126 0 84-18 126 0'/%3E%3Cpath opacity='0.16' d='M-24 128c36-14 72-14 108 0s72 14 108 0 72-14 108 0 72 14 108 0 72-14 108 0'/%3E%3Cpath opacity='0.14' d='M0 174c48-16 96-16 144 0s96 16 144 0 96-16 144 0 96 16 144 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 220px;
  background-repeat: repeat;
}

.sea-chart-reef-layer {
  z-index: 1;
}

.sea-chart-fish {
  position: absolute;
  width: 92px;
  height: 46px;
  fill: rgba(14, 116, 144, 0.1);
  stroke: rgba(14, 116, 144, 0.12);
  stroke-width: 1.5;
  transform: rotate(-8deg);
  user-select: none;
}

.sea-chart-fish.fish-a {
  top: 16%;
  right: 10%;
}

.sea-chart-fish.fish-b {
  bottom: 14%;
  left: 9%;
  transform: rotate(7deg);
}

.sea-chart-fish.fish-c {
  top: 54%;
  left: 48%;
  width: 72px;
  height: 36px;
  fill: rgba(37, 99, 235, 0.08);
  stroke: rgba(37, 99, 235, 0.1);
}

@media (max-width: 720px) {
  .port-form-grid-two,
  .port-form-grid-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .sea-island {
    min-width: 104px;
    padding-inline: 0.55rem;
  }

  .sea-island.island-map {
    width: 108px;
    min-height: 96px;
  }

  .sea-island-flag {
    top: -10px;
    left: 8px;
    transform: scale(0.92);
    transform-origin: top left;
  }

  .sea-chart-fish {
    width: 64px;
    height: 32px;
  }

  .sea-chart-fish.fish-c {
    display: none;
  }

  .top-nav {
    align-items: flex-start;
    padding: 14px;
  }

  .top-nav-links {
    justify-content: flex-start;
  }

  .user-dropdown {
    right: auto;
    left: 0;
  }

  .changelog-item {
    gap: 6px;
  }
}

@media (max-width: 960px) {
  .app-layout,
  .home-hero,
  .auth-grid,
  .section-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 90;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(24, 35, 43, 0.12);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.96);
    color: #18232b;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(29, 31, 30, 0.08);
    cursor: pointer;
  }

  .app-sidebar-toggle-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .app-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    border: 0;
    background: rgba(17, 25, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(320px, calc(100vw - 26px));
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 180ms ease;
  }

  .app-sidebar-mobile-head {
    display: flex;
  }

  .app-sidebar-shell.is-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-shell.is-open .app-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-card {
    margin-top: 42px;
  }
}

@media (max-width: 720px) {
  .home-shell {
    width: min(100%, calc(100% - 24px));
    padding: 18px 0 36px;
  }

  .auth-shell,
  .dashboard-shell {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0 36px;
  }

  .home-hero,
  .app-sidebar,
  .auth-copy,
  .auth-card,
  .dashboard-card,
  .info-card,
  .wide-card,
  .hero-card {
    border-radius: 22px;
  }

  .home-hero,
  .app-sidebar,
  .auth-copy,
  .auth-card,
  .dashboard-card,
  .info-card,
  .wide-card {
    padding: 18px;
  }

  .dashboard-card {
    margin-top: 48px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
}

.blog-index-header {
  width: 100%;
  max-width: 1120px;
  padding: 0;
}

.blog-index-shell {
  width: 100%;
  max-width: 1120px;
  padding: 0;
}

.blog-index-title {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-index-intro {
  margin: 0;
  max-width: 72ch;
  color: #5f5953;
  line-height: 1.75;
  font-size: 0.98rem;
}

.blog-index-rule {
  margin: 1.4rem 0 0;
  border: 0;
  border-top: 1px solid rgba(34, 30, 26, 0.09);
}

.blog-index-list {
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
}

.blog-index-item {
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.75rem 0 1.95rem;
  border-bottom: 1px solid rgba(34, 30, 26, 0.08);
}

.blog-index-item:first-child {
  padding-top: 0.55rem;
}

.blog-index-date p {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #7b746d;
  letter-spacing: 0.01em;
}

.blog-index-copy {
  min-width: 0;
}

.blog-index-item-title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.68rem, 2.7vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-index-item-title a:hover {
  color: #3f5f52;
}

.blog-index-excerpt {
  margin: 0.45rem 0 0;
  max-width: 74ch;
  line-height: 1.78;
  color: #554f49;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .blog-index-rule {
    margin-top: 1.25rem;
  }

  .blog-index-item {
    grid-template-columns: 1fr;
    gap: 0.38rem;
    padding: 1rem 0 1.2rem;
  }

  .blog-index-date p {
    margin-top: 0;
  }

  .blog-index-item-title {
    max-width: none;
  }
}

.blog-post {
  max-width: 860px;
}

.blog-post-title,
.blog-content-title {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111111;
}

.blog-post-date {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: #6f6b66;
}

.blog-content {
  display: grid;
  gap: 0.9rem;
}

.blog-content-heading,
.blog-content-heading-small {
  margin: 1rem 0 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111111;
}

.blog-content-heading {
  font-size: 1.45rem;
}

.blog-content-heading-small {
  font-size: 1.1rem;
}

.blog-content-paragraph,
.blog-content-list {
  margin: 0;
  max-width: 70ch;
  line-height: 1.7;
  color: #2e2a26;
}

.blog-content-list {
  padding-left: 1.15rem;
}
