:root {
  --ink: #273c49;
  --muted: #536571;
  --line: #dce4e8;
  --bg: #f4f7f9;
  --orange: #f47321;
  --active: #96410d;
  --queue: #334e70;
  --backlog: #61576a;
  --complete: #2c6559;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--active); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
h1, h2, h3, h4, p { margin: 0; }
.topbar { padding: 18px max(5%, calc((100% - 1192px) / 2)); background: white; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brands { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); }
.brands img { display: block; width: auto; }
.brands .brand { height: clamp(18px, 5vw, 48px); }
.brands .clearstart-logo { height: clamp(13px, 3.4vw, 30px); }
.brand-divider { flex: none; width: 1px; height: clamp(24px, 4vw, 34px); background: var(--line); }
.layout { width: min(90%, 1192px); margin: 0 auto; padding: 44px 0 60px; }
.intro, .controlbar, .sync, .task-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.055em; line-height: 1.15; }
.control, .search { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: .875rem; white-space: nowrap; }
.control:hover { border-color: #8a9da8; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 20px; }
.active { --tone: var(--active); --tint: #fff2e7; --icon: #ffe2cc; }
.queue { --tone: var(--queue); --tint: #edf3fa; --icon: #dce8f6; }
.backlog { --tone: var(--backlog); --tint: #f2eff4; --icon: #e7e0ec; }
.complete { --tone: var(--complete); --tint: #eaf5f0; --icon: #d5ebe1; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.metric { color: var(--tone); padding: 13px 17px; }
.metric span { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.metric strong { display: block; font-size: 2rem; font-weight: 650; margin-top: 7px; line-height: 1.2; }
.controlbar { margin-bottom: 22px; }
.search { min-width: min(100%, 285px); justify-content: flex-start; }
.search input { border: 0; width: 100%; background: transparent; color: var(--ink); }
.sync { color: var(--muted); font-size: .875rem; }
.project-sections { display: grid; gap: 18px; }
.panel-heading { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: var(--tint); color: var(--tone); }
.project-tag-heading { padding: 9px 20px; background: #f8fafb; border-top: 1px solid var(--line); color: var(--ink); font-size: .875rem; font-weight: 650; }
.panel-heading h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.section-icon, .task-icon { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; color: var(--tone); background: var(--icon); border-radius: 9px; }
.count, .status { border-radius: 15px; white-space: nowrap; font-size: .875rem; font-weight: 600; padding: 4px 10px; color: var(--tone); }
.count { margin-left: auto; background: #fff; }
.status { background: var(--tint); }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 17px 20px; border-top: 1px solid var(--line); }
.task-icon { width: 30px; height: 30px; background: var(--tint); }
.task-body { width: 100%; min-width: 0; }
.task-line { align-items: flex-start; flex-wrap: wrap; gap: 5px 12px; }
.task-line h4 { font-size: 1rem; }
.task-line a { overflow-wrap: anywhere; }
.task-line svg { color: var(--muted); vertical-align: baseline; margin-left: 3px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-subtasks { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfc; font-size: .875rem; }
.project-subtasks summary { cursor: pointer; list-style: none; padding: 8px 11px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.project-subtasks summary::-webkit-details-marker { display: none; }
.project-subtasks:not([open]) summary svg { transform: rotate(-90deg); }
.project-subtasks ul { list-style: none; padding: 0 11px; margin: 0; }
.project-subtasks li { border-top: 1px solid var(--line); padding: 9px 0; }
.empty, .alert { color: var(--muted); padding: 16px 20px; }
.alert { color: var(--active); background: #fff2e7; margin-bottom: 18px; border-radius: 8px; }
.cover { max-width: 460px; width: 90%; margin: 9vh auto 40px; padding: clamp(22px, 6vw, 40px); background: white; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 14px; }
.cover h1 { font-size: clamp(1.8rem, 5vw, 2.35rem); margin-bottom: 10px; }
.cover p { color: var(--muted); }
.cover form { display: grid; gap: 7px; margin-top: 22px; }
.cover label { font-weight: 600; }
.cover input { width: 100%; padding: 10px; border: 1px solid #8194a0; border-radius: 7px; }
.cover button { margin-top: 7px; padding: 10px; border: 0; border-radius: 7px; background: var(--ink); color: white; font-weight: 650; }
.cover .alert { margin: 13px 0 0; }
@media (max-width: 640px) {
  .layout { padding-top: 25px; }
  .intro, .controlbar { flex-wrap: wrap; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 100%; }
  .sync { width: 100%; }
  .panel-heading, .project-tag-heading, .task { padding-inline: 13px; }
}
