/* Screenshots define the content; control geometry follows the Figma foundation. */
.app-create { background: var(--color-background); }
.creation-scroll { height: 100%; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.creation-scroll::-webkit-scrollbar { display: none; }
.plan-form { display: flex; flex-direction: column; gap: var(--stack-gap); padding: max(20px, env(safe-area-inset-top)) var(--page-inset) max(24px, env(safe-area-inset-bottom)); }
.form-icon { flex: 0 0 24px; display: block; pointer-events: none; }
.creation-header { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 20px; }
.creation-header h1 { font-size: 25px; line-height: 34px; font-weight: 800; }
.creation-header p { font-size: 13.2px; line-height: 19px; color: var(--color-secondary-text); margin-top: 4px; max-width: 240px; }
.back-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: var(--color-secondary-text); background: var(--color-secondary); }
.draft-badge { position: absolute; top: 77px; right: 0; color: var(--color-secondary-text); background: #eee7fa; border-radius: 16px; padding: 5px 10px; font-size: 11px; line-height: 16px; }
.form-section { position: relative; display: flex; flex-direction: column; gap: var(--control-gap); }
.form-section h2 { font-size: 21.5px; font-weight: 800; line-height: 29px; position: relative; }
.category-section { padding-top: 6px; }
.creation-hills { position: absolute; right: -20px; top: -78px; opacity: .65; pointer-events: none; }
.creation-themed { right: -4px; top: -52px; opacity: .5; }
.category-grid { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--control-gap); }
.category-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; height: 116px; padding: 17px 16px; border: 2px solid transparent; border-radius: var(--radius-action); text-align: left; background: var(--color-secondary); font-size: 15px; font-weight: 700; line-height: 21px; }
.category-tile > .form-icon { width: 26px; height: 26px; color: var(--color-primary-button); }
.category-party { background: var(--color-peach); }
.category-friends, .category-other { background: var(--color-mint); }
.category-friends > .form-icon { color: #23a98b; }
.category-tile:last-child { grid-column: 1/-1; flex-direction: row; align-items: center; height: 62px; gap: 16px; }
.category-tile[aria-pressed="true"] { border-color: var(--color-brand); background: #eee2fc; }
.category-friends[aria-pressed="true"] { border-color: #23a98b; background: #d1f2e8; }
.category-check { display: none; position: absolute; top: 10px; right: 10px; padding: 3px; border-radius: 50%; background: var(--color-primary-button); color: white; }
.category-check .form-icon { width: 16px; height: 16px; }
.category-tile[aria-pressed="true"] .category-check { display: block; }
.category-friends .category-check { background: #23a98b; }
.form-fields { display: flex; flex-direction: column; gap: var(--control-gap); }
.plan-cover { position: relative; height: 160px; overflow: hidden; border-radius: var(--radius-card); background: var(--color-secondary); }
.plan-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-actions { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cover-actions > span { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 18px; font-size: 15px; font-weight: 800; background: #fff; }
.cover-actions > span .form-icon { width: 21px; height: 21px; color: var(--color-secondary-text); }
.choose-photo { position: relative; display: flex; align-items: center; min-height: 45px; padding: 0 16px; border-radius: 23px; background: var(--color-secondary); color: #7540bd; font-size: 13.7px; font-weight: 700; cursor: pointer; overflow: hidden; }
.choose-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.choose-photo:focus-within { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.plan-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 20px; font-weight: 700; }
.field-label .form-icon { width: 21px; height: 21px; color: var(--color-secondary-text); flex-basis: 21px; }
.plan-field input, .plan-field textarea, .sheet-field input, .sheet-field textarea { width: 100%; min-width: 0; font-family: var(--font-family); font-size: 16px; color: var(--color-text-primary); background: white; border: 1px solid #e5dced; border-radius: var(--radius-control); padding: 11px 14px; height: var(--field-height); line-height: 22px; }
.plan-field textarea { resize: vertical; min-height: 100px; height: 100px; padding-top: 13px; border-radius: 22px; }
.plan-field input::placeholder, .plan-field textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.plan-field input:disabled { color: var(--color-text-muted); background: #eeeaf3; }
.plan-field input:focus-visible, .plan-field textarea:focus-visible, .sheet-field input:focus-visible, .sheet-field textarea:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.date-time-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--control-gap); }
.date-time-row input { padding-inline: 10px; appearance: none; -webkit-appearance: none; text-align: left; }
.date-time-row input::-webkit-date-and-time-value { text-align: left; }
.date-poll { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--color-mint); border-radius: var(--radius-action); }
.poll-heading { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 44px; font-size: 14px; font-weight: 800; gap: 8px; cursor: pointer; }
.poll-heading input { position: absolute; right: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { width: 44px; height: 28px; flex: 0 0 44px; background: #c7cbd4; border-radius: 20px; padding: 3px; pointer-events: none; }
.toggle-track::before { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #827b9640; }
.poll-heading input:checked + .toggle-track { background: var(--color-primary-button); }
.poll-heading input:checked + .toggle-track::before { transform: translateX(16px); }
.poll-heading input:focus-visible + .toggle-track { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.date-options { display: flex; flex-direction: column; gap: 8px; }
.date-option { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--button-height); padding: 8px 12px; border-radius: var(--radius-control); background: #f4eefa; color: var(--color-text-primary); font-size: 14px; border: 1px solid transparent; }
.date-option .form-icon { width: 21px; height: 21px; color: var(--color-primary-button); }
.date-option[aria-pressed="true"] { border-color: var(--color-brand); background: #e5d4f8; color: #7540bd; font-weight: 800; }
.poll-hint { font-size: 12px; line-height: 18px; color: var(--color-secondary-text); }
.route-fields { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--radius-action); background: var(--color-peach); }
.route-fields h3 { display: flex; gap: 8px; margin: 0; font-size: 15px; line-height: 24px; }
.route-fields h3 .form-icon { color: var(--color-primary-button); }
.access-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.access-field legend { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 8px; height: 21px; }
.access-field legend .form-icon { width: 21px; height: 21px; color: var(--color-secondary-text); }
.access-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 3px; background: var(--color-secondary); border-radius: var(--radius-control); }
.access-options label { position: relative; min-width: 0; cursor: pointer; }
.access-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.access-options span { min-height: var(--button-height); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-control); font-size: 13.2px; font-weight: 700; color: var(--color-secondary-text); pointer-events: none; }
.access-options input:checked + span { color: white; background: var(--color-primary-button); }
.access-options input:focus-visible + span { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.details-heading { position: relative; padding: 12px 0 0; }
.details-landscape { position: absolute; top: -32px; right: -20px; opacity: .5; pointer-events: none; }
.details-heading-trip::after { content: ''; position: absolute; top: 17px; right: -5px; width: 48px; height: 55px; background: url('/assets/icons/trees.svg') center / contain no-repeat; opacity: .7; pointer-events: none; }
.details-theme { top: -5px; right: -4px; opacity: .55; }
.details-heading h2, .details-heading p { position: relative; z-index: 1; }
.details-heading p { font-size: 13.2px; line-height: 19px; color: var(--color-text-muted); margin-top: 7px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: var(--control-gap); }
.detail-cell { position: relative; display: flex; min-width: 0; }
.detail-cell:has(details[open]) { grid-column: 1 / -1; }
.detail-card { width: 100%; min-width: 0; border: 1px solid white; border-radius: var(--radius-action); background: linear-gradient(125deg, #fffcff, #f2eafa); box-shadow: 0 7px 18px rgb(139 101 191 / 9%); overflow: clip; }
.detail-card summary { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 114px; padding: 12px 14px 16px; cursor: pointer; list-style: none; }
.detail-card summary::-webkit-details-marker { display: none; }
.option-icon { display: grid; place-items: center; width: 38px; height: 36px; flex: 0 0 36px; margin-bottom: 8px; background: linear-gradient(140deg, #f4eafe, #e9dafa); border-radius: 13px; color: #8c40de; }
.option-icon .form-icon { width: 24px; height: 24px; }
.detail-cell:nth-child(even) .option-icon { background: linear-gradient(140deg, #e5f5ef, #eadefc); }
.detail-card summary > .detail-copy { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; }
.detail-card strong { display: block; font-size: 14px; font-weight: 700; line-height: 19px; overflow-wrap: anywhere; }
.detail-value { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11.5px; line-height: 16px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.detail-card summary .chevron { position: absolute; top: 24px; right: 47px; width: 6px; height: 6px; margin: 0; transform: rotate(-45deg); border-color: #9571b6; }
.remove-default { position: absolute; right: 5px; top: 7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #c45378; background: transparent; }
.remove-default .form-icon { width: 14px; height: 14px; }
.restore-defaults { justify-self: start; background: transparent; color: #7540bd; min-height: 38px; font-size: 12px; padding: 4px 0; text-align: left; }
.detail-card[open] strong { white-space: normal; }
.chevron { border-right: 2px solid var(--color-secondary-text); border-bottom: 2px solid var(--color-secondary-text); width: 8px; height: 8px; transform: rotate(45deg); margin: 0 3px 5px; flex-shrink: 0; }
.detail-card[open] .chevron { transform: rotate(225deg); margin-top: 6px; }
.detail-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px 12px; gap: 8px; }
.detail-options label { position: relative; display: flex; align-items: center; gap: 8px; min-height: var(--field-height); padding: 9px 10px; border: 1px solid #e1d6ee; border-radius: 18px; font-size: 13px; line-height: 18px; cursor: pointer; background: white; }
.detail-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-brand); flex-shrink: 0; }
.detail-options label:has(input:checked) { background: #e9dafa; border-color: var(--color-brand); font-weight: 700; }
.category-hint { grid-column: 1 / -1; color: var(--color-text-muted); background: var(--color-secondary); padding: 20px; border-radius: 22px; font-size: 14px; line-height: 21px; }
.custom-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--control-gap); }
.custom-details:empty { display: none; }
.custom-detail { position: relative; min-width: 0; border: 1px solid white; border-radius: var(--radius-action); background: linear-gradient(125deg, #fffcff, #f2eafa); box-shadow: 0 7px 18px rgb(139 101 191 / 9%); }
.custom-edit { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 114px; padding: 12px 14px 16px; background: transparent; border-radius: inherit; text-align: left; }
.custom-edit > span:not(.option-icon) { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; }
.custom-edit strong { display: block; font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.custom-edit > span > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11.5px; line-height: 16px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.small-icon-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--color-secondary); color: var(--color-secondary-text); }
.custom-detail .small-icon-button { flex-basis: 44px; width: 44px; height: 44px; background: transparent; }
.custom-detail .small-icon-button .form-icon { width: 20px; height: 20px; }
.delete-detail { color: #c13e53; }
.add-detail-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--field-height); padding: 10px; border: 1px solid white; background: linear-gradient(110deg, #efe0fb, #e8d7fa); border-radius: var(--radius-control); color: #8c40de; font-size: 14px; font-weight: 700; }
.continue-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--button-height); padding: 11px 12px; background: var(--color-primary-button); color: white; border-radius: var(--radius-control); font-size: 15px; font-weight: 700; line-height: 21px; }
.draft-notice { color: var(--color-text-muted); font-size: 11px; line-height: 16px; text-align: center; margin-top: -10px; }
.form-error { font-size: 14px; line-height: 21px; color: #a22b43; }
.detail-sheet { box-sizing: border-box; position: fixed; width: min(calc(100% - 16px), 374px); max-width: none; max-height: calc(100dvh - 24px); border: 1px solid #fff; border-radius: 30px; padding: 20px; background: var(--color-background); color: var(--color-text-primary); box-shadow: var(--shadow-card); overscroll-behavior: contain; }
.detail-sheet { margin: auto auto 8px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.detail-sheet::backdrop { background: rgb(45 28 78 / 32%); }
.detail-sheet form { position: relative; display: flex; flex-direction: column; gap: var(--stack-gap); }
.sheet-hills { position: absolute; right: 0; top: 0; opacity: .65; pointer-events: none; }
.sheet-theme { position: absolute; right: 4px; top: 10px; opacity: .45; pointer-events: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #d6c8ec; margin: -10px auto -5px; }
.detail-sheet header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.detail-sheet h2 { font-size: 25px; line-height: 34px; margin: 0; font-weight: 800; }
.sheet-field { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; min-height: 82px; border: 1px solid #d9c8ed; border-radius: 22px; background: linear-gradient(110deg, #fff9fc, #f0e8fc); box-shadow: 0 6px 14px rgb(77 59 115 / 7%); }
.sheet-field > .form-icon { color: var(--color-secondary-text); }
.sheet-field > span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sheet-field strong { font-size: 14px; line-height: 20px; }
.sheet-field input, .sheet-field textarea { padding: 0; border: 0; border-radius: 0; height: 28px; line-height: 24px; background: transparent; }
.sheet-field textarea { resize: vertical; min-height: 28px; }
.sheet-field:focus-within { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.sheet-field input:focus-visible, .sheet-field textarea:focus-visible { outline: none; }
.detail-sheet .continue-button { min-height: 45px; background: linear-gradient(170deg, #bf83f6, #793dce); box-shadow: 0 7px 18px rgb(121 61 206 / 16%); }
.app-create button, .app-create summary { touch-action: manipulation; user-select: none; }
@media (max-width: 374px) {
  .creation-header h1 { font-size: 23px; }
  .creation-header p { font-size: 12px; }
  .draft-badge { top: 78px; font-size: 10px; padding-inline: 8px; }
  .category-tile { padding-inline: 12px; font-size: 14px; }
  .form-section h2 { font-size: 20px; }
  .date-time-row { grid-template-columns: 1fr; }
}
