/* Who’s Out coastal palette: cyan actions, teal navigation, coral accents and yellow highlights. */
:root {
  --lilac:var(--cyan-soft);
  --peach:var(--coral-soft);
  --playful-ease:cubic-bezier(.2,.8,.25,1);
}
body { background:var(--paper); }
::selection { color:var(--ink); background:var(--lime); }
button,.button,a { -webkit-tap-highlight-color:#10343b12; }
button:focus-visible,a:focus-visible { outline:3px solid var(--teal-deep); outline-offset:4px; }
.button { border:1px solid transparent; border-radius:14px; font-weight:750; transition:transform .18s var(--playful-ease),box-shadow .18s var(--playful-ease),background .18s,color .18s; }
.button-primary,.button-lime { background:var(--lime); color:var(--ink); border-color:var(--ink); box-shadow:0 3px 0 var(--ink); }
.button-secondary { background:#fff; color:var(--ink); border-color:var(--line); box-shadow:0 2px 0 #10343b0c; }
.button:not(:disabled):active { transform:translateY(3px); box-shadow:0 0 0 transparent; }
.button:disabled { box-shadow:none; cursor:default; }
.text-button,.auth-text-button { color:var(--ink); font-weight:700; text-underline-offset:4px; }
.button .icon { transition:transform .2s var(--playful-ease); }

/* Navigation: a quiet frame around the louder discovery canvas. */
.sidebar { background:var(--paper); border-color:var(--line); }
.sidebar-content { margin-top:40px; }
.primary-nav { gap:8px; }
.nav-link { position:relative; min-height:49px; border-radius:14px; color:var(--muted); font-weight:600; }
.nav-link.active { background:var(--teal-deep); color:#fff; box-shadow:0 3px 0 #10343b16; }
.nav-link.active .icon { color:var(--brand-yellow); }
.nav-count { background:var(--brand-yellow); color:var(--ink); border-radius:50%; font-weight:800; }
.nav-link.active .nav-count { background:var(--lime); color:var(--ink); }
.sidebar-create { min-height:50px; }
.topbar { min-height:82px; border-bottom:1px solid #d2e6e880; background:var(--paper); }
.location { gap:8px; }
.location>.icon { color:var(--ink); background:var(--lilac); border-radius:50%; width:32px; height:32px; padding:7px; }
.location strong { font-size:13px; }
.topbar-right { gap:16px; }
.help-button { color:var(--muted); font-weight:600; }
.account-button { background:var(--teal-deep); color:#fff; border:1px solid var(--ink); border-radius:100px; min-height:42px; padding:10px 17px; font-weight:700; }
.account-button:hover { background:var(--teal-deep); color:#fff; }
.notifications-button { background:#fff; border:1px solid var(--line); border-radius:50%; width:42px; height:42px; }
.notification-count { background:var(--brand-coral); color:var(--ink); border:2px solid var(--paper); font-weight:800; }
.guest-avatar { box-shadow:none; border:2px solid var(--ink); background:var(--peach); color:var(--ink); }
.mobile-create { border-radius:13px; background:var(--lime); color:var(--ink); border:1px solid var(--ink); box-shadow:0 2px 0 var(--ink); }
.main-content { padding-top:28px; }

/* Discovery controls: playful, but still recognizable as filters and actions. */
.discovery-shortcuts { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:24px 0 19px; }
.discovery-shortcuts:has(>.find-meeting-place[hidden]) { display:none; }
.discovery-shortcuts #nearby-controls { flex:1; min-width:240px; }
.discovery-shortcuts .nearby-controls { margin:0; }
.discovery-shortcuts .find-meeting-place { display:inline-flex; align-items:center; gap:8px; min-height:46px; padding:10px 15px; margin:0; background:var(--lilac); border:1px solid #006c7040; border-radius:14px; color:var(--ink); font-size:13px; font-weight:700; }
.nearby-controls .button { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:14px; }
.nearby-controls.is-active .nearby-locate { background:var(--lime); color:var(--ink); border-color:var(--ink); }
.nearby-help,.nearby-status { color:var(--muted); }
.discovery-toolbar { min-width:0; margin-right:0; border-top:0; border-bottom:1px solid var(--line); padding:8px 0 22px; }
.category-list { gap:9px; padding:3px 0 5px; }
.category { --chip:#fff; min-height:46px; padding:9px 14px; border-radius:100px; border-color:var(--line); background:#fff; color:var(--ink); font-size:12px; font-weight:700; transition:transform .18s var(--playful-ease),background .18s,box-shadow .18s; }
.category[data-category="coffee"] { --chip:var(--coral-soft); }
.category[data-category="food"] { --chip:var(--yellow-soft); }
.category[data-category="outdoors"] { --chip:var(--teal-soft); }
.category[data-category="sports"] { --chip:var(--cyan-soft); }
.category[data-category="drinks"] { --chip:var(--coral-soft); }
.category[data-category="games"] { --chip:var(--yellow-soft); }
.category .icon { width:23px; height:23px; padding:3px; border-radius:50%; color:var(--ink); background:var(--chip); }
.category.active { color:var(--ink); background:var(--chip); border-color:var(--ink); box-shadow:0 3px 0 var(--ink); }
.category[data-category="all"].active { background:var(--ink); color:#fff; }
.category[data-category="all"].active .icon { background:var(--lime); }
.heading-line h2,.example-plans-heading h2 { font-size:25px; letter-spacing:-1px; color:var(--ink); }
.heading-line { gap:12px; }
.result-count,.profile-plans-heading>span { background:var(--lilac); border:0; color:var(--ink); border-radius:100px; font-size:11px; font-weight:700; padding:6px 10px; }
.search-field,.conversation-search { border-color:var(--line); border-radius:100px; background:#fff; min-height:44px; }
.search-field input { color:var(--ink); }
.filter-button { min-height:44px; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:100px; font-weight:700; }
.filter-count { background:var(--lilac); color:var(--ink); }
.messages-refresh { width:44px; height:44px; min-width:44px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); }
.filter-summary { background:var(--teal-soft); color:var(--ink); border:1px solid var(--line); border-radius:14px; }

/* Photographic cards stay square; movement belongs to the card, not its content. */
.plan-card,.place-card,.business-card { border-color:var(--line); border-radius:22px; background:#fff; box-shadow:0 4px 0 #10343b08; transition:transform .22s var(--playful-ease),box-shadow .22s var(--playful-ease),border-color .22s; }
.plan-card .card-body { padding:19px; }
.card-body h3 { color:var(--ink); font-size:19px; font-weight:800; letter-spacing:-.55px; }
.card-time { color:var(--muted); }
.card-time .price { color:var(--muted); }
.card-bottom { border-color:var(--line); }
.image-tag { border:1px solid #ffffffb3; border-radius:100px; background:#fffffff2; color:var(--ink); padding:7px 11px; font-weight:700; max-width:calc(100% - 76px); box-shadow:0 2px 8px #10343b0d; }
.save-button { width:42px; height:42px; border:1px solid #ffffffb3; border-radius:50%; background:#fffffff2; color:var(--ink); box-shadow:0 2px 6px #10343b12; }
.save-button.is-saved { background:var(--lime); border-color:var(--ink); color:var(--ink); }
.card-action.card-action-label,.card-action.example-card-action { min-height:44px; padding:9px 13px; border:1px solid var(--ink); border-radius:100px; background:var(--ink); color:#fff; font-size:12px; font-weight:700; }
.card-action .icon { transition:transform .2s var(--playful-ease); }
.plan-card .mini-avatar { border-color:#fff; }
.spots-tag { border-radius:8px; }
.example-plan-badge { color:#28626a; background:var(--yellow-soft); border-color:#d9b741; border-radius:8px; }
.example-plans-section { border-top:1px dashed var(--line); }
.example-section-icon { background:var(--peach); color:var(--ink); border-radius:12px; transform:rotate(-6deg); }
.empty-state { border:1px dashed #85c4c9; background:var(--teal-soft); border-radius:20px; }
.empty-state>span,.business-empty-icon { color:var(--ink); background:var(--lime); border:1px solid #8bcfd4; transform:rotate(-8deg); }
.empty-state h3 { color:var(--ink); }

/* The place rail is a destination in its own right. */
.top-places-section { background:linear-gradient(115deg,var(--cyan-soft),var(--teal-soft)); border:1px solid #85c4c9; border-radius:28px; padding:27px 24px 20px; box-shadow:0 5px 0 #10343b0b; }
.top-places-heading h2 { color:var(--ink); font-size:28px; letter-spacing:-1px; }
.top-places-heading h2::before { content:"✦"; display:inline-block; width:29px; height:auto; margin:0 8px 0 0; background:none; color:var(--brand-coral); font-size:31px; vertical-align:-2px; }
.top-places-heading p { color:var(--muted); }
.top-places-all { border:1px solid #85c4c9; border-radius:100px; background:#ffffffb3; color:var(--ink); }
.top-place-card { border-color:#85c4c9; border-radius:18px; box-shadow:0 4px 0 #10343b0a; }
.top-place-body h3 a,.place-card-body h2 a { color:var(--ink); }
.top-place-body>.button { color:var(--ink); background:var(--lime); border-color:var(--ink); border-radius:12px; box-shadow:0 3px 0 var(--ink); font-weight:750; }
.top-places-navigation button { border-color:#85c4c9; color:var(--ink); }
.places-filters { border-color:var(--line); border-radius:18px; box-shadow:0 3px 0 #10343b06; }
.place-detail-title,.places-heading h1,.messages-page-heading h1,.profile-page-head h1 { color:var(--ink); letter-spacing:-1.5px; }
.bottom-invitation { background:var(--teal-deep); color:#fff; border:1px solid var(--ink); border-radius:22px; padding:23px; }
.bottom-invitation strong { color:#fff; font-size:17px; }
.bottom-invitation p { color:#e6f7f6; }
.bottom-invitation .invitation-icon { background:var(--lilac); color:var(--ink); border-radius:14px; transform:rotate(-8deg); }
.bottom-invitation .text-button { min-height:46px; padding:10px 15px; border-radius:100px; background:var(--lime); color:var(--ink); }
.main-footer { border-color:var(--line); padding-top:25px; }
.main-footer a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }

/* Forms and profiles carry the same palette without adding more decoration. */
.dialog { border:1px solid var(--line); border-radius:24px; background:var(--paper); box-shadow:0 24px 100px #10343b30; }
.dialog::backdrop { background:#071e25d9; backdrop-filter:blur(5px); }
.dialog h2,.dialog h3 { color:var(--ink); }
.dialog-close { width:44px; height:44px; min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:var(--teal-soft); }
.dialog input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.dialog select,.dialog textarea { border-color:var(--line); color:var(--ink); }
.dialog input:focus-visible,.dialog select:focus-visible,.dialog textarea:focus-visible { outline:2px solid var(--teal-deep); outline-offset:2px; }
.dialog input[type=checkbox],.dialog input[type=radio] { accent-color:var(--teal-deep); }
.dialog .media-photo-controls label.media-upload-button,.dialog .photo-fieldset label.photo-upload-button { background:var(--cyan-soft); color:var(--ink); border-color:var(--line); border-radius:12px; }
#create-dialog { background:var(--paper); border-radius:25px; }
.plan-question-card { border-color:var(--line); border-radius:18px; box-shadow:0 4px 0 #10343b06; }
#create-dialog .plan-question-card h3 { color:var(--ink); }
#plan-step-name { background:var(--lilac); color:var(--ink); border-radius:100px; padding:4px 10px; }
.plan-progress-heading { align-items:center; margin-top:17px; }
#plan-step-progress { height:7px; color:var(--brand-teal); }
#plan-step-progress::-webkit-progress-bar { background:var(--teal-soft); }
#plan-step-progress::-webkit-progress-value { background:var(--brand-teal); }
#plan-step-progress::-moz-progress-bar { background:var(--brand-teal); }
.private-plan-note { color:var(--teal-deep); background:var(--cyan-soft); }
.profile-overview.social-profile-overview { background:linear-gradient(112deg,var(--cyan-soft),var(--paper) 75%); border-color:var(--line); border-radius:22px; }
.profile-tag { background:#fff; border-color:var(--line); color:var(--muted); }
.profile-owner-actions .button { border-radius:12px; }
.friend-tabs { background:var(--yellow-soft); }
.profile-friends,.friends-panel { border-color:var(--line); border-radius:20px; }
.friend-action.is-friend { background:var(--lilac); color:var(--ink); }
.business-hero { background:var(--teal-deep); border-radius:25px; }
.business-benefits { border-color:var(--line); }
.business-option-label { background:var(--cyan-soft); color:var(--teal-deep); }

/* Chat remains calm; color gives actions and outgoing messages a clear identity. */
.messages-layout { border-color:var(--line); border-radius:22px; box-shadow:0 5px 0 #10343b06; }
.messages-inbox { background:var(--paper); border-color:var(--line); }
.conversation-item.active { background:var(--cyan-soft); border-color:#63c9df; }
.chat-header { background:var(--paper); border-color:var(--line); }
.chat-history { background-color:var(--paper); background-image:radial-gradient(#00848920 .8px,transparent .8px); background-size:22px 22px; }
.chat-placeholder { background:var(--paper); }
.chat-placeholder>span { background:var(--lilac); color:var(--ink); border-radius:22px; transform:rotate(-7deg); }
.chat-state-notice { background:var(--teal-soft); color:var(--muted); }
.message-bubble { color:var(--ink); box-shadow:0 2px 0 #10343b09; }
.message-row.outgoing .message-bubble { background:var(--teal-soft); color:var(--ink); }
.message-row.system .message-bubble { box-shadow:none; }
.message-author { color:var(--teal-deep); }
.chat-date-separator time { color:var(--ink); background:var(--yellow-soft); }
.message-compose-wrap { background:var(--paper); border-color:var(--line); }
.message-form { border:1px solid var(--line); box-shadow:0 3px 0 #10343b07; }
.message-form:focus-within { box-shadow:0 0 0 2px var(--cyan-soft); }
.send-message[data-mode=mic],.send-message[data-mode=send] { color:var(--ink); background:var(--lime); border:1px solid var(--ink); box-shadow:0 2px 0 var(--ink); }
.chat-attach-button,.chat-emoji-button { color:var(--muted); }
.chat-plan-button,.chat-history-button { color:var(--ink); border-color:var(--line); border-radius:100px; }
.chat-attach-dialog .dialog-close,.chat-emoji-dialog .dialog-close,#message-actions-dialog .dialog-close { width:44px; height:44px; }
.toast:not(.toast-error):not(.error) { background:var(--ink); color:#fff; border:1px solid var(--teal-deep); border-radius:100px; box-shadow:0 5px 20px #10343b25; }
.toast:not(.toast-error):not(.error)>.icon { color:var(--lime); }

@media(hover:hover) and (pointer:fine) {
  .button-primary:not(:disabled):hover,.button-lime:not(:disabled):hover { background:#8be0f2; color:var(--ink); transform:translateY(-2px); box-shadow:0 5px 0 var(--ink); }
  .button-secondary:not(:disabled):hover { background:var(--cyan-soft); color:var(--ink); border-color:#85c4c9; transform:translateY(-2px); box-shadow:0 4px 0 #10343b12; }
  .button:not(:disabled):hover .icon:last-child,.card-action:hover .icon { transform:translateX(2px); }
  .button:not(:disabled):active { transform:translateY(3px); box-shadow:none; }
  .nav-link:not(.active):hover { color:var(--ink); background:var(--cyan-soft); }
  .nav-link.active:hover { background:var(--teal-deep); color:#fff; }
  .category:not(.active):hover { background:var(--chip); border-color:#85c4c9; transform:translateY(-2px); }
  .category.active:hover { background:var(--chip); color:var(--ink); }
  .category[data-category="all"].active:hover { background:var(--ink); color:#fff; }
  .plan-card:hover,.place-card:hover,.business-card:hover { transform:translateY(-4px); border-color:#85c4c9; box-shadow:0 9px 0 #10343b0a; }
  .card-action.card-action-label:hover,.card-action.example-card-action:hover { background:var(--lime); color:var(--ink); }
  .top-place-body>.button:hover { background:#8be0f2; color:var(--ink); }
  .find-meeting-place:hover,.top-places-all:hover { box-shadow:0 3px 0 #10343b20; }
  .send-message[data-mode=mic]:hover,.send-message[data-mode=send]:hover { background:#8be0f2; color:var(--ink); }
}
@media(max-width:980px) and (min-width:551px) {
  .nav-link { min-height:48px; }
  .nav-link>.nav-count { display:grid; position:absolute; top:0; right:0; min-width:18px; height:18px; font-size:9px; }
}
@media(max-width:740px) {
  .main-content { padding-top:20px; }
  .topbar { min-height:72px; }
  .topbar-right { gap:8px; }
  .topbar .account-button { min-height:44px; padding:9px 13px; }
  .discovery-shortcuts { gap:11px; margin:18px 0; }
  .discovery-shortcuts #nearby-controls { min-width:190px; }
  .discovery-shortcuts .find-meeting-place { font-size:12px; padding:10px 12px; }
  .discovery-toolbar { padding:4px 0 17px; }
  .category { min-height:46px; padding:9px 13px; }
  .search-field input,.conversation-search input,#message-input { font-size:16px; }
  .plan-card .card-body { padding:18px; }
  .heading-line h2,.example-plans-heading h2 { font-size:23px; }
  .top-places-section { padding:22px 17px 17px; border-radius:23px; }
  .top-places-heading h2 { font-size:24px; }
  .top-places-heading h2::before { font-size:26px; width:24px; margin-right:5px; }
  .top-places-all { padding:0 11px; }
  .bottom-invitation { padding:20px; }
  .bottom-invitation strong { font-size:16px; }
  .bottom-invitation .text-button { margin-left:0; }
  .messages-layout { border-radius:18px; }
  .chat-attach-button,.chat-emoji-button { width:40px; height:44px; }
  .send-message { width:44px; height:44px; }
  .chat-header .chat-back { width:44px; height:44px; }
  .save-button { width:44px; height:44px; }
  .dialog { border-radius:22px; }
}
@media(max-width:550px) {
  .sidebar { height:calc(72px + env(safe-area-inset-bottom)); padding:0 9px env(safe-area-inset-bottom); border-top:1px solid var(--line); background:#f5fbfcf7; box-shadow:0 -4px 20px #10343b06; }
  .sidebar-content { margin:0; width:100%; }
  .primary-nav { gap:3px; }
  .nav-link { min-height:54px; padding:7px 2px 5px; gap:4px; border-radius:13px; font-size:9px; letter-spacing:-.15px; }
  .nav-link.active { background:var(--teal-deep); color:#fff; box-shadow:none; }
  .nav-link>.nav-count { display:grid; position:absolute; top:2px; right:7px; min-width:17px; height:17px; font-size:9px; }
  .app-shell { margin-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .toast { bottom:calc(86px + env(safe-area-inset-bottom)); }
  .topbar { padding:0 17px; }
  .main-content { padding-left:17px; padding-right:17px; }
  .discovery-shortcuts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .discovery-shortcuts #nearby-controls { min-width:0; }
  .discovery-shortcuts .find-meeting-place { justify-content:center; text-align:center; font-size:12px; padding:10px 8px; gap:6px; }
  .discovery-shortcuts .find-meeting-place>.icon:last-child { display:none; }
  .discovery-shortcuts .find-meeting-place>.icon { width:17px; height:17px; }
  .discovery-shortcuts .nearby-locate { width:100%; justify-content:center; min-height:46px; font-size:12px; padding:10px 8px; }
  .nearby-help,.nearby-status { font-size:11px; line-height:1.5; }
  .discovery-shortcuts:has(.nearby-controls.is-active) { grid-template-columns:1fr; }
  .discovery-shortcuts:has(.nearby-controls.is-active) .find-meeting-place { justify-self:start; }
  .top-places-heading { gap:10px; }
  .top-places-heading h2 { font-size:23px; }
  .top-places-heading p { font-size:11px; }
  .top-places-all { font-size:11px; }
  .top-places-all .icon { width:15px; }
  .card-action.card-action-label,.card-action.example-card-action { padding:9px 13px; }
  .messages-page-heading h1,.places-heading h1,.profile-page-head h1 { font-size:32px; }
  .message-form { gap:2px; padding-left:5px; }
}
@media(max-width:360px) {
  .topbar { padding-left:12px; padding-right:12px; }
  .main-content { padding-left:14px; padding-right:14px; }
  .topbar-right { gap:5px; }
  .topbar .account-button { padding:8px 10px; }
  .nav-link { font-size:8px; }
  .chat-attach-button,.chat-emoji-button { width:36px; }
  #message-input { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .button,.button:hover,.button:active,.button .icon,.card-action .icon,.category,.category:hover,.plan-card,.plan-card:hover,.place-card,.place-card:hover,.business-card,.business-card:hover { transform:none!important; transition:none!important; animation:none!important; }
}
