@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f5f7f9;
  --surface: #fff;
  --surface-2: #f8fafb;
  --line: #e1e7eb;
  --line-strong: #ccd6dc;
  --text: #182228;
  --muted: #687982;
  --green: #168466;
  --green-soft: #e8f6f1;
  --blue: #3976d4;
  --blue-soft: #edf4ff;
  --amber: #aa6b12;
  --amber-soft: #fff5e5;
  --violet: #7656bd;
  --violet-soft: #f3effc;
  --red: #c24747;
  --red-soft: #fff0f0;
  --shadow: 0 8px 24px rgba(27, 45, 55, 0.06);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px Manrope,
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
}
svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}
.shell {
  display: flex;
  min-height: 100vh;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 27px 17px 22px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 35px;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}
.mark svg {
  width: 20px;
  height: 20px;
}
.brand b {
  display: block;
  font-size: 17px;
}
.brand span {
  display: block;
  color: #8a989f;
  font: 9px "DM Mono";
  margin-top: 3px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  border: 0;
  background: transparent;
  color: #5e6f78;
  padding: 11px 13px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-weight: 600;
}
nav button:hover {
  background: #f3f7f6;
  color: var(--text);
}
nav button.active {
  background: var(--green-soft);
  color: var(--green);
}
nav button svg {
  width: 18px;
  height: 18px;
}
.side-note {
  margin-top: auto;
  border: 1px solid #dbeae5;
  background: #f5fbf9;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse,
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a77e;
  box-shadow: 0 0 0 3px #d7f2e9;
}
.side-note b {
  display: block;
  font-size: 11px;
}
.side-note small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.side-footer {
  color: #8b989f;
  font: 10px "DM Mono";
  line-height: 1.8;
  padding: 18px 10px 0;
  display: grid;
  gap: 6px;
}
.side-footer a {
  color: #5e7770;
  text-decoration: none;
}
.logout {
  border: 0;
  background: transparent;
  color: #667980;
  padding: 7px 0;
  display: flex;
  gap: 7px;
  align-items: center;
  font: 11px Manrope;
  font-weight: 600;
}
.logout:hover {
  color: var(--red);
}
main {
  width: calc(100% - 230px);
  margin-left: 230px;
  padding: 34px 46px 70px;
  max-width: none;
}
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 27px;
}
.eyebrow {
  font: 10px "DM Mono";
  color: #819097;
  margin: 0 0 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
.primary,
.ghost,
.text-btn {
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  border: 1px solid transparent;
  min-height: 39px;
  padding: 0 15px;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #10765b;
}
.ghost {
  background: #fff;
  color: #4f626b;
  border-color: var(--line-strong);
}
.ghost:hover {
  background: #f7f9fa;
}
.ghost.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}
.ghost.tiny {
  min-height: 29px;
  padding: 0 9px;
  font-size: 10px;
}
.text-btn {
  background: transparent;
  color: var(--green);
  min-height: auto;
  padding: 4px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.summary-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.summary-strip > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  column-gap: 10px;
}
.summary-strip p {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.stat-icon {
  width: 39px;
  height: 39px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
}
.stat-icon.green {
  background: var(--green-soft);
  color: var(--green);
}
.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.stat-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.stat-icon.violet {
  background: var(--violet-soft);
  color: var(--violet);
}
.stat span {
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  margin: 3px 0;
}
.stat small {
  color: #8a989f;
  font-size: 10px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 13px;
}
.section-head .eyebrow {
  margin-bottom: 5px;
}
.log-head {
  margin-top: 32px;
}
.plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.plan-card,
.plan-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.plan-card {
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.plan-card:hover,
.plan-row:hover {
  border-color: #b9d2ca;
  box-shadow: var(--shadow);
}
.plan-name {
  font-weight: 700;
  margin-bottom: 6px;
}
.plan-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 4px;
  padding: 4px 7px;
  font: 10px "DM Mono";
}
.tag.orange {
  background: var(--amber-soft);
  color: var(--amber);
}
.actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn,
.icon-only {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #60727a;
  display: grid;
  place-items: center;
}
.icon-btn:hover,
.icon-only:hover {
  color: var(--green);
  border-color: #a8cdc1;
  background: #f4fbf8;
}
.icon-btn.danger:hover {
  color: var(--red);
  border-color: #e8b9b9;
  background: var(--red-soft);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f2;
  font-size: 12px;
}
th {
  background: #fafbfc;
  color: #77878f;
  font: 10px "DM Mono";
}
tr:last-child td {
  border-bottom: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.status.failed {
  color: var(--red);
}
.status.failed:before {
  background: var(--red);
}
.status.running {
  color: var(--amber);
}
.status.running:before {
  background: var(--amber);
  box-shadow: 0 0 0 4px #f3a92820;
  animation: status-pulse 1.4s ease-in-out infinite;
}
.status.interrupted {
  color: var(--red);
}
.status.interrupted:before {
  background: var(--red);
}
@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.page-intro p:last-child {
  color: var(--muted);
  margin-top: 7px;
}
.plans-full {
  display: grid;
  gap: 10px;
}
.plan-row {
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.8fr auto;
  align-items: center;
  gap: 18px;
}
.full-table {
  overflow: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cloud-policy-panel {
  grid-column: 1 / -1;
}
.cloud-policy-panel .panel-head {
  margin-bottom: 12px;
}
.strategy-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.strategy-option {
  display: block;
  margin: 0 !important;
  cursor: pointer;
}
.panel .strategy-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}
.strategy-option span {
  min-height: 66px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.strategy-option svg {
  width: 19px;
  color: #789097;
  grid-row: 1 / 3;
}
.strategy-option b {
  font-size: 12px;
}
.strategy-option small {
  color: var(--muted);
  font-size: 10px;
}
.strategy-option input:checked + span {
  border-color: #65a996;
  background: #f2f8f6;
  box-shadow: 0 0 0 2px #e5f4ef;
}
.strategy-option input:checked + span svg {
  color: var(--green);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 21px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 17px;
}
.panel-head p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.oauth-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
}
.oauth-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
}
.oauth-state svg {
  flex: none;
  width: 18px;
}
.oauth-state span,
.oauth-state small {
  display: block;
}
.oauth-state b {
  color: var(--text);
  font-size: 11px;
}
.oauth-state small {
  margin-top: 2px;
  font-size: 10px;
}
.oauth-state.authorized svg {
  color: var(--green);
}
.oauth-box {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #cfe2dc;
  border-radius: 6px;
  background: #f5faf8;
}
.oauth-box.hidden {
  display: none;
}
.oauth-box img {
  width: 132px;
  height: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.oauth-box b {
  color: var(--text);
  font-size: 12px;
}
.oauth-box p {
  margin: 7px 0 4px;
  color: var(--green);
  font-size: 11px;
}
.oauth-box small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 10px;
}
.backup-groups {
  display: grid;
  gap: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
}
.pagination button:hover:not(:disabled),
.pagination button.active {
  color: var(--green);
  border-color: #a8cec1;
  background: var(--green-soft);
}
.pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.cloud-pagination {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}
.cloud-pagination > span {
  color: #718088;
}
.cloud-pagination .pagination-actions {
  padding: 2px;
  border: 1px solid #e1e8e5;
  border-radius: 6px;
  background: #fff;
}
.cloud-pagination button {
  min-width: 27px;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}
.cloud-pagination button:hover:not(:disabled),
.cloud-pagination button.active {
  color: #fff;
  background: var(--green);
}
.cloud-pagination button:disabled {
  background: transparent;
}
.local-backup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 11px;
}
.local-stat {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.local-stat > svg {
  width: 18px;
  color: var(--green);
}
.local-stat span,
.local-stat small,
.local-stat b {
  display: block;
}
.local-stat small {
  color: var(--muted);
  font-size: 10px;
}
.local-stat b {
  margin-top: 2px;
  font-size: 15px;
}
.storage-tabs {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 7px;
  padding: 4px;
  margin-bottom: 13px;
}
.storage-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}
.storage-tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px #1e3d3320;
}
.storage-view {
  display: none;
}
.storage-view.active {
  display: block;
}
.readonly-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: #eef5ff;
  color: #4b6d9d;
  border: 1px solid #d9e6f9;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 11px;
}
.remote-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.remote-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 1fr;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f2;
  color: #52656d;
  font-size: 11px;
}
.remote-row:last-child {
  border-bottom: 0;
}
.remote-row span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remote-row span:first-child svg {
  flex: none;
  color: var(--green);
}
.remote-head {
  background: #fafbfc;
  color: #788991;
  font: 10px "DM Mono";
}
.remote-loading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.backup-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.backup-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f2;
}
.backup-batch-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.backup-batch-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
}
.backup-batch-icon.full {
  color: var(--amber);
  background: var(--amber-soft);
}
.backup-batch-title > div {
  min-width: 0;
}
.backup-batch-title > div > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.backup-batch-title b {
  font-size: 12px;
}
.backup-batch-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.backup-file-table {
  width: 100%;
}
.backup-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 78px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf1f2;
  color: #51656d;
  font-size: 11px;
}
.backup-file-row:last-child {
  border-bottom: 0;
}
.backup-file-head {
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: #fafbfc;
  color: #829198;
  font: 9px "DM Mono";
}
.backup-file-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.backup-file-main > span {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--green);
  background: #f0f7f5;
}
.backup-file-main > div {
  min-width: 0;
}
.backup-file-main b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 11px;
}
.backup-file-main small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.backup-file-main em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--green);
  font-style: normal;
}
.backup-file-main em svg {
  width: 11px;
  height: 11px;
}
.backup-file-size {
  color: #8b999f;
  font: 10px "DM Mono";
  white-space: nowrap;
}
.backup-file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.backup-file-actions a:hover {
  color: var(--green);
  border-color: #a8cdc1;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state svg {
  color: #9eacb1;
  width: 25px;
  margin-bottom: 10px;
}
.empty-state small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.hint svg {
  color: var(--green);
  flex: none;
}
.panel-icon {
  color: #82939b;
}
.panel label,
.modal-card > form > label,
.two > label {
  display: block;
  color: #586b74;
  font-size: 11px;
  margin: 12px 0;
}
.panel input,
.panel select,
.modal-card input,
.modal-card select {
  display: block;
  width: 100%;
  height: 39px;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
  outline: 0;
}
.panel input:focus,
.panel select:focus,
.modal-card input:focus,
.modal-card select:focus {
  border-color: #65a996;
  box-shadow: 0 0 0 3px #e5f4ef;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #f2f8f6;
  color: #4f6c63;
  padding: 11px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 17px;
}
.callout svg {
  flex: none;
  color: var(--green);
}
.callout.warning {
  background: #fff8eb;
  color: #806336;
}
.callout.warning svg {
  color: var(--amber);
}
.switch {
  margin: 0 !important;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}
.switch span {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #cbd4d8;
  position: relative;
  transition: 0.2s;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  box-shadow: 0 1px 3px #62737c55;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:after {
  transform: translateX(16px);
}
.detection-results {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.detection-results.hidden {
  display: none;
}
.detect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f2;
}
.detect-row:last-child {
  border: 0;
}
.detect-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.detect-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ba9af;
}
.detect-dot.ok {
  background: var(--green);
}
.detect-dot.warning {
  background: var(--amber);
}
.detect-dot.error {
  background: var(--red);
}
.detect-detail {
  font: 10px "DM Mono";
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}
.detect-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.detect-value .install-tool {
  flex: 0 0 auto;
}
.modal {
  position: fixed;
  inset: 0;
  background: #17272d99;
  display: grid;
  place-items: center;
  z-index: 5;
  padding: 16px;
}
.modal.hidden {
  display: none;
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px #17272d44;
  padding: 27px;
}
.modal-card h2 {
  margin-bottom: 18px;
}
.close {
  position: absolute;
  right: 15px;
  top: 15px;
}
.modal-card fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 17px 0;
  padding: 7px 13px;
}
.modal-card legend {
  font: 10px "DM Mono";
  color: #71838b;
  padding: 0 5px;
}
.check {
  position: relative;
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  margin: 8px 0 !important;
  padding: 7px 5px;
  cursor: pointer;
  color: var(--text) !important;
}
.check > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 18px;
  height: 18px;
  border: 1px solid #bdc9ce;
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  margin-top: 1px;
}
.check-box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}
.check input:checked + .check-box {
  background: var(--green);
  border-color: var(--green);
}
.check input:checked + .check-box svg {
  opacity: 1;
}
.check b {
  display: block;
  font-size: 12px;
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.check.compact {
  margin: 13px 0 !important;
}
.wide {
  width: 100%;
  margin-top: 7px;
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #173d33;
  color: #fff;
  padding: 11px 15px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: translateY(80px);
  transition: 0.25s;
  z-index: 8;
  font-size: 12px;
}
#toast.show {
  transform: translateY(0);
}
.auth-body {
  min-height: 100vh;
  background: #f2f5f6;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-shell {
  width: min(860px, 100%);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(35, 55, 65, 0.09);
  overflow: hidden;
}
.auth-brand {
  padding: 48px 42px;
  background: #eef7f4;
  border-right: 1px solid #dce9e5;
}
.auth-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 9px;
  margin-bottom: 32px;
}
.auth-mark svg {
  width: 25px;
  height: 25px;
}
.auth-brand h1 {
  font-size: 34px;
  margin-bottom: 12px;
}
.auth-brand > p:last-of-type {
  color: #5e746d;
  line-height: 1.7;
}
.security-list {
  display: grid;
  gap: 13px;
  margin-top: 36px;
  color: #45645b;
  font-size: 12px;
}
.security-list span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.security-list svg {
  color: var(--green);
}
.auth-card {
  padding: 48px 44px;
  align-self: center;
}
.auth-card h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.auth-card > form > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.auth-card label {
  display: block;
  color: #586b74;
  font-size: 11px;
  margin: 15px 0;
}
.auth-card input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px;
  outline: 0;
}
.auth-card input:focus {
  border-color: #65a996;
  box-shadow: 0 0 0 3px #e5f4ef;
}
.auth-card input:disabled {
  background: #f5f7f8;
  color: #718087;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 45px;
}
.password-field button {
  position: absolute;
  right: 5px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #72838b;
  display: grid;
  place-items: center;
}
.auth-error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f0cdcd;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 11px;
  margin-bottom: 12px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 28px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .backup-files {
    grid-template-columns: 1fr;
  }
  .plan-row {
    grid-template-columns: 1fr 1fr;
  }
  .environment-panel {
    grid-column: auto;
  }
}
@media (max-width: 680px) {
  .auth-body {
    padding: 14px;
  }
  .auth-shell {
    display: block;
    width: 100%;
  }
  .auth-brand {
    padding: 25px 24px;
    border-right: 0;
    border-bottom: 1px solid #dce9e5;
  }
  .auth-mark {
    margin-bottom: 18px;
  }
  .auth-brand h1 {
    font-size: 27px;
  }
  .security-list {
    display: none;
  }
  .auth-card {
    padding: 28px 24px;
  }
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .shell {
    display: block;
  }
  .brand {
    padding: 0 0 10px;
  }
  .brand span,
  .side-note,
  .side-footer {
    display: none;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  nav button {
    justify-content: center;
    padding: 9px 3px;
    font-size: 10px;
    gap: 4px;
    flex-direction: column;
  }
  main {
    width: 100%;
    margin: 0;
    padding: 20px 14px 50px;
  }
  header {
    margin-bottom: 18px;
  }
  .summary-strip {
    align-items: flex-start;
    gap: 12px;
  }
  .summary-strip .ghost {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 13px;
    align-items: flex-start;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
  }
  .stat strong {
    font-size: 17px;
  }
  .plan-list {
    grid-template-columns: 1fr;
  }
  .page-intro {
    align-items: flex-start;
    gap: 14px;
  }
  .plan-row {
    grid-template-columns: 1fr auto;
  }
  .plan-row > div:nth-child(2),
  .plan-row > div:nth-child(3) {
    display: none;
  }
  .table-wrap {
    overflow: auto;
    white-space: nowrap;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .local-backup-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .local-stat {
    min-width: 0;
    padding: 10px;
  }
  .local-stat > svg {
    display: none;
  }
  .backup-group-head {
    align-items: flex-start;
  }
  .backup-file-row {
    grid-template-columns: minmax(0, 1fr) 58px 67px;
    gap: 8px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .strategy-options {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .oauth-status-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .oauth-box {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 23px 18px;
  }
}
