body {
  background:
    radial-gradient(circle at 100% 0, rgba(94, 168, 149, 0.16), transparent 34rem),
    #eeece5;
}

.workspace {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 20px;
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(74, 136, 119, 0.26), transparent 18rem),
    #16201f;
}

.internal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.internal-brand .brand-mark {
  color: var(--ink);
  background: #f7f2e8;
}

.internal-brand strong,
.internal-brand small {
  display: block;
}

.internal-brand strong {
  font-size: 16px;
}

.internal-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 54px;
}

.side-nav button {
  position: relative;
  display: grid;
  min-height: 50px;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  text-align: left;
  font-weight: 750;
}

.side-nav button.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.side-nav i {
  display: none;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 10px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.sidebar-foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
}

.sidebar-foot > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.native-app .sidebar-foot > a {
  display: none;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: #f7f2e8;
  font-weight: 900;
}

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

.staff-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.mobile-header,
.internal-bottom-nav {
  display: none;
}

.sidebar-logout {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: rgba(255,255,255,.68);
  background: transparent;
}

.invite-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr); gap: 18px; }
.invite-form { display: grid; align-content: start; gap: 16px; }
.invite-created {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center;
  margin-bottom: 18px; padding: 18px; border-radius: 16px; color: white; background: var(--ink);
}
.invite-created span { color: rgba(255,255,255,.7); font-size: 12px; }
.invite-created strong { grid-column: 1; color: #d7ff3f; font: 800 22px ui-monospace, monospace; letter-spacing: .08em; }
.invite-created .btn { grid-column: 2; grid-row: 1 / span 2; }
.invite-list { display: grid; gap: 10px; }
.invite-row {
  display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .7fr) auto auto;
  gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.invite-row > div { display: grid; gap: 4px; }
.invite-row small { color: var(--muted); }

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

@media (max-width: 650px) {
  .invite-row { grid-template-columns: 1fr auto; }
  .invite-created { grid-template-columns: 1fr; }
  .invite-created .btn { grid-column: 1; grid-row: auto; }
}

.workspace-main {
  min-width: 0;
  padding: 48px clamp(28px, 4vw, 64px) 80px;
}

.workspace-view {
  display: none;
  max-width: 1400px;
  margin: 0 auto;
}

.workspace-view.active {
  display: block;
  animation: view-in 240ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-button {
  position: relative;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.75);
  font-weight: 800;
}

.notification-button i {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-size: 10px;
  font-style: normal;
}

.activity-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin: -18px 0 18px;
  padding: 10px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.64);
}

.activity-label {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.activity-items {
  display: flex;
  gap: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topbar.compact {
  margin-bottom: 25px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.topbar p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  display: grid;
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.metric-card.featured {
  color: white;
  border-color: transparent;
  background: var(--ink);
}

.metric-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card.featured > span,
.metric-card.featured > small {
  color: rgba(255, 255, 255, 0.6);
}

.metric-card strong {
  align-self: end;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card small {
  margin-top: 7px;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.panel,
.sample-table-wrap {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.text-btn {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.compact-list {
  display: grid;
}

.compact-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.compact-request:first-child {
  border-top: 0;
}

.compact-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--jade);
  background: #e1f1ec;
  font-weight: 850;
}

.compact-request strong,
.compact-request small {
  display: block;
}

.compact-request small {
  margin-top: 4px;
  color: var(--muted);
}

.signal-list {
  display: grid;
  gap: 17px;
}

.signal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.signal-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-item span {
  color: var(--muted);
  font-size: 12px;
}

.signal-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4e3dc;
}

.signal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), #69b99f);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.filter-row .chip {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
}

.filter-row .history-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  color: #fff;
  background: #16201f;
}

.filter-row .history-toggle span {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  margin-left: 4px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #16201f;
  background: #fff;
  font-size: 11px;
}

.filter-row .history-toggle.active {
  color: #fff;
  background: var(--jade);
}

.request-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.request-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.request-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: #d9ddd8;
}

.request-card .request-progress-stars { margin: 14px 0; }

.internal-category-strip {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  margin: -10px 0 20px;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.internal-category-strip::-webkit-scrollbar { display: none; }

.internal-category-strip .chip {
  flex: none;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .78);
}

.internal-category-strip .chip.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.internal-category-strip .category-add-chip {
  border-style: dashed;
  color: var(--jade);
  background: #eef8f4;
}

.category-chip-group {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
}

.category-delete-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(183, 54, 46, .2);
  border-radius: 50%;
  color: #a92f29;
  background: #fff0ee;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.category-delete-button:hover {
  border-color: #b7362e;
  color: #fff;
  background: #b7362e;
}

.internal-subcategory-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: -16px 0 18px;
  padding: 4px 0;
  scrollbar-width: none;
}

.internal-subcategory-strip:empty { display: none; }
.internal-subcategory-strip::-webkit-scrollbar { display: none; }
.internal-subcategory-strip .chip { flex: none; min-height: 31px; padding: 0 11px; }
.internal-subcategory-strip .chip.active { color: #fff; background: var(--jade); }
.subcategory-label { flex: none; color: var(--muted); font-size: 11px; font-weight: 800; }

.request-card-cover .cover-image,
.request-card-cover .generated-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-cover-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.request-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.card-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}

.video-type {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.type-mixed {
  color: #654109;
  background: #f8e5b8;
}

.type-full {
  color: #153c34;
  background: #d8eee7;
}

.type-workflow {
  color: #3d2b70;
  background: #e5ddf7;
}

.readonly-value {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f0eb;
}

.field > small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.rights-panel {
  margin-bottom: 16px;
}

.entitlement-token-list,
.internal-rights-summary,
.account-entitlements,
.entitlement-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.entitlement-token {
  display: inline-grid;
  min-width: 56px;
  min-height: 42px;
  place-items: center;
  padding: 0 13px;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  font-weight: 900;
}

.entitlement-request-list {
  display: grid;
}

.entitlement-request-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  border-top: 1px solid var(--line);
}

.entitlement-request-row:first-child {
  border-top: 0;
}

.entitlement-request-row > div:first-child {
  display: grid;
  gap: 4px;
}

.entitlement-request-row small {
  color: var(--muted);
}

.inline-actions {
  display: flex;
  gap: 7px;
}

.compact-empty {
  min-height: 80px;
}

.account-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.account-filter-row .chip {
  min-height: 38px;
  border: 0;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-row {
  display: grid;
  gap: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.account-row.inactive {
  opacity: .66;
}

.account-row-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
}

.account-row-head > div {
  display: grid;
  gap: 3px;
}

.account-row-head small {
  color: var(--muted);
}

.account-role {
  display: grid;
  min-width: 50px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--jade);
  background: #e0eee9;
  font-size: 11px;
  font-weight: 900;
}

.entitlement-check {
  cursor: pointer;
}

.entitlement-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.entitlement-check span {
  display: grid;
  min-width: 52px;
  min-height: 38px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f1f0ea;
  font-weight: 850;
}

.entitlement-check input:checked + span {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.account-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compact-input {
  width: min(260px, 100%);
  margin-right: auto;
}

.entitlement-fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.entitlement-fieldset legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-modal {
  width: min(620px, calc(100% - 28px));
}

.notification-list {
  display: grid;
  max-height: min(62vh, 620px);
  overflow-y: auto;
}

.notification-item {
  padding: 16px 2px;
  border-top: 1px solid var(--line);
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.notification-item p,
.notification-item small {
  color: var(--muted);
}

.notification-item p {
  margin: 7px 0 0;
}

.notification-item.unread strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

@media (max-width: 780px) {
  .entitlement-request-row {
    grid-template-columns: 1fr auto;
  }

  .entitlement-request-row .inline-actions {
    grid-column: 1 / -1;
  }

  .account-row-actions {
    flex-wrap: wrap;
  }

  .compact-input {
    width: 100%;
  }

  .activity-items span:not(:first-child) {
    display: none;
  }
}

.priority {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.priority-urgent {
  color: var(--red);
}

.priority-high {
  color: #a35b00;
}

.request-card h3 {
  margin: 7px 0 12px;
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-card-kicker {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.request-customer-update {
  display: grid;
  gap: 4px;
  min-height: 66px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--jade);
  border-radius: 10px;
  color: #25443d;
  background: #e4f3ed;
}

.request-customer-update span {
  color: var(--jade);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.request-customer-update strong {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.request-status-note {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.request-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.request-meta div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0efe9;
}

.request-meta span {
  color: var(--muted);
  font-size: 10px;
}

.request-meta strong {
  font-size: 13px;
}

.request-card .btn {
  width: 100%;
  margin-top: auto;
  min-height: 42px;
}

.sample-table-wrap {
  padding: 0;
  overflow: hidden;
}

.internal-sample-grid {
  padding: 18px;
  background: transparent;
}

.internal-sample-grid > #internal-sample-list,
.internal-sample-grid > #downlisted-sample-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.internal-sample-card.is-downlisted .internal-sample-cover {
  filter: saturate(.72);
}

.internal-sample-card.is-downlisted .internal-sample-category {
  color: #a92f29;
}

.internal-sample-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.internal-sample-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d9ddd8;
  cursor: pointer;
}

.internal-sample-cover .cover-image,
.internal-sample-cover .generated-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.internal-sample-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(22, 32, 31, .78);
  font-size: 12px;
}

.internal-sample-likes {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 32, 31, .78);
  box-shadow: 0 4px 14px rgba(22, 32, 31, .18);
  font-size: 11px;
  font-weight: 800;
}

.internal-sample-cover-wrap {
  position: relative;
}

.internal-sample-category.category-overlay {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 32, 31, .72);
  backdrop-filter: blur(7px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.internal-sample-category.category-overlay:hover,
.internal-sample-category.category-overlay:focus-visible { background: rgba(22, 32, 31, .94); }

.internal-sample-body {
  padding: 14px;
}

.internal-sample-category,
.internal-sample-meta {
  color: var(--muted);
  font-size: 11px;
}

.internal-sample-title {
  display: block;
  width: 100%;
  margin: 7px 0 5px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.internal-sample-tags {
  display: flex;
  gap: 6px;
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.internal-sample-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.internal-sample-stats {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.sample-table-head,
.sample-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 0.55fr 0.65fr 0.8fr;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
}

.sample-table-head {
  color: var(--muted);
  background: #e7e5de;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sample-row {
  min-height: 92px;
  border-top: 1px solid var(--line);
}

.sample-row:first-child {
  border-top: 0;
}

.sample-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.sample-thumb {
  width: 86px;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.sample-thumb .generated-cover {
  padding: 10px;
}

.sample-thumb .generated-cover strong {
  font-size: 12px;
}

.sample-info strong,
.sample-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-info small {
  margin-top: 4px;
  color: var(--muted);
}

.sample-feedback {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.sample-row-actions {
  display: flex;
  gap: 8px;
}

.sample-row-actions .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.checkbox-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.drawer-shell {
  position: fixed;
  z-index: 850;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(9, 18, 16, 0.42);
  backdrop-filter: blur(8px);
}

.drawer-shell.open {
  display: flex;
}

.request-drawer {
  position: relative;
  width: min(580px, 100%);
  height: 100%;
  overflow: auto;
  padding: 32px;
  background: var(--surface-solid);
  box-shadow: -25px 0 80px rgba(7, 16, 14, 0.24);
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.drawer-title {
  padding-right: 60px;
}

.drawer-title h2 {
  margin: 8px 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.drawer-title > p:last-child {
  color: var(--muted);
}

.drawer-sample {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 12px;
  border-radius: 16px;
  background: #efede6;
}

.drawer-sample .sample-thumb {
  width: 108px;
}

.drawer-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.drawer-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.drawer-section > p {
  color: #46504d;
  line-height: 1.7;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.workflow-action-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #efede6;
}

.workflow-action-block > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.workflow-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.workflow-step {
  min-height: 42px;
}

.workflow-step:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .sample-table-head {
    display: none;
  }

  .internal-sample-grid > #internal-sample-list,
  .internal-sample-grid > #downlisted-sample-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-row {
    grid-template-columns: 1fr auto;
  }

  .sample-row > :nth-child(2),
  .sample-row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .workspace {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 500;
    left: 0;
    width: 260px;
    transform: translateX(-110%);
    transition: transform 200ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: white;
    background: rgba(22, 32, 31, 0.96);
  }

  .mobile-header .brand-mark {
    width: 38px;
    height: 38px;
  }

  .mobile-header .icon-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
  }

  .workspace-main {
    padding: 34px 16px 110px;
  }

  .filter-row .history-toggle {
    margin-left: 0;
  }

  .request-card {
    border-radius: 16px;
  }

  .request-card-content {
    padding: 12px;
  }

  .request-card h3 {
    font-size: 15px;
  }

  .request-meta {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 12px 0;
  }

  .internal-sample-grid {
    padding: 10px;
  }

  .internal-sample-grid > #internal-sample-list,
  .internal-sample-grid > #downlisted-sample-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .topbar .btn {
    width: 100%;
  }

  .metric-grid,
  .request-board {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 142px;
  }

  .internal-bottom-nav {
    position: fixed;
    z-index: 300;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 8px calc(8px + var(--safe-bottom));
    border-radius: 22px;
    background: rgba(22, 32, 31, 0.95);
    box-shadow: 0 18px 55px rgba(14, 24, 22, 0.3);
  }

  .internal-bottom-nav button {
    display: grid;
    min-height: 49px;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.46);
    background: transparent;
  }

  .internal-bottom-nav button.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .internal-bottom-nav small {
    font-size: 10px;
  }

  .sample-row {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .sample-row-actions .btn {
    flex: 1;
  }

  .request-drawer {
    padding: 25px 18px calc(30px + var(--safe-bottom));
  }
}

/* 摄影师专区 */
.compact-staff-type { max-width: 360px; }
.account-role-note { color: var(--muted); font-size: 12px; }
.shooting-heading { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-bottom: 28px; }
.shooting-heading:not(:has(.shooting-back)) { grid-template-columns: 1fr; }
.shooting-heading h1 { margin: 0; font-size: clamp(48px, 6vw, 84px); line-height: .96; letter-spacing: -.065em; }
.shooting-heading p:last-child { max-width: 700px; margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.shooting-back { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.8); font-size: 19px; }
.shooting-warning-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 72px; margin-bottom: 48px; padding: 14px 18px; border: 1px solid rgba(255,75,69,.18); border-radius: 19px; background: #ffe6e1; }
.shooting-warning-strip > b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--red); font: 900 20px Georgia, serif; }
.shooting-warning-strip span { display: block; margin-bottom: 4px; color: var(--red-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.shooting-warning-strip p { margin: 0; font-size: 13px; font-weight: 750; line-height: 1.6; }
.shooting-warning-strip .btn { min-height: 40px; margin: 0; }
.shooting-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.shooting-section-title h2, .shooting-day-head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.shooting-section-title > span, .shooting-day-head p { color: var(--muted); font-size: 12px; }
.shooting-month-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.shooting-month-card { min-height: 260px; grid-column: span 2; padding: 22px; display: flex; flex-direction: column; border: 0; border-radius: 25px; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.shooting-month-card:nth-child(-n+2) { grid-column: span 3; }
.shooting-month-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shooting-month-card > span { font-size: 10px; font-weight: 900; letter-spacing: .15em; opacity: .68; }
.shooting-month-card > strong { margin-top: auto; font-size: 42px; letter-spacing: -.06em; }
.shooting-month-card > p { padding-top: 14px; border-top: 1px solid currentColor; font-size: 10px; opacity: .75; }
.shooting-month-card > i { font-size: 11px; font-style: normal; font-weight: 850; }
.shooting-month-card.tone-0, .shooting-cover.tone-0 { color: #321e1a; background: #ff7c70; }
.shooting-month-card.tone-1, .shooting-cover.tone-1 { color: #143a33; background: #bdebdc; }
.shooting-month-card.tone-2, .shooting-cover.tone-2 { color: white; background: #16201f; }
.shooting-month-card.tone-3, .shooting-cover.tone-3 { color: #3b2c19; background: #e8d5aa; }
.shooting-month-card.tone-4, .shooting-cover.tone-4 { color: #4b1e1a; background: #ffbbb5; }
.shooting-legend { display: flex; gap: 15px; flex-wrap: wrap; }
.shooting-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.shooting-legend i { width: 9px; height: 9px; border-radius: 50%; background: #d5d1c8; }
.shooting-legend i.active { background: var(--red); }
.shooting-legend i.complete { background: var(--jade); }
.shooting-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.65); box-shadow: 0 18px 55px rgba(22,32,31,.06); }
.shooting-weekdays, .shooting-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.shooting-weekdays { color: rgba(255,255,255,.62); background: var(--ink); }
.shooting-weekdays span { padding: 14px 8px; text-align: center; font-size: 10px; font-weight: 800; }
.shooting-day { position: relative; min-height: 132px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); text-align: left; }
.shooting-day:nth-child(7n) { border-right: 0; }
.shooting-day:hover:not(.empty) { z-index: 1; box-shadow: 0 10px 30px rgba(22,32,31,.13); }
.shooting-day.active { background: #ffe5e0; }
.shooting-day.complete { background: #dff3ed; }
.shooting-day.past { opacity: .62; }
.shooting-day > b { font-size: 25px; }
.shooting-day > span { margin-top: 14px; color: var(--muted); font-size: 10px; font-weight: 800; }
.shooting-day > small { margin-top: 4px; font-size: 9px; }
.shooting-day > i, .shooting-day > em { position: absolute; right: 8px; padding: 4px 6px; border-radius: 7px; color: white; background: var(--red); font-size: 8px; font-style: normal; font-weight: 800; }
.shooting-day > i { bottom: 8px; }
.shooting-day > em { top: 8px; background: var(--ink); }
.shooting-day-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.shooting-day-head .btn { margin: 0; }
.shooting-summary { display: flex; gap: 8px; margin: 18px 0; overflow-x: auto; }
.shooting-summary span { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.65); font-size: 10px; }
.shooting-summary b { color: var(--ink); font-size: 13px; }
.shooting-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
.shooting-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--surface-solid); box-shadow: 0 12px 40px rgba(22,32,31,.07); }
.shooting-cover { position: relative; min-height: 260px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.shooting-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(0,0,0,.02), rgba(0,0,0,.5)); }
.shooting-cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.shooting-cover > span { color: rgba(255,255,255,.72); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.shooting-cover > strong { max-width: 84%; margin-top: auto; color: white; font-size: 29px; line-height: 1.15; letter-spacing: -.04em; text-shadow: 0 2px 14px rgba(0,0,0,.32); }
.shooting-cover > i { margin-top: 12px; color: white; font-size: 10px; font-style: normal; font-weight: 800; }
.shooting-card-body { padding: 22px; }
.shooting-card-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.shooting-card-title small { color: var(--muted); font-size: 9px; }
.shooting-card-title h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.35; }
.shooting-status { flex: none; padding: 7px 9px; border-radius: 9px; color: var(--muted); background: #eeeae1; font-size: 9px; font-weight: 900; }
.shooting-status.status-reviewing { color: #8b5b0b; background: #ffe6bc; }
.shooting-status.status-approved { color: var(--jade); background: #dff3ed; }
.shooting-status.status-changes { color: var(--red-dark); background: #ffe5e0; }
.shooting-status.status-completed { color: #315f9d; background: #dce9ff; }
.shooting-status.status-uploaded { color: white; background: var(--ink); }
.shooting-card dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.shooting-card dl > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.shooting-card dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 850; }
.shooting-card dd { margin: 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.shooting-assignment { margin-top: 13px; padding: 11px 13px; display: flex; justify-content: space-between; border-radius: 11px; background: #f1efe7; font-size: 10px; }
.shooting-note { margin-top: 11px; padding: 13px; border-radius: 11px; background: #ffe5e0; }
.shooting-note.uploaded { background: #dff3ed; }
.shooting-note b { color: var(--red-dark); font-size: 9px; }
.shooting-note.uploaded b { color: var(--jade); }
.shooting-note p { margin: 5px 0 0; font-size: 11px; line-height: 1.55; }
.shooting-note a { display: inline-flex; min-height: 36px; align-items: center; margin-top: 10px; padding: 0 12px; border-radius: 10px; color: white; background: var(--jade); font-size: 10px; font-weight: 900; }
.shooting-card-actions { min-height: 42px; margin-top: 15px; display: flex; justify-content: flex-end; align-items: center; }
.shooting-card-actions .btn, .shooting-review .btn { min-height: 40px; margin: 0; font-size: 11px; }
.shooting-locked { color: var(--muted); font-size: 10px; }
.shooting-review { width: 100%; display: grid; gap: 9px; }
.shooting-review label { color: var(--muted); font-size: 9px; font-weight: 800; }
.shooting-review textarea { min-height: 72px; margin-top: 6px; }
.shooting-review > div { display: flex; justify-content: flex-end; gap: 7px; }
.shooting-empty { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed rgba(22,32,31,.22); border-radius: 26px; background: rgba(255,255,255,.34); }
.shooting-empty > b { color: var(--red); font-size: 44px; }
.shooting-empty h3 { margin: 7px 0 3px; }
.shooting-empty p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.shooting-modal { width: min(720px, calc(100% - 28px)); }
.shooting-modal-copy { color: var(--muted); line-height: 1.7; }
.shooting-parse-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shooting-parse-row .btn { min-height: 48px; margin: 0; }
.shooting-parse-preview { min-height: 86px; padding: 11px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: #f1efe7; font-size: 11px; }
.shooting-parse-preview.success { color: var(--ink); border-color: rgba(11,130,111,.22); background: #e2f3ed; }
.shooting-parse-preview.error { color: var(--red-dark); border-color: rgba(255,75,69,.22); background: #ffe5e0; }
.shooting-parse-preview img, .shooting-parse-fallback { width: 72px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; background: #ddd8cc; }
.shooting-parse-fallback { display: grid; place-items: center; }
.shooting-parse-preview strong, .shooting-parse-preview span, .shooting-parse-preview small { display: block; }
.shooting-parse-preview small { color: var(--jade); font-size: 9px; }
.shooting-parse-preview strong { margin: 5px 0; font-size: 12px; line-height: 1.45; }
.shooting-parse-preview span { color: var(--muted); font-size: 9px; }
.shooting-existing-reference { padding: 14px; display: grid; gap: 5px; border-radius: 13px; background: #f1efe7; }
.shooting-existing-reference span { color: var(--muted); font-size: 9px; }
.shooting-warning-list { display: grid; gap: 8px; margin: 18px 0; }
.shooting-warning-list > div { padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; border-radius: 12px; background: #ffe5e0; font-size: 12px; }
.shooting-warning-list button { border: 0; color: var(--red-dark); background: transparent; font-size: 10px; font-weight: 850; }
.shooting-warning-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shooting-warning-form .btn { min-height: 48px; margin: 0; }

@media (max-width: 1050px) {
  .shooting-month-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shooting-month-card:nth-child(n) { grid-column: span 1; }
  .shooting-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shooting-heading h1 { font-size: 50px; }
  .shooting-warning-strip { grid-template-columns: auto 1fr; margin-bottom: 34px; align-items: start; }
  .shooting-warning-strip .btn { grid-column: 1 / -1; width: 100%; }
  .shooting-section-title, .shooting-day-head { align-items: start; flex-direction: column; }
  .shooting-section-title > span { display: none; }
  .shooting-month-grid { grid-template-columns: 1fr; }
  .shooting-month-card { min-height: 220px; }
  .shooting-calendar { overflow-x: auto; }
  .shooting-weekdays, .shooting-days { min-width: 760px; }
  .shooting-day-head .btn { width: 100%; }
  .shooting-cover { min-height: 230px; }
  .shooting-cover > strong { font-size: 25px; }
  .shooting-parse-row, .shooting-warning-form { grid-template-columns: 1fr; }
}
