/* app.css — JoinLink web (mobile first, app-like; the iOS app shows these pages in WKWebView) */
:root {
    --brand: #ff6a3d; --brand-ink: #fff; --brand-soft: #ffe7de;
    --ink: #1f1b16; --ink2: #6f665d; --line: #e8e2db;
    --bg: #f6f4f1; --card: #fff; --field: #fff;
    --ok: #1f9d55; --ok-soft: #e3f6ea; --warn: #c27c0e; --warn-soft: #fdf1dc; --err: #d64545;
    --heat-rgb: 255, 106, 61;
    --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f3eee8; --ink2: #a99f95; --line: #3a342e;
        --bg: #161310; --card: #221e1a; --field: #2b2621; --brand-soft: #4a2a1e;
        --ok-soft: #173a26; --warn-soft: #3d2f12;
    }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 24px; line-height: 1.3; margin: 4px 0 12px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
small { color: var(--ink2); font-size: 13px; font-weight: 400; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
       background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-back { font-size: 32px; line-height: 1; color: var(--ink); padding: 0 8px 4px 0; }
.top-logo { color: var(--ink); }
.logo { font-size: 21px; font-weight: 600; letter-spacing: -.3px; color: var(--ink2); }
.logo b { color: var(--brand); font-weight: 800; }
.top-sp { flex: 1; }
.top-me { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.top-me img { width: 100%; height: 100%; object-fit: cover; }
.top-login { font-weight: 600; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
body.result .wrap { max-width: 1100px; }
.card { background: var(--card); border-radius: var(--r); padding: 20px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[type="date"], input[type="time"] { min-height: 48px; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; appearance: auto; -webkit-appearance: checkbox; flex: none; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; margin-top: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 small { display: block; margin-bottom: 4px; }
.err { color: var(--err); }
.ok { color: var(--ok); }
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; }
.flash.ok { background: var(--ok-soft); }
.flash.err { background: #fde8e8; color: var(--err); }
.flash.warn { background: var(--warn-soft); color: var(--ink); }
.flash p { margin: 0; }
.flash p + p { margin-top: 10px; }
.flash .row { gap: 12px; }
.flash .btn { white-space: nowrap; flex-shrink: 0; }
.links { display: flex; justify-content: space-between; margin: 18px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; color: var(--ink); background: var(--field);
       border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 20px; cursor: pointer; text-align: center; }
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: var(--err); background: transparent; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.oauth-list { display: grid; gap: 10px; }
.oauth-ic { width: 20px; height: 20px; background: center / contain no-repeat; }
.oauth-google .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E"); }
.oauth-apple { background: #000; color: #fff; border-color: #000; }
.oauth-apple .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8 1.6 0 2 .8 3.4.8 1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.7-1-2.7-4.1zM13.9 5c.7-.9 1.2-2 1-3.2-1 0-2.3.7-3 1.6-.7.8-1.3 2-1.1 3.1 1.2.1 2.3-.6 3.1-1.5z'/%3E%3C/svg%3E"); }
.oauth-line { background: #06c755; color: #fff; border-color: #06c755; }
.oauth-line .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5 1.1-.5 5.9-3.5 8-5.9C21.4 14.3 22 12.7 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.oauth-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.oauth-facebook .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M14 8V6.2c0-.8.2-1.2 1.4-1.2H17V2h-2.6C11.3 2 10 3.5 10 6v2H8v3h2v11h4V11h2.7l.3-3h-3z'/%3E%3C/svg%3E"); }
.oauth-x { background: #000; color: #fff; border-color: #000; }
.oauth-x .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.8 3h3.1l-6.8 7.7L22 21h-6.2l-4.9-6.4L5.3 21H2.2l7.2-8.3L2 3h6.4l4.4 5.8L17.8 3zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5z'/%3E%3C/svg%3E"); }
.oauth-microsoft .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f25022' d='M2 2h9.5v9.5H2z'/%3E%3Cpath fill='%237fba00' d='M12.5 2H22v9.5h-9.5z'/%3E%3Cpath fill='%2300a4ef' d='M2 12.5h9.5V22H2z'/%3E%3Cpath fill='%23ffb900' d='M12.5 12.5H22V22h-9.5z'/%3E%3C/svg%3E"); }
.oauth-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.oauth-discord .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19.3 5.3A17 17 0 0 0 15 4l-.5 1a15.8 15.8 0 0 0-5 0L9 4a17 17 0 0 0-4.3 1.3C2 9.4 1.3 13.4 1.6 17.3A17.2 17.2 0 0 0 6.9 20l1.1-1.8a11 11 0 0 1-1.7-.8l.4-.3a12.2 12.2 0 0 0 10.6 0l.4.3c-.5.3-1.1.6-1.7.8l1.1 1.8a17 17 0 0 0 5.3-2.7c.4-4.5-.7-8.5-2.9-12zM8.7 14.9c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1zm6.6 0c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1z'/%3E%3C/svg%3E"); }

.oauth-threads { background: #000; color: #fff; border-color: #000; }
.oauth-threads .oauth-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M16.5 11.2c-.4-2.4-2-3.7-4.4-3.7-2.6 0-4.2 1.9-4.2 4.5s1.6 4.5 4.2 4.5c2.2 0 3.6-1.2 3.6-2.9 0-1.6-1.3-2.5-3.1-2.5-1.5 0-2.5.8-2.5 1.9'/%3E%3Cpath d='M20 12c0 5-3.2 9-8 9s-8-4-8-9 3.2-9 8-9c3.6 0 6.2 2 7.3 5'/%3E%3C/svg%3E"); }
/* Login / register: social on the left, email form on the right; stacked on phones */
body.auth-page .wrap { max-width: 880px; }
.auth-title { font-size: 22px; margin: 0 0 12px; text-align: left; }
.logo-inline { font-size: inherit; letter-spacing: 0; }
.auth .auth-cols h2 { font-size: 15px; color: var(--ink2); font-weight: 600; margin: 4px 0 12px; }
.auth.split .auth-oauth { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
    .auth.split .auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .auth.split .auth-oauth { padding: 0 32px 0 0; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); }
    .auth.split .auth-email { padding-left: 32px; }
}
.or { display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: 13px; margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Tags, toast */
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); background: rgba(30,26,22,.92); color: #fff; padding: 10px 18px;
         border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip small { margin-left: 4px; font-size: 12px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on small { color: rgba(255,255,255,.85); }

/* Wizard */
body.has-wiz .wrap { padding-bottom: calc(110px + var(--safe-b)); }
.wiz-bar { display: flex; gap: 6px; margin: 4px 0 18px; }
.wiz-bar span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: .3s; }
.wiz-bar span.on { background: var(--brand); }
.wiz-title { margin: -8px 0 4px; color: var(--ink2); font-weight: 600; }
.step { display: none; animation: fadein .25s; }
.step.on { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wiz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-between; gap: 12px;
           padding: 12px 16px calc(12px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.wiz-nav .btn { flex: 1; max-width: 300px; padding: 14px; }
.wiz-nav [data-next] { flex: 2; }
.stepper { display: flex; align-items: center; gap: 8px; max-width: 220px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--field); font-size: 22px; color: var(--ink); cursor: pointer; flex: none; }
.stepper input { text-align: center; font-size: 20px; font-weight: 700; }
.stepper > span { flex: none; font-weight: 600; }

.summary > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary span { flex: none; width: 88px; color: var(--ink2); }
.summary b { font-weight: 600; }

/* Places */
.place-list { display: grid; gap: 8px; }
.place { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); }
.place > div { flex: 1; min-width: 0; }
.place b, .place small, .place a { display: block; overflow: hidden; text-overflow: ellipsis; }
.place a { font-size: 13px; }
.place.liked { border-color: var(--brand); }
.place.top { box-shadow: inset 4px 0 0 var(--brand); }
.place.chosen { background: var(--ok-soft); border-color: var(--ok); }
.place .who { font-size: 12px; }
.like { font: inherit; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.like:disabled { opacity: .6; }
.x { font-size: 22px; line-height: 1; color: var(--ink2); background: none; border: 0; padding: 4px 8px; cursor: pointer; }
.add-place { margin-top: 8px; }
.add-place summary { list-style: none; }
.add-place summary::-webkit-details-marker { display: none; }
.add-place[open] summary { display: none; }
.add-place input { margin-top: 8px; }
.add-place .btn { margin-top: 10px; }

.done .share-link, .share-link { font-weight: 700; font-size: 18px; padding: 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); word-break: break-all; margin: 12px 0; text-align: center; }

/* Calendar */
.cal-wrap { display: grid; gap: 16px; }
.cal-title { font-weight: 700; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--ink2); padding: 2px 0; }
.cal-d { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; padding: 0;
         display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid var(--line); }
.cal-d.off { background: transparent; border-color: transparent; color: var(--line); cursor: default; }
.cal-d em { font-style: normal; font-size: 10px; font-weight: 600; opacity: .85; }
.pick .cal-d.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.heat .cal-d:not(.off) { background: rgba(var(--heat-rgb), calc(var(--heat, 0) * .75)); }
.heat .cal-d.all { border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.heat .cal-d.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.heat .cal-d.mine::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.apply-all { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--brand-soft); margin-bottom: 14px; }
.apply-all span { font-weight: 600; font-size: 14px; }
.day-list { display: grid; gap: 10px; }
.day-row { padding: 12px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); }
.day-name { font-weight: 700; margin-bottom: 8px; }
.day-row .custom { margin-top: 8px; }

/* Result page */
.res-head h1 { margin: 0; }
.members { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.mem { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg); font-size: 14px; }
.mem img, .mem i { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.mem b { color: var(--ink2); }
.mem.done b { color: var(--ok); }
.final { border: 2px solid var(--ok); }
.final .big { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.final .aff { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.final .aff h3 { margin: 0 0 4px; }
.best { display: grid; gap: 10px; }
.best-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); }
.best-row.all { border-color: var(--ok); background: var(--ok-soft); }
.best-row > .btn { grid-column: 2; grid-row: 1 / span 2; }
.best-when { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.best-who { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.best-row.all .best-who b { color: var(--ok); }
.res-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .res-grid { grid-template-columns: 1fr 1fr; align-items: start; } .res-grid .card { margin: 0; } }
.day-detail { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.day-detail h3 { margin: 0; }
.tl { margin: 8px 0; }
.tl-axis { position: relative; height: 18px; margin-left: 76px; font-size: 11px; color: var(--ink2); }
.tl-axis span { position: absolute; transform: translateX(-50%); }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.tl-name { width: 68px; flex: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-bar { position: relative; flex: 1; height: 18px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.tl-bar i { position: absolute; top: 0; bottom: 0; background: var(--brand); opacity: .75; border-radius: 4px; }
.tl-row.sum .tl-name { font-weight: 700; }
.tl-bar.heat i { opacity: 1; border-radius: 0; background: rgba(var(--heat-rgb), var(--heat)); }
.tl-bar.heat i.all { background: var(--ok); }
.tl-wins { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.bars { display: grid; gap: 6px; }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-radius: 8px; background: var(--bg); overflow: hidden; font-size: 14px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); z-index: 0; }
.bar span, .bar b { position: relative; z-index: 1; }

dialog.sheet { border: 0; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); width: 100%; max-width: 560px; margin: auto auto 0; background: var(--card); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
dialog.sheet .row.between { margin-top: 18px; }
dialog.sheet .btn.block { margin-top: 10px; }
@media (min-width: 640px) { dialog.sheet { border-radius: 20px; margin: auto; } }

details.danger { margin-top: 16px; }
details.danger summary { color: var(--err); cursor: pointer; }

/* Home */
.hero { text-align: center; padding: 48px 8px 24px; }
.hero h1 { font-size: 30px; }
.hero p { color: var(--ink2); font-size: 17px; margin-bottom: 24px; }
.hero .btn { margin: 4px; }
.steps3 { display: grid; gap: 12px; margin: 24px 0; }
.steps3 > div { background: var(--card); border-radius: var(--r); padding: 18px; }
.steps3 b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; }
.steps3 h3 { margin: 8px 0 4px; }
.steps3 p { margin: 0; color: var(--ink2); }
.foot { text-align: center; font-size: 13px; color: var(--ink2); padding: 24px 0; }
.new-btn { margin: 8px 0 20px; }
.list-title { font-size: 15px; color: var(--ink2); }
.ev-list { display: grid; gap: 10px; }
.ev { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 16px; color: var(--ink); }
.ev-main { flex: 1; min-width: 0; }
.ev-main b, .ev-main small { display: block; }
.ev.past { opacity: .55; }
.legal h1 { font-size: 22px; }
.legal h2 { font-size: 17px; margin-top: 20px; }


/* Mode choice on 發起揪 step 1 */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; }
.mode-pick .chip { border-radius: 14px; padding: 12px; text-align: left; font-weight: 700; }
.mode-pick .chip small { display: block; margin: 2px 0 0; font-weight: 400; }

/* Booking mode (book/) */
.book-day h3 { margin: 16px 0 8px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--brand); border-radius: 12px; padding: 10px 6px;
        display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.slot b { font-size: 17px; }
.slot small { font-size: 12px; }
.slot i { font-style: normal; font-size: 12px; color: var(--ink2); text-align: center; word-break: break-all; }
.slot:disabled { cursor: default; }
.slot.full { border-color: var(--line); background: var(--bg); color: var(--ink2); }
.slot.mine { border-color: var(--ok); background: var(--ok-soft); }
.slot.taken { border-color: var(--brand); background: var(--brand-soft); }
.book-mine { display: grid; gap: 8px; }
.book-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.book-row > div { flex: 1; min-width: 160px; }
.book-row b, .book-row span, .book-row small { display: block; }
dialog .big { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }

/* Rating card */
.rate { position: relative; text-align: center; border: 1.5px solid var(--brand-soft); }
.rate h2 { margin: 0 0 4px; }
.rate-x { position: absolute; top: 8px; right: 8px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.stars button { font-size: 34px; line-height: 1; color: var(--line); background: none; border: 0; padding: 2px; cursor: pointer; }
.stars button.on { color: #ffb400; }
.rate-more { text-align: left; }
.rate-more .btn { margin-top: 10px; }
