@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input { font: inherit; }
}

@layer base {
  :root {
    --ink: #10202d;
    --navy: #08243d;
    --navy-light: #123a59;
    --water: #2c6d7a;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --gold: #d9a441;
    --gold-dark: #a87521;
    --line: rgba(8, 36, 61, .16);
    --muted: #586873;
    --white: #fff;
    --shadow: 0 22px 60px rgba(4, 28, 46, .12);
    --radius: 4px;
  }

  body {
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    content: "";
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  }

  h1, h2, h3 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
  }

  h1 { font-size: clamp(2.75rem, 6.5vw, 6.3rem); letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 4vw, 3.75rem); letter-spacing: -.035em; }
  h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
  p + p { margin-top: .85rem; }
  a { color: var(--navy); text-underline-offset: .22em; }
  a:hover { color: var(--gold-dark); }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  ::selection { color: var(--navy); background: #efdcae; }
}

@layer components {
  .container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
  .skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; color: var(--navy); background: var(--white); transform: translateY(-150%); }
  .skip-link:focus { transform: translateY(0); }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(8, 36, 61, .96);
    backdrop-filter: blur(18px);
  }
  .nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
  .brand { flex: 0 0 auto; }
  .brand img { width: clamp(225px, 26vw, 315px); }
  .nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
  .nav-links a { position: relative; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
  .nav-links a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); padding: 9px 13px; color: var(--white); background: transparent; font-weight: 800; }

  .hero {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.82);
    background:
      linear-gradient(115deg, rgba(8,36,61,.98) 0 48%, rgba(8,36,61,.72) 72%),
      repeating-linear-gradient(165deg, transparent 0 70px, rgba(217,164,65,.07) 71px 72px),
      var(--navy-light);
  }
  .hero::after { position: absolute; right: -12vw; bottom: -250px; width: 720px; height: 720px; border: 1px solid rgba(217,164,65,.25); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(217,164,65,.035), 0 0 0 160px rgba(217,164,65,.025); }
  .hero-grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(50px, 8vw, 120px); padding-block: 80px; }
  .hero h1 { max-width: 760px; color: var(--cream); }
  .hero p:not(.eyebrow) { max-width: 650px; margin-top: 28px; font-size: clamp(1.08rem, 1.5vw, 1.32rem); }
  .eyebrow { margin-bottom: 18px; color: var(--gold-dark); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
  .hero .eyebrow, .signup-panel .eyebrow { color: var(--gold); }
  .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
  .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 12px 20px; color: var(--navy); background: var(--gold); font-size: .82rem; font-weight: 900; letter-spacing: .055em; line-height: 1.15; text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
  .button:hover { color: var(--navy); background: #e5b95d; box-shadow: 5px 5px 0 rgba(217,164,65,.22); transform: translate(-2px,-2px); }
  .button.secondary, .button.outline { border-color: currentColor; color: var(--navy); background: transparent; }
  .hero .button.secondary { color: var(--cream); }
  .button.dark { color: var(--white); background: var(--navy); }
  .button.disabled { cursor: not-allowed; opacity: .62; box-shadow: none; transform: none; }

  .guide-card { justify-self: end; width: min(100%, 440px); padding: 13px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); box-shadow: 35px 35px 0 rgba(3,20,34,.24); transform: rotate(2.5deg); }
  .guide-cover { min-height: 500px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); color: rgba(255,255,255,.8); background: linear-gradient(145deg, #164d66, var(--navy)); }
  .guide-cover .year { align-self: flex-start; border-block: 1px solid var(--gold); padding: 4px 0; color: var(--gold); font-weight: 900; letter-spacing: .22em; }
  .guide-cover h2 { margin-top: auto; color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
  .guide-cover p { margin-top: 18px; font-size: .98rem; }
  .guide-cover svg { margin-top: 20px; }

  .section { padding-block: clamp(80px, 10vw, 140px); }
  .section.alt { background: var(--cream); }
  .section-heading { max-width: 810px; margin-bottom: clamp(42px, 7vw, 74px); }
  .section-heading .lead { max-width: 690px; margin-top: 22px; color: var(--muted); font-size: 1.18rem; }
  .grid-2, .grid-3 { display: grid; gap: 22px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .grid-3 > .card { grid-column: span 4; }
  .grid-3 > .card:nth-child(2) { margin-top: 44px; }
  .grid-3 > .card:nth-child(3) { margin-top: -18px; }
  .card { position: relative; min-height: 250px; border: 1px solid var(--line); padding: clamp(26px, 4vw, 42px); background: var(--paper); box-shadow: 8px 8px 0 rgba(8,36,61,.06); }
  .card::before { position: absolute; top: 0; left: 0; width: 54px; height: 3px; content: ""; background: var(--gold); transition: width .3s ease; }
  .card:hover::before { width: 100%; }
  .card h2, .card h3 { margin-bottom: 16px; }
  .card p { color: var(--muted); }
  .card .button { margin-top: 24px; }
  .icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 54px; border: 1px solid var(--gold); color: var(--gold-dark); font-family: Georgia, serif; font-size: .86rem; font-weight: 700; }

  .signup-panel { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); padding: clamp(34px, 7vw, 86px); color: rgba(255,255,255,.76); background: var(--navy); box-shadow: var(--shadow); }
  .signup-panel::before { position: absolute; top: 22px; right: 22px; width: 70px; height: 70px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); content: ""; }
  .signup-panel h2 { color: var(--white); }
  .signup-panel p:not(.eyebrow) { margin-top: 20px; }
  .status-badge, .badge { display: inline-block; border: 1px solid var(--gold); padding: 5px 10px; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .field { display: grid; gap: 7px; }
  .field.full { grid-column: 1 / -1; }
  .field label { color: var(--cream); font-size: .77rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .field input:not([type="checkbox"]) { width: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 0; padding: 13px 14px; color: var(--white); background: rgba(255,255,255,.07); }
  .field input:not([type="checkbox"]):focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,.11); }
  .field.check { grid-template-columns: auto 1fr; align-items: start; }
  .field.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); }
  .field.check label { letter-spacing: 0; line-height: 1.45; text-transform: none; }
  .honeypot { position: absolute; left: -9999px; }
  .fine { margin-top: 14px; color: rgba(255,255,255,.62); font-size: .78rem; }
  .fine a { color: var(--white); }
  .notice { border-left: 4px solid var(--gold); padding: 18px 22px; background: #fff7df; }
  .notice code { font-size: .86em; }
  .price-card .price { margin: 24px 0 12px; color: var(--navy); font-family: Georgia, serif; font-size: 2.3rem; line-height: 1; }
  .price-card .price span { color: var(--muted); font-family: inherit; font-size: .85rem; }
  .price-card ul { margin: 24px 0 0; padding-left: 20px; color: var(--muted); }
  .premium { border-color: var(--gold); background: #fffbef; }

  .legal { max-width: 820px; }
  .legal h1 { margin-bottom: 34px; font-size: clamp(2.6rem, 6vw, 5rem); }
  .legal h2 { margin: 42px 0 14px; font-size: 1.65rem; }
  .legal ul { padding-left: 22px; }

  .site-footer { color: rgba(255,255,255,.67); background: #061a2c; }
  .footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 60px; padding-block: 76px 58px; }
  .site-footer h2, .site-footer h3 { margin-bottom: 18px; color: var(--cream); }
  .site-footer h2 { font-size: 1.65rem; }
  .site-footer h3 { font-size: 1.05rem; }
  .site-footer a { color: rgba(255,255,255,.72); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,.11); padding-block: 22px; font-size: .78rem; letter-spacing: .05em; }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
}

@layer utilities {
  @media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px 28px; background: var(--navy); }
    .nav-links.is-open { display: grid; }
    .nav-links a { padding: 9px 0; }
    .hero-grid, .signup-panel { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; }
    .guide-card { justify-self: start; }
    .grid-3 > .card { grid-column: span 6; margin-top: 0 !important; }
    .grid-3 > .card:last-child { grid-column: 4 / span 6; }
  }

  @media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .nav { min-height: 72px; }
    .brand img { width: 215px; }
    .hero-grid { padding-block: 64px 82px; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .button-row, .button-row .button { width: 100%; }
    .guide-card { box-shadow: 18px 18px 0 rgba(3,20,34,.24); }
    .guide-cover { min-height: 430px; }
    .grid-2, .grid-3, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .grid-3 > .card, .grid-3 > .card:last-child { grid-column: auto; }
    .signup-panel { padding: 34px 24px; }
    .field.full { grid-column: auto; }
    .footer-grid { gap: 34px; }
  }
}

@layer components {
  .dashboard-page { background: #e9ece8; }
  .dashboard-main { min-height: 75vh; padding-bottom: 92px; }
  .dashboard-mast { position: relative; overflow: hidden; padding: 56px 0 92px; color: var(--cream); background: var(--navy); }
  .dashboard-mast::before { position: absolute; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(44,109,122,.5), transparent 30%), repeating-linear-gradient(118deg, transparent 0 78px, rgba(255,255,255,.025) 79px 80px); content: ""; }
  .dashboard-mast-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
  .dashboard-mast h1 { max-width: 760px; margin-top: 5px; font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .96; }
  .dashboard-intro { max-width: 720px; margin-top: 18px; color: rgba(255,255,255,.7); font-size: 1.08rem; }
  .dashboard-actions { display: flex; align-items: center; gap: 12px; padding-bottom: 5px; }
  .member-chip { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 10px 14px; color: rgba(255,255,255,.78); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .member-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.14); }
  .button.compact { min-height: 42px; padding: 10px 16px; font-size: .78rem; }
  .button.light { border-color: var(--cream); color: var(--navy); background: var(--cream); }
  .button.light:hover { background: var(--white); }

  .dashboard-canvas { position: relative; z-index: 2; margin-top: -52px; }
  .vessel-strip { display: grid; grid-template-columns: auto minmax(240px, 1fr) minmax(440px, 1.25fr); align-items: center; gap: 26px; border-top: 4px solid var(--gold); padding: 23px 28px; background: var(--paper); box-shadow: 0 18px 50px rgba(4,28,46,.13); }
  .vessel-mark { display: grid; width: 72px; height: 72px; place-items: center; background: var(--cream); }
  .vessel-mark svg { width: 54px; fill: var(--navy); }
  .dashboard-label { margin-bottom: 6px; color: var(--water); font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
  .vessel-identity h2 { font-size: 1.7rem; }
  .vessel-identity > p:last-child { margin-top: 3px; color: var(--muted); font-size: .86rem; }
  .vessel-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
  .vessel-facts div { border-left: 1px solid var(--line); padding-left: 26px; }
  .vessel-facts dt, .trip-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .vessel-facts dd, .trip-facts dd { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; }

  .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 20px; margin-top: 20px; }
  .dashboard-panel { background: var(--paper); box-shadow: 0 12px 34px rgba(4,28,46,.07); }
  .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
  .panel-heading h2, .resource-card h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
  .readiness-card { padding: 30px; }
  .trend-label { border-radius: 999px; padding: 7px 10px; color: #356b59; background: #e3eee7; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .readiness-visual { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 32px; padding: 28px 0 24px; }
  .readiness-ring { --progress: 72; position: relative; display: grid; width: 154px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--progress) * 1%), #e4e7e3 0); transition: background .35s ease; }
  .readiness-ring::after { position: absolute; width: 116px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); content: ""; }
  .readiness-ring div { position: relative; z-index: 1; display: grid; text-align: center; }
  .readiness-ring strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.25rem; line-height: 1; }
  .readiness-ring span { margin-top: 4px; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
  .readiness-copy p { color: var(--muted); }
  .readiness-copy a, .maintenance-footer a, .resource-link { display: inline-flex; gap: 8px; margin-top: 17px; color: var(--navy); font-size: .8rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
  .readiness-legend { display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .77rem; font-weight: 700; }
  .readiness-legend span { display: inline-flex; align-items: center; gap: 7px; }
  .readiness-legend i { width: 8px; height: 8px; border-radius: 50%; }
  .readiness-legend .ready { background: #497c69; }
  .readiness-legend .due { background: var(--gold); }
  .readiness-legend .watch { background: #b96b4d; }

  .next-trip-card { padding: 30px; color: var(--cream); background: var(--navy-light); }
  .next-trip-card .dashboard-label { color: #9bc1c7; }
  .date-tile { display: grid; min-width: 56px; padding: 8px; color: var(--navy); background: var(--gold); text-align: center; }
  .date-tile strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1; }
  .date-tile small { margin-top: 3px; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .trip-route { display: grid; grid-template-columns: 11px 1fr 11px; align-items: center; margin: 44px 4px 8px; }
  .trip-route span { width: 11px; height: 11px; border: 3px solid var(--gold); border-radius: 50%; }
  .trip-route span:last-child { background: var(--gold); }
  .trip-route i { height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 8px, transparent 8px 14px); }
  .trip-points { display: flex; justify-content: space-between; color: rgba(255,255,255,.74); font-size: .75rem; }
  .trip-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0 0; }
  .trip-facts dt { color: rgba(255,255,255,.54); }
  .trip-facts dd { color: var(--cream); font-size: 1rem; }
  .trip-note { display: flex; gap: 9px; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 17px; color: rgba(255,255,255,.66); font-size: .76rem; line-height: 1.5; }
  .trip-note span { display: grid; flex: 0 0 19px; height: 19px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 900; }

  .maintenance-card { padding: 30px; }
  .maintenance-heading { align-items: center; }
  .task-filters { display: flex; border: 1px solid var(--line); padding: 3px; background: #f0f1ed; }
  .task-filters button { border: 0; padding: 7px 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .task-filters button.is-active { color: var(--navy); background: var(--white); box-shadow: 0 2px 8px rgba(4,28,46,.1); }
  .task-filters button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .task-list { margin-top: 22px; border-top: 1px solid var(--line); }
  .task-row { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 15px; min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .task-row[hidden] { display: none; }
  .task-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .custom-check { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(8,36,61,.32); background: var(--white); }
  .task-row input:checked + .custom-check { border-color: var(--water); background: var(--water); }
  .task-row input:checked + .custom-check::after { width: 9px; height: 5px; border-bottom: 2px solid var(--white); border-left: 2px solid var(--white); transform: rotate(-45deg) translateY(-1px); content: ""; }
  .task-row input:focus-visible + .custom-check { outline: 3px solid var(--gold); outline-offset: 3px; }
  .task-copy { display: grid; gap: 4px; }
  .task-copy strong { font-size: .92rem; }
  .task-copy small { color: var(--muted); font-size: .73rem; }
  .task-row.is-complete .task-copy strong { color: var(--muted); text-decoration: line-through; }
  .priority { border-radius: 999px; padding: 6px 9px; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .priority.due { color: #94512f; background: #f5e8dd; }
  .priority.scheduled { color: #766021; background: #f4edcf; }
  .priority.complete { color: #356b59; background: #e3eee7; }
  .task-empty { padding: 38px 0 15px; color: var(--muted); text-align: center; }
  .maintenance-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 19px; color: var(--muted); font-size: .76rem; }
  .maintenance-footer a { margin-top: 0; }

  .resource-card { position: relative; overflow: hidden; padding: 30px; background: #ece3cf; }
  .resource-card::after { position: absolute; right: -50px; bottom: -64px; width: 160px; height: 160px; border: 26px solid rgba(217,164,65,.17); border-radius: 50%; content: ""; }
  .resource-art { display: grid; min-height: 154px; margin: 8px -30px 25px; place-items: center; background: var(--navy); }
  .resource-art svg { width: min(82%, 280px); fill: none; stroke: var(--gold); stroke-width: 3; }
  .resource-art svg path:first-child { fill: var(--cream); stroke: none; }
  .resource-type { color: var(--gold-dark); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .resource-card h2 { margin-top: 8px; }
  .resource-card > p:not(.dashboard-label) { margin-top: 12px; color: var(--muted); font-size: .86rem; }
  .resource-link { position: relative; z-index: 1; margin-top: 22px; }

  .activity-card { padding: 30px; }
  .text-button { border: 0; padding: 4px 0; color: var(--water); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .text-button:hover { color: var(--navy); }
  .text-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  .activity-list { margin: 22px 0 0; padding: 0; list-style: none; }
  .activity-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 17px 0; }
  .activity-icon { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); }
  .activity-icon::after { position: absolute; inset: 9px; border: 2px solid var(--water); content: ""; }
  .activity-icon.trip::after { inset: 8px 10px; border-width: 0 0 2px 2px; transform: skew(-25deg); }
  .activity-icon.check::after { inset: 8px 9px 10px; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
  .activity-list strong { font-size: .86rem; }
  .activity-list p { margin-top: 3px; color: var(--muted); font-size: .73rem; }
  .activity-list time { color: var(--muted); font-size: .7rem; font-weight: 800; }

  .log-dialog { width: min(100% - 32px, 540px); border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(3,20,34,.35); }
  .log-dialog::backdrop { background: rgba(3,20,34,.7); backdrop-filter: blur(3px); }
  .log-dialog form { padding: 30px; }
  .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
  .dialog-heading h2 { font-size: 2rem; }
  .dialog-close { border: 0; padding: 0 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.8rem; line-height: 1; }
  .log-dialog .field + .field { margin-top: 17px; }
  .log-dialog .field label { color: var(--navy); }
  .log-dialog .field input:not([type="checkbox"]), .log-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; color: var(--ink); background: var(--white); }
  .log-dialog .field input:not([type="checkbox"]):focus, .log-dialog textarea:focus { border-color: var(--gold-dark); outline: 3px solid rgba(217,164,65,.2); }
  .log-dialog textarea { resize: vertical; }
  .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
  .dialog-actions .button { min-height: 42px; padding: 10px 16px; }
}

@layer utilities {
  @media (max-width: 1050px) {
    .dashboard-mast-grid { grid-template-columns: 1fr; }
    .dashboard-actions { padding-bottom: 0; }
    .vessel-strip { grid-template-columns: auto 1fr; }
    .vessel-facts { grid-column: 1 / -1; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .maintenance-card, .activity-card { grid-column: 1 / -1; }
  }

  @media (max-width: 720px) {
    .dashboard-main { padding-bottom: 64px; }
    .dashboard-mast { padding: 44px 0 80px; }
    .dashboard-actions { align-items: stretch; flex-direction: column; }
    .member-chip { align-self: flex-start; }
    .vessel-strip { grid-template-columns: 58px 1fr; gap: 16px; padding: 20px; }
    .vessel-mark { width: 58px; height: 58px; }
    .vessel-facts { gap: 12px; }
    .vessel-facts div { padding-left: 12px; }
    .vessel-facts div:first-child { border-left: 0; padding-left: 0; }
    .vessel-facts dd { font-size: 1rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .maintenance-card, .activity-card { grid-column: auto; }
    .readiness-visual { grid-template-columns: 1fr; }
    .readiness-ring { width: 138px; }
    .maintenance-heading { align-items: flex-start; flex-direction: column; }
  }

  @media (max-width: 480px) {
    .dashboard-mast h1 { font-size: 2.75rem; }
    .vessel-strip { grid-template-columns: 1fr; }
    .vessel-mark { display: none; }
    .vessel-facts { grid-template-columns: 1fr 1fr; }
    .vessel-facts div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding: 12px 0 0; }
    .readiness-card, .next-trip-card, .maintenance-card, .resource-card, .activity-card { padding: 24px 20px; }
    .resource-art { margin-inline: -20px; }
    .task-row { grid-template-columns: 22px 1fr; padding: 12px 0; }
    .task-row .priority { grid-column: 2; justify-self: start; }
    .maintenance-footer { align-items: flex-start; flex-direction: column; }
    .trip-facts { grid-template-columns: 1fr 1fr; }
    .activity-list li { grid-template-columns: 30px 1fr; }
    .activity-list time { grid-column: 2; }
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions .button { width: 100%; }
  }
}
