﻿:root {
  --blue: #00558c;
  --bright-blue: #0096d6;
  --green: #1f7a4d;
  --amber: #ad6b00;
  --red: #b42318;
  --ink: #182330;
  --muted: #667483;
  --line: #d6dee7;
  --page: #f4f7fa;
  --panel: #ffffff;
  --soft-blue: #eaf4fa;
  --soft-red: #fff3f0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label.file-upload {
  touch-action: manipulation;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand img {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.mode-button {
  min-height: 40px;
  border: 0;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mode-button.active {
  background: var(--blue);
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100vh - 65px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
}

.sidebar-head,
.workspace-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  color: var(--blue);
}

h2 {
  font-size: 24px;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  color: var(--blue);
}

h4 {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
}

.project-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.project-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.project-card.active {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.project-card strong,
.project-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card strong {
  font-size: 14px;
}

.project-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.workspace {
  min-width: 0;
  padding: 18px;
}

.empty-state {
  max-width: 430px;
  margin: 12vh auto 0;
  text-align: center;
  color: var(--muted);
}

.empty-state img {
  width: 120px;
  margin-bottom: 16px;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 16px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.project-workspace {
  display: grid;
  gap: 14px;
}

.workspace-head {
  align-items: flex-start;
}

.eyebrow {
  color: var(--bright-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.head-actions,
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.button.danger,
.icon-button.danger {
  border-color: #f0c3bc;
  background: var(--soft-red);
  color: var(--red);
}

.button.subtle {
  background: #ffffff;
}

.button.full {
  width: 100%;
}

.button.compact {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eff3f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.submitted {
  background: #eaf7ef;
  color: var(--green);
}

.server-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.server-panel strong,
.server-panel span,
.server-panel small {
  display: block;
}

.server-panel strong {
  color: var(--blue);
  font-size: 13px;
}

.server-panel span,
.server-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.server-panel .button {
  margin-top: 8px;
}
.office-access {
  display: flex;
  align-items: end;
  gap: 8px;
}

.office-access label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.office-access input {
  display: block;
  width: 180px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.queue-panel {
  margin-top: 14px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.queue-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.submission-queue {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.queue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.queue-card strong,
.queue-card span,
.queue-card small {
  display: block;
}

.queue-card strong {
  color: var(--ink);
  font-size: 13px;
}

.queue-card span,
.queue-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.queue-card small {
  overflow-wrap: anywhere;
}


.queue-card.downloaded {
  border-color: rgba(36, 146, 84, 0.35);
  background: #fbfffc;
}

.submission-title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.submission-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.downloaded-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eaf7ef;
  color: var(--green);
  padding: 3px;
  stroke-width: 3;
}
.queue-actions {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
  min-width: 138px;
}

.queue-actions span {
  text-align: right;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat {
  padding: 12px;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.panel {
  padding: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  border: 1px solid #b8c5d1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.file-upload:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.18);
}

.split {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.unit-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.unit-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.unit-card.active {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.unit-card strong,
.unit-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card strong {
  color: var(--blue);
  font-size: 14px;
}

.unit-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.unit-card .flag {
  display: inline-block;
  margin-top: 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
}

.photo-section {
  margin-top: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.photo-category-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.photo-category strong,
.photo-category span {
  display: block;
}

.photo-category strong {
  font-size: 13px;
}

.photo-category span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.file-upload svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.file-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7edf3;
}

.thumb-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 4px;
  align-items: center;
  padding: 6px;
}

.thumb-meta span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-meta .icon-button {
  width: 32px;
  min-height: 32px;
  border-radius: 6px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
}

.check-list svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.6;
}

.check-list .ok {
  color: var(--green);
}

.check-list .warn {
  color: var(--amber);
}

.asset-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.asset-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.asset-table th,
.asset-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.asset-table th {
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 420px;
  border-radius: 8px;
  background: #123f5f;
  color: #ffffff;
  padding: 11px 14px;
  box-shadow: 0 8px 22px rgba(24, 35, 48, 0.2);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout {
    min-height: auto;
  }

  .workspace {
    padding: 12px;
  }

  .project-list,
  .field-grid,
  .stats-row,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .panel-head,
  .server-panel,
  .queue-card {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-card {
    display: flex;
  }
  .queue-actions {
    justify-items: stretch;
  }

  .queue-actions span {
    text-align: left;
  }

  .head-actions,
  .button-group,
  .photo-actions {
    justify-content: stretch;
  }

  .button,
  .mode-button {
    width: 100%;
  }

  .icon-button {
    width: 40px;
  }
}






