/* Mi panel · graphite, amber and coral, following Miguel's approved landing. */
:root {
  color-scheme:dark;
  --bg:#111216; --sidebar:#15161b; --panel:#1b1c22; --panel-2:#23242c;
  --hover:#272831; --line:#30313c; --text:#f6f5f2; --muted:#b0b0bd;
  --faint:#9698a8; --accent:#ffc16c; --accent-text:#21170d;
  --green:#8ddbc1; --red:#ffadac; --blue:#a8c7ff; --radius:18px;
  --shadow:0 28px 90px #0005; --glass:#111216ec;
}
:root[data-theme="light"] {
  color-scheme:light;
  --bg:#f7f5f2; --sidebar:#fefdfb; --panel:#ffffff; --panel-2:#f4f1ed;
  --hover:#f2efeb; --line:#e4e0db; --text:#232226; --muted:#67636c;
  --faint:#76707c; --accent:#a65615; --accent-text:#21170d;
  --green:#207a61; --red:#ae3b40; --blue:#315fbc; --glass:#f7f5f2ec;
  --shadow:0 28px 90px #3a2b1b18;
}
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.sidebar { width:244px; padding:30px 18px 20px; }
.brand { font-size:21px; font-weight:750; margin-bottom:25px; padding:0 10px; flex:none; }
.sidebar-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding-right:2px; margin-right:-2px; }
.sidebar .nav-item { min-height:40px; padding-top:9px; padding-bottom:9px; }
.sidebar .project-nav .nav-item { min-height:35px; padding-top:7px; padding-bottom:7px; }
.brand-mark { width:42px; height:42px; line-height:38px; border-radius:14px; background:linear-gradient(135deg,#ffd08a,#ffad40 58%,#ef897c); box-shadow:0 5px 18px #ffb65720,inset 0 1px #fff8; color:#21170d; }
.brand small { letter-spacing:1.25px; font-size:8px; margin-top:3px; }
.nav-caption { font-size:10px; letter-spacing:1.7px; }
.nav-item { min-height:46px; border-radius:11px; padding:11px 13px; font-size:13px; gap:12px; }
.nav-item.active { background:linear-gradient(105deg,#f2b7591a,#ed8d7810); color:var(--accent); box-shadow:inset 2px 0 var(--accent); }
.nav-item .count { border-radius:6px; padding:1px 6px; color:var(--accent); background:#dfac6412; font-size:11px; }
.project-nav .nav-item { font-size:12px; }
.project-caption { margin-top:26px; }
.sidebar-bottom { padding-top:16px; gap:10px; line-height:1.65; flex:none; margin-top:18px; }
.sidebar-bottom .icon-button { border:1px solid var(--line); border-radius:50%; width:34px; min-height:34px; }
.workspace { margin-left:244px; }
.topbar { height:84px; padding:0 38px; gap:18px; background:var(--glass); backdrop-filter:blur(18px); }
.global-search { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:0 13px; min-height:44px; max-width:470px; }
.global-search:focus-within { border-color:var(--accent); }
.global-search input { min-height:42px; font-size:13px; }
.global-search kbd { font-size:11px; border-radius:5px; }
.save-status { font-size:11px; }
.save-status::before { width:6px; height:6px; }
.button { min-height:42px; padding:10px 16px; border-radius:10px; font-size:12px; font-weight:650; transition:background .18s,transform .18s,box-shadow .18s; }
.button.primary { color:#251b12; background:linear-gradient(115deg,#ffcc7d,#ffb24e 70%,#ef9580); box-shadow:inset 0 1px #fff6,0 4px 14px #e8a03f12; }
.button.primary:hover { box-shadow:inset 0 1px #fff6,0 5px 22px #e8a03f25; transform:translateY(-1px); }
.button.small { min-height:36px; font-size:11px; }
.icon-button { min-height:40px; width:40px; border-radius:10px; }
.avatar { width:32px; height:32px; font-size:11px; }
.avatar.self,.avatar.Miguel { background:#d9953620; color:var(--accent); border-color:#da9e3f40; }
.avatar.Codex { background:#5a9ad520; color:var(--blue); border-color:#5a9ad540; }
.avatar.Claude { background:#de8b7620; color:var(--red); border-color:#de8b7640; }
.avatar.self { width:38px; height:38px; }
main { padding:34px 38px 70px; max-width:1580px; }
.page-heading { margin-bottom:27px; gap:24px; }
.eyebrow { color:var(--accent); letter-spacing:2px; font-size:10px; font-weight:750; }
.page-heading h1 { font-size:36px; font-weight:750; letter-spacing:-1.65px; line-height:1.12; margin:10px 0 12px; }
main[data-view="home"] .page-heading h1 { font-size:38px; letter-spacing:-1.8px; }
main[data-view="home"] { padding-top:27px; }
main[data-view="home"] .page-heading { margin-bottom:18px; }
.page-heading p { font-size:13px; line-height:1.7; }
.heading-actions { padding-bottom:3px; }
.date-label { font-size:11px; white-space:nowrap; margin-right:5px; }
.metrics { background:none; border:0; overflow:visible; gap:12px; margin-bottom:32px; }
.metric { position:relative; border:1px solid var(--line)!important; border-radius:14px; padding:17px 19px; background:var(--panel); transition:transform .18s,border-color .18s,background .18s; }
.metric:hover { transform:translateY(-2px); border-color:var(--accent)!important; }
.metric-label { font-size:11px; color:var(--muted); font-weight:550; }
.metric-label svg { width:16px; height:16px; color:var(--muted); }
.metric strong { font-size:34px; font-weight:720; letter-spacing:-1.2px; display:block; line-height:1.35; margin:5px 0 3px; }
.metric small { font-size:10px; line-height:1.5; color:var(--faint); }
.metric.alert { background:linear-gradient(125deg,#ed9c7510,var(--panel) 75%); }
.metric.alert strong { color:var(--red); }
.section-heading { align-items:center; margin-bottom:18px; }
.section-heading h2 { font-size:18px; font-weight:700; letter-spacing:-.5px; margin:0; }
.section-heading p { font-size:12px; color:var(--muted); margin:5px 0 0; }
.text-button { font-size:12px; min-height:34px; display:inline-flex; align-items:center; gap:7px; }
.text-button svg { width:16px; height:16px; }
.project-progress { margin:0 0 34px; }
.project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.project-card { padding:0; overflow:hidden; border-radius:17px; display:flex; flex-direction:column; transition:transform .25s,border-color .25s,box-shadow .25s; }
.project-card:hover { transform:translateY(-4px); border-color:var(--accent); box-shadow:0 12px 30px #00000012; }
.project-cover { height:125px; display:block; position:relative; overflow:hidden; isolation:isolate; flex:none; background:#241b1d; color:#fff2d2; }
.cover-grid { position:absolute; inset:0; opacity:.16; background-image:linear-gradient(#fff1 1px,transparent 1px),linear-gradient(90deg,#fff1 1px,transparent 1px); background-size:28px 28px; transform:perspective(400px) rotateX(20deg) scale(1.15); }
.cover-word { position:absolute; top:19px; left:21px; font-size:29px; font-weight:760; letter-spacing:-1.5px; z-index:2; }
.cover-spark { position:absolute; bottom:16px; left:23px; font-size:23px; font-weight:300; opacity:.7; }
.cover-orbit { position:absolute; width:220px; height:220px; border:1px solid #ffffff20; border-radius:50%; right:-19px; top:-25px; transform:rotate(-30deg) scaleY(.7); }
.cover-shape { position:absolute; right:42px; top:22px; width:93px; height:93px; transition:transform .4s; }
.project-card:hover .cover-shape { transform:rotate(8deg) translateY(-3px); }
.cover-portfolio { background:radial-gradient(ellipse at 80% 25%,#d9694f88,transparent 60%),linear-gradient(125deg,#322221,#6d3630); }
.cover-portfolio .cover-shape { transform:rotate(-24deg); }
.cover-portfolio .cover-shape i { display:block; position:absolute; inset:7px; border-radius:18px; border:1px solid #ffdb9f70; background:linear-gradient(145deg,#ffd290,#ffa753 58%,#e97462); box-shadow:8px 9px 22px #21121855,inset 0 1px #ffe1b1; }
.cover-portfolio .cover-shape i:nth-child(1) { transform:translate(-18px,12px); opacity:.4; }
.cover-portfolio .cover-shape i:nth-child(2) { transform:translate(-9px,6px); opacity:.7; }
.cover-portfolio .cover-shape i:nth-child(3)::before { content:'↗'; position:absolute; font-size:45px; font-weight:400; line-height:70px; width:100%; text-align:center; color:#733913; }
.cover-celaje,.cover-blue { background:radial-gradient(ellipse at 75% 0%,#5589ff66,transparent 65%),linear-gradient(120deg,#102142,#213d7c); color:#d6e5ff; }
.cover-celaje .cover-shape,.cover-blue .cover-shape { top:22px; width:91px; height:91px; border:1px solid #bfd4ff60; border-radius:23px; transform:rotate(-12deg); background:linear-gradient(140deg,#a5c9ff55,#427de177); box-shadow:9px 10px 20px #04112e55,inset 0 1px #ddebff77; backdrop-filter:blur(4px); }
.cover-celaje .cover-shape::before,.cover-blue .cover-shape::before { content:''; position:absolute; inset:20px; border:2px solid #d6e5ff; border-radius:9px; background:linear-gradient(#d6e5ff,#d6e5ff) 0 11px/100% 2px no-repeat; }
.cover-celaje .cover-shape::after,.cover-blue .cover-shape::after { content:'✓'; position:absolute; top:36px; left:34px; font-size:25px; font-weight:600; color:#e5efff; }
.cover-sunsetly,.cover-coral { background:radial-gradient(ellipse at 80% 120%,#bf664655,transparent 60%),linear-gradient(120deg,#272039,#372342); color:#ffe4ca; }
.cover-sunsetly .cover-word { font-weight:550; font-size:23px; letter-spacing:-1px; top:22px; }
.cover-sunsetly .cover-shape,.cover-coral .cover-shape { top:18px; right:43px; width:115px; height:115px; border-radius:50%; background:radial-gradient(circle at 30% 23%,#ffe1a6,#ffb775 34%,#ec8190 62%,#aa629c 84%,#674371); box-shadow:0 0 42px #ffba7550,inset -10px -12px 25px #5a307766,inset 0 1px #fff6; }
.cover-sunsetly .cover-shape::after,.cover-coral .cover-shape::after { content:''; position:absolute; inset:59% -48% auto; height:40px; background:linear-gradient(#2c213b88,#2c213b); border-top:1px solid #ffcdab45; transform:rotate(-14deg); }
.project-card-body { display:block; padding:17px 19px 19px; flex:1; }
.project-card-top { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.project-open { font-size:10px; color:var(--muted); white-space:nowrap; }
.project-card-title { display:flex; justify-content:space-between; align-items:center; font-size:17px; font-weight:700; letter-spacing:-.6px; margin:11px 0 6px; gap:12px; line-height:1.4; }
.project-card-title svg { width:18px; height:18px; color:var(--muted); transform:rotate(-35deg); transition:transform .2s,color .2s; }
.project-card:hover .project-card-title svg { transform:rotate(-35deg) translateX(2px); color:var(--accent); }
.project-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:11px; color:var(--muted); min-height:34px; line-height:1.55; margin:0 0 16px; }
.project-card .progress-line { display:flex; justify-content:space-between; margin-top:9px; font-size:10px; }
main[data-view="home"] .project-cover { height:88px; }
main[data-view="home"] .project-card-body { padding:12px 17px 14px; }
main[data-view="home"] .project-description { display:none; }
main[data-view="home"] .project-card-title { margin:9px 0 14px; }
main[data-view="home"] .project-progress .section-heading p { display:none; }
main[data-view="home"] .next-section .section-heading p { display:none; }
main[data-view="home"] .metric { padding:11px 18px; }
main[data-view="home"] .metric strong { font-size:29px; line-height:1.15; margin:6px 0; }
main[data-view="home"] .metrics { margin-bottom:20px; }
main[data-view="home"] .project-progress { margin-bottom:14px; }
main[data-view="home"] .project-progress .section-heading { margin-bottom:14px; }
progress { height:4px; }
.focus-grid { grid-template-columns:minmax(0,1fr) 292px; gap:26px; align-items:start; }
.next-section { min-width:0; }
.home-filters { display:none; margin-bottom:14px; }
.home-filters:has(option:checked:not([value=""])) { display:flex; }
.filters { gap:8px; }
.filters select,.filters input { min-height:42px; border-radius:9px; font-size:12px; padding:8px 11px; color:var(--muted); }
.results-line { font-size:12px; margin:18px 0; }
.results-line select { min-height:36px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:5px 8px; margin-left:8px; font-size:12px; }
.segmented { border-radius:10px; padding:4px; }
.segmented button { min-height:32px; border-radius:7px; font-size:12px; }
.segmented button.active { color:var(--accent); background:var(--panel-2); }
.task-tabs { display:flex; gap:5px; margin:0 0 20px; border-bottom:1px solid var(--line); }
.task-tabs button { border:0; border-bottom:2px solid transparent; background:transparent; padding:10px 17px 13px; font-size:13px; font-weight:600; color:var(--muted); min-height:44px; }
.task-tabs button.active { border-bottom-color:var(--accent); color:var(--text); }
.task-tabs button:hover { color:var(--accent); }
.task-list { border-radius:14px; }
.task-row { padding:17px 18px; gap:13px; grid-template-columns:24px minmax(0,1fr) auto; }
.task-title,.cell-title { font-size:13px; font-weight:600; line-height:1.6; }
.task-owner { font-size:11px; color:var(--muted); gap:7px; }
.task-side .avatar { width:27px; height:27px; font-size:10px; }
.check-button { width:21px; height:21px; border-radius:7px; transition:background .18s,box-shadow .18s; }
.task-meta { gap:8px; margin-top:7px; }
.task-meta .pill { font-size:9px; border-radius:5px; padding:3px 7px; }
.project-chip { font-size:10px; }
.project-dot { width:7px; height:7px; }
.blocker-line { font-size:11px; line-height:1.6; margin-top:7px; }
.pill { font-size:11px; border-radius:6px; }
.pill.review { font-size:10px; }
.all-tasks { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; border:0; background:transparent; color:var(--accent); min-height:49px; margin-top:7px; font-size:12px; }
.all-tasks svg { width:16px; height:16px; }
.all-tasks:hover { text-decoration:underline; }
.home-aside { display:flex; flex-direction:column; gap:17px; }
.home-aside .side-box { padding:19px; margin:0; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.side-box h2 { font-size:13px; font-weight:700; letter-spacing:-.2px; }
.side-box .section-heading { margin-bottom:9px; }
.side-box .section-heading>svg { width:17px; color:var(--faint); }
.owners-box .subtle { margin:0 0 11px; }
.owner-list { display:flex; flex-direction:column; gap:2px; }
.owner-summary { display:flex; align-items:center; gap:10px; border:0; border-radius:9px; background:none; width:100%; text-align:left; min-height:45px; padding:6px; font-size:12px; }
.owner-summary:hover { background:var(--hover); }
.owner-summary strong { margin-left:auto; font-size:13px; font-weight:600; }
.owner-summary svg { width:14px; color:var(--faint); }
.followup-item { padding:11px 0; gap:10px; }
.followup-item button { font-size:12px; font-weight:550; line-height:1.6; }
.followup-item small { font-size:10px; line-height:1.65; }
.followup-item .round-icon { background:#de8b7512; color:var(--red); border:1px solid #de8b7520; }
.budget-figures { font-size:11px; }
.budget-figures strong { font-size:26px; font-weight:700; }
.note-box,.review-notice { font-size:12px; border-radius:10px; line-height:1.8; }
.subtle { font-size:11px; }
.table-wrap { border-radius:14px; }
.list-table th { font-size:11px; padding-top:15px; padding-bottom:15px; }
.list-table td { padding-top:19px; padding-bottom:19px; font-size:12px; }
.cell-sub { font-size:11px; line-height:1.65; }
.req-segment { width:11px; height:5px; }
.board-column { border-radius:14px; }
.board-column h2 { font-size:12px; }
.board-card { border-radius:10px; padding:15px; }
.board-card .cell-title { font-size:12px; }
.board-card select { min-height:35px; font-size:12px; border-radius:7px; }
.idea-card { border-radius:16px; padding:22px; }
.idea-card p { font-size:13px; line-height:1.75; }
.idea-card h2 .cell-title { font-size:16px; letter-spacing:-.4px; }
.settings-box { border-radius:16px; }
.settings-box h2 { font-size:18px; font-weight:700; letter-spacing:-.5px; }
.settings-box p { font-size:13px; }
.source-list { border-radius:14px; }
.source-row { padding:18px 20px; }
.source-row p { font-size:11px; line-height:1.65; }
.timeline-item p { font-size:13px; }
.timeline-item small,.timeline-item .changes { font-size:11px; line-height:1.7; }
.dialog { border-radius:20px; }
.dialog::backdrop { background:#08091099; backdrop-filter:blur(9px); }
.dialog-head { padding:25px 29px 21px; }
.dialog-head h2 { font-size:25px; font-weight:700; letter-spacing:-.8px; line-height:1.35; }
.dialog-head small { font-size:11px; }
.dialog-body { padding:25px 29px; }
.dialog-footer { padding:17px 29px; }
.detail-overview { gap:23px; }
.data-field small { font-size:10px; }
.data-field div { font-size:13px; line-height:1.7; }
.detail-description { font-size:14px; }
.detail-section h3 { font-size:14px; font-weight:700; }
.detail-section p { font-size:13px; line-height:1.75; }
.field { font-size:13px; gap:8px; }
.field input,.field select,.field textarea { border-radius:10px; min-height:44px; font-size:14px; padding:11px 13px; }
.field textarea { line-height:1.8; }
.field small,.field-checkbox,.checklist label { font-size:12px; }
.field-checkbox input,.checklist input { width:18px; height:18px; }
details.advanced { padding:15px 16px; border-radius:12px; }
details.advanced summary { font-size:13px; }
.source-ref,.file-item { border-radius:10px; font-size:12px; }
.source-ref button { font-size:12px; }
.source-ref p,.source-ref blockquote { font-size:11px; line-height:1.8; }
.req-list { border-radius:12px; }
.req-row { padding:15px; }
.req-row strong { font-size:12px; }
.req-row small,.req-row .text-button { font-size:11px; }
.communication-text,.source-body { font-size:13px; line-height:1.85; border-radius:12px; }
.quick-item { border-radius:12px; min-height:78px; font-size:13px; }
.quick-item small { font-size:11px; }
.toast { border-radius:13px; font-size:13px; padding:15px 19px; }
.empty-state { border-radius:16px; }
.empty-state h2 { font-size:19px; font-weight:650; }
.empty-state p { font-size:13px; line-height:1.7; }
.kbd-hint { font-size:11px; line-height:1.7; margin-top:17px; }
@media (min-width:1600px) { .focus-grid { grid-template-columns:minmax(0,1fr) 330px; } main { padding-top:42px; } .project-cover { height:151px; } .cover-shape { top:33px; } }
@media (max-width:1200px) {
  .sidebar { width:222px; padding-left:13px; padding-right:13px; }
  .workspace { margin-left:222px; } .topbar { padding:0 26px; } main { padding:30px 26px 65px; }
  .focus-grid { grid-template-columns:minmax(0,1fr) 260px; gap:19px; }
  .project-grid { gap:12px; } .project-card-body { padding:15px; } .project-card-title { font-size:15px; }
  .cover-shape { right:24px; } .cover-sunsetly .cover-shape { right:24px; }
  .project-card-top { flex-wrap:wrap; gap:5px; } .metric { padding:16px; }
  main[data-view="home"] .page-heading h1 { font-size:36px; }
}
@media (max-width:1020px) {
  .focus-grid { grid-template-columns:1fr; } .home-aside { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .home-aside .side-box:last-child { grid-column:auto; } .project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .project-description { display:none; } .project-card-title { font-size:14px; margin-bottom:17px; }
  .cover-word { left:16px; } .cover-shape { right:12px; opacity:.8; } .cover-sunsetly .cover-word { font-size:19px; }
  .heading-actions .date-label { display:none; } .save-status { display:none; }
}
@media (max-width:720px) {
  .sidebar { width:270px; padding:28px 18px 20px; overflow-y:auto; }
  .sidebar .nav-item { min-height:44px; }
  .workspace { margin-left:0; } .topbar { height:74px; padding:0 15px; gap:10px; }
  .mobile-menu { width:35px; flex:none; margin-left:-4px; }
  .global-search { min-width:0; min-height:42px; padding:0 10px; gap:6px; border-radius:11px; }
  .global-search input { font-size:16px; min-width:0; width:100%; }
  .global-search input::placeholder { font-size:12px; } .top-add { width:40px; min-height:42px; border-radius:11px; font-size:23px; flex:none; }
  .topbar>.avatar { display:inline-flex; width:32px; height:32px; font-size:10px; }
  main { padding:27px 18px 108px; } .page-heading { gap:15px; margin-bottom:23px; }
  .page-heading h1,main[data-view="home"] .page-heading h1 { font-size:32px; letter-spacing:-1.5px; margin:9px 0 10px; }
  .page-heading p { font-size:12px; max-width:330px; line-height:1.75; }
  .eyebrow { font-size:9px; letter-spacing:1.7px; } .heading-actions { width:auto; padding:0; }
  main[data-view="home"] .heading-actions { display:none; }
  .metrics { gap:9px; margin-bottom:27px; } .metric { padding:14px 15px; border-radius:12px; }
  .metric-label { font-size:11px; } .metric-label svg { display:block; width:14px; height:14px; }
  .metric strong { font-size:30px; margin-top:4px; } .metric small { font-size:9px; min-height:27px; }
  .section-heading h2 { font-size:18px; } .section-heading p { font-size:11px; }
  .section-heading .text-button { font-size:11px; gap:4px; padding:3px 0; }
  .project-progress { margin-bottom:30px; } .project-progress .section-heading p { display:none; }
  .project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .project-card { border-radius:12px; }
  .project-cover { height:90px; } .cover-word { top:12px; left:12px; font-size:23px; }
  main[data-view="home"] .project-cover { height:90px; }
  main[data-view="home"] .project-card-body { padding:11px 10px 12px; }
  main[data-view="home"] .project-card-title { margin:0 0 10px; }
  main[data-view="home"] .metric { padding:14px 15px; }
  .cover-sunsetly .cover-word { top:13px; font-size:15px; letter-spacing:-.7px; }
  .cover-spark { left:12px; bottom:10px; font-size:17px; }
  .cover-shape,.cover-celaje .cover-shape,.cover-blue .cover-shape { width:55px; height:55px; top:28px; right:-4px; border-radius:14px; }
  .cover-portfolio .cover-shape i { border-radius:10px; inset:3px; }
  .cover-portfolio .cover-shape i:nth-child(3)::before { font-size:31px; line-height:46px; }
  .cover-celaje .cover-shape::before,.cover-blue .cover-shape::before { inset:11px; border-radius:6px; background-position:0 8px; }
  .cover-celaje .cover-shape::after,.cover-blue .cover-shape::after { top:18px; left:19px; font-size:21px; }
  .cover-sunsetly .cover-shape,.cover-coral .cover-shape { width:76px; height:76px; right:-12px; top:25px; }
  .project-card-body { padding:11px 10px 12px; }
  .project-card-top { display:none; } .project-card-title { font-size:12px; line-height:1.4; letter-spacing:-.25px; margin:0 0 10px; min-height:34px; }
  .project-card-title svg { display:none; } .project-description { display:none; }
  .project-card .progress-line { font-size:9px; line-height:1.5; margin-top:7px; }
  .project-card .progress-line>span:first-child { max-width:70px; } .project-card .progress-line>span:last-child { display:none; }
  main[data-view="projects"] .project-grid { grid-template-columns:1fr; gap:16px; }
  main[data-view="projects"] .project-cover { height:130px; }
  main[data-view="projects"] .project-card-body { padding:18px; }
  main[data-view="projects"] .project-card-top { display:flex; }
  main[data-view="projects"] .project-card-title { font-size:18px; margin:10px 0; min-height:0; }
  main[data-view="projects"] .project-card-title svg { display:block; }
  main[data-view="projects"] .project-description { display:block; }
  main[data-view="projects"] .progress-line { font-size:11px; }
  main[data-view="projects"] .progress-line>span:first-child { max-width:none; }
  .focus-grid { gap:23px; } .next-section .section-heading p { display:none; }
  .next-section .button { min-height:38px; font-size:11px; padding:8px 10px; }
  .filters { gap:8px; } .filters select,.filters input[type="date"] { font-size:16px; min-height:44px; flex:1; min-width:130px; max-width:100%; padding:8px 10px; }
  .home-filters select { font-size:13px; } .filters .text-button { min-height:40px; }
  .task-row { grid-template-columns:22px minmax(0,1fr); gap:11px; padding:16px 13px; position:relative; align-items:start; }
  .check-button { margin-top:2px; width:21px; height:21px; }
  .task-title { font-size:13px; line-height:1.6; } .task-meta { gap:6px; margin-top:8px; }
  .task-meta .pill { font-size:9px; } .task-meta .project-chip { font-size:10px; }
  .task-side { grid-column:2; justify-content:flex-end; margin-top:0; }
  .task-owner { font-size:10px; gap:6px; } .task-owner .avatar { display:inline-flex; width:21px; height:21px; font-size:9px; }
  .task-side .order-controls { display:flex; flex-direction:row; gap:3px; }
  .task-side .order-controls .icon-button { width:34px; min-height:30px; background:var(--panel-2); border-radius:7px; }
  .results-line { font-size:11px; gap:7px; } .results-line select { margin-left:3px; padding:4px; font-size:12px; }
  .segmented button { min-height:34px; padding:5px 8px; font-size:11px; } .segmented button svg { width:13px; }
  .home-aside { grid-template-columns:1fr; gap:14px; } .home-aside .side-box { padding:19px; }
  .mobile-bottom { background:var(--glass); backdrop-filter:blur(20px); padding-top:8px; }
  .mobile-bottom button { min-height:49px; min-width:58px; font-size:10px; color:var(--muted); border-radius:10px; gap:5px; padding:5px 10px; }
  .mobile-bottom button.active { color:var(--accent); background:#f2b75912; }
  .mobile-bottom svg { width:21px; height:21px; }
  .list-table tr { padding:18px 16px; gap:10px; } .list-table td { padding:0; }
  .list-table thead { display:none; }
  .list-table .cell-title { font-size:14px; } .list-table td .cell-sub { font-size:11px; }
  .pill { font-size:10px; } .idea-card { padding:21px; }
  .dialog { border-radius:17px; max-height:calc(100dvh - 22px); width:calc(100vw - 18px); }
  .dialog-head { padding:20px 19px 17px; } .dialog-head h2 { font-size:22px; letter-spacing:-.65px; }
  .dialog-body { padding:23px 19px; } .dialog-footer { padding:14px 19px; }
  .dialog-footer .button { min-height:42px; font-size:12px; }
  .dialog-footer .right-actions { flex-wrap:wrap; gap:7px; }
  .data-field div { font-size:12px; } .detail-overview { gap:18px; }
  .field input,.field select,.field textarea { font-size:16px; min-height:47px; }
  .field small { font-size:11px; } .req-row strong { font-size:12px; }
  .req-row .text-button { font-size:11px; } .req-row small { font-size:11px; }
  .communication-text,.source-body { font-size:12px; }
  .quick-grid { gap:10px; } .quick-item { min-height:86px; padding:15px 12px; font-size:12px; }
  .quick-item small { font-size:10px; } .quick-item svg { width:19px; }
  .toast { bottom:90px; left:50%; font-size:12px; padding:14px 16px; }
}
@media (max-width:370px) {
  main { padding-left:14px; padding-right:14px; } .topbar { padding-left:12px; padding-right:12px; }
  main[data-view="home"] .page-heading h1 { font-size:29px; }
  .project-grid { gap:7px; } .project-card-body { padding:10px 8px; }
  .metric { padding:13px 12px; } .metric-label { font-size:10px; }
  .mobile-bottom button { min-width:54px; padding-left:8px; padding-right:8px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .button.primary:hover,.project-card:hover,.metric:hover { transform:none; }
}
