﻿/* Latest flow v0.5 layout + current hidden-QA decision, 2026-10-14. */
:root{--u-ink:#2a2622;--u-accent:#6351bd;--u-muted:#86796d;--u-line:#f0eae4}
body{background:#fbfaf8}



body[data-unified=true] .sidebar,body[data-unified=true] #catalog,body[data-unified=true] #emptyDetail{display:none!important}
body[data-unified=true] .workspace-shell{display:block!important;height:auto;min-height:calc(100vh - 180px);overflow:visible}
body[data-unified=true] #detailDock{width:100%;max-width:820px;margin:0 auto;border:0;background:transparent;height:auto;overflow:visible}
body[data-unified=true] #detailSurface{padding:16px 28px 64px}
body[data-unified=true] .surface-heading{background:#fbfaf8;border:0}
body[data-unified=true] .recipe-builder{max-width:720px;margin:auto}
.unified-page{max-width:720px;margin:30px auto 0;color:var(--u-ink)}
.u-eyebrow{font-size:11px;font-weight:700;letter-spacing:2.4px;color:var(--u-accent);margin:0 0 22px}
.unified-page h1{font-size:38px;line-height:1.25;letter-spacing:-1.7px;font-weight:750;margin:0 0 18px}
.u-home{max-width:640px}.u-home h1{font-size:48px}.u-home h1 span{color:var(--u-accent)}
.u-lead{font-size:16px;line-height:1.8;color:var(--u-muted);margin:0 0 28px}
.u-label{display:block;font-size:13px;font-weight:650;margin-bottom:10px;color:#5f554d}
#uCreate{background:#fff;padding:24px;border:1px solid var(--u-line);border-radius:18px;box-shadow:0 8px 32px #312b5010}
#uRequest{resize:vertical;border:0;background:#faf9fc;padding:16px;line-height:1.75;border-radius:10px;width:100%;box-sizing:border-box;font:inherit;min-height:145px}
.u-example{display:flex;gap:8px;margin:14px 0 20px}.u-example button,.u-topics button{border:1px solid var(--u-line);background:#fff;border-radius:30px;padding:7px 13px;font-size:12px;color:#72675d}
.u-generate{width:100%;padding:15px 18px;border-radius:10px;background:var(--u-accent)!important;color:#fff;display:flex;justify-content:space-between;font-size:15px}
.u-state{font-size:12px;line-height:1.7;color:var(--u-muted);margin:12px 0 0}
.u-secondary{display:flex;justify-content:space-between;gap:12px;margin:20px 0 42px}.u-secondary button{background:none;border:0;padding:8px 0;color:#6b6057;font-size:13px}
.u-steps{display:flex;list-style:none;padding:22px 0;border-top:1px solid var(--u-line);gap:20px;justify-content:space-between;font-size:12px;color:#70655b}.u-steps span{display:block;font-size:10px;letter-spacing:1px;color:#b2a89e;margin-bottom:6px}
.u-footnote{font-size:11px;color:#9d9082}
.u-topics{display:flex;gap:7px;overflow-x:auto;padding:15px 0;scrollbar-width:thin}.u-topics button{white-space:nowrap}.u-topics button[aria-pressed=true]{background:#eee9fb;border-color:#bfb3e8;color:#5642a3}
.u-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.u-card{display:flex;flex-direction:column;gap:17px;align-items:flex-start;text-align:left;padding:22px;background:#fff;border:1px solid var(--u-line);border-radius:12px;min-width:0;transition:transform .15s,border-color .15s}.u-card:hover{transform:translateY(-2px);border-color:#b9aada}.u-card-tag{font-size:11px;color:#8f8071}.u-card strong{font-size:17px;line-height:1.5}.u-card>span:last-child{font-size:11px;color:#9a8c7e;width:100%;margin-top:auto}.u-card b{float:right;color:var(--u-accent)}
#uSearch{width:100%;box-sizing:border-box;padding:14px;border:1px solid var(--u-line);border-radius:10px;background:white;font:inherit}
#uCount{font-size:12px;color:var(--u-muted);margin:12px 0 18px}
body[data-unified=true] .builder-preview pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.u-home h1{font-size:36px}.unified-page h1{font-size:32px}.unified-page{margin-top:16px}body[data-unified=true] #detailSurface{padding:10px 18px 70px}.u-lead{font-size:14px}#uCreate{padding:17px}.u-grid{grid-template-columns:1fr}.u-steps{gap:10px;font-size:11px}.u-secondary{flex-wrap:wrap;margin-bottom:28px}.u-card{padding:20px}}


/* Restore the established bottom navigation on desktop and mobile. */
body[data-unified=true] .bottom-nav{display:grid!important;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(3,minmax(0,180px));justify-content:center;z-index:20}
body[data-unified=true] #detailSurface{padding-bottom:120px}
body[data-unified=true] .new-recipe-fab{bottom:108px}
.plan-options{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){body[data-unified=true] .bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-options{grid-template-columns:1fr}body[data-unified=true] #detailSurface{padding-left:0;padding-right:0}}
/* The existing app shell clips the document: keep scrolling inside its workspace. */
body[data-unified=true] .workspace-shell{min-height:0;overflow:auto!important;padding-bottom:100px;scroll-padding-bottom:110px}
body[data-unified=true] #detailDock{min-height:0}
.plan-capacity{word-break:keep-all;overflow-wrap:normal;font-size:clamp(1.25rem,2vw,1.6rem)!important}

.fru-reference{font-weight:650;color:var(--u-accent)}.source-name-link{text-align:left;color:var(--u-accent);text-decoration:underline;text-underline-offset:4px}.original-recipe h4{margin:18px 0 8px}.source-preview-dialog{max-width:820px}.source-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 system-ui;background:#faf9fc;border:1px solid var(--u-line);padding:20px;border-radius:12px}
.source-preview-dialog[open]{display:flex;flex-direction:column;gap:12px;max-height:90dvh;overflow:hidden}.source-preview-dialog>h2,.source-preview-dialog>p{margin:0;flex-shrink:0}.source-preview-dialog>a,.source-preview-dialog>button{flex-shrink:0;align-self:flex-start}.source-preview-dialog>.source-prompt{min-height:0;overflow:auto;margin:0}

/* 2026-11-01: 내 정보 탭은 점 3개 대신 사람 아이콘 */
.bottom-nav #navMore::before{content:'\1F464';filter:grayscale(1) contrast(.8)}
.bottom-nav #navMore[aria-current="page"]::before{filter:grayscale(1) brightness(5)}

/* 2026-11-01: Claude 연결은 버튼 하나(주소 복사 + 커넥터 화면 열기) */
.connect-actions{margin:10px 0 4px}.connect-actions button{min-height:48px;padding:0 22px;font-size:16px}.connect-manual{margin-top:8px}.connect-manual summary{cursor:pointer;color:var(--muted);font-size:13px}
