:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #17211b;
  --muted: #66736a;
  --line: #dfe5dd;
  --accent: #177e89;
  --accent-strong: #0b5961;
  --warm: #f2b84b;
  --danger: #b54747;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 24px;
  background: #13231f;
  color: #f8fbf7;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--warm);
  color: #13231f;
  font-weight: 800;
}

.brand small,
.eyebrow {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.sidebar .brand small {
  color: #b9c6bd;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group + .nav-group {
  margin-top: 4px;
}

.nav-group-label {
  margin: 8px 10px 2px;
  color: #b9c6bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dev-nav {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(242, 184, 75, 0.32);
  padding-bottom: 12px;
}

.sidebar-dev-tools {
  display: grid;
  gap: 10px;
  margin-top: auto;
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 8px;
  padding: 12px;
  background: rgba(74, 55, 28, 0.34);
}

.dev-section-label {
  color: #ffe2a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-switcher {
  display: grid;
  gap: 8px;
  color: #b9c6bd;
}

.nav-item,
.secondary-action {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: #dfe8e2;
}

.nav-item.active,
.secondary-action {
  background: #244139;
}

.nav-item.dev-nav-item {
  border: 1px solid rgba(242, 184, 75, 0.36);
  background: rgba(74, 55, 28, 0.2);
  color: #fff3d4;
}

.nav-item.dev-nav-item.active {
  background: #4a371c;
  color: #fff8e8;
}

.secondary-action {
  text-align: center;
}

.secondary-action + .secondary-action {
  margin-top: 0;
}

main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 20px;
}

.status-pill {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
}

.status-pill.ok {
  color: var(--accent-strong);
  border-color: #b9d9d7;
}

.status-pill.error {
  color: var(--danger);
  border-color: #e7b8b8;
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: start;
  min-width: 0;
  gap: 18px;
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-hidden {
  display: none;
}

.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.wide {
  grid-column: 1 / -1;
}

.hero-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  min-height: 0;
  background: linear-gradient(135deg, #fdfdfb 0%, #ecf4f1 100%);
}

.owner-boat-overview {
  display: grid;
  gap: 12px;
}

.boat-photo-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.boat-photo-card.has-photo {
  border-color: #b9d9d7;
  background: #f4faf8;
}

.boat-photo-preview {
  display: grid;
  width: 96px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 126, 137, 0.2), rgba(242, 184, 75, 0.28)),
    #eef5f2;
  color: var(--accent-strong);
  font-weight: 900;
}

.boat-photo-card p,
.boat-photo-card strong {
  overflow-wrap: anywhere;
}

.owner-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.owner-overview-strip span {
  display: grid;
  gap: 2px;
  border-left: 3px solid #b9d9d7;
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.owner-overview-strip strong {
  color: var(--ink);
}

.owner-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.owner-next-grid article {
  display: grid;
  gap: 4px;
  border-top: 1px solid #d7e4e1;
  padding-top: 10px;
  min-width: 0;
}

.owner-next-grid strong,
.owner-next-grid p {
  overflow-wrap: anywhere;
}

.owner-next-grid p:last-child {
  color: var(--muted);
}

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

.dashboard-action {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #b9d9d7;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: #f4faf8;
  color: var(--ink);
}

.dashboard-action:hover,
.dashboard-action:focus-visible {
  border-color: var(--accent);
  background: #e9f5f2;
}

.dashboard-action span {
  color: var(--muted);
  font-size: 13px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.inline-form.invoice-form {
  grid-template-columns: minmax(140px, 220px) auto;
}

.inline-form.offer-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.inline-form.offer-form button {
  min-height: 43px;
}

.offer-box {
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.offer-box p {
  margin: 8px 0 0;
}

.review-box {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
}

.review-box p {
  margin: 0;
  color: var(--muted);
}

.inline-form.review-form {
  grid-template-columns: minmax(120px, 160px) minmax(180px, 1fr) auto;
}

.compact-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  align-items: end;
}

.boat-profile-panel .compact-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.compact-form button {
  min-height: 43px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
}

.check-row input {
  width: auto;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

select:disabled {
  color: #8c9990;
  background: #f2f5f1;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
}

.form button,
.offer-button,
.accept-button,
.ghost-button,
.danger-button,
.filter-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.accept-button {
  background: var(--accent-strong);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-strong);
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.danger-button {
  background: var(--danger);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-strong);
}

.filter-button.active {
  background: var(--accent);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.service-card {
  background: #f8fbfa;
}

.help-form,
.need-finder {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.recommendation-list {
  margin-bottom: 16px;
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid #d7e4e1;
  padding-bottom: 10px;
}

.recommendation-header h3 {
  margin: 0;
  font-size: 18px;
}

.recommendation-card {
  border-color: #b9d9d7;
  background: #f3faf8;
}

.trust-line {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.trust-badge {
  border-color: #b9d9d7;
  color: var(--accent-strong);
  background: #e9f3f1;
}

.offer-details {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.special-offer {
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.price-tier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.price-tier-list span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  font-size: 13px;
}

.price-tier-list strong {
  font-size: 13px;
}

.no-match-card {
  border-style: dashed;
}

.request-context {
  margin-bottom: 14px;
}

.assistant-advice {
  margin-bottom: 14px;
}

.assistant-box {
  display: grid;
  gap: 12px;
  border: 1px solid #b9d9d7;
  border-radius: 8px;
  padding: 14px;
  background: #f4faf8;
}

.assistant-mini {
  display: grid;
  gap: 6px;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fcfb;
}

.assistant-mini strong {
  color: var(--accent-strong);
}

.assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.assistant-grid ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.assistant-knowledge {
  border-top: 1px solid #d7e4e1;
  padding-top: 10px;
}

.assistant-knowledge ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.assistant-questions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.premium-nudge {
  margin: 0;
  border: 1px solid #c9d7ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f4f7ff;
  color: #33415c;
  font-size: 14px;
}

.help-result-card {
  gap: 12px;
}

.assistant-chat-box {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.assistant-chat-list {
  max-height: 280px;
  overflow: auto;
}

.assistant-chat-form input {
  min-width: 0;
}

.help-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.help-path-step {
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.help-path-step.done,
.help-path-step.active {
  border-color: #b9d9d7;
  color: var(--accent-strong);
  background: #e9f3f1;
}

.feature-entitlements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-entitlements span {
  border: 1px solid #d7e4e1;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}

.feature-entitlements span.included {
  border-color: #b9d9d7;
  color: var(--accent-strong);
  background: #e9f3f1;
}

.feature-entitlements span.premium {
  border-color: #decf9b;
  color: #805d11;
  background: #fff7df;
}

.feature-entitlements strong {
  color: inherit;
}

.profile-readiness {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.profile-readiness.ready {
  border-color: #b9d9d7;
  background: #f4faf8;
}

.profile-readiness.needs-info {
  border-color: #decf9b;
  background: #fffaf0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 35, 31, 0.58);
}

.modal-panel {
  display: grid;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  gap: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(19, 35, 31, 0.24);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.onboarding-grid,
.wizard-summary,
.wizard-extra-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.onboarding-grid article,
.wizard-summary span,
.parts-planning {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.onboarding-grid p,
.wizard-summary span,
.wizard-question p {
  color: var(--muted);
}

.wizard-question {
  display: grid;
  gap: 12px;
}

.parts-planning {
  border-color: #decf9b;
  background: #fffaf0;
}

.parts-planning ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.assistant-answer {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.assistant-answer input {
  min-height: 34px;
  background: #fff;
  font-weight: 400;
}

.context-box {
  display: grid;
  gap: 12px;
  border: 1px solid #b9d9d7;
  border-radius: 8px;
  padding: 14px;
  background: #f8fcfb;
}

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

.context-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: #fff;
}

.context-grid strong {
  color: var(--ink);
}

.compact-context {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

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

.item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.progress-step {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.progress-step.done,
.progress-step.active {
  border-color: #b9d9d7;
  color: var(--accent-strong);
  background: #e9f3f1;
}

.progress-step.blocked {
  border-color: #e7b8b8;
  color: var(--danger);
  background: #fff4f4;
}

.next-step {
  color: var(--muted);
}

.tracking-box {
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  background: #f4faf8;
  padding: 10px;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.tracking-grid span {
  display: grid;
  gap: 2px;
  color: var(--text);
  font-size: 13px;
}

.tracking-grid strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tracking-timeline {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tracking-timeline li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: start;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px #d9ebe7;
}

.tracking-timeline strong {
  color: var(--text);
}

.tracking-timeline p,
.tracking-timeline small {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
}

.message-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.message-list {
  display: grid;
  gap: 6px;
}

.message {
  border-left: 3px solid #b9d9d7;
  padding: 7px 9px;
  background: #fff;
}

.message.provider {
  border-left-color: var(--accent);
}

.message p {
  margin: 2px 0 0;
  color: var(--muted);
}

.message-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.attachment-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attachment-list span {
  border: 1px solid #d7e4e1;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: 13px;
}

.attachment-analysis {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.attachment-analysis strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.community-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid #decf9b;
  border-radius: 8px;
  padding: 14px;
  background: #fffaf0;
}

.community-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #ead9a8;
  padding-bottom: 10px;
}

.community-card {
  border-color: #decf9b;
  border-left: 4px solid var(--warm);
  background: #fffdf7;
}

.about-page {
  display: grid;
  gap: 16px;
}

.about-hero {
  display: grid;
  gap: 8px;
  border: 1px solid #b9d9d7;
  border-radius: 8px;
  padding: 16px;
  background: #f4faf8;
}

.about-hero h2,
.about-block h3 {
  margin: 0;
}

.about-hero p:last-child,
.about-feature p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.about-block,
.about-feature {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.about-block {
  display: grid;
  gap: 8px;
  align-content: start;
}

.about-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.changelog-entry {
  display: grid;
  gap: 6px;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.changelog-entry ul {
  margin-top: 2px;
}

.dev-shell {
  border: 1px solid #decf9b;
  border-radius: 8px;
  padding: 12px;
  background: #fff8e6;
}

.dev-shell .panel {
  border-color: #decf9b;
}

.dev-shell .eyebrow {
  color: #805d11;
}

.dev-hero {
  background: #fff4d6;
}

.dev-hero p:last-child {
  margin-top: 6px;
  color: var(--muted);
}

.dev-status-grid,
.dev-link-grid,
.dev-work-grid,
.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.dev-status-card,
.dev-link-card,
.dev-definition-card,
.dev-work-card,
.roadmap-column {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.dev-status-card strong,
.dev-link-card strong,
.dev-definition-card strong,
.dev-work-card strong {
  overflow-wrap: anywhere;
}

.dev-status-card span,
.dev-link-card span,
.dev-definition-card span,
.dev-work-card p,
.roadmap-column li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dev-link-card {
  color: var(--ink);
  text-decoration: none;
}

.dev-link-card.primary {
  border-color: #b9d9d7;
  background: #f4faf8;
}

.dev-definition-card {
  border-color: #decf9b;
  background: #fffaf0;
}

.dev-definition-card a {
  color: var(--accent-strong);
  font-weight: 700;
}

.dev-definition-card.muted-card {
  background: #fbfcfa;
}

.dev-work-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.dev-work-card {
  border-color: #d7e4e1;
  background: #f8fcfb;
}

.dev-work-card p {
  margin: 0;
}

.dev-roadmap-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: 12px;
}

.roadmap-column {
  align-content: start;
  background: #fff;
}

.roadmap-column h4 {
  margin: 0;
}

.roadmap-column ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.about-feature {
  display: grid;
  gap: 4px;
}

.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.account-plan-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.account-plan-card.premium {
  border-color: #b9d9d7;
  background: #f4faf8;
}

.account-plan-card strong {
  font-size: 20px;
}

.plan-price {
  color: var(--accent-strong);
  font-weight: 800;
}

.account-matrix-wrap {
  overflow-x: auto;
}

.account-matrix {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.account-matrix th,
.account-matrix td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.account-matrix thead th {
  background: #f4faf8;
  color: var(--accent-strong);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.boat-profile-summary {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  border: 1px solid #b9d9d7;
  border-radius: 8px;
  padding: 16px;
  background: #f4faf8;
}

.boat-profile-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.boat-profile-title h3 {
  margin: 0;
  font-size: 26px;
}

.boat-profile-title p:last-child {
  margin-top: 4px;
  color: var(--muted);
}

.boat-spec-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
}

.spec-item {
  display: grid;
  gap: 3px;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.spec-item small {
  color: var(--muted);
  font-size: 12px;
}

.spec-item strong {
  overflow-wrap: anywhere;
}

.boat-technical-note {
  display: grid;
  gap: 5px;
  border-top: 1px solid #d7e4e1;
  padding-top: 12px;
}

.boat-technical-note p {
  color: var(--muted);
}

.detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.boat-action-block {
  align-content: start;
}

.service-records {
  grid-column: 1 / -1;
}

.service-record-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.service-record {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.knowledge-card {
  border-left: 3px solid var(--accent);
}

.audit-card {
  border-left: 3px solid #6b7c93;
}

.internal-log-card {
  border-left-color: #1d7f8c;
  background: #f8fcfb;
}

.detail-block ul,
.mini-list {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-list {
  padding-left: 0;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
  background: #e9f3f1;
  color: var(--accent-strong);
  font-size: 13px;
}

.badge.warn {
  background: #fff2cf;
  color: #805d11;
}

.muted {
  color: var(--muted);
}

@media (max-width: 820px) {
  .app-shell,
  .view-grid,
  .progress-track,
  .help-path,
  .about-grid,
  .about-feature-grid,
  .dev-roadmap-grid,
  .dev-work-grid,
  .dev-status-grid,
  .dev-link-grid,
  .roadmap-columns,
  .context-grid,
  .tracking-grid,
  .assistant-grid,
  .inline-form,
  .inline-form.invoice-form,
  .inline-form.offer-form,
  .inline-form.review-form,
  .help-form,
  .need-finder,
  .compact-form,
  .detail-grid,
  .boat-spec-grid,
  .owner-overview-strip,
  .owner-next-grid,
  .dashboard-actions,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .boat-profile-title {
    display: grid;
  }

  .sidebar {
    min-height: auto;
  }

  main {
    padding: 20px;
  }

  .badge {
    white-space: normal;
  }

  .item-row {
    flex-wrap: wrap;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }
}

/* Friendly-user pilot. The demo surface remains available with ?demo=1. */
.pilot-shell { min-height: 100vh; background: #f5f7f9; color: #183042; }
.pilot-header { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-bottom: 1px solid #dce4e9; }
.pilot-header .brand { color: inherit; text-decoration: none; display: flex; gap: .75rem; align-items: center; }
.pilot-header .brand small { display: block; color: #62727d; margin-top: .15rem; }
.pilot-account { display: flex; align-items: center; gap: .75rem; color: #52636e; font-size: .9rem; }
.pilot-main { max-width: 1180px; margin: 0 auto; padding: 3rem 5vw 5rem; }
.pilot-main > h1, .pilot-login h1 { margin: 0 0 .5rem; color: #123147; }
.pilot-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.pilot-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilot-card { background: #fff; padding: 1.25rem; border: 1px solid #dce4e9; border-radius: 14px; box-shadow: 0 4px 16px rgb(28 63 83 / 6%); }
.pilot-card h2 { margin: 0; font-size: 1.1rem; }
.pilot-card h3 { margin: 1.4rem 0 .75rem; font-size: 1rem; }
.pilot-card .panel-heading { margin-bottom: .75rem; }
.pilot-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #e6ecef; }
.pilot-row:first-child { border-top: 0; }
.pilot-row p, .pilot-row small { display: block; margin: .2rem 0 0; color: #5b6b75; }
.pilot-row button { flex: 0 0 auto; }
.pilot-form { display: grid; gap: .75rem; padding-top: .75rem; }
.pilot-form label { display: grid; gap: .32rem; font-weight: 600; color: #314c5c; }
.pilot-form input, .pilot-form select, .pilot-form textarea { width: 100%; box-sizing: border-box; padding: .62rem .72rem; border: 1px solid #b9c8d0; border-radius: 7px; background: #fff; font: inherit; color: inherit; }
.pilot-form textarea { min-height: 78px; resize: vertical; }
.pilot-form small { font-weight: 400; color: #62727d; }
.pilot-form .checkbox-row { display: flex; align-items: center; gap: .5rem; }
.pilot-form .checkbox-row input { width: auto; }
.pilot-notice { margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 8px; background: #e6f5eb; color: #1d5c37; white-space: pre-wrap; }
.pilot-notice.error { background: #fce9e7; color: #9a2a20; }
.pilot-loading, .pilot-login { max-width: 620px; margin: 10vh auto; padding: 2.25rem; text-align: center; color: #355363; }
.pilot-login { text-align: left; background: #fff; border: 1px solid #dce4e9; border-radius: 18px; box-shadow: 0 8px 28px rgb(28 63 83 / 8%); }
.pilot-login .brand-mark, .pilot-loading .brand-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; font-size: 1.15rem; border-radius: 14px; }
.pilot-login p { line-height: 1.55; }
.pilot-login-actions { display: flex; gap: .75rem; margin: 1.5rem 0; }
.pilot-login-actions button { min-height: 2.7rem; }
.pilot-auth-roles { margin-top: 1.25rem; padding: 1rem; border: 1px solid #dce4e9; border-radius: 10px; background: #f8fafb; color: #314c5c; }
.pilot-auth-roles ul { margin: .55rem 0 0; padding-left: 1.2rem; }
.pilot-auth-roles li + li { margin-top: .35rem; }
@media (max-width: 760px) { .pilot-grid.two { grid-template-columns: 1fr; } .pilot-header { padding: .8rem 1rem; align-items: flex-start; } .pilot-account { align-items: flex-end; flex-direction: column; } .pilot-main { padding: 2rem 1rem; } .pilot-row { flex-direction: column; } }
