/* Page layouts */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding-block: 28px 24px; }
.hero .lead { max-width: 56ch; font-size: 1.05rem; }
.small { font-size: .85rem; }
.join-band { display: grid; gap: 16px; align-items: center; padding: 22px; background: var(--tint); border-color: transparent; }
@media (min-width: 800px) { .join-band { grid-template-columns: 1fr auto; } .hero { padding-block: 48px 40px; } }

/* Profile */
.profile-head { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
.profile-head .photo { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; }
.profile-head .muted svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; }
.profile-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } .profile-grid aside { position: sticky; top: 84px; } }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list b { font-family: var(--h); color: var(--link); white-space: nowrap; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); z-index: 35; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); }
.profile ~ .sticky-cta { display: block; }
body:has(.sticky-cta) .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } body:has(.sticky-cta) .site-footer { padding-bottom: 28px; } .cta-card { display: grid; } }
@media (max-width: 899px) { .cta-card { display: none; } }

/* Plain pages (account, join, legal) */
.page-wrap { max-width: 760px; }
.entry { display: grid; gap: 16px; }
.entry > * { margin: 0; }

/* Plugin screens restyled to the app look */
.tdtn-form { display: grid; gap: 12px; }
.tdtn-form input:not([type=checkbox]):not([type=hidden]), .tdtn-form select, .tdtn-form textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.tdtn-form textarea { min-height: 110px; }
.tdtn-form button[type=submit], .tdtn-account button { min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 0; background: var(--indigo); color: #fff; font: 700 1rem var(--h); cursor: pointer; }
.tdtn-ok { padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.tdtn-err { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 600; }
.tdtn-note { color: var(--muted); font-size: .88rem; }
.tdtn-check { display: flex; gap: 10px; font-weight: 400; color: var(--muted); }

.tdtn-account { display: grid; gap: 24px; }
.tdtn-account > section { display: grid; gap: 12px; }
.tdtn-stats { grid-template-columns: repeat(2, 1fr); }
.tdtn-stats p { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--muted); font-size: .88rem; }
.tdtn-stats b { display: block; font: 800 1.6rem var(--h); color: var(--text); }
.tdtn-stats button { background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--line) !important; }
.tdtn-stats [data-state="on"]::after { content: " · on"; color: var(--green); }
.tdtn-stats [data-state="install-first"]::after { content: " · install the app first"; color: var(--amber); font-weight: 500; }
.tdtn-stats [data-state="blocked"]::after { content: " · blocked in settings"; color: var(--red); font-weight: 500; }
@media (min-width: 800px) { .tdtn-stats { grid-template-columns: repeat(4, 1fr); } }

.tdtn-lead { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--indigo); border-radius: 14px; padding: 14px; }
.tdtn-lead[open] { box-shadow: var(--shadow); }
.tdtn-lead summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.tdtn-lead summary::-webkit-details-marker { display: none; }
.tdtn-lead summary span { color: var(--muted); font-size: .85rem; }
.tdtn-lead > * + * { margin-top: 10px; }
.tdtn-lead button { margin-right: 6px; background: transparent !important; color: var(--link) !important; border: 1px solid var(--line) !important; }
.tdtn-transcript { white-space: pre-wrap; font: 400 .9rem/1.55 var(--b); background: var(--surface); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; }
.tdtn-unread a { font-weight: 600; }
.tdtn-unread a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }

/* Booking */
.label { font-weight: 600; font-size: .92rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot-grid .chip { justify-content: center; }
.sticky-cta.two { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.status-card { border-left: 5px solid var(--line); }
.status-card[data-tone="ok"] { border-left-color: var(--green); }
.status-card[data-tone="warn"] { border-left-color: var(--orange); }
.status-card[data-tone="info"] { border-left-color: var(--indigo); }
.initials.mini { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; flex: none; }
.wrap-text { white-space: normal !important; text-align: right; font-family: var(--b) !important; color: var(--text) !important; font-weight: 500; }
.cancel-box summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.cancel-box[open] summary { margin-bottom: 12px; }
.booking-page .price-list li span { color: var(--muted); }

/* Member availability grid */
.tdtn-avail { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0; overflow-x: auto; }
.tdtn-avail legend { font-weight: 600; padding: 0 6px; }
.tdtn-avail-grid { display: grid; grid-template-columns: 44px repeat(5, minmax(44px, 1fr)); gap: 6px; align-items: center; min-width: 300px; }
.tdtn-avail-grid > span { text-align: center; font-size: .78rem; color: var(--muted); }
.tdtn-avail-grid label { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.tdtn-avail-grid label:has(input:checked) { background: var(--indigo); }
.tdtn-avail-grid input { width: 20px; height: 20px; accent-color: #fff; }
.tdtn-booking[data-status="requested"] { border-left-color: var(--orange); }
.tdtn-booking[data-status="paid"] { border-left-color: var(--green); }
.tdtn-booking select { width: 100%; min-height: var(--tap); border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; margin-top: 4px; }
.tdtn-button { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: 12px; background: var(--indigo); color: #fff !important; font: 700 1rem var(--h); }

/* Tenders */
.tender h3 { font-size: 1.05rem; }
.tender details summary { cursor: pointer; font-weight: 600; }
.tender details p { margin-top: 8px; font-size: .92rem; }

/* Coming soon */
body.is-coming-soon { padding-bottom: 0; }
.soon { min-height: 100vh; background: radial-gradient(120% 60% at 100% 0%, var(--tint), transparent 60%), var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.soon-top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.soon-hero { padding-block: 24px 20px; }
.soon-hero > * { max-width: 760px; }
.soon-hero h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
.soon-grid { display: grid; gap: 20px; padding-bottom: 32px; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: 1fr 1fr; align-items: start; } .soon-hero { padding-block: 56px 32px; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg label { position: relative; font-weight: 600; font-size: .9rem; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--indigo); }
.soon-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.soon-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.soon-points i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--link); }
.soon-points svg { width: 22px; height: 22px; }
.soon-foot { padding-block: 24px 32px; border-top: 1px solid var(--line); }

/* Bid drafts */
.bid-row { color: var(--text); padding: 12px 14px; }
.draft { line-height: 1.65; }
.draft h2 { font-size: 1.25rem; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.draft h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.draft h3 { font-size: 1.02rem; margin-top: 16px; }
.draft p, .draft ul { margin: 8px 0 0; }
.draft mark, .notice-box mark { background: var(--amber-soft); color: var(--amber); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Plans */
.tdtn-plans { display: grid; gap: 12px; }
@media (min-width: 800px) { .tdtn-plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.tdtn-plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.tdtn-plan.is-current { border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 20%, transparent); }
.tdtn-plan h3 { font-size: 1.1rem; }
.tdtn-plan-price { font: 800 1.4rem var(--h); }
.tdtn-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.tdtn-plan .tdtn-ok { padding: 8px 12px; text-align: center; }
.tdtn-button { justify-content: center; }
.tdtn-ghost { background: transparent !important; color: var(--link) !important; border: 1px solid var(--line); }

/* Reviews */
.review-item { display: grid; gap: 4px; padding-block: 12px; border-top: 1px solid var(--line); }
.review-item:first-of-type { border-top: 0; padding-top: 0; }
.review-item .stars { color: var(--amber); letter-spacing: 2px; }
.review-item .reply { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.stars-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.stars-input legend { width: 100%; margin-bottom: 6px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { cursor: pointer; color: var(--line); }
.stars-input label svg { width: 40px; height: 40px; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--amber); }
.stars-input label svg path { fill: currentColor; }
.stars-input input:focus-visible + label { outline: 3px solid var(--indigo); border-radius: 8px; }

/* Get the app */
.tdtn-standalone [data-tdtn-install], .tdtn-standalone [data-app-hide] { display: none !important; }
.site-footer .btn[data-tdtn-install] { justify-self: start; }
.app-steps { display: grid; gap: 10px; margin: 12px 0; padding-left: 22px; }
