.tp-app { --tp-line: #d9e5eb; padding-bottom: 50px; }
.tp-app .tc-button:not(.tc-button--outline) { color: #fff; }
.tp-app [hidden] { display: none !important; }
.tp-hero { background: #e5f8f6; border-bottom: 5px solid #00a397; }
.tp-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 36px; }
.tp-hero h1 { max-width: 820px; margin: 4px 0 12px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 900; }
.tp-hero p:not(.tp-eyebrow) { max-width: 750px; margin: 0 0 15px; font-size: 17px; color: #334760; }
.tp-hero .tc-button { flex-shrink: 0; }
.tp-eyebrow { margin: 0 0 8px; color: #00776e; font-size: 12px; letter-spacing: .09em; font-weight: 900; }
.tp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: #fff; color: #006e65; border-radius: 20px; font-size: 13px; font-weight: 800; }
.tp-workspace { padding-top: 20px; }
.tp-storage-note { display: flex; align-items: baseline; gap: 9px; margin: 0 0 20px; padding: 12px 16px; background: #fff7df; border-radius: 10px; color: #684a12; font-size: 14px; }
.tp-message { margin: 12px 0 20px; padding: 14px 16px; border: 1px solid #69bfb5; border-left: 5px solid #008c80; border-radius: 10px; background: #eefaf7; color: #064f48; }
.tp-message.is-error { border-color: #ecaaa6; border-left-color: #dc423a; color: #9a221b; background: #fff2ef; }
.tp-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 24px; }
.tp-panel { padding: 22px; margin-bottom: 20px; border: 1px solid var(--tp-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px #12375209; }
.tp-builder { border-top: 5px solid #039fed; }
.tp-builder h2 { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; font-size: 23px; line-height: 1.2; font-weight: 900; }
.tp-builder h2 i { color: #039fed; }
.tp-app label { display: block; margin: 12px 0 5px; color: #122b49; font-size: 14px; font-weight: 800; }
.tp-app label span { color: #536a7a; font-size: 12px; font-weight: 600; }
.tp-app input:not([type="checkbox"]):not([type="file"]), .tp-app select, .tp-app textarea {
    width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #b9ccd7; border-radius: 8px; background: #fff; color: #17304b; font: inherit; font-size: 15px;
}
.tp-app textarea { resize: vertical; line-height: 1.45; }
.tp-app input:focus, .tp-app select:focus, .tp-app textarea:focus { outline: 2px solid #008c80; outline-offset: 2px; }
.tp-app button:focus-visible, .tp-app a:focus-visible, .tp-import:focus-within { outline: 3px solid #ffba00; outline-offset: 3px; }
.tp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-form-row > div { min-width: 0; }
.tp-hint { margin: 8px 0; color: #536575; font-size: 12px; line-height: 1.5; }
.tp-destination-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.tp-small-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; gap: 7px; color: #15354e; border: 1px solid #bfd0d9; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.tp-small-button:hover { background: #eaf8f6; border-color: #009487; }
.tp-small-button:disabled { opacity: .42; cursor: default; }
.tp-chosen { display: grid; gap: 7px; margin: 14px 0 6px; padding: 0; list-style: none; }
.tp-chosen li { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 9px; background: #eef8fd; border-left: 3px solid #039fed; border-radius: 7px; font-size: 14px; font-weight: 800; }
.tp-chosen li span { flex: 1; }
.tp-order-button { padding: 4px 6px; min-height: 30px; border: 0; background: transparent; color: #23637c; cursor: pointer; border-radius: 4px; }
.tp-order-button:disabled { opacity: .3; cursor: default; }
.tp-create { width: 100%; margin-top: 20px; font-size: 15px; color: #fff !important; }
.tp-ai-action { margin-top: 20px; padding: 0 14px 12px; border: 1px solid #a7ded6; border-radius: 12px; background: #eefbf8; }
.tp-ai-action .tp-create { margin-top: 12px; }
.tp-beta { padding: 2px 6px; border-radius: 5px; background: #fff; color: #00796e; font-size: 11px; }
.tp-create:disabled { opacity: .6; cursor: not-allowed; }
.tp-app .tp-create-outline { color: #007d73 !important; border-color: #009b8e; background: #fff; }
.tp-ai-provenance { padding: 10px 12px; border-radius: 8px; background: #eaf9f5; color: #256052; font-size: 14px; }
.tp-ai-sources { margin-bottom: 16px; overflow-wrap: anywhere; }
.tp-ai-sources summary { cursor: pointer; font-weight: 800; color: #007a70; }
.tp-ai-sources a { text-decoration: underline; color: #007a70; }
.tp-empty { padding-block: 64px; text-align: center; background: #f4fbff; }
.tp-empty > i { margin-bottom: 15px; color: #009c90; font-size: 58px; }
.tp-empty h2 { margin: 0 0 12px; font-size: 28px; font-weight: 900; }
.tp-empty p { max-width: 440px; margin: 0 auto 20px; color: #4b6273; }
.tp-name { padding: 5px 0 !important; border: 0 !important; border-bottom: 1px dashed #bfd0d9 !important; border-radius: 0 !important; font-size: clamp(22px, 2.3vw, 32px) !important; font-weight: 900 !important; }
.tp-summary { font-size: 14px; color: #425b70; margin: 12px 0 18px; }
.tp-reschedule { max-width: 500px; margin: 0 0 18px; }
.tp-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-toolbar .tc-button { color: #fff; font-size: 14px; }
.tp-day { border: 1px solid var(--tp-line); border-left: 5px solid #009b8e; border-radius: 12px; margin: 0 0 16px; background: #fff; }
.tp-day:nth-child(3n+2) { border-left-color: #059ce8; }
.tp-day:nth-child(3n) { border-left-color: #ffae00; }
.tp-day summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; cursor: pointer; list-style: none; background: #f3fbfa; border-radius: 8px; font-weight: 900; }
.tp-day summary::-webkit-details-marker { display: none; }
.tp-day summary small { display: block; margin-top: 3px; font-size: 12px; color: #536a7a; font-weight: 600; }
.tp-day summary i { transition: transform .15s; }
.tp-day[open] summary i { transform: rotate(180deg); }
.tp-day__body { padding: 4px 16px 16px; }
.tp-day__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.tp-day__tools { display: flex; gap: 5px; flex-wrap: wrap; }
.tp-day__links { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 16px; font-size: 13px; }
.tp-day__links a { color: #007b72; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tp-activity { padding: 14px 0; border-top: 1px solid #e6edf1; }
.tp-activity__top { display: grid; grid-template-columns: 26px minmax(0, 1fr) 28px; align-items: center; gap: 6px; }
.tp-activity__top input[type="checkbox"] { width: 20px; height: 20px; accent-color: #009487; }
.tp-activity .tp-activity__title { margin: 0; }
.tp-activity__top input:not([type="checkbox"]) { font-weight: 800; background: #fafdff; }
.tp-activity__detail { margin-left: 32px; }
.tp-activity__detail label { font-size: 12px; }
.tp-activity__detail textarea { font-size: 14px; }
.tp-activity__detail .tp-form-row { grid-template-columns: 125px minmax(0, 1fr); }
.tp-activity__top .tp-order-button { color: #aa443d; }
.tp-add-day { margin-bottom: 20px; border-color: #009b8e; color: #00786e; }
.tp-bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block: 22px; }
.tp-bottom-bar .tc-button { color: #fff; }
.tp-saved-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tp-saved-tools > div:last-child { min-width: min(260px, 100%); }
.tp-app label.tp-import { position: relative; margin: 0; overflow: hidden; }
.tp-import input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.tp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; padding-bottom: 10px; border-bottom: 1px solid var(--tp-line); }
.tp-tabs button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 9px; background: #eef4f7; color: #23415b; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.tp-tabs button.is-active { background: #008e82; color: #fff; }
.tp-tabs span { margin-left: 6px; }
.tp-saved-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-saved-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--tp-line); border-top: 5px solid #009b8e; border-radius: 13px; background: #fff; }
.tp-saved-card:nth-child(3n+2) { border-top-color: #039fed; }
.tp-saved-card:nth-child(3n) { border-top-color: #ffb000; }
.tp-saved-card h2 { margin: 0; font-size: 23px; line-height: 1.15; overflow-wrap: anywhere; font-weight: 900; }
.tp-saved-card p { margin: 0; font-size: 14px; color: #4d6273; overflow-wrap: anywhere; }
.tp-saved-card .tp-toolbar { margin-top: auto; padding-top: 12px; }
.tp-saved-card .tc-button { min-height: 40px; padding: 8px 13px; }
.tp-saved-grid > .tp-empty { grid-column: 1 / -1; }
.tp-app .tp-danger { color: #a53831; }
.tp-print { display: none; }
@media (max-width: 1100px) { .tp-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; } .tp-panel { padding: 17px; } .tp-saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .tp-layout { grid-template-columns: 1fr; } .tp-hero__inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 26px; } .tp-builder { max-width: none; } .tp-day__meta { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .tp-workspace { padding-top: 14px; } .tp-saved-grid { grid-template-columns: 1fr; } .tp-hero h1 { font-size: 34px; } .tp-hero p:not(.tp-eyebrow) { font-size: 16px; } .tp-panel { padding: 15px; } .tp-storage-note { align-items: flex-start; font-size: 13px; } .tp-activity__detail { margin-left: 0; } .tp-activity__detail .tp-form-row { grid-template-columns: 1fr; gap: 0; } .tp-bottom-bar { align-items: flex-start; flex-direction: column; } .tp-saved-tools { align-items: stretch; } .tp-saved-tools > div { width: 100%; } }
@media print {
    .tc-header, .tc-footer, .tp-hero, .tp-storage-note, .tp-builder, .tp-message, .tp-plan-heading, [data-trip-days], .tp-add-day, .tp-notes, .tp-bottom-bar { display: none !important; }
    .tp-layout { display: block; } .tp-print { display: block; font-family: Arial, sans-serif; color: #111; }
    .tp-print h1 { font-size: 25px; } .tp-print h2 { font-size: 18px; margin-top: 22px; }
    .tp-print article { break-inside: avoid; border-top: 1px solid #ccc; } .tp-print p, .tp-print li { white-space: pre-wrap; }
    .tp-app { padding: 0; } .tc-shell { width: 100%; } @page { margin: 16mm; }
}
