:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif; color: #182b32; background: #f4f6f5; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: #006f68; text-underline-offset: 3px; }
::selection { background: #bce8df; color: #12342f; }
:focus-visible { outline: 3px solid #228b80; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(30px, calc((100vw - 1380px) / 2)); background: #fff; border-bottom: 1px solid #dce4e2; }
.brand { font-size: 18px; letter-spacing: -.025em; font-weight: 720; white-space: nowrap; }
.brand span { color: #00867c; padding: 0 3px; }
.topbar-actions { display: flex; align-items: center; gap: 28px; }
.topbar-domain { color: #6a7b7f; font-size: 13px; }
.topbar-actions form { margin: 0; }
.text-button { background: none; border: 0; color: #3a5658; font-size: 13px; font-weight: 650; padding: 12px 0; }
.text-button:hover { color: #006f68; text-decoration: underline; text-underline-offset: 4px; }
.main-layout { max-width: 1440px; padding: 46px 30px 80px; margin: auto; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 10px; }
.page-intro p { color: #627277; margin-bottom: 0; line-height: 1.5; }
.refresh-note { text-align: right; white-space: nowrap; font-size: 12px; }
.banner { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 22px; }
.banner.error, .form-error { background: #fff1ee; color: #a13f34; }
.banner.success { background: #e3f4ee; color: #17644f; }
.health-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #dce4e2; border-radius: 14px; margin-bottom: 38px; overflow: hidden; }
.health-item { min-height: 130px; padding: 24px 28px; }
.health-item + .health-item { border-left: 1px solid #e6ecea; }
.health-label { color: #697a7d; font-size: 13px; margin-bottom: 15px; }
.health-value { display: flex; align-items: center; gap: 10px; font-weight: 730; font-size: 23px; letter-spacing: -.025em; }
.health-value.smaller { font-size: 17px; min-height: 28px; }
.health-detail { color: #819094; font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.capture-settings-panel { background: #fff; border: 1px solid #dce4e2; border-radius: 14px; padding: 25px 28px; margin-bottom: 38px; }
.capture-settings-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.capture-settings-head h2 { margin-bottom: 5px; }
.capture-settings-head p { color: #718185; font-size: 13px; line-height: 1.5; margin: 0; }
.timezone-note { color: #7a8b8d; font-size: 12px; white-space: nowrap; padding-top: 4px; }
.mode-options, .rule-checks { border: 0; margin: 0; padding: 0; }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-option { display: flex; align-items: start; gap: 12px; margin: 0; padding: 16px; border: 1px solid #d8e3df; border-radius: 10px; cursor: pointer; }
.mode-option:has(input:checked) { background: #edf8f4; border-color: #55a794; }
.mode-option:focus-within { outline: 3px solid #d7eee8; }
.mode-option input, .check-option input { width: 16px; min-height: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #007e72; }
.mode-option span { display: grid; gap: 5px; }
.mode-option strong { font-size: 14px; color: #25413f; }
.mode-option small { font-size: 12px; line-height: 1.5; color: #6f8180; font-weight: 400; }
.rules-fields { border-top: 1px solid #e8eeeb; margin-top: 22px; padding-top: 22px; }
.rules-fields[hidden] { display: none; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.rule-field.wide { grid-column: 1 / -1; }
.rule-field input { margin-bottom: 8px; }
.rule-hint { font-size: 12px; color: #78898a; line-height: 1.5; margin: 0 0 17px; }
.rule-checks { margin: 4px 0 20px; }
.rule-checks legend { color: #3c5559; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-option { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 12px; margin: 0; padding: 9px 11px; border: 1px solid #dce6e2; border-radius: 8px; cursor: pointer; }
.check-option:has(input:checked) { border-color: #89bdae; background: #f1f9f5; }
.time-grid { max-width: 420px; }
.capture-save { margin-top: 4px; }
.captures-list { background: #fff; border: 1px solid #dce4e2; border-radius: 14px; padding: 0 20px; }
.captures-list.empty { padding: 30px 26px; }
.capture-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; padding: 18px 0; }
.capture-item + .capture-item { border-top: 1px solid #e8edeb; }
.capture-file { min-width: 0; }
.capture-file strong { display: block; color: #21383c; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 5px; }
.capture-meta { color: #64787a; font-size: 12px; line-height: 1.5; }
.capture-sub { color: #849294; font-size: 11px; line-height: 1.5; margin-top: 6px; }
.capture-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.capture-action .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.capture-action .phase { font-size: 12px; }
.capture-error { color: #a13f34; font-size: 12px; margin: 0 0 14px; }
.dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #9aa5a7; }
.dot.good { background: #1e9b75; box-shadow: 0 0 0 4px #e2f4ed; }
.dot.warn { background: #d09b3e; box-shadow: 0 0 0 4px #faf0d9; }
.dot.bad { background: #c9564e; box-shadow: 0 0 0 4px #fae9e7; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 34px; align-items: start; }
.activity-column, .settings-column, .section-block { min-width: 0; }
.section-block { margin-bottom: 42px; }
.section-heading { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; margin-bottom: 17px; }
h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.02em; margin: 0; }
.count-pill { color: #47746b; background: #e5f2ed; font-size: 12px; font-weight: 650; padding: 5px 9px; border-radius: 999px; }
.section-hint { color: #8c999c; font-size: 12px; }
.current-transfer { background: #fff; border: 1px solid #dce4e2; border-radius: 14px; padding: 5px 22px; }
.current-transfer.empty { padding: 31px 28px; }
.empty-title { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.empty-copy { font-size: 13px; color: #718185; line-height: 1.6; margin-bottom: 0; }
.transfer-item { padding: 20px 0; }
.transfer-item + .transfer-item { border-top: 1px solid #e8edeb; }
.transfer-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 17px; }
.transfer-name { display: grid; gap: 5px; min-width: 0; }
.transfer-name strong { font-size: 14px; overflow-wrap: anywhere; }
.transfer-name span { font-size: 12px; color: #819094; }
.phase { font-size: 12px; font-weight: 700; white-space: nowrap; color: #4c6a6a; }
.phase.completed { color: #238167; } .phase.failed, .phase.blocked { color: #b55943; }
.progress-track { height: 7px; border-radius: 999px; background: #e9efec; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #008b7b; }
.transfer-meta { color: #7f8f91; font-size: 12px; margin: 9px 0 0; font-variant-numeric: tabular-nums; }
.table-wrap { background: #fff; border: 1px solid #dce4e2; border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #718185; text-align: left; font-weight: 650; font-size: 11px; white-space: nowrap; background: #fafbfa; }
th, td { padding: 15px 17px; border-bottom: 1px solid #edf0ef; }
tr:last-child td { border-bottom: 0; }
td { color: #485d61; font-variant-numeric: tabular-nums; }
td:first-child { min-width: 170px; max-width: 270px; }
.file-name { display: block; color: #21383c; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td small { display: block; color: #8a989b; margin-top: 4px; }
.empty-table { color: #849294; text-align: center; padding: 30px; }
.settings-column { display: grid; gap: 18px; }
.settings-panel, .help-panel, .password-panel { background: #fff; border: 1px solid #dce4e2; border-radius: 14px; padding: 25px 26px; }
.settings-panel h2, .help-panel h2 { margin-bottom: 9px; }
.panel-intro, .help-panel p { font-size: 13px; line-height: 1.6; color: #718185; margin-bottom: 21px; }
.setup-alert { display: grid; gap: 6px; padding: 13px 14px; background: #fff6e7; color: #76581d; border-radius: 9px; font-size: 12px; line-height: 1.5; margin-bottom: 20px; }
.setup-alert strong { font-size: 13px; }
.settings-form, .password-panel form { display: grid; }
label { color: #3c5559; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
input, select { width: 100%; color: #1d3439; background: #fff; border: 1px solid #cddbd8; border-radius: 8px; min-height: 42px; padding: 9px 11px; font-size: 13px; margin-bottom: 18px; }
input:hover, select:hover { border-color: #91aaa3; }
input:focus, select:focus { border-color: #008b7b; outline: 3px solid #d7eee8; }
input::placeholder { color: #91a0a2; }
.field-hint { font-size: 11px; line-height: 1.5; color: #8a999b; margin: -12px 0 20px; }
.optional { color: #9ba9a9; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 17px; border-radius: 8px; font-size: 13px; font-weight: 720; transition: background .15s ease-out, box-shadow .15s ease-out; }
.button.primary { color: #fff; background: #007e72; border: 1px solid #007e72; }
.button.primary:hover:not(:disabled) { background: #006b61; box-shadow: 0 3px 10px rgba(0, 75, 66, .16); }
.button.secondary { color: #255d56; background: #eff7f4; border: 1px solid #bddbd1; }
.button.secondary:hover { background: #e1f0eb; }
.button.full { width: 100%; }
.command { display: block; color: #e1f1e9; background: #203934; padding: 13px 14px; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; user-select: all; }
.help-panel .help-note { margin: 16px 0 0; font-size: 12px; }
.password-panel { padding: 0; }
.password-panel summary { cursor: pointer; padding: 19px 25px; font-size: 13px; font-weight: 700; }
.password-panel form { padding: 4px 25px 24px; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: #eef3f1; padding: 24px; }
.login-shell { width: min(100%, 420px); }
.login-shell .brand { margin-bottom: 30px; }
.login-panel { background: #fff; border: 1px solid #dae5e0; border-radius: 16px; padding: 36px; box-shadow: 0 12px 30px rgba(31, 62, 54, .06); }
.status-mark { width: 22px; height: 5px; background: #008b7b; border-radius: 8px; margin-bottom: 29px; }
.login-panel h1 { font-size: 25px; margin-bottom: 10px; }
.login-panel > p { font-size: 13px; color: #78898a; line-height: 1.6; margin-bottom: 29px; }
.login-panel form { display: grid; }
.login-panel input { margin-bottom: 17px; }
.form-error { padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.login-foot { font-size: 12px; color: #82918f; text-align: center; margin: 19px 0 0; }
@media (max-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1fr); } .settings-column { grid-template-columns: repeat(2, minmax(0, 1fr)); } .password-panel { grid-column: 1 / -1; } }
@media (max-width: 640px) { .topbar { padding: 0 18px; min-height: 63px; } .topbar-domain { display: none; } .main-layout { padding: 32px 17px 60px; } .page-intro { display: block; } .refresh-note { text-align: left; margin-top: 13px; } h1 { font-size: 27px; } .health-strip { grid-template-columns: 1fr 1fr; } .health-item { padding: 19px 18px; min-height: 115px; } .health-item:nth-child(2) { border-left: 1px solid #e6ecea; } .health-item.compact { grid-column: 1 / -1; min-height: 90px; border-top: 1px solid #e6ecea; border-left: 0; } .health-value { font-size: 19px; } .settings-column { grid-template-columns: 1fr; } .password-panel { grid-column: auto; } .settings-panel, .help-panel, .capture-settings-panel { padding: 22px; } .capture-settings-head { display: block; } .timezone-note { display: block; margin-top: 8px; } .mode-options { grid-template-columns: 1fr; } .capture-item { grid-template-columns: 1fr; } .capture-action { justify-content: start; } .section-block { margin-bottom: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
