/* Chốt Kèo — shared chrome and the outing planner. No data or permission changes. */
:root {
  --ink: #24243d;
  --muted: #6c7087;
  --purple: #7254e8;
  --line: #e9e8f2;
  --soft: #f6f5fb;
  color: var(--ink);
  background: var(--soft);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ui-icon { flex-shrink: 0; vertical-align: middle; }
.app-shell { max-width: 1536px; padding: 24px 28px; }
.top { padding: 16px 20px; border-radius: 18px; box-shadow: 0 3px 24px #29224a04; border-color: var(--line); }
.brand { color: #24243d; font-size: 25px; letter-spacing: -1px; gap: 12px; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: linear-gradient(145deg,#9070ff,#6747d8); color: #fff; box-shadow: 0 5px 14px #7254e82b; }
.brand-icon .ui-icon { width: 27px; height: 27px; }
.brand > span:last-child { line-height: 1.1; }
.brand small { display: block; font-size: 8px; font-weight: 650; letter-spacing: 1.5px; color: #6b687c; margin-top: 7px; }
.userbar .smallbtn { background: #f2f0f9; color: #625775; border-radius: 9px; padding: 9px 13px; }
.muted, .hint { color: #646c82; }
.workspace-title { margin: 28px 0 20px; flex-wrap: wrap; }
.workspace-title h1 { font-size: 26px; letter-spacing: -.7px; margin-top: 5px; }
#roomRole { color: #6b637d; font-size: 10px; font-weight: 650; letter-spacing: .8px; }
.workspace-title > .row { flex-wrap: wrap; }
.workspace-title .badge { background: #e3f4ed; color: #237658; border-radius: 8px; padding: 7px 10px; }
.workspace-title .smallbtn { background: #fff; border: 1px solid var(--line); padding: 8px 12px; }
.layout { grid-template-columns: 238px minmax(0,1fr); gap: 22px; margin-top: 0; align-items: start; }
#section, .planning-hub, .plan-area, .plan-area-body { min-width: 0; }
.sidebar { position: sticky; top: 20px; overflow: hidden; background: #202039; color: #fff; border: 0; padding: 22px 12px 14px; border-radius: 20px; box-shadow: 0 10px 30px #20203912; }
.sidebar-label { padding: 0 13px 18px; font-size: 9px; color: #b7b4d4; letter-spacing: 1.5px; font-weight: 650; }
.navbtn { min-height: 69px; padding: 12px 11px; margin: 5px 0; color: #e2dff4; gap: 10px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.navbtn > .ui-icon { width: 12px; height: 12px; margin-left: auto; opacity: .5; }
.nav-icon { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; background: #ffffff0a; color: #c1b8eb; }
.nav-icon .ui-icon { width: 20px; height: 20px; }
.nav-copy { min-width: 0; }
.nav-copy small { display: block; font-size: 9px; font-weight: 400; color: #b5b0ce; margin-top: 4px; }
.navbtn:hover { background: #ffffff0c; }
.navbtn.active { background: #7658e9; color: #fff; box-shadow: 0 5px 14px #0c09172b; }
.navbtn.active .nav-icon { color: #fff; background: #ffffff1c; }
.navbtn.active small { color: #fff; }
.sidebar-note { position: relative; overflow: hidden; margin: 35px 5px 3px; padding: 18px 14px 24px; border-radius: 14px; background: #35304e; }
.sidebar-note > span { font-size: 7px; letter-spacing: 1.4px; color: #d0c5e7; }
.sidebar-note b { display: block; margin-top: 10px; font-size: 20px; line-height: 1.45; letter-spacing: -.4px; color: #f8f3ff; }
.sidebar-spark { position: absolute; color: #b9a0f5; font-size: 85px; line-height: 1; bottom: -25px; right: -10px; transform: rotate(12deg); opacity: .6; }
.foot { color: #62677d; font-size: 12px; margin: 28px 0 8px; }
.foot span { padding: 0 7px; color: #7254e8; }

/* A bright invitation to the group, with a date from the selected calendar. */
.planning-hub { animation: plan-enter .25s ease-out; }
.plan-heading { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 30px 34px; margin-bottom: 26px; background: linear-gradient(112deg,#392773 0%,#5c43b3 55%,#7a5cde 100%); color: #fff; }
.plan-heading::before { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; border: 1px solid #ffffff13; border-radius: 50%; right: -170px; top: -230px; box-shadow: 0 0 0 60px #ffffff04,0 0 0 120px #ffffff04; }
.plan-hero-copy { position: relative; z-index: 2; max-width: calc(100% - 310px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #cbbcff4d; background: #ffffff0b; border-radius: 6px; color: #f2eaff; font-size: 9px; font-weight: 650; letter-spacing: 1.3px; }
.hero-kicker .ui-icon { color: #ffcc91; width: 13px; height: 13px; }
.plan-heading h1 { font-size: 34px; font-weight: 650; line-height: 1.15; letter-spacing: -1.3px; margin: 15px 0 13px; color: #fff; }
.plan-heading h1 > span { display: block; color: #c6f2dc; font-size: 43px; font-weight: 750; margin-top: 3px; letter-spacing: -1.8px; }
.plan-heading p { color: #e1daf4; font-size: 13px; line-height: 1.75; margin: 0 0 15px; }
.hero-people { display: flex; align-items: center; gap: 11px; min-height: 29px; }
.hero-people > span { font-size: 10px; color: #e0d7f7; line-height: 1.5; }
.hero-people > span b { color: #fff; font-weight: 650; }
.hero-avatar-stack, .voter-avatar-stack { display: flex; padding-left: 5px; }
.hero-avatar-stack > * { margin-left: -5px; width: 29px; height: 29px; border: 2px solid #56409b; }
.hero-avatar-stack .plan-avatar { font-size: 8px; }
.plan-hero-art { position: absolute; top: 45px; right: 17px; width: 330px; height: 230px; pointer-events: none; }
.outing-art { width: 100%; height: 100%; overflow: visible; }
.hero-date-card { position: absolute; top: 30px; left: 130px; width: 135px; height: 161px; transform: rotate(9deg); display: flex; flex-direction: column; align-items: center; background: #fffdf9; border-radius: 14px; color: #34304c; box-shadow: -8px 14px 0 #30215b26,0 15px 24px #30215b33; }
.hero-date-card > span:first-child { width: 100%; border-radius: 14px 14px 0 0; background: #ffd1b3; color: #723c26; text-transform: uppercase; padding: 10px; font-size: 9px; letter-spacing: 2px; font-weight: 750; text-align: center; }
.hero-date-card strong { font-size: 60px; line-height: 1; letter-spacing: -4px; margin: 8px 0 0; color: #55429b; }
.hero-date-card small { font-size: 10px; font-weight: 600; color: #716680; margin-top: 2px; }
.hero-date-line { margin-top: 10px; font-size: 7px; color: #75617f; letter-spacing: .4px; }
.hero-sticker { position: absolute; display: flex; align-items: center; gap: 5px; left: 20px; top: 29px; background: #d9f6e8; color: #34735a; border-radius: 7px; padding: 8px 9px; font-size: 9px; font-weight: 700; transform: rotate(-8deg); }
.hero-sticker .ui-icon { width: 13px; height: 13px; }
.planning-hub .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 10px; background: var(--purple); font-size: 13px; padding: 11px 16px; }
.planning-hub .btn.secondary { color: #6045ba; background: #eeebfb; }
.planning-hub .manage-participants { position: absolute; z-index: 3; top: 0; left: calc(100% + 70px); min-height: 34px; padding: 8px 11px; white-space: nowrap; background: #ffffffeb; color: #56408c; font-size: 10px; }
.manage-participants .ui-icon { width: 14px; height: 14px; }
.manage-participants .ui-icon:last-child { width: 11px; height: 11px; }

/* Summary cards give each kind of information its own visual weight. */
.plan-overview { margin-bottom: 23px; }
.overview-date { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.overview-label { color: #34334c; font-weight: 700; font-size: 16px; letter-spacing: -.3px; }
.selected-date-pill { display: inline-flex; align-items: center; gap: 6px; color: #675c80; font-size: 11px; }
.selected-date-pill .ui-icon { width: 14px; height: 14px; color: #8065ce; }
.overview-grid { display: grid; grid-template-columns: .8fr .9fr 1.2fr 1.1fr; gap: 12px; }
.overview-metric { position: relative; overflow: hidden; display: flex; align-items: start; gap: 12px; border: 1px solid var(--line); background: #fff; padding: 18px 15px; border-radius: 15px; box-shadow: 0 4px 16px #231d4603; }
.overview-metric > div { position: relative; z-index: 1; display: grid; gap: 6px; min-width: 0; }
.overview-metric > div > span { color: #65677d; font-size: 11px; line-height: 1.4; }
.overview-metric strong { display: block; font-size: 27px; font-weight: 750; color: #292a45; letter-spacing: -.8px; line-height: 1.25; overflow-wrap: anywhere; }
.overview-metric small { color: #6e7083; font-size: 10px; line-height: 1.5; }
.metric-icon { position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; background: #eee8ff; color: #7953d8; }
.metric-icon .ui-icon { width: 19px; height: 19px; }
.metric-calendar .metric-icon { background: #e0f4ea; color: #287f5d; }
.metric-pin .metric-icon { background: #fff0e2; color: #b76b27; }
.metric-wallet .metric-icon { background: #e8edff; color: #5770c4; }
.metric-pin strong { font-size: 15px; letter-spacing: -.2px; line-height: 1.45; }
.metric-wallet strong { font-size: 22px; }
.metric-decoration { position: absolute; width: 95px; height: 95px; right: -38px; bottom: -58px; border-radius: 50%; border: 12px solid #f3f0fc; }
.metric-calendar .metric-decoration { border-color: #eff8f3; }
.metric-pin .metric-decoration { border-color: #fdf5ed; }
.metric-wallet .metric-decoration { border-color: #f1f3fc; }

/* Three clear areas of the shared plan, with a compact mobile tab bar. */
.plan-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 8px; border: 1px solid #e7e3f0; background: #eeebf5; border-radius: 15px; margin-bottom: 21px; }
.plan-tabs button { display: flex; align-items: center; gap: 11px; min-height: 63px; border-radius: 10px; border: 0; background: transparent; color: #675d76; padding: 12px 15px; text-align: left; }
.plan-tabs button[aria-pressed=true] { color: #6142b9; background: #fff; box-shadow: 0 3px 10px #34244c0b; }
.tab-symbol { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: #7c709d; background: #e5e0ee; flex-shrink: 0; }
.plan-tabs [aria-pressed=true] .tab-symbol { color: #7254d9; background: #eee8ff; }
.tab-symbol .ui-icon { width: 18px; height: 18px; }
.tab-copy { display: grid; gap: 4px; }
.tab-copy b { font-size: 13px; }
.tab-copy small { color: #6a5e7a; font-size: 10px; line-height: 1.5; }
.tab-number { margin-left: auto; font-size: 17px; font-weight: 700; letter-spacing: -1px; color: #74617f; }
.plan-tabs [aria-pressed=true] .tab-number { color: #7856bb; }
.plan-area { scroll-margin-top: 80px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 4px 20px #28214304; }
.plan-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.eyebrow { display: block; color: #77708c; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; line-height: 1.6; }
.plan-section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: #292940; font-size: 21px; letter-spacing: -.6px; line-height: 1.4; }
.plan-section-heading h2 > .ui-icon { color: #8a6bd1; width: 21px; height: 21px; }
.plan-calendar-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(285px,1fr); gap: 17px; align-items: start; }
.segmented { display: flex; flex-shrink: 0; padding: 4px; border: 1px solid #eeebf5; background: #f5f3fa; border-radius: 10px; }
.segmented button { min-height: 32px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: #70667f; font-size: 11px; }
.segmented button[aria-pressed=true] { color: #6848c4; background: #fff; box-shadow: 0 2px 6px #2817470c; font-weight: 650; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.calendar-toolbar h3 { margin: 0; font-size: 18px; letter-spacing: -.4px; text-transform: capitalize; line-height: 1.5; }
.calendar-navigation { display: flex; align-items: center; gap: 5px; }
.icon-button, .today-button { display: inline-flex; align-items: center; justify-content: center; height: 35px; min-width: 35px; border: 1px solid #e9e5f0; border-radius: 8px; padding: 7px; color: #7a6b8c; background: #fff; }
.icon-button .ui-icon { width: 14px; height: 14px; }
.icon-button.prev .ui-icon { transform: rotate(180deg); }
.today-button { font-size: 10px; padding: 6px 10px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.calendar-weekdays { padding-bottom: 13px; color: #726783; font-size: 11px; font-weight: 650; text-align: center; }
.calendar-weekdays > span:last-child { color: #a45372; }
.calendar-cell { position: relative; min-width: 0; }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: start; position: relative; width: 100%; height: 100%; min-height: 76px; padding: 12px 2px; border: 1px solid #efecf5; border-radius: 11px; background: #fff; color: #454156; }
.calendar-day:hover { background: #f7f3ff; border-color: #bca9ed; transform: translateY(-2px); }
.calendar-day.outside { color: #74687f; background: #faf9fc; }
.calendar-day.popular { border-color: #c6e8d7; background: #eef9f3; }
.calendar-day.is-today .day-number { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.calendar-day[aria-pressed=true] { background: #7655df; color: #fff; border-color: #7655df; box-shadow: 0 4px 10px #7655df29; }
.day-number { font-size: 15px; font-weight: 650; line-height: 1.3; }
.day-counts { position: absolute; bottom: 12px; left: 2px; right: 2px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 9px; line-height: 1; pointer-events: none; }
.day-counts > span { display: flex; align-items: center; gap: 2px; }
.day-counts i, .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b0a6c1; flex-shrink: 0; }
.count-free { color: #267752; }.count-maybe { color: #8b641b; }.count-busy { color: #a34868; }
.count-free i, .dot.free { background: #35a775; }.count-maybe i, .dot.maybe { background: #dcaa3f; }.count-busy i, .dot.busy { background: #d16f91; }
.calendar-cell:has([aria-pressed=true]) .day-counts > span { color: #fff; }
.calendar-cell:has([aria-pressed=true]) .count-free i { background: #b0f5cb; }
.calendar-cell:has([aria-pressed=true]) .count-maybe i { background: #ffe5a0; }
.calendar-cell:has([aria-pressed=true]) .count-busy i { background: #ffb7cc; }
.no-response { position: absolute; bottom: 10px; left: 0; right: 0; font-size: 12px; color: #a197af; text-align: center; pointer-events: none; }
.calendar-cell:has([aria-pressed=true]) .no-response { color: #e3d5ff; }
.popular-mark { position: absolute; top: 5px; right: 6px; color: #569d75; font-size: 8px; pointer-events: none; }
.calendar-cell:has([aria-pressed=true]) .popular-mark { color: #d5f9cb; }
.calendar-legend { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin: 17px 0 0; color: #71677d; font-size: 10px; }
.calendar-legend > span { display: flex; align-items: center; gap: 5px; }
.best-day { display: flex; align-items: center; gap: 11px; padding: 15px; margin-top: 20px; background: #eff8f3; border: 1px solid #dceee3; border-radius: 12px; }
.best-day > .ui-icon { width: 24px; height: 24px; color: #498563; }
.best-day > div { display: grid; gap: 5px; flex: 1; min-width: 0; }
.best-day b { color: #2e6448; font-size: 12px; line-height: 1.5; }
.best-day span { color: #577463; font-size: 10px; line-height: 1.5; }
.best-day .btn.secondary { background: #fff; color: #3d7253; font-size: 10px; min-height: 34px; padding: 7px 10px; border: 1px solid #cddfd4; }

/* Responses are readable at a glance, including names that happen to match. */
.day-roster { border-top: 3px solid #a48ae8; padding: 23px 21px; }
.day-roster .plan-section-heading { margin-bottom: 18px; }
.day-roster .plan-section-heading h2 { font-size: 23px; letter-spacing: -.8px; }
.response-ratio { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 57px; height: 57px; border-radius: 50%; background: conic-gradient(#8662dd var(--response,0%),#eee9f7 0); color: #6945ac; font-size: 14px; font-weight: 750; }
.response-ratio::before { content: ""; position: absolute; z-index: -1; inset: 4px; border-radius: 50%; background: #fff; }
.response-ratio small { font-size: 8px; font-weight: 500; margin-top: 1px; color: #6f617e; }
.day-roster .field { font-size: 13px; color: #65516f; border-color: #e9e3ef; background: #fbfafc; min-height: 43px; }
.my-availability { margin: 22px 0 5px; padding-bottom: 20px; border-bottom: 1px solid #edeaf3; }
.my-availability > p { margin: 0 0 11px; color: #50445e; font-size: 13px; font-weight: 700; }
.availability-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 10px; }
.availability { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e8e2ee; border-radius: 9px; min-height: 43px; font-size: 11px; color: #71607e; background: #fff; padding: 8px 3px; }
.availability.free[aria-pressed=true] { background: #e4f5eb; border-color: #75bc91; color: #246e45; box-shadow: 0 0 0 1px #75bc9133; }
.availability.maybe[aria-pressed=true] { background: #fff4da; border-color: #d7b25a; color: #866018; box-shadow: 0 0 0 1px #d7b25a33; }
.availability.busy[aria-pressed=true] { background: #fde9ef; border-color: #da94aa; color: #994962; box-shadow: 0 0 0 1px #da94aa33; }
.my-availability > .small { color: #7b6f85; font-size: 10px; line-height: 1.6; }
.roster-list { display: grid; }
.roster-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #f2eff6; }
.roster-person .plan-avatar, .roster-person .avatar { width: 35px; height: 35px; flex-shrink: 0; }
.plan-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; font-size: 11px; font-weight: 750; background: #e7ddfa; color: #6d42a5; }
.plan-avatar.tone-1 { background: #fbe1d1; color: #934b28; }.plan-avatar.tone-2 { background: #d8eee6; color: #2f6e55; }
.plan-avatar.tone-3 { background: #dee7fc; color: #4a65a1; }.plan-avatar.tone-4 { background: #f6dfe9; color: #924167; }
.roster-person b { display: block; font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.roster-person b > .small { font-size: 10px; font-weight: 400; }
.roster-role { display: block; margin-top: 2px; color: #7e6e8b; font-size: 9px; }
.availability-label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; font-size: 9px; flex-shrink: 0; white-space: nowrap; color: #756782; background: #f4f1f7; }
.availability-label.free { color: #26724c; background: #edf7f0; }.availability-label.maybe { color: #8e681f; background: #fff6e1; }.availability-label.busy { color: #a34d6a; background: #fdf0f4; }
.availability-label.unknown { padding: 5px 0; background: none; font-size: 8px; }
.planning-hub .helper { font-size: 11px; color: #71657e; line-height: 1.75; }
.day-roster .helper { font-size: 10px; margin: 17px 0 0; }
.planning-hub .muted { color: #70627d; }
.plan-feedback { padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.65; background: #edf7f0; color: #3f6e4e; }
.plan-feedback.error { color: #a64967; background: #fff0f4; }.plan-feedback.saving { color: #7353a4; background: #f0ebfb; }

/* The two expandable sections have distinct color accents and useful previews. */
.plan-bottom-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; margin-top: 20px; align-items: start; }
.plan-collapsible { position: relative; overflow: hidden; border-top: 3px solid #f4ba8d; }
#plan-area-costs { border-top-color: #9bafe9; }
.plan-collapsible > .plan-section-heading { margin-bottom: 0; }
.plan-collapsible .plan-area-body { padding-top: 25px; }
.plan-collapsible[data-expanded=false] .plan-area-body { display: none; }
.expand-button { display: flex; align-items: center; gap: 8px; border: 1px solid #e8e1f0; border-radius: 9px; background: #f9f7fc; color: #7d6393; min-height: 39px; padding: 9px 11px; font-size: 10px; flex-shrink: 0; }
.expand-button .ui-icon { width: 14px; height: 14px; }
.expand-button[aria-expanded=true] .ui-icon { transform: rotate(180deg); }
.section-intro { font-size: 14px; color: #6e627b; line-height: 1.75; margin: 0 0 23px; }
.places-workspace { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 20px; align-items: start; }
.place-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.place-card { min-width: 0; overflow: hidden; border: 1px solid #e6e0ee; background: #fff; border-radius: 15px; box-shadow: 0 5px 14px #32204406; }
.place-card.leading { border-color: #cdb9e9; box-shadow: 0 5px 20px #7855b30c; }
.place-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px #32204412; }
.place-cover { height: 125px; position: relative; overflow: hidden; isolation: isolate; background: #e5dcf5; }
.place-cover.cover-1 { background: #dbebe4; }.place-cover.cover-2 { background: #f7dfce; }
.cover-orbit { position: absolute; width: 160px; height: 160px; border: 1px solid #b6a1d9; border-radius: 35%; transform: rotate(-28deg); z-index: -1; }
.orbit-one { top: -85px; left: -10px; box-shadow: 0 0 0 20px #c7b8e326,0 0 0 40px #c7b8e321; }
.orbit-two { bottom: -120px; right: -30px; border-radius: 50%; box-shadow: 0 0 0 20px #c7b8e326,0 0 0 40px #c7b8e321; }
.cover-1 .cover-orbit { border-color: #a0c3b2; box-shadow: 0 0 0 20px #a7c8b726,0 0 0 40px #a7c8b721; }
.cover-2 .cover-orbit { border-color: #d4ac8e; box-shadow: 0 0 0 20px #debaa026,0 0 0 40px #debaa021; }
.cover-pin { position: absolute; width: 54px; height: 54px; border: 1px solid #ffffffaf; background: #ffffff9c; border-radius: 18px; transform: rotate(-9deg); display: grid; place-items: center; top: 34px; left: calc(50% - 27px); color: #9371c3; box-shadow: 0 5px 12px #45314e0c; }
.cover-pin .ui-icon { width: 27px; height: 27px; }.cover-1 .cover-pin { color: #568c70; }.cover-2 .cover-pin { color: #b37e57; }
.place-number { position: absolute; left: 13px; bottom: 10px; font-size: 8px; font-weight: 750; letter-spacing: 1px; color: #69527e; }
.leading-badge { position: absolute; right: 10px; top: 10px; border: 1px solid #ffffff80; background: #fff9; color: #6b458c; font-size: 8px; font-weight: 650; border-radius: 6px; padding: 5px 7px; }
.place-card-body { padding: 17px 16px 13px; }
.place-card h3 { font-size: 16px; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; color: #393047; }
.place-description { font-size: 12px; color: #796a86; line-height: 1.75; margin: 0 0 12px; overflow-wrap: anywhere; }
.place-author { font-size: 10px; line-height: 1.6; margin: 0 0 15px; overflow-wrap: anywhere; }
.place-voters { display: flex; align-items: center; gap: 8px; min-height: 25px; }
.place-voters > span { color: #7d6c8a; font-size: 9px; }
.voter-avatar-stack > * { width: 24px; height: 24px; border: 2px solid #fff; margin-left: -5px; }
.voter-avatar-stack .plan-avatar { font-size: 7px; }
.place-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #f0eaf5; }
.place-card-footer > .small { font-size: 9px; }
.map-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; font-size: 10px; text-decoration: none; color: #806399; }
.map-link .ui-icon { width: 14px; height: 14px; }
.vote-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; background: #f8f5fc; color: #795793; border: 1px solid #e8dfee; border-radius: 8px; padding: 8px 10px; font-size: 11px; }
.vote-button .ui-icon { width: 14px; height: 14px; }
.vote-button.voted { border-color: #7c56c3; background: #805cc5; color: #fff; }
.proposal-panel { padding: 22px 18px; border: 1px solid #eae3f2; background: #f9f6fd; border-radius: 14px; }
.proposal-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #e9ddfa; color: #8865b6; border-radius: 11px; margin-bottom: 13px; }
.proposal-panel > h3 { font-size: 17px; margin: 0 0 9px; color: #5a3f6f; letter-spacing: -.3px; }
.proposal-panel > p { font-size: 12px; line-height: 1.7; color: #7c658f; margin: 0 0 20px; }
.plan-form { display: grid; gap: 14px; }
.plan-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 600; color: #715b82; line-height: 1.5; min-width: 0; }
.plan-form .field { font-size: 13px; font-weight: 400; min-height: 43px; border: 1px solid #e5dcea; border-radius: 9px; color: #4f3c5f; background: #fff; }
.plan-form .field::placeholder { color: #8c7c97; }
.plan-form .field:focus { border-color: #ac8fd5; box-shadow: 0 0 0 3px #c2a6e921; }
.plan-form .textarea { min-height: 90px; }
.plan-form > .btn { font-size: 12px; }
.plan-empty { display: grid; place-items: center; gap: 12px; padding: 45px 20px; border: 1px dashed #d8cbe6; background: #fbf9fd; border-radius: 14px; text-align: center; grid-column: 1/-1; }
.plan-empty > .ui-icon { width: 32px; height: 32px; color: #9b7cbc; }
.plan-empty > b { color: #725389; font-size: 16px; }
.plan-empty > p { color: #7e698e; font-size: 13px; margin: 0; line-height: 1.7; }

/* Expense figures keep the existing split calculation and history. */
.expense-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 23px; }
.expense-metrics > div { position: relative; overflow: hidden; border: 1px solid #dce5f5; border-radius: 13px; padding: 20px; display: grid; gap: 9px; background: #f0f5fd; }
.expense-metrics > div:first-child { background: #6750aa; border-color: #6750aa; }
.expense-metrics > div:first-child::after { content: ""; position: absolute; right: -30px; top: -45px; width: 140px; height: 140px; border: 18px solid #ffffff0a; border-radius: 50%; }
.expense-metrics span { color: #596b88; font-size: 12px; }
.expense-metrics strong { font-size: 24px; color: #4e638b; letter-spacing: -.7px; line-height: 1.4; overflow-wrap: anywhere; }
.expense-metrics strong small { font-size: 13px; font-weight: 400; }
.expense-metrics > div:first-child span { color: #ebe1ff; }.expense-metrics > div:first-child strong { color: #fff; }
.expense-form { padding: 22px; margin-bottom: 25px; background: #faf8fc; border: 1px solid #ece5f2; border-radius: 14px; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto; align-items: end; }
.expense-form > .helper { grid-column: 1/-1; margin: 0; }
.expense-form > .btn { min-height: 43px; }
.subheading { font-size: 16px; color: #574367; margin: 25px 0 16px; letter-spacing: -.3px; }
.expense-list { display: grid; gap: 12px; }
.expense-item { border: 1px solid #e9e1f0; border-radius: 13px; padding: 18px 20px; min-width: 0; }
.expense-item-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.expense-item-header > div { min-width: 0; }
.expense-item-header b { display: block; font-size: 15px; line-height: 1.5; color: #51405f; overflow-wrap: anywhere; }
.expense-item-header p { color: #7d6a89; font-size: 11px; margin: 7px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.expense-item-header > .money { font-size: 19px; letter-spacing: -.5px; color: #7856a0; max-width: 44%; overflow-wrap: anywhere; flex-shrink: 0; text-align: right; }
.expense-split { border-top: 1px solid #f1eaf6; margin-top: 13px; padding-top: 10px; }
.expense-split summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-size: 12px; min-height: 32px; color: #876b9a; }
.expense-split summary::-webkit-details-marker { display: none; }
.expense-split summary span { display: flex; align-items: center; gap: 7px; text-align: right; line-height: 1.6; }
.expense-split summary .ui-icon { width: 14px; height: 14px; }
.expense-split[open] summary .ui-icon { transform: rotate(180deg); }
.expense-split dl { display: grid; gap: 9px; margin: 15px 0 0; padding: 14px; background: #faf7fc; border-radius: 9px; font-size: 12px; }
.expense-split dl > div { display: flex; justify-content: space-between; gap: 15px; line-height: 1.7; }
.expense-split dt { color: #7a618c; overflow-wrap: anywhere; }.expense-split dd { color: #715482; margin: 0; flex-shrink: 0; }
.balance-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.balance-heading .small { font-size: 11px; color: #7d6a89; }
.balance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.balance-card { display: grid; gap: 8px; padding: 17px; background: #f6f2fa; border: 1px solid #ece3f2; border-radius: 12px; }
.balance-card > span { color: #725585; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.balance-card b { color: #73518c; font-size: 21px; line-height: 1.4; letter-spacing: -.6px; overflow-wrap: anywhere; }
.balance-card small { color: #7b618d; font-size: 11px; }
.balance-card.positive { border-color: #daebde; background: #f0f8f2; }.balance-card.positive b { color: #31764b; }
.balance-card.negative { border-color: #f1dfea; background: #fcf2f7; }.balance-card.negative b { color: #a14f7b; }
.plan-scope { color: #736180; font-size: 11px; text-align: center; margin: 25px 0 0; line-height: 1.75; }

/* Subtle interaction, readable focus states and loading placeholders. */
.planning-hub button, .planning-hub a, .place-card, .navbtn { transition: background .18s,box-shadow .18s,transform .18s,border-color .18s; }
.planning-hub button:focus-visible, .planning-hub a:focus-visible, .expense-split summary:focus-visible, .navbtn:focus-visible { outline: 3px solid #c1a2ed; outline-offset: 3px; }
.icon-button:hover, .today-button:hover, .expand-button:hover { background: #f3edf9; border-color: #ceb9e3; }
.plan-skeleton { display: grid; gap: 14px; padding: 20px 0; }
.plan-skeleton > span:not(.sr-only) { height: 27px; border-radius: 9px; background: linear-gradient(90deg,#f5f0fa 25%,#e9ddf3 50%,#f5f0fa 75%); background-size: 200% 100%; animation: plan-shimmer 1.5s infinite; }
.plan-skeleton > span:first-child { width: 60%; }.plan-skeleton > span:nth-child(2) { height: 170px; }.plan-skeleton > span:nth-child(3) { width: 80%; }
@keyframes plan-shimmer { to { background-position: -200% 0; } }
@keyframes plan-enter { from { transform: translateY(4px); } to { transform: none; } }

@media(min-width:901px) {
  .plan-bottom-grid:has(> .plan-area[data-expanded=true]) { grid-template-columns: minmax(0,1fr); }
}
@media(min-width:901px) and (max-width:1250px) {
  .layout { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .navbtn { font-size: 11px; gap: 7px; padding: 11px 9px; }.nav-copy small { font-size: 8px; }
  .nav-icon { width: 30px; }.navbtn > .ui-icon { display: none; }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .plan-calendar-layout { grid-template-columns: minmax(0,1fr); }
  .roster-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .plan-hero-art { width: 280px; right: 0; top: 65px; }.hero-date-card { left: 103px; width: 126px; }
  .plan-hero-copy { max-width: calc(100% - 240px); }
  .plan-heading h1 { font-size: 29px; }.plan-heading h1 > span { font-size: 34px; }
  .planning-hub .manage-participants { left: calc(100% + 25px); }
  .hero-people > span { max-width: 150px; }
  .places-workspace { grid-template-columns: minmax(0,1fr); }.proposal-panel .plan-form { grid-template-columns: 1fr 1fr; }
  .proposal-panel .plan-description-field { grid-column: 1/-1; }.proposal-panel .btn { grid-column: 1/-1; justify-self: start; }
  .plan-tabs button { gap: 8px; padding: 10px; }.tab-copy small { display: none; }
  .expense-form { grid-template-columns: 1.5fr 1fr; }.expense-form > .btn { grid-column: 1/-1; justify-self: start; }
  .plan-bottom-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:900px) {
  .app-shell { padding: 14px; }.top { padding: 13px 16px; }
  .layout { display: block; }.workspace-title { margin: 23px 0 18px; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; padding: 7px; margin-bottom: 21px; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
  .sidebar-label, .sidebar-note, .nav-copy small, .navbtn > .ui-icon { display: none; }
  .sidebar .navbtn { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 100%; min-height: 69px; color: #756282; text-align: center; padding: 10px 4px; margin: 0; white-space: normal; font-size: 11px; line-height: 1.4; }
  .nav-icon { height: 23px; width: 26px; background: transparent; color: #8d76a2; border-radius: 0; }
  .sidebar .navbtn.active { color: #fff; background: #7954d3; }.navbtn.active .nav-icon { background: transparent; }
  .plan-heading { padding: 28px; }.plan-hero-art { right: 0; }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .overview-metric { padding: 19px; }.overview-metric strong { font-size: 30px; }.metric-pin strong { font-size: 19px; }.metric-wallet strong { font-size: 26px; }
  .plan-calendar-layout { grid-template-columns: minmax(0,1fr); }.calendar-day { min-height: 88px; }
  .plan-tabs { position: sticky; z-index: 5; top: 0; backdrop-filter: blur(14px); background: #eeebf5eb; padding: 6px; gap: 5px; margin-bottom: 18px; }
  .plan-tabs button { min-height: 56px; padding: 10px 12px; }.tab-copy small, .tab-number { display: none; }
  .plan-area[data-active=false] { display: none; }.plan-bottom-grid { display: contents; }
  .plan-collapsible .plan-area-body { display: block !important; }.plan-collapsible .expand-button { display: none; }
  .day-roster { padding: 24px; }.roster-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .roster-person b { font-size: 13px; }.availability-label { font-size: 10px; }.availability-label.unknown { font-size: 9px; }
  .availability { min-height: 46px; font-size: 13px; }.my-availability > .small { font-size: 11px; }
  .places-workspace { grid-template-columns: minmax(0,1fr); }.proposal-panel .plan-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proposal-panel .plan-description-field { grid-column: 1/-1; }.proposal-panel .btn { grid-column: 1/-1; justify-self: start; }
  .map-link, .vote-button { min-height: 43px; }.icon-button, .today-button { height: 41px; min-width: 38px; }
  .plan-form .field { min-height: 45px; }.place-card h3 { font-size: 18px; }
  .expense-form { grid-template-columns: 1.5fr 1fr; }.expense-form > .btn { grid-column: 1/-1; justify-self: start; }
}
@media(max-width:600px) {
  .app-shell { padding: 11px; }.top { padding: 12px; border-radius: 13px; gap: 8px; }
  .brand { font-size: 22px; gap: 9px; }.brand-icon { width: 35px; height: 35px; border-radius: 11px; }.brand-icon .ui-icon { width: 23px; height: 23px; }
  .brand small { display: none; }.userbar { gap: 8px; }.userbar .avatar { width: 30px; height: 30px; }
  .userbar .useremail { display: none; }.userbar .smallbtn { font-size: 10px; padding: 8px 9px; }
  .workspace-title { margin: 20px 0 17px; gap: 11px; }.workspace-title h1 { font-size: 23px; }#roomRole { font-size: 9px; }
  .workspace-title .badge { font-size: 10px; padding: 6px 8px; }.workspace-title .smallbtn { font-size: 10px; padding: 6px 9px; }
  .sidebar { gap: 4px; padding: 6px; margin-bottom: 18px; }.sidebar .navbtn { min-height: 68px; font-size: 10px; padding: 8px 3px; }
  .plan-heading { border-radius: 17px; padding: 24px 22px 22px; margin-bottom: 22px; }
  .plan-hero-copy { max-width: 100%; }.hero-kicker { font-size: 9px; padding: 5px 7px; letter-spacing: .6px; }
  .plan-heading h1 { font-size: 27px; margin-top: 15px; letter-spacing: -.7px; }.plan-heading h1 > span { font-size: 33px; letter-spacing: -1.2px; margin-top: 5px; }
  .plan-heading p { font-size: 12px; line-height: 1.7; max-width: 230px; margin-bottom: 15px; }
  .plan-hero-art { opacity: .15; width: 220px; height: 190px; top: 5px; right: -75px; }.hero-date-card, .hero-sticker { display: none; }
  .hero-people { display: inline-flex; vertical-align: middle; margin-right: 10px; }.hero-people > span { display: none; }
  .hero-avatar-stack > * { width: 26px; height: 26px; }
  .planning-hub .manage-participants { position: static; display: inline-flex; vertical-align: middle; min-height: 35px; font-size: 9px; padding: 8px 9px; }
  .manage-participants .ui-icon { width: 12px; height: 12px; }.manage-participants .ui-icon:last-child { display: none; }
  .overview-date { align-items: start; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }.overview-label { font-size: 16px; }.selected-date-pill { font-size: 10px; }
  .overview-grid { gap: 9px; }.overview-metric { display: flex; gap: 9px; padding: 15px 12px; border-radius: 12px; }
  .metric-icon { width: 27px; height: 29px; border-radius: 9px; }.metric-icon .ui-icon { width: 15px; height: 15px; }
  .overview-metric > div { gap: 6px; }.overview-metric > div > span { font-size: 10px; }.overview-metric small { font-size: 10px; }
  .overview-metric strong { font-size: 27px; line-height: 1.25; }.metric-pin strong { font-size: 13px; line-height: 1.5; letter-spacing: -.2px; }.metric-wallet strong { font-size: 18px; }
  .plan-tabs { border-radius: 12px; padding: 5px; }.plan-tabs button { padding: 10px 8px; gap: 7px; min-height: 47px; border-radius: 8px; }
  .tab-symbol { background: transparent; width: 19px; height: 20px; }.plan-tabs [aria-pressed=true] .tab-symbol { background: transparent; }.tab-symbol .ui-icon { width: 17px; height: 17px; }.tab-copy b { font-size: 12px; }
  .plan-card { padding: 20px 14px; border-radius: 15px; }.plan-section-heading { gap: 8px; margin-bottom: 20px; }.plan-section-heading h2 { font-size: 18px; letter-spacing: -.4px; }.eyebrow { font-size: 8px; letter-spacing: .7px; }
  .calendar-card .plan-section-heading { align-items: start; }.calendar-card .plan-section-heading h2 { max-width: 170px; font-size: 20px; }
  .segmented { padding: 3px; border-radius: 8px; }.segmented button { font-size: 10px; min-height: 30px; padding: 6px 8px; }
  .calendar-toolbar { gap: 7px; margin-bottom: 19px; }.calendar-toolbar h3 { font-size: 15px; }
  .calendar-navigation { gap: 3px; }.icon-button, .today-button { height: 38px; min-width: 30px; border-radius: 7px; }.today-button { font-size: 9px; padding: 6px 7px; }
  .calendar-grid, .calendar-weekdays { gap: 3px; }.calendar-weekdays { font-size: 10px; padding-bottom: 11px; }
  .calendar-day { min-height: 69px; padding-top: 12px; border-radius: 8px; }.day-number { font-size: 14px; }.day-counts { bottom: 11px; font-size: 8px; gap: 2px; }.day-counts i { width: 4px; height: 4px; }.popular-mark { top: 3px; right: 3px; font-size: 6px; }
  .calendar-legend { font-size: 9px; gap: 11px; line-height: 1.6; }.best-day { gap: 9px; padding: 13px 11px; flex-wrap: wrap; }.best-day > .ui-icon { width: 20px; }.best-day b { font-size: 11px; }.best-day span { font-size: 10px; }.best-day > div { min-width: 180px; }.best-day .btn { margin-left: 29px; }
  .day-roster { padding: 22px 18px; }.day-roster .plan-section-heading h2 { font-size: 25px; }.roster-list { grid-template-columns: minmax(0,1fr); gap: 0; }
  .roster-person { padding: 14px 0; gap: 11px; }.roster-person b { font-size: 14px; }.roster-person .plan-avatar, .roster-person .avatar { width: 37px; height: 37px; }
  .availability-label { font-size: 10px; padding: 6px 8px; }.availability-label.unknown { font-size: 9px; }.roster-role { font-size: 10px; }
  .day-roster .field, .planning-hub .plan-form .field { font-size: 16px; }.my-availability > p { font-size: 14px; }.my-availability > .small, .day-roster .helper { font-size: 11px; }
  .section-intro { font-size: 13px; margin-bottom: 19px; }.place-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .place-cover { height: 145px; }.cover-pin { width: 58px; height: 58px; top: 38px; }.place-number { font-size: 9px; left: 16px; bottom: 13px; }.leading-badge { font-size: 10px; }
  .place-card-body { padding: 19px 17px 15px; }.place-card h3 { font-size: 19px; }.place-description { font-size: 13px; }.place-author { font-size: 11px; }.place-voters > span { font-size: 11px; }
  .place-card-footer > .small, .map-link { font-size: 11px; }.vote-button { font-size: 12px; }
  .proposal-panel { padding: 22px 18px; }.proposal-panel .plan-form { grid-template-columns: minmax(0,1fr); }.proposal-panel > h3 { font-size: 20px; }.proposal-panel > p { font-size: 13px; }.plan-form label { font-size: 12px; }.proposal-panel .btn { width: 100%; }
  .expense-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.expense-metrics > div { padding: 15px; }.expense-metrics > div:first-child { grid-column: 1/-1; padding: 20px; }.expense-metrics > div:first-child strong { font-size: 32px; }
  .expense-metrics strong { font-size: 19px; }.expense-metrics span { font-size: 10px; }
  .expense-form { grid-template-columns: minmax(0,1fr); padding: 18px; gap: 17px; }.expense-form > .btn { width: 100%; }
  .expense-item { padding: 16px; }.expense-item-header { gap: 12px; }.expense-item-header b { font-size: 14px; }.expense-item-header p { font-size: 10px; }.expense-item-header > .money { font-size: 15px; }
  .expense-split summary { font-size: 10px; min-height: 39px; }.expense-split dl { font-size: 11px; padding: 12px; }
  .balance-heading { flex-wrap: wrap; align-items: start; gap: 0; margin-bottom: 12px; }.balance-heading .subheading { margin-bottom: 6px; }.balance-heading .small { font-size: 10px; }
  .balance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.balance-card { padding: 15px 12px; }.balance-card > span { font-size: 11px; }.balance-card b { font-size: 17px; }.balance-card small { font-size: 10px; }
  .plan-scope { font-size: 10px; margin-top: 22px; }.foot { font-size: 10px; margin-top: 25px; }
}
@media(max-width:360px) {
  .plan-heading { padding: 21px 18px; }.plan-heading h1 { font-size: 24px; }.plan-heading h1 > span { font-size: 29px; }
  .hero-avatar-stack > * { width: 23px; height: 23px; }.hero-people { margin-right: 4px; }.planning-hub .manage-participants { font-size: 8px; padding: 7px; gap: 4px; }
  .overview-metric { padding: 13px; }.metric-wallet strong { font-size: 17px; }
  .calendar-card .plan-section-heading h2 { font-size: 17px; max-width: 140px; }.calendar-day { min-height: 67px; }.day-number { font-size: 13px; }.day-counts { font-size: 7px; gap: 2px; }
  .calendar-toolbar h3 { font-size: 12px; }.segmented button { font-size: 9px; padding: 5px 7px; }.calendar-legend { gap: 8px; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .planning-hub, .plan-skeleton > span { animation: none !important; }
  .planning-hub button, .planning-hub a, .place-card, .navbtn { transition: none; }
  .calendar-day:hover, .place-card:hover { transform: none; }
}
