/* 「今天」首页 (update/161). Works in every style: colours come from theme variables;
   studio-themes.css adds each design's card treatment on top. */
html[data-ui-theme] #homePage .home-layout{padding:26px 32px 40px;display:flex;flex-direction:column;gap:22px;max-width:1240px;margin:0 auto;width:100%}
html[data-ui-theme] #homePage .home-header h1{font-size:30px}
html[data-ui-theme] #homePage .home-ask{display:flex;flex-direction:column;gap:10px;padding:22px 24px;background:var(--bg-secondary);border-radius:16px}
html[data-ui-theme] #homePage .home-ask label{font-size:15px;font-weight:650;color:var(--text-primary)}
html[data-ui-theme] #homePage .home-ask-row{display:flex;gap:10px;align-items:stretch}
html[data-ui-theme] #homePage .home-ask-row input{flex:1;min-width:0;min-height:48px!important;font-size:15px!important}
html[data-ui-theme] #homePage .home-ask-row button{min-height:48px;padding:0 22px;white-space:nowrap}
html[data-ui-theme] #homePage .home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
html[data-ui-theme] #homePage .home-card{display:flex;flex-direction:column;gap:14px;min-width:0;padding:22px 24px;background:var(--bg-secondary);color:var(--text-primary);border-radius:16px}
html[data-ui-theme] #homePage .home-card>.admin-refresh-btn{align-self:flex-start;margin-top:auto}
html[data-ui-theme] #homePage .home-card-head{display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 12px}
html[data-ui-theme] #homePage .home-kicker{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--primary)}
html[data-ui-theme] #homePage .home-card-head h2{margin:0;font-size:19px;line-height:1.35}
html[data-ui-theme] #homePage .home-stat{font-size:20px;font-weight:700;color:var(--text-primary);font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-ui-theme] #homePage .home-progress{height:6px;border-radius:99px;background:var(--bg-tertiary);overflow:hidden}
html[data-ui-theme] #homePage .home-progress i{display:block;height:100%;width:0;background:var(--primary);border-radius:inherit;transition:width .4s}
html[data-ui-theme] #homePage .home-list{display:flex;flex-direction:column;gap:8px;min-height:60px}
html[data-ui-theme] #homePage .home-note{margin:0;font-size:13.5px;line-height:1.75;color:var(--text-muted)}
html[data-ui-theme] #homePage .home-note.home-good{color:var(--success)}
html[data-ui-theme] #homePage .home-problem{display:flex;align-items:baseline;gap:10px;min-width:0;padding:9px 12px;border-radius:10px;background:var(--bg-primary);color:var(--text-primary);text-decoration:none}
html[data-ui-theme] #homePage .home-problem:hover{background:var(--primary-bg)}
html[data-ui-theme] #homePage .home-problem b{font-family:'JetBrains Mono',Consolas,monospace;font-size:13px;color:var(--primary);flex:0 0 auto}
html[data-ui-theme] #homePage .home-problem span{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui-theme] #homePage .home-row{display:flex;align-items:center;gap:10px;min-width:0;font-size:14px}
html[data-ui-theme] #homePage .home-row-link .home-problem{flex:1}
html[data-ui-theme] #homePage .home-row em{font-style:normal;font-size:12px;color:var(--text-muted);white-space:nowrap}
html[data-ui-theme] #homePage .home-dot{width:9px;height:9px;border-radius:50%;border:2px solid var(--primary);flex:0 0 auto}
html[data-ui-theme] #homePage .home-dot.done{background:var(--primary)}
html[data-ui-theme] #homePage .home-contest-row{flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:var(--bg-primary)}
html[data-ui-theme] #homePage .home-contest-row b{flex:1;min-width:0}
html[data-ui-theme] #homePage :is(.home-live,.home-soon){font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px}
html[data-ui-theme] #homePage .home-live{background:var(--success-bg,rgba(34,114,85,.12));color:var(--success)}
html[data-ui-theme] #homePage .home-soon{background:var(--bg-tertiary);color:var(--text-secondary)}
html[data-ui-theme] #homePage .home-conv{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px!important;border-radius:10px;background:var(--bg-primary)!important;color:var(--text-primary)!important;text-align:left;font-weight:500}
html[data-ui-theme] #homePage .home-conv:hover{background:var(--primary-bg)!important}
html[data-ui-theme] #homePage .home-conv span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui-theme] #homePage .home-conv em{font-style:normal;font-size:12px;color:var(--text-muted);flex:0 0 auto}
@media(max-width:900px){html[data-ui-theme] #homePage .home-grid{grid-template-columns:1fr}}
@media(max-width:640px){
 html[data-ui-theme] #homePage .home-layout{padding:16px 14px 32px;gap:16px}
 html[data-ui-theme] #homePage .home-header h1{font-size:24px}
 html[data-ui-theme] #homePage .home-ask{padding:18px}
 html[data-ui-theme] #homePage .home-ask-row{flex-direction:column}
 html[data-ui-theme] #homePage .home-card{padding:18px}
 /* Phones are for glancing: recent chats go last and shorter. */
 html[data-ui-theme] #homePage .home-recent{order:5}
}
