:root{font:16px/1.5 system-ui,sans-serif;color:#172e29;background:#f4f6f2;--forest:#163e33;--muted:#4e655c;--line:#dbe3da;--paper:#fff;--mint:#e4eee5}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body > main.layout{flex:1 0 auto;align-content:start}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #a85431;outline-offset:3px}button{border:0;border-radius:9px;padding:.55rem .9rem;font-weight:650}h1,h2,h3,p{margin:0}h2{font-size:1.15rem}h3{font-size:1.04rem}a{color:var(--forest);font-weight:650;text-underline-offset:3px}.wrap{width:min(1260px,calc(100% - 64px));margin-inline:auto}.bar{background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.55rem;font-weight:800;letter-spacing:-.06em}.logo{display:grid;place-items:center;background:var(--forest);color:#e0f1c6;width:36px;height:36px;border-radius:11px;letter-spacing:normal}.primary{color:white;background:var(--forest)}.primary:hover{background:#25594a}.secondary,.icon{background:#edf2ec;color:var(--forest)}.secondary:hover,.icon:hover{background:#dee9df}.danger{background:#973f32;color:white}.layout{display:grid;grid-template-columns:222px minmax(0,1fr);gap:32px;padding-block:34px 64px}aside h2{margin-bottom:14px}nav{display:grid;gap:8px}.trip{border:1px solid transparent;text-align:left;background:transparent;display:block;width:100%;overflow-wrap:anywhere}.trip small{color:var(--muted);display:block;font-weight:500;font-size:.825rem}.trip:hover,.trip[aria-current=true]{background:var(--mint);border-color:#cbdccd}.hero{position:relative;isolation:isolate;min-height:272px;border-radius:20px;background:linear-gradient(100deg,#122c25,#244c3c 64%,#527961);overflow:hidden;display:flex;align-items:flex-end;padding:30px;color:white}.hero h1{font-family:Georgia,serif;font-size:clamp(2.65rem,6.5vw,5.2rem);letter-spacing:-.06em;line-height:1.02;overflow-wrap:anywhere;margin:.25rem 0 .65rem}.hero .label{color:#e2f0c8;font-weight:650;font-size:.85rem}.hero p{color:#f0f5ec}.hero button{position:absolute;top:18px;right:18px;background:#fff;color:var(--forest)}.plan{margin-top:27px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2{font-size:1.4rem;letter-spacing:-.025em}.subtle{color:var(--muted);font-size:.91rem}.dates{display:flex;gap:8px;overflow:auto;padding:14px 1px;margin:0 -1px}.dates button{flex:0 0 auto;min-width:76px;border:1px solid var(--line);background:#fff;color:var(--forest);text-align:left}.dates button[aria-pressed=true]{background:var(--forest);color:white;border-color:var(--forest)}.dates small{display:block;font-size:.815rem;font-weight:500}.agenda{background:white;border:1px solid var(--line);border-radius:16px;padding:18px 22px}.agenda .section-head{margin-bottom:8px}.activity{display:grid;grid-template-columns:70px 1fr auto;gap:14px;align-items:start;padding:16px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.activity time{color:var(--forest);font-weight:700;font-variant-numeric:tabular-nums}.activity p{color:var(--muted);white-space:pre-wrap;margin-top:4px}.tag{display:inline-block;background:var(--mint);border-radius:6px;padding:1px 6px;font-size:.8rem;color:var(--forest);margin-bottom:3px}.empty{padding:18px 0;color:var(--muted)}.footer-actions{display:flex;justify-content:flex-end;margin-top:15px}.text-button{background:transparent;color:#913d30}.text-button:hover{text-decoration:underline}dialog{width:min(510px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:18px;color:inherit;padding:24px}dialog::backdrop{background:#122c2590}dialog p{margin-top:.65rem}label{display:grid;gap:5px;margin-top:12px;font-weight:650}input,textarea,select{min-width:0;background:#fbfcfa;border:1px solid #aabbb0;border-radius:8px;color:inherit;padding:.5rem .65rem;width:100%}select{appearance:none;background:linear-gradient(45deg,transparent 50%,#385749 50%) calc(100% - 16px) 50%/5px 5px no-repeat,linear-gradient(135deg,#385749 50%,transparent 50%) calc(100% - 11px) 50%/5px 5px no-repeat #fbfcfa;padding-right:22px}textarea{resize:vertical}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:17px}.error{color:#973f32}.error:empty{display:none}.toast{position:fixed;bottom:16px;right:16px;max-width:calc(100% - 32px);background:var(--forest);color:white;padding:12px 16px;border-radius:9px;box-shadow:0 5px 18px #0002;z-index:1}

.group-tabs,.review-actions{display:flex;gap:8px;flex-wrap:wrap}.group-tabs{margin:16px 0}.group-tabs button{color:var(--forest);background:white;border:1px solid var(--line)}.group-tabs button[aria-pressed=true]{color:white;background:var(--forest)}.plan{margin-top:0}.proposal{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.proposal p{white-space:pre-wrap}.proposal:first-of-type{margin-top:10px}.tag.pending{background:#f9edca;color:#5b4308}.tag.rejected{background:#f7e3de;color:#723c32}button:disabled{opacity:.6;cursor:wait}


.brand{min-width:0;line-height:1.15;overflow-wrap:anywhere}
.logo{flex:none}

.bar-inner {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,22rem);
  grid-template-areas:"brand preferences actions";
  align-items:center;
  gap:.25rem 1rem;
  padding-block:.4rem;
}
.bar-inner .brand {grid-area:brand;display:grid;justify-items:start;gap:2px}
.brand-image {display:block;width:min(100%,10rem);height:auto}
.header-preferences {grid-area:preferences}
.bar-actions {
  grid-area:actions;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.5rem;
}
.bar-actions button {min-height:44px;min-width:0;line-height:1.2;overflow-wrap:anywhere}
@media(max-width:58rem) {
  .bar-inner {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand preferences" "actions actions";
    row-gap:.4rem;
  }
  .bar-actions {width:min(100%,22rem);justify-self:end}
}
@media(max-width:38rem) {
  .bar-actions {width:100%}
}
.language-picker{
  flex:none;width:60px;min-height:44px;font-size:1.2rem;
  padding:.35rem 22px .35rem .55rem;cursor:pointer;
}
#workspace,aside,.hero>div,.proposal>div,.section-head>*,.activity>div,.field-row>label{min-width:0}
.section-head,.actions{flex-wrap:wrap}
.section-head h2,.section-head h3,.hero p{overflow-wrap:anywhere}
.field-row{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:760px){
  .wrap{width:calc(100% - 28px)}

  .brand{flex:1;font-size:1.35rem}


  .layout{grid-template-columns:minmax(0,1fr);gap:17px;padding-top:19px}
  nav{display:flex;overflow:auto}
  .trip{width:auto;min-width:125px}
  aside h2{margin-bottom:6px}
  .hero{flex-direction:column;align-items:stretch;justify-content:flex-end;gap:16px;min-height:0;padding:18px}
  .hero button{position:static;align-self:flex-end}
  .hero h1{font-size:clamp(1.9rem,8vw,3rem);line-height:1.08}
  .agenda{padding:12px}
  .activity{grid-template-columns:auto minmax(0,1fr);gap:8px}
  .activity button{grid-column:2;justify-self:start}
  .proposal{flex-direction:column}
}

@media(max-width:420px){

  .agenda .section-head{align-items:flex-start;flex-direction:column}
  .field-row{grid-template-columns:minmax(0,1fr);gap:0}
  dialog{padding:16px}
}
.share-controls{display:grid;gap:8px;margin-block:16px}
.share-controls>button{justify-self:start}
[hidden]{display:none!important}
.account-name{align-self:center;overflow-wrap:anywhere;font-size:.875rem}
.header-preferences{display:flex;gap:8px;align-items:center;flex:none}
.profile-button{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0}
.profile-button.signed-in::after{content:"";position:absolute;right:5px;bottom:5px;width:8px;height:8px;border:2px solid #edf2ec;border-radius:50%;background:#31714a}
.account-info{display:grid;gap:12px;margin-block:16px}
.account-info dt{font-size:.9rem;color:var(--muted)}
.account-info dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.trip .trip-role{font-weight:700}
.hero .role-badge{display:inline-block;border:1px solid #ffffff55;border-radius:8px;padding:.15rem .45rem}
.hero .role-help{font-size:.875rem;margin-top:.45rem}



.hero.trip-cover{flex-direction:column;align-items:stretch;justify-content:flex-end;gap:16px;background:linear-gradient(100deg,#0b211aed,#0b211a65),var(--cover) center/cover,#244c3c}
.hero-actions{margin-bottom:auto;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.hero .hero-actions button{position:static}
.cover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0;min-width:0}
.cover-option{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px;cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:7px;margin:0}
.cover-option:has(input:checked){background:var(--mint);border-color:var(--forest)}
.cover-option img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:5px;grid-column:1/-1;grid-row:1}
.cover-option input{width:auto;margin:0}
@media(max-width:760px){.hero.trip-cover{min-height:240px}}
.range-picker{display:grid;gap:6px;margin-top:12px}
#range-label{font-weight:650}
#range-trigger{text-align:left}
#range-panel{padding:10px;border:1px solid var(--line);border-radius:10px}
.range-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.range-nav button{min-width:40px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
#range-weekdays{font-size:.875rem;color:var(--muted)}
#range-days button{min-width:0;padding:.45rem 0;background:white;color:var(--forest)}
#range-days .in-range{background:var(--mint);border-radius:0}
#range-days .endpoint{background:var(--forest);color:white}
#range-days button:disabled,.range-nav button:disabled{opacity:.35;cursor:default}
.pdf-link{display:inline-block;border-radius:9px;padding:.55rem .9rem;text-decoration:none}

.category-color {
  color: var(--category);
  background-color: color-mix(in srgb, var(--category) 7%, white);
}
select.category-color {
  border-inline-start: 4px solid var(--category);
}

.site-footer {flex:none;background:var(--paper);border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
.site-footer .wrap {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.125rem}
.site-footer button {background:transparent;color:var(--forest);text-decoration:underline;text-underline-offset:3px;min-height:44px}
#help-guide section {margin-top:1.2rem}
#help-guide section p {margin-top:.35rem;line-height:1.55}

#refresh[aria-busy="true"] {opacity:.65}
#refresh[aria-busy="true"]::after {content:"…"}
