/* Homepage prototype composition, with existing brand tokens. */
.task-label{margin-top:14px;font-size:14px;font-weight:700;color:var(--primary)}
.popular-card .task-label+h3{margin-top:6px}
.home-link-groups{display:grid;align-items:start;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:24px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface)}
.home-link-column{display:grid;gap:24px;align-content:start}
.home-link-groups h3{font-size:18px;margin:0 0 10px}
.home-link-groups ul{list-style:none;margin:0;padding:0}
.home-tool-link{display:flex;align-items:center;min-height:44px;font-size:16px;line-height:1.5;padding:5px 0;overflow-wrap:anywhere}
@media(max-width:799px){.home-link-groups{grid-template-columns:1fr;gap:24px}}
@media(max-width:599px){.home-link-groups{grid-template-columns:1fr;padding:18px}}
.home-workspace{margin-top:24px;grid-template-columns:1.2fr 1fr;overflow:visible}
.home-workspace .input-panel{padding:24px;border:0}
.home-workspace .intro{padding:0 0 20px;max-width:none}
.home-workspace h1{font-size:clamp(32px,3.2vw,40px);margin:8px 0 10px}
.home-workspace .intro p{font-size:17px;line-height:1.6}
.home-workspace .results-panel{margin:16px 16px 16px 0;padding:24px;border:1px solid var(--border);border-radius:var(--radius-control);justify-content:flex-start;min-height:300px}
.home-workspace .word-list{margin:8px 0 16px;gap:10px;flex:1;align-content:flex-start}
.home-workspace .word-list li{font-size:24px;padding:8px 14px}
.home-workspace .panel-heading h2{font-size:18px}
.home-workspace .pool-info{margin:8px 0 0}
.home-workspace #quantity-help{margin:10px 0 0}
.home-workspace .status{margin:8px 0 0;min-height:24px}
.home-workspace .tool-settings{gap:12px;margin-bottom:12px}
.home-workspace .range-settings{margin-bottom:14px}
.home-page #tool-discovery{margin-top:30px}
.home-discovery-section{margin:0 0 30px}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.home-section-heading h2{margin:0 0 6px;font-size:26px}
.home-section-heading p{font-size:17px;color:var(--muted);margin:0}
.home-section-heading>a{flex:none;font-size:16px;min-height:44px;display:flex;align-items:center;gap:6px}
.popular-grid,.home-all-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.popular-card{padding:20px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);display:flex;flex-direction:column;min-width:0}
.popular-card h3{font-size:20px;line-height:1.35;margin:14px 0 10px}
.popular-card h3 a{display:block;min-height:44px;text-decoration:none;color:var(--ink)}
.popular-card h3 a:hover{text-decoration:underline;color:var(--primary)}
.popular-card p{font-size:17px;line-height:1.6;color:var(--muted);margin:0 0 12px}
.tool-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:var(--accent);color:var(--primary);flex:none}
.tool-icon svg{width:30px;height:30px}
.home-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.home-category-card{display:flex;align-items:center;gap:10px;padding:16px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);text-decoration:none;color:var(--ink);min-width:0;flex-wrap:wrap}
.home-category-card .tool-icon{width:40px;height:40px}.home-category-card .tool-icon svg{width:24px;height:24px}
.home-category-card strong{display:block;font-size:16px;line-height:1.4}
.category-count{display:block;font-size:14px;color:var(--muted);margin-top:6px}
.category-arrow{margin-left:auto;color:var(--primary)}
.home-all-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;min-height:96px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control);text-decoration:none;color:var(--ink)}
.home-all-card strong{display:block;font-size:16px;line-height:1.4;margin-bottom:6px}
.home-all-card span span{display:block;font-size:14px;line-height:1.5;color:var(--muted)}
.home-category-card:hover,.home-all-card:hover{border-color:var(--primary);background:var(--accent);color:var(--ink)}
.home-supporting{border-top:1px solid var(--border);padding-top:24px}
.home-supporting>.reading{margin-top:20px}
.home-quick-help{display:grid;gap:24px;align-items:start}
.home-quick-help>.reading{min-width:0}
.home-quick-help h2,.home-quick-help h3{margin-top:0}
.home-quick-help p{margin-bottom:0}
@media(min-width:900px){.home-quick-help{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:48px}}
@media(max-width:1050px){.popular-grid,.home-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:799px){.home-workspace{grid-template-columns:1fr}.home-workspace .input-panel{padding:20px}.home-workspace .results-panel{margin:0 16px 16px;padding:20px;min-height:210px}.home-workspace .intro{padding-bottom:18px}.home-section-heading{align-items:flex-start}.home-section-heading h2{font-size:24px}.home-section-heading p{font-size:16px}.home-section-heading>a{font-size:16px}.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-page #tool-discovery{margin-top:24px}}
@media(max-width:599px){.home-section-heading{flex-direction:column;gap:6px}.popular-grid,.home-all-grid{grid-template-columns:1fr}.popular-card{padding:18px}.popular-card h3 a{min-height:0}.popular-card h3{margin-top:12px}.home-workspace .tool-settings{grid-template-columns:1fr 1fr}.home-workspace .range-settings{grid-template-columns:1fr}.home-workspace .range-settings .field{margin-bottom:0}.home-workspace .range-settings .length-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-category-card{padding:14px 12px;align-content:flex-start}.home-category-card>.tool-icon{width:36px;height:36px}}
@media(max-width:360px){.home-workspace .input-panel{padding:16px}.home-workspace .results-panel{margin:0 12px 12px;padding:16px}.home-workspace .tool-settings{grid-template-columns:1fr}.home-category-grid{grid-template-columns:1fr}}
.home-workspace .tool-settings{grid-template-columns:1fr 1fr .7fr}
.home-length-filters{padding:0;margin:10px 0 0;border:0}
.home-length-filters>summary{display:list-item;list-style-position:inside;cursor:pointer;font-size:14px;min-height:44px;padding:10px 0;color:var(--primary)}
.home-length-filters>summary:hover{color:var(--primary-hover);text-decoration:underline}
.home-length-filters .range-settings{margin:8px 0;grid-template-columns:1fr}
.category-description{flex-basis:100%;font-size:14px;line-height:1.6;color:var(--muted)}
@media(max-width:599px),(min-width:800px) and (max-width:1000px){.home-workspace .tool-settings{grid-template-columns:1fr 1fr}.home-workspace .tool-settings>.field:last-child{grid-column:1/-1}}
@media(max-width:360px){.home-workspace .tool-settings{grid-template-columns:1fr}.home-workspace .tool-settings>.field:last-child{grid-column:auto}}

/* Keep category headings and descriptions aligned regardless of label length. */
.home-category-card{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:minmax(70px,auto) 1fr auto;align-items:start}
.home-category-card>span:nth-child(2){min-width:0}
.category-description{grid-column:1/-1}
.category-arrow{grid-column:2;justify-self:end}

/* BaoCut Design Craft V2 homepage composition: refined calm, tool first. */
.home-page header{min-height:68px;padding-block:14px}
.home-page .brand{font-size:22px;font-weight:720;letter-spacing:-.035em}
.home-page .brand-mark{background:var(--primary);border-radius:13px;box-shadow:inset 0 0 0 1px #ffffff38,0 5px 14px #274c4826}
.home-page .desktop-navigation>a,.home-page .nav-disclosure>summary{border-radius:9px}
.home-page .home-workspace{margin-top:22px;grid-template-columns:1.03fr .97fr;border-color:#cdd9d5;border-radius:var(--radius-panel);box-shadow:0 22px 64px #203c3717;overflow:hidden}
.home-page .home-workspace .input-panel{padding:28px 30px;border-right:1px solid var(--border);background:var(--surface)}
.home-page .home-workspace .intro{padding:0 0 18px}
.home-page .home-workspace .eyebrow{display:block;margin:0 0 8px;font-size:11px;line-height:1.35;letter-spacing:.16em;color:#4d7472}
.home-page .home-workspace h1{font-size:clamp(34px,3vw,44px);line-height:1.08;letter-spacing:-.045em;margin:0 0 10px;font-weight:720;text-wrap:balance}
.home-page .home-workspace .intro p{max-width:58ch;font-size:16px;line-height:1.55;color:var(--muted);text-wrap:pretty}
.home-page .home-workspace .tool-settings{gap:12px;margin-bottom:14px}
.home-page .home-workspace .field label{font-size:14px;line-height:1.35;margin-bottom:7px;font-weight:700}
.home-page .home-workspace select,.home-page .home-workspace input{min-height:48px;background:#ffffff;border-color:var(--field-border);box-shadow:inset 0 1px 2px #163b3408,0 1px 0 #ffffff}
.home-page .home-workspace select:hover,.home-page .home-workspace input:hover{border-color:var(--field-hover)}
.home-page .home-workspace select:focus,.home-page .home-workspace input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f62641a}
.home-page .home-workspace [aria-invalid="true"]{border-color:var(--danger);background:var(--danger-surface);box-shadow:0 0 0 3px #a23c3217}
.home-page .home-workspace [aria-invalid="true"]:focus{border-color:#a23c32;box-shadow:0 0 0 3px #a23c3226}
.home-page .home-workspace #generate{min-width:164px;padding-inline:18px;font-weight:700;box-shadow:0 8px 18px #2f62642b}
.home-page .home-workspace #generate:hover:not(:disabled){box-shadow:0 10px 22px #234b4d33}
.home-page .home-workspace #reset-filters{margin-left:4px;font-weight:600}
.home-page .home-length-filters{margin-top:9px}
.home-page .home-length-filters>summary{font-weight:650;text-decoration:none}
.home-page .home-length-filters>summary:hover{text-decoration:none;background:#edf3f0;border-radius:8px}
.home-page .home-workspace #quantity-help{margin-top:7px}
.home-page .home-workspace .results-panel{margin:0;padding:28px 30px;min-height:0;border:0;border-radius:0;background:var(--surface-result);box-shadow:inset 1px 0 #dce5e2}
.home-page .home-workspace .panel-heading{margin-bottom:14px}
.home-page .home-workspace .panel-heading h2{font-size:18px;font-weight:720;letter-spacing:-.02em}
.home-page .home-workspace .copy-button{background:#ffffff;border-color:var(--field-border);font-weight:700;box-shadow:0 2px 7px #193c3610}
.home-page .home-workspace .copy-button:hover:not(:disabled){background:#edf4f1;border-color:#7e9f9c}
.home-page .home-workspace .word-list{margin:6px 0 18px;gap:10px}
.home-page .home-workspace .word-list li{padding:9px 14px;border:1px solid var(--word-border);border-radius:11px;background:var(--accent);font-size:clamp(22px,2.4vw,28px);line-height:1.3;font-weight:620;letter-spacing:-.025em;box-shadow:0 3px 9px #234b4d0d}
.home-page .home-workspace .local-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#667572}
.home-page .home-workspace .status{min-height:24px;margin:6px 0 8px;color:var(--primary);font-weight:650}
.home-page .home-workspace:has([aria-invalid="true"]) .status{color:#8f3029}
.home-page .home-workspace .pool-info{margin-top:0;padding-top:14px;border-top:1px solid var(--border)}
.home-page .home-quick-help{margin-top:4px;padding-block:26px 38px;border-bottom:1px solid var(--border)}
.home-page .home-quick-help h2,.home-page .home-quick-help h3{font-size:23px;letter-spacing:-.025em}
.home-page .kit-discovery,.home-page .popular-card,.home-page .home-category-card,.home-page .home-all-card{border-color:#d1dcd8;background:var(--surface);box-shadow:0 7px 20px #203c370a}
.home-page .kit-discovery{border-radius:18px}
.home-page .popular-card,.home-page .home-category-card,.home-page .home-all-card{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.home-page .popular-card:hover,.home-page .home-category-card:hover,.home-page .home-all-card:hover{border-color:#91aaa6;box-shadow:0 10px 24px #203c3712}

@media(max-width:799px){
  .home-page header{min-height:64px;padding-block:12px}
  .home-page .home-workspace{margin-top:16px;grid-template-columns:1fr;border-radius:20px}
  .home-page .home-workspace .input-panel{padding:19px 20px 16px;border-right:0}
  .home-page .home-workspace .intro{padding-bottom:14px}
  .home-page .home-workspace h1{font-size:clamp(30px,8.2vw,36px);line-height:1.08;margin-bottom:8px}
  .home-page .home-workspace .intro p{font-size:15px;line-height:1.48}
  .home-page .home-workspace .tool-settings{margin-bottom:10px}
  .home-page .home-workspace select,.home-page .home-workspace input{min-height:46px}
  .home-page .home-workspace #generate{min-width:150px;min-height:48px;padding-inline:15px}
  .home-page .home-workspace #reset-filters{padding-inline:9px}
  .home-page .home-length-filters{margin-top:6px}
  .home-page .home-length-filters>summary{padding-block:7px}
  .home-page .home-workspace #quantity-help{margin:4px 0 0}
  .home-page .home-workspace .results-panel{margin:0;padding:20px;min-height:190px;border-top:1px solid var(--border);box-shadow:none}
  .home-page .home-workspace .word-list{margin:4px 0 14px}
  .home-page .home-quick-help{padding-block:24px 32px}
}
@media(max-width:360px){
  .home-page .container{width:calc(100% - 24px)}
  .home-page .brand{gap:7px;font-size:16px;letter-spacing:-.025em}
  .home-page .brand-mark{width:34px;height:34px;font-size:20px}
  .home-page .home-workspace{margin-top:14px;border-radius:17px}
  .home-page .home-workspace .input-panel{padding:16px 14px 14px}
  .home-page .home-workspace .intro{padding-bottom:12px}
  .home-page .home-workspace .eyebrow{font-size:10px;letter-spacing:.14em;margin-bottom:7px;white-space:nowrap}
  .home-page .home-workspace h1{font-size:29px;line-height:1.06}
  .home-page .home-workspace .intro p{font-size:15px;line-height:1.42}
  .home-page .home-workspace .tool-settings{gap:9px}
  .home-page .home-workspace .field label{margin-bottom:5px}
  .home-page .home-workspace #generate{min-width:0;padding-inline:14px}
  .home-page .home-workspace #reset-filters{padding-inline:7px}
  .home-page .home-workspace .results-panel{padding:16px 14px}
  .home-page .home-workspace .word-list li{font-size:21px;padding:8px 12px}
}
@media(forced-colors:active){
  .home-page .home-workspace,.home-page .home-workspace .results-panel,.home-page .kit-discovery,.home-page .popular-card,.home-page .home-category-card,.home-page .home-all-card{box-shadow:none}
}
