:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #25332e;
  background: #f6f7f4;
  font-synthesis: none;
  --green: #244d39;
  --muted: #748079;
  --line: #e5e9e3;
  --accent: #d9ecb6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #88a46c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 21px 19px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.7px;
  font-weight: 750;
}
.brand-light {
  font-weight: 450;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #91988f;
  margin: 56px 13px 15px;
  font-weight: 650;
}
nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  border: 0;
  background: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
}
.nav-item > span:first-child {
  font-size: 19px;
  font-weight: 400;
  width: 19px;
  text-align: center;
}
.nav-item.active {
  background: #edf2e7;
  color: #315435;
}
.nav-count {
  margin-left: auto;
  border: 1px solid #d6dfca;
  border-radius: 4px;
  background: #e3ebd8;
  font-size: 10px;
  padding: 2px 6px;
}
.nav-item:hover {
  background: #f1f5ec;
}
.sidebar-bottom {
  margin: auto 8px 29px;
  padding: 25px 3px 0;
  border-top: 1px solid var(--line);
}
.privacy-symbol {
  font-size: 26px;
  color: #64814e;
  margin-bottom: 12px;
}
.sidebar-bottom strong {
  font-size: 12px;
  font-weight: 600;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  margin: 9px 0 16px;
}
.local-pill {
  font-size: 10px;
  color: #567148;
  background: #f0f4e9;
  padding: 6px 9px;
  border-radius: 4px;
}
.sidebar-footer {
  font-size: 10px;
  color: #969e97;
  text-align: center;
}
.workspace {
  margin-left: 238px;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.breadcrumb {
  font-size: 11px;
  color: #859087;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bac1b8;
}
.breadcrumb strong {
  color: #4a554d;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.snapshot-tag {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #6c786d;
  border: 1px solid #e1e7dd;
  border-radius: 5px;
  padding: 6px 9px;
}
.avatar {
  font-size: 10px;
  background: #e7eddf;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  color: #4b6141;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 40px 40px 0;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #809078;
}
h1 {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1.1px;
  margin: 12px 0 10px;
  line-height: 1.25;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.button {
  border-radius: 6px;
  font-size: 11px;
  font-weight: 550;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #dce2d7;
  background: #fff;
  transition: background 0.15s;
}
.button.primary {
  background: #294e3a;
  color: white;
  border-color: #294e3a;
  box-shadow: 0 2px 3px #1d352916;
}
.button.primary:hover {
  background: #173b28;
}
.button.subtle:hover {
  background: #edf2e7;
}
.button.danger {
  color: #8c4c3b;
  background: #fff;
  border-color: #e8ddd6;
}
.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #edf2e7;
  border: 1px solid #dfe8d2;
  border-radius: 7px;
  padding: 14px 16px;
  margin-top: 28px;
  color: #6f7e64;
}
.notice-icon {
  font-size: 21px;
  color: #698454;
}
.notice p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
.notice strong {
  font-weight: 600;
  color: #526847;
  margin-right: 5px;
}
.text-button {
  border: 0;
  background: none;
  font-size: 10px;
  font-weight: 550;
  color: #5a7550;
  padding: 8px 0;
  white-space: nowrap;
}
.text-button:hover {
  text-decoration: underline;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 23px 0 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px 17px;
  background: #fff;
}
.stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f7c72;
  font-size: 10px;
}
.stat-icon {
  font-size: 18px;
  color: #8c9b82;
  line-height: 20px;
}
.stat-icon.green {
  color: #789c62;
}
.stat-icon.amber {
  color: #b8a078;
}
.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 550;
  margin: 14px 0 9px;
  letter-spacing: -0.8px;
}
.stat p {
  margin: 0;
  font-size: 9px;
  color: #8a938a;
  line-height: 1.5;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  align-items: start;
}
.schedule-panel,
.timeline-panel,
.sources-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-heading {
  padding: 22px 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.25px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading h2 > span {
  font-size: 9px;
  font-weight: 500;
  color: #7c8974;
  border: 1px solid #e7ebdf;
  background: #f5f7f0;
  min-width: 21px;
  border-radius: 5px;
  padding: 3px 5px;
  text-align: center;
}
.panel-heading p {
  font-size: 10px;
  color: #90988c;
  margin: 7px 0 0;
  line-height: 1.6;
}
.filters {
  padding: 0 22px 19px;
  display: grid;
  gap: 11px;
}
.search-field {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #e2e7de;
  border-radius: 5px;
  height: 37px;
  padding: 0 11px;
  background: #fcfdfb;
}
.search-field > span {
  font-size: 22px;
  line-height: 1;
  color: #8a9782;
}
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 10px;
  color: #3b493f;
  min-width: 0;
}
.search-field input::placeholder {
  color: #a0a79a;
}
.search-field:focus-within {
  outline: 2px solid #8baf75;
}
.filter-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
select {
  height: 33px;
  border: 1px solid #e0e5da;
  background: #fff;
  border-radius: 5px;
  padding: 0 27px 0 10px;
  color: #717d69;
  font-size: 10px;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  table-layout: fixed;
}
thead {
  background: #f9faf7;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  font-weight: 550;
  color: #87917e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}
th:first-child {
  width: 40%;
  padding-left: 22px;
}
th:nth-child(2) {
  width: 25%;
}
th:nth-child(3) {
  width: 29%;
}
th:nth-child(4) {
  width: 6%;
  padding: 0;
}
td {
  padding: 18px 13px;
  border-bottom: 1px solid #eef0ea;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
td:first-child {
  padding-left: 22px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.task-title {
  display: block;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #364535;
  overflow-wrap: anywhere;
}
.task-title:hover {
  text-decoration: underline;
  color: #245a36;
}
.agent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #7f8b77;
  margin-top: 8px;
}
.agent-dot {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #edf1e7;
  color: #7a8b6a;
  font-size: 8px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.source-caption {
  font-size: 8px;
  color: #75816c;
  margin-top: 5px;
  line-height: 1.4;
}
.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.badge {
  font-size: 8px;
  font-weight: 550;
  padding: 4px 7px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}
.badge.enabled {
  color: #527447;
  background: #eef4e5;
}
.badge.enabled:before {
  content: "●";
  font-size: 6px;
  margin-right: 5px;
}
.badge.paused {
  color: #8e8165;
  background: #f6f0e4;
}
.badge.held {
  color: #a07746;
  background: #faf0df;
}
.badge.neutral {
  color: #788278;
  background: #eff1ec;
}
.last-result {
  font-size: 8px;
  color: #74806b;
  margin-top: 9px;
}
.result-error {
  color: #ad6b51;
}
.next-date {
  font-size: 11px;
  color: #58654f;
  line-height: 1.5;
  font-weight: 500;
}
.next-caption {
  font-size: 8px;
  color: #77836e;
  margin-top: 6px;
  line-height: 1.5;
}
.timing-kind {
  display: block;
  font-size: 8px;
  color: #78856f;
  margin-top: 3px;
}
.action-cell {
  padding: 0 5px;
}
.row-open {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #8f9d83;
  font-size: 16px;
  width: 29px;
  min-height: 40px;
}
.row-open:hover {
  background: #f2f6eb;
  border-radius: 5px;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  font-size: 8px;
  color: #748168;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.table-footer span:last-child {
  color: #7b8d6b;
}
.timeline-panel {
  padding-bottom: 18px;
}
.timeline-panel .panel-heading {
  padding-bottom: 19px;
}
.timeline-mark {
  font-size: 22px;
  color: #819572;
}
.timezone-label {
  font-size: 8px;
  color: #8c9982;
  letter-spacing: 1.2px;
  display: block;
  margin: 0 22px 8px;
  font-weight: 600;
}
#display-timezone {
  width: calc(100% - 44px);
  margin: 0 22px;
  background: #fcfdf9;
  color: #67775b;
  font-size: 10px;
}
.timezone-note {
  font-size: 8px;
  color: #9aa391;
  margin: 8px 22px 16px;
}
.timeline {
  padding: 0 22px;
}
.timeline-day {
  font-size: 8px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 600;
  color: #8e9b81;
  margin: 22px 0 12px;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: start;
  text-align: left;
  border: 0;
  border-left: 1px solid #e1e9d5;
  background: none;
  padding: 0 0 20px 12px;
  width: 100%;
}
.timeline-item:before {
  content: "";
  position: absolute;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #b8c8a4;
  background: #aec693;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  left: -5px;
  top: 3px;
}
.timeline-item:hover strong {
  color: #487237;
  text-decoration: underline;
}
.timeline-time {
  font-size: 9px;
  color: #8a997c;
  white-space: nowrap;
  min-width: 31px;
  padding-top: 2px;
}
.timeline-description {
  min-width: 0;
}
.timeline-description strong {
  font-size: 10px;
  line-height: 1.6;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.timeline-description small {
  font-size: 8px;
  line-height: 1.6;
  color: #99a18f;
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.timeline-footnote {
  font-size: 8px;
  line-height: 1.8;
  color: #9ca58f;
  border-top: 1px solid var(--line);
  margin: 13px 22px 0;
  padding-top: 14px;
}
.timeline-empty {
  font-size: 11px;
  line-height: 1.9;
  color: #929d87;
  padding: 30px 0;
}
.sources-panel {
  margin-top: 24px;
}
.sources-panel .panel-heading {
  padding-bottom: 20px;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 23px;
  border-top: 1px solid #eff1e9;
}
.source-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #8a9b78;
  background: #f0f4e9;
  border-radius: 6px;
  font-size: 18px;
  flex-shrink: 0;
}
.source-info {
  flex: 1;
  min-width: 0;
}
.source-info strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.source-info span {
  display: block;
  font-size: 9px;
  color: #96a08c;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.source-stamp {
  font-size: 9px;
  color: #87967b;
  line-height: 1.7;
  text-align: right;
}
.source-stamp small {
  display: block;
  font-size: 8px;
  color: #77836e;
}
.remove-source {
  font-size: 9px;
  color: #9a8a73;
  border: 0;
  background: none;
  padding: 10px;
}
.remove-source:hover {
  color: #8b4c35;
}
.storage-bar {
  padding: 17px 23px;
  background: #fcfdf9;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.storage-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #758466;
}
.storage-toggle input {
  accent-color: #315c3b;
  width: 14px;
  height: 14px;
  margin: 0;
}
.storage-bar p {
  font-size: 8px;
  color: #738268;
  line-height: 1.6;
  margin: 7px 0 0 22px;
}
.storage-bar .button {
  font-size: 9px;
  min-height: 32px;
  white-space: nowrap;
}
.no-sources {
  font-size: 11px;
  line-height: 1.8;
  color: #8a9780;
  margin: 0;
  padding: 5px 23px 22px;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  color: #a7af9d;
  font-size: 8px;
}
.main-footer > span:first-child {
  font-weight: 600;
  letter-spacing: 0.3px;
}
.empty-state {
  padding: 50px 25px;
  text-align: center;
  max-width: 450px;
  margin: auto;
}
.empty-icon {
  border: 1px solid #dbe4ce;
  background: #f1f6e8;
  width: 49px;
  height: 49px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #7b9361;
  font-size: 29px;
  margin: 0 auto 18px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.empty-state p {
  font-size: 11px;
  color: #929d87;
  line-height: 1.9;
  margin: 0 0 22px;
}
.empty-state .text-button {
  display: block;
  margin: 10px auto 0;
  font-size: 9px;
  white-space: normal;
  line-height: 1.7;
}
.message {
  margin-top: 16px;
  border: 1px solid #d7e5cb;
  color: #526e42;
  background: #f3f8ed;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 11px;
  line-height: 1.8;
}
.message.error {
  background: #fcf1e9;
  border-color: #edd7c5;
  color: #955c3a;
}
dialog {
  padding: 30px;
  border: 1px solid var(--line);
  color: var(--green);
  box-shadow: 0 16px 80px #172b2a30;
  max-height: 100dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #20372d69;
  backdrop-filter: blur(3px);
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: 570px;
  max-width: 100%;
  height: 100dvh;
  margin: 0;
  border-radius: 16px 0 0 16px;
  min-height: 100dvh;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.icon-button {
  font-size: 25px;
  color: #7a8e6b;
  background: #f3f6ef;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 1;
}
dialog h2 {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
dialog h3 {
  font-size: 12px;
  margin-top: 28px;
  font-weight: 600;
}
dialog p,
dialog li {
  font-size: 12px;
  line-height: 1.9;
  color: #7a876f;
}
dialog ol {
  padding-left: 22px;
}
.detail-badges {
  display: flex;
  gap: 7px;
}
.detail-badges .badge {
  font-size: 10px;
  padding: 5px 9px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 25px;
}
.detail-field dt {
  font-size: 9px;
  color: #91a080;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}
.detail-field dd {
  margin: 0;
  font-size: 11px;
  color: #5a6e4b;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.instructions,
.schedule-code,
.guide-dialog pre {
  font:
    11px/1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #f6f8f1;
  border: 1px solid #e4eadb;
  border-radius: 7px;
  padding: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5d714c;
}
.instructions {
  min-height: 130px;
}
.provenance {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.detail-note {
  background: #faf3e5;
  border-radius: 5px;
  padding: 13px;
}
.result-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.guide-dialog {
  border-radius: 13px;
  max-width: min(680px, calc(100% - 30px));
  max-height: 90dvh;
}
.guide-dialog h2 {
  margin-top: 0;
}
.guide-dialog pre {
  max-height: 330px;
  overflow: auto;
}
@media (min-width: 1500px) {
  body {
    font-size: 15px;
  }
  main {
    padding-top: 45px;
  }
  .heading-row {
    margin-bottom: 5px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 325px;
  }
  .task-title {
    font-size: 12px;
  }
  .next-date {
    font-size: 11px;
  }
  .agent-meta {
    font-size: 10px;
  }
  .notice p {
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 205px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 30px 25px 0;
  }
  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .heading-actions {
    align-self: flex-start;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 258px;
    gap: 16px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 17px 14px;
  }
  .stat > div {
    font-size: 9px;
  }
  .stat p {
    font-size: 8px;
  }
  h1 {
    font-size: 29px;
  }
  th:first-child {
    width: 39%;
    padding-left: 16px;
  }
  td:first-child {
    padding-left: 16px;
  }
  td {
    padding: 17px 9px;
  }
  .panel-heading {
    padding-left: 16px;
    padding-right: 16px;
  }
  .filters {
    padding-left: 16px;
    padding-right: 16px;
  }
  .timeline {
    padding: 0 16px;
  }
  .timeline-item {
    gap: 8px;
  }
  .next-caption {
    font-size: 8px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 180px;
    padding: 25px 12px;
  }
  .workspace {
    margin-left: 180px;
  }
  .brand {
    font-size: 14px;
    letter-spacing: -0.5px;
    gap: 6px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .nav-item {
    font-size: 10px;
    padding: 12px 8px;
    gap: 8px;
  }
  .sidebar-bottom {
    margin-left: 4px;
    margin-right: 4px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .timeline-panel {
    display: block;
  }
  .timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }
  .timeline-day {
    grid-column: 1/-1;
  }
  .timeline-footnote {
    margin-top: 5px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat strong {
    margin-top: 10px;
  }
  .notice {
    align-items: flex-start;
  }
  .notice .text-button {
    white-space: normal;
    text-align: left;
    max-width: 70px;
  }
  .source-stamp {
    max-width: 180px;
  }
  .task-title {
    font-size: 12px;
  }
  th:first-child {
    width: 41%;
  }
  .badge {
    font-size: 9px;
  }
  .next-date {
    font-size: 11px;
  }
  .agent-meta {
    font-size: 10px;
  }
  .stat > div {
    font-size: 11px;
  }
  .stat p {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 17px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .workspace {
    margin-left: 0;
  }
  .workspace-label,
  .sidebar-bottom,
  .sidebar-footer {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    font-size: 0;
    padding: 7px;
    gap: 0;
  }
  .nav-item > span:first-child {
    font-size: 21px;
  }
  .nav-item .nav-count {
    font-size: 9px;
    margin-left: 6px;
  }
  .nav-item:nth-child(2) {
    display: none;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .topbar-right {
    gap: 10px;
  }
  .avatar {
    display: none;
  }
  .snapshot-tag {
    font-size: 8px;
    padding: 4px 7px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  main {
    padding: 28px 17px 0;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.9px;
    margin-top: 10px;
  }
  .subtitle {
    font-size: 11px;
    max-width: 300px;
  }
  .heading-row {
    gap: 19px;
  }
  .heading-actions {
    width: 100%;
    gap: 9px;
  }
  .heading-actions .button {
    flex: 1;
    padding: 0 8px;
    font-size: 10px;
    min-height: 42px;
  }
  .notice {
    margin-top: 20px;
    padding: 12px;
    gap: 9px;
  }
  .notice p {
    font-size: 9px;
    line-height: 1.9;
  }
  .notice strong {
    display: block;
  }
  .notice .text-button {
    display: none;
  }
  .notice-icon {
    font-size: 19px;
    margin-top: 2px;
  }
  .stats-grid {
    gap: 10px;
    margin: 17px 0 20px;
  }
  .stat {
    padding: 15px 13px;
  }
  .stat > div {
    font-size: 9px;
  }
  .stat strong {
    font-size: 28px;
    margin: 9px 0 6px;
  }
  .stat p {
    font-size: 8px;
    max-width: 130px;
    line-height: 1.7;
  }
  .stat-icon {
    font-size: 16px;
  }
  .panel-heading {
    padding: 18px 14px 16px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .filters {
    padding: 0 14px 15px;
  }
  .search-field {
    height: 40px;
  }
  .search-field input {
    font-size: 11px;
  }
  .filter-row {
    gap: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-row label:last-child {
    grid-column: 1/-1;
  }
  .filter-row select {
    width: 100%;
    font-size: 10px;
    min-height: 36px;
  }
  th {
    font-size: 8px;
    letter-spacing: 0.3px;
    padding: 12px 7px;
  }
  th:first-child {
    width: 45%;
    padding-left: 14px;
  }
  th:nth-child(2) {
    width: 26%;
  }
  th:nth-child(3) {
    width: 29%;
  }
  th:last-child,
  td.action-cell {
    display: none;
  }
  td {
    padding: 17px 6px;
    vertical-align: top;
  }
  td:first-child {
    padding-left: 14px;
  }
  .task-title {
    font-size: 12px;
  }
  .agent-meta {
    font-size: 10px;
    gap: 4px;
    align-items: flex-start;
    line-height: 1.6;
  }
  .agent-dot {
    width: 14px;
    height: 14px;
    font-size: 7px;
  }
  .source-caption {
    font-size: 9px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 5px;
  }
  .next-date {
    font-size: 11px;
    line-height: 1.65;
  }
  .next-caption,
  .timing-kind,
  .last-result {
    font-size: 9px;
  }
  .table-footer {
    padding: 13px 14px;
    font-size: 7px;
  }
  .table-footer span:last-child {
    display: none;
  }
  .timeline {
    display: block;
  }
  .timeline-item {
    gap: 16px;
    padding-bottom: 22px;
  }
  .timeline-time {
    font-size: 11px;
    width: 35px;
  }
  .timeline-description strong {
    font-size: 12px;
  }
  .timeline-description small {
    font-size: 9px;
  }
  .timeline-day {
    font-size: 9px;
  }
  .timeline-footnote {
    font-size: 9px;
  }
  .timezone-label {
    font-size: 9px;
  }
  .timezone-note {
    font-size: 9px;
  }
  #display-timezone {
    font-size: 11px;
    height: 37px;
  }
  .sources-panel {
    margin-top: 18px;
  }
  .sources-panel .panel-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .sources-panel .text-button {
    font-size: 8px;
    white-space: normal;
    width: 75px;
    text-align: right;
    flex-shrink: 0;
  }
  .source-row {
    padding: 16px 14px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .source-symbol {
    width: 27px;
    height: 27px;
  }
  .source-info {
    flex: 1;
    min-width: 200px;
  }
  .source-info strong {
    font-size: 11px;
  }
  .source-info span {
    font-size: 10px;
  }
  .source-stamp {
    margin-left: 36px;
    text-align: left;
    max-width: none;
    flex: 1;
    font-size: 8px;
  }
  .source-stamp small {
    font-size: 7px;
  }
  .remove-source {
    font-size: 8px;
    padding: 9px;
  }
  .storage-bar {
    padding: 16px 14px;
    gap: 10px;
  }
  .storage-toggle {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.6;
  }
  .storage-toggle input {
    flex-shrink: 0;
    margin-top: 1px;
  }
  .storage-bar p {
    font-size: 7px;
    margin-left: 22px;
  }
  .storage-bar .button {
    font-size: 8px;
    padding: 0 10px;
  }
  .main-footer {
    font-size: 7px;
    padding: 22px 0;
  }
  .empty-state {
    padding: 40px 20px;
  }
  .empty-state h3 {
    font-size: 16px;
  }
  .empty-state p {
    font-size: 10px;
  }
  .empty-state .button {
    font-size: 10px;
  }
  .detail-dialog {
    border-radius: 0;
    padding: 24px 20px;
  }
  .detail-dialog h2 {
    font-size: 24px;
  }
  .detail-grid {
    gap: 20px 14px;
  }
  .detail-field dd {
    font-size: 10px;
  }
  .guide-dialog {
    padding: 22px 18px;
  }
  .guide-dialog h2 {
    font-size: 23px;
  }
  .instructions,
  .schedule-code,
  .guide-dialog pre {
    font-size: 10px;
    padding: 12px;
  }
  .message {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Private sign-in and cross-device workspace controls. */
.login-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 450px);
  padding: 38px;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 70px #243f3109;
}
.login-card .brand {
  margin-bottom: 45px;
}
.login-card h1 {
  font-size: 29px;
  margin-top: 14px;
}
.login-card p {
  font-size: 12px;
  color: #748069;
  line-height: 1.9;
}
#login-form {
  margin-top: 27px;
  display: grid;
  gap: 10px;
}
#login-form label {
  font-size: 11px;
  color: #607251;
  margin-top: 8px;
}
#login-form input {
  height: 43px;
  border: 1px solid #dce4d3;
  border-radius: 6px;
  padding: 10px;
  color: #294e3a;
  background: #fcfdf9;
  width: 100%;
}
#login-form .button {
  margin-top: 12px;
  min-height: 44px;
}
#login-form .button:disabled {
  opacity: 0.5;
}
#login-message {
  min-height: 36px;
  padding-top: 10px;
}
.login-card .login-footnote {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 20px;
  font-size: 10px;
}
#sync-status {
  max-width: 230px;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    min-height: 60px;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar-right {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar-right .text-button {
    font-size: 10px;
  }
  #sync-status {
    font-size: 8px;
  }
  .login-card {
    padding: 27px 23px;
  }
  .login-body {
    padding: 15px;
  }
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #dce4e2;
}
.connection-row .source-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#connection-form {
  display: grid;
  gap: 0.7rem;
}
#connection-form input:not([type="checkbox"]),
#connection-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.6rem;
}
.confirm-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}
#source-token,
#upload-endpoint {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
@media (max-width: 600px) {
  .connection-row {
    align-items: stretch;
    flex-direction: column;
  }
}
