.trip-planner{display:grid;gap:1rem;max-width:49rem;margin:auto;color:#192b30}
.trip-planner header h3,.trip-planner h4,.trip-saved p{margin:0}
.trip-planner section,.trip-planner footer{padding:clamp(1rem,3vw,1.45rem);border:1px solid #dbe2df;border-radius:14px;background:#fff}
.trip-planner section h4{margin-bottom:.75rem;font-size:1.12rem}
.trip-planner label{display:grid;gap:.3rem;margin:.48rem 0;font-weight:650;font-size:.91rem}
.trip-planner input,.trip-planner select{box-sizing:border-box;width:100%;min-width:0;border:1px solid #bac6c5;border-radius:8px;background:#fff;color:#192b30;padding:.58rem .68rem;font:inherit}
.trip-planner input:focus,.trip-planner select:focus{outline:2px solid #007368;outline-offset:1px}
.trip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10.8rem),1fr));gap:0 .68rem}
.trip-planner .inline-link,.trip-planner .text-button{display:inline-block;margin:.32rem .6rem .32rem 0}
.trip-planner footer{background:#f2f7f5}
.trip-planner footer dl{margin:0}.trip-planner footer dl>div,.trip-total{display:flex;justify-content:space-between;gap:1rem}
.trip-planner footer dd{margin:0;font-variant-numeric:tabular-nums}
.trip-total{border-top:1px solid #cad7d4;padding-top:.7rem;align-items:center;font-size:1rem}.trip-total strong{font-size:1.6rem}
.trip-saved{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.8rem 0;border-bottom:1px solid #dbe2df}.trip-saved div{flex:1;min-width:12rem}
@media(max-width:480px){.trip-planner section,.trip-planner footer{padding:.85rem}.trip-planner input,.trip-planner select{font-size:16px}.trip-planner footer>.button{width:100%}}

/* Calendar trip overview. Shared dialog and account plan styles stay independent. */
#dialog:has(.trip-overview){width:min(46rem,calc(100% - 2rem));max-width:100%;box-sizing:border-box;padding:1.2rem 1.35rem 1rem;background:var(--paper,#f5f4ee);color:var(--ink,#14151a);border-radius:18px;overscroll-behavior:contain;scrollbar-gutter:stable;}
#dialog:has(.trip-overview) .dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;}
#dialog:has(.trip-overview) .dialog-top>div{display:flex;align-items:center;flex-wrap:wrap;gap:10px;}
#dialog:has(.trip-overview) .dialog-top .brand-name{margin:0;color:#97431f;font-size:.72rem;letter-spacing:.08em;}
#dialog:has(.trip-overview) #dialog-title{margin:0;padding-left:10px;border-left:1px solid #c8c4b9;font-size:1.15rem;line-height:1.2;letter-spacing:.01em;text-transform:none;}
#dialog:has(.trip-overview) .dialog-top .icon-button{height:42px;width:42px;min-height:42px;border-radius:50%;background:transparent;}
.trip-overview{display:grid;gap:15px;width:100%;color:var(--ink,#14151a);font-family:Manrope,Arial,sans-serif;}
.trip-overview *, .trip-overview *::before,.trip-overview *::after{box-sizing:border-box;}
.trip-overview .trip-hero{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:16px;isolation:isolate;position:relative;overflow:hidden;background:#191d29;color:#fffaf1;border-radius:14px;padding:24px 22px;min-height:142px;margin:0;}
.trip-overview .trip-hero-copy{grid-column:2;grid-row:1;position:relative;min-width:0;}
.trip-overview .trip-hero-copy h3{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:800;font-size:clamp(1.7rem,3vw,2.45rem);line-height:1.02;letter-spacing:-.015em;color:#fffaf1;margin:5px 0 7px;overflow-wrap:anywhere;}
.trip-overview .trip-context,.trip-overview .trip-event-date{font-size:.79rem;line-height:1.3;letter-spacing:0;margin:0;color:#d6d8e0;}
.trip-overview .trip-context{color:#ffb08e;font-weight:750;}
.trip-overview .trip-mark{grid-column:1;grid-row:1;display:grid;place-items:center;position:relative;width:54px;height:72px;pointer-events:none;}
.trip-overview .trip-mark::before,.trip-overview .trip-mark::after{position:absolute;content:'';border:1px solid #555564;border-radius:50%;width:70px;height:70px;z-index:-1;}
.trip-overview .trip-mark::after{width:93px;height:93px;border-color:#363b4b;}
.trip-overview .trip-mark img{object-fit:contain;width:64px;height:64px;display:block;}
.trip-overview .trip-amount{grid-column:3;grid-row:1;min-width:0;display:grid;gap:2px;padding-left:20px;border-left:1px solid #414653;text-align:right;}
.trip-overview .trip-amount span{font-size:.78rem;line-height:1.35;color:#e9e9eb;font-weight:650;}
.trip-overview .trip-amount strong{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:800;font-variant-numeric:tabular-nums;font-size:clamp(2.45rem,5vw,3.45rem);line-height:1.05;letter-spacing:-.025em;color:#ff936a;white-space:nowrap;}
.trip-overview .trip-amount strong:only-child{white-space:normal;}
.trip-overview .trip-journey,.trip-overview .trip-lines{background:#fffdf8;border:1px solid var(--line,#dcdad1);border-radius:13px;}
.trip-overview .trip-journey>summary,.trip-overview .trip-line>summary{display:grid;grid-template-columns:36px minmax(0,1fr) auto 9px;align-items:center;gap:12px;min-height:66px;padding:12px 16px;list-style:none;cursor:pointer;}
.trip-overview .trip-journey>summary::-webkit-details-marker,.trip-overview .trip-line>summary::-webkit-details-marker{display:none;}
.trip-overview .trip-journey>summary:hover,.trip-overview .trip-line>summary:hover{background:#f8f5ed;border-radius:12px;}
.trip-overview summary:focus-visible,.trip-overview :is(button,a,select,input):focus-visible{outline:3px solid #a24624;outline-offset:2px;}
.trip-overview .trip-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#f0eee7;color:#313340;}
.trip-overview .trip-symbol svg{display:block;width:21px;height:21px;}
.trip-overview .trip-journey .trip-symbol{color:#963f1d;background:#ffebdf;}
.trip-overview .trip-line-copy{display:grid;gap:3px;min-width:0;line-height:1.25;}
.trip-overview .trip-line-copy strong{font-size:.98rem;line-height:1.25;font-weight:800;overflow-wrap:anywhere;}
.trip-overview .trip-line-copy small{font-size:.79rem;line-height:1.4;color:var(--muted,#55565e);overflow-wrap:anywhere;}
.trip-overview .trip-line-copy small:empty{display:none;}
.trip-overview .trip-line-price{font-size:1.02rem;font-weight:800;color:var(--ink,#14151a);font-variant-numeric:tabular-nums;white-space:nowrap;}
.trip-overview .trip-unpriced .trip-line-price{font-size:.75rem;color:#8b4425;}
.trip-overview .trip-edit{font-size:.78rem;font-weight:750;color:#853c20;}
.trip-overview .trip-chevron{width:7px;height:7px;border:solid #64656c;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);justify-self:center;margin-top:-3px;}
.trip-overview details[open]>summary>.trip-chevron{transform:rotate(225deg);margin-top:3px;}
.trip-overview section.trip-costs,.trip-overview footer{border:0;background:transparent;padding:0;margin:0;}
.trip-overview section.trip-costs h4{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:700;font-size:1.37rem;line-height:1.2;margin:0 0 8px;}
.trip-overview .trip-lines{display:grid;gap:8px;border:0;background:transparent;}
.trip-overview .trip-line{--trip-accent:#936249;--trip-tint:#f9eadf;--trip-deep:#f3dfcf;border:1px solid #d4c7bc;border-inline-start:4px solid var(--trip-accent);border-radius:12px;background:var(--trip-tint);}
.trip-overview [data-cost="fees"]{--trip-accent:#ac542b;--trip-tint:#f9eadf;--trip-deep:#f4ddce;}
.trip-overview [data-cost="travel"]{--trip-accent:#57738a;--trip-tint:#e8eef4;--trip-deep:#dce6ef;}
.trip-overview [data-cost="rental"]{--trip-accent:#4e7466;--trip-tint:#e7efea;--trip-deep:#dae9e1;}
.trip-overview [data-cost="stay"]{--trip-accent:#80658e;--trip-tint:#eee9f3;--trip-deep:#e4dcef;}
.trip-overview .trip-line>.trip-panel,.trip-overview .trip-line>.trip-breakdown{background:var(--trip-tint);}
.trip-overview .trip-line>.trip-panel{border-radius:0 0 10px 8px;}
.trip-overview .trip-line>summary:hover{background:var(--trip-deep);}
.trip-overview .trip-line[open]{border-color:#b7ada0;background:#fff;}
.trip-overview .trip-line[open]>summary{background:var(--trip-deep);border-radius:12px 12px 0 0;}
.trip-overview [data-cost="fees"] .trip-symbol{background:#ffeadc;color:#99431d;}
.trip-overview [data-cost="travel"] .trip-symbol{background:#e3eaf2;color:#35536a;}
.trip-overview [data-cost="rental"] .trip-symbol{background:#e2eeea;color:#31594f;}
.trip-overview [data-cost="stay"] .trip-symbol{background:#eee7f4;color:#624977;}
.trip-overview .trip-line[hidden]{display:none;}
.trip-overview [hidden]{display:none!important;}
.trip-overview .trip-panel{padding:3px 16px 14px;border-top:1px solid #e8e5db;}
.trip-overview .trip-panel>p,.trip-overview .trip-panel details>p,.trip-overview .trip-panel [data-trip-flights]>p,.trip-overview .trip-panel [data-trip-cars]>p,.trip-overview .trip-panel [data-trip-stays]>p{margin:.65rem 0;font-size:.83rem;line-height:1.5;color:var(--muted,#55565e);}
.trip-overview :is(label,input,select){min-width:0;}
.trip-overview label{gap:6px;margin:.65rem 0 .4rem;font-size:.83rem;line-height:1.35;font-weight:750;}
.trip-overview input,.trip-overview select{display:block;min-height:44px;border-color:#cac7bd;background:#fff;color:var(--ink,#14151a);font-size:.91rem;}
.trip-overview .trip-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:0 .75rem;}
.trip-overview .trip-panel details,.trip-overview .trip-explanation{margin-top:8px;}
.trip-overview .trip-panel details>summary,.trip-overview .trip-explanation>summary{cursor:pointer;font-size:.83rem;font-weight:700;color:#78402b;line-height:1.45;padding:.4rem 0;}
.trip-overview .inline-link,.trip-overview .text-button{font-size:.83rem;font-weight:650;color:#703a26;line-height:1.45;}
.trip-overview .trip-breakdown{margin:0;padding:8px 16px;background:#f8f6f0;border-top:1px solid var(--line,#dcdad1);}
.trip-overview .trip-breakdown>div{display:flex;justify-content:space-between;gap:12px;font-size:.85rem;line-height:1.6;}
.trip-overview .trip-breakdown dd{margin:0;font-variant-numeric:tabular-nums;}
.trip-overview .trip-notes{color:var(--muted,#55565e);font-size:.77rem;line-height:1.45;}
.trip-overview .trip-notes>p{margin:8px 3px 0;}
.trip-overview .trip-notes .trip-missing{padding:8px 11px;border-left:3px solid var(--orange,#ff7946);background:#ffebdf;color:#653221;}
.trip-overview footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;}
.trip-overview footer p{margin:0;}.trip-overview footer p:empty{display:none;}
.trip-overview footer .button{min-height:45px;}
@media(max-width:600px){
  #dialog:has(.trip-overview){width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:12px;border-radius:15px;scrollbar-gutter:auto;}
  #dialog:has(.trip-overview) .dialog-top{margin-bottom:8px;}
  #dialog:has(.trip-overview) #dialog-title{font-size:1.03rem;}
  .trip-overview{gap:12px;}
  .trip-overview .trip-hero{grid-template-columns:minmax(0,1fr) 56px;grid-template-rows:auto auto;gap:12px 10px;padding:16px 17px;min-height:0;}
  .trip-overview .trip-hero-copy{grid-column:1;grid-row:1;}
  .trip-overview .trip-mark{grid-column:2;grid-row:1;align-self:center;width:51px;height:52px;}
  .trip-overview .trip-mark img{width:50px;height:52px;}
  .trip-overview .trip-mark::before{width:61px;height:61px;}.trip-overview .trip-mark::after{width:80px;height:80px;}
  .trip-overview .trip-hero-copy h3{font-size:1.86rem;}
  .trip-overview .trip-amount{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:0;border-top:1px solid #424653;padding:9px 0 0;}
  .trip-overview .trip-amount span{max-width:44%;}.trip-overview .trip-amount strong{font-size:2.58rem;}
  .trip-overview .trip-line>summary,.trip-overview .trip-journey>summary{grid-template-columns:30px minmax(0,1fr) auto 8px;gap:8px;padding:10px 10px;min-height:58px;}
  .trip-overview .trip-symbol{width:30px;height:32px;}.trip-overview .trip-symbol svg{width:18px;height:18px;}
  .trip-overview .trip-line-copy strong{font-size:.91rem;}.trip-overview .trip-line-copy small{font-size:.73rem;}
  .trip-overview .trip-line-price{font-size:.91rem;}.trip-overview .trip-panel{padding-inline:12px;}
  .trip-overview input,.trip-overview select{font-size:16px;}
  .trip-overview .trip-edit{display:none;}.trip-overview .trip-journey>summary{grid-template-columns:30px minmax(0,1fr) 8px;}
  .trip-overview footer .button{width:100%;}
}
@media(max-width:345px){.trip-overview .trip-amount strong{font-size:2.25rem;}.trip-overview .trip-line>summary{gap:5px;}}
