/* v1.1 — self-review refinements. Base library tokens remain in style.css. */
:root{--blue:#245bd6;--paper:#f5f6f3;--muted:#566570;--radius:14px}
input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:17px;height:17px;flex-shrink:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.btn{font-size:13px;min-height:44px;padding:11px 17px;gap:12px;border-radius:8px}.btn.subtle{border-color:transparent;background:transparent;color:#526674;font-weight:400}.btn.primary{box-shadow:0 3px 6px #245bd615}.btn:active{transform:translateY(0)}
.topbar{font-size:12px}.topbar a{font-size:12px}.sidebar nav a{font-size:13px;padding-block:13px}.sidebar .nav-caption{font-size:10px}.sidebar nav a small{font-size:11px}.sidebar nav a svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none}
.page-kicker{display:flex;justify-content:space-between;gap:20px;align-items:center}.page-kicker .eyebrow{margin-bottom:0}.edition-pill{font-size:11px;color:#617174}.page-title{font-size:36px;line-height:1.5;margin-top:16px;letter-spacing:-1.2px}.page-intro{font-size:14px;line-height:1.9;margin-bottom:30px}.eyebrow{font-size:10px}.panel{border-color:#dce2de;box-shadow:0 3px 10px #172c3e03;border-radius:14px;padding:25px}.panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:25px}.panel-heading h2{font-size:17px;margin:0;letter-spacing:-.4px}.panel-heading p{font-size:12px;color:var(--muted);margin:2px 0 0}.panel-heading>small{margin-left:auto;color:#245bd6;font-size:11px;white-space:nowrap}.step-label{font-size:12px;border:1px solid #d7e1e7;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#345c76;background:#f4f7f9;flex-shrink:0}
.field>label,.field>legend{font-size:13px;margin-bottom:10px}.field>label{display:flex;justify-content:space-between;gap:10px}.field>label a{font-size:11px;color:var(--blue);font-weight:400}.field>label output{margin-left:auto}.field select,.field>input{font-size:14px;min-height:46px}.field small{font-size:11px;font-weight:400}.field{margin-bottom:22px}.field:last-child{margin-bottom:0}.check-row{gap:8px}.check-row label{border:1px solid #dce2e5;border-radius:7px;font-size:12px;padding:8px 10px;cursor:pointer;min-height:40px}.check-row label:has(:checked){border-color:#b9ccf5;background:#eef4ff;color:#204da9}.check-row input{margin:0 3px 0 0}
.generator-layout{grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);gap:24px;align-items:start}.builder-config{display:grid;gap:20px}.output-panel{padding:24px;top:22px}.output-panel>h2{font-size:21px;margin:12px 0 18px}.output-title{display:flex;justify-content:space-between;align-items:center;font-size:10px;gap:8px}.live-label{letter-spacing:1.3px;color:#375e60;font-size:9px;font-weight:600;white-space:nowrap}.live-label i{width:6px;height:6px;background:#4b806b;display:inline-block;border-radius:50%;margin-right:6px}.output-title #save-status{color:#61717d;font-size:10px}.builder-swatches{display:flex;align-items:center;gap:3px;margin-top:10px}.builder-swatches i{width:24px;height:20px;border-radius:4px;border:1px solid #0001}.builder-swatches span{font-size:10px;color:var(--muted);margin-left:6px}.brief-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.brief-summary span{font-size:10px;background:#f0f3f4;color:#516572;border:1px solid #e5eaeb;padding:3px 8px;border-radius:5px}.output-divider{border-top:1px solid #e2e7e5;margin:21px 0}.output-panel .prompt-head{margin-bottom:12px}.output-panel .prompt-head h3{font-size:13px}.output-panel .prompt-head>span{font-size:10px;color:var(--muted)}.generator-layout .prompt{height:235px;background:#f8fafb;border-color:#dce3e7;font-size:12px;line-height:1.9;padding:14px;scrollbar-width:thin}.output-actions{display:grid;grid-template-columns:1.1fr 1fr;gap:9px;margin-top:13px}.output-actions .btn{font-size:12px;padding-inline:10px}.output-actions .primary{justify-content:space-between}.output-panel>.mobile-note{font-size:11px;margin:12px 0 2px}.output-panel>#generate{font-size:11px;min-height:30px;padding:3px 0}
.browser-mock{border:1px solid #dce3e7;border-radius:10px;overflow:hidden;background:#fff}.browser-chrome{display:flex;align-items:center;justify-content:space-between;font-size:8px;padding:9px 13px;background:#f4f6f8;border-bottom:1px solid #e1e6e9;color:#617380}.browser-chrome>span:first-child{font-size:7px;letter-spacing:2px;color:#9cabb7}.browser-chrome small{font-size:7px;letter-spacing:1px}.brief-preview.theme-preview{border:0;border-radius:0;padding:19px;font-size:13px!important;min-height:281px}.mock-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.mock-nav b{font-size:14px;letter-spacing:-.4px}.mock-nav b span{font-size:8px;font-weight:400;letter-spacing:0}.mock-avatar{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);font-size:8px}.mock-welcome{display:flex;justify-content:space-between;align-items:center}.mock-welcome h3{font-size:15px}.mock-cta{background:var(--accent);color:var(--button-text);font-size:9px;display:inline-flex;border-radius:4px;padding:6px 9px}.mock-kpis{display:grid;grid-template-columns:1.15fr 1fr;gap:9px}.mock-kpis .sample-card{padding:12px;margin-top:13px;min-width:0}.mock-kpis .sample-kpi{font-size:23px;letter-spacing:-.8px}.brief-preview .caption{font-size:9px}.brief-preview .mock-chart{padding:12px;margin-top:9px}.mock-chart>div{display:flex;justify-content:space-between}.mock-chart b{font-size:10px}.brief-preview .mock-chart svg{height:58px}.preview-caption{font-size:10px;color:var(--muted);margin:9px 0 0;line-height:1.8}.mock-site{padding:25px 0 16px}.mock-site small{font-size:8px;letter-spacing:1px}.mock-site h3{font-size:27px;line-height:1.5;letter-spacing:-1px;margin:9px 0}.mock-site p{font-size:10px}.mock-products{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mock-products .sample-card{padding:12px}.mock-products b{font-size:10px}.product-shape{height:95px;background:var(--bg);position:relative;border-radius:5px;margin-bottom:10px;display:grid;place-items:center}.product-shape:before{content:'';width:45px;height:63px;background:var(--accent);opacity:.8;border-radius:5px 5px 12px 12px;transform:rotate(-10deg)}.product-shape.alt:before{border-radius:50%;width:60px;height:60px;transform:none}.mock-mobile{max-width:240px;margin:auto}.mock-mobile small{font-size:9px}.mock-mobile h3{font-size:20px}.mock-mobile .sample-card{padding:12px;margin-top:10px}.mock-progress{height:4px;background:var(--line);border-radius:3px;margin-top:8px}.mock-progress i{height:100%;width:72%;background:var(--accent);display:block;border-radius:3px}.mock-task{font-size:9px;padding:9px 0;border-bottom:1px solid var(--line)}.mock-bottom{font-size:9px;padding-top:12px;text-align:center}
.preset-row{font-size:10px;display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:-7px 0 15px;color:#61717d}.preset-row button{font-size:10px;border:1px solid #dae4eb;background:#f4f7fb;border-radius:5px;color:#2f5075;padding:6px 7px;min-height:32px}.preset-row button:hover{border-color:#8aace9}.selection-actions{justify-content:space-between;gap:5px;margin-bottom:12px}.selection-actions .btn{font-size:11px;min-height:36px;padding:6px 9px}#part-search{width:100%;font-size:13px;min-height:43px;border-radius:8px;margin-bottom:10px}.selection-grid{grid-template-columns:1fr 1fr;max-height:300px;padding:6px;gap:4px}.selection-grid label{cursor:pointer;font-size:12px;min-height:49px;gap:8px;padding:7px 8px;border:1px solid transparent;border-radius:6px;line-height:1.5}.selection-grid label:hover{background:#f5f7f9}.selection-grid label.picked{background:#edf3ff;border-color:#cbdcfb}.selection-grid label[hidden]{display:none}.selection-grid small{display:block;font-size:9px;color:#657887;margin-top:2px}.selection-grid input{margin:0}.selected-parts{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.selected-parts button{border:1px solid #cbdaf3;background:#eff4ff;color:#214b98;padding:5px 8px;border-radius:6px;font-size:11px;min-height:32px}.selected-parts button span{margin-left:7px}.selected-parts p{margin:0;font-size:11px;color:var(--muted)}#picker-result:not(:empty){margin-top:8px}.mobile-builder-bar{display:none}
.detail-top{position:sticky;top:0;background:#fafbf9eb;backdrop-filter:blur(12px);z-index:3;padding-bottom:15px;border-bottom:1px solid #e2e7e4}.detail-top button{min-height:38px;font-size:12px}.detail-body h2{font-size:32px;letter-spacing:-.8px}.detail-body .en{font-size:13px}.detail-body>p{font-size:14px}.detail-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 20px}.detail-quick-actions .btn{font-size:12px}.detail-grid h3{font-size:13px}.detail-grid p{font-size:13px}.detail-grid section{padding:18px}.detail-body .prompt{font-size:13px}.demo{min-height:260px;background:#f0f4f8}.demo .mini{font-size:15px}.detail-body .mobile-note{font-size:12px}dialog{box-shadow:0 28px 90px #07172745;max-width:880px}
.theme-preview .caption{font-size:.8em}.color-codes button{font-size:12px;padding:9px;min-height:50px}.color-codes small{font-size:10px}.palette-option{min-height:58px;font-size:13px}.mobile-note{font-size:12px;line-height:1.85}.panel>.section-head h3{font-size:12px;letter-spacing:1px}
@media(max-width:1150px) and (min-width:701px){.generator-layout{grid-template-columns:1fr}.output-panel{position:static}.builder-config{grid-template-columns:1fr 1fr;align-items:start}.output-panel #builder-preview{max-width:600px}.output-panel .prompt{height:270px}.edition-pill{display:none}}
@media(max-width:700px){.sidebar nav a{font-size:10px;min-height:42px;padding:9px 6px}.sidebar nav a>span{font-size:15px}.sidebar nav a small{font-size:10px}.topbar,.topbar a{font-size:11px}.edition-pill{display:none}.page-title{font-size:28px;line-height:1.6;letter-spacing:-1px;margin-top:14px}.page-intro{font-size:13px;line-height:1.9;margin-bottom:25px}.generator-layout{display:flex;flex-direction:column;gap:20px}.builder-config{width:100%}.panel{padding:20px;border-radius:12px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:11px}.panel-heading{margin-bottom:22px;gap:10px}.field>label,.field>legend{font-size:13px}.field select,.field>input,#part-search{font-size:16px}.check-row label{font-size:12px;min-height:44px}.preset-row button{min-height:36px}.selection-grid{max-height:280px;grid-template-columns:1fr 1fr}.selection-grid label{font-size:11px;padding:7px;gap:6px}.selection-grid small{font-size:8px}.selection-actions .btn{font-size:10px}.output-panel{width:100%;position:static;scroll-margin-top:15px}.output-panel>h2{font-size:20px}.generator-layout .prompt{height:260px}.output-actions{grid-template-columns:1fr}.output-actions .btn{font-size:13px;min-height:46px}.brief-preview.theme-preview{padding:15px}.mock-kpis .sample-kpi{font-size:21px}.preview-caption{font-size:10px}.output-panel>#generate{min-height:40px}.mobile-builder-bar{position:fixed;bottom:0;left:0;right:0;z-index:4;display:flex;justify-content:space-between;align-items:center;background:#fffffff2;backdrop-filter:blur(12px);border-top:1px solid #d8e1e5;box-shadow:0 -3px 18px #142b3c06;padding:12px 20px max(12px,env(safe-area-inset-bottom));font-size:12px}.mobile-builder-bar .btn{min-height:42px;font-size:12px;padding:9px 14px}.app:has(.mobile-builder-bar){padding-bottom:75px}.detail-body h2{font-size:27px}.detail-body>p{font-size:13px}.detail-quick-actions .btn{font-size:11px;min-height:42px}.detail-quick-actions{gap:7px}.detail-grid p{font-size:12px}.detail-body .prompt{font-size:12px}.demo{min-height:230px;padding:20px}.demo .mini{font-size:14px}.color-codes button{font-size:11px}.color-codes small{font-size:9px}}
/* Discovery and hierarchy — review 2 */
.hero{padding-top:2px;padding-bottom:33px;grid-template-columns:1.3fr 1fr;gap:30px}.hero h1{font-size:39px;line-height:1.6;letter-spacing:-1.6px;margin-bottom:18px}.hero .lead{font-size:14px}.hero-art{height:285px}.hero .tiny-note{font-size:10px;letter-spacing:.3px}.hero .actions{margin-top:20px}.journey{padding-block:20px;margin-bottom:32px}.journey strong{font-size:13px}.journey small{font-size:10px}.journey b{font-size:13px}.section-head h2{font-size:24px}.section-head p{font-size:12px}.section-head>small{font-size:10px;white-space:nowrap}.searchbox input{height:56px;font-size:14px;padding-left:49px;padding-right:95px;border-color:#d2dcdf;border-radius:10px;box-shadow:0 2px 8px #142b3c03}.searchbox input:focus{border-color:#638bdc;box-shadow:0 0 0 3px #245bd611}.searchbox span{top:15px}.searchbox button{top:9px;min-height:38px;font-size:11px;padding:6px 11px}.searchbox button[hidden]{display:none}.purpose{font-size:11px;gap:7px;margin-bottom:21px}.purpose>span{margin-right:5px;color:#5d6b75}.purpose button{font-size:11px;text-decoration:none;background:#eaf0f3;color:#37556c;border:1px solid #dfe7eb;padding:5px 9px;min-height:32px;border-radius:5px}.purpose button:hover{border-color:#89a4cb;background:#e1eafb}.filters{gap:7px;margin-bottom:21px}.chip{font-size:12px;padding:7px 12px;min-height:37px;border-radius:7px}.chip.active{background:#18394e}.result-bar{font-size:12px;margin-bottom:17px}.result-bar strong{font-size:15px}.result-total{font-size:11px;color:#61747d}.result-bar select{font-size:11px;min-height:34px}.cards{gap:20px}.part-card{border-radius:13px;display:flex;flex-direction:column;box-shadow:0 2px 3px #172c3e02;transition:transform .18s,box-shadow .18s,border-color .18s}.part-card:hover{border-color:#a9bdd3;transform:translateY(-3px);box-shadow:0 10px 26px #173c5610}.preview{height:177px;margin:10px 10px 0;border-radius:8px;padding:27px 22px 22px}.part-card[data-category='入力・操作'] .preview{background:#eff3fa}.part-card[data-category='情報表示'] .preview{background:#f1f5f3}.part-card[data-category='フィードバック'] .preview{background:#f5f2ed}.part-card[data-category='レイアウト'] .preview{background:#f2f1f7}.part-card[data-category='モバイル'] .preview{background:#edf4f5}.part-card[data-category='データ・可視化'] .preview{background:#edf3fa}.demo-indicator{position:absolute;top:22px;left:23px;font-size:7px;letter-spacing:1px;color:#617783;pointer-events:none}.preview .mini{transform:scale(.93);transform-origin:center}.preview .mini .status{display:none}.card-open{flex:1;padding:18px 21px;display:flex;flex-direction:column}.card-open:after{content:'';position:absolute;inset:0;border-radius:13px}.card-open:focus-visible{outline:none}.part-card:has(.card-open:focus-visible){outline:3px solid #3778ed;outline-offset:4px}.card-meta{width:100%}.card-tag{font-size:10px;padding:3px 8px;background:#f0f4f6;color:#4c6677}.part-id{font-size:10px;font-variant-numeric:tabular-nums}.card-open h3{font-size:18px;margin:10px 0 1px}.card-open .en{font-size:11px;color:#607381}.card-open p{font-size:13px;line-height:1.85;margin:12px 0 16px;min-height:48px}.card-bottom{margin-top:auto;padding-top:12px;font-size:11px;width:100%;color:#3b566e}.fav-btn{width:36px;height:36px;right:19px;top:19px;z-index:2;background:#ffffffee;border-color:#d8e3ec;font-size:21px}.fav-btn:before{content:'';position:absolute;inset:-4px}.fav-btn[aria-pressed=true]{background:#eaf1ff;border-color:#b5c9ef}.output-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:13px 0 18px}.output-heading h2{font-size:21px;margin:0;letter-spacing:-.5px}.output-heading>.btn{font-size:11px;min-height:37px;padding:8px 12px}.sidebar .brand{font-size:19px}.sidebar nav a>span{display:flex;align-items:center;justify-content:center;width:19px;height:20px}
@media(max-width:1150px) and (min-width:701px){.hero h1{font-size:32px}.hero-art{transform:scale(.85);width:370px}.hero{grid-template-columns:1fr 1fr;gap:10px}.hero .lead{font-size:12px}.hero .tiny-note{font-size:8px}.journey small{font-size:9px}.chip{font-size:11px}.cards{gap:16px}}
@media(max-width:700px){.hero{grid-template-columns:1fr;gap:12px;padding-bottom:26px}.hero h1{font-size:32px;line-height:1.65;letter-spacing:-1.4px}.hero .lead{font-size:13px;margin-bottom:15px}.hero .actions{margin-top:16px}.hero .tiny-note{font-size:8px;letter-spacing:.1px;white-space:nowrap}.hero-art{height:205px;max-width:340px;transform:scale(.85);margin-top:-10px;margin-bottom:-20px}.art-main{width:220px;top:14px;left:0;padding:17px}.art-palette{width:132px;top:22px;right:0;padding:14px}.art-control{width:229px;right:-2px;bottom:-10px;padding:14px}.art-value{font-size:24px}.art-main svg{height:51px}.journey{row-gap:17px;padding:19px 0;margin-bottom:28px}.journey strong{font-size:12px}.journey small{font-size:9px}.journey b{font-size:11px}.section-head h2{font-size:20px}.section-head p{font-size:11px}.section-head>small{font-size:8px}.searchbox input{font-size:16px;height:53px;padding-right:83px}.searchbox span{top:13px}.searchbox button{font-size:10px;min-height:35px}.purpose{gap:6px;font-size:10px}.purpose>span{width:100%;margin-bottom:2px}.purpose button{font-size:10px;min-height:35px;padding:5px 9px}.filters{gap:6px}.chip{font-size:11px;padding:7px 10px;min-height:38px}.result-bar{font-size:11px}.result-bar select{font-size:10px}.cards{gap:17px}.preview{height:182px;padding:30px 30px 20px}.card-open{padding:18px 21px}.card-open h3{font-size:18px}.card-open p{min-height:0;font-size:13px;margin-bottom:15px}.card-bottom{font-size:12px}.output-heading h2{font-size:20px}.output-heading>.btn{font-size:11px;padding:8px 11px;min-height:40px}.sidebar nav a>span{width:15px;height:17px}.sidebar nav a svg{width:15px;height:15px}.sidebar .brand{font-size:17px}}
/* Continuity and keyboard — review 3 */
.detail-pagination{display:flex;gap:8px;align-items:center;margin-left:auto;margin-right:15px}.detail-pagination button{min-width:35px;padding:4px!important}.detail-pagination span{font-size:10px;color:#617480;white-space:nowrap}.detail-pagination button:disabled{opacity:.3}.search-shortcut{position:absolute;right:19px;top:15px;border:1px solid #dce3e7;border-radius:5px;background:#f5f7f8;line-height:22px;width:24px;text-align:center;color:#687d8b;font-size:12px}.searchbox:has(#clear-search:not([hidden])) .search-shortcut{display:none}.brief-preview[data-style='1']{padding-top:25px}.brief-preview[data-style='1'] .sample-card{border-color:transparent;box-shadow:none;border-radius:3px;margin-top:18px}.brief-preview[data-style='1'] .mock-nav{margin-bottom:25px}.brief-preview[data-style='2'] .sample-card{border-radius:4px;box-shadow:0 3px 12px #00000006}.brief-preview[data-style='2'] .mock-nav b{letter-spacing:1px}.brief-preview[data-style='2'] .mock-kpis .sample-kpi{font-weight:500}.brief-preview[data-style='3'] .sample-card{border-radius:4px;padding:9px}.brief-preview[data-style='3'] .mock-nav{margin-bottom:12px}.brief-preview[data-style='3'] .mock-kpis{gap:7px}.brief-preview[data-style='3'] .mock-chart svg{height:70px}
@media(max-width:700px){.detail-top{gap:7px;padding-inline:17px}.detail-top>.card-tag{max-width:120px;font-size:9px}.detail-top>button{font-size:11px;padding:5px 8px;white-space:nowrap}.detail-pagination{gap:5px;margin-right:2px}.detail-pagination button{min-width:31px;min-height:38px}.detail-pagination span{font-size:9px}.search-shortcut{display:none}.detail-body h2:focus{outline:none}}
/* Intermediate widths — observed during review 4 */
.builder-config,.builder-config>.panel{min-width:0}.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-grid label>span{min-width:0;overflow-wrap:anywhere}.panel-heading>div{min-width:0}
@media(min-width:701px) and (max-width:1000px){.builder-config{grid-template-columns:1fr}}
@media(max-width:360px){.detail-top{padding-inline:12px;gap:5px}.detail-top>.card-tag{max-width:94px;font-size:8px}.detail-pagination{gap:4px}.detail-pagination span{font-size:8px}.detail-pagination button{min-width:27px}.detail-top>button{padding-inline:6px;font-size:10px}.mock-kpis .sample-kpi{font-size:17px}.mock-kpis .sample-card{padding:9px}.output-heading h2{font-size:18px}.output-heading>.btn{font-size:10px;padding-inline:8px}}
@media(max-width:700px){html:has(.mobile-builder-bar){scroll-padding-bottom:90px}.generator-layout button,.generator-layout input,.generator-layout select{scroll-margin-bottom:90px}}
/* Final polish — review 5 */
#toast{width:max-content;max-width:calc(100vw - 40px);line-height:1.7}
@media(max-width:1150px){.mobile-builder-bar{position:fixed;bottom:0;left:0;right:0;z-index:4;display:flex;justify-content:space-between;align-items:center;background:#fffffff2;backdrop-filter:blur(12px);border-top:1px solid #d8e1e5;box-shadow:0 -3px 18px #142b3c06;padding:12px 20px max(12px,env(safe-area-inset-bottom));font-size:12px}.mobile-builder-bar .btn{min-height:42px;font-size:12px;padding:9px 14px}.app:has(.mobile-builder-bar){padding-bottom:75px}body:has(.mobile-builder-bar) #toast{bottom:88px;left:20px;right:20px;transform:none;width:auto;max-width:none}html:has(.mobile-builder-bar){scroll-padding-bottom:90px}}
@media(min-width:701px) and (max-width:1150px){.mobile-builder-bar{left:210px}body:has(.mobile-builder-bar) #toast{left:230px}}
