/* WO-THEME-01: 색 변수는 styles/tokens.css가 소유한다. 여기서 같은 이름을 다시 선언하면 토큰을 덮어쓴다. */
:root{font-family:var(--ui-font,Inter,Arial,sans-serif)}
*{box-sizing:border-box}body{margin:0;background:var(--bg-sunken);color:var(--text-1)}
a{color:inherit;text-decoration:none}
.home-shell{display:flex;min-height:100vh}
.home-rail{position:sticky;top:0;height:100vh;width:84px;flex:0 0 84px;background:var(--bg-raised);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:14px 0;gap:4px}
.home-logo{width:72px;height:72px;border-radius:16px;display:grid;place-items:center;margin:-4px 0 8px}
.home-logo img{width:72px;height:72px;display:block}
.rail-item{position:relative;width:72px;padding:9px 0 8px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--text-2);cursor:pointer}
.rail-item:hover{background:var(--bg-sunken);color:var(--text-1)}
.rail-item.active{background:var(--accent-weak);color:var(--accent)}
.rail-spacer{flex:1}
.home-avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--text-inverse);display:grid;place-items:center;font-size:13px;font-weight:700;margin-top:8px}
.home-main{flex:1;min-width:0;padding:28px 32px 60px;max-width:1280px;margin:0 auto}
.home-hero{background:linear-gradient(180deg,var(--bg-raised),var(--bg-sunken));border:1px solid var(--line);border-radius:20px;padding:36px 36px 30px;text-align:center}
.home-hero h1{margin:0 0 10px;font-size:30px;letter-spacing:-.02em}
.home-format{margin:0 0 24px;color:var(--text-2);font-size:13px;display:flex;gap:8px;justify-content:center;align-items:center}
.home-format span{border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:11px;color:var(--text-1);background:var(--bg-raised)}
.start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:880px;margin:0 auto}
.start-card{min-height:128px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:18px 18px 16px;border:1px solid var(--line);border-radius:14px;background:var(--bg-raised);transition:border-color .12s,box-shadow .12s}
.start-card:hover{border-color:var(--line-strong);box-shadow:0 4px 14px var(--shadow-sm)}
.start-card svg{color:var(--accent)}
.start-card b{font-size:15px}.start-card small{color:var(--text-2);font-size:12px;line-height:1.45}
.start-card.primary{background:var(--bg-inverse);border-color:var(--bg-inverse);color:var(--text-inverse)}.start-card.primary small{color:var(--text-3)}.start-card.primary svg{color:var(--text-inverse)}
.home-section{margin-top:36px}
.home-section>header{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}
.home-section h2{margin:0;font-size:18px}
.home-section .hint{color:var(--text-2);font-size:12px}
.status{position:absolute;left:8px;top:8px;font-size:10px;font-weight:600;padding:3px 7px;border-radius:6px;background:var(--bg-raised);color:var(--text-1)}
.status.mp4{background:var(--ok-bg);color:var(--ok-text)}
.sample{position:absolute;right:8px;top:8px;font-size:9px;padding:2px 6px;border-radius:6px;background:#0008;color:#fff}
/* WO-HOME-IA-01 checkpoint A: app shell */
.home-rail a:focus-visible,.ia-page a:focus-visible,.home-main button:focus-visible,.home-main a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.home-avatar:hover{filter:brightness(1.08)}
.ia-mockup{margin:0 0 16px;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--warn-text);background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:999px;padding:4px 12px}
.ia-page{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.ia-page-head{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ia-page-head h1{margin:0;font-size:28px;letter-spacing:-.02em}
.ia-back{font-size:13px;color:var(--text-2);min-height:32px;display:inline-flex;align-items:center}
.ia-back::before{content:"\2190";margin-right:6px}
.ia-back:hover{color:var(--text-1)}
.ia-soon{font-size:12px;font-weight:600;color:var(--text-2);background:var(--bg-hover);border-radius:6px;padding:3px 8px}
.ia-muted{margin:0;color:var(--text-2);font-size:14px;line-height:1.5}
.ia-button{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:10px;background:var(--bg-inverse);color:var(--text-inverse);font-weight:600;font-size:14px}
.ia-error{margin:-4px 0 14px;padding:10px 14px;border-radius:10px;background:var(--danger-bg);color:var(--danger-text);font-size:13px}
.ia-thumb.empty,.thumb.empty{background:repeating-linear-gradient(135deg,var(--bg-hover) 0 12px,var(--bg-hover) 12px 24px)}
.ia-thumb-note{position:absolute;left:8px;right:8px;bottom:8px;font-size:11px;text-align:center;background:#fffffff0;border-radius:6px;padding:4px}
/* WO-HOME-IA-01 checkpoint B: rows, cards, star, search, empty states, modal */
.start-card .start-note{margin-top:auto;padding-top:6px;color:var(--warn-text);font-size:11px}
.start-card.primary .start-note{color:var(--warn-text)}
.home-hero+.ia-error,.home-hero~.ia-error{margin-top:20px}
.ia-row{margin-top:32px;min-width:0}
.ia-row-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-width:0}
.ia-row-head h2{margin:0;font-size:18px;white-space:nowrap}
.ia-row-tools{margin-left:auto;display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ia-icon-btn{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--bg-raised);color:var(--text-1);font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center}
.ia-icon-btn:hover{background:var(--bg-sunken)}
.ia-see-all{min-height:40px;display:inline-flex;align-items:center;padding:0 12px;border-radius:10px;font-size:13px;font-weight:600;color:var(--accent)}
.ia-see-all:hover{background:var(--accent-weak)}
.ia-scroller{display:flex;gap:16px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:thin}
.ia-scroller>*{scroll-snap-align:start}
.ia-card{position:relative;flex:0 0 auto;width:184px;container-type:inline-size}
.ia-card.photo{width:212px}.ia-card.video{width:224px}
.ia-grid .ia-card{width:auto}
.ia-card-hit{display:flex;flex-direction:column;gap:6px;width:100%;padding:0;margin:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:12px}
.ia-thumb{position:relative;width:100%;border-radius:12px;background:var(--bg-hover) center/cover no-repeat;border:1px solid var(--line);overflow:hidden;transition:transform .12s,box-shadow .12s}
.ia-thumb.poster{aspect-ratio:9/16}.ia-thumb.photo{aspect-ratio:4/3}.ia-thumb.video{aspect-ratio:16/9}
.ia-card-hit:hover .ia-thumb{transform:translateY(-2px);box-shadow:0 8px 20px var(--shadow-sm)}
.ia-card-title{font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
.ia-card-hit small{color:var(--text-2);font-size:11px}
.ia-current{position:absolute;right:8px;top:8px;font-size:10px;font-weight:600;padding:3px 7px;border-radius:6px;background:var(--accent);color:var(--text-inverse)}
.status.downloaded{background:var(--accent-weak);color:var(--accent-text)}
.ia-thumb-note{right:52px}
/* star sits in the thumbnail's bottom-right corner: separate from the top badges and outside the link */
.ia-star{position:absolute;right:8px;width:36px;height:36px;border-radius:50%;border:1px solid var(--shadow-sm);background:var(--bg-raised);color:var(--text-1);font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:0 1px 4px var(--shadow-sm)}
.ia-card.poster>.ia-star{top:calc(100cqw * 16 / 9 - 44px)}
.ia-card.photo>.ia-star{top:calc(100cqw * 3 / 4 - 44px)}
.ia-card.video>.ia-star{top:calc(100cqw * 9 / 16 - 44px)}
.ia-star.on{color:var(--warn-text)}
.ia-star:hover{background:var(--bg-raised)}
.ia-empty-card{border:1.5px dashed var(--line-strong);border-radius:12px;aspect-ratio:9/16;display:flex;align-items:center;justify-content:center;background:var(--bg-raised)}
.ia-empty-inner{display:flex;flex-direction:column;gap:8px;padding:16px;text-align:center;align-items:center}
.ia-empty-inner b{font-size:14px}.ia-empty-inner small{color:var(--text-2);font-size:12px;line-height:1.45}
.ia-link{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:10px;font-size:13px;font-weight:600;color:var(--accent);background:var(--accent-weak)}
.ia-empty{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border:1px dashed var(--line-strong);border-radius:14px;background:var(--bg-raised);min-width:260px;max-width:520px;flex:0 0 auto}
.ia-empty b{font-size:14px}.ia-empty p{margin:0;color:var(--text-2);font-size:13px;line-height:1.5}
.ia-empty-actions{display:flex;gap:8px;margin-top:6px}
.ia-button.ghost{background:var(--bg-raised);color:var(--text-1);border:1px solid var(--line);cursor:pointer;font:inherit;font-weight:600;font-size:13px}
.ia-group{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;padding-left:16px;border-left:1px dashed var(--line-strong)}
.ia-group-label{font-size:11px;font-weight:600;color:var(--text-2);text-transform:none}
.ia-group-cards{display:flex;gap:16px}
.ia-local-note{margin:24px 0 0;font-size:12px;color:var(--text-2)}
.ia-search{display:flex;gap:8px;align-items:center;width:min(560px,100%);margin:4px 0 4px}
.ia-search input{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font:inherit;font-size:14px;background:var(--bg-raised);color:var(--text-1)}
.ia-search input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ia-search-clear{min-height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg-raised);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.ia-projects,.ia-see-all-page{align-items:stretch}
.ia-projects>.ia-row:first-of-type{margin-top:16px}
.ia-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:20px 16px;width:100%}
.ia-grid.photos{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.ia-subhead{margin:20px 0 4px;font-size:16px}
.ia-audio-list{display:flex;flex-direction:column;gap:8px;max-width:720px;width:100%}
.ia-audio-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 12px 8px 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg-raised)}
.ia-audio-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ia-audio-text b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ia-audio-text small{color:var(--text-2);font-size:12px}
.ia-audio-row .ia-star{position:static;box-shadow:none;border-color:var(--line)}
.ia-modal-backdrop{position:fixed;inset:0;background:var(--shadow-sm);display:grid;place-items:center;z-index:50;padding:24px}
.ia-modal{width:min(440px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--bg-raised);border-radius:18px;padding:18px 20px 22px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 60px var(--shadow-sm)}
.ia-modal-head{display:flex;align-items:flex-start;gap:12px}
.ia-modal-head h2{margin:0;font-size:18px;flex:1;line-height:1.35;overflow-wrap:anywhere}
.ia-modal .ia-thumb.poster{max-height:52vh;width:auto;margin:0 auto;aspect-ratio:9/16;height:52vh}
.ia-search input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
/* WO-HOME-IA-01 checkpoint C: Templates tiles, video grid, audio preview */
.ia-templates>.ia-page-head h1{font-size:34px}
.ia-explore{width:100%;margin-top:16px}
.ia-explore h2{margin:0 0 12px;font-size:18px}
.ia-tiles{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px;overflow-x:auto;padding:2px 2px 8px}
.ia-tile{min-height:96px;min-width:160px;border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between;color:var(--text-inverse);transition:transform .12s,box-shadow .12s}
.ia-tile:hover{transform:translateY(-2px);box-shadow:0 8px 20px var(--shadow-sm)}
.ia-tile b{font-size:17px}.ia-tile small{font-size:12px;opacity:.9}
.tile-ads{background:linear-gradient(135deg,#7454ed,#a07cf6)}
.tile-images{background:linear-gradient(135deg,#0f8f7e,#38b59d)}
.tile-videos{background:linear-gradient(135deg,#d9622b,#f0954f)}
.tile-audio{background:linear-gradient(135deg,#2f5bd3,#5b8bf0)}
.ia-templates>.ia-row:first-of-type{margin-top:28px}
.ia-grid.videos{grid-template-columns:repeat(auto-fill,minmax(224px,1fr))}
.ia-play{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--bg-sunken);color:var(--text-1);font-size:13px;cursor:pointer;display:grid;place-items:center}
.ia-play[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--text-inverse)}
.ia-audio-row.playing{border-color:var(--accent-weak);background:var(--bg-sunken)}
.ia-audio-error{color:var(--danger-text)!important}
.ia-templates{align-items:stretch}
/* WO-HOME-IA-01 checkpoint D: Ad Planner calendar + Settings */
.ia-planner,.ia-settings{align-items:stretch}
.ia-cal-head{display:flex;align-items:center;gap:12px;margin-top:8px}
.ia-cal-head h2{margin:0;font-size:22px;flex:1}
.ia-cal-nav{display:flex;gap:8px;align-items:center}
.ia-cal{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg-raised)}
.ia-cal-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ia-cal-weekdays span{padding:10px 12px;font-size:12px;font-weight:600;color:var(--text-2);background:var(--bg-sunken);border-bottom:1px solid var(--line)}
.ia-cal-cell{min-height:104px;padding:6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px;min-width:0}
.ia-cal-row>.ia-cal-cell:last-child{border-right:0}
.ia-cal-cell.empty{background:var(--bg-sunken)}
.ia-cal-date{align-self:flex-start;min-width:32px;height:32px;padding:0 8px;border-radius:16px;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--text-1);cursor:pointer}
.ia-cal-date:hover{background:var(--bg-sunken)}
.ia-cal-cell.today .ia-cal-date{background:var(--accent);color:var(--text-inverse)}
.ia-cal-event{display:flex;flex-wrap:wrap;align-items:center;gap:4px;width:100%;min-height:32px;padding:4px 6px;border-radius:8px;border:1px solid var(--line);background:var(--bg-sunken);font:inherit;font-size:11px;text-align:left;cursor:pointer;min-width:0}
.ia-cal-event:hover{border-color:var(--line-strong)}
.ia-cal-event-title{flex:1 1 100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--text-1)}
.ia-plan-status{font-size:10px;font-weight:700;padding:2px 6px;border-radius:5px}
.ia-plan-status.planned{background:var(--bg-hover);color:var(--text-1)}
.ia-plan-status.ready{background:var(--ok-bg);color:var(--ok-text)}
.ia-plan-status.posted{background:var(--accent-weak);color:var(--accent-text)}
.ia-sample-pill{font-size:9px;padding:2px 6px;border-radius:5px;background:#0008;color:#fff}
.ia-modal-badges{display:flex;gap:6px;align-items:center}
.ia-plan-day-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ia-plan-day-list li{display:flex;gap:8px;align-items:center;font-size:14px}
.ia-settings-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;max-width:760px}
.ia-setting{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--bg-raised);min-height:72px}
.ia-setting-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ia-setting-text b{font-size:15px}.ia-setting-text small{color:var(--text-2);font-size:13px;line-height:1.45}
.ia-select{height:40px;min-width:180px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;font-size:14px;background:var(--bg-raised);color:var(--text-1)}
.ia-select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
/* ===== WO-HOME-IA-01 checkpoint F (Fable FIX LIST 5-11) ===== */
/* F10 mockup notice: small grey outline pill at the right of the title row */
.ia-mockup{margin:0 0 0 auto;flex:0 0 auto;font-size:11px;font-weight:500;color:var(--text-2);background:transparent;border:1px solid var(--line-strong);border-radius:999px;padding:2px 10px;white-space:nowrap}
.ia-title-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0}
.ia-title-row h1{margin:0}
.home-hero{position:relative}
.home-hero>.ia-mockup{position:absolute;top:14px;right:16px}
/* F6 density: 160px posters, tighter section rhythm */
.ia-card{width:160px}
.ia-card.photo{width:200px}
.ia-row{margin-top:20px}
.ia-scroller{padding-bottom:4px}
.ia-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.home-hero{padding:28px 32px 24px}
.home-hero h1{font-size:28px}
.home-format{margin-bottom:18px}
/* F9 section description on its own line under the title */
.ia-row-head{margin-bottom:4px;min-height:40px}
.ia-row-hint{margin:0 0 10px;font-size:12.5px;color:var(--text-2);line-height:1.4}
.ia-row-head+.ia-scroller{margin-top:8px}
.start-card .start-note,.start-card.primary .start-note{color:var(--text-2)}
.start-card.primary .start-note{color:var(--text-3)}
/* F7 badges: overlay max 2 (Current, Sample); status on the meta line; missing media as centred placeholder text */
.ia-badge{position:absolute;top:8px;font-size:10px;font-weight:600;padding:3px 7px;border-radius:6px;line-height:1.2}
.ia-badge.sample,.sample{right:8px;left:auto;background:var(--shadow-sm);color:var(--text-inverse);font-weight:500}
.ia-badge.ia-current{left:8px;right:auto;background:var(--accent);color:var(--text-inverse)}
.ia-card-meta{display:block;color:var(--text-2);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ia-card-meta .status{position:static;padding:0;background:none;border-radius:0;font-size:11px;font-weight:600;color:var(--text-1)}
.ia-card-meta .status.mp4{color:var(--ok-text)}
.ia-card-meta .status.downloaded{color:var(--accent-text)}
.ia-thumb-note{left:0;right:0;top:50%;bottom:auto;transform:translateY(-50%);background:none;color:var(--text-2);font-size:12px;text-align:center;padding:0 8px}
.ia-cal-event-line{display:flex;align-items:baseline;gap:4px;flex:1 1 100%;min-width:0}
.ia-cal-event-line .ia-cal-event-title{flex:0 1 auto}
.ia-cal-sample{flex:0 0 auto;font-size:10px;color:var(--text-2);white-space:nowrap}
/* F5 favorites: one thumbnail height per row, width follows the original ratio */
.ia-card.fixed-h .ia-thumb{height:var(--th);aspect-ratio:auto}
.ia-card.fixed-h>.ia-star{top:calc(var(--th) - 44px)}
.ia-fixed-grid{display:flex;flex-wrap:wrap;gap:20px 16px;align-items:flex-start;width:100%}
/* F8 compact empty line */
.compact-row .ia-scroller{padding:0}
.ia-empty.ia-empty-compact{flex-direction:row;align-items:baseline;gap:8px;padding:10px 14px;max-width:none;min-width:0;width:100%;font-size:13px;margin:0}
.ia-empty-compact b{font-size:13px}.ia-empty-compact span{color:var(--text-2)}
/* F11 audio list uses the content width, 52px rows */
.ia-audio-list{max-width:none;width:100%}
.ia-audio-row{min-height:52px;padding:6px 12px 6px 14px}
.ia-audio-row .ia-star{width:36px;height:36px}
.ia-star-note{margin:6px 0 0;font-size:12px;color:var(--text-2);display:flex;align-items:center;gap:6px}
.ia-star-note span{font-size:13px;color:var(--text-3)}

/* DEC-033: Canva-style tile illustration (own assets only), clipped inside the rounded tile, text stays left */
.ia-tile{position:relative;overflow:hidden}
.ia-tile>b,.ia-tile>small{position:relative;z-index:1;max-width:58%}
.ia-tile-art{position:absolute;right:0;top:0;bottom:0;width:112px;pointer-events:none}
.ia-tile-art .mini{position:absolute;display:block;object-fit:cover;border-radius:6px;border:2px solid var(--bg-raised);box-shadow:0 4px 12px var(--shadow-sm);background:var(--bg-hover)}
.art-ads .poster{width:42px;height:75px}.art-ads .a{right:46px;top:20px;transform:rotate(-9deg)}.art-ads .b{right:8px;top:12px;transform:rotate(7deg)}
.art-images .photo{width:64px;height:48px}.art-images .a{right:38px;top:16px;transform:rotate(-8deg)}.art-images .b{right:4px;top:42px;transform:rotate(6deg)}
.art-videos .video{width:88px;height:50px;right:8px;top:24px;overflow:hidden;transform:rotate(-7deg)}.art-videos .video img{width:100%;height:100%;object-fit:cover;display:block}
.mini-play{position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--shadow-sm);color:var(--text-inverse);display:grid;place-items:center}
.art-audio svg{position:absolute;right:6px;top:12px}
.ia-notice{background:var(--accent-weak);border:1px solid var(--accent-weak);border-radius:10px;padding:8px 12px;font-size:13px}

.ia-card-menu{position:absolute;right:8px;bottom:52px;width:32px;height:32px;border-radius:8px;border:1px solid var(--line-strong);background:#fffffff0;font-size:16px;line-height:1;z-index:3;cursor:pointer}
.ia-card-menu:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.ia-project-menu{position:absolute;right:8px;bottom:88px;z-index:20;background:var(--bg-raised);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 10px 30px var(--shadow-sm);padding:6px;display:flex;flex-direction:column;min-width:160px}
.ia-project-menu [role=menuitem]{text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;font-size:13px;color:var(--text-1);text-decoration:none;cursor:pointer}
.ia-project-menu [role=menuitem]:hover,.ia-project-menu [role=menuitem]:focus-visible{background:var(--accent-weak);outline:none}
.ia-project-menu .danger,.ia-confirm .danger{color:var(--danger-text)}
.ia-confirm h2{margin:0;font-size:18px}.ia-confirm-actions{display:flex;justify-content:flex-end;gap:8px}
.ia-confirm-actions button{border:1px solid var(--line-strong);border-radius:10px;background:var(--bg-raised);padding:8px 14px}
.ia-confirm-actions .primary{background:var(--accent);color:var(--text-inverse);border-color:var(--accent)}
.ia-confirm-actions .danger{border-color:var(--danger-line)}
.ia-field{display:flex;flex-direction:column;gap:6px;font-size:13px}.ia-field input{border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;font-size:14px}
.ia-blank-project{position:absolute;inset:0;display:grid;place-items:center;padding:18px;text-align:center;color:var(--text-2);font-size:13px;font-weight:600;background:linear-gradient(145deg,#ffffff42,#d9dde650);text-shadow:0 1px 0 var(--bg-raised)}

/* Approved HTML Home layout (DEC-050) */
.home-shell{display:grid;grid-template-columns:238px 1fr;background:#f7f8fa}.home-shell .home-rail{background:#fff;border-right:1px solid var(--line);padding:24px 16px 18px;display:flex;flex-direction:column;min-width:0}.home-shell .home-rail .brand{padding:0 10px 28px}.home-shell .home-nav{display:grid;gap:7px}.home-shell .rail-item{border:0;background:transparent;text-align:left;padding:12px 13px;border-radius:10px;font-weight:650;color:#364152;display:flex;align-items:center;gap:12px}.home-shell .rail-item:hover,.home-shell .rail-item.active{background:#edf3ff;color:#194ec8}.home-shell .nav-ico{width:22px;text-align:center;font-size:18px}.home-shell .home-profile{margin-top:auto;border-top:1px solid var(--line);padding-top:14px}.home-shell .profile-row{width:100%;border:0;background:transparent;border-radius:10px;padding:9px;display:flex;align-items:center;gap:10px;text-align:left}.home-shell .profile-row:hover{background:var(--soft)}.home-shell .avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#18243b;color:#fff;font-weight:800}.home-shell .profile-copy{min-width:0}.home-shell .profile-copy strong,.home-shell .profile-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-shell .profile-copy span{font-size:12px;color:var(--muted);margin-top:2px}.home-shell .home-main{overflow:auto;padding:38px 42px 70px}.home-shell .home-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.home-shell .eyebrow{color:var(--blue);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.home-shell .home-title h1{font-size:31px;letter-spacing:-.04em;margin:5px 0 0}.home-shell .section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.home-shell .section-head h2{font-size:19px;margin:0}.home-shell .text-btn{border:0;background:transparent;color:var(--blue);font-weight:700}.home-shell .card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-shell .project-card,.home-shell .template-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 4px 12px rgba(34,48,72,.04);transition:.18s}.home-shell .project-card:hover,.home-shell .template-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.home-shell .thumb{height:164px;position:relative;background:linear-gradient(145deg,#172632,#466e7d)}.home-shell .thumb.food{background:radial-gradient(circle at 58% 58%,#e7a229 0 14%,transparent 15%),radial-gradient(circle at 58% 58%,#603514 0 25%,transparent 26%),linear-gradient(135deg,#183126,#947248)}.home-shell .thumb.salon{background:radial-gradient(circle at 64% 47%,#f2c7a5 0 15%,transparent 16%),linear-gradient(130deg,#54435a,#d6aab8)}.home-shell .thumb.deck{background:linear-gradient(90deg,#b7773e 0 47%,#ece7df 47% 53%,#71675c 53%)}.home-shell .thumb .tag{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.92);padding:6px 8px;border-radius:7px;font-size:11px;font-weight:800}.home-shell .thumb .promo{position:absolute;left:18px;bottom:20px;background:var(--yellow);padding:7px 10px;font-weight:900;font-size:17px;line-height:1.05}.home-shell .card-meta{padding:14px}.home-shell .card-meta strong{display:block;font-size:15px}.home-shell .card-meta span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.home-shell .template-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.home-shell .template-card .thumb{height:205px}.home-shell .hover-play:after{content:"Preview on hover";position:absolute;inset:auto 12px 12px auto;background:rgba(13,20,32,.82);color:white;padding:6px 9px;border-radius:999px;font-size:11px;opacity:0;transition:.18s}.home-shell .hover-play:hover:after{opacity:1}

/* React uses real project cards in the approved Home shell. */.home-shell{--blue:var(--accent,#2563eb);--ink:var(--text-1,#121826);--muted:var(--text-2,#687386);--line:var(--border,#dfe4ec);--soft:var(--bg-sunken,#f4f6f9);--shadow:0 14px 34px rgba(22,34,55,.12);display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.home-shell .home-rail{width:238px;height:100vh;position:sticky;top:0;align-items:stretch;gap:7px}.home-shell .home-logo{width:auto;height:58px;display:flex;gap:11px;margin:0 0 22px;font-size:18px;padding:0 10px}.home-shell .home-logo img{width:29px;height:29px}.home-shell .rail-item{width:100%;font:inherit;font-size:14px;flex-direction:row;gap:12px;min-height:46px;color:var(--text-2);background:transparent;border:0}.home-shell .home-nav{display:grid;gap:7px}.home-shell .home-main{width:100%;max-width:none;min-width:0;margin:0;padding:38px 42px 70px}.home-shell .home-profile{width:100%;padding:14px 9px 0}.home-shell .home-profile .account-popover{bottom:48px;left:0;top:auto}.home-shell .home-title h1{margin:5px 0 0}.home-shell .home-section{margin-top:28px}.home-shell .home-section h2{font-size:19px}.home-shell .home-section>header{margin-bottom:14px}.home-shell .home-section .hint{font-size:12px}.home-shell .home-section .cards{gap:16px}.home-shell .home-section .card{border-radius:15px}.home-shell [data-route=home] .ia-mockup{display:none}@media(max-width:760px){.home-shell{grid-template-columns:180px minmax(0,1fr)}.home-shell .home-rail{width:180px;padding:20px 8px}.home-shell .home-main{padding:26px 18px}.home-shell .home-title h1{font-size:25px}}

.home-page-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.home-shell .home-section .ia-card-row{gap:16px}.home-shell[data-route=home] .ia-mockup{display:none}

/* Approved central recent grid / recommended template row, with actual document thumbnails. */
.home-shell[data-route=home] [data-row=recent] .ia-scroller{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:visible}
.home-shell[data-route=home] [data-row=recommended] .ia-scroller{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;overflow:visible}
.home-shell[data-route=home] .ia-card{width:auto;min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--bg-raised);box-shadow:0 4px 12px rgba(34,48,72,.04);overflow:hidden}
.home-shell[data-route=home] .ia-card-hit{gap:0}.home-shell[data-route=home] .ia-thumb{aspect-ratio:auto;height:164px;border-radius:0}.home-shell[data-route=home] [data-row=recommended] .ia-thumb{height:205px}.home-shell[data-route=home] .ia-card-title{padding:14px 14px 0;font-size:15px}.home-shell[data-route=home] .ia-card-hit>small{padding:5px 14px 14px}.home-shell[data-route=home] .ia-card>.ia-star{top:12px}.home-shell[data-route=home] .ia-row-head h2{font-size:19px}.home-shell[data-route=home] .ia-row{margin-top:28px}@media(max-width:1280px){.home-shell[data-route=home] [data-row=recommended] .ia-scroller{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.home-shell[data-route=home] [data-row=recent] .ia-scroller,.home-shell[data-route=home] [data-row=recommended] .ia-scroller{grid-template-columns:repeat(2,minmax(0,1fr))}}
.saved-templates-section{margin:24px 0 32px}.saved-templates-section>h2{font-size:19px;margin-bottom:8px}.saved-templates-section .ia-grid{margin-top:16px}.saved-template-card .ia-card-meta{display:block}
