/* Each top-level view stays reachable even with the new discovery tab. */
.view-tabs{flex-wrap:wrap;column-gap:clamp(10px,1.3vw,24px);row-gap:0}
.view-tabs .view-tab{min-height:44px}
.view-tabs-note{flex:1 1 120px;max-width:none}
.discovery-root{min-width:0}
.discovery-workspace{min-width:0;padding:23px 24px 26px;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.discovery-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}
.discovery-heading .eyebrow{font-size:8px;margin-bottom:6px}
.discovery-heading h2{font-family:"Noto Serif TC",serif;font-size:25px;line-height:1.55;letter-spacing:1px}
.discovery-heading p:not(.eyebrow){font-size:11px;color:var(--muted);margin-top:6px}
.discovery-heading .button{font-size:10px;min-height:44px}
.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 15px;margin-top:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.discovery-mode-toggle{display:flex;gap:4px;padding:4px;background:#edf0e5;border-radius:10px}
.discovery-mode-toggle button{background:transparent;border-radius:7px;min-height:44px;padding:8px 15px;font-size:12px;color:#7b8870;white-space:nowrap}
.discovery-mode-toggle button.is-active{background:var(--white);color:var(--green);font-weight:600;box-shadow:0 2px 6px #293e3010}
.discovery-mode-toggle span{font:13px/1 Georgia,serif;display:inline-block;margin-left:8px}
.discovery-history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.discovery-history-actions button{background:transparent;font-size:10px;color:#7a896c;min-height:44px;padding:7px 2px;text-underline-offset:4px}
.discovery-history-actions button:hover:not(:disabled){text-decoration:underline}
.discovery-announcement{min-height:23px;font-size:10px;line-height:1.7;color:#6e825d;padding-top:7px}
.discovery-stage{width:min(100%,590px);margin:8px auto 0;position:relative}
.discovery-deck-top{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:10px;color:#8c957e;margin:0 3px 12px}
.discovery-deck-top strong{font-size:12px;font-weight:600;color:#6b8059}
.discovery-deck-top>span:last-child{font-size:9px}
.discovery-swipe-card{position:relative;background:var(--white);border:1px solid #dae1d0;border-radius:18px;box-shadow:0 11px 25px #344f3b14;touch-action:pan-y;transform:translateX(var(--swipe-x,0px)) rotate(var(--swipe-rotate,0deg));transition:transform .18s ease,box-shadow .18s ease;transform-origin:50% 90%;cursor:grab;user-select:none;-webkit-user-select:none}
.discovery-swipe-card:focus-visible{outline:3px solid #bd7c4b;outline-offset:4px}
.discovery-swipe-card.is-dragging{transition:none;cursor:grabbing;box-shadow:0 15px 33px #344f3b22;z-index:2}
.discovery-photo{margin:0;position:relative;border-radius:17px 17px 0 0;overflow:hidden;background:#e8eddf}
.discovery-photo img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;max-height:345px;pointer-events:none}
.discovery-photo-fallback{min-height:220px;aspect-ratio:16/10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:linear-gradient(140deg,#e4ebdb,#f3eee1);color:#7c8a6c;font-size:11px}
.discovery-photo-fallback>span:first-child{font-size:40px;color:#9cab8a}
.discovery-photo figcaption{display:flex;gap:10px;align-items:baseline;justify-content:space-between;padding:8px 16px;font-size:8px;background:#f1f3e9;color:#859077}
.discovery-photo figcaption>span{min-width:0;overflow-wrap:anywhere}
.discovery-photo figcaption>a{white-space:nowrap;text-decoration:none;text-underline-offset:3px;flex-shrink:0}
.discovery-photo figcaption>a:hover{text-decoration:underline}
.discovery-card-copy{padding:20px 23px 22px}
.discovery-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:10px;color:#89947b}
.discovery-category{border-radius:5px;padding:2px 7px;background:color-mix(in srgb,var(--discovery-category) 11%,white);color:var(--discovery-category);font-size:9px}
.discovery-card-copy h3{font:600 24px/1.5 "Noto Serif TC",serif;margin:8px 0 9px;letter-spacing:.5px}
.discovery-card-copy h3 button,.discovery-favorite-copy h3 button{background:transparent;font:inherit;line-height:inherit;text-align:left;padding:0;overflow-wrap:anywhere}
.discovery-card-copy h3 button:hover,.discovery-favorite-copy h3 button:hover{color:var(--orange)}
.discovery-card-copy h3 button>span{font:12px/1 system-ui,sans-serif;color:#8d9c7b;white-space:nowrap}
.discovery-summary{font-size:12px;line-height:1.9;color:#768569;overflow-wrap:anywhere}
.discovery-highlights{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:12px 0 0}
.discovery-highlights li{font-size:9px;background:#f0f3e8;border-radius:6px;padding:4px 8px;color:#879576}
.discovery-event-note{font-size:9px;line-height:1.7;color:#a27b52;margin-top:12px}
.discovery-swipe-stamp{position:absolute;top:26px;z-index:2;pointer-events:none;border:3px solid;border-radius:9px;padding:5px 14px;font-size:23px;font-weight:700;letter-spacing:2px;background:#fffefae8}
.discovery-swipe-stamp.is-like{left:25px;color:#3f7950;border-color:#3f7950;transform:rotate(-13deg);opacity:var(--swipe-like,0)}
.discovery-swipe-stamp.is-skip{right:25px;color:#bc7652;border-color:#bc7652;transform:rotate(13deg);opacity:var(--swipe-skip,0)}
.discovery-vote-actions{display:flex;justify-content:center;gap:20px;margin-top:22px}
.discovery-vote{display:flex;align-items:center;justify-content:center;gap:13px;border-radius:50px;min-height:58px;min-width:145px;padding:10px 21px;font-size:12px;box-shadow:0 4px 10px #344f3b0a;transition:transform .15s,background .15s}
.discovery-vote>span:first-child{font:27px/1 system-ui,sans-serif}
.discovery-vote.is-skip{border:1px solid #e1d6c5;background:#fbf7ef;color:#a1805b}
.discovery-vote.is-like{border:1px solid #344f3b;background:var(--green);color:var(--white)}
.discovery-vote:hover{transform:translateY(-2px)}
.discovery-vote.is-like:hover{background:#263f2e}
.discovery-vote.is-skip:hover{background:#f3ecdf}
.discovery-gesture-hint{text-align:center;color:#929b84;font-size:10px;line-height:1.9;margin:13px 0 0}
.discovery-empty{text-align:center;max-width:560px;margin:35px auto;padding:24px 20px}
.discovery-empty-symbol{display:block;font:56px/1.2 Georgia,serif;color:#9caf88;margin-bottom:13px}
.discovery-empty h3{font:600 22px/1.6 "Noto Serif TC",serif;letter-spacing:.5px}
.discovery-empty p{font-size:11px;line-height:2;color:#8b957d;margin-top:12px}
.discovery-empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:20px}
.discovery-empty-actions .button{min-height:44px;font-size:11px}
.discovery-favorites-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:5px 12px;margin:5px 0 15px;font-size:10px;color:#8b957e}
.discovery-favorites-heading>span{white-space:nowrap;color:#6f825f}
.discovery-favorites-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:start}
.discovery-favorite{border:1px solid var(--line);border-radius:13px;overflow:hidden;min-width:0;background:#fffefa}
.discovery-favorite-photo{display:block;width:100%;padding:0;background:transparent;cursor:pointer}
.discovery-favorite-photo:hover{filter:brightness(.97)}
.discovery-photo.is-compact{border-radius:12px 12px 0 0}
.discovery-photo.is-compact img{aspect-ratio:16/9;height:190px;max-height:none}
.discovery-photo.is-compact .discovery-photo-fallback{height:190px;min-height:190px;aspect-ratio:auto}
.discovery-favorite-copy{padding:15px 17px 17px}
.discovery-favorite-copy h3{margin:8px 0 6px;font-size:17px;line-height:1.65}
.discovery-favorite-copy h3 span{font-size:10px;color:#91a17f}
.discovery-favorite-summary{font-size:11px;line-height:1.8;color:#87937a;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:3.6em}
.discovery-rating{padding:12px 0 10px;margin-top:13px;border-top:1px solid #edf0e4}
.discovery-rating-caption{display:flex;align-items:baseline;gap:10px;font-size:10px;color:#81916f}
.discovery-rating-caption>strong{font-weight:500;color:#a0804a;font-size:10px}
.discovery-rating-row{display:flex;align-items:center;gap:9px;margin-top:2px;flex-wrap:wrap}
.discovery-stars{display:flex;gap:2px}
.discovery-star{display:flex;align-items:center;justify-content:center;width:40px;min-height:44px;padding:0;border-radius:7px;background:transparent;font:29px/1 system-ui,sans-serif;color:#b3baa6}
.discovery-star.is-filled{color:#b8823e}
.discovery-star:hover{background:#f6eddc;color:#a8722e}
.discovery-clear-rating{min-height:44px;padding:7px 6px;background:transparent;color:#8b957d;font-size:10px;border-radius:6px}
.discovery-clear-rating:hover:not(:disabled){background:#f0f3e8}
.discovery-profile-scores{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.discovery-profile-score{display:inline-flex;align-items:baseline;gap:7px;padding:4px 8px;border:1px solid #e4e8da;border-radius:6px;background:#f7f8f1;font-size:9px;color:#879478}
.discovery-profile-score.is-current{border-color:#d6e1c8;background:#edf3e4;color:#647d50}
.discovery-profile-score strong{font-size:10px;font-weight:500;color:#a0804a;white-space:nowrap}
.discovery-combined-score{margin-top:8px;font-size:10px;color:#839173}
.discovery-combined-score strong{font-weight:600;color:#7c6942;margin-left:4px}
.discovery-favorite-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf0e4;padding-top:12px}
.discovery-select{font-size:11px;min-height:44px;padding:8px 13px;border-radius:7px;border:1px solid #d6e0c9;background:#f0f4e7;color:#70845b}
.discovery-select.is-selected{background:#e4ecda;border-color:#a8bb93;color:#4d6a38}
.discovery-remove{font-size:10px;min-height:44px;background:transparent;padding:7px 2px;color:#a18a70;text-underline-offset:4px}
.discovery-remove:hover{text-decoration:underline}
@media(min-width:1700px){.discovery-workspace{padding:26px 32px 30px}.discovery-favorites-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.discovery-favorite{max-width:620px}}
@media(max-width:1100px){.view-tabs{column-gap:15px}.view-tabs-note{flex-basis:100%;text-align:left;margin-top:-4px;margin-bottom:8px}.discovery-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.discovery-heading h2{font-size:22px}.discovery-share{margin-left:auto}.discovery-workspace{padding:19px 18px 23px}.discovery-mode-toggle button{padding:8px 12px;font-size:11px}.discovery-card-copy{padding:18px}.discovery-card-copy h3{font-size:23px}}
@media(max-width:760px){.view-tabs{justify-content:flex-start;column-gap:13px;row-gap:0}.view-tabs .view-tab{padding:11px 3px;min-height:44px}.view-tabs-note{display:none}.discovery-workspace{padding:19px 13px 22px;border-radius:13px}.discovery-heading{gap:11px}.discovery-heading h2{font-size:22px;letter-spacing:.5px}.discovery-heading .eyebrow{font-size:7px}.discovery-heading p:not(.eyebrow){font-size:10px}.discovery-heading .button{font-size:9px;padding:7px 10px}.discovery-share{margin:0}.discovery-toolbar{margin-top:15px;padding-bottom:10px;gap:5px 10px}.discovery-mode-toggle{width:100%}.discovery-mode-toggle button{flex:1;font-size:11px;padding:7px 8px}.discovery-history-actions{width:100%;justify-content:space-between}.discovery-history-actions button{font-size:9px}.discovery-announcement{font-size:9px;min-height:21px}.discovery-stage{margin-top:5px}.discovery-deck-top{font-size:9px;margin:0 0 10px}.discovery-deck-top>span:last-child{font-size:8px}.discovery-photo img{aspect-ratio:4/3;max-height:330px}.discovery-photo figcaption{padding:7px 10px;font-size:7px;gap:7px}.discovery-card-copy{padding:15px 14px 17px}.discovery-meta{font-size:9px;gap:5px 7px}.discovery-category{font-size:8px}.discovery-card-copy h3{font-size:21px;margin:8px 0}.discovery-summary{font-size:11px;line-height:1.85}.discovery-highlights li{font-size:8px}.discovery-vote-actions{gap:12px;margin-top:19px}.discovery-vote{min-height:54px;min-width:0;flex:1;max-width:175px;padding:9px 13px;gap:9px;font-size:11px}.discovery-vote>span:first-child{font-size:25px}.discovery-gesture-hint{font-size:9px}.discovery-swipe-stamp{font-size:19px;top:21px;padding:4px 10px}.discovery-swipe-stamp.is-like{left:19px}.discovery-swipe-stamp.is-skip{right:19px}.discovery-empty{padding:20px 8px;margin:20px auto}.discovery-empty h3{font-size:20px}.discovery-empty p{font-size:10px}.discovery-favorites-heading{font-size:9px}.discovery-favorites-grid{grid-template-columns:1fr;gap:14px}.discovery-favorite-copy{padding:14px}.discovery-favorite-copy h3{font-size:17px}.discovery-photo.is-compact img{height:auto;aspect-ratio:16/9;max-height:300px}.discovery-star{width:39px}.discovery-favorite-actions{gap:7px}.discovery-select{padding:8px 11px}}
@media(max-width:390px){.view-tabs{column-gap:10px}.view-tabs .view-tab{font-size:10px;padding:10px 2px}.view-tabs .view-tab>span{margin-left:3px;font-size:8px}.discovery-workspace{padding-left:11px;padding-right:11px}.discovery-star{width:36px}.discovery-rating-row{gap:4px}.discovery-card-copy{padding:14px 12px}.discovery-card-copy h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.discovery-swipe-card,.discovery-vote{transition:none}.discovery-vote:hover{transform:none}}
@media print{#discover-view{display:none!important}}
