/* Sejong Masil v29: shared mobile and Windows/macOS desktop design. */
.poster-fallback{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;width:100%;min-height:108px;padding:14px;text-align:center;background:linear-gradient(140deg,#e1e8d6,#f2e7d8);color:#456047}.poster-fallback span:first-child{font-size:17px;font-weight:600}.poster-fallback span:last-child{font-size:10px;letter-spacing:.04em}.poster-fallback[hidden],.poster img[hidden]{display:none}.feature-card .poster-fallback{height:100%}
:root{--bg:#f7f8f3;--surface:#fff;--ink:#202923;--muted:#626a63;--line:#e0e5db;--accent:#245843;--accent2:#35664c;--soft:#f6dfc8;--shadow:0 4px 18px #203e2810;--hero:#e8eedf}
body{background:#edf0e8;line-height:1.5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif}
body[data-palette="warm"]{--bg:#faf6f0;--accent:#b94724;--accent2:#965234;--hero:#f4e8d7;--line:#e9dfd4;--soft:#fff0e7}
button,input,textarea,a{touch-action:manipulation}button,input,textarea{font:inherit}
button,a,input,textarea{transition:background-color .16s,color .16s,box-shadow .16s}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}#searchInput:focus-visible{outline:0}
.skip-link{position:fixed;top:-100px;left:16px;z-index:50;background:white;color:var(--accent);padding:12px}.skip-link:focus{top:12px}
.ui-icon{width:24px;height:24px;display:block;flex:none}.app-shell{max-width:520px;background:var(--bg);padding: max(14px,env(safe-area-inset-top)) 20px calc(106px + env(safe-area-inset-bottom));border:0}
.mobile-header{align-items:center;padding:8px 0 20px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--accent);margin-bottom:3px}h1{font-size:28px;line-height:1.25;letter-spacing:-.05em}.subtitle{font-weight:400;font-size:12px;margin-top:5px}.round-btn{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);box-shadow:none;width:46px;height:46px;color:var(--accent)}
section{margin:24px 0}.today-card{position:relative;isolation:isolate;overflow:hidden;background:var(--hero);color:var(--ink);border-radius:22px;margin:0;padding:24px 22px;box-shadow:none;min-height:188px;display:flex;align-items:center}
.today-card>div:first-child{position:relative;z-index:2;max-width:77%}.today-label{background:none;color:var(--accent);padding:0;font-size:9px;letter-spacing:.12em;margin-bottom:12px;font-weight:700}.today-card strong{font-size:25px;line-height:1.4;letter-spacing:-.045em;font-weight:700}.today-card p{color:var(--muted);font-size:12px;line-height:1.65;margin-top:12px;max-width:240px}
.garden-art{position:absolute;right:0;bottom:0;width:138px;height:164px;opacity:.85;z-index:0}.garden-art span{position:absolute;display:block}.garden-orbit{width:138px;height:138px;border:1px solid #abbca380;border-radius:50%;top:1px;left:20px}.garden-stem{height:112px;width:2px;background:var(--accent);left:74px;bottom:16px;transform:rotate(-12deg)}.garden-leaf{background:var(--accent);width:42px;height:65px;border-radius:100% 0 100% 0}.leaf-one{bottom:57px;left:70px;transform:rotate(8deg)}.leaf-two{bottom:37px;left:31px;transform:rotate(-82deg);opacity:.65}.garden-sun{background:#e6b68b;width:37px;height:37px;top:0;left:74px;border-radius:50%}.garden-ground{width:115px;height:22px;background:#bcccb070;bottom:7px;left:16px;border-radius:50%}
.search-panel{margin:18px -20px 0;padding:10px 20px 12px;background:var(--bg);backdrop-filter:none;border-bottom:1px solid var(--line)}.search-field{position:relative;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-height:50px;padding-left:15px;color:var(--muted)}.search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #24584314}.search-field>.ui-icon{width:19px;height:19px}#searchInput{border:0;box-shadow:none;background:transparent;border-radius:14px;padding:0 10px;min-width:0;font-size:16px;height:50px;color:var(--ink)}#searchInput::-webkit-search-cancel-button{display:none}#clearSearch{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;background:none;color:var(--muted)}#clearSearch[hidden]{display:none}#clearSearch .ui-icon{width:18px;height:18px}
.filter-mode-tabs{display:flex;background:none;border:0;border-radius:0;padding:0;gap:22px;margin-top:13px}.filter-mode{position:relative;border-radius:0;height:38px;padding:0 2px;font-size:14px;font-weight:500;color:var(--muted)}.filter-mode.active{background:none;color:var(--accent);box-shadow:none;font-weight:700}.filter-mode.active::after{content:"";height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--accent)}
.category-scroll{padding-top:12px;padding-bottom:2px;gap:7px}.chip{min-height:40px;padding:7px 15px;border-radius:10px;background:var(--surface);font-weight:500;font-size:13px;color:var(--muted)}.chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
main{padding:0}.section-row{margin-bottom:14px;align-items:center}h2{font-size:20px;letter-spacing:-.035em;font-weight:700}.section-row span{font-size:12px;font-weight:500;color:var(--muted)}.horizontal-cards{gap:14px;padding:0 1px 12px;scroll-snap-type:x proximity}.feature-card{flex-basis:244px;padding:12px;border-radius:18px;background:white;box-shadow:none;scroll-snap-align:start;overflow:hidden}.feature-card .poster{height:170px;margin-bottom:13px;border-radius:10px;padding:0;background:#eef1e9}.feature-card .poster img{object-fit:contain}.poster{border-radius:12px;background:#edf0e5;color:var(--accent);font-weight:500;font-size:12px;padding:0;min-height:108px}.poster img{display:block;object-fit:cover}.feed-card{grid-template-columns:82px minmax(0,1fr);border-radius:17px;padding:14px;gap:14px;background:white;box-shadow:none;min-height:142px}.feed-card>div:last-child{min-width:0;padding-right:24px}.feed-list{gap:12px}.card-title,.feature-card .card-title{font-size:17px;line-height:1.5;letter-spacing:-.025em;padding-right:0;margin:5px 0 7px;font-weight:650;overflow-wrap:anywhere}.card-open{border:0;padding:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-info{font-size:13px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}.tags{font-size:12px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.meta-row{gap:5px;margin-bottom:6px}.pill{font-size:11px;padding:3px 7px;font-weight:600;border-radius:6px;background:#edf2eb;line-height:1.5;color:var(--accent)}.pill.hot{background:var(--soft);color:#724320}.save-btn{width:44px;height:44px;right:6px;top:6px;box-shadow:none;border:1px solid #e0e5db80;background:#ffffffed;color:var(--accent);font-size:23px;display:grid;place-items:center}.feed-card .save-btn{border:0;right:2px;top:5px;width:40px;height:44px}.save-btn.saved{background:var(--accent);color:white}.feature-card .save-btn{right:18px;top:18px}
.empty{width:100%;border:1px dashed var(--line);border-radius:16px;background:#fff9;padding:32px 18px;font-size:14px;line-height:1.8}.empty-action{display:block;margin:14px auto 0;padding:9px 16px;border:1px solid var(--line);border-radius:10px;color:var(--accent);background:white;font-weight:600;min-height:44px}
.calendar-card{border-radius:20px;background:white;box-shadow:none;padding:18px}.calendar-head strong{font-size:18px;letter-spacing:-.02em}.month-btn{width:44px;height:44px;border-radius:12px;background:var(--bg);color:var(--accent)}.calendar-hint{font-size:12px;font-weight:400;margin:8px 0 18px}.weekday-row{font-weight:500}.day-cell{border-radius:10px;background:none;min-height:44px;font-size:14px;font-weight:500;padding:8px 0}.day-cell.has-event{background:#edf2e8;border-color:transparent}.day-cell.selected{background:var(--accent);border-color:var(--accent);color:white}.day-cell.today{box-shadow:inset 0 0 0 1.5px var(--accent)}.day-cell:disabled{cursor:default}.calendar-grid{gap:5px}
.booking-card{border:1px solid var(--line);border-radius:18px;background:white;box-shadow:none;padding:18px}.booking-list-card{padding-right:48px;margin:0}.booking-open{font-size:12px;line-height:1.5;font-weight:600;border-radius:7px;background:var(--accent);padding:5px 9px}.booking-note{color:var(--muted);font-size:12px;font-weight:400}.booking-pill{background:var(--bg);border:1px solid var(--line);color:var(--muted)}.watch-btn,.mini-link{min-height:44px;padding:9px 14px;border-radius:10px;font-size:12px;font-weight:600}.watch-btn{background:var(--accent)}
.tabbar{width:min(100%,520px);padding:8px 12px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#fffffff5;box-shadow:0 -4px 20px #24402105;backdrop-filter:blur(16px);gap:4px}.tabbar button{font-size:11px;font-weight:500;border-radius:12px;padding:8px 0;min-height:56px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:var(--muted)}.tabbar span{margin:0}.tabbar .ui-icon{width:22px;height:22px}.tabbar button.active{background:#eaf0e5;color:var(--accent);font-weight:700}
.sheet-modal{position:relative;width:min(100%,560px);background:var(--surface);border-radius:24px 24px 0 0;padding:12px 22px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -12px 60px #10241820;animation:sheet-in .2s ease-out;overscroll-behavior:contain}.sheet-handle{background:var(--line)}.close-btn{position:sticky;top:0;z-index:3;min-height:44px;min-width:54px;background:var(--bg);color:var(--ink);font-weight:500}.modal-title{font-size:24px;letter-spacing:-.025em;line-height:1.45;padding-top:14px}.detail-row{grid-template-columns:64px minmax(0,1fr);font-size:14px;padding:14px 0;overflow-wrap:anywhere}.detail-label{font-weight:500}.detail-row small{font-size:12px}.action-grid a,.action-grid button{border-radius:12px;font-size:14px;font-weight:600;min-height:48px}.secondary{background:#eef2e9;color:var(--accent)}.primary{background:var(--accent)}#modalContent{position:relative;clear:both;padding-top:14px}#modalContent>.save-btn{top:22px;right:8px}#modalContent .poster{background:var(--bg);min-height:180px;max-height:420px}#modalContent .poster img{width:100%;height:auto;max-height:420px;object-fit:contain}.time-chips span,.price-options span{font-weight:500;color:var(--accent);background:var(--bg)}.settings-toggle{font-weight:500;font-size:14px;min-height:48px}.settings-toggle input:focus-visible+i{outline:3px solid var(--accent);outline-offset:4px}.settings-block h4{font-weight:600}.settings-status,.settings-hint{font-weight:400;line-height:1.7}.settings-keywords{border-radius:12px}.settings-actions button{border-radius:12px;font-weight:600}.settings-permission-help{font-weight:500}
body[data-tab="schedule"] .today-card,body[data-tab="booking"] .today-card,body[data-tab="saved"] .today-card{min-height:112px;padding:20px}.today-card strong{transition:none}body:not([data-tab="home"]) .garden-art{opacity:.3}body[data-tab="schedule"] .today-label,body[data-tab="booking"] .today-label,body[data-tab="saved"] .today-label{display:none}
@keyframes sheet-in{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(hover:hover){.card-open:hover{color:var(--accent)}.feed-card:hover,.feature-card:hover{border-color:#a8baa4;box-shadow:var(--shadow)}.chip:not(.active):hover{background:var(--hero)}}
@media(min-width:760px){.app-shell{max-width:1120px;padding:28px 48px 70px 150px;min-height:100vh}.mobile-header{padding-bottom:24px}h1{font-size:30px}.today-card{min-height:210px;padding:30px}.today-card strong{font-size:32px}.today-card p{max-width:460px;font-size:14px}.today-card>div:first-child{max-width:75%}.garden-art{right:50px;transform:scale(1.3);transform-origin:bottom}.search-panel{margin:24px -4px 0;padding:12px 4px 16px}.search-field{max-width:100%}.horizontal-cards{gap:16px}.feature-card{flex-basis:calc((100% - 32px)/3);min-width:218px}.feature-card .poster{height:186px}.feed-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.feed-list>.empty{grid-column:1/-1}.feed-card{grid-template-columns:80px minmax(0,1fr);padding:14px;gap:12px}.tabbar{position:fixed;top:142px;bottom:auto;left:max(0px,calc((100vw - 1120px)/2));transform:none;width:116px;display:flex;flex-direction:column;border:0;box-shadow:none;background:transparent;padding:0 12px;gap:12px;backdrop-filter:none}.tabbar button{font-size:12px;padding:14px 8px;gap:8px}.tabbar button.active{background:var(--accent);color:white}.calendar-card{max-width:600px;margin:auto}.day-cell{min-height:58px}.modal-backdrop{align-items:center;padding:24px}.sheet-modal{max-height:88vh;border-radius:24px}body[data-tab="booking"] .feed-list{grid-template-columns:1fr}.booking-list-card{max-width:100%}}
@media(min-width:760px) and (max-width:960px){.app-shell{padding-left:120px;padding-right:28px}.feed-list{grid-template-columns:1fr}.tabbar{width:98px}.feature-card{flex-basis:240px}.garden-art{right:8px}}
@media(max-width:374px){.app-shell{padding-left:16px;padding-right:16px}.search-panel{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.today-card{padding:20px 16px}.today-card strong{font-size:23px}.garden-art{right:-23px;opacity:.55}.today-card>div:first-child{max-width:85%}.feed-card{grid-template-columns:68px minmax(0,1fr);gap:10px;padding:12px}.calendar-card{padding:12px}.calendar-grid{gap:2px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
