:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #23272c;
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, summary:focus-visible { outline: 2px solid #466b59; outline-offset: 4px; }
main { max-width: 1160px; margin: auto; padding: 44px 32px 24px; }
.header, .heading, .header-actions, .connection, .summary, footer { display: flex; align-items: center; }
.header { justify-content: space-between; gap: 20px; }
.heading { gap: 10px; }
h1 { margin: 0; font-size: 24px; font-weight: 580; letter-spacing: -.7px; }
.header-actions { gap: 20px; }
.connection { gap: 7px; color: #79817c; font-size: 11px; }
.status-dot, .small-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #69947a; flex-shrink: 0; }
.connection.offline .status-dot { background: #b88c55; }
.button { background: #fff; border: 1px solid #dfe3df; border-radius: 6px; padding: 8px 12px; color: #5f6862; font-size: 11px; }
.button:hover:not(:disabled) { background: #f5f7f5; border-color: #bcc8bd; }
.button-primary { background: #f4f6f4; }
.count-badge { padding: 2px 6px; border-radius: 4px; color: #8a928d; background: #f2f4f2; font-size: 10px; font-weight: 400; }
.summary { gap: 20px; color: #939a95; font-size: 11px; margin: 23px 0 27px; }
.summary b { color: #606a62; font-weight: 500; margin-left: 4px; }
#demo-label { margin-left: auto; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; border: 1px solid #e4e7e4; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; }
.card-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.card h3 { font-size: 14px; font-weight: 550; letter-spacing: -.2px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.badge { color: #62836d; font-size: 10px; white-space: nowrap; }
.badge.completed { color: #536f60; }
.badge.queued, .badge.stopped { color: #90968f; }
.badge.failed { color: #ac6357; }
.card-message { margin: 0 0 23px; color: #989f99; font-size: 11px; line-height: 1.6; min-height: 18px; overflow-wrap: anywhere; }
.primary-field { margin-bottom: 23px; }
.primary-label { color: #919990; font-size: 11px; margin-bottom: 9px; }
.progress-numbers { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.progress-done { font-size: 36px; line-height: 1; font-weight: 450; letter-spacing: -1.5px; }
.progress-total { color: #a8afa7; font-size: 15px; }
.progress-percentage { margin-left: auto; color: #8c958c; font-size: 10px; }
.progress-track { appearance: none; -webkit-appearance: none; border: none; width: 100%; height: 4px; border-radius: 4px; background: #eff1ee; display: block; overflow: hidden; }
.progress-track::-webkit-progress-bar { background: #eff1ee; border-radius: 4px; }
.progress-track::-webkit-progress-value { background: #6e8f78; border-radius: 4px; }
.progress-track::-moz-progress-bar { background: #6e8f78; border-radius: 4px; }
.field-list { display: grid; gap: 13px; padding-top: 17px; margin-bottom: 22px; border-top: 1px solid #f0f2ee; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; }
.field-label { color: #90988e; font-size: 11px; flex-shrink: 0; }
.field-value { color: #636f62; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.5; }
.secondary-progress { margin-bottom: 0; }
.secondary-progress .progress-done { font-size: 21px; letter-spacing: -.5px; }
.secondary-progress .progress-total { font-size: 12px; }
.secondary-progress .progress-numbers { margin-bottom: 9px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f2ee; }
.freshness { display: flex; align-items: center; gap: 6px; color: #989f96; font-size: 9px; }
.freshness.stale { color: #aa885e; }
.freshness.stale .small-dot { background: #b79465; }
.card-kind { color: #b3b8af; font-size: 8px; letter-spacing: .7px; }
.card-actions { display: flex; gap: 7px; margin-top: 15px; }
.card-actions .button { flex: 1; padding: 7px 8px; font-size: 10px; }
.error-banner { border: 1px solid #e9d9c5; color: #9b7850; background: #fffaf3; padding: 12px 15px; border-radius: 6px; font-size: 11px; line-height: 1.6; margin-bottom: 20px; }
.empty-state { border: 1px dashed #e0e5de; border-radius: 10px; padding: 48px 20px; text-align: center; }
.empty-state p { color: #6f7a6d; font-size: 14px; }
.empty-state span { color: #a1a89c; font-size: 11px; }
.history { margin-top: 24px; }
.history summary { cursor: pointer; color: #949d91; font-size: 11px; }
.history .count-badge { margin-left: 5px; }
.history .cards-grid { margin-top: 16px; }
footer { gap: 18px; flex-wrap: wrap; border-top: 1px solid #eef1eb; margin-top: 32px; padding-top: 17px; color: #a3aa9e; font-size: 10px; }
.sync { margin-left: auto; }
.card-tools { display: flex; align-items: center; gap: 10px; }
.card-menu { position: relative; font-size: 10px; }
.card-menu summary { cursor: pointer; list-style: none; color: #8a9488; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu[open] summary { color: #414d40; }
.menu-items { position: absolute; z-index: 3; top: 22px; right: 0; min-width: 180px; padding: 5px; background: #fff; border: 1px solid #dfe5db; border-radius: 7px; box-shadow: 0 5px 20px #26332312; }
.menu-items button { display: block; border: 0; background: transparent; padding: 10px; width: 100%; text-align: left; font-size: 11px; color: #687462; border-radius: 4px; }
.menu-items button:hover:not(:disabled) { background: #f5f7f2; }
.menu-items .danger { color: #a76b61; }
.text-button { background: transparent; border: 0; padding: 4px 0; color: #617a5e; font-size: 11px; }
.notice { display: flex; gap: 15px; align-items: center; padding: 10px 0 18px; color: #798772; font-size: 11px; }
.storage-panel { border-top: 1px solid #eef1eb; margin-top: 25px; padding-top: 16px; color: #7c8875; font-size: 11px; }
.storage-panel summary { cursor: pointer; }
.storage-panel p { line-height: 1.7; }
.muted { color: #9ba592; }
.simple-list { display: grid; gap: 8px; padding-top: 12px; }
.simple-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 11px; padding: 8px 0; border-bottom: 1px solid #f2f4ef; }
.simple-row span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  main { padding: 25px 18px; }
  h1 { font-size: 22px; }
  .header-actions { gap: 12px; }
  .connection { font-size: 0; }
  .summary { margin: 22px 0; gap: 17px; }
  .cards-grid { grid-template-columns: 1fr; gap: 13px; }
  .card { padding: 19px; }
  footer { gap: 12px; font-size: 9px; }
  .sync { margin-left: 0; width: 100%; }
}
