:root {
  --bg: #061329;
  --panel: #071b39;
  --line: #134f99;
  --blue: #138cff;
  --cyan: #11c4d8;
  --green: #36ce8c;
  --orange: #f5a623;
  --red: #ff625e;
  --text: #e5f2ff;
  --muted: #90afd2;
  --ink: #0b1b32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(
      rgba(24, 109, 193, 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(24, 109, 193, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}
.topbar {
  height: 86px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 1.4fr) 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #06142b;
}
.clock-block,
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}
.clock-block #clock {
  color: #fff;
  font-size: 18px;
}
.weather {
  color: #d4e6f9;
}
.brand {
  text-align: center;
  align-self: stretch;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-bottom: 2px solid var(--blue);
}
.brand h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(19, 140, 255, 0.5);
}
.brand p {
  color: var(--cyan);
  font-weight: 600;
  margin: 6px 0 0;
  letter-spacing: 3px;
  font-size: 12px;
}
.top-actions {
  justify-content: flex-end;
}
.nav-button,
.link-button,
.icon-button,
.secondary-button,
.export-button {
  border: 1px solid var(--line);
  background: #09234a;
  color: #cfe5ff;
  border-radius: 4px;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
}
.dashboard-link {
  text-decoration: none;
}
.nav-button.active {
  background: #0b56a6;
  border-color: var(--blue);
  color: #fff;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.02fr) minmax(420px, 1.32fr) minmax(
      320px,
      1.02fr
    );
  grid-template-areas: "overview activity quality" "category gallery tasks" "employee employee employee";
  gap: 16px;
  padding: 18px 20px;
}
.panel {
  background: rgba(7, 27, 57, 0.96);
  border: 1px solid #104a91;
  border-radius: 7px;
  box-shadow: inset 0 0 24px rgba(9, 93, 185, 0.08);
  min-width: 0;
}
.overview-panel {
  grid-area: overview;
}
.activity-panel {
  grid-area: activity;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow: hidden;
}
.quality-panel {
  grid-area: quality;
}
.category-panel {
  grid-area: category;
}
.gallery-panel {
  grid-area: gallery;
  overflow: hidden;
}
.closure-panel {
  grid-area: closure;
}
.tasks-panel {
  grid-area: tasks;
}
.employee-panel {
  grid-area: employee;
}
.panel-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #74b8ff;
  cursor: pointer;
  font-size: 12px;
}
#employee-more {
  display: none;
}
.employee-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 2.22fr);
  gap: 16px;
  padding: 14px 16px 18px;
}
.employee-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.employee-summary article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #124d8f;
  border-radius: 5px;
  background: #092044;
}
.employee-summary span,
.employee-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.employee-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.employee-summary-label img {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}
.employee-summary strong {
  margin: 7px 0 2px;
  color: #66b1ff;
  font-size: 26px;
  line-height: 1;
}
.employee-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 150px;
  padding: 12px 6px 28px;
  border-bottom: 1px solid rgba(28, 96, 169, 0.65);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #2774b8 #071b39;
  scroll-snap-type: x proximity;
  cursor: grab;
}
.employee-bars.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.employee-bar-item {
  position: relative;
  display: flex;
  height: 100%;
  padding-bottom: 40px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.employee-bar-item i {
  display: block;
  width: min(28px, 70%);
  min-height: 3px;
  height: var(--bar-height);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #42a9ff, #167ddd);
  box-shadow: 0 0 12px rgba(34, 145, 255, 0.35);
}
.employee-bar-item b {
  position: absolute;
  top: 5%;
  color: #d8ecff;
  font-size: 11px;
}
.employee-bar-item span {
  position: absolute;
  bottom: 1px;
  width: 100%;
  overflow: hidden;
  color: #a9ccef;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-avatar {
  position: absolute;
  bottom: 18px;
  width: 23px;
  height: 23px;
  overflow: hidden;
  border: 1px solid #4ba8f8;
  border-radius: 50%;
  background: #123c68;
  box-shadow: 0 0 10px rgba(51, 157, 255, 0.25);
}
.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.employee-avatar-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #bce0ff;
  font-size: 11px;
}
.panel-title {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(19, 79, 153, 0.75);
}
.panel-title span {
  color: var(--cyan);
  font-size: 18px;
}
.panel-title h2 {
  margin: 0;
  font-size: 18px;
}
.panel-title small {
  margin-left: auto;
  color: var(--muted);
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 14px 9px;
}
.stat-card {
  min-height: 96px;
  text-align: center;
  padding: 13px 5px;
  background: #092044;
  border: 1px solid rgba(21, 95, 177, 0.46);
  border-radius: 7px;
}
.stat-card span,
.stat-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.stat-card strong {
  display: inline-block;
  margin: 8px 4px 3px 0;
  color: #56a8ff;
  font-size: 26px;
  line-height: 1;
}
.section-caption {
  display: flex;
  justify-content: space-between;
  margin: 8px 18px 0;
  color: #cfe5ff;
}
.section-caption span {
  color: var(--muted);
  font-size: 12px;
}
.bar-chart {
  height: 229px;
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 34px);
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(19, 79, 153, 0.4);
  margin: 8px 14px 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 42px,
    rgba(20, 83, 157, 0.35) 43px
  );
}
.bar-item {
  height: 100%;
  display: flex;
  flex: 1;
  min-width: 34px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  position: relative;
}
.bar-value {
  font-size: 12px;
  color: #d9edff;
  margin-bottom: 7px;
}
.bar {
  width: min(46px, 78%);
  background: var(--bar-color);
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--bar-color), transparent 45%);
}
.bar-name {
  position: absolute;
  bottom: -23px;
  max-width: 72px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b9d5f1;
  font-size: 12px;
}
.activity-head,
.activity-row {
  display: grid;
  grid-template-columns: 92px minmax(150px, 1fr) 73px 62px;
  gap: 8px;
  align-items: center;
}
.activity-head {
  padding: 9px 17px;
  color: var(--muted);
  font-size: 12px;
}
.activity-list {
  height: auto;
  min-height: 270px;
  max-height: 438px;
  flex: 1;
  overflow: hidden;
  scrollbar-width: none;
  padding: 0 12px 9px;
}
.activity-list::-webkit-scrollbar {
  display: none;
}
.activity-row {
  width: 100%;
  padding: 9px 5px;
  border-top: 1px solid rgba(22, 79, 149, 0.38);
  min-height: 39px;
}
.activity-row:nth-child(odd),
.task-row:nth-child(odd) {
  background: rgba(20, 67, 122, 0.26);
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status {
  font-weight: 700;
  font-size: 12px;
}
.done {
  color: var(--green);
}
.progressing {
  color: var(--orange);
}
.pending {
  color: var(--red);
}
.quality-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 14px 18px 7px;
}
.ring {
  width: 138px;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--percent) * 1%), #103455 0);
  position: relative;
  display: grid;
  place-items: center;
}
.ring:after,
.category-donut:after {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--panel);
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.28);
}
.ring > div,
.category-donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ring strong {
  font-size: 27px;
  color: #4ea6ff;
}
.ring span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.rectify-count {
  border-left: 1px solid rgba(20, 79, 153, 0.46);
  padding-left: 24px;
}
.rectify-count span,
.rectify-count p {
  display: block;
  color: var(--muted);
  margin: 0;
}
.rectify-count strong {
  font-size: 42px;
  color: #ff7d4c;
  margin: 9px 6px 0 0;
  display: inline-block;
}
.rectify-count em {
  color: #ffad78;
  font-style: normal;
}
.quality-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(20, 79, 153, 0.46);
  padding: 13px 16px;
}
.quality-breakdown div {
  text-align: center;
}
.quality-breakdown strong,
.quality-breakdown span {
  display: block;
}
.quality-closure-divider {
  margin: 0 16px;
  border-top: 1px solid rgba(20, 79, 153, 0.65);
}
.closure-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 0;
}
.closure-subtitle > span {
  color: var(--cyan);
  font-size: 15px;
}
.closure-subtitle h3 {
  margin: 0;
  color: #e1f1ff;
  font-size: 15px;
}
.closure-subtitle small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.quality-panel .closure-metrics {
  gap: 8px;
  padding: 12px 16px 8px;
}
.quality-panel .closure-metrics article {
  padding: 10px 8px;
}
.quality-panel .closure-metrics strong {
  margin: 5px 0;
  font-size: 22px;
}
.quality-panel .closure-progress {
  padding: 4px 16px 14px;
}
.quality-breakdown strong {
  font-size: 20px;
  color: #74b7ff;
}
.quality-breakdown span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.category-content {
  min-height: 272px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
}
.category-donut {
  width: 185px;
  flex: 0 0 185px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.category-donut:after {
  inset: 36px;
}
.category-donut span,
.category-donut em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.category-donut strong {
  font-size: 25px;
  margin: 7px 0;
  color: #e5f2ff;
}
.category-legend {
  display: grid;
  gap: 10px;
  width: 100%;
}
.legend-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #bcd5ee;
  min-width: 0;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}
.legend-row b {
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-row span {
  font-size: 12px;
  color: var(--muted);
}
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px 16px 9px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.gallery-strip::-webkit-scrollbar {
  display: none;
}
.gallery-card {
  flex: 0 0 148px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #195494;
  border-radius: 5px;
  background: #092044;
  cursor: zoom-in;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #0a264d;
}
.gallery-card div {
  padding: 7px 8px 9px;
}
.gallery-card strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gallery-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.image-dialog {
  width: min(94vw, 1180px);
  max-width: none;
  padding: 0;
  border: 1px solid #1d6bb7;
  border-radius: 6px;
  background: rgba(3, 14, 32, 0.98);
  color: #e5f2ff;
}
.image-dialog::backdrop {
  background: rgba(0, 4, 14, 0.86);
  backdrop-filter: blur(3px);
}
.image-dialog-content {
  position: relative;
  display: grid;
  min-height: min(82vh, 760px);
  place-items: center;
  padding: 34px 70px 24px;
}
.image-dialog figure {
  display: grid;
  max-width: 100%;
  max-height: calc(82vh - 58px);
  margin: 0;
  justify-items: center;
}
.image-dialog img {
  display: block;
  max-width: min(100%, 1000px);
  max-height: calc(82vh - 130px);
  object-fit: contain;
}
.image-dialog figcaption {
  display: grid;
  width: min(100%, 900px);
  gap: 5px;
  margin-top: 14px;
  text-align: center;
}
.image-dialog figcaption strong {
  overflow: hidden;
  color: #eef7ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-dialog figcaption span {
  color: var(--muted);
  font-size: 12px;
}
.image-dialog-close,
.image-dialog-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid #2b76ba;
  border-radius: 50%;
  background: rgba(5, 26, 56, 0.9);
  color: #d9efff;
  cursor: pointer;
}
.image-dialog-close {
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.image-dialog-nav {
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  font-size: 32px;
  line-height: 1;
}
.image-dialog-nav.prev { left: 16px; }
.image-dialog-nav.next { right: 16px; }
.gallery-dots {
  display: flex;
  height: 10px;
  justify-content: center;
  gap: 7px;
  padding-bottom: 14px;
}
.gallery-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #295379;
}
.gallery-dots i.active {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.closure-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 18px 14px;
}
.closure-metrics article {
  padding: 14px 10px;
  background: #092044;
  border-top: 2px solid var(--cyan);
}
.closure-metrics span,
.closure-metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.closure-metrics strong {
  display: block;
  margin: 7px 0;
  color: #60b1ff;
  font-size: 26px;
}
.closure-progress {
  padding: 6px 18px;
}
.closure-progress div:first-child {
  display: flex;
  justify-content: space-between;
  color: #cde3fb;
  margin-bottom: 8px;
}
.closure-progress b {
  color: var(--cyan);
}
.progress-track {
  height: 10px;
  background: #0b2c50;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  width: 0;
  display: block;
  background: var(--cyan);
  border-radius: inherit;
  transition: width 0.4s;
}
.status-note {
  margin: 18px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(20, 79, 153, 0.46);
  padding-top: 14px;
}
.link-button {
  margin-left: auto;
  padding: 5px 8px;
  background: transparent;
  border: 0;
  color: #67aeff;
}
.task-head,
.task-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 70px 88px 68px;
  gap: 8px;
  align-items: center;
}
.task-head {
  padding: 9px 17px;
  color: var(--muted);
  font-size: 12px;
}
.task-list {
  padding: 0 12px 10px;
  min-height: 220px;
}
.task-row {
  width: 100%;
  padding: 9px 5px;
  border-top: 1px solid rgba(22, 79, 149, 0.38);
  min-height: 37px;
}
.empty {
  padding: 44px 15px;
  text-align: center;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  color: var(--muted);
  font-size: 12px;
}
.sync {
  color: var(--cyan);
}
.admin-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px 28px 40px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.admin-head h2 {
  font-size: 32px;
  margin: 5px 0;
}
.admin-head p {
  color: var(--muted);
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary-button,
.import-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #0d5dac;
  color: #fff;
  text-decoration: none;
}
.import-button {
  background: #0a2e5e;
  border-color: #2074c7;
  cursor: pointer;
}
.import-button input {
  display: none;
}
.export-button {
  background: transparent;
  border-color: #276baa;
}
.admin-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  background: #071b39;
  border: 1px solid var(--line);
}
.admin-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.admin-toolbar input,
.admin-toolbar select {
  width: 160px;
  height: 36px;
  border: 1px solid #1a559b;
  border-radius: 3px;
  background: #0a264d;
  color: #dfeeff;
  padding: 0 10px;
}
.admin-toolbar .search-field {
  flex: 1;
}
.admin-toolbar .search-field input {
  width: 100%;
}
.icon-button {
  height: 36px;
  width: 36px;
  color: #88bfff;
  font-size: 20px;
}
.admin-toolbar > span {
  color: var(--muted);
  white-space: nowrap;
}
.page-size-field {
  margin-left: auto;
}
.page-size-field select {
  width: 92px !important;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 54px;
  padding: 10px 0;
}
.page-button {
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #1d5b9d;
  border-radius: 3px;
  background: #0a264d;
  color: #b9d9fa;
  cursor: pointer;
}
.page-button:hover,
.page-button.active {
  border-color: #39a1ff;
  background: #0d5dac;
  color: #fff;
}
.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.pagination-gap {
  color: var(--muted);
  padding: 0 2px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: #06172e;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
}
th {
  text-align: left;
  background: #09234a;
  color: #91c6fb;
  font-size: 12px;
  font-weight: 600;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23, 82, 149, 0.45);
}
td {
  color: #d2e5f9;
}
td.content-cell {
  max-width: 410px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
td.actions {
  white-space: nowrap;
}
.table-action {
  border: 0;
  background: transparent;
  color: #5fabff;
  padding: 0 6px;
}
.table-action.delete {
  color: #ff817b;
}
dialog {
  width: min(900px, calc(100vw - 30px));
  border: 1px solid #2172bf;
  background: #071b39;
  color: var(--text);
  padding: 0;
  border-radius: 7px;
  box-shadow: 0 18px 60px #000;
}
dialog::backdrop {
  background: rgba(0, 8, 20, 0.75);
}
dialog form {
  padding: 22px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.dialog-header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.close-button {
  background: transparent;
  color: #a7c7e8;
  border: 0;
  font-size: 28px;
  line-height: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  color: #a9c4df;
  font-size: 12px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid #1d5799;
  border-radius: 3px;
  background: #09234a;
  color: #e5f2ff;
  padding: 8px;
  min-height: 36px;
}
.form-grid select[multiple] {
  min-height: 88px;
  padding: 6px;
}
.form-grid textarea {
  resize: vertical;
}
.form-grid .wide {
  grid-column: span 3;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.secondary-button {
  padding: 0 16px;
  height: 38px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  padding: 12px 16px;
  background: #0c4078;
  border: 1px solid #318edf;
  color: #fff;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.back-link {
  color: #a9ccef;
  text-decoration: none;
}
.admin-topbar .brand {
  border-bottom: 0;
}
.admin-user {
  color: var(--muted);
  font-size: 12px;
}
.image-settings {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.image-settings h3 {
  margin: 5px 0 0;
  color: #e1f1ff;
  font-size: 18px;
}
.image-settings p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.image-settings-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.image-settings-controls label:not(.checkbox-setting) {
  display: grid;
  gap: 6px;
  color: #a9c4df;
  font-size: 12px;
}
.image-settings-controls select,
.image-settings-controls input[type="number"] {
  width: 150px;
  height: 36px;
  border: 1px solid #1d5799;
  border-radius: 3px;
  background: #09234a;
  color: #e5f2ff;
  padding: 0 9px;
}
.checkbox-setting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: #dfeeff;
  font-size: 12px;
}
.checkbox-setting input {
  accent-color: #2f9bff;
}
.admin-media-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #071b39;
}
.option-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #071b39;
}
.option-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}
.option-group {
  min-height: 170px;
  padding: 12px;
  border: 1px solid #164d8e;
  background: #092044;
}
.option-group h3 {
  margin: 0;
  color: #d9edff;
  font-size: 14px;
}
.option-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23, 82, 149, 0.45);
}
.option-add,
.option-edit,
.option-remove {
  border: 0;
  background: transparent;
  color: #70b5ff;
  cursor: pointer;
}
.option-add {
  font-size: 18px;
}
.option-list {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.option-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px;
  align-items: center;
  min-width: 0;
  color: #bfd8f2;
  font-size: 12px;
}
.option-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.option-remove {
  color: #ff817b;
}
.option-dialog-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.option-dialog-field input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #1d5799;
  border-radius: 3px;
  background: #09234a;
  color: var(--text);
}
.field-note {
  color: var(--muted);
  font-size: 11px;
}
.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.admin-section-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.gallery-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-manager .gallery-card {
  position: relative;
  width: 100%;
}
.gallery-manager .gallery-card img {
  height: 170px;
}
.media-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #071b39;
  color: var(--muted);
  font-size: 12px;
}
.media-toolbar .page-size-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.media-toolbar select {
  width: 80px;
  height: 32px;
  border: 1px solid #1a559b;
  border-radius: 3px;
  background: #0a264d;
  color: #dfeeff;
  padding: 0 8px;
}
.check-all-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dfeeff;
  cursor: pointer;
}
.check-all-label input,
.gallery-check input {
  accent-color: #2f9bff;
}
.danger-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #a54a53;
  border-radius: 3px;
  background: #572530;
  color: #ffd5d4;
}
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.gallery-card.selected {
  outline: 2px solid #37a2ff;
  outline-offset: 1px;
}
.gallery-check {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 3px;
  background: rgba(4, 16, 34, 0.8);
  color: #e3f2ff;
  font-size: 11px;
  cursor: pointer;
}
.gallery-check span {
  display: none;
}
.gallery-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(4, 16, 34, 0.78);
  color: #ff9088;
  font-size: 18px;
  line-height: 1;
}
.employee-stats-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #071b39;
  color: var(--muted);
  font-size: 12px;
}
.employee-stats-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.employee-stat-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #164d8e;
  background: #092044;
}
.employee-stat-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #328cd7;
  border-radius: 50%;
  background: #123c68;
  color: #c4e3ff;
  font-size: 18px;
}
.employee-stat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.employee-stat-info {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.employee-stat-info strong {
  overflow: hidden;
  color: #e5f2ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-enabled-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fc2e5;
  font-size: 12px;
  cursor: pointer;
}
.employee-enabled-toggle input {
  accent-color: #2f9bff;
}
.employee-stat-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.avatar-upload-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #2772b7;
  border-radius: 3px;
  background: #0b315f;
  color: #c5e1fa;
  font-size: 12px;
  line-height: 30px;
  cursor: pointer;
}
.avatar-upload-button input {
  display: none;
}
.login-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(3, 12, 28, 0.96);
}
.login-panel form {
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 14px;
  padding: 28px;
  border: 1px solid #2172bf;
  border-radius: 7px;
  background: #071b39;
}
.login-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.login-panel input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #1d5799;
  border-radius: 3px;
  background: #09234a;
  color: var(--text);
}
.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  width: min(1600px, 100%);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 18px 20px 32px;
}
.admin-sidebar {
  align-self: start;
  padding: 16px 10px;
  border: 1px solid var(--line);
  background: #071b39;
}
.sidebar-title {
  padding: 4px 12px 16px;
  border-bottom: 1px solid rgba(23, 82, 149, 0.45);
}
.sidebar-title strong {
  display: block;
  margin-top: 6px;
  color: #e5f2ff;
  font-size: 18px;
}
.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #a9c8e8;
  text-align: left;
  cursor: pointer;
}
.side-nav-item span {
  width: 18px;
  color: var(--muted);
  text-align: center;
}
.side-nav-item:hover,
.side-nav-item.active {
  border-color: #1769b4;
  background: #0b315f;
  color: #fff;
}
.side-nav-item.active span {
  color: var(--cyan);
}
.admin-content {
  min-width: 0;
}
.admin-page-section {
  display: none;
  min-width: 0;
}
.admin-page-section.active {
  display: block;
}
.content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 0 22px;
}
.content-heading h2 {
  margin: 5px 0;
  color: #edf6ff;
  font-size: 28px;
}
.content-heading p,
.content-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.overview-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.overview-card {
  padding: 18px;
  border: 1px solid #164d8e;
  background: #092044;
}
.overview-card span,
.overview-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.overview-card strong {
  display: block;
  margin: 9px 0 4px;
  color: #66b1ff;
  font-size: 30px;
}
.overview-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
}
.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #071b39;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 82, 149, 0.45);
}
.admin-card-head h3 {
  margin: 0;
  color: #e5f2ff;
  font-size: 16px;
}
.admin-card-head span {
  color: var(--muted);
  font-size: 12px;
}
.overview-bars {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}
.overview-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 45px;
  gap: 10px;
  align-items: center;
  color: #c5ddf5;
  font-size: 12px;
}
.overview-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b2c50;
}
.overview-bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
}
.overview-status {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}
.overview-status-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 82, 149, 0.38);
  color: #c5ddf5;
}
.overview-status-row strong {
  color: #66b1ff;
}
.new-record-guide {
  max-width: 620px;
}
.new-record-guide strong {
  color: #e5f2ff;
}
.new-record-guide p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 178px minmax(0, 1fr);
    padding-left: 12px;
    padding-right: 12px;
  }
  .overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-layout {
    display: block;
    padding: 10px 12px 24px;
  }
  .admin-sidebar {
    margin-bottom: 14px;
    padding: 10px;
  }
  .sidebar-title {
    display: none;
  }
  .side-nav {
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
  }
  .side-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .content-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }
  .overview-cards {
    gap: 8px;
  }
  .overview-card {
    padding: 13px;
  }
  .overview-card strong {
    font-size: 24px;
  }
  .overview-bar-row {
    grid-template-columns: 82px 1fr 35px;
  }
}
@media (max-width: 1120px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "overview quality" "activity activity" "category gallery" "tasks tasks" "employee employee";
  }
  .activity-list {
    min-height: 235px;
  }
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .brand {
    grid-column: 1/-1;
    grid-row: 1;
    pointer-events: none;
  }
  .clock-block {
    z-index: 1;
  }
  .top-actions {
    z-index: 1;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 104px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px 16px;
  }
  .brand {
    grid-column: auto;
    grid-row: auto;
    order: -1;
    border: 0;
  }
  .brand h1 {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .brand p {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .clock-block,
  .top-actions {
    justify-content: center;
    font-size: 12px;
  }
  .clock-block #clock {
    font-size: 15px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "overview" "activity" "quality" "category" "gallery" "tasks" "employee";
    padding: 12px;
    gap: 12px;
  }
  .stat-cards {
    gap: 6px;
    padding: 10px;
  }
  .stat-card strong {
    font-size: 21px;
  }
  .bar-chart {
    height: 247px;
    gap: 10px;
    padding: 20px 12px 48px;
  }
  .bar-name {
    bottom: -39px;
    max-width: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .category-content {
    padding: 16px 10px;
    gap: 12px;
  }
  .category-donut {
    width: 155px;
    flex-basis: 155px;
  }
  .quality-summary {
    padding: 14px 9px;
  }
  .employee-layout {
    grid-template-columns: 1fr;
  }
  .employee-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .employee-bars {
    grid-template-columns: none;
    grid-auto-columns: minmax(68px, 1fr);
  }
  .image-dialog-content {
    min-height: 72vh;
    padding: 48px 44px 22px;
  }
  .image-dialog img {
    max-height: calc(72vh - 120px);
  }
  .image-dialog-nav.prev { left: 7px; }
  .image-dialog-nav.next { right: 7px; }
  .ring {
    width: 125px;
  }
  .rectify-count {
    padding-left: 14px;
  }
  .activity-head,
  .activity-row {
    grid-template-columns: 75px minmax(100px, 1fr) 63px 50px;
    font-size: 12px;
  }
  .task-head,
  .task-row {
    grid-template-columns: minmax(100px, 1fr) 58px 72px 58px;
    font-size: 12px;
  }
  .admin-view {
    padding: 22px 12px;
  }
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-head h2 {
    font-size: 26px;
  }
  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .admin-toolbar {
    flex-wrap: wrap;
  }
  .admin-toolbar input,
  .admin-toolbar select {
    width: 130px;
  }
  .admin-toolbar .search-field {
    min-width: 180px;
  }
  .admin-toolbar .page-size-field {
    margin-left: 0;
  }
  .media-toolbar {
    flex-wrap: wrap;
  }
  .media-toolbar .page-size-field {
    margin-left: 0;
  }
  .pagination {
    justify-content: center;
    overflow-x: auto;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .wide {
    grid-column: span 2;
  }
  footer {
    display: none;
  }
  .option-groups {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dashboard read-only exploration controls. */
.drill-target,
.drill-button,
.activity-row,
.task-row {
  cursor: pointer;
}
.drill-target,
.drill-button,
.activity-row,
.task-row,
.legend-row,
.quality-breakdown-item,
.bar-item,
.employee-bar-item {
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
.drill-target:focus-visible,
.drill-button:focus-visible,
.record-row:focus-visible,
.gallery-card:focus-visible,
.dashboard-filter:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.drill-target:hover,
.drill-button:hover,
.record-row:hover {
  filter: brightness(1.12);
}
.bar-item,
.employee-bar-item,
.activity-row,
.task-row,
.legend-row,
.quality-breakdown-item {
  background: transparent;
}
.metric-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.metric-button {
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid rgba(45, 126, 202, 0.56);
  border-radius: 3px;
  background: rgba(9, 35, 74, 0.8);
  color: #a6c9e9;
  font-size: 12px;
}
.metric-button.active {
  border-color: var(--cyan);
  background: #0d5d93;
  color: #fff;
}
.dashboard-filter {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 26px;
  min-width: 62px;
  min-height: 62px;
  border: 1px solid #2d9ce3;
  border-radius: 50%;
  background: #0b5f9c;
  color: #effbff;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 8, 26, 0.55), 0 0 16px rgba(17, 196, 216, 0.3);
}
.dashboard-filter:hover { background: #1176b6; }
.dashboard-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 13, 31, 0.88);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.dashboard-loading.visible { opacity: 1; pointer-events: auto; }
.dashboard-loading > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 28px 36px;
  border: 1px solid #2a82c9;
  border-radius: 6px;
  background: #071b39;
  box-shadow: 0 15px 48px rgba(0, 0, 0, 0.45);
}
.dashboard-loading strong { color: #effaff; font-size: 16px; }
.dashboard-loading small { color: var(--muted); }
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(87, 191, 255, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: dashboard-spin .8s linear infinite;
}
@keyframes dashboard-spin { to { transform: rotate(360deg); } }
.data-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: min(88vh, 880px);
  margin: auto;
  padding: 0;
  overflow: hidden;
}
.data-dialog-content {
  max-height: min(88vh, 880px);
  overflow: auto;
  padding: 22px;
}
.filter-dialog { width: min(980px, calc(100vw - 28px)); }
.filter-keyword {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.filter-keyword input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #2180c6;
  border-radius: 4px;
  background: #061832;
  color: #e5f2ff;
}
.filter-keyword input::placeholder { color: #668eae; }
.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.dashboard-filter-grid input,
.dashboard-filter-grid select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #1d5799;
  border-radius: 4px;
  background: #061832;
  color: #e5f2ff;
}
.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 16px;
}
.filter-summary {
  margin: -4px 0 16px;
  color: #9fc9e8;
  font-size: 12px;
  line-height: 1.6;
}
.filter-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 111, 181, 0.48);
}
.filter-result-head strong { color: #e8f7ff; }
.filter-result-head span { color: var(--muted); font-size: 12px; }
.filter-result-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
}
.filter-result-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(32, 103, 169, 0.52);
  border-radius: 4px;
  background: rgba(11, 48, 89, 0.45);
  color: #c8e5f7;
  text-align: left;
}
.filter-result-row span,
.filter-result-row em { color: var(--muted); font-size: 12px; font-style: normal; }
.filter-result-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(33, 113, 191, 0.6);
  border-radius: 5px;
  background: rgba(11, 57, 103, 0.5);
}
.detail-status strong { line-height: 1.5; }
.detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(29, 87, 153, 0.68);
  border-radius: 5px;
  background: rgba(23, 75, 127, 0.45);
}
.detail-fields > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  min-height: 42px;
  padding: 11px 12px;
  background: #081d3d;
  line-height: 1.55;
}
.detail-fields span { color: var(--muted); font-size: 12px; }
.detail-fields b { overflow-wrap: anywhere; color: #e3f4ff; font-size: 13px; font-weight: 500; }
.detail-media { margin-top: 18px; }
.detail-media h3 { margin: 0 0 10px; color: #dff4ff; font-size: 15px; }
.detail-photo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.detail-photo {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(34, 113, 180, 0.7);
  border-radius: 4px;
  background: #061832;
  color: #d7efff;
  text-align: left;
}
.detail-photo img { width: 100%; height: 110px; object-fit: cover; }
.detail-photo span { overflow: hidden; padding: 7px 8px; color: #cce6f8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-photo:hover { border-color: var(--cyan); }

@media (max-width: 720px) {
  .dashboard-filter { right: 15px; bottom: 18px; min-width: 54px; min-height: 54px; font-size: 13px; }
  .metric-switch { gap: 3px; font-size: 11px; }
  .metric-button { min-width: 31px; padding: 3px 5px; font-size: 11px; }
  .data-dialog { width: calc(100vw - 20px); max-height: 90vh; }
  .data-dialog-content { max-height: 90vh; padding: 17px 14px; }
  .dashboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-result-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .filter-result-row { grid-template-columns: 1fr; gap: 4px; padding: 10px; }
  .filter-result-list { max-height: 280px; }
  .detail-fields { grid-template-columns: 1fr; }
  .detail-fields > div { grid-template-columns: 100px minmax(0, 1fr); }
  .detail-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-photo img { height: 120px; }
}
