/* Group plans: corner button, Plans panel, plan card, votes and chat (main site and /p/<token>). */
:root { --lcp-ink: #14284B; --lcp-soft: #5B6B82; --lcp-line: #E3E9EF; --lcp-green: #1E6B47; --lcp-blue: #2F6FB8; --lcp-bg: #F6F8FB; }

/* Corner button */
.lcp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px;
  background: linear-gradient(115deg, #14284B, #2C4E85); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(20, 40, 75, .65); transition: transform .18s ease, box-shadow .18s ease; }
.lcp-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(20, 40, 75, .7); }
.lcp-fab-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 17px; }
.lcp-fab small { display: block; font-size: 11.5px; font-weight: 600; opacity: .8; }
.lcp-fab[hidden] { display: none; }
@media (max-width: 640px) { .lcp-fab { right: 12px; bottom: 12px; padding: 10px 14px 10px 10px; font-size: 14px; } .lcp-fab small { display: none; } }

/* Panel (main site) */
.lcp-dialog { width: min(640px, calc(100vw - 16px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--lcp-bg); color: var(--lcp-ink); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); }
.lcp-dialog[open] { display: flex; flex-direction: column; animation: lcp-in .25s cubic-bezier(.2, .8, .2, 1); }
.lcp-dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
@keyframes lcp-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lcp-dhead { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(115deg, #14284B, #2C4E85 60%, #2F6FB8); color: #fff; flex: none; }
.lcp-dhead h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 600; color: #fff; }
.lcp-dhead p { margin: 0; font-size: 13px; opacity: .85; }
.lcp-dhead-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 24px; flex: none; }
.lcp-close { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lcp-close:hover { background: rgba(255, 255, 255, .32); }
.lcp-close:focus { outline: none; } .lcp-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lcp-dbody { padding: 16px 18px 20px; overflow-y: auto; flex: 1 1 auto; }

/* Shared bits */
.lcp-bar { margin-bottom: 10px; }
.lcp-bar:empty { display: none; }
.lcp-back { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--lcp-blue); cursor: pointer; }
.lcp-wait, .lcp-hint { color: var(--lcp-soft); font-size: 14px; margin: 6px 0; }
.lcp-err { color: #B91C1C; }
.lcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--lcp-green); color: #fff !important; font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: filter .15s; }
.lcp-btn:hover { filter: brightness(1.08); }
.lcp-btn:disabled { opacity: .6; cursor: default; }
.lcp-ghost { background: #fff; color: var(--lcp-ink) !important; box-shadow: inset 0 0 0 1px var(--lcp-line); }
.lcp-link { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--lcp-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lcp-danger { color: #B91C1C; }
.lcp-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
h4 { margin: 0 0 8px; }
.lcp-body h4, .lcp-list h4 { font-size: 15px; color: var(--lcp-ink); }

/* Plan card */
.lcp-card { position: relative; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 26px -16px rgba(15, 23, 42, .35); overflow: hidden; }
.lcp-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #2F6FB8, #1E6B47); }
.lcp-card.lcp-evening::before { background: linear-gradient(90deg, #4C34C4, #2F6FB8); }
.lcp-card.lcp-dinner::before { background: linear-gradient(90deg, #E0612E, #D9366B); }
.lcp-card.lcp-golf::before, .lcp-card.lcp-hike::before { background: linear-gradient(90deg, #1E6B47, #3FA765); }
.lcp-card.lcp-game::before { background: linear-gradient(90deg, #A23CC8, #E46FB2); }
.lcp-card.is-off { opacity: .7; }
.lcp-card-head { display: flex; align-items: center; gap: 12px; }
.lcp-emoji { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 15px; background: #EEF3FA; font-size: 28px; }
.lcp-card-title { min-width: 0; }
.lcp-card-title h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 600; line-height: 1.15; color: var(--lcp-ink); }
.lcp-by { margin: 2px 0 0; font-size: 13px; color: var(--lcp-soft); }
.lcp-status { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; background: #FFF4D6; color: #8A5200; font-size: 12.5px; font-weight: 800; }
.is-set .lcp-status { background: #E3F3EC; color: var(--lcp-green); }
.is-off .lcp-status { background: #FDE2E2; color: #B91C1C; }
.lcp-note { margin: 12px 0 0; font-size: 15px; color: #334155; }
.lcp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lcp-fact { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--lcp-bg); min-width: 0; }
.lcp-fact-ico { font-size: 18px; line-height: 1.2; }
.lcp-fact-txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.lcp-fact-txt small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lcp-soft); }
.lcp-fact-txt strong, .lcp-fact-txt a { font-weight: 700; color: var(--lcp-ink); overflow-wrap: anywhere; }
.lcp-fact-txt a { text-decoration: underline; text-underline-offset: 2px; }
.lcp-spots { height: 8px; margin-top: 12px; border-radius: 999px; background: #E8EDF3; overflow: hidden; }
.lcp-spots span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1E6B47, #3FA765); transition: width .4s ease; }
.lcp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lcp-invite { background: linear-gradient(115deg, #2F6FB8, #4C8BD6); }
@media (max-width: 560px) { .lcp-facts { grid-template-columns: minmax(0, 1fr); } .lcp-status { display: none; } }

/* Join */
.lcp-join { margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #EEF3FA, #E3F3EC); }
.lcp-join h4 { font-size: 17px; }
.lcp-join-form { display: flex; gap: 8px; flex-wrap: wrap; }
.lcp-join-form input { flex: 1 1 180px; min-height: 42px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 12px; font: inherit; font-size: 15px; }

/* RSVP */
.lcp-rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.lcp-chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--lcp-line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--lcp-ink); cursor: pointer; transition: all .15s; }
.lcp-chip:hover { border-color: #B6C3D3; }
.lcp-chip.is-on { background: var(--lcp-green); border-color: var(--lcp-green); color: #fff; box-shadow: 0 4px 10px -4px rgba(30, 107, 71, .6); }

/* Votes */
.lcp-polls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 560px) { .lcp-polls { grid-template-columns: minmax(0, 1fr); } }
.lcp-poll { padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.lcp-opt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin-bottom: 6px; padding: 0 10px; border: 1px solid var(--lcp-line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; text-align: left; color: var(--lcp-ink); cursor: pointer; overflow: hidden; isolation: isolate; }
.lcp-opt:disabled { cursor: default; }
.lcp-opt-fill { position: absolute; inset: 0 auto 0 0; z-index: -1; background: #EAF1FA; transition: width .35s ease; }
.lcp-opt.is-on { border-color: var(--lcp-blue); }
.lcp-opt.is-on .lcp-opt-fill { background: #D9E7F8; }
.lcp-opt-check { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #94A3B8; font-size: 11px; font-weight: 900; color: #fff; }
.lcp-opt.is-on .lcp-opt-check { background: var(--lcp-blue); border-color: var(--lcp-blue); }
.lcp-opt-label { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.lcp-opt-votes { font-weight: 800; color: var(--lcp-blue); }
.lcp-add { display: flex; gap: 6px; margin-top: 4px; }
.lcp-add input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px dashed #B6C3D3; border-radius: 10px; font: inherit; font-size: 13.5px; background: var(--lcp-bg); }
.lcp-add-btn { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--lcp-blue); cursor: pointer; }

/* Organizer tools */
.lcp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px dashed #CBD5E1; }
.lcp-go { background: linear-gradient(115deg, #1E6B47, #3FA765); }
.lcp-tools .lcp-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; }

/* People */
.lcp-people { margin-top: 16px; }
.lcp-faces { display: flex; flex-wrap: wrap; gap: 8px; }
.lcp-face { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--lcp-line); font-size: 13.5px; font-weight: 600; }
.lcp-face small { font-size: 11.5px; color: var(--lcp-soft); font-weight: 700; }
.lcp-avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #CBD5E1; color: #fff; font-weight: 800; font-size: 13px; }
.lcp-in .lcp-avatar { background: var(--lcp-green); }
.lcp-maybe .lcp-avatar { background: #D99A1E; }
.lcp-out .lcp-avatar { background: #94A3B8; }
.lcp-x { border: 0; background: none; color: #94A3B8; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.lcp-x:hover { color: #B91C1C; }

/* Chat */
.lcp-chat { margin-top: 16px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.lcp-msgs { display: flex; flex-direction: column; gap: 6px; max-height: 340px; min-height: 120px; overflow-y: auto; padding: 6px 2px; overscroll-behavior: contain; }
.lcp-empty { margin: auto; color: var(--lcp-soft); font-size: 14px; }
.lcp-msg { display: flex; }
.lcp-msg.is-mine { justify-content: flex-end; }
.lcp-bubble { max-width: 78%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: #EEF2F7; font-size: 14.5px; line-height: 1.4; }
.is-mine .lcp-bubble { border-radius: 16px 16px 4px 16px; background: linear-gradient(115deg, #2F6FB8, #4C8BD6); color: #fff; }
.lcp-who { display: block; font-size: 12px; font-weight: 800; color: var(--lcp-blue); margin-bottom: 1px; }
.lcp-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.lcp-meta { display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; font-size: 11px; opacity: .65; }
.lcp-tiny { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; color: inherit; text-decoration: underline; cursor: pointer; opacity: 0; transition: opacity .15s; }
.lcp-msg:hover .lcp-tiny, .lcp-tiny:focus { opacity: 1; }
@media (hover: none) { .lcp-tiny { opacity: .8; } }
.lcp-say { display: flex; gap: 8px; margin-top: 8px; }
.lcp-say input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 999px; font: inherit; font-size: 15px; }
.lcp-say input:focus { outline: 2px solid var(--lcp-blue); outline-offset: 0; border-color: var(--lcp-blue); }
.lcp-send { min-width: 72px; border: 0; border-radius: 999px; background: var(--lcp-blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.lcp-send:disabled { opacity: .5; }
.lcp-rules { margin: 6px 0 0; font-size: 11.5px; color: var(--lcp-soft); }

/* Start a plan */
.lcp-form-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 600; }
.lcp-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.lcp-kind { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 10px; border: 1px solid var(--lcp-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--lcp-ink); cursor: pointer; text-align: left; transition: all .15s; }
.lcp-kind:hover { border-color: #B6C3D3; }
.lcp-kind.is-on { border-color: var(--lcp-blue); background: #EAF1FA; box-shadow: inset 0 0 0 1px var(--lcp-blue); }
.lcp-kind-emoji { font-size: 20px; }
@media (max-width: 480px) { .lcp-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lcp-field { display: block; margin-bottom: 12px; }
.lcp-field > span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: var(--lcp-ink); }
.lcp-field input { width: 100%; box-sizing: border-box; min-height: 42px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.lcp-field input:focus { outline: 2px solid var(--lcp-blue); outline-offset: 0; border-color: var(--lcp-blue); }
.lcp-multi { display: flex; flex-direction: column; gap: 6px; }
.lcp-more { align-self: flex-start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--lcp-blue); cursor: pointer; }
.lcp-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lcp-sug-chip { padding: 5px 10px; border: 1px solid var(--lcp-line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--lcp-ink); cursor: pointer; }
.lcp-sug-chip:disabled { opacity: .45; }
.lcp-create { width: 100%; min-height: 48px; font-size: 16px; background: linear-gradient(115deg, #14284B, #2F6FB8); }

/* My plans */
.lcp-list-head { margin-bottom: 12px; }
.lcp-start { width: 100%; min-height: 48px; font-size: 16px; background: linear-gradient(115deg, #1E6B47, #3FA765); }
.lcp-item { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 12px; border: 0; border-radius: 16px; background: #fff; font: inherit; text-align: left; color: var(--lcp-ink); cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: transform .15s, box-shadow .15s; }
.lcp-item:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .35); }
.lcp-item.is-off { opacity: .6; }
.lcp-item-emoji { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #EEF3FA; font-size: 24px; flex: none; }
.lcp-item-txt { display: flex; flex-direction: column; min-width: 0; }
.lcp-item-txt strong { font-size: 16px; }
.lcp-item-txt small { font-size: 12.5px; color: var(--lcp-soft); }
.lcp-item-arrow { margin-left: auto; color: var(--lcp-blue); font-weight: 800; }
.lcp-empty-state { padding: 22px 16px; border-radius: 18px; background: #fff; text-align: center; }
.lcp-empty-state h4 { font-size: 18px; margin: 4px 0 6px; }
.lcp-empty-state p { margin: 0; color: var(--lcp-soft); font-size: 14.5px; }
.lcp-big-emoji { font-size: 34px; letter-spacing: 6px; margin-bottom: 4px !important; }

/* Invite page (/p/<token>) */
.lcp-page { min-height: 100vh; background: linear-gradient(180deg, #EEF3EF, #F6F8FB 240px); }
.lcp-page-top { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 16px; }
.lcp-page-top a { display: inline-flex; align-items: center; gap: 8px; color: var(--lcp-ink); font-weight: 800; text-decoration: none; }
.lcp-page-top img { width: 34px; height: 34px; border-radius: 50%; }
.lcp-page-main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.lcp-promo { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(115deg, #14284B, #1E4F6B 55%, #1E6B47); color: #fff; }
.lcp-promo-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #F5B301, #E07B00); font-size: 22px; }
.lcp-promo p { margin: 0; font-size: 14px; opacity: .9; }
.lcp-promo strong { display: block; font-size: 16px; }
.lcp-promo a { margin-left: auto; flex: none; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--lcp-ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .lcp-promo { flex-wrap: wrap; } .lcp-promo a { margin-left: 0; width: 100%; text-align: center; } }

/* Keep these rows side by side whatever the site's general form styles say */
.lcp-add, .lcp-say, .lcp-join-form { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: stretch; }
.lcp-join-form { flex-wrap: wrap; }
.lcp-add input, .lcp-say input { width: auto !important; flex: 1 1 auto; margin: 0; }
.lcp-add-btn, .lcp-send { width: auto !important; flex: none; margin: 0; }
.lcp-send { padding: 0 18px; min-height: 44px; }
.lcp-promo, .lcp-promo * { box-sizing: border-box; }
.lcp-more-people { cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--lcp-blue); padding: 6px 12px; }
.lcp-faces { max-height: 260px; overflow-y: auto; }
/* Phones: keep the corner button clear of the iPhone home bar and Safari's bottom toolbar */
.lcp-fab { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .lcp-fab { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); } }
