:root {
  --v2-bg: #f4f8f2;
  --v2-surface: rgba(255, 255, 255, 0.94);
  --v2-surface-strong: #ffffff;
  --v2-line: rgba(28, 55, 43, 0.08);
  --v2-border: rgba(28, 55, 43, 0.12);
  --v2-text: #18352b;
  --v2-muted: #6d7f74;
  --v2-brand: #3f6b54;
  --v2-brand-strong: #254434;
  --v2-brand-soft: #deece3;
  --v2-accent: #f0823f;
  --v2-accent-soft: #ffe8d8;
  --v2-danger: #b75347;
  --v2-danger-soft: #f7dfdc;
  --v2-success: #2f7d58;
  --v2-success-soft: #def4e5;
  --v2-used: #876322;
  --v2-used-soft: #f8ebd2;
  --v2-shadow-lg: 0 28px 70px rgba(25, 49, 38, 0.1);
  --v2-shadow-md: 0 18px 38px rgba(25, 49, 38, 0.08);
  --v2-radius-xl: 30px;
  --v2-radius-lg: 22px;
  --v2-radius-md: 16px;
  --v2-radius-sm: 12px;
  --v2-font: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(240, 130, 63, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(63, 107, 84, 0.18), transparent 32%),
    linear-gradient(180deg, #fcfefb 0%, var(--v2-bg) 100%);
  color: var(--v2-text);
  font-family: var(--v2-font);
}

body.v2-modal-open {
  overflow: hidden;
}

.v2-detailbackdrop[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button,
input,
select {
  outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.v2-tab:focus-visible,
.v2-table tbody tr:focus-visible {
  outline: 2px solid rgba(240, 130, 63, 0.7);
  outline-offset: 2px;
}

.v2-background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

.v2-background-orb.orb-one {
  top: 5rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(240, 130, 63, 0.56);
}

.v2-background-orb.orb-two {
  right: -4rem;
  bottom: 6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(63, 107, 84, 0.48);
}

.v2-shell {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px;
}

.v2-topbar,
.v2-userbar,
.v2-maincard,
.v2-detailcard,
.v2-summary-grid article {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-md);
}

.v2-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--v2-radius-xl);
  margin-bottom: 18px;
}

.v2-header-main {
  display: grid;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.v2-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.v2-brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--v2-brand-strong), var(--v2-brand));
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(37, 68, 52, 0.18);
}

.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v2-brand);
}

.v2-topbar h1,
.v2-panelhead h2,
.v2-panelhead h3 {
  margin: 6px 0 0;
  color: #173329;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.v2-topbar h1 {
  font-size: clamp(24px, 1vw + 18px, 34px);
  line-height: 1.08;
}

.v2-panelhead h2 {
  font-size: clamp(24px, 1.4vw + 18px, 34px);
}

.v2-panelhead h3 {
  font-size: 24px;
}

.v2-topbar p,
.v2-panelhead p,
.v2-usercard small,
.v2-label,
.v2-table-status,
.v2-pagination-summary {
  color: var(--v2-muted);
}

.v2-toolbar,
.v2-table-actions,
.v2-filter-actions,
.v2-pagination-actions,
.v2-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.v2-detail-actions-inline {
  margin-top: 10px;
  gap: 8px;
}

.v2-detail-actions-inline .v2-button,
.v2-detail-grid .v2-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
  box-shadow: none;
}

.v2-table-actions {
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.v2-table-actions .v2-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
  box-shadow: none;
}

.v2-header-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 18px 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(63, 107, 84, 0.12);
}

.v2-header-meta-item {
  min-width: 0;
}

.v2-header-meta-item strong {
  display: block;
  margin-top: 6px;
  color: #173329;
  font-size: clamp(18px, 0.7vw + 16px, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.v2-header-meta-item small {
  display: block;
  margin-top: 6px;
}

.v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.v2-button:hover {
  transform: translateY(-1px);
}

.v2-button-primary {
  background: linear-gradient(135deg, var(--v2-accent), #fb6b1a);
  color: #fff;
  box-shadow: 0 16px 28px rgba(240, 130, 63, 0.24);
}

.v2-button-secondary {
  background: linear-gradient(135deg, var(--v2-brand-strong), var(--v2-brand));
  color: #fff;
  box-shadow: 0 14px 24px rgba(36, 68, 52, 0.18);
}

.v2-button-ghost {
  border-color: rgba(63, 107, 84, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--v2-brand-strong);
}

.v2-button-danger {
  background: linear-gradient(135deg, #d86757, var(--v2-danger));
  color: #fff;
  box-shadow: 0 14px 24px rgba(183, 83, 71, 0.22);
}

.v2-userbar,
.v2-summary-grid {
  display: grid;
  gap: 16px;
}

.v2-userbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.v2-usercard,
.v2-summary-grid article {
  padding: 18px 20px;
  border-radius: var(--v2-radius-lg);
}

.v2-usercard strong,
.v2-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.08;
}

.v2-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.v2-utility,
#v2-utility-rail,
.v2-admin-shortcuts,
#v2-admin-shortcuts {
  display: none !important;
}

.v2-admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.v2-admin-shortcut {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px 20px;
  border-radius: var(--v2-radius-lg);
  border: 1px solid rgba(63, 107, 84, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--v2-brand-strong);
  text-align: left;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.v2-admin-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(36, 68, 52, 0.14);
}

.v2-admin-shortcut.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-brand-strong), var(--v2-brand));
  box-shadow: 0 18px 28px rgba(36, 68, 52, 0.18);
}

.v2-admin-shortcut strong {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.v2-admin-shortcut small {
  color: var(--v2-muted);
}

.v2-admin-shortcut.is-active small,
.v2-admin-shortcut.is-active .v2-label {
  color: rgba(255, 255, 255, 0.82);
}

.v2-admin-shortcut-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-admin-shortcut-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 51, 41, 0.08);
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.v2-admin-shortcut.is-active .v2-admin-shortcut-count {
  background: rgba(255, 255, 255, 0.16);
}

.v2-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(63, 107, 84, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--v2-brand-strong);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.v2-tab:hover {
  transform: translateY(-1px);
}

.v2-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-brand-strong), var(--v2-brand));
  box-shadow: 0 18px 28px rgba(36, 68, 52, 0.18);
}

.v2-tab-count {
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 51, 41, 0.08);
  color: inherit;
  font-size: 14px;
  text-align: center;
}

.v2-tab.is-active .v2-tab-count {
  background: rgba(255, 255, 255, 0.16);
}

.v2-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.v2-summary-grid small {
  color: var(--v2-muted);
}

.v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.v2-maincard,
.v2-detailcard {
  border-radius: var(--v2-radius-xl);
  padding: 22px;
}

.v2-panelhead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.v2-panelhead > div:first-child {
  min-width: 0;
}

.v2-panelhead-compact {
  margin-bottom: 12px;
}

.v2-filter-panel {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(225, 238, 229, 0.62));
}

.v2-filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.v2-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(176px, 40vw);
}

.v2-field span {
  font-size: 11px;
  line-height: 1;
  color: var(--v2-muted);
}

.v2-field-help {
  display: block;
  margin-top: 2px;
  color: var(--v2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.v2-field-checkbox {
  justify-content: center;
}

.v2-field-checkbox__input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 14px;
  color: var(--v2-text);
}

.v2-field-checkbox__input input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.v2-field input,
.v2-field select,
.v2-pagesize-control select {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(63, 107, 84, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--v2-text);
  font-size: 14px;
}

.v2-filter-actions {
  margin-top: 0;
  gap: 8px;
  flex-wrap: nowrap;
}

.v2-filter-panel .v2-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}

.v2-table-shell {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: var(--v2-surface-strong);
  overflow: hidden;
}

.v2-table-meta,
.v2-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.v2-table-status {
  margin-right: auto;
}

.v2-table-meta {
  border-bottom: 1px solid var(--v2-line);
}

.v2-pagesize-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-muted);
}

.v2-table-wrap {
  overflow: auto;
}

.v2-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.v2-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  background: rgba(225, 238, 229, 0.58);
  color: var(--v2-muted);
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v2-table tbody tr {
  cursor: pointer;
  transition: background-color 160ms ease;
}

.v2-table tbody tr:hover {
  background: rgba(225, 238, 229, 0.38);
}

.v2-table tbody tr.is-selected {
  background: rgba(223, 239, 229, 0.7);
}

.v2-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--v2-line);
  vertical-align: top;
}

.v2-table code {
  font-family: var(--v2-font);
  font-size: 13px;
  color: var(--v2-brand-strong);
  word-break: break-all;
}

.v2-status-chip,
.v2-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.v2-status-accepted {
  background: var(--v2-success-soft);
  color: var(--v2-success);
}

.v2-status-used {
  background: var(--v2-used-soft);
  color: var(--v2-used);
}

.v2-status-closed {
  background: var(--v2-danger-soft);
  color: var(--v2-danger);
}

.v2-status-draft {
  background: rgba(225, 238, 229, 0.78);
  color: var(--v2-brand);
}

.v2-detailbackdrop {
  position: fixed;
  inset: 0;
  z-index: 45000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background: rgba(244, 248, 242, 0.28);
  backdrop-filter: blur(6px);
}

.v2-detailcard {
  width: min(680px, calc(100vw - 40px));
  max-height: min(82vh, 760px);
  overflow: auto;
  box-shadow: var(--v2-shadow-lg);
}

.v2-formcard {
  width: min(520px, calc(100vw - 40px));
}

.v2-record-form {
  display: grid;
  gap: 18px;
}

.v2-record-form-grid {
  display: grid;
  gap: 14px;
}

.v2-record-form .v2-field {
  width: 100%;
}

.v2-record-form .v2-field input,
.v2-record-form .v2-field select {
  min-height: 46px;
  border-radius: 16px;
  font-size: 16px;
}

.v2-detail-topmeta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.v2-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(63, 107, 84, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-brand-strong);
  font-size: 28px;
  line-height: 1;
}

.v2-detail-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 68, 52, 0.12);
}

.v2-detail-image img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--v2-line);
}

.v2-detail-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
  gap: 10px 14px;
  margin: 0 0 20px;
}

.v2-detail-grid dt {
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-detail-grid dd {
  margin: 0;
  color: var(--v2-text);
  font-weight: 600;
  word-break: break-word;
}

.v2-detail-metric {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
}

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

.v2-detail-list li {
  border-radius: 14px;
  background: rgba(225, 238, 229, 0.42);
  border: 1px solid rgba(63, 107, 84, 0.08);
  overflow: hidden;
}

.v2-receipt-item-toggle {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.v2-receipt-item-copy {
  min-width: 0;
}

.v2-receipt-item-copy strong,
.v2-receipt-item-copy span {
  display: block;
}

.v2-receipt-item-copy span,
.v2-detail-note {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 500;
}

.v2-receipt-item-icon {
  flex: 0 0 auto;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--v2-brand-strong);
  font-size: 20px;
  line-height: 1;
}

.v2-receipt-item-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(63, 107, 84, 0.08);
}

.v2-receipt-item-note {
  margin-top: 8px;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 500;
}

.v2-qr-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.v2-qr-inline-form input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 107, 84, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-text);
  font-size: 14px;
}

.v2-qr-inline-form .v2-button {
  flex: 0 0 auto;
}

.v2-upload-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.v2-upload-form-stack {
  align-items: stretch;
  flex-direction: column;
  margin-top: 12px;
}

.v2-upload-form input[type="text"],
.v2-upload-form input[type="number"],
.v2-upload-form input[type="file"] {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 107, 84, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-text);
  font-size: 14px;
}

.v2-upload-form .v2-button {
  flex: 0 0 auto;
}

.v2-inline-select-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.v2-inline-select-form select {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 107, 84, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-text);
  font-size: 14px;
}

.v2-inline-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.v2-inline-entry__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.v2-inline-entry .v2-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
  flex: 0 0 auto;
}

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

.v2-qr-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(63, 107, 84, 0.08);
}

.v2-qr-list li a,
.v2-qr-list li span {
  display: block;
}

.v2-qr-list li a {
  color: var(--v2-brand-strong);
  text-decoration: underline;
  word-break: break-all;
}

.v2-qr-list li span {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 500;
}

.v2-product-file-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.v2-product-file-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(63, 107, 84, 0.08);
}

.v2-product-file-list a,
.v2-product-file-list span {
  display: block;
}

.v2-product-file-list a {
  color: var(--v2-brand-strong);
  text-decoration: underline;
  word-break: break-all;
}

.v2-product-file-list span {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 13px;
  font-weight: 500;
}

.v2-rights-grid {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.v2-right-chip {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 107, 84, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--v2-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.v2-right-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(25, 49, 38, 0.08);
}

.v2-right-chip.is-enabled {
  background: rgba(222, 244, 229, 0.86);
  border-color: rgba(47, 125, 88, 0.22);
}

.v2-right-chip.is-disabled {
  background: rgba(247, 248, 247, 0.86);
}

.v2-right-chip.is-disabled-ui,
.v2-right-chip:disabled {
  cursor: default;
  opacity: 0.72;
}

.v2-right-chip__name {
  font-weight: 700;
}

.v2-right-chip__state {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--v2-brand-strong);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.v2-guid-link {
  color: var(--v2-brand-strong);
  text-decoration: underline;
}

.v2-empty,
.v2-error {
  margin: 18px;
  padding: 18px 20px;
  border-radius: 18px;
}

.v2-empty {
  background: rgba(225, 238, 229, 0.5);
}

.v2-error {
  background: rgba(247, 223, 220, 0.84);
  color: var(--v2-danger);
}

.v2-page-pill {
  min-width: 100px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 238, 229, 0.62);
  color: var(--v2-brand-strong);
  font-weight: 700;
}

.v2-overlay-error {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.v2-overlay-error__body {
  width: min(560px, calc(100% - 32px));
  margin: 20vh auto 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: white;
  color: var(--v2-danger);
  box-shadow: var(--v2-shadow-lg);
  text-align: center;
}

@media (max-width: 1200px) {
  .v2-userbar,
  .v2-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-header-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 780px) {
  .v2-shell {
    padding: 16px;
  }

  .v2-topbar,
  .v2-summary-grid,
  .v2-header-meta,
  .v2-filter-grid {
    grid-template-columns: 1fr;
  }

  .v2-topbar,
  .v2-panelhead,
  .v2-table-meta,
  .v2-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-toolbar,
  .v2-table-actions,
  .v2-filter-actions,
  .v2-pagination-actions,
  .v2-detail-actions {
    width: 100%;
  }

  .v2-header-main {
    width: 100%;
  }

  .v2-button,
  .v2-tab {
    width: 100%;
  }

  .v2-filter-panel {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .v2-filter-grid {
    display: grid;
  }

  .v2-field {
    width: 100%;
  }

  .v2-filter-actions {
    flex-wrap: wrap;
  }

  .v2-table {
    min-width: 640px;
  }

  .v2-detail-grid {
    grid-template-columns: 1fr;
  }

  .v2-detailbackdrop {
    justify-content: center;
    padding: 16px;
  }

  .v2-detailcard {
    width: 100%;
    max-height: calc(100vh - 32px);
  }

  .v2-detail-topmeta {
    justify-content: space-between;
    width: 100%;
  }

  .v2-qr-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-inline-select-form {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-inline-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-upload-form {
    align-items: stretch;
    flex-direction: column;
  }
}

/* V2 production UI refresh */
:root {
  --v2-bg: #f2f2ee;
  --v2-surface: rgba(255, 255, 255, 0.94);
  --v2-surface-strong: #ffffff;
  --v2-line: rgba(26, 38, 32, 0.08);
  --v2-border: rgba(26, 38, 32, 0.12);
  --v2-text: #1d2b25;
  --v2-muted: #67736d;
  --v2-brand: #3b5a4b;
  --v2-brand-strong: #22372d;
  --v2-brand-soft: #e8ede9;
  --v2-accent: #c86c33;
  --v2-accent-soft: #f3e4d8;
  --v2-danger: #b35348;
  --v2-danger-soft: #f8e7e4;
  --v2-success: #396d53;
  --v2-success-soft: #e5efe8;
  --v2-used: #866331;
  --v2-used-soft: #f4ebd9;
  --v2-shadow-lg: 0 28px 56px rgba(18, 28, 23, 0.1);
  --v2-shadow-md: 0 12px 28px rgba(18, 28, 23, 0.06);
  --v2-radius-xl: 24px;
  --v2-radius-lg: 18px;
  --v2-radius-md: 14px;
  --v2-radius-sm: 10px;
}

html,
body {
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    linear-gradient(180deg, #f7f6f2 0%, #eef1eb 100%);
}

.v2-background-orb {
  display: none;
}

.v2-shell {
  max-width: 1540px;
  padding: 22px 24px 36px;
}

.v2-topbar,
.v2-usercard,
.v2-maincard,
.v2-detailcard,
.v2-summary-grid article {
  border: 1px solid var(--v2-border);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-md);
}

.v2-topbar {
  align-items: flex-end;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: var(--v2-radius-xl);
  backdrop-filter: blur(10px);
}

.v2-header-main {
  gap: 14px;
}

.v2-brand {
  gap: 14px;
}

.v2-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--v2-brand-strong);
  box-shadow: none;
  font-size: 24px;
}

.v2-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #587262;
}

.v2-topbar h1 {
  margin-top: 4px;
  font-size: clamp(26px, 1vw + 18px, 32px);
  line-height: 1.04;
}

.v2-topbar p,
.v2-panelhead p {
  margin: 8px 0 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--v2-muted);
}

.v2-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
  border-top: 0;
}

.v2-header-meta-item {
  min-width: 220px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 38, 32, 0.08);
}

.v2-header-meta-item strong {
  font-size: clamp(18px, 0.65vw + 16px, 22px);
  line-height: 1.1;
}

.v2-header-meta-item small {
  line-height: 1.45;
}

.v2-toolbar {
  justify-content: flex-end;
  align-self: stretch;
}

.v2-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: none;
}

.v2-button:hover {
  transform: none;
}

.v2-button-primary {
  background: var(--v2-accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(200, 108, 51, 0.2);
}

.v2-button-primary:hover,
.v2-button-primary:active {
  background: #b95f29;
}

.v2-button-secondary {
  background: var(--v2-brand-strong);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 55, 45, 0.14);
}

.v2-button-secondary:hover,
.v2-button-secondary:active {
  background: #1d3027;
}

.v2-button-ghost {
  border-color: rgba(26, 38, 32, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--v2-brand-strong);
}

.v2-button-ghost:hover,
.v2-button-ghost:active {
  border-color: rgba(26, 38, 32, 0.18);
  background: #f7f8f5;
}

.v2-button-danger {
  background: #b75a4f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(183, 90, 79, 0.16);
}

.v2-button-danger:hover,
.v2-button-danger:active {
  background: #a24f45;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.v2-tab:focus-visible,
.v2-table tbody tr:focus-visible {
  outline: 2px solid rgba(59, 90, 75, 0.28);
  outline-offset: 2px;
}

.v2-tabs {
  gap: 10px;
  margin-bottom: 12px;
}

.v2-tab {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border-color: rgba(26, 38, 32, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.v2-tab:hover {
  border-color: rgba(34, 55, 45, 0.18);
  background: #fbfbf9;
}

.v2-tab.is-active {
  background: var(--v2-brand-strong);
  border-color: var(--v2-brand-strong);
  box-shadow: 0 10px 22px rgba(34, 55, 45, 0.14);
}

.v2-tab-count,
.v2-admin-shortcut-count {
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 43, 37, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.v2-tab.is-active .v2-tab-count,
.v2-admin-shortcut.is-active .v2-admin-shortcut-count {
  background: rgba(255, 255, 255, 0.16);
}

.v2-admin-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.v2-admin-shortcut {
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 18px;
  border-color: rgba(26, 38, 32, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.v2-admin-shortcut:hover {
  border-color: rgba(34, 55, 45, 0.18);
  box-shadow: 0 8px 18px rgba(18, 28, 23, 0.06);
}

.v2-admin-shortcut strong {
  font-size: 18px;
  line-height: 1.15;
}

.v2-admin-shortcut small {
  line-height: 1.45;
  color: var(--v2-muted);
}

.v2-admin-shortcut.is-active {
  background: var(--v2-brand-strong);
  border-color: var(--v2-brand-strong);
  box-shadow: 0 10px 20px rgba(34, 55, 45, 0.14);
}

.v2-summary-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.v2-summary-grid article,
.v2-usercard {
  padding: 16px 18px;
  border-radius: 18px;
}

.v2-summary-grid strong,
.v2-usercard strong {
  margin-top: 8px;
  font-size: clamp(24px, 1vw + 18px, 34px);
  line-height: 1.02;
}

.v2-summary-grid small {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.v2-layout {
  gap: 0;
}

.v2-maincard,
.v2-detailcard {
  padding: 20px;
  border-radius: 24px;
}

.v2-panelhead {
  gap: 16px;
  margin-bottom: 16px;
}

.v2-panelhead h2 {
  font-size: clamp(30px, 1.3vw + 20px, 46px);
  line-height: 1.04;
}

.v2-panelhead h3 {
  font-size: clamp(24px, 1vw + 18px, 34px);
  line-height: 1.08;
}

.v2-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 38, 32, 0.08);
  border-radius: 18px;
  background: #f6f7f4;
}

.v2-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px 12px;
  width: 100%;
}

.v2-field {
  gap: 6px;
  width: auto;
}

.v2-field span {
  font-size: 12px;
  font-weight: 700;
  color: #55645c;
}

.v2-field-help {
  font-size: 11px;
  line-height: 1.4;
}

.v2-field input,
.v2-field select,
.v2-pagesize-control select,
.v2-qr-inline-form input,
.v2-upload-form input[type="text"],
.v2-upload-form input[type="number"],
.v2-upload-form input[type="file"],
.v2-inline-select-form select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(26, 38, 32, 0.12);
  background: #ffffff;
  color: var(--v2-text);
  font-size: 14px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.v2-record-form .v2-field input,
.v2-record-form .v2-field select {
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
}

.v2-field input:focus,
.v2-field select:focus,
.v2-pagesize-control select:focus,
.v2-qr-inline-form input:focus,
.v2-upload-form input:focus,
.v2-inline-select-form select:focus {
  border-color: rgba(59, 90, 75, 0.34);
  box-shadow: 0 0 0 4px rgba(59, 90, 75, 0.08);
}

.v2-filter-actions {
  justify-self: end;
  align-self: end;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-filter-panel .v2-button,
.v2-table-actions .v2-button,
.v2-detail-actions-inline .v2-button,
.v2-detail-grid .v2-button,
.v2-inline-entry .v2-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.v2-table-shell {
  border-color: rgba(26, 38, 32, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
}

.v2-table-meta,
.v2-pagination {
  gap: 14px 16px;
  padding: 14px 16px;
}

.v2-table-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  border-bottom: 1px solid rgba(26, 38, 32, 0.08);
}

.v2-table-status {
  font-size: 14px;
  color: var(--v2-muted);
}

.v2-table-actions {
  margin-left: 0;
  gap: 8px;
}

.v2-pagesize-control {
  justify-self: end;
  gap: 8px;
  font-size: 14px;
}

.v2-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.v2-table {
  min-width: 640px;
}

.v2-table thead th {
  padding: 14px 16px;
  background: #f3f5f1;
  color: #5f6d66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.v2-table td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
  border-top: 1px solid rgba(26, 38, 32, 0.08);
}

.v2-table code {
  font-size: 13px;
}

.v2-table tbody tr:hover {
  background: #f7faf7;
}

.v2-table tbody tr.is-selected {
  background: #edf3ee;
}

.v2-status-chip,
.v2-status-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.v2-empty,
.v2-error {
  margin: 14px;
  padding: 16px 18px;
  border-radius: 16px;
}

.v2-empty {
  border: 1px dashed rgba(26, 38, 32, 0.12);
  background: #f6f7f4;
}

.v2-empty h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.v2-empty p,
.v2-error p {
  margin: 0;
  line-height: 1.5;
}

.v2-error {
  border: 1px solid rgba(179, 83, 72, 0.18);
  background: var(--v2-danger-soft);
  color: var(--v2-danger);
}

.v2-pagination {
  border-top: 1px solid rgba(26, 38, 32, 0.08);
}

.v2-pagination-summary {
  font-size: 14px;
}

.v2-page-pill {
  min-width: 112px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #eff3ef;
  font-size: 14px;
}

.v2-detailbackdrop {
  padding: 24px;
  background: rgba(17, 24, 22, 0.28);
  backdrop-filter: blur(10px);
}

.v2-detailcard {
  width: min(760px, calc(100vw - 48px));
  max-height: min(84vh, 820px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--v2-shadow-lg);
}

.v2-formcard {
  width: min(560px, calc(100vw - 48px));
}

.v2-detail-topmeta {
  gap: 10px;
}

.v2-detail-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 24px;
}

.v2-detail-image img {
  border-radius: 18px;
}

.v2-detail-grid {
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px 16px;
}

.v2-detail-grid dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #65726c;
}

.v2-detail-grid dd {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.v2-detail-list {
  gap: 10px;
}

.v2-detail-list li,
.v2-qr-list li,
.v2-product-file-list li {
  border-radius: 14px;
  background: #f6f7f4;
  border: 1px solid rgba(26, 38, 32, 0.08);
}

.v2-receipt-item-toggle,
.v2-receipt-item-body {
  padding-left: 14px;
  padding-right: 14px;
}

.v2-receipt-item-toggle {
  padding-top: 12px;
  padding-bottom: 12px;
}

.v2-receipt-item-icon {
  min-width: 26px;
  min-height: 26px;
  background: #ffffff;
  font-size: 18px;
}

.v2-receipt-item-copy span,
.v2-detail-note,
.v2-receipt-item-note,
.v2-qr-list li span,
.v2-product-file-list span {
  line-height: 1.5;
}

.v2-rights-grid {
  gap: 10px;
}

.v2-right-chip {
  padding: 12px 14px;
  border-radius: 14px;
  border-color: rgba(26, 38, 32, 0.12);
  box-shadow: none;
}

.v2-right-chip:hover:not(:disabled) {
  box-shadow: 0 8px 18px rgba(18, 28, 23, 0.06);
}

.v2-right-chip.is-enabled {
  background: #ecf4ee;
  border-color: rgba(57, 109, 83, 0.2);
}

.v2-right-chip__state {
  min-width: 48px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.88);
}

.v2-overlay-error {
  background: rgba(17, 24, 22, 0.24);
}

.v2-overlay-error__body {
  margin-top: 16vh;
  border-radius: 20px;
  border: 1px solid rgba(26, 38, 32, 0.08);
}

@media (max-width: 1120px) {
  .v2-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-table-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .v2-pagesize-control {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .v2-shell {
    padding: 16px;
  }

  .v2-topbar {
    align-items: stretch;
    padding: 16px;
  }

  .v2-header-meta {
    gap: 10px;
  }

  .v2-header-meta-item {
    min-width: 0;
    width: 100%;
  }

  .v2-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .v2-toolbar .v2-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .v2-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-tab {
    width: 100%;
    justify-content: space-between;
  }

  .v2-admin-shortcuts,
  .v2-summary-grid {
    grid-template-columns: 1fr;
  }

  .v2-panelhead h2 {
    font-size: 34px;
  }

  .v2-filter-panel {
    grid-template-columns: 1fr;
  }

  .v2-filter-grid {
    grid-template-columns: 1fr;
  }

  .v2-filter-actions {
    justify-self: stretch;
  }

  .v2-filter-actions .v2-button {
    flex: 1 1 calc(50% - 4px);
  }

  .v2-table-meta {
    grid-template-columns: 1fr;
  }

  .v2-table-actions,
  .v2-pagesize-control {
    justify-self: stretch;
    width: 100%;
  }

  .v2-table-actions .v2-button,
  .v2-table-actions a {
    flex: 1 1 calc(50% - 4px);
  }

  .v2-pagesize-control {
    justify-content: space-between;
  }

  .v2-table {
    min-width: 560px;
  }

  .v2-pagination {
    align-items: stretch;
  }

  .v2-pagination-actions {
    width: 100%;
    justify-content: space-between;
  }

  .v2-detailbackdrop {
    padding: 16px;
  }

  .v2-detailcard,
  .v2-formcard {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .v2-brand {
    align-items: flex-start;
  }

  .v2-topbar h1 {
    font-size: 26px;
  }

  .v2-toolbar .v2-button,
  .v2-filter-actions .v2-button,
  .v2-table-actions .v2-button,
  .v2-table-actions a {
    flex-basis: 100%;
    width: 100%;
  }

  .v2-tabs {
    grid-template-columns: 1fr;
  }

  .v2-panelhead h2 {
    font-size: 30px;
  }
}

/* V2 shell composition pass */
.v2-topbar {
  padding: 16px 20px;
}

.v2-header-main {
  gap: 12px;
}

.v2-topbar p {
  max-width: 56ch;
}

.v2-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.v2-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.v2-sidebar-group {
  padding: 14px;
  border: 1px solid rgba(26, 38, 32, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--v2-shadow-md);
}

.v2-sidebar-label {
  margin-bottom: 10px;
  color: #65736b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.v2-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.v2-tab {
  width: 100%;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
}

.v2-admin-shortcuts {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.v2-admin-shortcut {
  min-height: auto;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
}

.v2-admin-shortcut strong {
  font-size: 16px;
}

.v2-admin-shortcut small {
  font-size: 13px;
}

.v2-admin-shortcut-meta {
  margin-top: 4px;
}

.v2-summary-grid {
  margin-bottom: 0;
}

.v2-summary-grid article {
  min-height: 132px;
}

.v2-summary-grid strong {
  font-size: clamp(20px, 0.8vw + 16px, 28px);
}

.v2-maincard {
  min-width: 0;
}

.v2-panelhead h2 {
  font-size: clamp(32px, 1vw + 22px, 40px);
}

.v2-panelhead p {
  max-width: 48ch;
}

.v2-filter-panel {
  grid-template-columns: minmax(0, 1fr);
}

.v2-filter-actions {
  justify-self: stretch;
  justify-content: flex-start;
}

.v2-table-meta {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.v2-table-status {
  min-height: 20px;
}

@media (max-width: 1220px) {
  .v2-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .v2-sidebar {
    position: static;
  }

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

  .v2-admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .v2-workspace {
    gap: 14px;
  }

  .v2-sidebar-group {
    padding: 12px;
  }

  .v2-tabs,
  .v2-admin-shortcuts {
    grid-template-columns: 1fr;
  }
}

:root {
  --v2-bg: #f4f8ff;
  --v2-surface: rgba(255, 255, 255, 0.95);
  --v2-surface-strong: #ffffff;
  --v2-line: rgba(44, 74, 118, 0.1);
  --v2-border: rgba(44, 74, 118, 0.16);
  --v2-text: #1c2840;
  --v2-muted: #72829b;
  --v2-brand: #4f72bc;
  --v2-brand-strong: #1f3f7a;
  --v2-brand-soft: #eaf2ff;
  --v2-accent: #d75c68;
  --v2-accent-soft: #fee8eb;
  --v2-danger: #cb4f5b;
  --v2-danger-soft: #ffe4e8;
  --v2-success: #5f95d8;
  --v2-success-soft: #e9f2ff;
  --v2-used: #6878ad;
  --v2-used-soft: #edf2ff;
  --v2-shadow-md: 0 18px 44px rgba(42, 71, 113, 0.08);
  --v2-shadow-lg: 0 24px 58px rgba(42, 71, 113, 0.12);
  --v2-radius-xl: 32px;
  --v2-radius-lg: 24px;
  --v2-radius-md: 18px;
  --v2-radius-sm: 14px;
  --v2-font: "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(102, 163, 255, 0.16), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(215, 92, 104, 0.1), transparent 24rem),
    linear-gradient(180deg, #f9fbff 0%, var(--v2-bg) 100%);
  font-family: var(--v2-font);
  font-weight: 500;
  line-height: 1.5;
}

.v2-background-orb {
  display: none;
}

.v2-shell {
  max-width: 1760px;
  padding: 22px;
}

.v2-topbar,
.v2-maincard,
.v2-detailcard,
.v2-summary-grid article,
.v2-sidebar-card,
.v2-utility-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-md);
}

.v2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 14px 18px;
  border-radius: var(--v2-radius-xl);
  margin-bottom: 18px;
}

.v2-brand {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.v2-brand-mark,
.v2-brand-lockup-mark,
.v2-topbar-user-mark {
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1f3f7a, #5f95d8);
}

.v2-brand-mark {
  width: 52px;
  height: 52px;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(31, 63, 122, 0.16);
}

.v2-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v2-brand-name {
  color: var(--v2-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-topbar h1 {
  margin: 0;
  color: var(--v2-text);
  font-size: clamp(26px, 1.2vw + 18px, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.v2-topbar p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--v2-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.v2-topbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.v2-toolbar {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.v2-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 430px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(44, 74, 118, 0.1);
  background: rgba(246, 250, 255, 0.98);
}

.v2-topbar-user-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 16px;
  font-weight: 800;
}

.v2-topbar-user-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
}

.v2-topbar-user-copy .v2-label {
  width: 100%;
  margin-bottom: 0;
}

.v2-topbar-user-copy strong {
  width: 100%;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v2-topbar-user-copy small {
  display: inline-flex;
  align-items: center;
  color: var(--v2-muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v2-topbar-user-copy small + small::before {
  content: "•";
  margin-right: 8px;
  color: rgba(44, 74, 118, 0.34);
}

.v2-workspace,
.v2-workspace.has-utility {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.v2-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.v2-sidebar-card {
  padding: 18px;
  border-radius: var(--v2-radius-xl);
}

.v2-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.v2-brand-lockup-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 17px;
  font-weight: 800;
}

.v2-brand-lockup-title {
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.v2-brand-lockup-copy,
.v2-sidebar-footnote {
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.v2-sidebar-footnote {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
}

.v2-sidebar-label,
.v2-label,
.v2-eyebrow {
  color: var(--v2-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-tabs {
  display: grid;
  gap: 7px;
  margin: 0;
}

.v2-tab {
  width: 100%;
  min-height: 50px;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(44, 74, 118, 0.1);
  background: rgba(250, 252, 255, 0.92);
  color: var(--v2-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.v2-tab:hover {
  background: rgba(236, 244, 255, 0.96);
  border-color: rgba(79, 114, 188, 0.18);
}

.v2-tab.is-active {
  background: linear-gradient(135deg, #1f3f7a, #355ca2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(31, 63, 122, 0.22);
}

.v2-tab-count,
.v2-admin-shortcut-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 114, 188, 0.1);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.v2-tab.is-active .v2-tab-count {
  background: rgba(255, 255, 255, 0.16);
}

.v2-content,
.v2-layout,
.v2-maincard,
.v2-table-shell,
.v2-table-wrap {
  min-width: 0;
}

.v2-layout {
  display: block;
}

.v2-maincard,
.v2-detailcard {
  border-radius: var(--v2-radius-xl);
  padding: 20px;
}

.v2-panelhead {
  margin-bottom: 10px;
}

.v2-panelhead h2 {
  margin-top: 6px;
  color: var(--v2-text);
  font-size: clamp(24px, 1vw + 18px, 36px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

#v2-module-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v2-panelhead p {
  max-width: 44ch;
  margin-top: 0;
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v2-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.v2-summary-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  min-height: auto;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--v2-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: none;
}

.v2-summary-grid article .v2-label {
  grid-column: 1;
  grid-row: 1;
}

.v2-summary-grid strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--v2-text);
  font-size: clamp(18px, 0.5vw + 15px, 26px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: right;
}

.v2-summary-grid small {
  display: none;
}

.v2-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94));
}

.v2-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: 100%;
}

.v2-field {
  width: auto;
  gap: 4px;
}

.v2-field span {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-field input,
.v2-field select,
.v2-pagesize-control select {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(79, 114, 188, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--v2-text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.v2-field input::placeholder,
.v2-field select:invalid {
  color: #91a2ba;
}

.v2-field input:focus,
.v2-field select:focus,
.v2-pagesize-control select:focus {
  border-color: rgba(95, 149, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(95, 149, 216, 0.14);
}

.v2-filter-actions {
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.v2-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.v2-button:hover {
  transform: translateY(-1px);
}

.v2-button-primary {
  background: linear-gradient(135deg, #de6670, var(--v2-accent));
  color: #fff;
  box-shadow: 0 14px 24px rgba(215, 92, 104, 0.22);
}

.v2-button-secondary {
  background: linear-gradient(135deg, #1f3f7a, #355ca2);
  color: #fff;
  box-shadow: 0 14px 24px rgba(31, 63, 122, 0.18);
}

.v2-button-ghost {
  background: rgba(247, 250, 255, 0.92);
  border-color: rgba(79, 114, 188, 0.14);
  color: #31538f;
}

.v2-button-danger {
  background: linear-gradient(135deg, #d06759, var(--v2-danger));
  color: #fff;
}

.v2-table-shell {
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: var(--v2-surface-strong);
  overflow: hidden;
}

.v2-table-meta,
.v2-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.v2-table-meta {
  border-bottom: 1px solid var(--v2-line);
}

.v2-table-status,
.v2-pagination-summary,
.v2-pagesize-control {
  color: var(--v2-muted);
  font-size: 13px;
}

.v2-table-actions {
  margin-left: 0;
  gap: 8px;
}

.v2-pagesize-control {
  justify-self: end;
}

.v2-table-wrap {
  overflow: auto;
}

.v2-table {
  min-width: 760px;
}

.v2-table thead th {
  padding: 14px 18px;
  background: rgba(236, 243, 255, 0.92);
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v2-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v2-table tbody tr:hover {
  background: rgba(239, 245, 255, 0.82);
}

.v2-table tbody tr.is-selected {
  background: rgba(228, 239, 255, 0.96);
}

.v2-status-chip,
.v2-status-pill {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.v2-empty,
.v2-error {
  margin: 18px;
  padding: 18px 20px;
  border-radius: 20px;
}

.v2-empty {
  border: 1px dashed rgba(79, 114, 188, 0.2);
  background: rgba(244, 248, 255, 0.96);
}

.v2-empty h3 {
  margin: 0 0 6px;
  color: var(--v2-text);
  font-size: 18px;
}

.v2-empty p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 14px;
}

.v2-error {
  border: 1px solid rgba(203, 79, 91, 0.16);
  background: rgba(255, 232, 236, 0.92);
  color: var(--v2-danger);
}

.v2-pagination-actions {
  justify-content: flex-end;
}

.v2-page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(238, 244, 255, 0.96);
  color: var(--v2-text);
  font-size: 14px;
  font-weight: 600;
}

.v2-utility-card {
  display: grid;
  gap: 12px;
}

.v2-admin-shortcuts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.v2-admin-shortcut {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: auto;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(79, 114, 188, 0.12);
  background: rgba(250, 252, 255, 0.96);
  color: var(--v2-text);
  text-align: left;
  box-shadow: none;
}

.v2-admin-shortcut:hover {
  transform: translateY(-1px);
  background: rgba(240, 246, 255, 0.98);
  box-shadow: none;
}

.v2-admin-shortcut strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.v2-admin-shortcut small {
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 500;
}

.v2-admin-shortcut.is-active {
  background: linear-gradient(135deg, #1f3f7a, #355ca2);
  color: #fff;
}

.v2-admin-shortcut.is-active small,
.v2-admin-shortcut.is-active .v2-label {
  color: rgba(255, 255, 255, 0.82);
}

.v2-admin-shortcut.is-active .v2-admin-shortcut-count {
  background: rgba(255, 255, 255, 0.14);
}

.v2-admin-shortcut-meta {
  margin-top: 2px;
}

.v2-detailbackdrop {
  background: rgba(240, 246, 255, 0.76);
  backdrop-filter: blur(10px);
}

.v2-detailcard {
  width: min(940px, calc(100vw - 40px));
}

.v2-formcard {
  width: min(760px, calc(100vw - 40px));
}

.v2-detail-grid {
  column-gap: 28px;
  row-gap: 12px;
}

.v2-detail-grid dt {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-detail-grid dd {
  margin: 0;
  color: var(--v2-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.48;
}

.v2-shell,
.v2-shell * {
  font-family: var(--v2-font);
}

.v2-topbar-user-copy strong,
.v2-panelhead h2,
.v2-topbar h1,
.v2-summary-grid strong,
.v2-admin-shortcut strong,
.v2-detail-grid dd,
.v2-tab.is-active,
.v2-brand-lockup-title {
  font-weight: 700;
}

.v2-record-form-grid {
  gap: 14px;
}

.v2-record-form .v2-field {
  width: 100%;
}

.v2-overlay-error {
  background: rgba(244, 248, 255, 0.84);
  backdrop-filter: blur(8px);
}

.v2-overlay-error__body {
  border-radius: 28px;
  color: var(--v2-danger);
}

@media (max-width: 1320px) {
  .v2-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .v2-topbar-side {
    width: 100%;
    justify-content: space-between;
  }

  .v2-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .v2-topbar-user {
    margin-left: auto;
  }
}

@media (max-width: 1180px) {
  .v2-workspace,
  .v2-workspace.has-utility {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .v2-shell {
    padding: 16px;
  }

  .v2-workspace,
  .v2-workspace.has-utility {
    grid-template-columns: 1fr;
  }

  .v2-sidebar {
    position: static;
  }

  .v2-sidebar-card,
  .v2-maincard {
    padding: 18px;
  }

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

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

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

  .v2-filter-panel {
    grid-template-columns: 1fr;
  }

  .v2-toolbar,
  .v2-filter-actions,
  .v2-table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .v2-toolbar .v2-button,
  .v2-filter-actions .v2-button,
  .v2-table-actions .v2-button,
  .v2-table-actions a,
  .v2-pagination-actions .v2-button {
    width: 100%;
  }

  .v2-table-meta,
  .v2-pagination {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .v2-pagesize-control {
    width: 100%;
    justify-self: stretch;
    justify-content: stretch;
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .v2-pagesize-control select {
    width: 100%;
  }

  .v2-table-wrap {
    overflow: visible;
  }

  .v2-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .v2-table thead {
    display: none;
  }

  .v2-table tbody {
    display: grid;
    gap: 10px;
  }

  .v2-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  }

  .v2-table tbody tr.is-selected {
    border-color: rgba(79, 114, 188, 0.26);
    box-shadow: 0 0 0 2px rgba(79, 114, 188, 0.08);
  }

  .v2-table tbody tr:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(238, 245, 255, 0.98));
  }

  .v2-table td {
    display: grid;
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--v2-line);
  }

  .v2-table td:first-child {
    border-top: 0;
  }

  .v2-table td::before {
    content: attr(data-label);
    color: var(--v2-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .v2-table td > * {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .v2-table td .v2-status-pill,
  .v2-table td .v2-status-chip {
    justify-self: start;
  }

  .v2-page-pill {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .v2-shell {
    padding: 12px;
  }

  .v2-topbar,
  .v2-sidebar-card,
  .v2-maincard {
    padding: 14px;
    border-radius: 22px;
  }

  .v2-brand {
    gap: 10px;
  }

  .v2-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
  }

  .v2-topbar h1 {
    font-size: 24px;
    line-height: 1.05;
  }

  .v2-brand {
    align-items: flex-start;
  }

  .v2-topbar-side {
    justify-content: stretch;
  }

  .v2-topbar-user {
    max-width: none;
    width: 100%;
    padding: 8px 10px;
    gap: 8px;
  }

  .v2-topbar-user-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 15px;
  }

  .v2-topbar-user-copy .v2-label,
  #v2-parent-meta {
    display: none;
  }

  .v2-topbar-user-copy strong {
    font-size: 15px;
  }

  .v2-topbar-user-copy small {
    font-size: 11px;
  }

  .v2-topbar-user-copy small {
    white-space: normal;
  }

  .v2-topbar-user-copy small + small::before {
    display: none;
    content: none;
    margin: 0;
  }

  .v2-content,
  .v2-layout,
  .v2-maincard,
  .v2-table-shell,
  .v2-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .v2-toolbar,
  .v2-detail-actions,
  .v2-pagination-actions {
    width: 100%;
  }

  .v2-toolbar,
  .v2-filter-actions,
  .v2-table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .v2-toolbar .v2-button,
  .v2-filter-actions .v2-button,
  .v2-table-actions .v2-button,
  .v2-table-actions a,
  .v2-detail-actions .v2-button,
  .v2-detail-actions a,
  .v2-pagination-actions .v2-button {
    width: 100%;
  }

  .v2-tabs,
  .v2-summary-grid,
  .v2-admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-sidebar-card {
    padding: 12px;
  }

  .v2-tab {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .v2-filter-grid {
    grid-template-columns: 1fr;
  }

  .v2-summary-grid article {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 10px 12px;
  }

  .v2-summary-grid article .v2-label,
  .v2-summary-grid strong {
    grid-column: 1;
  }

  .v2-summary-grid article .v2-label {
    grid-row: 1;
  }

  .v2-summary-grid strong {
    grid-row: 2;
    text-align: left;
  }

  .v2-pagesize-control {
    width: 100%;
    justify-self: stretch;
    justify-content: stretch;
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .v2-pagesize-control select {
    width: 100%;
  }

  .v2-table-wrap {
    overflow: visible;
  }

  .v2-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .v2-table thead {
    display: none;
  }

  .v2-table tbody {
    display: grid;
    gap: 10px;
  }

  .v2-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  }

  .v2-table tbody tr.is-selected {
    border-color: rgba(79, 114, 188, 0.26);
    box-shadow: 0 0 0 2px rgba(79, 114, 188, 0.08);
  }

  .v2-table tbody tr:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(238, 245, 255, 0.98));
  }

  .v2-table td {
    display: grid;
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--v2-line);
  }

  .v2-table td:first-child {
    border-top: 0;
  }

  .v2-table td::before {
    content: attr(data-label);
    color: var(--v2-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .v2-table td > * {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .v2-table td .v2-status-pill,
  .v2-table td .v2-status-chip {
    justify-self: start;
  }

  .v2-page-pill {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .v2-topbar h1 {
    font-size: 22px;
  }

  .v2-topbar-user {
    align-items: flex-start;
  }

  .v2-topbar-user-copy {
    display: block;
  }

  .v2-topbar-user-copy strong,
  .v2-topbar-user-copy small {
    display: block;
    width: 100%;
  }

  .v2-topbar-user-copy small {
    margin-top: 2px;
  }

  .v2-summary-grid article {
    padding: 10px 12px;
  }

  .v2-table-meta,
  .v2-pagination {
    padding: 10px 12px;
  }

  .v2-table tbody {
    gap: 8px;
  }

  .v2-table td {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
  }

  .v2-table td::before {
    display: block;
  }
}

@media (max-width: 340px) {
  .v2-toolbar,
  .v2-tabs,
  .v2-summary-grid,
  .v2-admin-shortcuts {
    grid-template-columns: 1fr;
  }
}

.v2-public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.v2-public-card {
  width: min(1120px, 100%);
  border: 1px solid rgba(79, 114, 188, 0.14);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--v2-shadow-lg);
}

.v2-public-hero,
.v2-auth-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 36px;
}

.v2-public-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #1f3f7a, #5f95d8);
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(31, 63, 122, 0.22);
}

.v2-public-copy {
  min-width: 0;
}

.v2-public-eyebrow {
  margin-bottom: 10px;
  color: var(--v2-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v2-public-copy h1 {
  margin: 0;
  color: var(--v2-text);
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.v2-public-copy p {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--v2-muted);
  font-size: 20px;
  line-height: 1.5;
}

.v2-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.v2-auth-page .v2-public-card {
  width: min(620px, 100%);
}

.v2-auth-card {
  grid-template-columns: 1fr;
}

.v2-auth-card .v2-public-mark {
  margin-bottom: 8px;
}

.v2-auth-card .v2-public-copy h1 {
  max-width: none;
  font-size: clamp(34px, 3vw, 52px);
}

.v2-auth-card .v2-public-copy p {
  max-width: none;
  font-size: 17px;
}

.v2-auth-form {
  display: grid;
  gap: 14px;
}

.v2-auth-form .v2-error {
  margin: 0;
}

.v2-auth-form .v2-field {
  width: 100%;
}

.v2-auth-form .v2-field input {
  min-height: 48px;
}

@media (max-width: 720px) {
  .v2-public-shell {
    padding: 16px;
  }

  .v2-public-hero,
  .v2-auth-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .v2-public-copy h1 {
    max-width: none;
    font-size: 38px;
  }

  .v2-public-copy p {
    font-size: 17px;
  }

  .v2-public-actions {
    flex-direction: column;
  }

  .v2-public-actions .v2-button {
    width: 100%;
  }
}

#wqrbody.modal,
#choosecam.modal {
  max-width: min(92vw, 560px);
  width: min(92vw, 560px);
  padding: 20px;
  border: 1px solid rgba(74, 108, 177, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(24, 42, 84, 0.18);
  background: #ffffff;
}

#choosecam.modal {
  max-width: min(92vw, 420px);
}

#wqrbody > div:first-child,
#choosecam > div:first-child {
  padding: 0 0 16px;
  color: var(--v2-ink);
  font-size: 20px;
  font-weight: 700;
}

#wqroutdiv {
  width: 100%;
  min-height: min(70vh, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1f4a 0%, #132a62 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#wqroutdiv video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f1f4a;
}

#wqrresult {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 108, 177, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  color: var(--v2-ink);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

#videodev {
  display: grid !important;
  gap: 10px;
  padding: 0 !important;
}

.v2-camera-choice {
  width: 100%;
  justify-content: flex-start;
}

.v2-camera-choice.is-active {
  border-color: rgba(49, 93, 177, 0.32);
  background: #eef4ff;
  color: #244c96;
}

@media (max-width: 720px) {
  #wqrbody.modal,
  #choosecam.modal {
    width: min(94vw, 94vw);
    padding: 16px;
    border-radius: 20px;
  }

  #wqroutdiv {
    min-height: 48vh;
  }
}
