:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #192d38;
  background: #f3f6f7;
  font-synthesis: none;
  --teal: #0c635f;
  --line: #dce5e8;
  --muted: #617480;
  --danger: #ac392f;
  --soft: #eaf5f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
button.secondary,
.button.secondary {
  background: white;
  border-color: #c8d7dc;
  color: #274851;
}
button.soft {
  background: var(--soft);
  color: var(--teal);
}
button.ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
}
button.danger {
  background: var(--danger);
  color: white;
}
button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bacbd2;
  border-radius: 8px;
  background: white;
  color: #192d38;
  font-size: 15px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
input:disabled,
select:disabled {
  background: #edf1f3;
}
label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 650;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8ccbc3;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #193d40;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border-radius: 12px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.session-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 50px;
  min-height: calc(100vh - 150px);
}
main.narrow {
  max-width: 670px;
}
h1 {
  font-size: 28px;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
  line-height: 1.35;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  line-height: 1.7;
}
.intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 25px;
}
.eyebrow {
  color: var(--teal);
  font-size: 15px;
  letter-spacing: 0.3px;
  font-weight: 750;
  margin-bottom: 9px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px #193c4203;
}
.card.compact {
  padding: 19px;
}
.card-heading,
.page-heading,
.row,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}
.page-heading h1 {
  margin-bottom: 7px;
}
.page-heading .intro {
  margin: 0;
}
.row.start,
.toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.row.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.7;
}
.notice {
  border-left: 3px solid #8fbcb5;
  background: #edf6f3;
  padding: 12px 15px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #3c605a;
  line-height: 1.8;
  margin: 18px 0;
}
.notice.warning {
  background: #fff7e7;
  border-color: #d8ad49;
  color: #755822;
}
.notice.danger {
  background: #fff0ec;
  border-color: #d98679;
  color: #9e3b2d;
}
.status {
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.error {
  color: var(--danger);
}
.success {
  color: #187552;
}
.empty,
.loading {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 14px;
}
.loading::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  border: 3px solid #c5dcd7;
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.full-width {
  width: 100%;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0;
  font-weight: 500;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.login-card {
  max-width: 490px;
  margin: 28px auto;
}
.login-card h2 {
  margin-bottom: 7px;
}
.login-card .intro {
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ecf1f3;
  color: #546a73;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.good {
  background: #e9f6ee;
  color: #267448;
}
.badge.bad {
  background: #fff0ec;
  color: #a34231;
}
.badge.warn {
  background: #fff6df;
  color: #806019;
}
.badge.teal {
  background: var(--soft);
  color: var(--teal);
}
.pick {
  display: flex;
  position: relative;
  min-height: 175px;
  border: 2px dashed #aacbc5;
  border-radius: 12px;
  background: #f5faf8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  margin: 0;
  text-align: center;
  cursor: pointer;
}
.pick:hover,
.pick.dragging {
  background: #e8f5ef;
  border-color: var(--teal);
}
.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.pick input:disabled {
  cursor: default;
}
.pick .upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e0f0eb;
  color: var(--teal);
  font-size: 28px;
  margin-bottom: 13px;
}
.pick strong {
  font-size: 16px;
}
.pick small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.file-queue {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  max-height: 360px;
  overflow-y: auto;
}
.file-queue li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eef0;
  font-size: 13px;
}
.filename {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-queue .file-result {
  font-size: 12px;
  text-align: right;
  max-width: 45%;
}
.file-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 7px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--teal);
}
.admin-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin: 0 0 25px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.admin-nav button {
  white-space: nowrap;
  background: transparent;
  color: #607680;
  min-height: 42px;
  padding: 10px 17px;
}
.admin-nav button.active {
  background: #e1efec;
  color: var(--teal);
}
.system-dashboard {
  min-width: 0;
}
.system-heading {
  margin-bottom: 17px;
}
.system-heading h2 {
  margin: 0 0 5px;
}
.system-heading .hint {
  margin: 0;
}
.system-error {
  margin: 0 0 17px;
  padding: 11px 14px;
  border: 1px solid #e9c8c2;
  border-radius: 9px;
  background: #fff4f1;
  color: #933d31;
  font-size: 13px;
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.system-card {
  min-width: 0;
  margin: 0;
}
.system-card h3 {
  margin: 0 0 15px;
  font-size: 16px;
}
.system-card .row h3 {
  margin-bottom: 0;
}
.system-facts,
.system-network-details {
  margin: 0;
}
.system-facts div,
.system-network-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f2;
  font-size: 13px;
}
.system-facts div:last-child,
.system-network-details div:last-child {
  border-bottom: 0;
}
.system-facts dt,
.system-network-details dt {
  flex: 0 0 auto;
  color: var(--muted);
}
.system-facts dd,
.system-network-details dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.system-primary {
  margin-top: 21px;
  font-size: 31px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.system-card-detail {
  min-height: 20px;
  margin: 5px 0 17px;
  color: var(--muted);
  font-size: 12px;
}
.system-chart,
.system-chart-empty {
  width: 100%;
  min-height: 175px;
  border: 1px solid #edf1f2;
  border-radius: 10px;
  background: #fbfcfc;
}
.system-chart svg {
  display: block;
  width: 100%;
  height: 173px;
}
.system-chart-empty {
  display: grid;
  place-items: center;
  padding: 15px;
  color: var(--muted);
  font-size: 12px;
}
.system-chart-grid {
  stroke: #e2e9eb;
  stroke-width: 1;
}
.system-chart-axis {
  fill: #71838b;
  font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.system-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.system-chart-line.cpu {
  stroke: #0d766d;
}
.system-chart-line.memory {
  stroke: #8f5bad;
}
.system-chart-line.rx {
  stroke: #2b76b3;
}
.system-chart-line.tx {
  stroke: #d28a2d;
}
circle.system-chart-line.cpu { fill: #0d766d; }
circle.system-chart-line.memory { fill: #8f5bad; }
circle.system-chart-line.rx { fill: #2b76b3; }
circle.system-chart-line.tx { fill: #d28a2d; }
.system-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 15px 0;
  font-size: 13px;
}
.system-rates span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.system-key {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.system-key.rx { background: #2b76b3; }
.system-key.tx { background: #d28a2d; }
.system-footnote {
  margin: 12px 0 0;
}
.backup-scope {
  margin-top: 0;
}
.backup-load-error {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #e9c8c2;
  border-radius: 9px;
  background: #fff4f1;
  font-size: 13px;
}
.backup-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.backup-stat {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.backup-stat span,
.backup-stat strong {
  display: block;
  overflow-wrap: anywhere;
}
.backup-stat span {
  color: var(--muted);
  font-size: 12px;
}
.backup-stat strong {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.4;
}
.backup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}
.backup-layout .card {
  min-width: 0;
}
.backup-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.backup-path,
.backup-hash {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.backup-path {
  display: inline-block;
  margin-top: 5px;
}
.backup-last-error {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.backup-history {
  margin-top: 0;
}
.backup-history table {
  width: 100%;
}
.backup-history th,
.backup-history td {
  padding-right: 14px;
}
.backup-history td:last-child {
  min-width: 190px;
  white-space: normal;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 20px;
}
.metric-grid .card {
  margin: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.metric-value {
  font-size: 25px;
  letter-spacing: -0.6px;
  font-weight: 750;
}
.metric-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.volume-track {
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f3;
  display: flex;
  margin: 19px 0 11px;
}
.volume-used {
  background: #26867e;
}
.volume-reserved {
  background: #c8d8d4;
}
.volume-used.warn {
  background: #d0a13f;
}
.volume-used.bad {
  background: #c26752;
}
.volume-key {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  gap: 8px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.two-col .card {
  min-width: 0;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #607781;
  font-weight: 650;
  background: #f6f8f9;
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
}
td {
  padding: 13px;
  border-bottom: 1px solid #edf1f3;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.wrap-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}
td.actions {
  overflow: visible;
  max-width: none;
}
.actions button,
.actions a {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 9px;
  margin: 2px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
  margin-bottom: 18px;
}
.filters label {
  margin-top: 7px;
}
.filters input,
.filters select {
  font-size: 12px !important;
  min-height: 39px !important;
}
.filters .filter-actions {
  align-self: end;
  display: flex;
  gap: 7px;
  padding-bottom: 0;
}
.folder-browser {
  margin-top: 20px;
  min-width: 0;
}
.folder-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 9px;
}
.folder-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  padding: 4px 2px 10px;
}
.folder-arrow {
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--teal);
}
.folder-rail .folder {
  flex: 0 0 min(260px, 100%);
  min-width: 0;
  height: 92px;
  scroll-snap-align: start;
}
.folder {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  background: white;
  border: 1px solid var(--line);
  color: #273f48;
  padding: 18px;
  min-height: 92px;
  justify-content: flex-start;
}
.folder-icon {
  font-size: 25px;
  color: #4c9589;
}
.folder small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.retention-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 22px;
  padding: 17px 19px;
  border: 1px solid #cce0dc;
  border-radius: 12px;
  background: #edf5f2;
  color: #234f48;
}
.retention-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #dbece6;
  color: var(--teal);
}
.retention-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.retention-notice strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}
.retention-notice p {
  margin: 5px 0 0;
  color: #52726b;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.retention-notice.unverified {
  background: #f3f6f5;
}
.browse-controls {
  margin-bottom: 18px;
  gap: 9px;
}
.browse-controls select {
  width: auto;
  min-width: 0;
  max-width: 200px;
  min-height: 40px;
  font-size: 13px;
}
.segmented {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 9px;
  background: #fff;
}
.segmented button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
}
.segmented button.active {
  background: var(--soft);
  color: var(--teal);
}
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  flex-wrap: wrap;
}
.selection-filters,
.recent-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}
.recent-filter select {
  width: auto;
  min-height: 36px;
  font-size: 13px;
}
.recent-hint {
  margin: -3px 0 16px;
  overflow-wrap: anywhere;
}
.media-grid {
  --tile: 190px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr));
  gap: 15px;
}
.media-tile {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  min-width: 0;
  position: relative;
}
.media-tile.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px #78b0a7;
}
.media-tile .thumb {
  border: 0;
  border-radius: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  padding: 0;
  background: #e7eeef;
  position: relative;
  overflow: hidden;
  color: #6a7f86;
}
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-tile img.failed {
  display: none;
}
.media-tile .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  z-index: 0;
}
.media-tile img {
  position: relative;
  z-index: 1;
}
.media-tile .select-file {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #fff;
  border-radius: 5px;
  padding: 4px;
  margin: 0;
  display: flex;
  box-shadow: 0 1px 6px #0002;
}
.video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: #163b46c9;
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  padding: 4px 7px;
}
.tile-info {
  padding: 12px;
}
.tile-title {
  display: block;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.tile-bottom a {
  font-size: 11px;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  margin: 6px 0 19px;
}
.breadcrumbs button {
  min-height: 28px;
  padding: 3px 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
}
.preview-media {
  display: block;
  max-width: 100%;
  max-height: 64vh;
  object-fit: contain;
  margin: auto;
  background: #11252b;
  border-radius: 8px;
}
.preview-frame {
  background: #11252b;
  border-radius: 8px;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.preview-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
  overflow-wrap: anywhere;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 15px 100px #123c4330;
  color: #192d38;
}
dialog::backdrop {
  background: #18323dc2;
  backdrop-filter: blur(2px);
}
dialog.wide {
  width: min(1000px, calc(100vw - 28px));
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.modal-header h2 {
  margin: 0;
  font-size: 17px;
}
.modal-header button {
  min-height: 32px;
  padding: 3px 10px;
  font-size: 21px;
}
.modal-content {
  padding: 23px;
}
.qr {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  margin: 10px auto;
  background: white;
}
.copy-field {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-field input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px !important;
}
.password-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.password-actions button {
  font-size: 12px;
  min-height: 34px;
}
.job-track {
  padding: 10px 0;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f3;
  font-size: 13px;
}
.service-item .detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3c9270;
  flex-shrink: 0;
}
.dot.bad {
  background: #c56654;
}
.dot.warn {
  background: #cda03d;
}
.settings-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.settings-section h3 {
  margin-bottom: 0;
}
.alert-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.alert-types .check {
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: #153e41;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 30px #173b4433;
  z-index: 50;
  line-height: 1.6;
}
.toast.error {
  background: #983f33;
}
.site-footer {
  text-align: center;
  font-size: 11px;
  color: #8a9aa1;
  padding: 18px 20px 25px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1000px) {
  .admin-heading {
    margin-bottom: 25px;
  }
  .media-grid.large {
    --tile: 310px;
  }
  .media-grid.small {
    --tile: 135px;
  }
}
@media (max-width: 800px) {
  .system-grid {
    grid-template-columns: 1fr;
  }
  .backup-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .backup-layout {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid .card {
    padding: 20px;
  }
  .metric-value {
    font-size: 23px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    padding: 0 20px;
    height: 75px;
  }
  .session-info .actor-label {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  main {
    padding: 26px 18px 40px;
  }
  .media-grid {
    --tile: 150px;
  }
  .media-grid.large {
    --tile: 250px;
  }
  .media-grid.small {
    --tile: 110px;
  }
  .card {
    padding: 20px;
  }
  .card-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .backup-overview {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .session-info {
    gap: 5px;
    font-size: 11px;
  }
  .session-info .actor-label {
    max-width: 100px;
  }
  .session-info button {
    font-size: 11px;
    padding: 7px;
    min-height: 33px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filters {
    gap: 0 9px;
  }
  .card {
    padding: 18px;
  }
  .page-heading h1,
  h1 {
    font-size: 25px;
  }
  .browse-controls {
    align-items: stretch;
  }
  .browse-controls select {
    max-width: 100%;
    flex: 1 1 128px;
  }
  .selection-bar .toolbar {
    width: 100%;
  }
  .selection-bar .toolbar button {
    flex: 1;
    font-size: 12px;
    padding: 8px;
  }
  .media-grid {
    gap: 10px;
    --tile: 140px;
  }
  .tile-info {
    padding: 10px;
  }
  .modal-content {
    padding: 19px;
  }
  .modal-header {
    padding: 17px 19px;
  }
  .form-actions button {
    flex: 1;
  }
  .folder-carousel {
    gap: 6px;
  }
  .filters .filter-actions {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .admin-nav button {
    padding: 9px 12px;
  }
  .login-card {
    margin-top: 18px;
  }
}

.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;
}
.log-details {
  padding: 12px;
  border-radius: 8px;
  background: #f3f6f7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.7;
  max-height: 240px;
  overflow: auto;
}
@media (prefers-reduced-motion: reduce) {
  .loading::before {
    animation: none;
  }
}
.cidr-list {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.access-current strong {
  overflow-wrap: anywhere;
}
.access-confirm {
  max-width: 420px;
  margin-top: 24px;
}
.file-times {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.time-label {
  font-weight: 650;
  margin-right: 4px;
}
.preview-meta .file-times {
  font-size: 12px;
  margin-bottom: 7px;
}
.captured-time {
  white-space: normal;
}
.remember-login {
  align-items: flex-start;
  line-height: 1.6;
  margin-top: 18px;
}
.remember-login input {
  margin-top: 2px;
}
