:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #6f7874;
  --line: #dfe5e1;
  --paper: #f7f8f6;
  --white: #ffffff;
  --green: #266b4f;
  --green-dark: #174c38;
  --green-soft: #e6f1ec;
  --tab-text: #8a938f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; }
header {
  min-height: 82px; padding: 10px max(24px, calc((100vw - 1180px) / 2));
  background: var(--green-dark); color: white; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
h1 { font-size: clamp(34px, 5vw, 56px); margin: 2px 0 0; letter-spacing: -0.04em; }
.header-version { font-size: 13px; letter-spacing: 0; font-weight: 500; vertical-align: baseline; }
h2 { margin: 0 0 22px; font-size: 24px; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .16em; font-weight: 800; opacity: .72; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 3px; }
.logout-button { background: transparent; border-color: #ffffff42; color: white; }
.logout-button:hover:not(:disabled) { background: #ffffff12; border-color: #ffffff73; }
main { width: min(1180px, calc(100% - 32px)); margin: -1px auto 60px; }
.app-navigation { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.app-tabs {
  width: 100%; margin: 0;
  min-height: 50px; display: flex; align-items: end; gap: 4px;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap;
  scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab {
  flex: 0 0 auto;
  border: 0; border-radius: 0; min-height: 41px; padding: 0 10px;
  background: transparent; color: var(--tab-text); border-bottom: 3px solid transparent; font-weight: 650;
}
.app-tab:hover { background: transparent; color: var(--ink); }
.app-tab.active { color: var(--tab-text); border-bottom-color: var(--green); }
.tabs-menu {
  position: absolute; z-index: 30; padding: 7px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px #0f241a2b;
}
.menu-tab {
  display: block; width: 100%; min-height: 42px; padding: 9px 12px; border: 0;
  border-radius: 7px; background: transparent; color: var(--tab-text); text-align: left; font-weight: 650;
}
.menu-tab:hover { background: var(--green-soft); color: var(--ink); }
.menu-tab.active { background: var(--green-soft); color: var(--tab-text); }
.mobile-navigation { display: none; }
.speed-test-view { padding-top: 12px; }
.speed-test-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.speed-test-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.speed-test-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.speed-test-heading h2 { margin: 0; }
.speed-test-heading p, .speed-test-status, .speed-test-last-run { margin: 0; color: var(--muted); font-size: 13px; }
.speed-test-progress { height: 10px; margin: 24px 0 10px; overflow: hidden; border-radius: 99px; background: #e8ece9; }
.speed-test-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.speed-test-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.speed-test-results article { padding: 22px; border-radius: 12px; background: var(--paper); }
.speed-test-results span, .speed-test-results small { display: block; color: var(--muted); }
.speed-test-results span { margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.speed-test-results strong { font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
.speed-test-results small { margin-top: 2px; font-size: 12px; }
.speed-test-last-run { margin-top: 18px; }
.cctv-view { padding-top: 12px; }
.cctv-quality { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.cctv-quality > span { margin-right: 3px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cctv-quality button.active { background: var(--green); border-color: var(--green); color: white; }
.cctv-quality button:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.cctv-quality button.active:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.cctv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.camera-card {
  overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
}
.camera-card strong { display: block; padding: 16px 18px; }
.camera-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #101513; cursor: zoom-in; }
.camera-card img:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; object-fit: contain; background: #000; cursor: zoom-out; }
.camera-card img:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; object-fit: contain; background: #000; cursor: zoom-out; }
.cctv-export-panel { margin-top: 22px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.cctv-export-panel form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: start; }
.cctv-export-panel label, .cctv-export-actions { display: grid; grid-template-rows: 14px 42px; gap: 7px; align-self: start; }
.cctv-export-panel label > span, .cctv-export-actions > span { line-height: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cctv-export-actions > span { visibility: hidden; }
.cctv-export-panel select, .cctv-export-panel input { height: 42px; min-height: 42px; padding: 8px 10px; border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); font: inherit; color: var(--ink); }
.cctv-export-actions button { height: 42px; min-height: 42px; margin: 0; }
.admin-view { padding-top: 12px; }
.mail-archive-view { padding-top: 12px; }
.mail-toolbar { display: grid; grid-template-columns: minmax(190px, 280px) minmax(240px, 1fr) auto auto auto; gap: 9px; align-items: center; }
.mail-toolbar select, .mail-toolbar input { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.mail-date-range { display: flex; height: 42px; align-items: stretch; gap: 9px; min-width: 0; }
.mail-date-filter { display: flex; height: 42px; margin: 0; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mail-date-filter input { width: 145px; height: 42px; min-height: 42px; }
.photos-view { padding-top: 12px; }
.photos-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.photos-toolbar > div { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: 12px; }
.photos-toolbar > div { align-self: center; }
.photos-toolbar > div strong { font-size: 22px; }
.photos-toolbar > div span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.photos-toolbar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.photos-toolbar select { height: 42px; min-height: 42px; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.photos-toolbar > button { height: 42px; min-height: 42px; box-sizing: border-box; margin: 0; }
.photo-location-picker { position: relative; display: block; width: 230px; min-width: 0; max-width: 100%; }
.photo-location-toggle { position: relative; display: block; width: 100%; min-width: 0; max-width: 100%; height: 42px; padding: 7px 30px 7px 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.photo-location-toggle::after { position: absolute; top: 50%; right: 11px; content: "▾"; transform: translateY(-50%); }
.photo-location-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: block; width: min(330px, calc(100vw - 20px)); max-height: min(60vh, 520px); padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 30px #0003; }
.photo-location-menu[hidden] { display: none; }
.photo-location-menu button { width: 100%; min-height: 36px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; }
.photo-location-menu button:hover:not(:disabled), .photo-location-menu button.active { background: var(--soft); color: var(--green); }
.photo-location-section { display: block; }
.photo-location-country { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.photo-location-country::after { flex: 0 0 auto; content: "›"; font-size: 18px; transform: rotate(0deg); transition: transform .15s ease; }
.photo-location-country[aria-expanded="true"]::after { transform: rotate(90deg); }
.photo-location-towns { padding-left: 13px; border-left: 2px solid var(--line); }
.photo-location-towns button { color: var(--muted); font-weight: 600; }
.photos-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos-date-heading { grid-column: 1 / -1; margin: 14px 0 2px; font-size: 18px; }
.photo-card { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); text-align: left; }
.photo-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e7ece9; }
.photo-card-info { display: block; padding: 8px 9px; }
.photo-card-info strong, .photo-card-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card-info strong { font-size: 12px; }
.photo-card-info small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.photo-video-badge { position: absolute; top: 8px; right: 8px; padding: 4px 7px; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-size: 10px; font-weight: 800; }
.photos-load-more { display: block; margin: 18px auto 0; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; min-height: 42px; padding: 9px 14px; border-color: var(--green); border-radius: 999px; background: var(--green); color: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.24); }
.back-to-top:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
.photo-viewer-dialog { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 14px; border: 1px solid var(--line); background: #101513; color: #fff; }
.photo-viewer-dialog::backdrop { background: rgba(0,0,0,.82); }
.photo-viewer-close { display: block; margin: 0 0 10px auto; border-color: #66726c; background: #17231d; color: #fff; }
.photo-viewer-close:hover:not(:disabled) { border-color: #7f968b; background: #263c31; color: #fff; }
.photo-viewer-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.photo-viewer-navigation { width: 46px; height: 64px; padding: 0; border-color: #66726c; background: #17231d; color: #fff; font-size: 28px; }
.photo-viewer-navigation:disabled { opacity: .28; }
.photo-viewer-content { display: grid; place-items: center; min-height: 200px; }
.photo-viewer-content img, .photo-viewer-content video { display: block; max-width: 100%; max-height: calc(100vh - 135px); object-fit: contain; }
.photo-viewer-content img:fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; background: #000; cursor: zoom-out; }
.photo-viewer-content img:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; background: #000; cursor: zoom-out; }
@media (min-width: 701px) { .photo-viewer-content img { cursor: zoom-in; } }
.photo-viewer-dialog p { margin: 10px 4px 0; color: #d4ddd8; text-align: center; }
.photo-map-link { display: inline-flex; margin-left: 8px; color: #fff; font-size: 18px; line-height: 1; text-decoration: none; vertical-align: middle; }
.photo-map-link:hover { transform: scale(1.08); }
.file-video-dialog { width: min(1000px, calc(100vw - 24px)); max-width: none; padding: 14px; border: 1px solid #66726c; background: #101513; color: #fff; }
.file-video-dialog::backdrop { background: rgba(0,0,0,.82); }
.file-video-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.file-video-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-video-actions, .file-video-quality { display: flex; align-items: center; gap: 8px; }
.file-video-heading button { border-color: #66726c; background: #17231d; color: #fff; }
.file-video-heading button:hover:not(:disabled) { border-color: #7f968b; background: #263c31; color: #fff; }
.file-video-heading .file-video-quality button.active { border-color: var(--green); background: var(--green); color: #fff; }
.file-video-dialog video, .file-video-dialog > img { display: block; width: 100%; max-height: calc(100vh - 125px); object-fit: contain; background: #000; }
.file-video-dialog > img[hidden] { display: none; }
.file-video-dialog > audio { display: block; width: 100%; margin-top: 8px; }
.file-video-dialog > audio[hidden] { display: none; }
.file-video-message { margin: 16px 4px 4px; color: #fff; text-align: center; }
@media (max-width: 600px) {
  .file-video-heading { align-items: flex-start; }
  .file-video-actions { flex-wrap: wrap; justify-content: flex-end; }
}
.tesla-view { display: block; padding-top: 12px; }
.tesla-status-card { display: flex; align-items: center; width: min(520px, 100%); gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.tesla-status-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 16px; font-weight: 850; }
.tesla-status-icon svg { width: 32px; height: 32px; }
.tesla-status-icon.unplugged { background: #f8e8e5; color: #9b352c; }
.tesla-status-icon.unavailable { background: #edf1ee; color: var(--muted); }
.tesla-status-card h2 { margin: 0 0 5px; font-size: 20px; }
.tesla-status-card strong { display: block; }
.tesla-alert-toggle { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink); font-weight: 700; }
.tesla-alert-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.tesla-alert-status { display: block; min-height: 18px; margin-top: 5px; color: var(--muted); }
.mail-index-status { min-height: 20px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.mail-layout { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); min-height: 620px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.mail-list-panel { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--line); }
.mail-list { flex: 1; min-height: 0; max-height: 70vh; overflow-y: auto; }
.mail-row { display: grid; width: 100%; gap: 4px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.mail-row strong, .mail-row span, .mail-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row span { font-weight: 650; }
.mail-row small { color: var(--muted); }
.mail-row.active { background: var(--green-soft); }
.mail-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.mail-message { min-width: 0; max-height: 75vh; padding: 24px; overflow: auto; }
.mail-message h2 { margin-bottom: 16px; overflow-wrap: anywhere; }
.mail-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 20px; font-size: 13px; }
.mail-details dt { color: var(--muted); font-weight: 700; }
.mail-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.mail-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 system-ui, sans-serif; color: var(--ink); }
.mail-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mail-attachments strong { width: 100%; }
.mail-attachments a { padding: 7px 9px; border-radius: 7px; background: var(--paper); color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.mail-attachments a:hover { text-decoration: underline; }
.remote-desktop-view { padding-top: 12px; }
.remote-desktop-panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.remote-desktop-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
.remote-desktop-toolbar label, .remote-desktop-toolbar button { flex: 0 0 auto; margin: 0; }
.remote-desktop-toolbar input { flex: 0 0 250px; width: 250px; min-height: 40px; padding: 8px 11px; border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
#vncAccessCode { flex-basis: 125px; width: 125px; }
.remote-quality-button { min-width: 40px; padding: 0 10px; }
.remote-quality-button.active { background: var(--green); border-color: var(--green); color: white; }
.remote-desktop-screen.low-quality canvas { filter: grayscale(1); }
.masked-text-input { -webkit-text-security: disc; }
.remote-desktop-screen { display: grid; place-items: center; min-height: min(680px, 70vh); margin-top: 12px; overflow: hidden; background: #080b09; border-radius: 10px; outline: none; }
.remote-desktop-screen canvas { max-width: 100%; max-height: 100%; }
.remote-desktop-screen:fullscreen { width: 100vw; height: 100vh; border-radius: 0; background: #000; }
#openRemoteKeyboard { display: none; }
.remote-keyboard-capture { position: fixed; left: 50%; bottom: 0; width: 2px; height: 2px; min-height: 0; padding: 0; border: 0; opacity: .01; pointer-events: none; resize: none; }
.admin-card { max-width: 560px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.admin-card + .admin-card { margin-top: 16px; }
.admin-settings-grid { display: grid; max-width: 820px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.admin-settings-grid .admin-card { max-width: none; margin-top: 0; padding: 18px; }
.admin-settings-fields form { display: grid; align-content: start; gap: 8px; }
.admin-settings-fields h2 { margin-bottom: 4px; }
.admin-inline-save { display: flex; min-width: 0; align-items: stretch; gap: 8px; }
.admin-inline-save input { min-width: 0; flex: 1 1 auto; }
.admin-inline-save button { flex: 0 0 auto; }
.admin-card label:not(.admin-toggle) { font-weight: 700; margin-top: 8px; }
.admin-card input[type="password"] { min-height: 42px; padding: 9px 12px; border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.admin-field-hint { margin-top: -8px; color: var(--muted); }
.admin-toggle { display: flex; align-items: center; gap: 9px; }
.admin-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.admin-card button { justify-self: start; }
.admin-resolution-card { display: flex; max-width: 820px; align-items: center; gap: 12px; padding: 18px; }
.admin-resolution-card h2, .browser-resolution-value { margin: 0; font-size: 20px; line-height: 1.2; }
.admin-message { min-height: 20px; margin: 0; color: var(--green-dark); }
.admin-message.error { color: #a12828; }
.admin-maintenance-card { max-width: 820px; padding: 20px; }
.admin-maintenance-card > h2 { margin-bottom: 12px; }
.admin-maintenance-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 7px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.admin-maintenance-row h3 { margin: 0; font-size: 15px; }
.admin-maintenance-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-maintenance-actions button { min-height: 34px; padding: 0 11px; font-size: 13px; }
.admin-maintenance-row .admin-message { grid-column: 2; min-height: 16px; font-size: 12px; line-height: 1.35; }
.button-link.disabled { pointer-events: none; opacity: .45; }
#breadcrumbs, .destination-breadcrumbs { display: flex; align-items: center; min-height: 33px; gap: 6px; overflow-x: auto; }
.drive-shortcut {
  flex: 0 0 auto; width: 28px; min-height: 25px; padding: 0; border-radius: 6px;
  background: transparent; border-color: var(--line); color: var(--muted); font-size: 12px;
}
.drive-shortcut:hover { background: var(--white); border-color: var(--muted); color: var(--ink); }
.crumb { border: 0; background: transparent; color: var(--muted); padding: 8px 4px; cursor: pointer; white-space: nowrap; }
.crumb:last-child { color: var(--ink); font-weight: 700; }
.separator { color: #a8b0ac; }
.toolbar {
  background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0;
  min-height: 68px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.selection { margin-right: auto; color: var(--muted); font-size: 14px; }
.selection strong { color: var(--ink); }
.visibility-filter { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.visibility-filter input { width: 17px; height: 17px; accent-color: var(--green); }
button {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 8px;
  min-height: 40px; padding: 0 15px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
button:hover:not(:disabled) { border-color: #aeb9b3; background: #fafbf9; }
button:disabled { opacity: .42; cursor: default; }
button.primary { background: var(--green); border-color: var(--green); color: white; }
button.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.danger-button { color: #9b2929; border-color: #e5bcbc; }
.danger-button:hover:not(:disabled) { color: white; background: #9b2929; border-color: #9b2929; }
.icon-button { font-size: 20px; padding: 0 12px; }
.icon-button svg { display: block; width: 20px; height: 20px; }
.browser { background: var(--white); border: 1px solid var(--line); border-radius: 0 0 14px 14px; overflow: hidden; }
.table-head, .file-row {
  display: grid; grid-template-columns: 42px minmax(220px, 1fr) 180px 100px; align-items: center;
}
.table-head { min-height: 42px; padding: 0 18px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fafbf9; border-bottom: 1px solid var(--line); }
.file-row { min-height: 58px; padding: 0 18px; border-bottom: 1px solid #edf0ee; cursor: default; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #fafcfb; }
.file-row.selected { background: var(--green-soft); }
.file-name { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 650; }
.file-name button { min-height: auto; padding: 5px 0; border: 0; background: transparent; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name button:hover { color: var(--green); background: transparent; }
.mobile-item-size { display: none; }
.file-icon { width: 29px; height: 29px; display: grid; place-items: center; background: #edf1ee; border-radius: 7px; font-size: 15px; flex: none; }
.file-icon svg { width: 19px; height: 19px; }
.folder .file-icon, .file-icon.folder-icon { background: #f2ead5; }
.parent-folder-row .file-name button { font-weight: 800; }
.parent-folder-row { cursor: pointer; }
.parent-folder-row:hover, .parent-folder-row:focus-visible { background: var(--green-soft); outline: none; }
.meta { color: var(--muted); font-size: 13px; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--green); }
.empty { padding: 80px 24px; text-align: center; color: var(--muted); }
.file-totals {
  min-height: 42px; padding: 0 18px; display: grid; grid-template-columns: 42px minmax(220px, 1fr) 180px 100px; align-items: center;
  border-top: 1px solid var(--line); background: #fafbf9; color: var(--muted); font-size: 12px; font-weight: 650;
}
#totalItemCount { grid-column: 1 / 3; }
#totalFileSize { grid-column: 4; }
dialog { border: 0; padding: 0; width: min(560px, calc(100% - 28px)); border-radius: 15px; background: var(--white); color: var(--ink); box-shadow: 0 28px 80px #0d241b40; }
dialog::backdrop { background: #10251d99; backdrop-filter: blur(3px); }
dialog form, .dialog-content { padding: 28px; }
#newFolderInput { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
input[type="text"], #renameInput { width: 100%; border: 1px solid #bfc8c3; border-radius: 8px; padding: 11px 12px; background: var(--white); color: var(--ink); font: inherit; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dialog-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 9px; }
.dialog-message { color: var(--ink); margin: 8px 0; }
.dialog-message p { margin: 0 0 8px; }
.delete-item-list { margin: 0; padding: 10px 10px 10px 30px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.delete-item-list li { overflow-wrap: anywhere; }
.delete-item-list li + li { margin-top: 5px; }
.delete-warning { color: #8c3030; background: #fff1f1; border-radius: 8px; padding: 12px; font-size: 13px; }
.destination-list { min-height: 220px; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.destination-row { width: 100%; border: 0; border-bottom: 1px solid #edf0ee; border-radius: 0; text-align: left; display: flex; align-items: center; gap: 10px; }
.destination-row:last-child { border-bottom: 0; }
.toast { position: fixed; inset: auto 24px 24px auto; z-index: 1000; width: auto; max-width: min(380px, calc(100vw - 32px)); margin: 0; padding: 13px 17px; border: 0; border-radius: 10px; background: #18201d; color: white; box-shadow: 0 12px 36px #0005; opacity: 1; filter: none; backdrop-filter: none; }
.toast.error { background: #962f2f; }
.toast-folder-link { min-height: 30px; margin-left: 12px; padding: 3px 9px; }
.toast-folder-link.primary:hover:not(:disabled), .copy-folder-link.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--green-dark); }
.login-shell { width: min(430px, 100%); margin: 0; }
.login-brand { color: white; margin-bottom: 24px; }
.login-brand h1 { font-size: 42px; }
.login-card { background: var(--white); border-radius: 16px; padding: 30px; box-shadow: 0 30px 90px #061a124d; }
.login-card h2 { margin-bottom: 8px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.login-card label { margin-top: 15px; }
.login-card input { width: 100%; border: 1px solid #bfc8c3; border-radius: 8px; padding: 11px 12px; background: var(--white); color: var(--ink); font: inherit; }
.login-card button { width: 100%; margin-top: 22px; }
.login-error { color: #a12828 !important; min-height: 20px; margin: 12px 0 0 !important; }
.torrent-view { width: min(1180px, calc(100% - 32px)); }
.torrent-heading {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0 18px;
}
.torrent-heading h2 { margin: 5px 0 0; font-size: 30px; }
.torrent-search { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 9px; }
.torrent-search label { display: none; }
.torrent-search input {
  flex: 1 1 440px; max-width: 440px; min-width: 0; min-height: 40px; padding: 8px 12px;
  border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit;
}
.torrent-actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: nowrap; }
.torrent-magnet-form { display: block; flex: 0 1 300px; min-width: 180px; margin: 0; }
.torrent-magnet-form input { width: 100%; height: 40px; min-height: 40px; padding: 8px 11px; border: 1px solid #bfc8c3; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.button-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0 15px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 650;
}
.torrent-table-shell {
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.torrent-table-head, .torrent-list, .torrent-empty { min-width: 1180px; }
.torrent-table-head, .torrent-row {
  display: grid; grid-template-columns: 28px minmax(250px, 2fr) minmax(140px, 1fr) 130px 80px 80px 70px 105px 105px;
  align-items: center; gap: 12px; padding: 0 20px;
}
.torrent-table-head {
  min-height: 44px; background: #fafbf9; color: var(--muted); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.torrent-row { min-height: 68px; border-bottom: 1px solid #edf0ee; font-size: 13px; }
.torrent-row:last-child { border-bottom: 0; }
.torrent-name { min-width: 0; }
.torrent-name[role="button"] { cursor: pointer; }
.torrent-name[role="button"]:hover strong, .torrent-name[role="button"]:focus strong { color: var(--green); }
.torrent-name strong, .torrent-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.torrent-name small { color: var(--muted); margin-top: 4px; }
.torrent-progress { display: flex; align-items: center; gap: 10px; }
.torrent-progress > div { height: 7px; flex: 1; background: #e8ece9; border-radius: 99px; overflow: hidden; }
.torrent-progress > div span { display: block; height: 100%; background: var(--green); }
.torrent-progress strong { min-width: 34px; font-size: 11px; }
.torrent-state, .torrent-down, .torrent-up, .torrent-eta, .torrent-seed-time { color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; }
.checkbox-label input { width: 17px; height: 17px; flex: none; }
.torrent-files-dialog { width: min(760px, calc(100% - 28px)); }
.torrent-files-hint { margin: -10px 0 15px; color: var(--muted); font-size: 13px; }
.torrent-files-list { max-height: min(58vh, 520px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.torrent-file-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.torrent-file-row:last-child { border-bottom: 0; }
.torrent-file-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.torrent-file-row span { min-width: 0; overflow-wrap: anywhere; }
.torrent-file-row small { color: var(--muted); white-space: nowrap; }
.powershell-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  padding: 15px 0 18px;
}
.powershell-heading h2 { margin: 5px 0 4px; font-size: 30px; }
.powershell-heading p:last-child { color: var(--muted); margin: 0; }
.terminal-card { background: #121815; border-radius: 14px; padding: 22px; color: #e7eee9; }
.terminal-card label { color: #b8c8bf; }
.command-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 104px; gap: 10px; align-items: stretch; }
.command-row textarea {
  width: 100%; resize: vertical; min-height: 80px; padding: 12px;
  border: 1px solid #405047; border-radius: 8px; outline: none;
  background: #0b100e; color: #e7eee9; font: 14px/1.5 Consolas, "Courier New", monospace;
}
.command-row textarea:focus { border-color: #79b596; box-shadow: 0 0 0 3px #79b59620; }
.command-row button { width: 104px; min-width: 104px; align-self: stretch; }
.command-hint { color: #819187; font-size: 11px; margin: 9px 0 18px; }
.terminal-output {
  min-height: 380px; max-height: 58vh; overflow: auto; margin: 0; padding: 16px;
  border: 1px solid #2f3e36; border-radius: 9px; background: #070b09; color: #bde9ce;
  white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 Consolas, "Courier New", monospace;
}
.copy-progress {
  position: fixed; right: 24px; bottom: 82px; z-index: 20; width: min(390px, calc(100% - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 17px; box-shadow: 0 18px 55px #10251d2b;
}
.copy-progress-title { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; }
.copy-progress-title span { color: var(--green); font-weight: 800; }
.copy-progress-bar { height: 8px; margin: 14px 0 10px; background: #e8ece9; border-radius: 99px; overflow: hidden; }
.copy-progress-bar span { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s ease; }
.copy-progress p { margin: 0; color: var(--muted); font-size: 12px; }
.copy-folder-link { display: block; min-height: 32px; margin-top: 12px; padding: 3px 11px; }
.pc-heading { padding: 19px 0 24px; }
.pc-heading h2 { margin: 5px 0 6px; font-size: 34px; letter-spacing: -.03em; }
.pc-heading > p:last-child { color: var(--muted); margin: 0; }
.storage-list {
  display: contents;
}
.storage-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px;
}
.activity-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-top: 12px; max-width: 1040px;
}
.activity-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.activity-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.activity-title > div { display: flex; align-items: center; gap: 11px; }
.activity-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px;
  background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 850;
}
.activity-bar { height: 9px; margin: 24px 0 14px; background: #e8ece9; border-radius: 99px; overflow: hidden; }
.activity-bar span { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s ease; }
.temperature-reading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border-radius: 8px; padding: 6px;
}
.temperature-reading span { color: var(--muted); font-size: 11px; }
.activity-card > p { color: var(--muted); font-size: 12px; margin: 0; }
.network-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.network-stats div { background: var(--paper); border-radius: 8px; padding: 6px; }
.network-stats span, .network-stats strong { display: block; }
.network-stats span { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.drive-activity-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.drive-activity-stat { min-width: 0; background: var(--paper); border-radius: 8px; padding: 6px; }
.drive-activity-stat span, .drive-activity-stat strong { display: block; }
.drive-activity-stat span { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.drive-activity-stat strong { overflow-wrap: anywhere; }
.drive-activity-unavailable { grid-column: 1 / -1; color: var(--muted); }
#networkTotal, #networkReceived, #networkSent { white-space: pre; line-height: 1.35; }
#networkTotal { text-align: right; }
.memory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.memory-stats div { background: var(--paper); border-radius: 8px; padding: 6px; }
.memory-stats span, .memory-stats strong { display: block; }
.memory-stats span { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.storage-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.storage-title > div { display: flex; align-items: center; gap: 12px; }
.drive-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 800;
}
.storage-bar { height: 12px; margin: 25px 0; background: #e8ece9; border-radius: 999px; overflow: hidden; }
.storage-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .35s ease; }
.storage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.storage-stats div { padding: 8px; background: var(--paper); border-radius: 9px; }
.storage-stats span, .storage-stats strong { display: block; }
.storage-stats span { color: var(--muted); font-size: 12px; margin-bottom: 3px; }

@media (max-width: 700px) {
  .admin-settings-grid { grid-template-columns: 1fr; }
  header { min-height: 0; height: 58px; padding: 8px 14px; align-items: center; }
  header .eyebrow { display: none; }
  header h1 { font-size: 23px; line-height: 1; margin: 0; letter-spacing: -.025em; }
  .header-actions { margin: 0; }
  .logout-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .app-navigation { width: 100%; }
  .desktop-tabs { display: none; }
  .mobile-navigation { display: block; position: relative; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--white); }
  .mobile-menu-button {
    width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; background: transparent; color: var(--ink); border-color: var(--line); font-weight: 650;
  }
  #mobileCurrentTab { color: var(--tab-text); }
  .mobile-tabs-menu { top: calc(100% - 5px); left: 10px; right: 10px; }
  main { width: calc(100% - 20px); }
  .toolbar { flex-wrap: wrap; }
  .selection { width: 100%; }
  .table-head { display: none; }
  .file-row { grid-template-columns: 34px 1fr; padding: 10px 12px; }
  .file-totals { padding: 0 12px; grid-template-columns: 34px 1fr; }
  #totalItemCount { grid-column: 1 / 2; }
  #totalFileSize { grid-column: 2; text-align: right; }
  .file-row > .meta { display: none; }
  .file-name button { flex: 1 1 auto; min-width: 0; }
  .mobile-item-size { display: block; flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
  .storage-stats { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .speed-test-panel { padding: 18px; }
  .speed-test-heading { align-items: flex-start; flex-direction: column; }
  .speed-test-results { grid-template-columns: 1fr; }
  .cctv-grid { grid-template-columns: 1fr; }
  .remote-desktop-panel { padding: 10px; }
  .remote-desktop-toolbar { align-items: center; }
  .remote-desktop-toolbar input { flex-basis: 190px; width: 190px; }
  #openRemoteKeyboard { display: inline-flex; align-items: center; justify-content: center; }
  .remote-desktop-screen { min-height: 60vh; }
  .mail-toolbar { grid-template-columns: 1fr auto; }
  .mail-toolbar > select, .mail-toolbar > input { grid-column: 1 / -1; }
  .mail-date-range { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mail-date-range, .mail-date-filter { height: auto; }
  .mail-date-filter { display: grid; gap: 4px; min-width: 0; }
  .mail-date-filter input { width: 100%; min-width: 0; }
  .mail-layout { grid-template-columns: 1fr; }
  .photos-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .photos-toolbar > div { grid-column: 1 / -1; width: 100%; }
  .photos-toolbar label { display: grid; grid-template-columns: auto minmax(0, 1fr); min-width: 0; }
  .photos-toolbar select, .photo-location-picker { width: 100%; min-width: 0; max-width: 100%; }
  .photos-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .photo-card-info { padding: 6px; }
  .photo-card-info small { display: none; }
  .photos-date-heading { margin-top: 10px; font-size: 16px; }
  .photo-viewer-dialog {
    inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: #050706;
  }
  .photo-viewer-close {
    position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 4;
    margin: 0; background: rgba(16, 25, 21, .82); color: #fff;
  }
  .photo-viewer-stage { position: relative; display: block; width: 100%; height: 100%; }
  .photo-viewer-content { width: 100%; height: 100%; min-height: 0; }
  .photo-viewer-content img, .photo-viewer-content video {
    width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain;
  }
  .photo-viewer-navigation {
    position: absolute; top: 50%; z-index: 4; width: 44px; height: 58px;
    transform: translateY(-50%); background: rgba(16, 25, 21, .78);
  }
  #previousPhoto { left: 8px; }
  #nextPhoto { right: 8px; }
  .photo-viewer-dialog p {
    position: absolute; right: 56px; bottom: max(12px, env(safe-area-inset-bottom)); left: 56px;
    z-index: 4; margin: 0; padding: 7px 10px; border-radius: 8px;
    background: rgba(5, 7, 6, .7); color: #fff;
  }
  .mail-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-list { max-height: 48vh; }
  .mail-message { max-height: none; padding: 16px; }
  .cctv-export-panel form { grid-template-columns: 1fr; }
  .memory-stats { grid-template-columns: 1fr; }
  .torrent-heading { align-items: start; flex-direction: column; }
  .torrent-search { width: 100%; }
  .torrent-actions { flex-wrap: wrap; justify-content: flex-start; }
  .powershell-heading { align-items: start; flex-direction: column; }
  .command-row { grid-template-columns: minmax(0, 1fr) 78px 78px; }
  .command-row button { width: 78px; min-width: 78px; padding: 0 6px; }
  .terminal-card { padding: 14px; }
  .terminal-output { min-height: 320px; max-height: 52vh; }
  .torrent-table-shell { border: 0; overflow-x: auto; overflow-y: visible; background: transparent; }
  .torrent-table-head { display: none; }
  .torrent-list, .torrent-empty { min-width: 0; }
  .torrent-list { display: grid; gap: 12px; }
  .torrent-row {
    min-width: 0; min-height: 0; padding: 12px;
    grid-template-columns: 24px repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "check name name name"
      ". progress progress progress"
      ". state eta down"
      ". up seed active";
    gap: 9px 8px; align-items: start;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  }
  .torrent-row:last-child { border-bottom: 1px solid var(--line); }
  .torrent-check { grid-area: check; margin-top: 3px; }
  .torrent-name { grid-area: name; }
  .torrent-name strong { white-space: normal; overflow-wrap: anywhere; }
  .torrent-progress { grid-area: progress; }
  .torrent-state { grid-area: state; }
  .torrent-down { grid-area: down; }
  .torrent-up { grid-area: up; }
  .torrent-eta { grid-area: eta; }
  .torrent-seed-time { grid-area: seed; }
  .torrent-active-time { grid-area: active; }
  .torrent-state, .torrent-down, .torrent-up, .torrent-eta, .torrent-seed-time, .torrent-active-time {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    overflow-wrap: anywhere; color: var(--ink); font-size: 12px;
  }
  .torrent-state::before, .torrent-down::before, .torrent-up::before, .torrent-eta::before, .torrent-seed-time::before, .torrent-active-time::before {
    content: attr(data-label); color: var(--muted); font-size: 10px;
    font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  }
  .torrent-progress::before {
    content: attr(data-label); color: var(--muted); font-size: 10px;
    font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    margin-right: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e7efeb;
    --muted: #9ba9a2;
    --line: #33443c;
    --paper: #0f1612;
    --white: #18221d;
    --green: #4fa47e;
    --green-soft: #203d30;
    --tab-text: #b7c1bc;
  }

  header, .login-page { background: #0d3829; }
  .app-tab.active, .file-name button:hover, .admin-message { color: #72c69e; }
  button:hover:not(:disabled) { border-color: #587066; background: #223029; }
  button.primary { color: #07130e; }
  button.primary:hover:not(:disabled) { background: #67b991; border-color: #67b991; }
  .cctv-quality button.active { color: #07130e; }
  .cctv-quality button:hover:not(:disabled) { border-color: #4fa47e; background: #294c3d; color: #e7efeb; }
  .cctv-quality button.active:hover:not(:disabled) { border-color: #67b991; background: #67b991; color: #07130e; }
  .table-head, .torrent-table-head, .file-totals { background: #151e19; }
  .file-row, .torrent-row, .destination-row { border-bottom-color: #293830; }
  .file-row:hover { background: #1d2a23; }
  .file-icon { background: #26342d; }
  .folder .file-icon, .file-icon.folder-icon { background: #403822; }
  .separator { color: #728078; }
  .activity-icon, .drive-icon { color: #8bd2ae; }
  .activity-bar, .storage-bar, .torrent-progress > div, .copy-progress-bar, .speed-test-progress { background: #2a3831; }
  .danger-button { color: #ff9a9a; border-color: #704343; }
  .delete-warning { color: #ffc0c0; background: #492727; }
  .admin-message.error, .login-error { color: #ff9a9a !important; }
  input, select, textarea { caret-color: var(--ink); }
  input[type="text"], input[type="password"], input[type="search"], input[type="datetime-local"], select,
  #renameInput, .cctv-export-panel input, .cctv-export-panel select, .torrent-search input, .login-card input {
    border-color: #52645b;
  }
  input::placeholder, textarea::placeholder { color: #78877f; }
  dialog { box-shadow: 0 28px 80px #000a; }
  .toast { color: #0d1712; background: #b8dcca; }
  .toast.error { color: white; background: #962f2f; }
}
