:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --line: #d8e2f0;
  --text: #1f2a44;
  --sub: #647693;
  --primary: #1a73e8;
  --danger: #c7382c;
  --warn: #cc7f1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 430px at 0 -10%, #e8f0ff 0, transparent 58%), var(--bg);
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.side {
  background: #f3f5f9;
  border-right: 1px solid #d4deed;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 16px;
  border-bottom: 1px solid #dce5f3;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
}

.brand p {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 12px;
}

.nav {
  padding: 8px;
  overflow: auto;
}

.nav-title {
  margin: 12px 8px 6px;
  font-size: 12px;
  color: #7d8cab;
  font-weight: 600;
}

.nav-btn {
  width: 100%;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0 10px;
  color: #253451;
  cursor: pointer;
}

.nav-btn:hover {
  background: #e9effb;
}

.nav-btn.active {
  background: #e3ecff;
  border-color: #bfd4ff;
  color: #0f56c5;
  font-weight: 600;
}

.nav-btn .icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn .icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.toolbar {
  background: #fff;
  border-bottom: 1px solid #dbe4f2;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.title h2 {
  margin: 0;
  font-size: 22px;
}

.title p {
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 12px;
}

.ops {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-block;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-link:hover {
  color: #0f56c5;
}

.search {
  height: 36px;
  width: 260px;
  border: 1px solid #ccd9ee;
  border-radius: 10px;
  padding: 0 10px;
}

.btn {
  height: 36px;
  border: 1px solid #ccd8ee;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
  color: #253555;
}

.btn.primary {
  background: var(--primary);
  border-color: #155ebd;
  color: #fff;
}

.btn.danger {
  color: var(--danger);
}

.btn.small {
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  color: #7f90ad;
  background: #f2f5fb;
  border-color: #d6dfef;
}

.content {
  padding: 14px;
  overflow: auto;
  min-height: 0;
}

.hidden {
  display: none !important;
}

.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.filters {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.filter-row-bottom {
  justify-content: flex-start;
}

.filter-row-top .field {
  flex: 0 1 220px;
  min-width: 180px;
}

.filter-row-top .search-field {
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 420px;
}

.filter-row-top .date-field {
  flex: 0 1 182px;
  min-width: 162px;
  max-width: 196px;
}

.filter-row-top .ip-field {
  flex: 0 1 190px;
  min-width: 166px;
  max-width: 220px;
}

.filter-row-top .ext-field {
  flex: 0 1 130px;
  min-width: 116px;
  max-width: 150px;
}

.filter-row-bottom .size-field,
.filter-row-bottom .access-field {
  flex: 0 1 310px;
  min-width: 280px;
  max-width: 330px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.field span {
  font-size: 12px;
  color: #657694;
}

.label-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hover-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tip-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #b6c7e3;
  color: #60759b;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6f9ff;
  cursor: help;
}

.tip-box {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  min-width: 250px;
  max-width: 360px;
  border: 1px solid #cad8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 34, 67, 0.14);
  padding: 7px 8px;
  color: #4f6182;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 8;
}

.hover-tip:hover .tip-box,
.hover-tip:focus-within .tip-box {
  opacity: 1;
  visibility: visible;
}

.field input,
.field select,
.local-sort-controls select {
  height: 34px;
  border: 1px solid #cad7ed;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #1f2a44;
  font-size: 14px;
}

.filters .search {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  padding: 0 8px;
}

.field-inline .inline-controls {
  display: grid;
  grid-template-columns: minmax(72px, 112px) 1fr;
  gap: 6px;
}

.filter-row-bottom .field-inline .inline-controls {
  grid-template-columns: minmax(82px, 98px) minmax(96px, 140px);
}

.size-controls {
  grid-template-columns: minmax(72px, 96px) minmax(80px, 1fr) auto !important;
  align-items: center;
}

.filter-row-bottom .size-controls {
  grid-template-columns: minmax(82px, 98px) minmax(92px, 120px) auto !important;
}

.inline-unit {
  font-size: 12px;
  color: #5f7090;
  white-space: nowrap;
}

.field-compact .date-input {
  width: 100%;
  min-width: 0;
}

.field select,
.local-sort-controls select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5f7090 50%), linear-gradient(135deg, #5f7090 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.date-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360718f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 9px) 50%;
  background-size: 14px 14px;
  padding-right: 30px !important;
}

.flatpickr-calendar {
  border: 1px solid #cad7ed;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(21, 41, 76, 0.12);
  font-family: inherit;
}

.flatpickr-months .flatpickr-month {
  height: 44px;
}

.flatpickr-current-month {
  padding-top: 8px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  height: 28px;
  border: 1px solid #cad7ed;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  color: #2b3e66;
  background: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
}

.flatpickr-weekdays {
  background: #f4f8ff;
}

.flatpickr-weekday {
  color: #5b6c8b;
  font-weight: 600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #1a73e8;
  border-color: #1a73e8;
}

.fp-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 10px;
  border-top: 1px solid #e5ecf8;
}

.fp-clear-btn {
  height: 30px;
  border: 1px solid #ccd8ee;
  border-radius: 8px;
  background: #fff;
  color: #2a3c62;
  padding: 0 10px;
  cursor: pointer;
}

.fp-clear-btn:hover {
  background: #f4f8ff;
  border-color: #b9cae8;
}

.min-190 {
  min-width: 190px;
}

.min-220 {
  min-width: 220px;
}

.filter-actions {
  margin-left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 170px;
}

.local-sort-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 250px;
}

.local-sort-inline label {
  font-size: 12px;
  color: #657694;
}

.local-sort-controls {
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 120px) !important;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.icon-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-loading {
  font-size: 12px;
  color: #5d7094;
  white-space: nowrap;
}

.list-controls {
  margin-top: 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f8fd;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 420px;
  justify-content: flex-end;
}

.batch-actions {
  margin-left: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.batch {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #405170;
  font-size: 13px;
}

.batch-info {
  color: #60708f;
  font-size: 12px;
  margin-right: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 388px;
  height: auto;
}

.preview {
  position: relative;
  min-height: 170px;
  padding: 8px;
  border-bottom: 1px solid #e2ebf8;
  background: linear-gradient(145deg, #edf3ff, #f8fbff);
  display: grid;
  place-items: center;
}

.card-select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.card:hover .card-select,
.grid.has-selection .card-select {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.batch-check input,
.card-select input,
.checkbox-line input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.2px solid #a8bad8;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  margin: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 36, 62, 0.12);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.batch-check input::after,
.card-select input::after,
.checkbox-line input::after {
  content: "";
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
}

.batch-check input:checked,
.card-select input:checked,
.checkbox-line input:checked {
  background: #1670e3;
  border-color: #1670e3;
  box-shadow: 0 2px 6px rgba(22, 112, 227, 0.28);
}

.batch-check input:checked::after,
.card-select input:checked::after,
.checkbox-line input:checked::after {
  transform: rotate(40deg) scale(1);
}

.batch-check input:focus-visible,
.card-select input:focus-visible,
.checkbox-line input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.22), 0 1px 3px rgba(22, 40, 72, 0.14);
}

.card-select input:hover {
  transform: translateY(-1px);
}

.preview img,
.preview video {
  width: 100%;
  height: 164px;
  object-fit: cover;
  border-radius: 8px;
}

.preview audio {
  width: 100%;
}

.audio-box {
  width: 100%;
  height: 164px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(233,242,255,0.72));
}

.audio-box audio {
  width: calc(100% - 10px);
}

.doc {
  width: 70px;
  height: 70px;
  border: 1px solid #c2d5fa;
  border-radius: 14px;
  background: #e8f0ff;
  color: #0e5ac9;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.lazy-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 164px;
  border: 1px dashed #c1d2ef;
  border-radius: 8px;
  background: #edf4ff;
  display: grid;
  place-items: center;
  color: #4d638c;
  text-align: center;
  padding: 10px;
}

.lazy-preview::before {
  content: "";
  position: absolute;
  inset: -16px;
  background:
    radial-gradient(220px 130px at 22% 24%, rgba(129, 170, 243, 0.45), transparent 70%),
    radial-gradient(210px 140px at 78% 68%, rgba(149, 197, 255, 0.5), transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(216, 230, 255, 0.7));
  filter: blur(14px) saturate(115%);
  transform: scale(1.05);
}

.lazy-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(240, 247, 255, 0.34);
}

.eye-btn {
  position: relative;
  z-index: 1;
  border: 1px solid #a8c0e7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  height: 34px;
  padding: 0 14px;
  color: #1a63c5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eye-btn:hover {
  background: #ffffff;
  border-color: #8fb1e4;
}

.eye-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.meta {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  overflow: visible;
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.name {
  font-size: 13px;
  font-weight: 600;
  color: #1b2f55;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.name:hover {
  color: #0f56c5;
}

.copy {
  width: 32px;
  height: 32px;
  border: 1px solid #c5d5f0;
  border-radius: 999px;
  background: #f7fbff;
  padding: 0;
  color: #185fc2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy:hover {
  background: #eaf3ff;
  border-color: #9fc0f2;
}

.line {
  font-size: 12px;
  color: #60708f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #d9e3f4;
  padding: 0 9px;
  font-size: 12px;
  background: #f8fbff;
}

.badge.pending {
  border-color: #f2d7b3;
  background: #fff7ea;
  color: var(--warn);
}

.badge.disabled {
  border-color: #f2b8b3;
  background: #fff2f1;
  color: var(--danger);
}

.foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-top: 4px;
}

.download-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ccd9ee;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  color: #294372;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.op-trigger {
  width: 30px;
  height: 30px;
  border: 1px solid #ccd9ee;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  color: #294372;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy svg,
.download-btn svg,
.op-trigger svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-menu {
  position: absolute;
  right: 0;
  bottom: 36px;
  min-width: 110px;
  border: 1px solid #d4deef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 34, 66, 0.14);
  padding: 6px;
  display: none;
  z-index: 3;
}

.op-menu.open {
  display: grid;
  gap: 4px;
}

.op-item {
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  padding: 0 8px;
  font-size: 12px;
  color: #2a3c62;
  cursor: pointer;
}

.op-item:hover {
  background: #f3f7ff;
}

.op-item.danger {
  color: var(--danger);
}

.empty {
  margin-top: 10px;
  border: 1px dashed #d8e2f2;
  border-radius: 12px;
  background: #fbfcff;
  color: #7584a0;
  text-align: center;
  padding: 34px 12px;
  display: none;
}

.pager {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-info {
  min-width: 90px;
  text-align: center;
  color: #536482;
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.settings-group {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: #fafcff;
  padding: 14px;
  box-shadow: inset 0 1px 0 #fff;
}

.settings-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #33486e;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.settings-grid.single {
  grid-template-columns: 1fr;
}

.checkbox-line {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.auto-approve-toggle {
  gap: 10px;
  align-items: center;
  position: relative;
}

.auto-approve-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auto-approve-toggle .switch-ui {
  width: 42px;
  height: 24px;
  border: 1px solid #b9c9e5;
  border-radius: 999px;
  background: #d9e2f2;
  box-shadow: inset 0 1px 2px rgba(19, 39, 72, 0.12);
  position: relative;
  transition: background-color .2s ease, border-color .2s ease;
  cursor: pointer;
}

.auto-approve-toggle .switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(13, 30, 58, 0.25);
  transition: left .2s ease;
}

.auto-approve-toggle input:checked + .switch-ui {
  background: #1a73e8;
  border-color: #1a73e8;
}

.auto-approve-toggle input:checked + .switch-ui::after {
  left: 21px;
}

.auto-approve-toggle input:focus-visible {
  outline: none;
}

.auto-approve-toggle input:focus-visible + .switch-ui {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2), inset 0 1px 2px rgba(19, 39, 72, 0.1);
}

.auto-approve-toggle .switch-text {
  color: #35507f;
}

.setting-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.users-top {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.users-table th,
.users-table td {
  border-bottom: 1px solid #e5ebf6;
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}

.users-table th {
  color: #5f6f8d;
}

.user-ops {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: #657591;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #223455;
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .16s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

.confirm-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(17, 27, 45, 0.42);
  z-index: 36;
}

.confirm-mask.show {
  display: flex;
}

.confirm-dialog {
  width: min(420px, 100%);
  border: 1px solid #d4dfef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(18, 34, 66, 0.18);
  padding: 16px;
}

.confirm-title {
  margin: 0;
  font-size: 17px;
  color: #22365d;
}

.confirm-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #526587;
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.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;
}

@media (hover: none) {
  .card-select {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 1120px) {
  .app {
    grid-template-columns: 230px 1fr;
  }

  .filter-row-top .search-field,
  .filter-row-top .date-field,
  .filter-row-top .ip-field,
  .filter-row-top .ext-field {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
    min-width: 210px;
  }

  .filter-row-bottom .size-field,
  .filter-row-bottom .access-field {
    flex: 1 1 260px;
    max-width: none;
    min-width: 240px;
  }

  .filter-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }

  .side {
    border-right: none;
    border-bottom: 1px solid #d4deed;
  }

  .nav {
    max-height: 250px;
  }

  .filter-row-top .field,
  .filter-row-bottom .field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .filter-row-bottom .size-field,
  .filter-row-bottom .access-field {
    max-width: none;
  }

  .field-inline .inline-controls {
    grid-template-columns: minmax(90px, 120px) 1fr;
  }

  .size-controls {
    grid-template-columns: minmax(90px, 120px) 1fr auto !important;
  }

  .filter-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .local-sort-inline,
  .batch-inline,
  .filter-buttons,
  .batch-actions {
    width: 100%;
    margin-left: 0;
  }

  .local-sort-controls {
    grid-template-columns: 1fr 1fr !important;
  }

  .filter-buttons {
    justify-content: flex-end;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
