:root {
  color-scheme: light;
  --page: #f2f4fa;
  --surface: #fff;
  --surface-tint: #f7f8fd;
  --ink: #161e39;
  --text: #36425e;
  --muted: #586681;
  --line: #dfe4f0;
  --primary: #484bd1;
  --primary-dark: #3539b3;
  --primary-tint: #ebedff;
  --field-focus: #656acb;
  --nav: #191d3d;
  --success: #1c7458;
  --success-bg: #e8f7ef;
  --warning: #8d570c;
  --warning-bg: #fff3de;
  --danger: #a52a3c;
  --danger-bg: #fceff1;
  --shadow: 0 2px 4px #202a4f08, 0 12px 30px #26345d09;
  --dropdown-shadow: 0 4px 10px #1e295314, 0 16px 34px #1e295324;
  --radius: 18px;
  --gutter: clamp(24px, 3vw, 48px);
  --panel-padding: clamp(16px, 1.65vw, 28px);
  --layout-gap: clamp(16px, 1.7vw, 26px);
  --content-width: 1670px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.55;
  font-size: 15px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote, hr { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
a { color: var(--primary-dark); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
svg { display: block; inline-size: 19px; block-size: 19px; flex: 0 0 auto; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #7275ec; outline-offset: 3px; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted, .loading { color: var(--muted); }
.skip-link { position: fixed; z-index: 10; inset: 10px auto auto 10px; padding: 8px 12px; border-radius: 8px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  display: flex; flex-direction: column; position: sticky; inset-block-start: 0; height: 100dvh; overflow-y: auto;
  padding: 24px 16px; color: #e2e6ff; z-index: 4;
  background: radial-gradient(ellipse at 0 0, #34366a 0, transparent 55%), var(--nav);
}
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 7px; color: var(--ink); text-align: start; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; line-height: 1.35; letter-spacing: -.015em; }
.sidebar .brand { padding: 9px 6px 22px; border-bottom: 1px solid #ffffff24; }
.sidebar .brand strong { color: #fff; text-wrap: balance; }
.sidebar .brand small { color: #c3c9e6; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.brand-mark {
  display: grid; place-items: center; inline-size: 38px; block-size: 38px; flex: 0 0 auto;
  border-radius: 12px; background: linear-gradient(145deg, #686be9, var(--primary));
  color: #fff; box-shadow: 0 4px 12px #1715424d;
}
.brand-mark svg { inline-size: 23px; block-size: 23px; }
#workspace-nav { display: grid; gap: 6px; margin-top: 25px; }
.nav-group { padding: 0 12px 5px; color: #bac2e1; font-size: 12px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 9px 12px;
  color: #e2e6ff; border: 1px solid transparent; border-radius: 11px; font-weight: 600;
}
.nav-item svg { inline-size: 19px; block-size: 19px; color: #bfc7ed; }
.nav-item:hover { background: #ffffff12; }
.nav-item[aria-current] { background: #4c4eb3; border-color: #8587eb75; color: #fff; }
.nav-item[aria-current] svg { color: #fff; }
.nav-divider { border: 0; border-top: 1px solid #ffffff24; margin: 15px 10px 12px; }
.main-shell { min-width: 0; background: radial-gradient(ellipse 900px 420px at 85% 0, #e8ebfb, transparent), var(--page); }
.topbar {
  position: relative; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter)));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.route-pending .topbar::after {
  content: ''; position: absolute; inset: auto 0 -1px; height: 2px;
  background: linear-gradient(90deg, var(--primary-tint), var(--primary), var(--primary-tint));
}
.route-placeholder { display: grid; gap: var(--layout-gap); }
.route-skeleton { display: grid; gap: var(--layout-gap); }
.route-skeleton::before, .route-skeleton::after {
  content: ''; display: block; border-radius: var(--radius);
  background: linear-gradient(100deg, #f8f9fe, #e9ecf8); border: 1px solid var(--line);
}
.route-skeleton::before { width: min(220px, 58%); height: 38px; border-radius: 8px; }
.route-skeleton::after { height: clamp(240px, 54dvh, 470px); }
.route-skeleton.is-table::after {
  background: repeating-linear-gradient(#fff 0 58px, var(--line) 58px 59px);
}
@media (min-width: 881px) {
  .route-skeleton.is-split::after {
    background: linear-gradient(90deg, #fff 0 65%, transparent 65% 67%, #f8f9fe 67%);
  }
}
.breadcrumb { display: flex; gap: 9px; align-items: center; white-space: nowrap; color: var(--muted); font-size: 14px; }
.breadcrumb svg { color: #7a85a1; inline-size: 13px; block-size: 13px; }
.breadcrumb strong { font-weight: 600; }
.menu-toggle { display: none !important; }
.account { margin-inline-start: auto; }
.account details { position: relative; }
.account summary {
  list-style: none; display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-tint); transition: background .15s;
}
.account summary::-webkit-details-marker { display: none; }
.account summary:hover, .account details[open] summary { background: var(--surface-tint); border-color: #b8bdef; }
.avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; inline-size: 34px; block-size: 34px;
  border-radius: 10px; background: var(--primary-tint); color: var(--primary-dark); font-weight: 700;
}
.account-identity > * { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity strong { font-size: 13px; line-height: 1.25; }
.account-identity small { margin-top: 2px; font-size: 11px; color: var(--muted); }
.account-chevron { inline-size: 14px; block-size: 14px; color: var(--primary-dark); }
.account details[open] .account-chevron { transform: rotate(180deg); }
.account-menu {
  position: absolute; z-index: 6; inset: calc(100% + 6px) 0 auto auto; min-width: 160px;
  display: grid; gap: 2px; padding: 6px; background: var(--surface); box-shadow: var(--dropdown-shadow);
  border: 1px solid var(--line); border-radius: 14px;
}
.account-menu .button { justify-content: flex-start; min-height: 38px; border-radius: 8px; }
.account-menu .button:hover { background: var(--primary-tint); color: var(--primary-dark); }

.workspace { max-width: var(--content-width); padding: 36px var(--gutter) 54px; margin-inline: auto; }
.workspace:has(.page-heading h1):focus-visible { outline: none; }
.workspace:focus-visible .page-heading h1 { outline: 2px solid #7275ec; outline-offset: 5px; border-radius: 3px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: var(--layout-gap); }
.heading-main { min-width: 0; }
.page-heading h1 { width: fit-content; font-size: clamp(26px, 3vw, 38px); line-height: 1.22; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-heading p { margin-top: 9px; max-width: 72ch; color: var(--muted); overflow-wrap: anywhere; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 33%); gap: var(--layout-gap); align-items: start; }
.upload-form, .workspace-aside, .report-extras, .rules-list { display: grid; gap: var(--layout-gap); min-width: 0; }
.card {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--panel-padding) var(--panel-padding) 17px; }
.card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-title > div { min-width: 0; }
.card-title h2 { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.35; overflow-wrap: anywhere; }
.card-title p { margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.section-icon {
  display: grid; place-items: center; inline-size: 42px; block-size: 42px; flex: 0 0 auto;
  border-radius: 12px; background: var(--primary-tint); color: var(--primary-dark);
}
.section-icon svg { inline-size: 20px; block-size: 20px; }
.card-content { padding: 0 var(--panel-padding) var(--panel-padding); }
.card-footer { display: grid; gap: 10px; padding: 15px var(--panel-padding); border-top: 1px solid var(--line); background: var(--surface-tint); border-radius: 0 0 var(--radius) var(--radius); }

.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent;
  border-radius: 10px; padding: 9px 14px; min-height: 42px; font-size: 14px; font-weight: 650;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s; line-height: 1.35;
}
.button svg, .icon-button svg { inline-size: 16px; block-size: 16px; }
.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 4px #3a3eb51c; }
.primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.primary:disabled { background: #eceef9; color: #655f93; border-color: #e4e6f1; box-shadow: none; }
.secondary { background: #fff; border-color: #d9deeb; color: var(--ink); }
.secondary:hover:not(:disabled) { background: #f6f7ff; border-color: #b9c0e1; }
.secondary:disabled, .quiet:disabled { color: var(--muted); opacity: .75; }
.heading-main:has(> .records-back) {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
}
.heading-main > .records-back {
  grid-row: span 2; align-self: start; min-block-size: 46px; padding-inline: 14px; border-radius: 12px;
  background: var(--primary-tint); border-color: #cdd1f5; color: var(--primary-dark);
}
.records-back:hover { background: #dfe2ff; border-color: #aaaee8; }
.records-back svg { inline-size: 18px; block-size: 18px; }
button:disabled { cursor: not-allowed; }
.quiet, .icon-button { color: var(--muted); background: transparent; }
.quiet:hover, .icon-button:hover { color: var(--ink); background: var(--page); }
.icon-button { inline-size: 32px; block-size: 32px; min-height: 32px; padding: 0; flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 5px; justify-self: start; font-size: 13px; font-weight: 600; }
.text-link svg { inline-size: 14px; block-size: 14px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge {
  display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; flex: 0 0 auto;
  min-height: 26px; padding: 4px 9px; border-radius: 20px; font-size: 12px; font-weight: 650; line-height: 1.25;
}
.badge > i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.badge.neutral { background: #edf0f6; color: #54617d; }
.badge.pending { background: var(--primary-tint); color: var(--primary-dark); }
.badge.pass { background: var(--success-bg); color: var(--success); }
.badge.verify { background: var(--warning-bg); color: var(--warning); }
.badge.risk { background: var(--danger-bg); color: var(--danger); }

.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.field input, .field textarea {
  min-width: 0; border: 1px solid #d6ddeb; background: #fff; border-radius: 10px; min-height: 44px;
  color: var(--ink); padding: 9px 12px; font-size: 14px; font-weight: 400;
}
select {
  min-inline-size: 0; max-inline-size: 100%; min-block-size: 44px; padding: 8px 12px;
  border: 1px solid #d6ddeb; border-radius: 11px; background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.45;
}
select:not(:disabled):hover { border-color: #b8bdef; background: var(--surface-tint); }
select:disabled { cursor: default; color: var(--muted); background: #f0f2f8; }
@supports (appearance: base-select) and selector(::picker(select)) {
  select, select::picker(select) { appearance: base-select; }
  select { align-items: center; gap: 12px; }
  select:open { border-color: var(--field-focus); background: var(--surface-tint); }
  select::picker-icon {
    content: ''; flex: 0 0 auto; inline-size: 8px; block-size: 8px; margin: -4px 2px 0 auto;
    border: solid var(--primary-dark); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  }
  select:open::picker-icon { margin-block-start: 4px; transform: rotate(225deg); }
  select:disabled::picker-icon { border-color: var(--muted); }
  select::picker(select) {
    min-inline-size: anchor-size(width); max-inline-size: calc(100vw - 24px); max-block-size: min(360px, 55dvh);
    margin-block: 6px; padding: 6px; overflow: auto; overscroll-behavior: contain;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--dropdown-shadow);
    color: var(--text); font: inherit;
  }
  select option {
    display: flex; align-items: center; gap: 10px; min-block-size: 38px; padding: 8px 10px;
    border-radius: 8px; white-space: normal; overflow-wrap: anywhere;
  }
  select option:checked { background: var(--primary-tint); color: var(--primary-dark); font-weight: 650; }
  select option:not(:disabled):is(:hover, :focus-visible) { background: #e1e5ff; color: var(--primary-dark); }
  select option:disabled { color: var(--muted); }
  select option::checkmark { order: 1; margin-inline-start: auto; color: var(--primary-dark); }
}
.field textarea { resize: vertical; min-height: 86px; }
.field input::placeholder, .field textarea::placeholder, .search-box input::placeholder { color: #6e7993; }
.field :is(input, textarea, select):disabled { background: #f0f2f8; }
.field small, .form-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.form-actions .button { padding-inline: 15px; }
.notice { border-radius: 10px; padding: 11px 13px; font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
.notice.info { background: var(--primary-tint); color: var(--primary-dark); }
.notice.success { background: var(--success-bg); color: var(--success); }

.upload-form { gap: min(var(--layout-gap), 20px); }
.upload-form .card-head { padding-block: 19px 14px; }
.upload-form .card-content { padding-bottom: min(var(--panel-padding), 19px); }
.details-card .form-stack { gap: 14px; }
.catalog-workspace { display: grid; gap: var(--layout-gap); max-inline-size: 1120px; }
.catalog-brand {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2vw, 22px) var(--panel-padding); gap: 12px;
}
.catalog-brand-name { display: grid; gap: 4px; min-width: 0; }
.catalog-brand-name h2, .catalog-section-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.catalog-section { display: grid; gap: 14px; min-width: 0; }
.catalog-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 16px;
}
.catalog-product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.catalog-cover {
  position: relative; flex: none; overflow: hidden; aspect-ratio: 4 / 3;
  background: #f4f6fc; border-bottom: 1px solid var(--line);
}
.catalog-cover .product-preview-button, .catalog-cover-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
@media (max-width: 560px) {
  .catalog-cover { aspect-ratio: 16 / 9; }
}
.catalog-cover .product-preview-button { border: 0; border-radius: 0; padding: 12px; }
.catalog-cover .product-preview-button:focus-visible { outline-offset: -3px; }
.catalog-cover .product-thumbnail { width: 100%; height: 100%; min-height: 0; }
.catalog-cover-placeholder { display: grid; place-items: center; color: var(--muted); }
.catalog-cover-placeholder svg { width: 38px; height: 38px; }
.catalog-product-body { flex: 1; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 14px; min-width: 0; }
.catalog-product-body h3 { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-product-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.catalog-product-actions {
  grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-block-start: 8px;
}
.catalog-product-edit { min-height: 33px; padding: 5px 10px; font-size: 13px; }
.dialog.catalog-editor-dialog { width: min(92vw, 720px); max-height: 90dvh; }
.catalog-upload-group {
  display: grid; align-content: start; gap: 10px; min-width: 0;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
}
.catalog-proof summary { cursor: pointer; color: var(--primary-dark); font-weight: 650; }
.catalog-proof[open] > .form-stack { margin-top: 12px; }
.catalog-asset { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.upload-selection, .brand-qualification-row .text-link { overflow-wrap: anywhere; }
.brand-qualification-list > ul { list-style: none; margin: 0; padding: 0 var(--panel-padding) 8px; }
.brand-qualification-row { padding: 10px 0; border-top: 1px solid var(--line); }
.brand-qualification-row > button { flex: none; }
.product-selection { display: grid; gap: 6px; align-content: start; min-width: 0; }
.catalog-remove { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.product-image-link { display: grid; gap: 6px; width: fit-content; font-size: 13px; }
.product-thumbnail { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.product-saved-photos, .product-edit-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.product-saved-photos { margin-block-start: 8px; }
.product-preview-button {
  display: grid; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: zoom-in;
}
.product-preview-button:hover { border-color: var(--primary); }
.product-edit-photo { position: relative; display: grid; gap: 5px; width: 115px; min-width: 0; }
.product-edit-photo .product-thumbnail { width: 100%; height: 100px; }
.product-edit-photo > .icon-button {
  position: absolute; inset: 4px 4px auto auto; width: 28px; height: 28px; min-height: 28px;
  background: #fff; border: 1px solid var(--line);
}
.product-photo-caption { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.product-preview-dialog {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; max-width: min(900px, 92vw);
  max-height: 92vh; color: var(--ink); background: #fff;
}
.product-preview-dialog::backdrop { background: rgba(22, 26, 48, .62); }
.product-preview-dialog .dialog-head { gap: 12px; overflow-wrap: anywhere; }
.product-preview-image { display: block; max-width: 100%; max-height: min(74vh, 720px); margin: auto; object-fit: contain; }
.product-evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.product-evidence .frame-link, .product-evidence .product-image-link {
  grid-template-columns: minmax(0, 1fr); width: 100%; gap: 6px; margin-top: 6px; font-size: 12px;
}
.product-evidence .product-thumbnail, .product-evidence .evidence-frame {
  width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 180px;
}
.drop {
  position: relative; display: grid; min-width: 0; justify-items: center; align-content: center; gap: 8px;
  min-height: clamp(150px, 18.5svh, 195px); padding: 18px 12px;
  cursor: pointer; background: #f1f2ff; color: var(--ink); text-align: center; overflow-wrap: anywhere;
  border: 1px dashed #9299e1; border-radius: 14px; transition: background .15s, border-color .15s;
}
.drop:not(:has(input:disabled)):is(:hover, .is-dragging, :focus-within) { background: #e9ecff; border-color: var(--primary); }
.drop:has(input:disabled) { opacity: .6; cursor: default; }
.upload-form .form-actions .primary { min-inline-size: 112px; }
.drop strong { font-size: 17px; }
.drop-hint { color: var(--muted); font-size: 13px; }
.drop-icon { display: grid; place-items: center; inline-size: 49px; block-size: 49px; margin-bottom: 2px; color: #fff; background: var(--primary); border-radius: 14px; box-shadow: 0 4px 12px #4147ba31; }
.drop-icon svg { inline-size: 24px; block-size: 24px; }
.drop-compact { min-height: 0; margin-top: 10px; padding: 10px 12px; gap: 3px; }
.drop-compact .drop-icon { inline-size: 32px; block-size: 32px; border-radius: 9px; }
.drop-compact .drop-icon svg { inline-size: 18px; block-size: 18px; }
.drop-compact strong { font-size: 14px; }
.file-preview { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); padding: 10px; border-radius: 12px; }
.local-video { width: min(38%, 190px); aspect-ratio: 16 / 9; max-height: 125px; object-fit: contain; border-radius: 7px; background: #11182c; }
.file-detail { flex: 1; min-width: 0; }
.file-name { display: block; overflow-wrap: anywhere; }
.file-detail p { font-size: 12px; margin-top: 4px; }
.video-batch { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.batch-error { color: var(--danger); overflow-wrap: anywhere; }
.saved-preview { min-height: 62px; }
.progress-caption { color: var(--ink); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.progress { display: block; width: 100%; height: 10px; accent-color: var(--primary); }
.upload-progress { display: grid; gap: 7px; }
.draft-conflict dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.attachments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.attachment {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; padding: 5px 7px;
  font-size: 11px; border-radius: 7px; border: 1px solid var(--line); background: #f7f8fc; color: var(--text);
}
.attachment svg { inline-size: 14px; block-size: 14px; }
.attachment .icon-button { inline-size: 21px; block-size: 21px; min-height: 21px; }
a.attachment:hover { background: var(--primary-tint); color: var(--primary-dark); }
.attachment small { color: var(--muted); white-space: nowrap; }
.managed-attachment { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; }
.managed-attachment a { min-width: 0; }

.steps { list-style: none; padding: 0 var(--panel-padding) var(--panel-padding); display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 13px; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: ''; position: absolute; inset: 39px auto 0 19px; border-left: 1px solid #d7dcf5;
}
.step-icon, .recent-icon {
  display: grid; place-items: center; inline-size: 39px; block-size: 39px; flex: 0 0 auto; border-radius: 11px;
  background: var(--primary-tint); color: var(--primary-dark);
}
.step-icon svg, .recent-icon svg { inline-size: 18px; block-size: 18px; }
.steps strong { font-size: 15px; }
.steps p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.recent-rows { display: grid; padding: 0 var(--panel-padding) 14px; }
.recent-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 11px 0; min-width: 0; border-bottom: 1px solid #eef0f5;
}
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover strong { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.recent-item .recent-icon { width: 36px; height: 36px; }
.recent-main { min-width: 0; }
.recent-main strong, .recent-main small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-main strong { font-size: 13px; }
.recent-main small, .recent-empty { color: var(--muted); font-size: 12px; }
.recent-empty { line-height: 1.55; padding: 2px 0 4px; }

.record-type-tabs, .upload-type-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.upload-type-tabs { margin-block: 0 var(--layout-gap); }
.record-type-tab { padding: 10px 15px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; }
.record-type-tab:hover, .record-type-tab[aria-current="page"] { color: var(--primary-dark); }
.record-type-tab[aria-current="page"] { border-color: var(--primary); }
.catalog-latest-review { flex-basis: 100%; font-size: 12px; }
.main-image-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.main-image-preview { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.main-image-preview .product-thumbnail { width: 100%; height: 105px; }
.main-image-preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 13px; }
.main-image-preview-caption > span { overflow-wrap: anywhere; }
.audit-brand { display: block; margin-top: 3px; }
.audit-result-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.audit-result-summary .notice { flex-basis: 100%; }
.audit-metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); gap: 12px; margin: 0; }
.audit-metadata > div { display: grid; gap: 5px; min-width: 0; }
.audit-metadata dt { color: var(--muted); font-size: 13px; }
.audit-metadata dd { margin: 0; overflow-wrap: anywhere; }
.audit-multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.main-review-results { display: grid; gap: var(--layout-gap); }
.audit-image-grid {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start;
}
.audit-original .product-thumbnail { width: 100%; height: auto; max-height: 350px; }
.audit-finding { display: grid; justify-items: start; gap: 7px; padding-block-end: 10px; border-bottom: 1px solid var(--line); }
.audit-finding > * { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 710px) { .audit-image-grid { grid-template-columns: minmax(0, 1fr); } }
.table-controls {
  padding: 17px var(--panel-padding); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.search-box { position: relative; width: min(460px, 100%); }
.search-box > svg { position: absolute; inset: 50% auto auto 13px; transform: translateY(-50%); inline-size: 17px; block-size: 17px; color: var(--muted); pointer-events: none; }
.search-box input {
  width: 100%; min-height: 44px; padding: 9px 12px 9px 39px; background: var(--surface-tint);
  border: 1px solid #d6ddeb; border-radius: 10px; font-size: 14px; color: var(--ink);
}
:is(input, select, textarea):focus, .drop:focus-within {
  border-color: var(--field-focus); outline: 1px solid var(--field-focus); outline-offset: -1px;
}
input:is([type="checkbox"], [type="radio"]):focus { outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.record-date-tools, .record-date-label { display: flex; align-items: center; gap: 8px; }
.record-date-tools { flex-wrap: wrap; }
.record-date-label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.record-date-label input {
  min-height: 44px; padding: 8px 10px; background: var(--surface); color: var(--ink);
  border: 1px solid #d6ddeb; border-radius: 10px; font-size: 14px;
}
.record-date-tools .button { padding-inline: 10px; }
.record-date-tools .button[aria-pressed="true"] { background: var(--primary-tint); color: var(--primary-dark); }
.record-date-trigger { min-inline-size: 138px; justify-content: flex-start; font-variant-numeric: tabular-nums; }
.record-date-trigger > svg { inline-size: 16px; block-size: 16px; color: var(--primary-dark); }
.record-date-label:has(.record-calendar:popover-open) .record-date-trigger {
  border-color: var(--field-focus); background: var(--surface-tint);
}
.record-calendar {
  position: fixed; inset: auto; position-area: block-end span-inline-end;
  position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline, --calendar-centered;
  inline-size: min(310px, calc(100vw - 24px)); max-block-size: calc(100dvh - 24px);
  margin: 6px 0; padding: 12px; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: var(--dropdown-shadow); font-size: 13px;
}
@position-try --calendar-centered { position-area: none; inset: 0; margin: auto; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.calendar-header .icon-button { inline-size: 36px; block-size: 36px; color: var(--primary-dark); background: var(--surface-tint); }
.calendar-header .icon-button:hover { background: var(--primary-tint); }
.calendar-header .icon-button svg { inline-size: 15px; block-size: 15px; }
.calendar-month-controls { display: flex; justify-content: center; gap: 5px; min-inline-size: 0; }
.calendar-month-controls select { min-block-size: 36px; padding: 5px 8px; font-size: 13px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-weekdays { margin-block: 11px 4px; color: var(--muted); font-weight: 600; }
.calendar-weekdays span { padding-block: 4px; }
.calendar-day {
  position: relative; justify-self: center; min-inline-size: 0; inline-size: 100%; max-inline-size: 38px; block-size: 34px;
  padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.calendar-day.outside-month { color: var(--muted); }
.calendar-day:hover { background: var(--primary-tint); color: var(--primary-dark); }
.calendar-day[aria-current="date"] { border-color: #c1c5f6; color: var(--primary-dark); font-weight: 700; }
.calendar-day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.calendar-day:focus-visible { outline-offset: 0; }
.calendar-footer { display: flex; justify-content: space-between; padding-top: 7px; margin-top: 8px; border-top: 1px solid var(--line); }
.calendar-footer .button { min-block-size: 34px; color: var(--primary-dark); font-size: 13px; }
.list-filter { min-inline-size: 122px; }
.submitter-filter { max-inline-size: 11rem; }
.list-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.table-wrap { overflow-x: auto; min-width: 0; border-radius: 0 0 var(--radius) var(--radius); }
.records-table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; color: var(--text); }
.records-table th, .records-table td { padding: 15px 14px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.records-table th:first-child, .records-table td:first-child { padding-left: var(--panel-padding); }
.records-table th:last-child, .records-table td:last-child { padding-right: var(--panel-padding); }
.records-table th { background: var(--surface-tint); font-size: 13px; white-space: nowrap; font-weight: 650; color: var(--muted); }
.records-card .table-wrap { max-block-size: 62dvh; overflow: auto; }
.records-card .records-table th { position: sticky; inset-block-start: 0; z-index: 1; }
.records-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 12px var(--panel-padding); border-top: 1px solid var(--line); color: var(--muted);
}
.records-pagination .button { min-height: 34px; }
.records-pagination .button[aria-disabled="true"] { opacity: .55; cursor: wait; }
.records-pagination > span { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 1121px) {
  .records-card { --records-tools-height: 0px; }
  .records-card .table-controls {
    position: sticky; inset-block-start: 0; z-index: 3; background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .records-card .table-wrap { max-block-size: none; overflow: visible; }
  .records-card .records-table th { inset-block-start: var(--records-tools-height); }
}
.records-table td { font-size: 14px; }
.records-table tbody tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #f7f8ff; }
.file-cell, .row-actions { display: flex; align-items: center; gap: 9px; }
.file-cell small { display: block; margin-top: 4px; color: var(--muted); }
.record-file-details { min-width: 0; }
.record-note { max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-name { display: inline-block; color: var(--ink); font-weight: 650; max-width: 38ch; overflow-wrap: anywhere; }
.record-name:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.record-submitter { overflow-wrap: anywhere; }
.row-actions, .date-cell { white-space: nowrap; }
.row-actions .text-link { min-height: 32px; padding: 5px 9px; border-radius: 8px; background: var(--primary-tint); }
.row-actions .text-link:hover { background: #e0e4ff; }
.row-actions .record-note-action { min-height: 32px; padding: 4px 9px; }
.row-actions .icon-button[aria-disabled="true"] { cursor: wait; opacity: .55; }
.table-card > .notice { margin: 12px var(--panel-padding); }
.cleanup-list { max-height: 220px; overflow: auto; padding-inline-start: 22px; overflow-wrap: anywhere; }
.team-table { min-width: 500px; }
.team-brand { max-inline-size: 175px; overflow-wrap: anywhere; }
.team-table .button { min-height: 34px; padding: 5px 9px; font-size: 13px; }
.team-table .button svg { inline-size: 15px; block-size: 15px; }

.empty {
  display: grid; justify-items: center; text-align: center; align-content: center;
  gap: 9px; padding: 28px 14px; min-height: 152px;
}
.table-card .empty { min-height: clamp(240px, 35svh, 360px); }
.empty-icon {
  display: grid; place-items: center; inline-size: 49px; block-size: 49px; margin-bottom: 3px;
  border-radius: 14px; color: var(--primary-dark); background: var(--primary-tint);
}
.empty strong { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; }
.empty .button { margin-top: 6px; }
.spinner { inline-size: 17px; block-size: 17px; border: 2px solid #d9dcf3; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-card .card-head {
  padding-block: var(--panel-padding); border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(110deg, #fff 35%, #f2f3ff);
}
.progress-card .card-content { gap: var(--layout-gap); padding-block: var(--panel-padding); }
.processing-bar {
  display: grid; gap: 12px; padding: clamp(14px, 1.6vw, 23px);
  border: 1px solid #dce0fc; border-radius: 14px; background: #f2f3ff;
}
.processing-label { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.processing-label strong { font-size: 16px; }
.processing-label span { color: var(--primary-dark); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.processing-bar .progress { height: 10px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #dce1fa; }
.processing-bar .progress::-webkit-progress-bar { background: transparent; }
.processing-bar .progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.processing-bar .progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.processing-bar .progress:indeterminate {
  background: linear-gradient(90deg, transparent, var(--primary), transparent) 0 center / 35% 100% no-repeat #dce1fa;
  animation: processing 1.8s ease-in-out infinite alternate;
}
@keyframes processing { to { background-position: 100% center; } }
.progress-steps {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 15px);
}
.progress-steps li {
  display: grid; align-content: start; gap: 12px; min-height: 132px; padding: clamp(11px, 1.3vw, 20px);
  background: var(--surface-tint); border: 1px solid var(--line); border-radius: 14px;
}
.progress-steps li.done { background: #f5fbf8; border-color: #dcefe4; }
.progress-steps li.active { background: var(--primary-tint); border-color: #b5baf5; }
.progress-steps li.failed { background: #fff7f8; border-color: #f1cbd2; }
.progress-step-text { min-width: 0; }
.progress-step-text strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.progress-step-text small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.done .progress-step-text small { color: var(--success); }
.active .progress-step-text small { color: var(--primary-dark); }
.failed .progress-step-text small { color: var(--danger); }
.progress-step-icon { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 11px; background: #e9edf6; color: var(--muted); }
.progress-step-icon svg { inline-size: 20px; block-size: 20px; }
.done .progress-step-icon { background: var(--success-bg); color: var(--success); }
.active .progress-step-icon { background: var(--primary); color: #fff; }
.failed .progress-step-icon { background: var(--danger-bg); color: var(--danger); }

.summary-card {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 20px;
  padding: var(--panel-padding); margin-bottom: var(--layout-gap);
  background: linear-gradient(110deg, #fff 35%, #f7f8ff);
}
.summary-result { display: flex; align-items: center; gap: 12px; }
.summary-result h2 { font-size: 18px; margin-bottom: 5px; }
.summary-counts { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.summary-counts .badge { padding-inline: 10px; }
.coverage { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.report-coverage-meta > .coverage { display: flex; gap: 8px; }
.report-coverage-meta > .coverage > div { min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.coverage dt { color: var(--muted); font-size: 12px; }
.coverage dd { font-size: 14px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.summary-note { display: flex; align-items: center; gap: 7px; width: 100%; font-size: 13px; color: var(--muted); }
.summary-note svg { inline-size: 16px; block-size: 16px; color: var(--primary-dark); }
.report-summary-details { display: flex; flex-wrap: wrap; gap: 8px 16px; width: 100%; }
.model-details { width: 100%; font-size: 13px; }
.model-details summary { width: fit-content; color: var(--primary-dark); font-weight: 650; }
.model-details .coverage { padding: 10px 0 2px; }
.coverage-gaps { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); }
.coverage-gap { margin: 6px 0; }
.usage-models { display: grid; gap: 8px; margin-top: 8px; }
.usage-model { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); align-items: start; }
.report-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
.player-card { position: sticky; inset-block-start: 16px; }
.video-stage {
  position: relative; overflow: hidden;
  width: 100%; max-height: min(38svh, 440px); min-height: 174px; aspect-ratio: 16 / 9;
  background: #10162b; border-radius: 14px;
}
.report-video { width: 100%; height: 100%; object-fit: contain; }
.video-cover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #343761, #171d35 72%);
}
.video-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .48; }
.video-cover .button {
  position: relative; box-shadow: 0 5px 24px #10162b80;
}
.video-cover .button:disabled { opacity: 1; cursor: progress; }
.timeline-wrap { margin-top: 17px; }
.timeline-heading, .timeline-labels { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 13px; }
.timeline-heading small, .timeline-labels { color: var(--muted); }
.timeline { padding: 16px 0; }
.timeline-track { position: relative; background: #e4e6f4; border-radius: 12px; height: 7px; }
.timeline-marker {
  position: absolute; z-index: 1; width: 24px; height: 24px; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; background: #a52a3c; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e6a0ac; touch-action: manipulation; padding: 0; color: #fff;
  font-size: 11px; line-height: 1; font-weight: 700;
}
.timeline-marker.verify { background: #9f630e; box-shadow: 0 0 0 1px #efcc93; }
.timeline-marker:hover, .timeline-marker:focus-visible, .timeline-marker.is-selected, .timeline-marker[aria-expanded="true"] { z-index: 2; outline: 2px solid var(--primary); outline-offset: 2px; }
.timeline-choices { display: grid; gap: 6px; margin-top: 10px; }
.timeline-choices .button { justify-content: flex-start; text-align: start; white-space: normal; overflow-wrap: anywhere; }
.timeline-choices [aria-pressed="true"] { background: var(--primary-tint); border-color: var(--primary); }
.findings-panel select { min-inline-size: 110px; max-inline-size: 140px; min-block-size: 40px; font-size: 13px; }
.finding-list { display: grid; gap: 14px; }
.finding {
  scroll-margin: 16px; padding: clamp(13px, 1.5vw, 21px); display: grid; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px; min-width: 0; overflow-wrap: anywhere;
}
.finding.is-selected { border-color: #9a9df0; box-shadow: 0 0 0 3px #eef0ff; }
.finding-head, .finding-kicker { display: flex; align-items: start; justify-content: space-between; gap: 6px; }
.finding-kicker { align-items: center; justify-content: flex-start; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.finding-head h3 { margin-top: 6px; font-size: 17px; }
.time-button { background: var(--primary-tint); color: var(--primary-dark); padding: 4px 8px; min-height: 32px; font-size: 12px; }
.time-button:hover { background: #dadeff; }
.time-button svg { inline-size: 13px; block-size: 13px; }
.finding-source, .finding-action { padding: 11px 13px; border-radius: 10px; background: var(--surface-tint); }
.finding-action { background: var(--primary-tint); }
.source-label { font-size: 12px; font-weight: 650; color: var(--primary-dark); }
.finding-source blockquote, .finding-reason p, .finding-action p { font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.finding-reason strong, .finding-action strong { font-size: 13px; }
.finding-reason-key { color: var(--ink); font-weight: 650; }
.finding-reason:has(.finding-reason-details) .finding-reason-key {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.finding-reason:has(.finding-reason-details[open]) .finding-reason-key { display: none; }
.finding-reason-details { margin-top: 5px; }
.finding-reason-details summary { width: fit-content; color: var(--primary-dark); font-size: 13px; cursor: pointer; }
.frame-link {
  display: grid; grid-template-columns: min(130px, 50%) minmax(0, 1fr); align-items: center; gap: 8px;
  margin-top: 6px; color: var(--primary-dark); font-size: 11px;
}
.frame-link > span { display: flex; align-items: center; gap: 4px; }
.frame-link svg { inline-size: 13px; block-size: 13px; }
.frame-link:hover > span { text-decoration: underline; }
.evidence-frame { aspect-ratio: 16 / 9; object-fit: contain; border-radius: 6px; width: 100%; background: #10162a; }
.report-extras { margin-top: var(--layout-gap); }
.report-materials { margin-top: var(--layout-gap); }
.report-materials > summary { width: fit-content; color: var(--primary-dark); font-size: 13px; font-weight: 650; }
.published-copy p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.proof-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }

.rule-group + .rule-group { margin-block-start: calc(1.5 * var(--layout-gap)); }
.rule-group > h2 { margin-block-end: 12px; font-size: clamp(18px, 2vw, 23px); }
.rules-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); }
.knowledge-tabs, .knowledge-entry-title, .knowledge-evidence { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.knowledge-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.field.knowledge-status-filter { display: flex; align-items: center; gap: 8px; }
.knowledge-status-filter select { min-inline-size: 108px; }
.button.subtle { background: transparent; color: var(--primary-dark); border: 1px solid transparent; }
.button.subtle:hover { background: var(--primary-tint); }
.button.knowledge-delete { color: var(--danger); }
.button.knowledge-delete:hover { background: var(--danger-bg); }
.knowledge-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.knowledge-list > .empty { grid-column: 1 / -1; }
.knowledge-entry, .knowledge-trial-result { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; overflow-wrap: anywhere; }
.knowledge-entry-head { display: grid; gap: 4px; }
.knowledge-entry-title h3, .knowledge-trial-result h3 { font-size: 16px; }
.knowledge-entry .muted, .knowledge-evidence, .knowledge-trial-result .muted { font-size: 13px; }
.knowledge-quote { padding: 8px 12px; border-inline-start: 3px solid var(--field-focus); background: var(--surface-tint); white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-history summary, .knowledge-word-hits summary { font-weight: 650; color: var(--ink); }
.knowledge-dialog { width: min(94vw, 690px); max-height: 90dvh; }
.knowledge-fields, .knowledge-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.knowledge-variants { display: grid; gap: 4px; }
.knowledge-variant-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.knowledge-variant-status { color: var(--muted); }
.knowledge-warning { padding: 8px 12px; border-radius: 9px; background: var(--warning-bg); color: var(--warning); }
.knowledge-report { margin-block-start: 16px; padding-block-start: 12px; border-top: 1px solid var(--line); }
.knowledge-report > .card-head { padding: 0 0 12px; }
.knowledge-word-hits > div { display: grid; gap: 4px; margin-block-start: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.law-card { grid-column: 1 / -1; background: linear-gradient(110deg, #fff 35%, #f2f3ff); }
.rule-summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 13px; padding: 19px var(--panel-padding); text-align: start;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.rule-summary:hover { background-color: #f8f9ff; border-color: #bec6ec; }
.rule-summary strong { font-size: 16px; overflow-wrap: anywhere; }
.rule-summary.law-card strong { font-size: 19px; }
.rule-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.rule-chevron { inline-size: 18px; block-size: 18px; color: var(--muted); }
.rule-summary:hover .rule-chevron { color: var(--primary-dark); }
.rule-drawer {
  --drawer-offset: translateX(100%);
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  inline-size: min(100%, 520px); block-size: 100%; max-inline-size: none; max-block-size: none;
  grid-template-rows: auto minmax(0, 1fr); overflow: hidden; overscroll-behavior: contain;
  border: 0; border-inline-start: 1px solid var(--line); border-radius: 22px 0 0 22px;
  color: var(--text); background: var(--surface); box-shadow: -14px 0 48px #191d3d29;
}
.rule-drawer[open] { display: grid; }
.rule-drawer::backdrop { background-color: #191d3d52; }
.rule-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: var(--panel-padding); border-bottom: 1px solid var(--line); background: var(--surface-tint);
}
.rule-drawer-head h2 { font-size: clamp(19px, 2.4vw, 24px); }
.rule-drawer-head .icon-button { inline-size: 40px; block-size: 40px; }
.rule-content { overflow: auto; overscroll-behavior: contain; padding: var(--panel-padding); }
.rule-details, .law-content { display: grid; gap: 16px; }
.rule-detail-section { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-tint); }
.rule-detail-section h3 { font-size: 15px; margin-bottom: 6px; }
.rule-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
.law-chapters, .law-chapter { display: grid; gap: 8px; min-width: 0; }
.law-chapter { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-tint); }
.law-chapter h3 { font-size: 16px; }
.legal-reference { min-width: 0; }
.legal-reference summary { color: var(--primary-dark); cursor: pointer; width: fit-content; }
.legal-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.model-settings { display: grid; gap: var(--layout-gap); }
.model-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 14px; align-items: start; }
.model-role {
  display: grid; gap: 14px; min-width: 0; border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(13px, 1.4vw, 20px); background: var(--surface-tint);
}
.model-role-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.model-role-main h3 { grid-column: 1 / -1; font-size: 16px; overflow-wrap: anywhere; }
.model-role-main > .button { min-height: 44px; margin-top: 29px; }
.model-role-main .field input, .model-advanced .field input { font-family: "Cascadia Mono", "Consolas", monospace; }
.model-address-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.model-address-controls input { flex: 1 1 175px; }
.model-address-controls select { flex: 0 1 auto; font-size: 13px; }
.model-advanced { min-width: 0; font-size: 13px; }
.model-advanced summary {
  display: flex; align-items: center; gap: 3px; width: fit-content;
  list-style: none; color: var(--muted); font-weight: 650;
}
.model-advanced summary::-webkit-details-marker { display: none; }
.model-advanced summary:hover { color: var(--primary-dark); }
.model-advanced summary svg { inline-size: 12px; block-size: 12px; }
.model-advanced[open] summary svg { transform: rotate(90deg); }
.model-advanced-fields { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .model-advanced summary svg { transition: transform 220ms ease; }
  .model-advanced::details-content {
    display: grid;
    grid-template-rows: 0fr;
    content-visibility: hidden;
    overflow: clip;
    overflow-clip-margin: 6px;
    opacity: 0;
    transition: grid-template-rows 220ms cubic-bezier(.22, .65, .32, 1),
      opacity 220ms ease, content-visibility 220ms allow-discrete;
  }
  .model-advanced[open]::details-content { grid-template-rows: 1fr; content-visibility: visible; opacity: 1; }
  .model-advanced-content { min-block-size: 0; }
}
.model-checkbox { display: flex; gap: 6px; align-items: flex-start; width: fit-content; cursor: pointer; }
.model-checkbox input { margin: 3px 0 0; accent-color: var(--primary); }
.model-save .button { justify-self: end; }

.dialog { border: 1px solid var(--line); border-radius: var(--radius); width: min(94vw, 480px); padding: var(--panel-padding); color: var(--ink); box-shadow: 0 18px 56px #1a224042; }
.dialog::backdrop { background: #151a3d65; }
.sample-metric { position: relative; }
.sample-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  background: transparent; color: var(--primary-dark); font-weight: 700; font-size: inherit;
}
.sample-trigger::after { content: ''; position: absolute; inset: 0; border-radius: 11px; }
.sample-metric:hover { background: var(--primary-tint); }
.sample-trigger span { text-decoration: underline; text-underline-offset: 3px; }
.sample-trigger svg { inline-size: 15px; block-size: 15px; }
.sample-dialog { width: min(1100px, 95vw); max-height: 90dvh; padding: 0; }
.sample-dialog > .dialog-head { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sample-body { overflow-y: auto; max-height: calc(90dvh - 76px); padding: 18px; }
.sample-body > .notice { margin-bottom: 14px; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(195px, 100%), 1fr)); gap: 12px; }
.sample-thumbnail {
  display: grid; align-content: start; gap: 8px; min-width: 0; min-height: 115px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-tint);
  color: var(--ink); text-align: left; font-size: 13px;
}
.sample-thumbnail:hover { border-color: var(--primary); background: var(--primary-tint); }
.sample-thumbnail img { width: 100%; height: 115px; object-fit: contain; background: #11182c; border-radius: 7px; }
.sample-analysis { display: grid; gap: 8px; min-width: 0; line-height: 1.5; }
.sample-analysis-entry { display: grid; gap: 3px; min-width: 0; }
.sample-analysis-entry strong { font-size: 12px; color: var(--muted); }
.sample-analysis-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-thumbnail .sample-analysis-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.sample-thumbnail .sample-judgment-reason { -webkit-line-clamp: 3; }
.sample-judgment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sample-judgment-article { color: var(--muted); font-size: 12px; }
.sample-analysis-detail { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-tint); }
.sample-viewer { display: grid; gap: 12px; }
.sample-image { width: 100%; height: min(58dvh, 620px); object-fit: contain; background: #11182c; border-radius: 10px; }
.sample-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sample-caption { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h2 { font-size: 21px; }
.note-dialog-filename { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.toast {
  z-index: 8; position: fixed; inset: auto 18px 18px auto; max-width: calc(100% - 36px);
  background: #222b4d; color: white; padding: 10px 14px; border-radius: 10px; box-shadow: 0 12px 36px #1a224034;
}

.login-body { background: var(--page); min-height: 100dvh; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100dvh; }
.login-intro {
  position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
  isolation: isolate; min-height: 575px; padding: 40px clamp(20px, 4vw, 62px); color: #e6e9ff;
  background: radial-gradient(ellipse at 56% 79%, #37316a, transparent 62%),
    radial-gradient(ellipse at 0 0, #2c3666, transparent 57%), linear-gradient(155deg, #171b37, #1c2043);
}
.login-intro::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(#aeb6ff16 1px, transparent 1px), linear-gradient(90deg, #aeb6ff16 1px, transparent 1px);
  background-size: 34px 34px; background-position: center;
  mask-image: radial-gradient(ellipse 72% 50% at 54% 82%, #000, transparent 93%);
}
.login-intro-main { width: min(100%, 590px); }
.login-brand { display: inline-grid; grid-template-columns: 1fr auto 1fr; padding: 0; text-align: center; }
.login-brand strong { color: #fff; font-size: clamp(14px, 1.25vw, 17px); }
.login-brand .brand-mark {
  background: linear-gradient(145deg, #7779ec, #5354c2);
  box-shadow: inset 0 0 0 1px #bcc1ff54, 0 7px 20px #10122954;
}
.login-intro-main h1 {
  margin-top: clamp(23px, 3vw, 38px); color: #fff; font-size: clamp(32px, 4vw, 62px);
  line-height: 1.16; letter-spacing: -.04em;
}
.login-intro-main h1 span { color: #cdd0ff; }
.login-intro-main > p {
  max-width: 36em; margin: 17px auto 0; color: #d3daf2;
  font-size: clamp(13px, 1.2vw, 16px); line-height: 1.75; text-wrap: balance;
}
.login-intro-main > p span { display: inline-block; }
.login-preview {
  width: min(100%, 492px); margin: clamp(22px, 4vw, 39px) auto 0; padding: clamp(13px, 1.5vw, 19px);
  border: 1px solid #aab0ff45; border-radius: 18px; text-align: start;
  background: linear-gradient(145deg, #292e56, #202344);
  box-shadow: 0 20px 42px #0b0e2973, inset 0 1px #fff1;
}
.login-preview-head, .login-preview-title { display: flex; align-items: center; }
.login-preview-head { justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #bdc6ff2b; }
.login-preview-title { gap: 7px; color: #f0f1ff; font-size: 13px; font-weight: 650; }
.login-preview-title svg { width: 17px; height: 17px; color: #b7beff; }
.login-preview-time { color: #f2f4ff; font: 600 12px "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.login-preview-time span { color: #b7c1e5; }
.login-preview-timeline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-top: 14px; }
.login-preview-labels, .login-preview-lanes { display: grid; grid-template-rows: 34px 26px 22px; gap: 8px; }
.login-preview-labels { align-items: center; padding-inline-end: 3px; color: #c9d2f4; font-size: 11px; white-space: nowrap; }
.login-preview-lanes { position: relative; }
.login-preview-video {
  border-radius: 5px;
  background: radial-gradient(ellipse at 60% 105%, #9b98fb99, transparent 70%) 0 0 / 25% 100%,
    repeating-linear-gradient(90deg, #43477e 0 calc(25% - 3px), #202344 0 25%);
}
.login-preview-voice {
  border-radius: 5px; background: #263653;
}
.login-preview-voice::before {
  content: ''; display: block; height: 100%; background: repeating-linear-gradient(90deg, #83d7d0 0 2px, transparent 2px 4px);
  clip-path: polygon(
    0 46%, 5% 32%, 10% 47%, 15% 16%, 21% 33%, 26% 12%, 30% 41%, 37% 43%, 42% 22%, 48% 10%,
    54% 40%, 60% 32%, 68% 44%, 74% 15%, 79% 34%, 85% 23%, 90% 44%, 96% 24%, 100% 46%,
    100% 55%, 96% 73%, 90% 57%, 85% 75%, 79% 66%, 74% 85%, 68% 56%, 60% 69%, 54% 62%, 48% 90%,
    42% 77%, 37% 57%, 30% 60%, 26% 86%, 21% 68%, 15% 84%, 10% 55%, 5% 69%, 0 54%
  );
}
.login-preview-captions {
  border-radius: 5px;
  background: linear-gradient(90deg, #605691 23%, transparent 23% 25%, #7465b2 25% 53%, transparent 53% 55%, #4c477c 55% 75%, transparent 75% 77%, #605691 77% 96%, transparent 96%);
}
.login-preview-playhead {
  position: absolute; inset: -4px auto -2px 43%; width: 2px;
  background: #dddfff; box-shadow: 0 0 10px #b4baffb0;
}
.login-preview-playhead::before {
  content: ''; position: absolute; inset: 0 auto auto 50%; width: 9px; height: 7px;
  transform: translateX(-50%); border-radius: 3px; background: #dddfff;
}
.login-preview-title svg, .login-key svg { stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.login-panel {
  display: grid; place-items: center; padding: 32px clamp(18px, 4vw, 76px);
  background: radial-gradient(ellipse at 75% 5%, #e4e7fd, transparent 64%), var(--page);
}
.login-form-wrap {
  width: min(100%, 486px); min-width: 0; padding: clamp(20px, 3vw, 46px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 23px;
  box-shadow: 0 18px 55px #272f6212;
}
.login-key { display: grid; place-items: center; inline-size: 52px; block-size: 52px; margin-bottom: 19px; border-radius: 14px; background: var(--primary-tint); color: var(--primary-dark); }
.login-key svg { inline-size: 25px; block-size: 25px; }
.login-form-wrap h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; letter-spacing: -.035em; }
.login-form-wrap > p { margin-top: 8px; margin-bottom: 24px; color: var(--muted); }
.login-form-wrap .form-stack { gap: 18px; }
.login-form-wrap input, .login-form-wrap button { min-height: 48px; }

@media (prefers-reduced-motion: no-preference) {
  .login-form-wrap { animation: page-entry 160ms cubic-bezier(.2, .65, .3, 1); }
  .rule-drawer {
    transform: var(--drawer-offset);
    transition: transform 250ms cubic-bezier(.22, .65, .32, 1), overlay 250ms allow-discrete, display 250ms allow-discrete;
  }
  .rule-drawer[open] { transform: none; }
  .rule-drawer::backdrop {
    background-color: transparent;
    transition: background-color 250ms ease, overlay 250ms allow-discrete, display 250ms allow-discrete;
  }
  .rule-drawer[open]::backdrop { background-color: #191d3d52; }
  @starting-style {
    .rule-drawer[open] { transform: var(--drawer-offset); }
    .rule-drawer[open]::backdrop { background-color: transparent; }
  }
}
@keyframes page-entry {
  from { opacity: .72; transform: translateY(5px); }
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr) minmax(236px, 34%); }
  .recent-item { grid-template-columns: 36px minmax(0, 1fr); }
  .recent-item .badge { grid-column: 2; justify-self: start; }
}
@media (min-width: 881px) {
  .workspace:has(> .report-grid) {
    --layout-gap: 12px;
    --panel-padding: clamp(12px, 1.2vw, 18px);
    padding-block-end: 14px;
  }
  .workspace:has(> .page-heading .records-back) { padding-block-start: 14px; }
  .page-heading:has(.records-back) { align-items: flex-start; }
  .page-heading:has(.records-back) h1 { font-size: 27px; }
  .page-heading:has(.records-back) p { margin-top: 4px; }
  .workspace:has(> .report-grid) .heading-actions .button { min-height: 36px; padding-block: 5px; }
  .summary-card { gap: 8px 12px; }
  .summary-card .coverage dd { font-size: 13px; }
  .report-summary-details > :is(.model-details:not([open]), .summary-note) { width: auto; }
  .report-grid .card-head { padding-bottom: 10px; }
  .findings-panel {
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    min-width: 0; max-block-size: 68dvh; overflow: hidden;
  }
  .findings-scroll {
    min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable;
    padding-top: 4px;
  }
  .findings-scroll:focus-visible { outline-offset: -3px; border-radius: 12px; }
  .finding-list { gap: 10px; }
  .finding { gap: 9px; padding: 12px 14px; }
  .finding-source, .finding-action { padding: 8px 10px; }
  .timeline-wrap { margin-top: 9px; }
  .timeline { padding-block: 13px; }
}
@media (min-width: 881px) and (min-height: 660px) {
  .main-shell:has(.report-grid) { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .workspace:has(> .report-grid) {
    display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: var(--layout-gap); width: 100%; min-height: 0;
  }
  .workspace:has(> .report-grid) > :is(.page-heading, .summary-card, .report-materials) { margin-block: 0; }
  .report-summary-details { max-block-size: min(14dvh, 132px); overflow-y: auto; overscroll-behavior-y: contain; padding: 3px; }
  .report-grid { min-height: 0; align-items: stretch; }
  .report-grid > .card { min-height: 0; }
  .findings-panel { max-block-size: none; }
  .player-card {
    position: static; align-self: start; max-block-size: 100%; display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .player-card > .card-content { display: flex; flex-direction: column; min-height: 0; }
  .video-stage { flex: 1 1 auto; min-height: 0; height: min(34dvh, 340px); max-height: none; aspect-ratio: auto; }
  .timeline-wrap { flex: 0 0 auto; }
  .timeline-choices,
  .report-materials[open] > .report-extras { max-block-size: min(18dvh, 170px); overflow-y: auto; overscroll-behavior-y: contain; }
  .report-extras { margin-top: 8px; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .brand { padding-inline: 3px; gap: 8px; }
  .brand strong { font-size: 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .workspace-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .page-heading:has(.heading-actions) { flex-direction: column; align-items: flex-start; gap: 12px; }
  .report-grid { grid-template-columns: 1fr; }
  .player-card { position: static; }
}
@media (max-width: 760px) {
  .progress-steps { grid-template-columns: 1fr; }
  .progress-steps li { grid-template-columns: auto minmax(0, 1fr); align-items: center; min-height: 0; }
}
@media (max-width: 650px) {
  :root { --gutter: 15px; --panel-padding: 15px; }
  .app-shell { display: block; }
  .sidebar {
    display: none; position: absolute; inset: 62px auto auto 0; width: min(255px, 94%); max-height: calc(100dvh - 64px);
    height: auto; overflow-y: auto; padding: 18px 13px; box-shadow: 0 16px 32px #1a22402b;
    border-radius: 0 0 15px 0;
  }
  .sidebar.menu-open { display: flex; }
  .sidebar #workspace-nav { margin-top: 18px; }
  .menu-toggle { display: inline-flex !important; margin-inline-start: -3px; }
  .topbar { height: 62px; justify-content: flex-start; padding-inline: var(--gutter); gap: 7px; }
  .breadcrumb { gap: 5px; white-space: normal; }
  .breadcrumb-root { display: none; }
  .breadcrumb svg { display: none; }
  .workspace { padding-block: 25px 36px; }
  .page-heading { align-items: flex-start; }
  .page-heading p { font-size: 14px; }
  .heading-main:has(> .records-back) { column-gap: 10px; }
  .heading-main > .records-back { grid-row: auto; padding-inline: 11px; }
  .heading-main:has(> .records-back) > p { grid-column: 1 / -1; }
  .heading-actions .button { min-height: 38px; padding: 7px 9px; font-size: 13px; }
  .card-head { gap: 8px; }
  .card-title { gap: 9px; }
  .section-icon { inline-size: 36px; block-size: 36px; }
  .rule-drawer {
    --drawer-offset: translateY(100%);
    inset-block-start: auto; inline-size: 100%; block-size: auto; max-block-size: 85dvh;
    border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px #191d3d29;
  }
  .rule-content { padding-block-end: max(var(--panel-padding), env(safe-area-inset-bottom)); }
  .workspace-aside { grid-template-columns: 1fr; }
  .recent-item { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .recent-item .badge { grid-column: auto; justify-self: end; }
  .form-grid { gap: 8px; }
  .table-controls { align-items: stretch; flex-direction: column; padding: 12px; }
  .record-calendar { position-area: block-end span-all; position-try-fallbacks: flip-block, --calendar-centered; justify-self: center; }
  .search-box { width: 100%; }
  .list-count { margin-inline-start: auto; }
  .summary-card { gap: 12px; }
  .proof-actions { grid-template-columns: minmax(0, 1fr); }
  .proof-actions .button { justify-self: start; }
  .model-shared .card-content, .model-advanced .form-grid { grid-template-columns: minmax(0, 1fr); }
  .model-tests .card-head { flex-wrap: wrap; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 0; padding: 26px 20px 30px; }
  .login-intro-main h1 { margin-top: 20px; font-size: clamp(29px, 8vw, 39px); }
  .login-intro-main > p { margin-top: 9px; }
  .login-preview { display: none; }
  .login-panel { padding: 24px 16px 36px; }
  .login-form-wrap { border-radius: var(--radius); }
}
@media (max-width: 330px) {
  .page-heading { flex-direction: column; gap: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { margin-inline-start: auto; }
  .recent-item { grid-template-columns: 36px minmax(0, 1fr); }
  .recent-item .badge { grid-column: 2; justify-self: start; }
  .progress-card .card-head { flex-wrap: wrap; }
  .model-role-main { grid-template-columns: 1fr; }
  .model-role-main > .button { justify-self: start; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
