:root {
  color-scheme: light;
  --shell: #2D3E50;
  --account-surface: #3D5166;
  --text: #2C2C2C;
  --heading: #33475B;
  --support: #516F90;
  --surface: #FFFFFF;
  --category-surface: #FAFBFC;
  --workspace-border: #CBD6E2;
  --card-border: #DFE3EB;
  --teal-surface: #E5F5F8;
  --teal-border: #B8E0E6;
  --teal-text: #004F4C;
  --workspace-canvas: #EDF1F5;
  --focus-ring: #73C3CF;
  --font-sans: "Lexend Deca", "Helvetica Neue", system-ui, sans-serif;
  --font-size-base: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --control-height-compact: 36px;
  --control-height: 40px;
  --radius-control: 999px;
  --radius-card: 10px;
  --radius-workspace: 12px;
  --shadow-surface: 0 4px 16px rgb(35 56 77 / 5%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  font-size: var(--font-size-base);
  position: relative;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--workspace-canvas);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-pending .app-shell {
  visibility: hidden;
}

.workspace-preparing {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--heading);
  background: #FFFFFF;
  text-align: center;
}

.workspace-preparing__content {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  flex-direction: column;
}

.workspace-preparing__logo {
  width: 112px;
  height: 112px;
  fill: none;
  stroke: var(--heading);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-preparing h1 {
  margin: 28px 0 12px;
  color: var(--heading);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.workspace-preparing__status {
  margin: 0;
  color: var(--support);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.workspace-preparing__version {
  margin: 12px 0 0;
  color: var(--heading);
  font-size: 13px;
}

.workspace-preparing__progress {
  width: min(320px, 78vw);
  height: 6px;
  overflow: hidden;
  margin-top: 32px;
  border-radius: 999px;
  background: #DFE6F0;
}

.workspace-preparing__progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--heading), var(--focus-ring));
  animation: workspace-progress 1.25s ease-in-out infinite alternate;
}

.workspace-preparing--goodbye .workspace-preparing__progress span {
  width: 100%;
  animation: workspace-goodbye-progress 1500ms ease-out forwards;
}

@keyframes workspace-progress {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(560%);
  }
}

@keyframes workspace-goodbye-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.section-nav {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 56px;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: #FFFFFF;
  background: var(--shell);
}

.section-nav__brand {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.section-nav__items {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-nav__link {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #E8EEF4;
  transition: color 160ms ease, background-color 160ms ease;
}

.section-nav__link:hover,
.section-nav__link:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.section-nav__link.is-active {
  color: #FFFFFF;
  background: var(--account-surface);
}

.section-nav__link svg,
.mobile-menu-toggle svg,
.global-search svg,
.workspace-chip__chevron,
.report-search svg,
.catalog-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-nav__tooltip {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: calc(100% + 10px);
  padding: 7px 10px;
  border-radius: 6px;
  color: #FFFFFF;
  background: var(--account-surface);
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.section-nav__link:hover .section-nav__tooltip,
.section-nav__link:focus-visible .section-nav__tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.app-main {
  min-height: 100vh;
  margin-left: 56px;
  background: var(--shell);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #FFFFFF;
  background: var(--shell);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #FFFFFF;
  background: transparent;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.global-search {
  display: flex;
  width: min(420px, 46vw);
  min-width: 220px;
  height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #E8EEF4;
  background: var(--account-surface);
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.global-search:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #465D74;
}

.global-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.global-search__label {
  overflow: hidden;
  flex: 1;
  color: #E8EEF4;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search kbd {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  color: #DCE5ED;
  background: rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 11px;
}

.topbar__spacer {
  flex: 1;
}

.workspace-chip {
  display: inline-flex;
  max-width: min(360px, 35vw);
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--account-surface);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-chip--button {
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.workspace-chip--button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: #465D74;
}

.workspace-chip--button:disabled {
  cursor: wait;
}

.workspace-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-chip--link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #465D74;
}

.topbar__account {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.account-menu-trigger {
  gap: 8px;
  padding-right: 9px;
}

.account-menu-trigger .workspace-chip__chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.account-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(288px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.account-menu__identity {
  min-width: 0;
  padding: 14px 16px 13px;
}

.account-menu__person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.account-menu__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--workspace-border);
  border-radius: 50%;
  color: var(--heading);
  background: #E8EEF3;
  font-size: 15px;
  font-weight: 600;
}

.account-menu__copy {
  min-width: 0;
}

.account-menu__name,
.account-menu__email {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
}

.account-menu__name {
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.account-menu__email {
  margin-top: 3px;
  color: var(--support);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.account-menu__profile-placeholder {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin: 8px auto 0;
  padding: 4px 8px;
  color: var(--teal-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-menu__profile-placeholder:hover {
  color: var(--teal-text);
}

.account-menu__divider {
  height: 1px;
  background: var(--workspace-border);
}

.account-menu__account {
  padding: 12px 16px 13px;
}

.account-menu__section-label {
  margin: 0 0 4px;
  color: var(--support);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.account-menu__organization {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-menu__organization-name,
.account-menu__organization-detail {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__organization-name {
  max-width: 220px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.account-menu__organization-detail {
  margin-top: 1px;
  color: var(--support);
  font-size: 12px;
  line-height: 1.35;
}

.account-menu__organization svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--heading);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-menu__news {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--heading);
  font-size: 13px;
}

.account-menu__news svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: var(--support);
  stroke: var(--support);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.account-menu__news-count {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 11px;
  font-weight: 600;
}

.account-menu__sign-out {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  color: var(--teal-text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background-color 160ms ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-menu__sign-out:hover:not(:disabled) {
  background: var(--teal-surface);
}

.account-menu__sign-out:disabled {
  cursor: wait;
  opacity: 0.7;
}

.workspace-chip__avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--heading);
  background: #B9C9D4;
  font-size: 11px;
  font-weight: 600;
}

.workspace-chip__chevron {
  width: 16px;
  height: 16px;
  color: #DCE5ED;
}

.app-workspace {
  display: flex;
  min-height: calc(100vh - 56px);
  padding: 20px;
  background: var(--workspace-canvas);
  border-radius: 12px 12px 0 0;
}

.app-main-content {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
}

.reports-board {
  display: flex;
  min-height: calc(100vh - 96px);
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: var(--surface);
}

.reports-header {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--workspace-border);
  background: #FFFFFF;
}

.reports-header__copy {
  min-width: 220px;
}

.reports-header__copy h1 {
  margin: 0 0 5px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.reports-header__copy p {
  max-width: 390px;
  margin: 0;
  color: var(--support);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.reports-header__controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.report-search {
  display: flex;
  width: clamp(190px, 26vw, 280px);
  height: 48px;
  flex: 0 1 280px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #A9B5C0;
  border-radius: 999px;
  color: var(--support);
  background: #FFFFFF;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.report-search:focus-within {
  border-color: #7CAEB9;
  box-shadow: 0 0 0 3px rgba(115, 195, 207, 0.22);
}

.report-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.report-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--heading);
  background: transparent;
  font-size: 14px;
}

.report-search input::placeholder {
  color: #647B91;
  opacity: 1;
}

.report-search input:focus-visible {
  outline: 0;
}

.catalog-action {
  display: inline-flex;
  min-width: 104px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  color: var(--heading);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.catalog-action:hover:not(:disabled) {
  border-color: #9CB0C2;
  background: #F8FAFC;
}

.catalog-action:disabled {
  color: #617990;
  background: #FCFDFE;
}

.catalog-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.reports-catalog {
  display: flex;
  min-height: 0;
  flex: 1;
}

.category-panel {
  width: 240px;
  flex: 0 0 240px;
  padding: 18px 16px;
  border-right: 1px solid #D8E0E8;
  background: var(--category-surface);
}

.category-panel h2 {
  margin: 0 8px 12px;
  color: #516F90;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-filter {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--heading);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.category-filter:hover {
  background: #F0F4F7;
}

.category-filter.is-selected {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
  font-weight: 600;
}

.category-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--heading);
  background: #E8EEF1;
  font-size: 11px;
  font-weight: 600;
}

.category-filter.is-selected .category-count {
  color: var(--teal-text);
  background: #CDE8EC;
}

.reports-content {
  min-width: 0;
  flex: 1;
  padding: 20px;
  background: #FFFFFF;
}

.auth-panel .reports-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.auth-panel .reports-content p {
  margin: 0;
}

.auth-error {
  max-width: 680px;
  padding: 12px 14px;
  border: 1px solid #CBD6E2;
  border-radius: 10px;
  color: var(--heading);
  background: var(--category-surface);
  font-size: 13px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.report-card {
  display: flex;
  min-height: 212px;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.report-card__topline {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 2px 11px;
  border-radius: 999px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.report-card__type {
  overflow: hidden;
  color: var(--support);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-card h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.report-card p {
  margin: 0;
  color: var(--support);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.report-card__footer {
  display: flex;
  min-height: 30px;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #EDF1F4;
  color: var(--support);
  font-size: 11px;
  line-height: 1.4;
}

.reports-results,
.reports-empty {
  margin: 16px 2px 0;
  color: var(--support);
  font-size: 12px;
  line-height: 1.5;
}

.reports-empty {
  padding: 20px;
  border: 1px dashed var(--workspace-border);
  border-radius: 10px;
  text-align: center;
}

.artworks-page {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 96px);
  flex-direction: column;
  gap: 0;
}

.artworks-page-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.report-workbench__header.artworks-page-header {
  justify-content: space-between;
  gap: 20px;
}

.artworks-page-header__copy {
  min-width: 0;
}

.artworks-page-header__copy h1 {
  margin: 0 0 5px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.artworks-page-header__copy p {
  margin: 0;
  color: var(--support);
  font-size: 14px;
  line-height: 1.5;
}

.artworks-view-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.artwork-filter-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.artwork-filter-wrap {
  position: relative;
}

.artwork-filter-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--workspace-border);
  border-radius: 50%;
  color: var(--heading);
  background: var(--surface);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.artwork-filter-toggle:hover,
.artwork-filter-toggle[aria-expanded="true"] {
  border-color: var(--teal-border);
  background: var(--teal-surface);
}

.artwork-filter-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.artwork-filter-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(480px, calc(100vw - 32px));
  gap: 0;
  padding: 0 0 10px;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.artwork-filter-panel[hidden] {
  display: none;
}

.artwork-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--workspace-border);
}

.artwork-filter-panel__header p {
  margin: 0 0 3px;
  color: var(--support);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.artwork-filter-panel__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
}

.artwork-filter-panel__close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--support);
  background: transparent;
}

.artwork-filter-panel__close:hover {
  color: var(--heading);
  background: var(--workspace-canvas);
}

.artwork-filter-panel__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.artwork-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 12px 2px;
}

.artwork-filter-option {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  color: var(--heading);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.artwork-filter-option:hover {
  border-color: var(--teal-border);
  background: var(--workspace-canvas);
}

.artwork-filter-option.is-selected {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
  font-weight: 600;
}

.artwork-filter-option:focus-visible,
.artwork-filter-panel__close:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.artworks-board {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.artworks-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
  border-bottom: 1px solid var(--workspace-border);
  background: var(--surface);
}

.artworks-search {
  width: min(280px, 100%);
  flex: 0 1 280px;
}

.artworks-content {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.artworks-results {
  margin: 0 0 12px;
  color: var(--support);
  font-size: 12px;
  line-height: 1.5;
}

.artworks-results--empty {
  display: flex;
  min-height: 190px;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.artworks-feedback {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  color: var(--heading);
  background: var(--category-surface);
  font-size: 13px;
  line-height: 1.5;
}

.artworks-feedback--success {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.artworks-feedback--error {
  border-color: #E0A5A5;
  color: #842B34;
  background: #FFF2F1;
}

.artworks-empty {
  margin: 12px 0 0;
  padding: 20px;
  border: 1px dashed var(--workspace-border);
  border-radius: 10px;
  color: var(--support);
  background: var(--category-surface);
  font-size: 13px;
  text-align: center;
}

.artworks-content > .artworks-empty:not([hidden]) {
  display: flex;
  min-height: 190px;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
}

.artwork-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--support);
  font-size: 12px;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.artwork-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.artwork-card:hover,
.artwork-card:focus-visible {
  border-color: var(--focus-ring);
  box-shadow: 0 3px 12px rgba(15, 35, 51, 0.1);
}

.artwork-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.artwork-card__image {
  display: flex;
  height: auto;
  min-height: 136px;
  max-height: 160px;
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0 12px;
  aspect-ratio: 1.9 / 1;
  background: var(--workspace-canvas);
}

.artwork-card__image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-image-placeholder-text {
  align-self: center;
  color: var(--support);
  font-size: 12px;
}

.artwork-image-placeholder {
  display: flex;
  width: auto;
  min-width: 0;
  height: 100%;
  max-width: 78%;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 9px 6px;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  color: #2C2C2C;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-family: Arial, sans-serif;
}

.artwork-image-placeholder__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--card-border);
}

.artwork-image-placeholder__quantity {
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.artwork-image-placeholder__quantity small {
  font-size: 6px;
  font-weight: 600;
}

.artwork-image-placeholder__product {
  max-width: 66px;
  overflow: hidden;
  padding-top: 2px;
  font-size: 6px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-image-placeholder__title {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.2;
  text-transform: uppercase;
}

.artwork-image-placeholder__subtitle {
  margin-top: 2px;
  color: var(--support);
  font-size: 6px;
  line-height: 1.2;
}

.artwork-image-placeholder__specs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  font-size: 6px;
  line-height: 1.2;
}

.artwork-image-placeholder__specs span {
  display: grid;
  gap: 2px;
}

.artwork-image-placeholder__specs small {
  font-size: 5px;
  text-transform: uppercase;
}

.artwork-image-placeholder__specs b {
  font-size: 6px;
}

.artwork-image-placeholder__drawing {
  width: 100%;
  height: 25px;
  margin-top: 5px;
  fill: none;
  stroke: #2C2C2C;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

.artwork-image-placeholder__lot {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  font-size: 5px;
  font-weight: 600;
}

.artwork-image-placeholder__barcode {
  width: 50%;
  height: 10px;
  margin-top: 3px;
  background: repeating-linear-gradient(90deg, #2C2C2C 0 1px, transparent 1px 3px, #2C2C2C 3px 4px, transparent 4px 6px);
}

.artwork-image-placeholder__footnote {
  margin-top: 3px;
  font-size: 5px;
  letter-spacing: 0.04em;
}

.artwork-card__content {
  display: flex;
  min-width: 0;
  min-height: 228px;
  flex: 1;
  flex-direction: column;
  padding: 12px;
}

.artwork-card__lot-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.artwork-card__lot-row h2 {
  overflow: hidden;
  margin: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-status {
  display: inline-flex;
  min-height: 23px;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--support);
  background: var(--workspace-canvas);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.artwork-card__type,
.artwork-card__sales-order {
  margin: 10px 0 0;
  color: var(--support);
  font-size: 12px;
  line-height: 1.4;
}

.artwork-card__sales-order strong {
  color: var(--heading);
  font-weight: 600;
}

.artwork-customer-list {
  display: flex;
  min-height: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}

.artwork-customer-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  overflow: hidden;
  padding: 3px 9px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-customer-chip--more {
  flex: 0 0 auto;
}

.artwork-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.artwork-review-form {
  display: inline-flex;
  margin: 0;
}

.artwork-preview-button {
  display: grid;
  width: 42px;
  height: 38px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--account-surface);
  border-radius: 8px;
  color: #FFFFFF;
  background: var(--account-surface);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.artwork-preview-button:hover {
  border-color: var(--shell);
  background: var(--shell);
}

.artwork-preview-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.artwork-approve-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 12px;
  font-weight: 600;
}

.artwork-approve-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.artwork-details-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 840px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.24);
}

.artwork-details-dialog::backdrop {
  background: rgba(24, 39, 52, 0.52);
}

.artwork-details-dialog__surface {
  display: flex;
  max-height: min(90vh, 840px);
  flex-direction: column;
}

.artwork-details-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--workspace-border);
}

.artwork-details-dialog__header h2 {
  overflow: hidden;
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-details-dialog__close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--support);
  background: transparent;
  font-size: 14px;
}

.artwork-details-dialog__close:hover {
  color: var(--heading);
  background: var(--workspace-canvas);
}

.artwork-details-dialog__body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px;
  overflow: auto;
  padding: 24px;
}

.artwork-details-dialog__image {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.artwork-details-dialog__image > img {
  display: block;
  width: min(100%, 420px);
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--workspace-canvas);
}

.artwork-details-dialog__image .artwork-image-placeholder {
  width: min(100%, 420px);
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 24px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--card-border);
}

.artwork-details-dialog__image .artwork-image-placeholder__quantity {
  font-size: 48px;
}

.artwork-details-dialog__image .artwork-image-placeholder__quantity small {
  font-size: 16px;
}

.artwork-details-dialog__image .artwork-image-placeholder__product {
  max-width: 180px;
  font-size: 15px;
}

.artwork-details-dialog__image .artwork-image-placeholder__title {
  margin-top: 10px;
  font-size: 18px;
}

.artwork-details-dialog__image .artwork-image-placeholder__subtitle {
  font-size: 12px;
}

.artwork-details-dialog__image .artwork-image-placeholder__specs {
  margin-top: 14px;
  font-size: 11px;
}

.artwork-details-dialog__image .artwork-image-placeholder__specs small {
  font-size: 9px;
}

.artwork-details-dialog__image .artwork-image-placeholder__specs b {
  font-size: 10px;
}

.artwork-details-dialog__image .artwork-image-placeholder__drawing {
  height: 68px;
  margin-top: 12px;
}

.artwork-details-dialog__image .artwork-image-placeholder__lot {
  font-size: 9px;
}

.artwork-details-dialog__image .artwork-image-placeholder__barcode {
  height: 18px;
}

.artwork-details-dialog__image .artwork-image-placeholder__footnote {
  font-size: 9px;
}

.artwork-details-dialog__information {
  min-width: 0;
}

.artwork-details-dialog__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.artwork-details-dialog__fields dt {
  color: var(--support);
  font-size: 12px;
  line-height: 1.4;
}

.artwork-details-dialog__fields dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.artwork-details-dialog__validation {
  margin-top: 18px;
}

.artwork-details-dialog__validation h3 {
  margin: 0 0 7px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.artwork-details-dialog__validation pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  color: var(--support);
  background: var(--workspace-canvas);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.artwork-details-dialog__validation[hidden],
.artwork-details-dialog__actions[hidden] {
  display: none !important;
}

.artwork-details-dialog__lists {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.artwork-details-dialog__lists section {
  min-width: 0;
}

.artwork-details-dialog__lists h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.artwork-details-dialog__lists ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-canvas);
  list-style: none;
}

.artwork-details-dialog__lists li {
  overflow-wrap: anywhere;
  color: var(--support);
  font-size: 14px;
  line-height: 1.5;
}

.artwork-details-dialog__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.artwork-reject-form {
  display: grid;
  width: 100%;
  gap: 8px;
}

.artwork-reject-form label {
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
}

.artwork-reject-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px 11px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}

.artwork-reject-form textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.artwork-reject-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #E0A5A5;
  border-radius: 8px;
  color: #842B34;
  background: #FFF2F1;
  font-size: 12px;
  font-weight: 600;
}

.artworks-board .artwork-grid > [hidden] {
  display: none !important;
}

.artwork-details-dialog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  border-top: 1px solid var(--workspace-border);
}

.artwork-details-dialog__close--secondary {
  border: 1px solid var(--workspace-border);
  background: var(--surface);
}

@media (max-width: 760px) {
  .artwork-details-dialog {
    width: min(640px, calc(100vw - 24px));
    max-height: 92vh;
  }

  .artwork-details-dialog__surface {
    max-height: 92vh;
  }

  .artwork-details-dialog__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  .artwork-details-dialog__image .artwork-image-placeholder {
    width: min(100%, 360px);
  }
}

@media (max-width: 420px) {
  .artwork-details-dialog__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.artworks-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.artwork-upload-back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.artwork-upload-back-link:hover {
  border-color: var(--focus-ring);
  color: var(--teal-text);
  background: var(--workspace-canvas);
}

.artwork-upload-back-link:focus-visible,
.artwork-upload-button:focus-visible,
.artwork-upload-cancel:focus-visible,
.artwork-upload-remove:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.artwork-upload-page {
  gap: 14px;
}

.artwork-upload-page__header {
  align-items: flex-start;
}

.artwork-upload-back-link {
  flex: 0 0 auto;
  border-color: var(--workspace-border);
  color: var(--heading);
  background: var(--surface);
}

.artwork-upload-back-link:hover {
  color: var(--heading);
  background: var(--category-surface);
}

.artwork-upload-board {
  display: flex;
  min-width: 0;
  min-height: min(720px, calc(100vh - 190px));
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.artwork-upload-storage-status {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.artwork-upload-storage-status--pending {
  border-bottom-color: var(--workspace-border);
  color: var(--heading);
  background: var(--category-surface);
}

.artwork-upload-storage-status svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.artwork-upload-storage-status p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.artwork-upload-progress {
  padding: 20px 24px;
  border-bottom: 1px solid var(--workspace-border);
}

.artwork-upload-progress ol {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.artwork-upload-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--support);
}

.artwork-upload-progress__number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--workspace-border);
  border-radius: 50%;
  color: var(--support);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.artwork-upload-progress li > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.artwork-upload-progress strong {
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
}

.artwork-upload-progress small {
  color: var(--support);
  font-size: 11px;
}

.artwork-upload-progress li.is-current .artwork-upload-progress__number,
.artwork-upload-progress li.is-complete .artwork-upload-progress__number {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.artwork-upload-progress li.is-current strong,
.artwork-upload-progress li.is-complete strong {
  color: var(--teal-text);
}

.artwork-upload-stage {
  min-width: 0;
  flex: 1;
  padding: 24px;
}

.artwork-upload-step-panel[hidden],
.artwork-upload-progress[hidden],
.artwork-upload-stage[hidden],
.artwork-upload-results[hidden],
.artwork-upload-actions[hidden] {
  display: none;
}

.artwork-upload-step-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.artwork-upload-step-heading h2 {
  margin: 0 0 5px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.artwork-upload-step-heading p {
  margin: 0;
  color: var(--support);
  font-size: 13px;
  line-height: 1.5;
}

.artwork-upload-count {
  flex: 0 0 auto;
  white-space: nowrap;
}

.artwork-upload-dropzone {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 24px;
  border: 1px dashed var(--workspace-border);
  border-radius: 12px;
  color: var(--heading);
  background: var(--category-surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.artwork-upload-dropzone:hover,
.artwork-upload-dropzone.is-dragging,
.artwork-upload-dropzone:focus-within {
  border-color: var(--focus-ring);
  background: var(--teal-surface);
}

.artwork-upload-file-input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.artwork-upload-dropzone__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--teal-border);
  border-radius: 50%;
  color: var(--teal-text);
  background: var(--surface);
}

.artwork-upload-dropzone__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.artwork-upload-dropzone__title {
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.artwork-upload-dropzone__hint {
  color: var(--support);
  font-size: 11px;
  line-height: 1.5;
}

.artwork-upload-feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  color: var(--heading);
  background: var(--category-surface);
  font-size: 12px;
  line-height: 1.5;
}

.artwork-upload-selected,
.artwork-upload-classification-list,
.artwork-upload-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.artwork-upload-file-card,
.artwork-upload-classification-card,
.artwork-upload-review-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.artwork-upload-file-card__image,
.artwork-upload-classification-card__image,
.artwork-upload-review-card__image {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: var(--workspace-canvas);
  object-fit: contain;
}

.artwork-upload-file-card__details,
.artwork-upload-classification-card__details,
.artwork-upload-review-card__details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.artwork-upload-file-card__details strong,
.artwork-upload-classification-card__details strong,
.artwork-upload-review-card__details strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-upload-file-card__details span,
.artwork-upload-classification-card__details span {
  color: var(--support);
  font-size: 11px;
}

.artwork-upload-remove {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--support);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.artwork-upload-remove:hover {
  color: var(--heading);
  background: var(--workspace-canvas);
}

.artwork-upload-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.artwork-upload-classification-card {
  align-items: flex-start;
}

.artwork-upload-classification-card__image {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
}

.artwork-upload-validation-overview {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  color: var(--heading);
  background: var(--category-surface);
}

.artwork-upload-validation-overview[hidden] {
  display: none;
}

.artwork-upload-validation-overview--pending {
  border-color: var(--teal-border);
  background: var(--teal-surface);
}

.artwork-upload-validation-overview--ready {
  border-color: var(--teal-border);
  background: var(--surface);
}

.artwork-upload-validation-overview--attention {
  border-color: var(--warning-border, var(--workspace-border));
  background: var(--surface);
}

.artwork-upload-validation-overview__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artwork-upload-validation-overview__title {
  font-size: 13px;
  font-weight: 650;
}

.artwork-upload-validation-overview__description {
  margin: 4px 0 0;
  color: var(--support);
  font-size: 12px;
  line-height: 1.5;
}

.artwork-upload-validation-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid var(--teal-border);
  border-top-color: var(--teal-text);
  border-radius: 50%;
  animation: artwork-validation-spin 800ms linear infinite;
}

@keyframes artwork-validation-spin {
  to { transform: rotate(360deg); }
}

.artwork-upload-validation-overview__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.artwork-upload-validation-metric {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  color: var(--support);
  background: var(--surface);
  font-size: 11px;
}

.artwork-upload-validation-metric strong {
  color: var(--heading);
  font-size: 12px;
}

.artwork-upload-validation-metric--ready strong,
.artwork-upload-validation-metric--manual strong {
  color: var(--teal-text);
}

.artwork-upload-validation-metric--attention strong {
  color: var(--danger-text, var(--heading));
}

.artwork-upload-validation-overview__attention-list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--workspace-border);
  font-size: 11px;
}

.artwork-upload-validation-overview__attention-list > strong {
  flex: 0 0 auto;
}

.artwork-upload-validation-overview__attention-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  color: var(--support);
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .artwork-upload-validation-spinner {
    animation: none;
  }
}

.artwork-upload-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.artwork-upload-type-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.artwork-upload-type-chip--unmatched {
  border-color: var(--workspace-border);
  color: var(--support);
  background: var(--category-surface);
}

.artwork-upload-variant-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--support);
  font-size: 11px;
}

.artwork-upload-variant-picker select {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--workspace-border);
  border-radius: 7px;
  color: var(--heading);
  background: var(--category-surface);
  font: inherit;
}

.artwork-upload-review-card {
  min-height: 86px;
}

.artwork-upload-storage-note {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  color: var(--support);
  background: var(--category-surface);
  font-size: 11px;
  line-height: 1.5;
}

.artwork-upload-actions {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  border-top: 1px solid var(--workspace-border);
  background: var(--category-surface);
}

.artwork-upload-cancel {
  color: var(--support);
  font-size: 12px;
  text-decoration: none;
}

.artwork-upload-cancel:hover {
  color: var(--heading);
  text-decoration: underline;
}

.artwork-upload-actions__navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artwork-upload-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.artwork-upload-button--primary {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.artwork-upload-button--primary:hover:not(:disabled) {
  border-color: var(--focus-ring);
  background: var(--workspace-canvas);
}

.artwork-upload-button--secondary {
  color: var(--heading);
  background: var(--surface);
}

.artwork-upload-button--secondary:hover:not(:disabled) {
  background: var(--workspace-canvas);
}

.artwork-upload-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.artwork-upload-results {
  padding: 24px;
}

.artwork-upload-results h2 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
}

.artwork-upload-results p {
  margin: 0 0 16px;
  color: var(--support);
  font-size: 13px;
  line-height: 1.5;
}

.artwork-upload-results ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.artwork-upload-results li {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--support);
  background: var(--surface);
  font-size: 12px;
}

.artwork-upload-results li strong {
  overflow: hidden;
  color: var(--heading);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-upload-results li span {
  flex: 0 0 auto;
}

.artwork-upload-results li.is-failed {
  border-color: var(--workspace-border);
  background: var(--category-surface);
}

.artwork-validation-result {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  gap: 7px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  color: var(--heading);
  background: var(--category-surface);
  font-size: 12px;
  line-height: 1.5;
}

.artwork-validation-result--pass {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.artwork-validation-result--fail,
.artwork-validation-result--error {
  border-color: #E0A5A5;
  color: #842B34;
  background: #FFF2F1;
}

.artwork-validation-result--review,
.artwork-validation-result--not_run {
  border-color: var(--workspace-border);
  color: var(--heading);
  background: var(--category-surface);
}

.artwork-validation-result > strong {
  max-width: none;
  overflow: visible;
  font-size: 12px;
  font-weight: 700;
  text-overflow: clip;
  white-space: normal;
}

.artwork-validation-result p {
  margin: 0;
}

.artwork-validation-result details {
  min-width: 0;
  padding-top: 5px;
  border-top: 1px solid currentColor;
}

.artwork-validation-result summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
}

.artwork-validation-result details ul,
.artwork-validation-warnings {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.artwork-validation-field {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.75);
}

.artwork-validation-field strong,
.artwork-validation-field span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.artwork-validation-field strong {
  font-weight: 600;
}

.artwork-validation-field--pass > span:last-child {
  color: var(--teal-text);
  font-weight: 700;
}

.artwork-validation-field--fail > span:last-child {
  color: #842B34;
  font-weight: 700;
}

.artwork-validation-warnings {
  padding-left: 18px;
  list-style: disc;
}

#artwork-upload-retry-validation[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .artworks-page-header {
    align-items: flex-start;
  }

  .report-workbench__header.artworks-page-header {
    gap: 12px;
  }

  .artworks-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .artwork-upload-page__header {
    align-items: flex-start;
  }

  .artwork-upload-stage {
    padding: 18px;
  }

  .artwork-upload-progress {
    padding: 16px 18px;
  }

  .artwork-upload-progress ol {
    gap: 8px;
  }

  .artwork-upload-progress li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .artwork-upload-actions {
    padding: 12px 18px;
  }
}

@media (max-width: 580px) {
  .artworks-page-header {
    flex-direction: column;
    gap: 12px;
  }

  .artworks-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .artwork-upload-page__header {
    flex-direction: row;
  }

  .artwork-upload-back-link {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .artwork-upload-selected,
  .artwork-upload-classification-list,
  .artwork-upload-review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .artwork-validation-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .artwork-upload-step-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .artwork-upload-dropzone {
    min-height: 168px;
    padding: 18px 13px;
  }

  .artwork-upload-storage-status {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .artwork-upload-results {
    padding: 18px;
  }

  .artwork-upload-results li {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .artwork-upload-progress ol {
    gap: 6px;
  }

  .artwork-upload-progress strong {
    font-size: 11px;
  }

  .artwork-upload-progress small {
    font-size: 10px;
  }

  .artwork-upload-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .artwork-upload-actions__navigation {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .artwork-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1550px) {
  .artwork-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2000px) {
  .artwork-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.reports-results[hidden],
.reports-empty[hidden] {
  display: none;
}

.nav-backdrop {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .reports-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .reports-header__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .report-search {
    width: auto;
    flex: 1 1 220px;
  }
}

@media (max-width: 700px) {
  .section-nav {
    z-index: 50;
    width: 248px;
    align-items: stretch;
    padding: 12px;
    box-shadow: 12px 0 32px rgba(16, 35, 51, 0.18);
    transform: translateX(-110%);
    transition: transform 200ms ease;
  }

  body.navigation-open .section-nav {
    transform: translateX(0);
  }

  .section-nav__brand {
    width: 100%;
    justify-content: flex-start;
    margin: 0 0 18px;
    padding-left: 4px;
  }

  .section-nav__brand::after {
    margin-left: 10px;
    color: #FFFFFF;
    content: "Work Portal";
    font-size: 13px;
    font-weight: 600;
  }

  .section-nav__items {
    align-items: stretch;
    gap: 6px;
  }

  .section-nav__link {
    display: flex;
    width: 100%;
    min-height: 44px;
    height: auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 10px;
    border-radius: 9px;
  }

  .section-nav__link.is-active {
    border: 1px solid rgba(184, 224, 230, 0.45);
    background: rgba(61, 81, 102, 0.95);
  }

  .section-nav__tooltip {
    position: static;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: 13px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    background: rgba(24, 39, 52, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  body.navigation-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    margin-left: 0;
  }

  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .global-search {
    width: auto;
    min-width: 0;
    max-width: 420px;
    flex: 1;
  }

  .workspace-chip {
    min-height: 34px;
    gap: 0;
    padding: 4px;
  }

  .workspace-chip__label,
  .workspace-chip__chevron {
    display: none;
  }

  .account-menu-trigger {
    gap: 5px;
    padding-right: 5px;
  }

  .account-menu-trigger .workspace-chip__chevron {
    display: block;
  }

  .app-workspace {
    min-height: calc(100vh - 56px);
    padding: 14px;
  }

  .reports-board {
    min-height: calc(100vh - 84px);
  }

  .reports-header {
    gap: 14px;
    padding: 16px;
  }

  .reports-header__copy {
    min-width: 0;
  }

  .reports-header__copy p {
    max-width: 100%;
  }

  .reports-header__controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .report-search {
    width: 100%;
    height: 44px;
    flex: 1 0 100%;
  }

  .catalog-action {
    min-width: 0;
    min-height: 40px;
    flex: 1;
  }

  .reports-catalog {
    flex-direction: column;
  }

  .category-panel {
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid #D8E0E8;
  }

  .category-panel h2 {
    margin: 0 4px 8px;
  }

  .category-list {
    width: 100%;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 5px;
    scrollbar-color: #AABBC7 #EEF2F5;
    scrollbar-width: thin;
  }

  .category-filter {
    width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    gap: 10px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .category-count {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .reports-content {
    padding: 14px;
  }

  .artworks-page-header {
    flex-wrap: wrap;
  }

  .artworks-view-controls {
    margin-left: auto;
  }

  .artworks-toolbar {
    justify-content: flex-start;
  }

  .artworks-search {
    width: 100%;
    flex: 1 1 100%;
  }

  .artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .report-card {
    min-height: 196px;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .global-search {
    width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    justify-content: center;
    padding: 0;
  }

  .global-search__label,
  .global-search kbd {
    display: none;
  }

  .artwork-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-preparing__logo {
    width: 96px;
    height: 96px;
  }

  .workspace-preparing h1 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.profile-page {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.profile-board {
  min-height: calc(100vh - 96px);
  overflow: visible;
}

.profile-tabs {
  display: flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 4px;
  padding: 7px 10px 0;
  border-bottom: 1px solid var(--workspace-border);
  background: var(--category-surface);
}

.profile-tab {
  min-width: 78px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  color: var(--support);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.profile-tab:hover:not(.is-selected) {
  color: var(--heading);
  background: var(--workspace-canvas);
}

.profile-tab.is-selected {
  position: relative;
  margin-bottom: -1px;
  border-color: var(--workspace-border);
  border-bottom-color: var(--surface);
  color: var(--heading);
  background: var(--surface);
  font-weight: 600;
}

.profile-panel {
  min-width: 0;
  padding: 18px 20px 20px;
  background: var(--surface);
}

.profile-intro {
  margin: 0 0 18px;
  color: var(--support);
  font-size: 14px;
  line-height: 1.55;
}

.profile-identity {
  display: flex;
  min-width: 0;
  min-height: 138px;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: linear-gradient(105deg, var(--surface) 0%, var(--category-surface) 58%, var(--teal-surface) 100%);
}

.profile-identity__avatar {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  color: var(--surface);
  background: var(--shell);
  box-shadow: 0 3px 12px rgba(45, 62, 80, 0.16);
  font-size: 32px;
  font-weight: 500;
}

.profile-identity__content {
  min-width: 0;
}

.profile-identity__content h1 {
  overflow-wrap: anywhere;
  margin: 0 0 3px;
  color: var(--heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.profile-identity__email {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--support);
  font-size: 14px;
  line-height: 1.5;
}

.profile-identity__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.profile-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.profile-badge--role {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.profile-badge--active {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-surface);
}

.profile-badge--inactive {
  border-color: var(--workspace-border);
  color: var(--support);
  background: var(--workspace-canvas);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.profile-info-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-info-card__header {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--workspace-border);
  background: var(--category-surface);
}

.profile-info-card__header svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--teal-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-info-card__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 24px;
  margin: 0;
  padding: 18px 20px 20px;
}

.profile-field {
  min-width: 0;
}

.profile-field dt {
  margin: 0 0 5px;
  color: var(--support);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.45;
  text-transform: uppercase;
}

.profile-field dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.profile-permissions {
  margin-top: 16px;
}

.profile-permissions .profile-info-card__header {
  min-height: 56px;
}

.profile-permissions__count {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  margin-left: 2px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--support);
  background: var(--workspace-canvas);
  font-size: 11px;
  font-weight: 700;
}

.profile-permissions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px 20px;
}

.profile-permission {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--teal-border);
  border-radius: 999px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-empty-state {
  margin: 0;
  color: var(--support);
  font-size: 13px;
  line-height: 1.5;
}

.profile-security-note {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--teal-border);
  border-radius: 11px;
  color: var(--heading);
  background: var(--teal-surface);
}

.profile-security-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: var(--teal-text);
  stroke: var(--teal-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.profile-security-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.profile-company-identity__avatar {
  color: var(--teal-text);
  background: var(--teal-surface);
  box-shadow: none;
}

.profile-company-identity__avatar svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.profile-company-grid {
  margin-top: 16px;
}

.profile-tabs-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 10px;
  border-bottom: 1px solid var(--workspace-border);
  background: var(--category-surface);
}

.profile-tabs-bar .profile-tabs {
  align-self: stretch;
  border-bottom: 0;
  background: transparent;
}

.company-save-button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border: 1px solid var(--teal-text);
  border-radius: 999px;
  color: var(--surface);
  background: var(--teal-text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  font-weight: 600;
}

.company-save-button:hover {
  filter: brightness(0.94);
}

.company-save-button[hidden],
.company-save-status[hidden] {
  display: none !important;
}

.company-settings-layout {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.company-branding-card__body {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 20px 20px;
  text-align: center;
}

.company-logo-preview {
  display: grid;
  width: 100%;
  min-height: 201px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--workspace-border);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface), var(--category-surface));
}

.company-logo-preview img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(45, 62, 80, 0.08);
}

.company-logo-preview svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--support);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.company-logo-preview img[hidden],
.company-logo-preview svg[hidden] {
  display: none;
}

.company-branding-name {
  max-width: 100%;
  margin-top: 12px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.company-branding-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.company-secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  color: var(--heading);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
}

.company-secondary-button:hover {
  border-color: var(--teal-border);
  background: var(--teal-surface);
}

.company-secondary-button svg,
.company-preview-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.company-text-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  color: var(--teal-text);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.company-text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-help-text {
  align-self: stretch;
  margin: 4px 0 0;
  color: var(--support);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.company-settings-main {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.company-form-fields {
  display: grid;
  gap: 22px;
  padding: 18px 20px 20px;
}

.company-form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.company-form-field label {
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.company-form-field input,
.company-form-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.company-form-field input[readonly] {
  color: var(--support);
  background: var(--category-surface);
}

.company-form-field input:focus-visible,
.company-form-field select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.company-appearance-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px 0;
}

.company-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px 0;
}

.company-preview-chip {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--support);
  background: var(--category-surface);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.company-preview-chip svg {
  color: var(--teal-text);
}

.company-appearance-note {
  margin: 15px 20px 19px;
  color: var(--support);
  font-size: 12px;
  line-height: 1.55;
}

.company-save-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--teal-border);
  border-radius: 10px;
  color: var(--teal-text);
  background: var(--teal-surface);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .profile-board {
    min-height: calc(100vh - 84px);
  }

  .profile-panel {
    padding: 16px;
  }

  .profile-identity {
    gap: 16px;
    padding: 20px;
  }

  .profile-identity__avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 27px;
  }

  .profile-identity__content h1 {
    font-size: 21px;
  }

  .profile-details-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }

  .profile-permissions,
  .profile-security-note {
    margin-top: 12px;
  }

  .company-settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .company-logo-preview {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .profile-tabs {
    min-height: 48px;
    padding: 5px 7px 0;
  }

  .profile-tabs-bar {
    min-height: 48px;
    gap: 8px;
    padding-right: 8px;
  }

  .profile-tab {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .profile-panel {
    padding: 14px 12px 16px;
  }

  .profile-intro {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .profile-identity {
    align-items: flex-start;
    gap: 13px;
    padding: 17px 14px;
  }

  .profile-identity__avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 22px;
  }

  .profile-identity__content h1 {
    font-size: 18px;
  }

  .profile-identity__email {
    font-size: 12px;
  }

  .profile-identity__badges {
    gap: 6px;
    margin-top: 9px;
  }

  .profile-badge {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .profile-fields {
    gap: 14px 12px;
    padding: 16px 14px 17px;
  }

  .profile-field dt {
    font-size: 10px;
  }

  .profile-field dd {
    font-size: 13px;
  }

  .profile-permissions__list {
    gap: 7px;
    padding: 14px;
  }

  .profile-permission {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .profile-security-note {
    align-items: flex-start;
    padding: 12px;
  }

  .company-save-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .company-branding-card__body,
  .company-form-fields {
    padding: 14px;
  }

  .company-appearance-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 14px 14px 0;
  }

  .company-preview-chips {
    padding: 14px 14px 0;
  }

  .company-appearance-note {
    margin: 13px 14px 15px;
  }
}
