.website { max-width: 1510px; margin: 0 auto; padding-bottom: 36px; }
.website svg, .website-picker svg, .website-confirm svg { width: 20px; height: 20px; flex: 0 0 20px; }
.website-heading[data-workspace-header] { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: none; padding: 0; margin: 0; gap: 10px 20px; }
.website-header-state { display: grid; gap: 4px; min-width: 0; }
.website-header-state:has(> .website-mascot) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
.website-header-state > .website-mascot { grid-row: 1 / span 2; align-self: center; object-fit: contain; }
.website-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.website-heading-actions .button, .website-publish .button, .website-picker-footer .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.website-site-state { margin: 0; color: var(--muted); font-size: 12px; }
.website-site-state a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; }
.website-site-state a:hover { color: var(--purple); }
.website-site-state svg { width: 14px; height: 14px; flex-basis: 14px; }
.website-save-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 20px; margin: 0; font-size: 12px; color: var(--muted); }
.website-save-line [data-state="saved"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--green); }
.website-save-line [data-state="pending"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--orange); }
.website-save-line [data-state="error"] { color: var(--rose); }
.website-error { border-radius: 12px; padding: 12px 15px; color: var(--rose-tone, #8c304e); background: var(--danger-surface, #fbecf1); font-size: 14px; margin-bottom: 18px; }
.website-error[hidden] { display: none; }
.website-source-note { margin: -4px 0 18px; padding: 12px 15px; background: var(--lavender); color: var(--muted-tone, #474c7c); border-radius: 12px; font-size: 12px; line-height: 1.6; }
.website-source-note[hidden] { display: none; }

.website-field-error { color: var(--rose-tone, #8c304e); font-size: 12px; line-height: 1.6; margin-top: -8px; }
.website-field-error[hidden] { display: none; }
.website .field > .website-field-error { margin-top: 0; }
.website .input[aria-invalid="true"] { border-color: #a94f69; }

.website-workspace { display: grid; grid-template-columns: minmax(410px, 1fr) minmax(370px, .95fr); align-items: start; gap: 28px; }
#website-editor { min-width: 0; display: grid; gap: 14px; }
.website-section { border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: clip; }
.website-section > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 24px; cursor: pointer; }
.website-section > summary::-webkit-details-marker { display: none; }
.website-section > summary strong { display: block; font-size: 17px; letter-spacing: -.025em; font-weight: 600; }
.website-section > summary small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.website-section > summary > svg { width: 17px; height: 17px; flex-basis: 17px; color: var(--muted); transition: transform 180ms var(--motion-ease); }
.website-section[open] > summary > svg { transform: rotate(180deg); }
.website-section-body { display: grid; gap: 20px; padding: 0 24px 24px; }
.website .field { min-width: 0; display: grid; gap: 7px; margin: 0; color: var(--ink); font-size: 13px; }
.website .field > span, .website-picker .field > span { font-weight: 500; }
.website .input { width: 100%; min-width: 0; font-size: 14px; background: var(--white); }
.website textarea { resize: vertical; min-height: 90px; }
.website-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.website-photo-choice { position: relative; display: block; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #eef0f4; width: 108px; height: 104px; text-align: left; cursor: pointer; }
.website-photo-choice.is-hero { width: 100%; height: auto; aspect-ratio: 16 / 8.7; background: #e8edf0; }
.website-media { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9edf0; }
.website-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.website-media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted-tone, #8995a5); background: linear-gradient(145deg, var(--surface-subtle, #edf0f5), var(--line-strong, #e2e7ed)); }
.website-media-placeholder svg { width: 30px; height: 30px; }
.website-photo-choice.is-hero .website-media-placeholder { background: linear-gradient(140deg, #2d6672, #91b5b5); color: #e3f1ef; }
.website-photo-choice.is-hero .website-media-placeholder svg { width: 47px; height: 47px; stroke-width: 1; }
.website-photo-caption { display: flex; align-items: center; justify-content: center; gap: 7px; position: absolute; inset: auto 0 0; padding: 8px; color: #34414c; background: #fffffff2; font-size: 10px; line-height: 1.35; backdrop-filter: blur(8px); }
.website-photo-caption svg { width: 14px; height: 14px; flex-basis: 14px; }
.website-photo-choice.is-hero .website-photo-caption { inset: auto auto 17px 17px; border-radius: 9px; padding: 11px 15px; font-size: 13px; box-shadow: 0 4px 20px #00000012; }
.website-photo-choice.is-hero .website-photo-caption svg { width: 18px; height: 18px; flex-basis: 18px; }
.website-photo-choice:hover .website-photo-caption { background: white; }
.website-video-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 7px; background: #172a39b8; border-radius: 6px; color: white; font-size: 10px; backdrop-filter: blur(6px); }
.website-video-badge svg { width: 14px; height: 14px; flex-basis: 14px; }
.website-identity-row { display: flex; align-items: center; gap: 22px; }
.website-color-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.website-color-fields input[type="color"] { width: 100%; height: 42px; min-height: 42px; padding: 5px 7px; cursor: pointer; }
.website-themes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.website-themes legend { font-size: 13px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.website-theme { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 8px; cursor: pointer; transition: border-color 160ms; }
.website-theme:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.website-theme:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.website-theme input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.website-theme > span:last-child { display: block; padding: 8px 2px 2px; }
.website-theme strong { display: block; font-size: 12px; font-weight: 500; }
.website-theme small { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 3px; }
.website-theme-sample { height: 63px; display: flex; align-items: center; justify-content: center; border-radius: 6px; position: relative; overflow: hidden; background: #f5f2ea; color: #132f37; font-family: Georgia, serif; }
.website-theme-sample i { position: absolute; inset: 0 0 auto; height: 11px; background: #132f37; }
.website-theme-sample b { font-weight: 400; font-size: 30px; padding-top: 5px; }
.website-theme.expedition .website-theme-sample { background: #0d2026; color: #dfeff0; font-family: inherit; }
.website-theme.expedition .website-theme-sample i { background: #5ee1d7; }
.website-theme.atelier .website-theme-sample { background: #faf5eb; color: #523b2e; }
.website-theme.atelier .website-theme-sample i { background: #ead6bc; }
.website-subheading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.website-subheading h3 { font-size: 14px; font-weight: 600; }
.website-subheading > span { color: var(--muted); font-size: 12px; }
.website-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.website-gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 9px; }
.website-remove { display: grid; place-items: center; position: absolute; top: 5px; right: 5px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background-color: var(--white); color: var(--muted); }
.website-remove svg { width: 17px; height: 17px; }
.website-remove:focus-visible { outline-color: var(--rose); outline-offset: -3px; color: var(--rose); }
@media (hover: hover) and (pointer: fine) {
  .website-remove:hover { background-color: var(--danger-surface, #fcf0f5); border-color: var(--rose); color: var(--rose); }
}
@media (pointer: coarse) {
  .website-remove { width: 44px; height: 44px; }
}
.website-gallery-add { flex-direction: column; gap: 5px; min-width: 0; border: 1px dashed var(--line-strong, #cbd0dc); background: var(--surface-subtle, #fafbfc); aspect-ratio: 1; font-size: 11px; color: var(--muted); padding: 9px; border-radius: 9px; }
.website-gallery-add svg { width: 20px; height: 20px; }
.website-help { font-size: 12px; line-height: 1.6; color: var(--muted); }
.website-team-list { display: grid; gap: 16px; }
.website-person { display: grid; grid-template-columns: 88px minmax(0, 1fr) 30px; gap: 14px; align-items: center; }
.website-person > .website-photo-choice { width: 88px; height: 105px; }
.website-person-fields { display: grid; gap: 10px; }
.website-icon-action { display: inline-flex; justify-content: center; align-items: center; min-width: 30px; width: 32px; min-height: 32px; padding: 5px; }
.website-icon-action svg { width: 16px; height: 16px; flex-basis: 16px; }
.website-subsection { border-top: 1px solid var(--line); padding-top: 15px; }
.website-subsection > summary { font-size: 13px; cursor: pointer; font-weight: 500; }
.website-subsection[open] > summary { margin-bottom: 15px; }
.website-subsection > .field + .field { margin-top: 15px; }
.website-boat { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 15px; }
.website-boat > div { display: grid; gap: 14px; }
.website-activities { display: grid; padding: 0; margin: 0; list-style: none; }
.website-activity { padding: 15px 0; border-top: 1px solid var(--line); }
.website-activity:first-child { padding-top: 0; border-top: 0; }
.website-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.website-activity-visible { display: flex; align-items: flex-start; gap: 11px; min-width: 0; cursor: pointer; }
.website-activity-visible input { margin: 3px 0 0; accent-color: var(--purple); width: 17px; height: 17px; flex-shrink: 0; }
.website-activity-visible strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; }
.website-activity-visible small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.website-order { display: flex; gap: 2px; flex-shrink: 0; }
.website-activity-edit { margin: 12px 0 0 28px; }
.website-activity-edit > summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.website-activity-edit > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.website-activity-edit .website-photo-choice { width: 95px; height: 100px; }
.website-publish { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 18px 3px 0; }
.website-publish strong { font-size: 14px; font-weight: 600; }
.website-publish p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.website-withdraw { text-align: left; padding-top: 4px; }
.website-withdraw .button { color: var(--muted); font-size: 11px; padding-left: 0; }
.website-preview { position: sticky; top: 26px; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 17px; border-radius: 18px; }
.website-preview-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.website-preview-tools h2 { font-size: 14px; font-weight: 600; }
.website-preview-mode { display: flex; gap: 3px; background: var(--paper); padding: 3px; border-radius: 8px; }
.website-preview-mode .button { display: grid; place-items: center; min-width: 36px; min-height: 31px; padding: 5px; border-radius: 6px; color: var(--muted); }
.website-preview-mode .button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 4px #25263012; color: var(--purple); }
.website-preview-mode svg { width: 17px; height: 17px; }
.website-preview-page { display: block; margin-bottom: 12px; }
.website-preview-page .input { font-size: 12px; min-height: 37px; }
.website-preview-viewport { position: relative; width: 100%; background: #f5f2ea; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 200px; }
.website-preview-viewport[data-mode="mobile"] { max-width: 390px; margin-inline: auto; }
.website-preview-viewport iframe { border: 0; display: block; width: var(--website-frame-width, 1280px); height: var(--website-frame-height, 900px); transform: scale(var(--website-frame-scale, .4)); transform-origin: top left; }
.website-preview > .website-help { margin-top: 12px; font-size: 11px; }
.website-loading { min-height: 460px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 18px; padding-top: 20px; }
.website-loading h1 { font-size: 32px; }
.website-loading p { font-size: 14px; color: var(--muted); }
.website-loading-bar { width: 180px; height: 5px; border-radius: 10px; background: var(--lavender); position: relative; overflow: hidden; }
.website-loading-bar::after { content: ""; position: absolute; left: -40%; width: 40%; height: 100%; background: var(--purple); animation: website-loading 1.3s ease-in-out infinite; border-radius: inherit; }
@keyframes website-loading { to { left: 100%; } }
.website-picker { min-height: 300px; }
.website-picker-tabs { display: flex; gap: 4px; align-items: center; padding: 4px; border-radius: 10px; background: var(--paper); margin-bottom: 16px; }
.website-picker-tabs .button { flex: 1; justify-content: center; border-radius: 7px; font-size: 13px; }
.website-picker-tabs .button[aria-pressed="true"] { color: var(--purple); background: var(--white); box-shadow: 0 1px 5px #25263012; }
.website-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.website-media-option { position: relative; display: block; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; text-align: left; }
.website-media-option > .website-media { height: auto; aspect-ratio: 4 / 3; border-radius: 8px; }
.website-media-option > span:not(.website-media):not(.website-media-check) { display: block; padding: 9px 6px 5px; }
.website-media-option strong { display: block; font-weight: 500; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.website-media-option small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.website-media-option[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.website-media-check { position: absolute; right: 11px; top: 11px; background: var(--accent-solid, var(--purple)); color: white; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; box-shadow: 0 2px 7px #1f246b22; }
.website-media-check svg { width: 16px; height: 16px; }
.website-picker-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.website-upload { display: grid; gap: 18px; }
.website-upload [data-website-file-count], .website-upload [data-website-upload-status] { color: var(--muted); font-size: 11px; }
.website-upload-rights { display: flex; align-items: flex-start; gap: 8px; width: 100%; font-size: 12px; line-height: 1.5; }
.website-upload-rights input { flex-shrink: 0; margin-top: 3px; accent-color: var(--purple); }
.website-confirm { display: grid; gap: 18px; }
.website-confirm > p { line-height: 1.7; font-size: 14px; color: var(--muted); }
.website-confirm > label:not(.field) { display: flex; align-items: flex-start; gap: 10px; padding: 15px; background: var(--paper); border-radius: 12px; font-size: 13px; line-height: 1.7; }
.website-confirm > label input[type="checkbox"] { margin-top: 5px; accent-color: var(--purple); flex-shrink: 0; }
.website-confirm .dialog-footer { margin-top: 0; }
:root[data-dive-appearance] .website-section { border-color: var(--demo-border); }
:root[data-dive-appearance] .website-section > summary:focus-visible { outline-offset: -3px; }
:root[data-dive-appearance] .website-section > summary:hover,
:root[data-dive-appearance] .website-section[open] > summary {
  background: var(--demo-tint);
}
:root[data-dive-appearance] .website-section[open] > summary {
  box-shadow: inset 0 -1px var(--demo-border);
}
:root[data-dive-appearance] .website-section[open] > summary > svg { color: var(--purple); }
:root[data-dive-appearance] .website-section-body { padding-block-start: 18px; }
:root[data-dive-appearance] .website-preview {
  border-color: var(--demo-border);
  background: var(--demo-tint);
  box-shadow: var(--demo-shadow);
}
:root[data-dive-appearance] .website-preview-tools h2 { font-size: 16px; }
:root[data-dive-appearance] .website-preview-viewport { border-color: var(--demo-border); }
:root[data-dive-appearance] .website-preview-mode {
  border: 1px solid var(--demo-border);
  background: var(--white);
}
:root[data-dive-appearance] .website-preview-mode .button { min-width: 44px; min-height: 44px; }
:root[data-dive-appearance] .website-preview-mode .button[aria-pressed="true"] {
  background: var(--lavender);
  box-shadow: none;
}
:root[data-dive-appearance] .website-loading {
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 42dvh, 420px);
  padding: 24px;
  border: 1px solid var(--demo-border);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

@media (max-width: 1220px) {
  .website-workspace { grid-template-columns: minmax(370px, 1fr) minmax(310px, .85fr); gap: 18px; }
  .website-section > summary { padding: 20px; }
  .website-section-body { padding: 0 20px 20px; }
  .website-field-pair { grid-template-columns: 1fr; gap: 15px; }
  .website-color-fields { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 1040px) {
  .website-workspace { grid-template-columns: 1fr; }
  .website-preview { position: relative; top: auto; max-width: 700px; width: 100%; }
  .website-field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .website-color-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar .nav-button[data-view="website"] { display: none; }
  .website-heading[data-workspace-header] { align-items: center; gap: 10px 14px; }
  .website-header-state { flex: 1 1 180px; }
  .website-heading-actions { gap: 7px; }
  .website-heading-actions .button { min-height: 37px; font-size: 12px; padding: 8px 11px; }
  :root[data-dive-appearance] .website-heading-actions .button { min-height: 44px; }
  .website-heading-actions .button svg { width: 16px; height: 16px; flex-basis: 16px; }
  .website-site-state { font-size: 11px; }
  .website-save-line { font-size: 11px; gap: 4px; }
  .website-workspace { gap: 18px; }
  .website-section { border-radius: 14px; }
  .website-section > summary { padding: 17px 16px; gap: 13px; }
  .website-section > summary strong { font-size: 16px; }
  .website-section > summary small { font-size: 11px; }
  .website-section-body { padding: 0 16px 19px; gap: 18px; }
  .website-field-pair { grid-template-columns: 1fr; gap: 14px; }
  .website .input { font-size: 16px; }
  .website-identity-row { gap: 15px; }
  .website-color-fields { gap: 9px; }
  .website-color-fields .field { font-size: 11px; }
  .website-themes { gap: 8px; }
  .website-theme { padding: 6px; border-radius: 9px; }
  .website-theme small { display: none; }
  .website-theme-sample { height: 53px; }
  .website-photo-choice.is-hero { aspect-ratio: 16 / 10; }
  .website-photo-choice.is-hero .website-photo-caption { inset: auto 11px 11px; font-size: 12px; padding: 9px 11px; }
  .website-gallery { gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .website-gallery-add { min-height: 75px; }
  .website-person { grid-template-columns: 65px minmax(0, 1fr) 28px; gap: 10px; }
  .website-person > .website-photo-choice { width: 65px; height: 100px; }
  .website-person .website-photo-caption { font-size: 9px; padding: 6px 3px; }
  .website-person .website-photo-caption svg { display: none; }
  .website-boat { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .website-boat > .website-photo-choice { width: 80px; }
  .website-activity-edit { margin-left: 0; }
  .website-activity-edit > div { grid-template-columns: 80px minmax(0, 1fr); }
  .website-activity-edit .website-photo-choice { width: 80px; height: 100px; }
  .website-activity-head { gap: 6px; }
  .website-order { gap: 0; }
  .website-order .button { width: 29px; min-width: 29px; }
  .website-publish { display: grid; padding-top: 15px; }
  .website-publish .button { width: 100%; }
  .website-preview { border-radius: 14px; padding: 13px; scroll-margin-top: 16px; }
  .website-preview-page .input { font-size: 14px; }
  .website-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .website-picker-footer { position: sticky; bottom: -24px; margin-inline: -24px; margin-bottom: -24px; padding: 14px 24px; background: var(--white); z-index: 2; }
  :root[data-dive-appearance] .dialog .website-picker-footer {
    margin-inline: calc(-1 * var(--demo-dialog-inset));
    padding-inline: var(--demo-dialog-inset);
  }
  .website-picker-footer > .primary { flex: 1; font-size: 12px; }
  .website-confirm .dialog-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .website-section > summary > svg, .website-theme { transition: none; }
  .website-loading-bar::after { animation: none; left: 0; width: 100%; opacity: .45; }
}

.dialog:has(.website-preview-dialog) { width: calc(100vw - 40px); max-width: 1200px; }
.dialog:has(.website-preview-dialog) .dialog-body { padding: 16px; }
.website-preview-dialog-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.website-preview-dialog-tools p { color: var(--muted); font-size: 12px; }
.website-preview-dialog .website-preview-mode svg { width: 18px; height: 18px; }
.website-preview-dialog-frame { width: 100%; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f5f2ea; }
.website-preview-dialog-frame[data-mode="mobile"] { max-width: 390px; }
.website-preview-dialog-frame iframe { display: block; width: 100%; height: min(74dvh, 850px); min-height: 350px; border: 0; }
@media (max-width: 760px) {
  .dialog:has(.website-preview-dialog) { width: calc(100vw - 16px); }
  .dialog:has(.website-preview-dialog) .dialog-body { padding: 10px; }
  .website-preview-dialog-tools { gap: 8px; }
  .website-preview-dialog-tools p { font-size: 11px; }
  .website-preview-dialog-frame iframe { height: 72dvh; min-height: 300px; }
}
