/* HAN's preparation workspace: one clear next action, quieter saved records. */
#main:has(.prep-root){display:block}
.prep-root{--prep-blue:var(--secondary);--prep-soft:var(--secondary-soft);grid-column:1/-1;width:100%;max-width:720px;margin:0 auto;padding-bottom:24px}
.prep-mode{display:flex;gap:4px;padding:4px;background:#f4f5f8;border-radius:12px;grid-column:1/-1;width:100%;max-width:720px;margin:4px auto 24px;--prep-blue:var(--blue)}
.prep-mode button{flex:1;min-height:44px;border-radius:var(--radius-control);font-weight:var(--w-strong);font-size:var(--text-control)}
.prep-mode .is-active{background:white;color:var(--prep-blue);box-shadow:0 1px 4px #18274012}
.prep-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}
.prep-heading h1{font-size:var(--text-title);line-height:var(--lh-title);margin:10px 0 12px;letter-spacing:var(--track-tight)}
.prep-heading p:last-child{color:#686e7b;font-size:var(--text-meta);overflow-wrap:anywhere}
.prep-kicker{font-weight:var(--w-bold);color:var(--secondary);font-size:var(--text-meta)}
.prep-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin:18px 0 28px}
.prep-tabs button{min-height:48px;padding:10px 4px;border-bottom:3px solid transparent;color:#686e7b;font-weight:var(--w-strong)}
.prep-tabs button.active{border-color:var(--secondary);color:var(--secondary)}
.prep-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.prep-section-title h2,.prep-list-group h2{font-size:var(--text-section)}
.prep-section-title>span{font-size:var(--text-meta);color:#686e7b}
.prep-next{padding:24px;background:var(--prep-soft);border-radius:var(--radius-card);margin-bottom:10px}
.prep-next h3{font-size:var(--text-card);line-height:var(--lh-card);margin:8px 0 10px}
.prep-next>p{color:#535e75;font-size:var(--text-body);line-height:1.8;margin-bottom:20px}
.prep-primary,.prep-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:12px;padding:12px 18px;font-weight:var(--w-bold);line-height:1.5;white-space:normal}
.prep-primary{background:var(--secondary);color:#fff}
.prep-secondary{background:var(--secondary-soft);color:var(--secondary);border:1px solid var(--secondary-line)}
.prep-row{display:flex;align-items:center;gap:12px;padding:18px 2px;text-align:left;width:100%;border-bottom:1px solid var(--line);min-width:0}
.prep-row.selected{background:var(--secondary-soft);border-radius:var(--radius-control);padding:18px 10px}
.prep-row-symbol{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--secondary-line);border-radius:50%;color:var(--secondary)}
.prep-row-symbol.done{background:#eef6ef;color:#28703c;border-color:#cae2ce}
.prep-row-symbol.waiting{background:#fff5e5;color:#885c1e;border-color:#efdfc4}
.prep-row-symbol.skip{color:#767c88;background:#f4f5f8;border-color:#e9ecf1}
.prep-row-copy{flex:1;min-width:0}
.prep-row-copy>*{display:block;overflow-wrap:anywhere}
.prep-row-copy small{color:#686e7b;font-size:var(--text-small);margin-bottom:4px}
.prep-row-copy strong{font-size:var(--text-body);line-height:1.55}
.prep-row-copy>span{color:#686e7b;font-size:var(--text-meta);margin-top:5px}
.prep-row>.icon{flex:none;width:16px;color:#767c88}
.prep-row-date{font-size:var(--text-meta);color:var(--secondary)!important}
.prep-summary>section+section{margin-top:32px}
.prep-wait .prep-empty-copy{border:1px dashed #d9dee8;border-radius:var(--radius-control);padding:22px}
.prep-empty-copy{font-size:var(--text-meta);color:#686e7b;line-height:1.9}
.prep-progress{border-top:1px solid var(--line);padding-top:24px}
.prep-progress>p{font-size:var(--text-body)}
.prep-progress>p strong{font-size:var(--text-title);color:var(--secondary)}
.prep-progress>p span{color:#686e7b}
.prep-caption,.prep-detail .prep-caption{font-size:var(--text-small);color:#686e7b;line-height:1.8;margin-top:12px}
.prep-arrival{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:24px}
.prep-arrival>div{flex:1}
.prep-arrival strong{font-size:var(--text-meta)}
.prep-arrival p{font-size:var(--text-meta);color:#686e7b;margin-top:4px}
.prep-arrival>.icon{color:var(--secondary)}
.prep-sync,.prep-local{font-size:var(--text-small);color:#686e7b}
.prep-local{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.prep-local .textbtn{font-size:inherit;padding:8px 0}
.prep-error{padding:12px 14px;border-radius:var(--radius-control);background:#fff3e8;color:#725020;font-size:var(--text-meta);line-height:1.8}
.prep-error .textbtn{display:block;color:#725020}
.prep-topics{display:flex;gap:8px;overflow:auto;padding:4px 2px 12px;margin-bottom:14px}
.prep-topics .chip{flex:none;min-height:44px}
.prep-topics .active{background:var(--secondary-soft);color:var(--secondary);border-color:var(--secondary)}
.prep-list-group{margin-bottom:28px}
.prep-list-group h2 small{font-weight:var(--w-regular);color:#686e7b;margin-left:6px}
.prep-group{border-top:1px solid var(--line)}
.prep-group summary{cursor:pointer;padding:18px 2px;font-weight:var(--w-strong);font-size:var(--text-body);min-height:48px}
.prep-group summary span{margin-left:8px;font-weight:var(--w-regular);color:#686e7b;font-size:var(--text-meta)}
.prep-saved{padding-bottom:18px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.prep-saved .prep-row{border:0}
.prep-saved>p{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fa;border-radius:var(--radius-control);padding:14px;font-size:var(--text-meta);line-height:1.8}
.prep-saved>a{display:inline-flex;align-items:center;gap:6px;color:var(--secondary);min-height:44px;font-size:var(--text-meta)}
.prep-quiet{padding:26px 16px;background:#f8f9fb;border-radius:var(--radius-card);text-align:center}
.prep-quiet img{width:110px;height:110px;object-fit:contain}
.prep-quiet p{color:#686e7b;line-height:1.8;font-size:var(--text-meta);margin:10px 0 18px}
.prep-primary,.prep-secondary,.prep-tabs button{font-size:var(--text-control)}
.prep-start{position:relative;padding:10px 0 20px}
.prep-start h1{font-size:var(--text-title);line-height:var(--lh-title);margin:12px 0}
.prep-start>p{color:#686e7b;line-height:1.9;font-size:var(--text-body)}
.prep-start>img{display:block;width:150px;height:150px;object-fit:contain;margin:18px auto}
.prep-start>.prep-primary{width:100%}
.prep-start-points{display:grid;gap:12px;margin-top:26px;color:#535e75;font-size:var(--text-meta)}
.prep-start-points span{display:flex;align-items:center;gap:10px}
.prep-start-points .icon{color:var(--secondary)}
.prep-intro-start{margin-top:12px;color:var(--secondary);min-height:44px}
.prep-my .quiet-link{color:var(--secondary);min-height:48px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
.prep-form label{font-size:var(--text-meta);line-height:1.7}
.prep-form input,.prep-form select,.prep-form textarea{width:100%;min-height:48px;border:1px solid #d9dee8;border-radius:var(--radius-control);padding:12px;background:#fff;font-size:var(--text-body);color:var(--ink);margin-top:6px;min-width:0}
.prep-departure{display:grid;gap:8px;min-width:0}
.prep-form .prep-date-undecided{min-height:44px;cursor:pointer}

.prep-departure input:disabled{background:#f4f5f7;color:var(--muted)}
.prep-form .body-copy{font-size:var(--text-meta);line-height:1.8;color:#686e7b}
.prep-form-error{color:var(--danger-ink);font-size:var(--text-meta);line-height:1.7}
.prep-form-error:empty{display:none}
.prep-city-choice{border:1px solid var(--line);border-radius:12px;padding:0 14px}
.prep-city-choice>summary{font-size:var(--text-meta);cursor:pointer;padding:16px 0;min-height:48px}
.prep-city-picker{padding-bottom:12px}
.prep-detail-label{display:flex;align-items:center;gap:8px;font-size:var(--text-small);color:var(--secondary)}
.prep-detail-label>span{padding:5px 8px;background:var(--secondary-soft);border-radius:5px}
.prep-detail-label .iconbtn{margin-left:auto}
.prep-detail-label .is-saved{color:var(--primary-ink);background:var(--primary-soft);border-radius:50%}
.prep-detail-why,.prep-detail .prep-detail-why{font-size:var(--text-body);color:#535e75;line-height:1.85;margin:16px 0 24px}
.prep-detail h3{font-size:var(--text-card)}
.prep-checks{list-style:none;padding:0;margin:12px 0 20px}
.prep-checks li{display:flex;align-items:flex-start;gap:9px;font-size:var(--text-meta);line-height:1.85;padding:9px 0}
.prep-checks .icon{flex:none;color:var(--secondary);margin-top:5px}
.prep-official{padding:16px;background:#f7f9fc;border-radius:12px;margin-bottom:24px}
.prep-official a{display:inline-flex;gap:5px;align-items:center;color:var(--secondary);font-size:var(--text-meta);min-height:32px;font-weight:var(--w-strong)}
.prep-official p,.prep-detail .prep-official p{color:#686e7b;font-size:var(--text-small);line-height:1.8;margin-top:4px}
.prep-help{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}
.prep-help p,.prep-detail .prep-help p{color:#686e7b;font-size:var(--text-meta);line-height:1.85;margin:10px 0 16px}
.prep-detail .prep-primary,.prep-detail .prep-secondary{font-size:var(--text-body)}
@media(min-width:1100px){.prep-heading h1{font-size:var(--text-title)}
.prep-next{padding:28px}}
@media(max-width:359px){.prep-heading h1,.prep-start h1{font-size:var(--text-title)}
.prep-tabs{gap:14px}
.prep-next{padding:20px}
.prep-mode{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.prep-root *{scroll-behavior:auto}}

/* Shared HAN roles: identical to the other home and community screens. */
.prep-section-title h2,.prep-list-group h2,.prep-detail h3{font-size:var(--text-section)}
.prep-form label,.prep-city-choice>summary,.prep-group summary{font-size:var(--text-control)}
.prep-form input,.prep-form select,.prep-form textarea{font-size:var(--text-body)}
.prep-official a,.prep-saved>a{font-size:var(--text-control)}
.prep-checks li,.prep-form .body-copy,.prep-saved>p,.prep-quiet p,.prep-empty-copy{font-size:var(--text-body)}
.prep-help p,.prep-detail .prep-help p{font-size:var(--text-meta)}
.prep-root,.prep-detail,.prep-form{overflow-wrap:anywhere}

.prep-mode-notice{grid-column:1/-1;width:100%;max-width:720px;margin:0 auto 24px;padding:18px;border:1px solid var(--secondary-line);border-radius:var(--radius-control);background:var(--secondary-soft);overflow-wrap:anywhere}
.prep-mode-notice>strong{display:block;font-size:var(--text-body)}
.prep-mode-notice>p{margin:8px 0 12px;color:#535e75;line-height:1.7;font-size:var(--text-meta)}
.prep-mode-notice>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.prep-mode-notice>small{display:block;margin-top:10px;color:#686e7b;font-size:var(--text-small)}

.prep-writing-guide{padding:18px;background:var(--secondary-soft);border-radius:var(--radius-control);margin:20px 0}
.prep-writing-guide ul{padding-left:20px;margin:10px 0;line-height:1.8;color:#535e75}
.prep-writing-guide p{font-size:var(--text-small);line-height:1.7;color:#686e7b;margin:0}
.prep-cost-editor{border:1px solid var(--secondary-line);border-radius:var(--radius-control);padding:16px;min-width:0}
.prep-cost-editor summary{font-weight:var(--w-bold);cursor:pointer;line-height:1.6;margin-bottom:12px}
.prep-cost-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:14px 0}
.prep-cost-columns>div{display:grid;gap:12px;min-width:0}
.prep-cost-columns label{min-width:0;font-size:var(--text-meta)}
.prep-cost-columns input,.prep-cost-columns select{min-width:0;width:100%}
.prep-cost-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:14px 0}
.prep-cost-table caption{text-align:left;font-size:var(--text-small);color:#686e7b;padding-bottom:8px}
.prep-cost-table th,.prep-cost-table td{border-bottom:1px solid #e1e7f1;padding:10px 4px;vertical-align:middle;text-align:left}
.prep-cost-table th{font-size:var(--text-small);font-weight:var(--w-strong);width:36%;line-height:1.6;overflow-wrap:anywhere}
.prep-cost-table th:not(:first-child){width:32%}
.prep-cost-table small{display:block;font-weight:var(--w-regular);color:#686e7b;font-size:12px}
.prep-cost-table input{width:100%;min-width:0;min-height:44px;padding:8px;font-size:var(--text-meta)}
.prep-cost-table input::-webkit-inner-spin-button{appearance:none}
.prep-cost-summary{display:grid;gap:12px;margin:16px 0}
.prep-cost-summary>section{background:var(--secondary-soft);border-radius:var(--radius-control);padding:12px;min-width:0;overflow-wrap:anywhere}
.prep-cost-summary strong{font-size:var(--text-meta)}
.prep-cost-summary p{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:8px 0 0;font-size:var(--text-small)}
.prep-cost-summary b{margin-left:auto;color:var(--secondary);font-size:var(--text-meta)}
.prep-cost-summary small{width:100%;color:#686e7b}

/* Phase grouping keeps earlier work available without crowding today's tasks. */
.prep-bulk{margin:20px 0;padding:16px;background:var(--secondary-soft);border:1px solid var(--secondary-line);border-radius:var(--radius-control)}
.prep-bulk-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.prep-bulk-heading strong{font-size:var(--text-body)}
.prep-bulk-heading p{font-size:var(--text-small);color:#686e7b;margin:6px 0 0;line-height:1.6}
.prep-bulk-heading .textbtn{flex-shrink:0;min-height:44px}
.prep-bulk-count{font-weight:var(--w-bold);font-size:var(--text-meta);margin:14px 0 10px}
.prep-bulk-buttons{display:flex;flex-wrap:wrap;gap:8px}
.prep-bulk-buttons button{flex:1;min-width:140px;padding:12px;min-height:44px;font-size:var(--text-meta)}
.prep-bulk button:disabled{opacity:.45;cursor:not-allowed}
.prep-bulk-receipt{font-size:var(--text-meta);line-height:1.8;margin-bottom:0;color:var(--secondary)}
.prep-phase{margin:14px 0;border:1px solid var(--line);border-radius:var(--radius-control);padding:0 14px}
.prep-phase.is-current{border-color:var(--secondary-line)}
.prep-phase>summary{padding:16px 0;line-height:1.6}
.prep-phase-heading{display:inline-grid;vertical-align:middle;gap:3px;margin-left:4px!important}
.prep-phase-heading strong{font-size:var(--text-control);color:var(--ink)}
.prep-phase-heading small{font-size:var(--text-small);font-weight:var(--w-regular);color:#686e7b}
.prep-select-row{display:flex;align-items:center;gap:4px}
.prep-select-row .prep-row{flex:1;min-width:0}
.prep-select-label{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;min-height:44px;cursor:pointer}

@media(max-width:359px){.prep-bulk-heading{align-items:flex-start;flex-wrap:wrap}.prep-bulk-buttons{flex-direction:column}}

/* Basic status and memo stay visible; optional records remain in the same form. */
.prep-record-extra{border:1px solid var(--secondary-line);border-radius:var(--radius-control);padding:0 16px;min-width:0}
.prep-record-extra>summary{cursor:pointer;font-weight:var(--w-strong);font-size:var(--text-control);padding:14px 0;line-height:1.6;min-height:48px}
.prep-record-extra>summary small{display:block;color:#686e7b;font-weight:var(--w-regular);font-size:var(--text-small);margin:4px 0 0 18px}
.prep-record-extra>.stack{padding-bottom:16px}
.prep-record-extra .prep-caption{margin-top:0}
.prep-cost-editor:not([open]){padding:0 16px}
.prep-cost-editor:not([open])>summary{min-height:48px;padding:14px 0;margin-bottom:0;font-size:var(--text-control)}

.prep-city-field{min-width:0}
.prep-city-field>h3{font-size:var(--text-control);line-height:1.7;margin:0 0 6px}
.prep-city-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:4px}
.prep-city-actions button{min-height:44px;padding:8px 0;font-size:var(--text-meta);white-space:normal;overflow-wrap:anywhere}
.prep-city-actions [data-action="prep-use-life-city"]{color:var(--secondary)}

.saved-hub{grid-column:1/-1;width:100%;max-width:720px;margin:0 auto;padding-bottom:24px;min-width:0;overflow-wrap:anywhere}
.saved-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.saved-hub-heading h1{font-size:var(--text-title);line-height:var(--lh-title)}
.saved-hub-privacy{font-size:var(--text-meta);line-height:1.8;color:#535e75;margin:16px 0}
.saved-hub-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}
.saved-hub-tabs button{min-height:44px}
.saved-hub-tabs button.active{background:var(--secondary);color:#fff;border-color:var(--secondary)}
.saved-hub-tabs span{font-size:var(--text-small);margin-left:4px}
.saved-hub-row{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:6px 12px;width:100%;padding:18px 4px;border-bottom:1px solid var(--line);text-align:left;min-width:0}
.saved-hub-row small,.saved-hub-row strong,.saved-hub-row>span{grid-column:1;overflow-wrap:anywhere}
.saved-hub-row small{font-size:var(--text-small);color:var(--secondary)}
.saved-hub-row strong{font-size:var(--text-body);line-height:1.6}
.saved-hub-row>span{font-size:var(--text-meta);color:#686e7b;line-height:1.7}
.saved-hub-row>.icon{grid-column:2;grid-row:1/4;align-self:center;color:#686e7b}
.saved-hub .prep-quiet{margin-top:20px}

/* Arrival reading guide: no record or lifecycle mutations. */
.arrival-guide{margin-top:12px}.arrival-phase{border:1px solid var(--line,#ddd);border-radius:var(--radius-card);margin:18px 0;overflow:hidden}.arrival-phase>summary{padding:18px;cursor:pointer;background:var(--surface,#f6f8f5)}.arrival-phase>summary span{display:inline-flex;gap:12px;align-items:baseline}.arrival-phase>summary strong{font-size:18px}.arrival-phase>summary small{color:var(--muted,#65716a);font-size:12px}.arrival-intro{padding:0 18px;font-size:14px;color:var(--muted,#65716a)}.arrival-item{margin:18px;padding:0 0 20px;border-bottom:1px solid var(--line,#ddd)}.arrival-item:last-child{border-bottom:0;padding-bottom:0}.arrival-item h3{font-size:var(--text-card);margin:0 0 10px}.arrival-condition{font-size:13px;line-height:1.65;background:#eef5ef;border-radius:var(--radius-control);padding:10px 12px;color:#375b43}.arrival-condition b{display:block}.arrival-item ul{padding-left:20px;font-size:14px;line-height:1.8}.arrival-item li+li{margin-top:8px}.arrival-sources{display:grid;gap:8px;margin-top:14px}.arrival-sources a{font-size:13px;color:#285b3b;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;line-height:1.6}.arrival-sources span{font-size:12px;color:var(--muted,#65716a)}.arrival-phase>summary:focus-visible{outline:3px solid #4f8260;outline-offset:-3px}.arrival-guide .note{line-height:1.7}.arrival-guide .fieldhelp{line-height:1.7}

.prep-guest-choice p{margin:0}
.prep-guest-actions{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px}
.prep-guest-actions .textbtn{min-height:44px}

.prep-form label[hidden]{display:none}
.prep-action-card{margin:24px 0;padding:20px;border:1px solid var(--line,#e4e9f2);border-radius:var(--radius-card);background:#fff}
.prep-action-card h3{margin:0 0 12px}.prep-action-card p{line-height:1.7;overflow-wrap:anywhere}
.prep-detail .prep-action-card{font-size:var(--text-body)}
.prep-detail .prep-action-card p{font-size:inherit;margin-top:12px}
.prep-detail .prep-action-card .prep-caption{font-size:var(--text-small)}
.prep-action-list{padding-left:22px}.prep-action-list>li{margin:16px 0;padding-left:4px;line-height:1.7}
.prep-action-check{cursor:pointer;line-height:1.7}

.prep-action-check:has(input:checked)>span{color:#56647a}
.prep-guide-complete{padding:14px;background:#f3f6fc;border-radius:12px}
.prep-guide-details{margin:16px 0}.prep-guide-details summary{cursor:pointer;font-weight:var(--w-bold);line-height:1.6}
.prep-guide-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:14px 0;overflow-wrap:anywhere}
.prep-document{padding:16px 0;border-bottom:1px solid var(--line,#e4e9f2)}.prep-document p{margin:8px 0}
@media(max-width:480px){.prep-action-card{padding:16px}.dg-daily-actions{flex-wrap:wrap}}
