@font-face {
  font-family: Workspace;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f4ef;
  color: #24291f;
  font:
    15px Workspace,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  background: #e9e9e1;
  color: #2d3427;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #dddfd3;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #d9ed89;
  color: #26311a;
}
.primary:hover {
  background: #c9e16d;
}
.dark-button {
  background: #2c3628;
  color: white;
}
.ghost {
  background: transparent;
  border: 1px solid #daddd0;
}
.danger {
  color: #9b4237;
  background: #f8e8e3;
}
.text-button {
  padding: 6px;
  background: none;
  color: #5b674b;
}
.icon-button {
  padding: 6px 10px;
  background: transparent;
  font-size: 20px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  font-weight: 600;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
small {
  font-size: 12px;
  color: #7d8374;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8dbd0;
  border-radius: 7px;
  background: #fff;
  color: #24291f;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #657f35;
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span-2 {
  grid-column: span 2;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7b846c;
  margin-bottom: 14px;
}
.muted {
  color: #7b8372;
}
.shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #253024;
  color: #d9dfce;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px 48px;
}
.brand-mark {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1;
  color: #d8ed88;
}
.brand > span:last-child {
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1.7;
}
.nav-label {
  font-size: 9px;
  color: #87967f;
  letter-spacing: 1.6px;
  padding: 0 16px 16px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 13px 15px;
  font-size: 13px;
  border-radius: 8px;
  color: #aab79f;
}
nav a.active {
  color: #e4f5be;
  background: #3a4732;
}
nav a:hover {
  background: #34402f;
}
.nav-icon {
  font-size: 21px;
  font-weight: 400;
  width: 23px;
}
.sidebar-note {
  margin: 42px 15px;
  font-size: 12px;
  color: #cbd8bb;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.8;
  color: #8f9d85;
  margin: 12px 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9dc469;
  border-radius: 100%;
  margin-right: 7px;
}
.bottom-nav {
  margin-top: auto;
}
.profile {
  border-top: 1px solid #3c4734;
  margin-top: 24px;
  padding: 20px 3px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile b {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  color: #94a08a;
}
.profile .icon-button {
  margin-left: auto;
  color: #94a08a;
}
.avatar {
  border-radius: 100%;
  background: #4d5b3e;
  color: #d9e8bf;
  font-size: 11px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}
.body {
  min-width: 0;
}
header {
  height: 82px;
  border-bottom: 1px solid #e4e6dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  gap: 14px;
}
header > span:first-child {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #7c8573;
}
.local-badge {
  border: 1px solid #d8ddcd;
  border-radius: 100px;
  padding: 7px 11px;
  font-size: 10px;
  color: #6a755b;
  white-space: nowrap;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 42px 48px 65px;
  min-height: calc(100vh - 145px);
}
footer {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #929888;
  padding: 0 48px 23px;
  display: flex;
  justify-content: space-between;
}
footer span {
  font-size: 11px;
  letter-spacing: 0;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-head h1 {
  margin-bottom: 10px;
}
.page-head p {
  font-size: 13px;
  color: #7a8271;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
.stat {
  border: 1px solid #e0e3d7;
  background: #fafbf6;
  border-radius: 12px;
  padding: 22px 25px;
}
.stat small {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.stat strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
}
.stat span {
  font-size: 12px;
  color: #909983;
  margin-left: 8px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
}
.section-head h2 {
  font-size: 19px;
  margin: 0;
}
.segment {
  display: flex;
  gap: 4px;
  background: #e8eade;
  border-radius: 8px;
  padding: 3px;
}
.segment button {
  font-size: 11px;
  padding: 7px 13px;
  background: transparent;
}
.segment button.active {
  background: #fff;
  box-shadow: 0 1px 3px #27301a10;
}
.empty {
  background: #fcfcf8;
  border: 1px dashed #cfd6c0;
  border-radius: 14px;
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 44px;
  color: #98a67d;
  display: block;
  margin-bottom: 20px;
}
.empty h2 {
  font-size: 21px;
}
.empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #89917e;
}
.empty button {
  margin: 10px 5px;
}
.library {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opening-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fdfdf9;
  border: 1px solid #e2e5d9;
  padding: 18px 22px;
  border-radius: 11px;
}
.pack-icon {
  background: #e8edde;
  color: #6d7f4e;
  width: 55px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 7px;
  font-size: 19px;
}
.pack-icon small {
  font-size: 8px;
  margin-top: 4px;
  letter-spacing: 1px;
  color: #819268;
}
.opening-info {
  flex: 1;
}
.opening-info h3 {
  margin-bottom: 7px;
}
.opening-info p {
  margin: 0;
  color: #7e8772;
  font-size: 12px;
}
.opening-row .icon-button {
  font-size: 17px;
}
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 6px 9px;
  display: inline-block;
  border-radius: 5px;
  background: #edf1e4;
  color: #728156;
  white-space: nowrap;
}
.badge.demo {
  background: #fff0d2;
  color: #997327;
}
.badge.pending {
  background: #e7edf4;
  color: #5a7694;
}
.badge.failed {
  background: #f9e9e3;
  color: #ad6654;
}
.count {
  font-size: 12px;
  color: #7d8870;
  white-space: nowrap;
}
.tip {
  font-size: 12px;
  line-height: 1.7;
  padding: 17px 20px;
  border-radius: 8px;
  background: #eaf0de;
  border: 1px solid #dce5ca;
  color: #617246;
  margin: 22px 0;
}
.tip.warning {
  background: #fff4dd;
  border-color: #efdfb9;
  color: #927335;
}
.tip.error {
  background: #f9e9e4;
  border-color: #f0d7ce;
  color: #9a5949;
}
.detail-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  background: #263125;
  border-radius: 12px;
  color: #e7eedc;
  padding: 28px 32px;
  margin: 24px 0 28px;
}
.detail-summary h2 {
  margin: 0 0 9px;
}
.detail-summary small {
  color: #a7b69a;
}
.detail-summary strong {
  font-size: 32px;
  font-weight: 500;
  display: block;
  text-align: right;
}
.detail-summary .sum-label {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #a7b69a;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card-tile {
  background: #fdfdf9;
  border: 1px solid #e0e4d6;
  border-radius: 11px;
  overflow: hidden;
}
.card-tile.hit {
  border: 2px solid #abbc66;
}
.card-image {
  background: #e9ebdf;
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
}
.card-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: #192119;
}
.card-image .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 2px 5px #0002;
}
.card-image .play-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 100%;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #f5f7e9e8;
}
.card-image .placeholder {
  font-size: 32px;
  color: #8e9d77;
}
.card-body {
  padding: 14px;
}
.card-body small {
  font-size: 9px;
  letter-spacing: 1px;
}
.card-body h3 {
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
  margin: 7px 0 12px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  font-size: 18px;
  font-weight: 600;
}
.card-price-label {
  font-size: 9px;
  color: #999780;
}
.card-time {
  font-size: 10px;
  color: #879078;
}
.back-button {
  padding: 0;
  background: transparent;
  font-size: 12px;
  color: #788269;
  margin-bottom: 22px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}
.panel {
  padding: 26px;
  border: 1px solid #e0e4d6;
  background: #fdfdf9;
  border-radius: 12px;
}
.panel p {
  font-size: 12px;
  line-height: 1.8;
  color: #7f8972;
}
.panel label {
  margin: 17px 0;
}
.panel h2 {
  font-size: 20px;
}
.panel h3 {
  margin-top: 26px;
}
.opener-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #e6e9dc;
}
.opener-row small {
  display: block;
  margin-top: 4px;
}
.db-counts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 12px;
  color: #788269;
  margin: 24px 0;
}
.db-counts strong {
  color: #3e4e2d;
}
.clip-form {
  display: flex;
  gap: 15px;
  align-items: end;
  margin-bottom: 24px;
}
.clip-form label:first-child {
  flex: 1;
}
.clip-form label {
  flex: 0.45;
}
.clip-url {
  color: #718253;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: #253024;
  color: #e4ecd9;
  padding: 65px 12%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.auth-brand .brand-mark {
  font-size: 75px;
  margin-bottom: 65px;
}
.auth-brand h1 {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 25px 0;
}
.auth-brand p:first-of-type {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aab99a;
}
.auth-brand p {
  font-size: 15px;
  line-height: 1.8;
  color: #a5b198;
}
.outline-pill {
  margin-top: 70px;
  border: 1px solid #62734e;
  border-radius: 100px;
  padding: 10px 14px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #b2c39f;
}
.auth-form {
  width: 360px;
  max-width: 85%;
  align-self: center;
  justify-self: center;
}
.auth-form h2 {
  font-size: 32px;
}
.auth-form > p {
  color: #828b76;
  font-size: 13px;
  line-height: 1.6;
}
.auth-form label {
  margin: 24px 0;
}
.auth-form .primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}
.auth-form small {
  font-size: 10px;
}
.error {
  color: #af5947 !important;
  font-size: 12px;
  min-height: 16px;
}
dialog {
  border: 1px solid #e3e7da;
  border-radius: 16px;
  padding: 0;
  width: 580px;
  max-width: calc(100vw - 30px);
  max-height: 92vh;
  color: #2d3526;
  background: #f9faf4;
  box-shadow: 0 15px 90px #12200940;
}
dialog::backdrop {
  background: #1520128c;
  backdrop-filter: blur(4px);
}
.modal-inner {
  padding: 30px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
.modal-head p {
  font-size: 12px;
  color: #839075;
  line-height: 1.7;
  margin: 10px 0 0;
}
.upload-drop {
  position: relative;
  background: #edf1e3;
  border: 1px dashed #bac9a1;
  border-radius: 10px;
  text-align: center;
  padding: 28px 16px;
  margin: 20px 0;
  color: #6f8155;
}
.upload-drop > span {
  display: block;
  font-size: 30px;
  margin-bottom: 9px;
}
.upload-drop input {
  margin: 14px auto 0;
  font-size: 11px;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}
.upload-drop small {
  display: block;
  margin-top: 10px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #829d4a;
}
.upload-status {
  font-size: 13px;
  line-height: 1.7;
  color: #71835b;
  margin: 16px 0;
}
.video-preview {
  display: block;
  width: 100%;
  height: 65vh;
  background: #111;
}
.video-title {
  padding: 20px;
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  background: #293b23;
  color: #eaf1df;
  padding: 14px 23px;
  border-radius: 10px;
  box-shadow: 0 5px 20px #0002;
  font-size: 13px;
  z-index: 1000;
  max-width: 85vw;
}
[hidden] {
  display: none !important;
}
.collection-count {
  color: #72815d;
  padding: 10px 16px;
  border: 1px solid #d8dfcc;
  border-radius: 100px;
  font-size: 12px;
  white-space: nowrap;
}
.collection-cards {
  margin-top: 28px;
  gap: 24px;
}
.collection-card {
  border: 0;
  box-shadow: 0 4px 22px #28371a08;
}
.collection-card .card-image {
  height: 270px;
  background: #e7ebdf;
  display: block;
  overflow: hidden;
}
.collection-card .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.collection-card .card-body {
  padding: 20px;
}
.collection-card .card-body h2 {
  font-size: 15px;
  line-height: 1.5;
  min-height: 45px;
  margin: 0 0 20px;
  letter-spacing: -0.2px;
}
.collection-price strong {
  font-size: 23px;
  font-weight: 600;
  color: #3d542b;
  display: block;
}
.collection-price small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #88917c;
}
.card-list-note {
  color: #939a87;
  font-size: 11px;
  line-height: 1.8;
  margin: 25px 0;
}
.card-list-note a {
  text-underline-offset: 3px;
}
.demo-note {
  color: #9b7a3e;
  background: #fff2d8;
  border-radius: 8px;
  padding: 12px 17px;
}
.card-photo-pending {
  font-size: 42px;
  color: #aab899;
  animation: activity-breathe 2s ease-in-out infinite;
}
.collection-empty {
  padding: 65px 20px;
  text-align: center;
  color: #9da58f;
}
.collection-empty > span {
  font-size: 45px;
}
.collection-empty p {
  margin-top: 18px;
  font-size: 13px;
}
.admin-openings {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .collection-cards {
    gap: 12px;
  }
  .collection-card .card-image {
    height: 220px;
  }
  .collection-card .card-body {
    padding: 14px;
  }
  .collection-price strong {
    font-size: 19px;
  }
}
.activity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin: 24px 0;
  border: 1px solid #d9e4c4;
  border-radius: 12px;
  background: #edf2e3;
  color: #445b32;
}
.activity strong {
  display: block;
  font-size: 14px;
}
.activity p {
  margin: 7px 0 0;
  color: #78876b;
  font-size: 12px;
  line-height: 1.7;
}
.activity-orbit {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  color: #718b4a;
  font-size: 25px;
}
.activity-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #cfdcba;
  border-top-color: #718b4a;
  border-radius: 50%;
  animation: activity-spin 1.5s linear infinite;
}
.activity-orbit > span {
  animation: activity-breathe 2.4s ease-in-out infinite;
}
.activity-dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding-left: 8px;
}
.activity-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fa665;
  animation: activity-breathe 1.4s ease-in-out infinite;
}
.activity-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.activity-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.activity.is-waiting {
  background: #f1f2eb;
  border-color: #e0e4d7;
}
.activity.is-waiting .activity-orbit::before {
  animation: none;
  border-style: dotted;
  border-color: #bdc7ac;
}
.activity.is-waiting .activity-dots {
  display: none;
}
.upload-activity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.busy-spinner,
.badge.is-processing::before {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid #d4dfc2;
  border-top-color: #789549;
  border-radius: 50%;
  animation: activity-spin 1s linear infinite;
  flex-shrink: 0;
}
.badge.is-processing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.badge.is-processing::before {
  content: "";
  width: 11px;
  height: 11px;
  border-width: 1.5px;
}
@keyframes activity-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes activity-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-orbit::before,
  .activity-orbit > span,
  .activity-dots i,
  .busy-spinner,
  .badge.is-processing::before {
    animation: none;
  }
  .card-photo-pending {
    animation: none;
  }
}
@media (max-width: 760px) {
  .activity {
    gap: 13px;
    padding: 18px 16px;
  }
  .activity-dots {
    display: none;
  }
}
@media (min-width: 1550px) {
  .cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .card-image {
    height: 250px;
  }
}
@media (max-width: 1150px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  header,
  main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .opening-row {
    gap: 12px;
    padding: 16px;
  }
  .count {
    display: none;
  }
  .page-head h1 {
    font-size: 32px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 15px;
  }
  .brand {
    padding: 0 6px 15px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .brand > span:last-child {
    font-size: 8px;
  }
  aside nav {
    flex-direction: row;
  }
  nav a {
    font-size: 11px;
    padding: 10px;
  }
  .nav-icon {
    display: none;
  }
  .nav-label,
  .sidebar-note,
  .profile {
    display: none;
  }
  .bottom-nav {
    margin: 8px 0 0;
  }
  .bottom-nav a {
    padding: 5px 10px;
  }
  header {
    height: 55px;
    padding: 0 20px;
  }
  header > span:first-child {
    font-size: 8px;
  }
  .local-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
  main {
    padding: 28px 20px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat small {
    font-size: 8px;
    line-height: 1.6;
    min-height: 25px;
    margin-bottom: 6px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-image {
    height: 210px;
  }
  .card-body {
    padding: 10px;
  }
  .card-body h3 {
    font-size: 12px;
  }
  .card-price {
    font-size: 16px;
  }
  .card-time {
    font-size: 9px;
  }
  .opening-row {
    flex-wrap: wrap;
  }
  .pack-icon {
    width: 40px;
    height: 52px;
  }
  .opening-row .opening-info {
    min-width: 170px;
  }
  .opening-row .badge {
    margin-left: 52px;
  }
  .detail-summary {
    padding: 23px;
    grid-template-columns: 1fr;
  }
  .detail-summary strong,
  .detail-summary .sum-label {
    text-align: left;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .auth-form {
    padding: 50px 0;
  }
  .form-grid {
    gap: 14px;
  }
  .clip-form {
    flex-wrap: wrap;
  }
  .clip-form label:first-child {
    flex-basis: 100%;
  }
  .clip-form label {
    flex: 1;
  }
  .clip-form button {
    flex: 1;
  }
  footer {
    padding: 0 20px 20px;
  }
  .modal-inner {
    padding: 23px;
  }
  .modal-actions button {
    font-size: 12px;
  }
  #toast {
    left: 50%;
  }
}

/* Shared table layout for opening library, cards and user administration. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line, #e6e8ee);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.data-table th {
  padding: 15px 20px;
  color: #717787;
  background: #f8f9fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td {
  padding: 16px 20px;
  border-top: 1px solid #edf0f5;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.data-table tbody tr:hover {
  background: #fafbfe;
}
.data-table td strong {
  display: block;
}
.data-table td small {
  display: block;
  color: #777e8d;
  margin-top: 5px;
  font-size: 12px;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.table-actions .compact {
  padding: 8px 12px;
  font-size: 12px;
  min-height: 34px;
}
.opening-table {
  min-width: 760px;
}
.users-table {
  min-width: 760px;
}
.card-table {
  min-width: 520px;
}
.card-table td:first-child {
  width: 100px;
}
.card-thumb {
  display: block;
  padding: 3px;
  width: 65px;
  height: 88px;
  background: #f1f3f8;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-photo-large {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: auto;
  object-fit: contain;
}
[hidden] {
  display: none !important;
}

.card-edit-cell,
.edit-column {
  width: 48px;
  text-align: right;
}
.card-edit-button {
  border: 0;
  background: transparent;
  color: #8d9488;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 19px;
}
.card-edit-button:hover,
.card-edit-button:focus-visible {
  background: #edf1e3;
  color: #34452d;
}
.card-suggestions {
  display: grid;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
  margin: -4px 0 14px;
}
.card-suggestion {
  text-align: left;
  border: 0;
  background: #f2f4ed;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.card-suggestion:hover {
  background: #e6ecd9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the requested upload message readable in the login and opening list. */
h1.upload-message,
.auth-brand h1.upload-message {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  max-width: 38ch;
  overflow-wrap: anywhere;
}
.auth-brand h1.upload-message { max-width: 24ch; }

.activity-content { flex: 1; min-width: 0; }
.analysis-track { height: 5px; border-radius: 6px; overflow: hidden; background: #d8e2c8; margin-top: 14px; }
.analysis-track span { display: block; width: 35%; height: 100%; border-radius: inherit; background: #718b4a; animation: analysis-slide 1.8s ease-in-out infinite; }
@keyframes analysis-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }
@media (prefers-reduced-motion: reduce) { .analysis-track span { animation: none; width: 100%; opacity: .6; } }

/* Compact opening card list; hide empty image columns in the markup. */
#customer-cards { width: 100%; max-width: 850px; }
.card-table { min-width: 0; width: 100%; font-size: 13px; }
.card-table th { padding: 9px 10px; font-size: 11px; }
.card-table td { padding: 7px 10px; line-height: 1.3; }
.card-table.has-card-images td:first-child { width: 52px; }
.card-table.no-card-images td:first-child { width: auto; }
.card-table .card-thumb { width: 34px; height: 48px; padding: 1px; }
.card-table .table-card-name { font-size: 13px; font-weight: 600; }
.card-table .collection-price strong { font-size: 14px; white-space: nowrap; }
.card-table small { font-size: 10px; }
.card-table .card-edit-button { font-size: 17px; padding: 4px 6px; }
.card-table .edit-column, .card-table .card-edit-cell { width: 36px; }
