:root {
  --brand-950: #09251f;
  --brand-900: #0f3329;
  --brand-800: #145a42;
  --brand-700: #0f7b5f;
  --brand-500: #20a878;
  --brand-100: #e8f5ef;
  --ink-900: #16233a;
  --ink-700: #35465a;
  --ink-600: #667788;
  --ink-300: #aab7c0;
  --surface-0: #ffffff;
  --surface-50: #f6faf8;
  --surface-100: #eff8f3;
  --line: rgba(38, 83, 70, 0.14);
  --line-strong: rgba(38, 83, 70, 0.22);
  --warn: #d98621;
  --warn-bg: #fff6e7;
  --danger: #cf3f3f;
  --danger-bg: #fff0ed;
  --info: #2f75bd;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 45px rgba(25, 50, 45, 0.08);
  --shadow-soft: 0 8px 20px rgba(23, 54, 48, 0.045);
  --bg: var(--surface-50);
  --panel: var(--surface-0);
  --panel-soft: var(--surface-50);
  --text: var(--ink-900);
  --ink: var(--ink-900);
  --muted: var(--ink-600);
  --green: var(--brand-700);
  --green-dark: var(--brand-800);
  --green-soft: var(--brand-100);
  --blue: var(--info);
  --amber: var(--warn);
  --red: var(--danger);
  --scrollbar-track: rgba(221, 231, 232, 0.2);
  --scrollbar-track-active: rgba(222, 238, 233, 0.78);
  --scrollbar-thumb: rgba(105, 128, 132, 0.26);
  --scrollbar-thumb-hover: rgba(15, 123, 95, 0.54);
  --scrollbar-thumb-active: rgba(15, 123, 95, 0.72);
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 420ms;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  scrollbar-width: thin;
}

* {
  scrollbar-color: var(--scrollbar-thumb) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  background-color: var(--scrollbar-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

*:hover,
*:focus-within {
  scrollbar-color: var(--scrollbar-thumb-hover) var(--scrollbar-track-active);
}

*:hover::-webkit-scrollbar-track,
*:focus-within::-webkit-scrollbar-track {
  background: var(--scrollbar-track-active);
}

*:hover::-webkit-scrollbar-thumb,
*:focus-within::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-active);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.workbench::-webkit-scrollbar,
.preview::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.workbook-table-wrap::-webkit-scrollbar,
.sheet-toolbar::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}

.workbench::-webkit-scrollbar-track,
.preview::-webkit-scrollbar-track,
.workbook-table-wrap::-webkit-scrollbar-track,
.sheet-toolbar::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.workbench:hover,
.workbench:focus-within,
.workbench.scroll-area-active,
.preview:hover,
.preview:focus-within,
.preview.scroll-area-active,
.modal-body:hover,
.modal-body:focus-within,
.modal-body.scroll-area-active,
.workbook-table-wrap:hover,
.workbook-table-wrap:focus-within,
.workbook-table-wrap.scroll-area-active,
.sheet-toolbar:hover,
.sheet-toolbar:focus-within,
.sheet-toolbar.scroll-area-active,
.scroll-area-active {
  scrollbar-color: var(--scrollbar-thumb-active) var(--scrollbar-track-active);
}

.workbench:hover::-webkit-scrollbar-thumb,
.workbench:focus-within::-webkit-scrollbar-thumb,
.workbench.scroll-area-active::-webkit-scrollbar-thumb,
.preview:hover::-webkit-scrollbar-thumb,
.preview:focus-within::-webkit-scrollbar-thumb,
.preview.scroll-area-active::-webkit-scrollbar-thumb,
.modal-body:hover::-webkit-scrollbar-thumb,
.modal-body:focus-within::-webkit-scrollbar-thumb,
.modal-body.scroll-area-active::-webkit-scrollbar-thumb,
.workbook-table-wrap:hover::-webkit-scrollbar-thumb,
.workbook-table-wrap:focus-within::-webkit-scrollbar-thumb,
.workbook-table-wrap.scroll-area-active::-webkit-scrollbar-thumb,
.sheet-toolbar:hover::-webkit-scrollbar-thumb,
.sheet-toolbar:focus-within::-webkit-scrollbar-thumb,
.sheet-toolbar.scroll-area-active::-webkit-scrollbar-thumb,
.scroll-area-active::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-active);
}

.workbench:hover::-webkit-scrollbar-track,
.workbench:focus-within::-webkit-scrollbar-track,
.workbench.scroll-area-active::-webkit-scrollbar-track,
.preview:hover::-webkit-scrollbar-track,
.preview:focus-within::-webkit-scrollbar-track,
.preview.scroll-area-active::-webkit-scrollbar-track,
.modal-body:hover::-webkit-scrollbar-track,
.modal-body:focus-within::-webkit-scrollbar-track,
.modal-body.scroll-area-active::-webkit-scrollbar-track,
.workbook-table-wrap:hover::-webkit-scrollbar-track,
.workbook-table-wrap:focus-within::-webkit-scrollbar-track,
.workbook-table-wrap.scroll-area-active::-webkit-scrollbar-track,
.sheet-toolbar:hover::-webkit-scrollbar-track,
.sheet-toolbar:focus-within::-webkit-scrollbar-track,
.sheet-toolbar.scroll-area-active::-webkit-scrollbar-track,
.scroll-area-active::-webkit-scrollbar-track {
  background: var(--scrollbar-track-active);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  color: var(--text);
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}

button:hover {
  border-color: rgba(15, 123, 95, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

button:disabled {
  color: var(--ink-300);
  background: #f3f6f7;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 123, 95, 0.16);
}

.primary-action:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 12px 26px rgba(15, 123, 95, 0.2);
}

.primary-action:disabled,
.primary-action:disabled:hover {
  color: #8c9aa1;
  background: #f3f6f7;
  border-color: #d5e0e5;
  box-shadow: none;
  cursor: default;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

input[type="file"] {
  color: transparent;
}

input[type="file"]::file-selector-button {
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 74px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 108, 155, 0.13);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(216, 229, 228, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 229, 228, 0.38) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, #ffffff 0, #f8fbfa 38%, #edf3f2 100%);
  background-size: 32px 32px, 32px 32px, auto;
  transition: opacity 360ms ease, visibility 360ms ease, transform 360ms ease;
}

.app-loader.loaded {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.app-loader-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 14px;
  min-width: min(340px, calc(100vw - 48px));
  padding: 24px 24px 22px;
  border: 1px solid rgba(195, 216, 211, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 72px rgba(19, 51, 43, 0.13);
  backdrop-filter: blur(12px);
  animation: loader-enter 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-loader.loaded .app-loader-card {
  animation: loader-exit 380ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.app-loader-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 90, 66, 0.14);
}

.app-loader-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.app-loader-copy {
  text-align: center;
}

.app-loader-copy b,
.app-loader-copy span {
  display: block;
}

.app-loader-copy b {
  font-size: 24px;
  line-height: 1.1;
}

.app-loader-copy span {
  margin-top: 5px;
  color: var(--muted);
}

.app-loader-rail {
  position: relative;
  width: min(260px, 70vw);
  height: 3px;
  margin-top: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: #dce8e6;
}

.app-loader-rail span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(29, 124, 90, 0), var(--green), rgba(29, 124, 90, 0.95));
  animation: loader-rail 1.15s cubic-bezier(0.66, 0, 0.34, 1) infinite;
}

.landing-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f7faf9;
}

.landing-head {
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.landing-brand > div {
  min-width: 0;
}

.landing-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.landing-brand b {
  display: block;
  font-size: 22px;
}

.landing-brand span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.portal-body {
  background: #f7faf9;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-nav a,
.portal-nav button,
.primary-link,
.secondary-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.portal-nav button {
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.primary-link {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.secondary-link {
  background: #fff;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-map-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.portal-map-card h2 {
  font-size: 20px;
}

.portal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.portal-steps li {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.portal-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.portal-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(33, 139, 98, 0.16), transparent 34%),
    linear-gradient(135deg, #f7faf9 0%, #eef6f2 48%, #f9fbfa 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: fixed;
  top: 86px;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(24, 78, 60, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 78, 60, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

.login-shell {
  width: min(920px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.login-shell-polished {
  width: min(1080px, calc(100vw - 36px));
  grid-template-columns: minmax(340px, 460px) minmax(320px, 1fr);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.login-shell-minimal {
  width: min(468px, calc(100vw - 36px));
  grid-template-columns: 1fr;
  padding: clamp(38px, 8vh, 84px) 0;
}

.login-shell-minimal .login-card {
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(16, 46, 36, 0.1);
}

.login-shell-minimal .login-card-wide h1 {
  font-size: 34px;
}

.login-card-wide h1 {
  font-size: 28px;
  line-height: 1.15;
}

.login-intro {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.login-hint {
  min-height: 20px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.login-hint.warn {
  border-color: #f0d3a2;
  background: #fff9ed;
  color: #7a4a06;
}

.login-hint.error {
  border-color: #efb9b0;
  background: #fff5f3;
  color: #9c2f25;
}

.login-hint.ok {
  border-color: #bddbce;
  background: #f4fbf7;
  color: var(--green-dark);
}

.login-limit-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.password-field label {
  min-width: 0;
}

.password-field button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 8px 12px;
  font-weight: 800;
}

.login-access-grid {
  display: grid;
  gap: 10px;
}

.login-access-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.login-access-grid b {
  color: var(--text);
}

.login-access-grid span {
  color: var(--muted);
  line-height: 1.4;
}

.login-request-card {
  border: 1px solid #cfe2d8;
  border-radius: 10px;
  background: #f7fbf9;
  padding: 13px;
  display: grid;
  gap: 10px;
}

.login-request-card b {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.login-request-card span,
.login-request-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.login-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  gap: 8px;
}

.login-request-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  font: inherit;
}

.login-request-row button {
  min-height: 42px;
  white-space: nowrap;
}

.login-request-hint {
  margin: 0;
}

.login-request-hint.warn {
  color: #8a5a10;
}

.login-request-hint.ok {
  color: var(--green-dark);
}

.login-visual-card {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(192, 217, 207, 0.52);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(10, 65, 48, 0.96), rgba(18, 89, 65, 0.92)),
    #0b3d2f;
  box-shadow: 0 24px 70px rgba(13, 68, 50, 0.22);
  color: #fff;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 18px;
  isolation: isolate;
  animation: login-card-rise 420ms ease both;
}

.login-visual-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 22%, rgba(187, 244, 220, 0.34), transparent 24%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.16), transparent 28%);
  animation: login-orbit 12s ease-in-out infinite alternate;
}

.login-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.login-visual-mark {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.54);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.login-visual-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-visual-copy {
  display: grid;
  gap: 9px;
  max-width: 500px;
  margin-top: 82px;
}

.login-visual-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.login-visual-copy p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.login-visual-copy .eyebrow {
  color: rgba(181, 239, 215, 0.94);
}

.login-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.login-pipeline span {
  min-height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 850;
}

.login-pipeline i {
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.36);
}

.login-doc-stack {
  display: grid;
  gap: 10px;
  max-width: 390px;
}

.login-doc-stack article {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-doc-stack b {
  color: #fff;
}

.login-doc-stack span {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

@keyframes login-card-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-orbit {
  from {
    transform: translate3d(-10px, 8px, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(16px, -12px, 0) rotate(3deg);
  }
}

.presentation-landing {
  display: block;
  background: #f7faf9;
}

.landing-head-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.presentation-hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 72px clamp(20px, 8vw, 140px);
  background-image: url("/assets/landing-hero?v=20260622-fastassets-1");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.sales-hero {
  min-height: 690px;
}

.hero-copy {
  width: min(620px, 100%);
  min-width: 0;
  display: grid;
  gap: 20px;
}

.hero-copy h1 {
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  color: #3f525c;
  font-size: 20px;
  line-height: 1.55;
  max-width: 600px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-width: 640px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  display: grid;
  gap: 4px;
  line-height: 1.3;
  min-height: 78px;
  padding: 12px;
}

.hero-proof b {
  color: var(--green-dark);
  font-size: 15px;
}

.nav-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

.landing-band {
  padding: 72px clamp(20px, 7vw, 120px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.soft-band {
  background: #f7faf9;
}

.problem-band {
  background: #fff;
}

.band-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 26px;
}

.band-head h2,
.landing-cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.impact-grid,
.feature-grid,
.roles-grid,
.pain-grid,
.solution-grid,
.usecase-grid {
  display: grid;
  gap: 12px;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pain-grid,
.usecase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.solution-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.impact-grid article,
.feature-grid article,
.roles-grid article,
.process-line article,
.pain-grid article,
.solution-card,
.usecase-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.sales-stats article {
  min-height: 156px;
}

.impact-grid b {
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.impact-grid span,
.feature-grid span,
.roles-grid span,
.process-line p,
.pain-grid span,
.solution-card p,
.usecase-grid span,
.login-side-card p {
  color: var(--muted);
  line-height: 1.45;
}

.pain-grid article {
  background: #fbf7f0;
  border-color: #ead8bd;
}

.pain-grid b {
  color: var(--amber);
}

.solution-card {
  align-content: start;
  min-height: 230px;
}

.solution-card b {
  font-size: 22px;
  line-height: 1.18;
}

.strong-card {
  background: #155f47;
  border-color: #155f47;
  color: #fff;
}

.strong-card p,
.strong-card .card-kicker {
  color: #d4eee4;
}

.card-kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-line article span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f1ed;
  color: var(--green-dark);
  font-weight: 800;
}

.sales-process article {
  min-height: 210px;
}

.control-band {
  background: #fff;
}

.feature-bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-bento article {
  min-height: 162px;
}

.feature-bento article:nth-child(1),
.feature-bento article:nth-child(6) {
  background: #f1f7fb;
  border-color: #c9dcea;
}

.feature-bento article:nth-child(3) {
  background: #fbf7f0;
  border-color: #ead8bd;
}

.role-cards article {
  min-height: 148px;
}

.usecase-grid article {
  min-height: 150px;
}

.landing-cta {
  padding: 42px clamp(20px, 7vw, 120px);
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-cta .eyebrow {
  color: #b8ded0;
}

.landing-cta .primary-link {
  background: #fff;
  border-color: #fff;
  color: var(--green-dark);
}

.sales-cta {
  padding-top: 56px;
  padding-bottom: 56px;
}

.sales-cta p:not(.eyebrow) {
  color: #d4eee4;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 760px;
}

.clean-landing {
  background: #f7faf9;
}

.clean-hero {
  min-height: 620px;
  background-image:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.92) 38%, rgba(247, 250, 249, 0.2) 78%),
    url("/assets/landing-hero?v=20260622-fastassets-1");
  background-position: center;
  background-size: cover;
}

.clean-hero .hero-copy {
  width: min(680px, 100%);
  gap: 18px;
}

.clean-hero .hero-copy h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.03;
}

.clean-hero .hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #43555e;
  font-size: 19px;
}

.clean-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  max-width: 640px;
}

.clean-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 13px;
}

.clean-metrics dt {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.clean-metrics dd {
  color: var(--muted);
  line-height: 1.35;
  margin: 6px 0 0;
}

.clean-section {
  padding: 64px clamp(20px, 7vw, 120px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.muted-section {
  background: #f7faf9;
}

.clean-section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.clean-section-head h2,
.clean-split h2,
.clean-cta h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.clean-card-grid,
.clean-check-grid,
.clean-flow,
.access-list {
  display: grid;
  gap: 12px;
}

.clean-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clean-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clean-card-grid article,
.clean-check-grid article,
.clean-flow article,
.access-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
}

.clean-card-grid b,
.clean-check-grid b,
.clean-flow b,
.access-list b {
  font-size: 17px;
}

.clean-card-grid span,
.clean-check-grid span,
.clean-flow p,
.access-list span,
.clean-cta p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.clean-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clean-flow article {
  min-height: 178px;
}

.clean-flow article span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f1ed;
  color: var(--green-dark);
  display: grid;
  font-weight: 850;
  place-items: center;
}

.clean-check-grid article {
  min-height: 130px;
}

.clean-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: 30px;
  align-items: start;
}

.access-list {
  grid-template-columns: 1fr;
}

.access-list article {
  min-height: auto;
  padding: 16px 18px;
}

.clean-cta {
  padding-top: 50px;
  padding-bottom: 50px;
}

.clean-cta p:not(.eyebrow) {
  color: #d4eee4;
  margin-top: 10px;
}

.credential-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  padding: 14px;
}

.credential-box span {
  color: var(--muted);
}

.credential-box b {
  font-family: Consolas, "Courier New", monospace;
}

.safe-login-note b {
  font-family: inherit;
  font-size: 15px;
}

.landing-hero {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 38px;
  align-items: center;
  padding: 48px 0;
}

.landing-copy {
  display: grid;
  gap: 18px;
}

.landing-copy h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin-top: 10px;
}

.landing-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--muted);
  font-weight: 650;
}

.landing-metrics b {
  display: block;
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 2px;
}

.login-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.login-card h2 {
  font-size: 20px;
}

.login-card button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.login-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.login-card .login-hint {
  color: var(--muted);
  font-size: 13px;
}

.login-card .login-hint.warn {
  color: #7a4a06;
}

.login-card .login-hint.error {
  color: #9c2f25;
}

.login-card .login-hint.ok {
  color: var(--green-dark);
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(560px, 1fr) minmax(390px, 34vw);
  overflow: hidden;
  animation: app-shell-enter 260ms ease both;
}

.sidebar {
  background: #f7faf9;
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  overflow-x: hidden;
}

.sidebar button,
.sidebar input,
.sidebar select,
.sidebar a {
  min-width: 0;
}

.sidebar select {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 7px;
  background-color: #fff;
  font-size: 12px;
}

.sidebar button,
.sidebar a {
  overflow-wrap: anywhere;
}

.brand {
  min-height: 76px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
}

.brand-home {
  border-radius: 0 !important;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.brand-home:hover {
  background: #f8fbfa;
  box-shadow: inset 0 -1px 0 #d8e5e0;
}

.brand-home:focus-visible {
  outline: 2px solid rgba(29, 130, 88, .34);
  outline-offset: -4px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #cfe3da;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  padding: 3px;
  box-shadow:
    0 10px 22px rgba(15, 123, 95, 0.10),
    0 3px 10px rgba(24, 39, 46, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.brand h1 {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

#rootPath {
  display: none;
}

.stage-nav {
  padding: 10px;
  display: grid;
  gap: 5px;
}

.stage {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  border-color: transparent;
  border-radius: 8px;
  padding: 7px 8px;
  transition: background-color var(--motion-base) ease, border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.stage:hover,
.stage.active {
  background: #edf6f2;
  border-color: #cbe4d9;
}

.stage.active {
  box-shadow: none;
}

.stage.active .stage-index,
.stage.done .stage-index {
  background: var(--green);
  color: #fff;
}

.stage.warn .stage-index {
  background: #fff1dc;
  color: var(--amber);
}

.stage-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e6ecef;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  transition: background-color var(--motion-base) ease, color var(--motion-base) ease, transform var(--motion-base) ease;
}

.stage-index svg,
.utility-avatar svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage b {
  display: block;
  line-height: 1.15;
}

.stage > span:last-child {
  min-width: 0;
}

.stage small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.release-menu-group {
  width: 100%;
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, background-color var(--motion-base) ease;
}

.release-menu-group:has(.stage.active) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.release-menu-group .stage {
  padding: 7px 8px;
}

.release-menu-group .release-scenario-nav {
  display: none;
}

.release-scenario-nav {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  min-width: 0;
  overflow: visible;
}

.release-scenario-label {
  display: grid;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-nav-collapsible {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, background-color var(--motion-base) ease;
}

.scenario-nav-collapsible summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--motion-base) ease, border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.scenario-nav-collapsible summary::-webkit-details-marker {
  display: none;
}

.scenario-nav-collapsible summary:hover {
  border-color: #cfe3dc;
  background: #f5fbf8;
}

.scenario-summary-main {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.scenario-summary-icon,
.scenario-chevron,
.scenario-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scenario-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: #fff;
}

.scenario-summary-icon svg,
.scenario-chevron svg,
.scenario-option-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario-nav-collapsible summary b {
  max-width: 170px;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-chevron {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--green-dark);
  transition: transform var(--motion-base) ease, background-color var(--motion-base) ease;
}

.scenario-nav-collapsible[open] .scenario-chevron {
  transform: rotate(180deg);
}

.scenario-nav-collapsible[open] summary {
  margin-bottom: 4px;
  border-color: #d3e5de;
  background: #f6fbf9;
}

.scenario-nav-collapsible::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    block-size 260ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    content-visibility 260ms allow-discrete;
}

.scenario-nav-collapsible[open]::details-content {
  block-size: auto;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
}

.native-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sidebar-scenario-picker {
  display: grid;
  gap: 5px;
  padding: 0 0 1px;
}

.release-scenario-home {
  display: grid;
  gap: 12px;
  position: relative;
  isolation: isolate;
}

.release-scenario-home .sidebar-scenario-picker {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
}

.release-scenario-home .scenario-choice {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.release-scenario-home .scenario-choice:has(.scenario-info-card.open) {
  z-index: 80;
}

.release-scenario-home .sidebar-scenario-picker button {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 70px;
  padding: 12px 42px 12px 12px;
  border-radius: 10px;
  align-items: center;
}

.release-scenario-home .sidebar-scenario-picker button.scenario-info {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.release-scenario-home .scenario-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-self: center;
  justify-self: center;
}

.release-scenario-home .scenario-option-text b {
  line-height: 1.15;
  white-space: normal;
}

.release-scenario-home .scenario-option-text span {
  font-size: 12px;
  line-height: 1.25;
}

.release-scenario-home button.scenario-info {
  top: 12px;
  right: 12px;
}

.release-scenario-home .scenario-info-card {
  position: absolute;
  z-index: 90;
  left: 8px;
  right: auto;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 48px));
  margin-top: 0;
  border-color: #c8e2d7;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 43, 35, 0.17);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

.release-scenario-home .scenario-info-card.open {
  animation: scenarioInfoIn 180ms ease forwards;
  pointer-events: auto;
}

.release-scenario-home .scenario-choice:nth-child(3n) .scenario-info-card {
  left: auto;
  right: 8px;
}

@media (max-width: 900px) {
  .release-scenario-home .sidebar-scenario-picker {
    grid-template-columns: 1fr;
  }

  .release-scenario-home .scenario-info-card {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .release-scenario-home .sidebar-scenario-picker button {
    min-height: 62px;
  }
}

.scenario-choice {
  position: relative;
  min-width: 0;
}

.sidebar-scenario-picker button {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  justify-items: stretch;
  padding: 7px 8px;
  border-color: #d8e5e0;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
  transition: transform var(--motion-base) ease, border-color var(--motion-base) ease, background-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.sidebar-scenario-picker [data-sidebar-scenario] {
  width: 100%;
  padding-right: 34px;
}

.sidebar-scenario-picker button:hover {
  transform: none;
  border-color: #b9d9cc;
  background: #f9fdfb;
  box-shadow: inset 0 0 0 1px rgba(32, 132, 94, 0.04);
}

.scenario-option-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #d6e7e0;
  border-radius: 8px;
  background: #f5fbf8;
  color: var(--green);
  flex: 0 0 auto;
  transition: border-color var(--motion-base) ease, background-color var(--motion-base) ease, color var(--motion-base) ease;
}

.scenario-option-text,
.scenario-option-text b,
.scenario-option-text span {
  display: block;
  min-width: 0;
}

.scenario-option-text b {
  line-height: 1.15;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-option-text span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.2;
}

.sidebar-scenario-picker button.active {
  border-color: #a8d4c3;
  background: #eef8f3;
  color: var(--green-dark);
  box-shadow: inset 3px 0 0 var(--green);
}

.sidebar-scenario-picker button.active .scenario-option-icon {
  border-color: #a9d8c5;
  background: var(--green);
  color: #fff;
}

.sidebar-scenario-picker button.active b {
  color: var(--green-dark);
}

.sidebar-scenario-picker button.active .scenario-option-text span {
  color: #43675a;
}

button.scenario-info {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  min-height: 0;
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  border: 1px solid #cae1d8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}

button.scenario-info:hover,
button.scenario-info.active {
  transform: none;
  border-color: #94cbb5;
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(17, 43, 35, 0.1);
}

.scenario-info-card {
  position: absolute;
  z-index: 40;
  left: 6px;
  right: 6px;
  top: calc(100% + 6px);
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #b9d9cc;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 43, 35, 0.17);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

.scenario-info-card.open {
  animation: scenarioInfoIn 180ms ease forwards;
  pointer-events: auto;
}

.scenario-info-card b {
  color: var(--green-dark);
  font-size: 13px;
}

.scenario-info-card p {
  margin: 0;
  color: #49635a;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}

.scenario-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d6e8e0;
  border-radius: 9px;
  background: #f4faf7;
}

.scenario-flow span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--green-dark);
  text-align: center;
}

.scenario-flow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario-flow span b {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-flow i {
  width: 14px;
  height: 1px;
  display: block;
  background: #9dcfbc;
  position: relative;
}

.scenario-flow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #9dcfbc;
  border-right: 1px solid #9dcfbc;
  transform: rotate(45deg);
}

@keyframes scenarioInfoIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-panel,
.workspace-panel,
.help-shortcut-panel,
.feedback-panel {
  margin: 0 10px 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, background-color var(--motion-base) ease;
}

.profile-panel {
  border-color: #cfdfda;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}

.workspace-panel {
  display: none !important;
}

.help-shortcut-panel {
  position: relative;
  margin-top: auto;
  border-color: #cfe1da;
  background: #fbfdfc;
  box-shadow: none;
}

.help-shortcut-panel::before {
  display: none;
}

body.help-mode .help-shortcut-panel,
.help-shortcut-panel:hover {
  border-color: #b7d8ca;
  background: #f4faf7;
  box-shadow: none;
}

.help-shortcut-head {
  width: 100%;
  min-height: 40px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 3px;
  border-radius: 7px;
}

.help-shortcut-head .help-avatar {
  width: 30px;
  height: 30px;
  background: #e9f5f0;
  border: 0;
  color: var(--green-dark);
  box-shadow: none;
  display: grid;
  place-items: center;
}

body.help-mode .help-shortcut-head {
  background: transparent;
}

.help-shortcut-head svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-shortcut-head .help-question-dot {
  fill: currentColor;
  stroke: none;
}

.feedback-panel {
  position: relative;
  margin-top: 0;
  border-color: #cfe1da;
  background: #fbfdfc;
  box-shadow: none;
}

.feedback-head .feedback-avatar {
  background: #e9f5f0;
  color: var(--green-dark);
}

.feedback-panel:not(.collapsed) {
  border-color: #b7d8ca;
  background: #f4faf7;
}

.feedback-panel:not(.collapsed) .feedback-body {
  position: fixed;
  left: 304px;
  bottom: 84px;
  z-index: 80;
  width: min(390px, calc(100vw - 330px));
  max-height: min(620px, calc(100vh - 116px));
  overflow: auto;
  padding: 14px;
  border: 1px solid #c5ddd4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 43, 35, 0.18);
  animation: feedback-panel-in 180ms ease both;
}

.feedback-panel:not(.collapsed) .feedback-body::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 24px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #c5ddd4;
  border-bottom: 1px solid #c5ddd4;
  background: #fff;
  transform: rotate(45deg);
}

.feedback-body textarea {
  min-height: 88px;
  resize: vertical;
}

.feedback-file {
  min-height: 38px;
  border: 1px dashed #c8dad3;
  border-radius: 7px;
  background: #f8fcfa;
  display: grid;
  gap: 5px;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.feedback-file.has-file {
  border-color: #9ed0bd;
  background: #eef8f3;
  color: var(--green-dark);
}

.feedback-file-name {
  max-width: 100%;
  color: #6b7b82;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-file input {
  width: 100%;
  font-size: 11px;
}

.feedback-send {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.feedback-send[disabled] {
  cursor: progress;
  opacity: 0.68;
}

.feedback-inline-status {
  display: none;
  border: 1px solid #d4e2dc;
  border-radius: 8px;
  background: #f8fcfa;
  color: #53656b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 9px;
}

.feedback-inline-status.show {
  display: block;
  animation: feedback-panel-in 180ms ease both;
}

.feedback-inline-status.ok {
  border-color: #a6d7c4;
  background: #eef8f3;
  color: var(--green-dark);
}

.feedback-inline-status.warn {
  border-color: #f0d49a;
  background: #fff8e8;
  color: #93620b;
}

.feedback-inline-status.error {
  border-color: #efb8ad;
  background: #fff3ef;
  color: #9b2d20;
}

.feedback-list {
  display: grid;
  gap: 6px;
}

.feedback-mini-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  border: 1px solid #d9e6e1;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}

.feedback-empty,
.feedback-item {
  border: 1px solid #d9e6e1;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}

.feedback-empty {
  color: var(--muted);
  font-size: 12px;
}

.feedback-item {
  display: grid;
  gap: 6px;
}

.feedback-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feedback-item b,
.feedback-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-item b {
  font-size: 12px;
}

.feedback-item span,
.feedback-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.feedback-item p {
  margin: 0;
}

.feedback-status {
  width: max-content;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f0f7f4;
  color: var(--green-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}

.feedback-status.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: #8a5a10;
}

.feedback-status.ready {
  border-color: #bfe0d2;
  background: #ecf8f1;
  color: var(--green-dark);
}

.feedback-status.error {
  border-color: #efc7c7;
  background: #fff1f1;
  color: var(--red);
}

.feedback-item.closed {
  background: #f8fbfa;
}

.feedback-admin-reply {
  display: grid;
  gap: 3px;
  border-left: 3px solid rgba(15, 123, 95, 0.36);
  padding-left: 8px;
}

.feedback-admin-reply b {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

.feedback-followup-hint {
  border-radius: 7px;
  background: #fff8ec;
  padding: 7px;
  color: #8a5a10;
}

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

.feedback-summary-grid span {
  min-width: 0;
  border: 1px solid #d9e6e1;
  border-radius: 7px;
  background: #fff;
  padding: 7px 6px;
}

.feedback-summary-grid span.warn {
  border-color: #efd8aa;
  background: #fff8ec;
}

.feedback-summary-grid b,
.feedback-summary-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-summary-grid b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.feedback-summary-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.feedback-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.feedback-tabs button {
  min-height: 30px;
  border: 1px solid #d4e2dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 4px 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-tabs button.active {
  border-color: #9ed0bd;
  background: #eef8f3;
  color: var(--green-dark);
}

.feedback-ticket-list {
  display: grid;
  gap: 6px;
}

.feedback-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 66px;
  border: 1px solid #d9e6e1;
  border-left: 3px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.feedback-ticket:hover,
.feedback-ticket.selected {
  border-color: rgba(15, 123, 95, 0.36);
  border-left-color: var(--green);
  background: #f8fcfa;
}

.feedback-ticket.selected {
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08);
}

.feedback-ticket.needs-reply {
  border-left-color: #c7831f;
}

.feedback-ticket.has-new::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.feedback-ticket-main,
.feedback-ticket-side {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.feedback-ticket-side {
  justify-items: end;
  align-content: start;
}

.feedback-ticket b,
.feedback-ticket small,
.feedback-ticket-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-ticket b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.feedback-ticket small {
  color: #53656b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feedback-ticket-meta,
.feedback-card-pill,
.feedback-new-dot {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.feedback-card-pill,
.feedback-new-dot {
  border: 1px solid #d9e6e1;
  border-radius: 999px;
  background: #f8fcfa;
  padding: 3px 7px;
}

.feedback-new-dot {
  border-color: #9ed0bd;
  background: #eef8f3;
  color: var(--green-dark);
}

.feedback-detail {
  display: grid;
  gap: 9px;
  border: 1px solid #d9e6e1;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.feedback-back {
  justify-self: start;
  min-height: 28px;
  border: 1px solid #d4e2dc;
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-detail header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid #e1ece7;
  padding-bottom: 8px;
}

.feedback-detail h3,
.feedback-detail span,
.feedback-detail small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.22;
  white-space: nowrap;
}

.feedback-detail span,
.feedback-detail small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.35;
}

.feedback-chat {
  display: grid;
  gap: 8px;
}

.feedback-message {
  display: grid;
  gap: 7px;
  max-width: 92%;
  border: 1px solid #d9e6e1;
  border-radius: 8px;
  background: #f8fcfa;
  padding: 9px;
}

.feedback-message.admin {
  justify-self: end;
  border-color: rgba(15, 123, 95, 0.22);
  background: #eef8f3;
}

.feedback-message > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feedback-message b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.feedback-message p {
  margin: 0;
  color: #243832;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.feedback-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
}

.feedback-shot-thumb {
  display: grid;
  gap: 4px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.feedback-shot-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d4e2dc;
  border-radius: 7px;
  background: #eef3f1;
}

.feedback-shot-thumb.is-error img {
  display: none;
}

.feedback-shot-missing {
  border: 1px dashed #d4e2dc;
  border-radius: 7px;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
}

.feedback-action-note {
  border: 1px solid #efd8aa;
  border-radius: 7px;
  background: #fff8ec;
  color: #8a5a10;
  padding: 8px;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.35;
}

.feedback-reply {
  display: grid;
  gap: 8px;
  border: 1px solid #d9e6e1;
  border-radius: 8px;
  background: #f8fcfa;
  padding: 9px;
}

.feedback-reply label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.feedback-reply textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #d4e2dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  font: inherit;
  font-size: 12px;
  resize: vertical;
}

.feedback-file.compact {
  min-height: 0;
  padding: 7px;
}

.feedback-reply button {
  min-height: 34px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-reply button:disabled {
  opacity: 0.68;
  cursor: progress;
}

.feedback-history {
  border-top: 1px solid #e1ece7;
  padding-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.feedback-history summary {
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.feedback-history span {
  display: block;
  margin-top: 5px;
}

.feedback-panel .feedback-body {
  gap: 9px;
}

.feedback-panel .sidebar-field {
  color: #53656b;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.feedback-panel .sidebar-field input,
.feedback-panel .sidebar-field textarea {
  min-height: 36px;
  border-color: #d9e6e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(24, 39, 46, 0.02);
}

.feedback-panel .feedback-body textarea {
  min-height: 82px;
  line-height: 1.4;
}

.feedback-panel .feedback-file {
  min-height: 36px;
  border-style: solid;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
}

.feedback-panel .feedback-file span {
  color: #53656b;
  font-size: 10.5px;
  font-weight: 900;
}

.feedback-panel .feedback-file input {
  font-size: 10.5px;
}

.feedback-panel .feedback-send {
  min-height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 123, 95, 0.16);
}

.feedback-panel .feedback-list {
  gap: 8px;
  min-width: 0;
}

.feedback-hub {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feedback-overview {
  display: grid;
  gap: 3px;
  border: 1px solid #d9e6e1;
  border-left: 3px solid rgba(15, 123, 95, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcfa, #fff);
  padding: 9px 10px;
}

.feedback-overview.warn {
  border-color: #efd8aa;
  border-left-color: #c7831f;
  background: #fffaf2;
}

.feedback-overview b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.feedback-overview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}

.feedback-panel .feedback-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  border: 1px solid #d9e6e1;
  border-radius: 9px;
  background: #f4f8f6;
  padding: 2px;
}

.feedback-panel .feedback-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #51656c;
  padding: 4px 5px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-panel .feedback-tabs button:hover,
.feedback-panel .feedback-tabs button.active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 1px 5px rgba(24, 39, 46, 0.07);
}

.feedback-panel .feedback-ticket-list {
  display: grid;
  gap: 7px;
  max-height: 236px;
  overflow: auto;
  padding-right: 2px;
}

.feedback-panel .feedback-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-height: 0;
  border: 1px solid #d9e6e1;
  border-left: 3px solid rgba(15, 123, 95, 0.26);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feedback-panel .feedback-ticket:hover,
.feedback-panel .feedback-ticket.selected {
  border-color: rgba(15, 123, 95, 0.32);
  border-left-color: var(--green);
  background: #f8fcfa;
}

.feedback-panel .feedback-ticket:hover {
  transform: translateY(-1px);
}

.feedback-panel .feedback-ticket.selected {
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08);
}

.feedback-panel .feedback-ticket.needs-reply {
  border-left-color: #c7831f;
}

.feedback-panel .feedback-ticket.has-new::after {
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
}

.feedback-ticket-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 9px;
}

.feedback-ticket-date {
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  white-space: nowrap;
}

.feedback-panel .feedback-ticket b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-panel .feedback-ticket small {
  color: #53656b;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.feedback-panel .feedback-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.feedback-panel .feedback-ticket-meta span,
.feedback-panel .feedback-card-pill,
.feedback-panel .feedback-new-dot {
  max-width: 100%;
  border: 1px solid #d9e6e1;
  border-radius: 999px;
  background: #f8fcfa;
  color: var(--muted);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-panel .feedback-new-dot {
  border-color: #9ed0bd;
  background: #eef8f3;
  color: var(--green-dark);
}

.feedback-panel .feedback-detail {
  display: grid;
  gap: 9px;
  max-height: 480px;
  overflow: auto;
  border: 1px solid #d9e6e1;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbfdfc, #fff);
  padding: 10px;
}

.feedback-panel .feedback-detail header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid #e1ece7;
  padding-bottom: 8px;
}

.feedback-panel .feedback-detail header > div {
  min-width: 0;
}

.feedback-panel .feedback-back {
  min-width: 0;
  min-height: 28px;
  border: 1px solid #d4e2dc;
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 4px 8px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-panel .feedback-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.24;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-panel .feedback-detail span,
.feedback-panel .feedback-detail small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.feedback-panel .feedback-chat {
  display: grid;
  gap: 8px;
  max-height: 254px;
  overflow: auto;
  padding-right: 2px;
}

.feedback-panel .feedback-message {
  max-width: 96%;
  border-radius: 9px;
  padding: 9px;
}

.feedback-panel .feedback-message.admin {
  justify-self: end;
  background: #eef8f3;
}

.feedback-panel .feedback-action-note,
.feedback-panel .feedback-reply,
.feedback-panel .feedback-history {
  border-radius: 8px;
}

@keyframes feedback-panel-in {
  from {
    opacity: 0;
    transform: translateX(-8px) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.sidebar-quick {
  display: none !important;
  margin: 0 10px 10px;
  padding: 8px 0 9px;
  border-top: 1px solid rgba(217, 225, 228, 0.72);
  border-bottom: 1px solid rgba(217, 225, 228, 0.72);
  gap: 6px;
}

.sidebar-quick-head {
  display: none;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  min-width: 0;
}

.sidebar-quick-head b,
.sidebar-quick-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-quick-head b {
  line-height: 1.15;
}

.sidebar-quick-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.sidebar-quick .utility-avatar {
  background: var(--green);
  color: #fff;
}

.sidebar-quick .sidebar-field {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-quick select {
  min-height: 32px;
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 12px;
}

.sidebar-quick-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
}

.sidebar-quick-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.sidebar-quick-actions .primary-action {
  background: #fff;
  border-color: #cfe2d8;
  color: var(--green-dark);
}

.sidebar-quick-actions .primary-action:hover {
  background: #eef7f3;
  border-color: #afd3c4;
}

.sidebar-quiet-info {
  display: none;
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  min-width: 0;
}

.sidebar-quiet-info b,
.sidebar-quiet-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-quiet-info span {
  margin-top: 3px;
}

.utility-head {
  min-height: 40px;
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 3px;
  text-align: left;
}

.profile-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px;
}

.profile-toggle {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 2px;
  text-align: left;
  border-radius: 8px;
}

.profile-toggle:hover {
  background: #edf6f2;
  border-color: transparent;
}

.profile-toggle .utility-avatar {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 124, 90, 0.2);
  transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.profile-toggle:hover .utility-avatar {
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(29, 124, 90, 0.26);
}

.profile-logout {
  min-height: 32px !important;
  width: 32px;
  padding: 0 !important;
  border-color: #d7e6e1;
  background: #fff;
  color: #51636b;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.profile-logout:hover {
  border-color: #f0c7c7;
  background: #fff5f5;
  color: var(--red);
}

.profile-logout svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-logout span {
  display: none;
}

.profile-admin-link {
  min-height: 32px;
  width: 32px;
  border: 1px solid #c7ded5;
  border-radius: 9px;
  background: #eef8f4;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.profile-admin-link:hover,
.profile-admin-link:focus-visible {
  border-color: rgba(29, 124, 90, 0.55);
  background: #e3f4ed;
  box-shadow: 0 8px 18px rgba(29, 124, 90, 0.16);
  transform: translateY(-1px);
}

.profile-admin-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.utility-head:hover {
  background: var(--panel-soft);
  border-color: transparent;
}

.utility-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f0ec;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.utility-title {
  min-width: 0;
}

.utility-title b,
.utility-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.collapse-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5e1;
  border-radius: 999px;
  background: #fff;
  color: #49665d;
  box-shadow: 0 1px 0 rgba(24, 39, 46, 0.03);
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.collapse-mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-base) ease;
}

.utility-body {
  display: grid;
  gap: 7px;
}

.utility-panel.collapsed .utility-body {
  display: none;
}

.utility-panel:not(.collapsed) .utility-body {
  animation: panel-soft-in var(--motion-base) ease both;
}

.utility-head:hover .collapse-mark,
.profile-toggle:hover .collapse-mark {
  border-color: #bad8cd;
  background: #eef8f4;
  color: var(--green-dark);
  box-shadow: 0 6px 14px rgba(29, 124, 90, 0.12);
}

.utility-panel:not(.collapsed) .collapse-mark svg {
  transform: rotate(180deg);
}

.workspace-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar .workspace-actions {
  grid-template-columns: 1fr;
  gap: 6px;
}

.sidebar .workspace-actions button,
.sidebar .admin-console-link,
.sidebar .sidebar-logout {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.sidebar-field {
  gap: 5px;
}

.workspace-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  min-height: 0;
  padding: 7px;
  word-break: break-word;
}

.sidebar-summary-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  margin-top: 8px;
}

.sidebar-summary-grid span {
  color: var(--muted);
}

.sidebar-summary-grid strong {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.selection-status {
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f0f7f4;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 10px;
}

.selection-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.selection-status.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: #8a5a10;
}

.selection-status.warn::before {
  background: var(--amber);
}

.selection-status.error {
  border-color: #efc7c7;
  background: #fff1f1;
  color: var(--red);
}

.selection-status.error::before {
  background: var(--red);
}

.profile-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
}

.profile-meta-grid strong {
  color: var(--ink);
  text-align: right;
}

.admin-profile-tools {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: grid;
  gap: 8px;
}

.admin-profile-tools b {
  font-size: 13px;
}

.profile-panel .utility-body > .sidebar-field:has(#profilesSelect),
.profile-panel .utility-body > .workspace-actions,
.profile-panel .utility-body > #profileName,
.profile-panel .utility-body > .sidebar-field:has(#profileLogin),
.profile-panel .utility-body > .sidebar-field:has(#profileRole),
.profile-panel .utility-body > .sidebar-field:has(#libraryScope),
.profile-panel .utility-body > #saveProfileBtn,
.profile-panel .utility-body > .sidebar-field:has(#profileAccessCode),
.profile-panel .utility-body > #adminProfileTools {
  display: none !important;
}

.admin-console-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: #f7faf9;
}

.admin-hero {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 30px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.admin-hero h1 {
  margin: 3px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.admin-hero p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-access-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 9px;
  align-content: center;
}

.admin-access-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-access-card b {
  color: var(--green-dark);
  overflow-wrap: anywhere;
}

.admin-access-card a {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.admin-metrics {
  width: min(1180px, calc(100vw - 36px));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-section-nav {
  width: min(1180px, calc(100vw - 36px));
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  position: sticky;
  top: 8px;
  z-index: 20;
}

.admin-section-nav button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-section-nav button:hover,
.admin-section-nav button:focus-visible {
  border-color: #dce9e4;
  background: #f7fbf9;
  color: var(--green-dark);
}

.admin-section-nav button.active {
  border-color: rgba(29, 124, 90, 0.36);
  background: #eaf6f0;
  color: var(--green-dark);
}

.admin-view-hidden,
.admin-subview-hidden {
  display: none !important;
}

.admin-metrics div,
.admin-metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  min-height: 92px;
  padding: 14px;
  display: grid;
  gap: 5px;
  align-content: center;
  text-align: left;
}

.admin-metric-card {
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
  border-color: rgba(29, 124, 90, 0.44);
  background: #f4faf7;
  box-shadow: 0 14px 28px rgba(16, 46, 36, 0.08);
  transform: translateY(-2px);
}

.admin-metric-card.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-metrics span,
.admin-metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-metrics b,
.admin-metric-card b {
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1;
}

.admin-metric-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.admin-control-strip {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.admin-control-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-control-item {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  padding: 13px;
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.admin-control-item:hover,
.admin-control-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 124, 90, 0.4);
  background: #f4faf7;
}

.admin-control-item.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-control-item.info {
  border-color: #cfe2d8;
  background: linear-gradient(180deg, #f3faf6, #fff);
}

.admin-control-item.ok b {
  color: var(--green-dark);
}

.admin-control-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-control-item b {
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.admin-control-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-dashboard-panel,
.admin-library-panel,
.admin-system-panel {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-dashboard-grid > section,
.admin-system-grid > section {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9, #fff);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-dashboard-grid h3,
.admin-system-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.admin-warning-list,
.admin-bar-chart,
.admin-status-bars {
  display: grid;
  gap: 8px;
}

.admin-warning-list article {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 3px;
}

.admin-warning-list article.warning {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-warning-list article.error {
  border-color: #f1b6ad;
  background: #fff6f3;
}

.admin-warning-list b {
  color: var(--text);
}

.admin-warning-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-bar-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  gap: 8px;
  align-items: center;
  position: relative;
}

.admin-bar-row span,
.admin-bar-row b {
  position: relative;
  z-index: 1;
}

.admin-bar-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-bar-row b {
  color: var(--green-dark);
}

.admin-bar-row i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 124, 90, 0.28) var(--bar), #e8f1ed var(--bar));
}

.admin-bar-row.warn i {
  background: linear-gradient(90deg, rgba(183, 124, 24, 0.34) var(--bar), #f4ead5 var(--bar));
}

.admin-bar-row.error i {
  background: linear-gradient(90deg, rgba(178, 58, 58, 0.34) var(--bar), #f5dedb var(--bar));
}

.admin-insights-grid {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.admin-insight-panel {
  min-height: 330px;
  max-height: 480px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-feedback-panel {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
}

.admin-feedback-head {
  align-items: flex-start;
}

.admin-feedback-actions-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-feedback-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-feedback-summary-grid article {
  border: 1px solid #d7e6df;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9, #fff);
  padding: 13px;
  display: grid;
  gap: 5px;
  min-height: 92px;
}

.admin-feedback-summary-grid article.warn {
  border-color: #efd8aa;
  background: #fff8ec;
}

.admin-feedback-summary-grid article.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-feedback-summary-grid span,
.admin-feedback-summary-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-feedback-summary-grid b {
  color: var(--text);
  font-size: 24px;
}

.admin-feedback-visuals {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

.admin-feedback-visuals > section {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.admin-feedback-visuals h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.admin-feedback-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}

.admin-feedback-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: end;
}

.admin-feedback-quick-filters button {
  min-height: 40px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f6fbf8;
  color: var(--green-dark);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-feedback-quick-filters button.active {
  border-color: rgba(29, 124, 90, 0.5);
  background: linear-gradient(135deg, #e7f7ef, #f7fbff);
  box-shadow: 0 0 0 2px rgba(29, 124, 90, 0.08);
}

.admin-feedback-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-feedback-tools select,
.admin-feedback-tools input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
}

.admin-insights-grid .admin-feedback-panel {
  width: auto;
  margin: 0;
}

.admin-feedback-list {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 3px;
}

.admin-feedback-summary {
  margin-left: auto;
  align-self: center;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f0f7f4;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.admin-feedback-summary.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: #8a5a10;
}

.admin-ghost-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-ghost-button.active {
  border-color: rgba(29, 124, 90, 0.36);
  background: #eaf6f0;
}

.admin-ghost-button:disabled {
  opacity: 0.52;
  cursor: default;
}

.admin-feedback-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 13px;
  display: grid;
  gap: 10px;
}

.admin-feedback-item.access-request {
  border-color: #cfe2d8;
  background: linear-gradient(180deg, #f3faf6, #fff);
}

.admin-feedback-item.warn {
  border-color: #efd8aa;
  background: linear-gradient(180deg, #fff8ec, #fff);
}

.admin-feedback-item.error {
  border-color: #edc1bc;
  background: linear-gradient(180deg, #fff4f2, #fff);
}

.admin-feedback-item.access-request header b::before {
  content: "РґРѕСЃС‚СѓРї";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e4f4ed;
  color: var(--green-dark);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-feedback-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-feedback-item header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-feedback-item b {
  color: var(--text);
}

.admin-feedback-item span,
.admin-feedback-item small,
.admin-feedback-item p {
  color: var(--muted);
  line-height: 1.4;
}

.admin-feedback-item p {
  margin: 0;
}

.admin-feedback-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.feedback-priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.feedback-priority.warn {
  background: #fff2d6;
  color: #8a5a10;
}

.feedback-priority.error {
  background: #ffe4e0;
  color: #9d3027;
}

.feedback-screenshot-link {
  width: max-content;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.admin-feedback-actions {
  display: grid;
  grid-template-columns: 160px 140px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.admin-feedback-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.admin-feedback-quick-actions button {
  min-height: 32px;
  border: 1px solid #dce9e4;
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 6px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-feedback-history {
  display: grid;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-system-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-feedback-actions select,
.admin-feedback-actions input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
}

.admin-status-list {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding-right: 3px;
}

.admin-status-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  min-height: 58px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-activity {
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.admin-user-activity:hover,
.admin-user-activity.open {
  border-color: rgba(29, 124, 90, 0.42);
  background: #f4faf7;
}

.admin-user-activity.open {
  align-items: flex-start;
  box-shadow: 0 12px 24px rgba(16, 46, 36, 0.08);
}

.admin-status-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-status-list b {
  color: var(--text);
}

.admin-status-list span,
.admin-status-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.admin-user-details {
  margin-top: 8px;
  border-top: 1px solid #dce9e4;
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.admin-user-actions {
  max-height: 170px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.admin-user-actions p {
  margin: 0;
  border: 1px solid #dce9e4;
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.admin-user-actions p b {
  font-size: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #a9b7b2;
  box-shadow: 0 0 0 4px rgba(169, 183, 178, 0.13);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 124, 90, 0.14);
}

.status-dot.idle {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 124, 24, 0.14);
}

.status-dot.warn {
  background: var(--admin-warn, var(--amber));
  box-shadow: 0 0 0 4px rgba(217, 134, 33, 0.14);
}

.status-dot.error {
  background: var(--admin-red, #ca4444);
  box-shadow: 0 0 0 4px rgba(202, 68, 68, 0.14);
}

.admin-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 56px;
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.admin-users-panel,
.admin-editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-users-panel {
  padding: 16px;
}

.admin-editor-panel {
  padding: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-head h1,
.admin-panel-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.users-list {
  display: grid;
  gap: 8px;
  max-height: 530px;
  overflow: auto;
  padding-right: 3px;
}

.user-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.user-list-item.active,
.user-list-item:hover {
  border-color: rgba(29, 124, 90, 0.45);
  background: #f2faf6;
}

.user-list-item.online {
  border-color: #c7ded5;
}

.user-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-list-item span {
  color: var(--muted);
  font-size: 13px;
}

.user-list-item em {
  width: max-content;
  border-radius: 999px;
  background: #fff4d7;
  color: #81620b;
  font-size: 11px;
  font-style: normal;
  padding: 3px 7px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-user-form label,
.admin-user-form .security-rules {
  display: grid;
  gap: 7px;
}

.admin-user-form input,
.admin-user-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
}

.admin-user-form small {
  color: var(--muted);
  line-height: 1.35;
}

.security-rules,
.admin-form-actions {
  grid-column: 1 / -1;
}

.security-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.security-rules b {
  color: var(--text);
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: rgba(178, 58, 58, 0.35);
  background: #fff7f6;
  color: #9f2f2f;
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(178, 58, 58, 0.7);
  background: #ffeceb;
}

.profile-meta.error {
  color: var(--red);
}

.admin-storage-panel {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
}

.admin-storage-head {
  align-items: center;
}

.admin-storage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-storage-actions button {
  min-height: 36px;
}

.admin-storage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-storage-summary div {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9, #fff);
  padding: 10px;
  display: grid;
  gap: 3px;
}

.admin-storage-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-storage-summary b {
  color: var(--green-dark);
  font-size: 18px;
}

.admin-storage-tools {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.admin-storage-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-storage-tools select,
.admin-storage-tools input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.admin-output-result {
  display: none;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f4faf7;
  color: var(--green-dark);
  padding: 10px 12px;
  margin-bottom: 10px;
  gap: 3px;
}

.admin-output-result:not(:empty) {
  display: grid;
}

.admin-output-result.warn {
  border-color: #efd8aa;
  background: #fffaf0;
  color: #8a5a10;
}

.admin-output-result.danger {
  border-color: rgba(178, 58, 58, 0.35);
  background: #fff7f6;
  color: #9f2f2f;
}

.admin-output-result span,
.admin-output-result small {
  color: inherit;
  line-height: 1.35;
}

.admin-output-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 3px;
}

.admin-output-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.admin-output-item.service {
  background: #fbfaf4;
}

.admin-output-select {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.admin-output-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-output-main header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-output-main header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-output-main b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.admin-output-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-output-status {
  border: 1px solid #dce9e4;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.admin-output-status.ready {
  border-color: #cfe2d8;
  background: #eef8f3;
  color: var(--green-dark);
}

.admin-output-status.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: #8a5a10;
}

.admin-output-status.error {
  border-color: #f1b6ad;
  background: #fff6f3;
  color: #9f2f2f;
}

.admin-output-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-output-flags span {
  border: 1px solid #dce9e4;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.admin-output-flags .locked {
  border-color: #e2dccb;
  background: #fffaf0;
  color: #8a5a10;
}

.admin-library-grid,
.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-library-grid article {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9, #fff);
  padding: 13px;
  display: grid;
  gap: 5px;
}

.admin-library-grid article.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-library-grid article.error {
  border-color: #f1b6ad;
  background: #fff6f3;
}

.admin-library-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-library-grid b {
  color: var(--green-dark);
  font-size: 24px;
}

.admin-library-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-system-grid {
  grid-template-columns: 1.35fr 0.85fr 0.8fr;
}

.admin-system-grid .admin-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-system-facts {
  display: grid;
  gap: 8px;
}

.admin-system-facts span {
  border: 1px solid #dce9e4;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-ops-grid {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.admin-log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.audit-list,
.backup-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 3px;
}

.audit-list article,
.backup-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.audit-list b,
.backup-list b {
  color: var(--text);
}

.audit-list span,
.backup-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.issue-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.issue-item.error {
  border-color: rgba(190, 54, 42, 0.28);
  background: #fffaf8;
}

.issue-item.warning {
  border-color: rgba(190, 126, 28, 0.3);
  background: #fffaf0;
}

.issue-digest {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.issue-digest > b {
  color: var(--ink);
  font-size: 13px;
}

.issue-digest > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.issue-digest-item {
  min-height: 0;
  padding: 10px;
  display: grid;
  gap: 3px;
  text-align: left;
  border-radius: 8px;
  background: #fff;
  border-color: var(--line);
}

.issue-digest-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.issue-digest-item strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.issue-digest-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.issue-digest-item.warning {
  border-color: #efc987;
  background: #fff9ea;
}

.issue-digest-item.error {
  border-color: #f1b6ad;
  background: #fff6f3;
}

.issue-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.issue-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.issue-main b,
.issue-main p {
  margin: 0;
}

.issue-main p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.issue-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 4px 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.issue-actions {
  display: flex;
  justify-content: flex-end;
}

.issue-actions button {
  min-width: 136px;
}

.backup-list a {
  justify-self: start;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.backup-option {
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: #f7fbf9;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 10px;
}

.backup-option input {
  margin-top: 3px;
}

.backup-option span {
  display: grid;
  gap: 3px;
}

.backup-option small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(100deg, #f3f7f5 0%, #e8f2ee 42%, #f7faf9 70%);
  background-size: 220% 100%;
  animation: admin-skeleton-flow 1.2s ease-in-out infinite;
}

.admin-metric-skeleton {
  min-height: 92px;
}

.admin-row-skeleton {
  min-height: 66px;
}

.admin-control-skeleton {
  min-height: 96px;
}

@keyframes admin-skeleton-flow {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.admin-page .admin-hero,
.admin-page .admin-access-card,
.admin-page .admin-control-strip,
.admin-page .admin-metric-card,
.admin-page .admin-dashboard-panel,
.admin-page .admin-insight-panel,
.admin-page .admin-feedback-panel,
.admin-page .admin-shell,
.admin-page .admin-storage-panel,
.admin-page .admin-library-panel,
.admin-page .admin-system-panel,
.admin-page .admin-ops-grid .admin-log-panel {
  animation: admin-card-in 420ms ease both;
}

.admin-page .admin-metric-card:nth-child(2) { animation-delay: 28ms; }
.admin-page .admin-metric-card:nth-child(3) { animation-delay: 56ms; }
.admin-page .admin-metric-card:nth-child(4) { animation-delay: 84ms; }
.admin-page .admin-metric-card:nth-child(5) { animation-delay: 112ms; }
.admin-page .admin-metric-card:nth-child(6) { animation-delay: 140ms; }
.admin-page .admin-metric-card:nth-child(7) { animation-delay: 168ms; }
.admin-page .admin-metric-card:nth-child(8) { animation-delay: 196ms; }
.admin-page .admin-metric-card:nth-child(9) { animation-delay: 224ms; }
.admin-page .admin-metric-card:nth-child(10) { animation-delay: 252ms; }

.admin-focus-pulse {
  animation: admin-focus-pulse 980ms ease;
}

@keyframes admin-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes admin-focus-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 124, 90, 0);
  }
  38% {
    box-shadow: 0 0 0 5px rgba(29, 124, 90, 0.12);
  }
  100% {
    box-shadow: var(--shadow-soft);
  }
}

.workspace-documents {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.workspace-documents-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.workspace-documents-head b {
  min-width: 0;
  font-size: 13px;
}

.workspace-documents-head button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  justify-self: start;
}

.workspace-tree {
  max-height: 300px;
  overflow: auto;
  padding: 8px;
}

.sidebar-footer {
  margin-top: 0;
  padding: 4px 14px 10px;
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  display: grid;
  gap: 0;
}

.sidebar-logout {
  min-height: 32px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
}

.workbench {
  container-type: inline-size;
  height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  padding: 0 20px 24px;
  min-width: 0;
  background: #eef3f4;
}

.workbench-head {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  justify-content: stretch;
  gap: 18px;
  align-items: center;
  margin: 0 -20px 18px;
  min-height: 76px;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(10px);
}

.workbench-head > div:first-child {
  display: grid;
  align-content: center;
  min-width: 0;
}

.workbench-title-area {
  align-items: center;
  display: flex;
  min-width: 0;
}

.workbench-title-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

#stepTitle {
  font-size: 24px;
  line-height: 1.08;
  margin: 0;
}

.workbench-context {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-actions,
.action-row,
.launch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.head-actions [hidden] {
  display: none !important;
}

.workbench-head .head-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: max-content;
  justify-items: end;
}

.workbench-head .head-actions button {
  min-height: 36px;
  min-width: 148px;
  padding: 8px 14px;
  white-space: nowrap;
}

.workbench-head #inspectBtn {
  display: none !important;
}

#generateBtn,
#finalGenerateBtn {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

#generateBtn:hover,
#finalGenerateBtn:hover {
  background: var(--green-dark);
}

#generateBtn:disabled,
#generateBtn:disabled:hover,
#finalGenerateBtn:disabled,
#finalGenerateBtn:disabled:hover {
  color: #8c9aa1;
  background: #f3f6f7;
  border-color: #d5e0e5;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.step-panel {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  container-type: inline-size;
  padding: 16px;
  min-width: 0;
}

.step-panel.active {
  display: block;
  animation: workspace-section-in var(--motion-base) ease both;
}

.step-panel[data-step-panel="source"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.step-panel[data-step-panel="bases"],
.step-panel[data-step-panel="prepare"],
.step-panel[data-step-panel="release"],
.step-panel[data-step-panel="results"],
.step-panel[data-step-panel="help"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.inline-help-link {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(29, 124, 90, 0.18);
  border-radius: 8px;
  background: #f4faf7;
  color: var(--green-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.inline-help-link:hover,
.inline-help-link:focus-visible {
  border-color: rgba(29, 124, 90, 0.38);
  background: #e8f6ef;
}

.help-panel {
  color: var(--text);
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 18px;
  align-items: center;
  min-width: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.help-toc,
.help-card,
.help-faq-item {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.help-hero-copy {
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
}

.help-hero-copy h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.08;
}

.help-hero-copy p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.help-hero-search {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  z-index: 30;
}

.help-hero-search label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.help-hero-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
}

.help-search-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  gap: 7px;
  max-height: 312px;
  overflow-y: auto;
  border: 1px solid #d7e6e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(21, 49, 39, 0.16);
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.help-search-results.is-open {
  display: grid;
}

.help-search-results button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d7e6e1;
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
}

.help-search-results button b,
.help-search-results button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-search-results button span {
  color: var(--muted);
  font-size: 11px;
}

.help-route-strip {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-bottom: 16px;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.help-route-strip button,
.help-action-row button,
.help-toc button {
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.help-route-strip button {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 44px;
  padding: 8px 11px;
  white-space: nowrap;
  text-align: left;
}

.help-route-strip button b {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
}

.help-route-strip button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.help-route-strip button:hover,
.help-action-row button:hover,
.help-toc button:hover,
.help-search-results button:hover {
  border-color: rgba(29, 124, 90, 0.38);
  background: #eef8f3;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.help-toc {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}

.help-toc button {
  min-width: 0;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  padding: 7px 8px;
  text-align: left;
}

.help-toc button.active {
  border-color: rgba(29, 124, 90, 0.24);
  background: #eaf7f1;
  color: var(--green-dark);
}

.help-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.help-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: 96px;
}

.help-section-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.help-section-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.help-section h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.help-section-head p,
.help-card p,
.help-card li,
.help-faq-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-section-head p,
.help-card p,
.help-faq-item p {
  margin: 5px 0 0;
}

.help-card-grid,
.help-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  min-width: 0;
}

.help-card-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.help-card,
.help-faq-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
}

.help-card > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.help-card ul,
.help-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.help-card code,
.help-faq-item code {
  border: 1px solid #d8e7e1;
  border-radius: 5px;
  background: #f5faf7;
  color: #244d3f;
  padding: 1px 5px;
  font-size: 12px;
}

.help-example-card {
  background: #f7fbf9;
}

.help-warning-card {
  border-color: #f0d7aa;
  background: #fffaf0;
}

.help-note-card {
  border-color: #c7dfd5;
  background: #f3faf6;
}

.help-flow-card {
  gap: 11px;
}

.help-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.help-flow span {
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 7px 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.help-flow i {
  width: 18px;
  height: 1px;
  background: #a8c7bb;
}

.help-mini-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  overflow: auto;
  border: 1px solid #dce9e4;
  border-radius: 8px;
  background: #fff;
}

.help-mini-table b,
.help-mini-table span {
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #e4eee9;
  border-bottom: 1px solid #e4eee9;
  font-size: 12px;
}

.help-mini-table b {
  background: #edf7f2;
  color: var(--green-dark);
}

.help-mini-table span {
  color: var(--muted);
}

.help-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.help-action-row button {
  min-height: 34px;
  padding: 7px 10px;
}

.help-faq-item b {
  color: var(--text);
  font-size: 14px;
}

.help-search-match {
  outline: 2px solid rgba(29, 124, 90, 0.24);
  outline-offset: 2px;
}

.help-jump-highlight {
  animation: help-jump-highlight 1.7s ease;
}

@keyframes help-jump-highlight {
  0% { background-color: rgba(29, 124, 90, 0.13); }
  100% { background-color: transparent; }
}

@media (max-width: 1180px) {
  .help-hero,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-toc {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
}

@media (max-width: 760px) {
  .help-hero-copy h3 {
    font-size: 23px;
  }

  .help-section-head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .help-section-number {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .help-card-grid,
  .help-card-grid.compact,
  .help-faq-grid {
    grid-template-columns: 1fr;
  }
}

.release-workspace-panel {
  display: none;
}

.release-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  box-shadow: var(--shadow-soft);
}

.release-summary-inline {
  display: none;
}

.control-release-summary {
  margin-bottom: 12px;
}

.release-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.release-summary-head b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.release-summary-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.release-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.release-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.release-summary-item {
  min-height: 86px;
  padding: 10px 34px 34px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  position: relative;
  overflow: hidden;
}

button.release-summary-item {
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 4px 12px rgba(25, 50, 45, 0.025);
}

button.release-summary-item:hover {
  border-color: rgba(15, 123, 95, 0.34);
  background: linear-gradient(180deg, #fff, var(--surface-50));
  box-shadow: 0 10px 24px rgba(25, 50, 45, 0.07);
  transform: translateY(-1px);
}

button.release-summary-item:focus-visible {
  outline: 2px solid rgba(15, 123, 95, 0.24);
  outline-offset: 2px;
}

.release-summary-item span {
  display: block;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.2;
}

.release-summary-item b {
  display: -webkit-box;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-900);
  line-height: 1.18;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.release-summary-item em {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 8px;
  color: var(--ink-700);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  position: absolute;
  right: 8px;
  transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.release-summary-item em::after {
  content: "->";
  font-size: 10px;
  line-height: 1;
}

button.release-summary-item:hover em {
  border-color: rgba(15, 123, 95, 0.26);
  color: var(--brand-700);
  transform: translateX(1px);
}

.release-summary-item.ready {
  border-color: rgba(15, 123, 95, 0.22);
  background: linear-gradient(180deg, var(--surface-100), #fff 72%);
}

.release-summary-item.warn {
  border-color: rgba(217, 134, 33, 0.28);
  background: linear-gradient(180deg, var(--warn-bg), #fff 72%);
}

.release-summary-item.warn em {
  border-color: rgba(217, 134, 33, 0.24);
  color: #8a520d;
}

.release-summary-item.error {
  border-color: rgba(207, 63, 63, 0.28);
  background: linear-gradient(180deg, var(--danger-bg), #fff 72%);
}

.release-summary-item.error em {
  border-color: rgba(207, 63, 63, 0.24);
  color: #982f2f;
}

.release-summary-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.release-summary-item.ready::before {
  background: var(--brand-700);
}

.release-summary-item.warn::before {
  background: var(--warn);
}

.release-summary-item.error::before {
  background: var(--danger);
}

.preview .release-summary {
  margin-bottom: 12px;
  padding: 14px;
}

.preview .release-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.release-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.release-step-tab {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  min-width: 0;
}

.release-step-tab b,
.release-step-tab small {
  display: block;
  min-width: 0;
}

.release-step-tab b {
  font-size: 13px;
  line-height: 1.1;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.release-step-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.release-step-tab:hover {
  border-color: #9fcfbc;
  background: #f9fdfb;
}

.release-step-tab.active {
  border-color: #96cdb8;
  background: linear-gradient(180deg, #eef8f3, #f8fcfa);
  box-shadow: inset 0 0 0 1px #c6e6d9, 0 8px 22px rgba(15, 84, 62, 0.07);
}

.release-step-tab.warn .release-step-index {
  background: #fff0d5;
  color: #9a5a08;
}

.release-step-tab.error .release-step-index {
  background: #ffe2de;
  color: #a83224;
}

.release-workspace-grid {
  display: grid;
  gap: 8px;
}

.release-flow {
  gap: 10px;
}

.stepper-flow .release-step-card {
  display: none;
}

.stepper-flow .release-step-card.active {
  display: block;
  animation: releasePanelIn 0.22s ease both;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.release-card[data-release-panel="rules"],
.release-card[data-release-panel="scenario"],
.release-card[data-release-panel="documents"] {
  overflow: visible;
}

.release-card[data-release-panel="data"] {
  order: 1;
}

.release-card[data-release-panel="documents"] {
  order: 2;
}

.release-card[data-release-panel="scenario"] {
  order: 3;
}

.release-card[data-release-panel="rules"] {
  order: 4;
}

.release-card[data-release-panel="control"] {
  order: 5;
}

.release-card[open] {
  border-color: #bdd9ce;
  box-shadow: 0 10px 28px rgba(17, 43, 35, 0.05);
}

.release-card summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--ink);
  background: #fbfdfd;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}

.release-step-card summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  list-style: none;
}

.release-step-card summary::-webkit-details-marker {
  display: none;
}

.stepper-flow .release-step-card summary {
  display: none;
}

.release-step-card summary b,
.release-step-card summary small {
  display: block;
  min-width: 0;
}

.release-step-card summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}

.release-step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5f0ec;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.release-card:not([open]) summary {
  border-bottom: 0;
}

.release-card-body {
  padding: 12px;
  display: grid;
  gap: 10px;
  animation: panel-soft-in var(--motion-base) ease both;
  min-width: 0;
}

.release-card-body > .grid {
  margin-bottom: 0;
}

.release-card-body label {
  min-width: 0;
}

.release-card-body input,
.release-card-body select,
.release-card-body button {
  min-width: 0;
}

.release-card-body input:not([type="checkbox"]):not([type="radio"]),
.release-card-body select {
  min-height: 40px;
}

.release-card-body .action-row {
  margin: 0;
  gap: 8px;
}

.release-card-body .action-row button {
  min-height: 36px;
}

.release-card-body .grid.two {
  gap: 10px;
  align-items: end;
}

.release-card[data-release-panel="data"] .release-card-body > .grid.two label {
  gap: 5px;
}

.release-card[data-release-panel="data"] .release-card-body > .grid.two input,
.release-card[data-release-panel="data"] .release-card-body > .grid.two .arsenal-dropdown-toggle {
  min-height: 48px;
}

.release-card[data-release-panel="data"] .release-card-body > .action-row button {
  min-height: 38px;
}

.release-card[data-release-panel="data"] .release-card-body {
  grid-template-columns: minmax(190px, 240px) minmax(130px, 170px) minmax(260px, 1fr);
  align-items: stretch;
  gap: 10px;
}

.release-card[data-release-panel="data"] .release-data-source-panel {
  grid-column: 1 / -1;
}

.release-card[data-release-panel="data"] .release-card-body > .grid.two {
  grid-column: 1 / 3;
  grid-template-columns: minmax(190px, 240px) minmax(130px, 170px);
}

.release-card[data-release-panel="data"] .release-card-body > .action-row {
  grid-column: 3 / 4;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
}

.release-card[data-release-panel="data"] .release-card-body > .action-row button {
  width: auto;
  justify-content: center;
  white-space: nowrap;
}

.release-target-highlight {
  animation: releaseTargetPulse 2.6s ease;
  outline: 2px solid rgba(31, 135, 96, 0.38);
  outline-offset: 3px;
  border-radius: 8px;
}

.operator-error-card {
  border-color: #efc2ba;
  background: #fffaf8;
}

.operator-error-card.access,
.operator-error-card.auth,
.operator-error-card.missing,
.operator-error-card.notice {
  border-color: #f0d3a2;
  background: #fffaf0;
}

.operator-error-card h3 {
  margin-bottom: 8px;
}

.operator-error-card p {
  margin: 0 0 8px;
}

.technical-error {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.technical-error summary {
  cursor: pointer;
  font-weight: 700;
}

.technical-error code {
  display: block;
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.button-link {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  border-color: #aab8bf;
}

@keyframes releasePanelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes releaseTargetPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 135, 96, 0);
  }
  22% {
    box-shadow: 0 0 0 5px rgba(31, 135, 96, 0.16);
  }
  55% {
    box-shadow: 0 0 0 2px rgba(31, 135, 96, 0.22);
  }
}

.module-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.scenario-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.release-scenario-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.scenario-sidebar,
.scenario-main,
.scenario-save-panel,
.scenario-settings-panel {
  min-width: 0;
}

.scenario-sidebar {
  display: grid;
  gap: 8px;
}

.scenario-tab {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 76px;
}

.scenario-tab.active,
.scenario-option:has(input:checked) {
  border-color: #a9d8c5;
  background: #f0faf5;
}

.scenario-presets {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.scenario-presets > b {
  color: var(--ink);
  font-size: 13px;
}

.scenario-presets.compact-note {
  align-items: center;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) max-content;
}

.scenario-presets.compact-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.scenario-presets.compact-note button {
  min-height: 32px;
  padding: 6px 9px;
}

.release-template-group-panel {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f8fbfa;
  display: grid;
  gap: 9px;
  padding: 12px;
  min-width: 0;
}

.release-template-picker-panel {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f8fbfa;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  min-width: 0;
}

.release-template-picker-panel label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
}

.release-template-picker-panel select {
  min-height: 112px;
  resize: vertical;
}

.arsenal-select-field {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.arsenal-select-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.arsenal-dropdown {
  display: block;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.arsenal-dropdown.open {
  z-index: 80;
}

.arsenal-dropdown-toggle {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  border: 1px solid #cfe1d9;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--ink);
  display: grid;
  gap: 2px 10px;
  grid-template-columns: minmax(0, 1fr) 28px;
  min-height: 48px;
  padding: 8px 10px 8px 12px;
  text-align: left;
  width: 100%;
}

.arsenal-dropdown-toggle:hover,
.arsenal-dropdown.open .arsenal-dropdown-toggle {
  background: #f4fbf8;
  border-color: #9fcfbc;
  box-shadow: 0 10px 24px rgba(15, 84, 62, 0.08);
  transform: none;
}

.arsenal-dropdown-value {
  color: var(--green-dark);
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.arsenal-dropdown-subline {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 750;
  grid-column: 1 / 2;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.arsenal-dropdown-chevron {
  align-items: center;
  align-self: center;
  background: #eef8f3;
  border: 1px solid #d3e8df;
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 28px;
  justify-content: center;
  transition: transform var(--motion-base) ease, background-color var(--motion-base) ease;
  width: 28px;
}

.arsenal-dropdown.open .arsenal-dropdown-chevron {
  background: var(--green);
  color: #fff;
  transform: rotate(180deg);
}

.arsenal-dropdown.compact .arsenal-dropdown-toggle {
  min-height: 40px;
  padding: 6px 8px 6px 10px;
}

.arsenal-dropdown.compact .arsenal-dropdown-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arsenal-dropdown.compact .arsenal-dropdown-subline {
  display: none;
}

.arsenal-dropdown.compact .arsenal-dropdown-menu {
  min-width: 190px;
}

.arsenal-dropdown-chevron svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.arsenal-dropdown-menu {
  animation: dropdownRise 160ms ease both;
  background: #ffffff;
  border: 1px solid #cfe1d9;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(14, 66, 50, 0.16);
  display: none;
  gap: 5px;
  left: var(--dropdown-left, 0);
  max-height: var(--dropdown-max-height, 310px);
  max-width: calc(100vw - 24px);
  overflow: auto;
  padding: 7px;
  position: fixed;
  right: auto;
  top: var(--dropdown-top, 0);
  width: var(--dropdown-width, min(520px, calc(100vw - 24px)));
  z-index: 10020;
}

.arsenal-dropdown.open .arsenal-dropdown-menu,
.arsenal-dropdown-menu.open {
  display: grid;
}

.arsenal-dropdown-option {
  align-items: center;
  background: #fbfdfd;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  justify-items: stretch;
  min-height: 36px;
  padding: 7px 8px;
  text-align: left;
}

.arsenal-dropdown-option span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.arsenal-dropdown-option:hover {
  background: #f2faf6;
  border-color: #c8e2d7;
  transform: none;
}

.arsenal-dropdown-option.active {
  background: #eaf7f1;
  border-color: #9fd0bd;
  color: var(--green-dark);
}

.arsenal-dropdown-check {
  align-items: center;
  background: #eef7f3;
  border: 1px solid #d2e7df;
  border-radius: 6px;
  color: var(--green);
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 18px;
}

.arsenal-dropdown-check.radio {
  border-radius: 50%;
}

.arsenal-dropdown-option.active .arsenal-dropdown-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.arsenal-dropdown-option.active .arsenal-dropdown-check.radio::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
}

.arsenal-dropdown-check.checkbox {
  font-size: 10px;
}

.arsenal-dropdown-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

@keyframes dropdownRise {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.release-template-picker-panel .action-row {
  margin: 0;
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  align-self: start;
}

.release-template-picker-panel .action-row button {
  min-height: 36px;
  padding: 8px 11px;
  width: auto;
  justify-content: center;
  white-space: nowrap;
}

.release-template-group-panel h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.release-template-group-head {
  display: grid;
  gap: 4px;
}

.scenario-support-badge {
  width: max-content;
  border: 1px solid #b8dccd;
  border-radius: 999px;
  background: #eaf7f1;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
}

.release-template-group-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, 132px);
  align-items: end;
  gap: 10px 12px;
  min-width: 0;
}

.release-template-group-controls button {
  width: 100%;
  align-self: end;
  margin-top: 0;
  min-height: 48px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.scenario-support-summary {
  display: grid;
  gap: 7px;
  background: #f4fbf8;
}

.scenario-support-summary b,
.scenario-support-summary small {
  display: block;
  min-width: 0;
}

.scenario-support-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.scenario-support-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.scenario-support-steps span {
  min-width: 0;
  border: 1px solid #d8e9e2;
  border-radius: 8px;
  background: #fff;
  color: #49635a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 8px;
}

.release-scenario-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.release-scenario-guide span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  padding: 8px 9px;
}

.compact-actions {
  gap: 6px;
}

.compact-actions button {
  min-height: 32px;
  padding: 6px 8px;
}

.scenario-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  position: relative;
}

.scenario-current {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fcfa, #ffffff);
  min-width: 0;
}

.scenario-current b {
  color: var(--green-dark);
  font-size: 14px;
}

.scenario-current span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.scenario-context-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f8fbfa;
  min-width: 0;
}

.scenario-context-panel h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 14px;
}

.scenario-context-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.scenario-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scenario-context-item {
  width: 100%;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: none;
  min-width: 0;
  display: grid;
  align-content: center;
}

.scenario-context-item:hover {
  border-color: #9fcfbc;
  background: #f9fdfb;
  transform: none;
}

.scenario-context-item span,
.scenario-context-item b {
  display: block;
  min-width: 0;
}

.scenario-context-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.scenario-context-item b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.scenario-context-item.ready {
  border-color: #bddbce;
  background: #f4fbf7;
}

.scenario-context-item.warn {
  border-color: #f0d3a2;
  background: #fff9ed;
}

.scenario-settings-panel,
.scenario-save-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d4e2dc;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.scenario-settings-panel h3,
.scenario-save-panel h3 {
  margin: 0;
  font-size: 14px;
}

.scenario-inline-summary {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f5faf8;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 12px;
}

.multi-base-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 8px;
  align-items: center;
}

.multi-base-toolbar b {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f5faf8;
  color: var(--green-dark);
  font-size: 13px;
}

.multi-base-preview-tools,
.release-data-source-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.multi-base-preview-tools {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.release-data-source-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.release-data-source-panel .release-data-source-head,
.release-data-source-panel .release-source-mode {
  grid-column: auto;
}

.release-data-source-panel .release-source-panels {
  grid-column: auto;
}

.release-data-source-panel > .action-row {
  grid-column: auto;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  margin-top: -2px;
}

.release-data-source-panel > .action-row button {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border-color: #8fcab3;
  background: #f0faf5;
  color: var(--green-dark);
  justify-content: center;
  white-space: nowrap;
}

.release-data-source-panel > .action-row button:hover {
  border-color: var(--green);
  background: #e8f7f0;
}

.multi-base-preview-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.multi-base-preview-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.multi-base-preview-tools select {
  min-height: 36px;
}

.multi-base-preview-tools button {
  min-height: 36px;
}

.release-data-source-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.release-data-source-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  max-width: 760px;
}

.release-source-mode,
.release-document-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #d6e7e0;
  border-radius: 8px;
  background: #f1f7f4;
  min-width: 0;
}

.release-source-mode button,
.release-document-mode button {
  min-height: 36px;
  min-width: 0;
  border-color: transparent;
  background: transparent;
  color: #48675b;
  box-shadow: none;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.release-source-mode button:hover,
.release-document-mode button:hover {
  border-color: #c8e2d7;
  background: #f9fdfb;
  transform: none;
}

.release-source-mode button.active,
.release-document-mode button.active {
  border-color: #9fcfbc;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(15, 84, 62, 0.06);
}

.release-source-panels {
  display: grid;
  gap: 8px;
}

.release-source-panel {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d6e7e0;
  border-radius: 8px;
  background: #f8fbfa;
}

.release-source-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.multi-base-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-right: 3px;
}

.multi-base-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.multi-base-row:has(input:checked) {
  border-color: #b9dccd;
  background: #f1faf6;
}

.multi-base-row b,
.multi-base-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-base-row b {
  color: var(--ink);
  font-size: 13px;
}

.multi-base-row small {
  color: var(--muted);
  font-size: 11px;
}

.scenario-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  cursor: pointer;
}

.scenario-option input {
  margin-top: 3px;
}

.scenario-option b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.scenario-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.scenario-settings {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.scenario-routing-table {
  overflow: auto;
  max-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scenario-routing-table table {
  margin: 0;
}

.route-status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.route-status.warn {
  background: #fff3dc;
  color: var(--amber);
}

.guide {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #cfddd8;
  border-radius: 8px;
  background: #f5faf7;
}

.guide h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide p,
.hint {
  color: var(--muted);
  line-height: 1.45;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.prep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.template-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f2;
}

.template-mode-switch button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
}

.template-mode-switch button.active {
  background: #fff;
  border-color: #cfe2d8;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(13, 28, 24, 0.08);
}

.template-mode-panel {
  display: none;
}

.template-mode-panel[hidden] {
  display: none !important;
}

.template-mode-panel.active {
  display: block;
}

.prep-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.prep-card-head {
  cursor: default;
  list-style: none;
  font-size: 15px;
  font-weight: 750;
}

.prep-card-head::-webkit-details-marker {
  display: none;
}

.prep-card-head span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prep-card-head span::after {
  content: "";
}

.prep-card:not([open]) .prep-card-head span::after {
  transform: none;
}

.template-mode-panel.active > .prep-card-head {
  display: none;
}

.prep-card-body {
  display: grid;
  gap: 10px;
}

.prep-card h3 {
  font-size: 15px;
}

.template-archive-workspace,
.template-group-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr);
  min-width: 0;
}

.template-card {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.template-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.template-card-head h3 {
  font-size: 16px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.template-builder-status {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.builder-status-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
}

.builder-status-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.builder-status-item b {
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-status-item.done {
  background: #f0faf5;
  border-color: #b8ddcc;
}

.builder-status-item.pending {
  background: #fffaf1;
  border-color: #efd8aa;
}

.template-builder-workspace {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr);
  min-width: 0;
}

.template-builder-workspace > * {
  min-width: 0;
}

.template-builder-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.template-builder-fields {
  grid-row: span 2;
  min-height: 0;
}

.template-builder-save {
  grid-column: 1;
}

.constructor-fields-head,
.constructor-suggestions-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.constructor-fields-head span,
.constructor-suggestions-head b {
  font-weight: 800;
}

.constructor-fields-head strong,
.constructor-suggestions-head span {
  color: var(--muted);
  font-size: 12px;
}

.constructor-suggestions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.constructor-suggestions-head .action-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.constructor-suggestion-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.constructor-suggestion {
  align-items: start;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 8px;
}

.constructor-suggestion.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.constructor-suggestion input {
  margin-top: 3px;
}

.constructor-suggestion b,
.constructor-suggestion small {
  display: block;
  overflow-wrap: anywhere;
}

.constructor-suggestion small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.template-library-card {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.template-library-toolbar {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
}

.template-library-toolbar button {
  font-size: 12px;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-library-toolbar button.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.template-library-list {
  align-content: start;
  display: grid;
  gap: 8px;
  max-height: 360px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.template-library-item {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.template-library-item.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.template-library-item.previewing,
.template-group-archive-item.previewing {
  box-shadow: inset 3px 0 0 var(--green);
}

.template-pick {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
}

.template-pick input {
  margin-top: 3px;
  width: auto;
}

.template-pick b {
  display: block;
  overflow-wrap: anywhere;
}

.template-pick small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 3px;
}

.template-item-meta {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 3px;
  min-width: 0;
}

.template-item-actions {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content max-content 32px;
}

.template-item-actions button {
  font-size: 12px;
  min-height: 30px;
  min-width: 0;
  padding: 5px 8px;
  white-space: nowrap;
}

.icon-danger {
  align-items: center;
  background: #fff7f5;
  border-color: #f0c7bd;
  color: #9f2f20;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.icon-danger:hover {
  background: #ffecea;
  border-color: #e5a99d;
}

.icon-danger svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.template-groups-card {
  align-self: start;
}

.template-group-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.template-group-subhead {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.template-group-subhead h3 {
  margin: 0;
}

.template-group-subhead span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.template-group-subhead-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.template-group-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  user-select: none;
  white-space: nowrap;
}

.template-group-toggle input {
  margin: 0;
  min-height: 0;
  width: auto;
}

.template-group-toggle:has(input:checked),
.template-group-toggle:has(input:indeterminate) {
  background: #eef8f3;
  border-color: #b9dbc9;
  color: var(--green-dark);
}

.template-group-toggle:has(input:disabled) {
  cursor: default;
  opacity: 0.55;
}

.template-group-archive-list {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  padding-right: 2px;
}

.template-group-archive-item {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px;
}

.template-group-archive-item.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.template-group-archive-item input {
  margin-top: 3px;
  width: auto;
}

.template-group-archive-item b {
  display: block;
  overflow-wrap: anywhere;
}

.template-group-archive-item small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 2px;
}

.template-group-draft-list {
  margin-top: 8px;
}

.compact-drop {
  min-height: 92px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
}

.check-line input {
  width: auto;
  margin-top: 2px;
}

.source-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-dashboard {
  display: grid;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.overview-next-card {
  --overview-action-accent: var(--green);
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.1), rgba(255, 255, 255, 0) 62%),
    var(--panel);
  border: 1px solid rgba(29, 124, 90, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(24, 39, 46, 0.055);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(292px, max-content);
  align-items: center;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.overview-next-card::before {
  background: var(--overview-action-accent);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 3px;
}

.overview-next-card:hover {
  border-color: rgba(29, 124, 90, 0.28);
  box-shadow: 0 12px 28px rgba(24, 39, 46, 0.075);
  transform: translateY(-1px);
}

.overview-next-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.overview-next-copy b {
  color: var(--text);
  font-size: 21px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.overview-next-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 720px;
}

.overview-next-card .action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(156px, 1.05fr) minmax(148px, 0.95fr);
  min-width: 292px;
}

.overview-next-card .action-row button {
  border-radius: 8px;
  min-height: 44px;
  overflow-wrap: anywhere;
  padding-inline: 14px;
  white-space: normal;
}

.overview-next-card #overviewNextActionBtn {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(29, 124, 90, 0.16);
  color: #fff;
}

.overview-next-card #overviewNextActionBtn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 10px 22px rgba(20, 90, 66, 0.18);
}

.overview-next-card #sourceSaveKitBtn {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(29, 124, 90, 0.24);
  color: var(--green-dark);
}

.overview-next-card #sourceSaveKitBtn:hover:not(:disabled) {
  background: #f2faf6;
  border-color: rgba(29, 124, 90, 0.42);
  color: var(--green-dark);
}

.first-run-hints {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.15fr) repeat(2, minmax(180px, 0.92fr));
}

.first-run-hints[hidden],
.first-run-card[hidden] {
  display: none !important;
}

.first-run-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(38, 83, 70, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 248, 0.94)),
    #fff;
  box-shadow: 0 8px 22px rgba(24, 39, 46, 0.045);
}

.first-run-card-main {
  border-color: rgba(15, 123, 95, 0.2);
  background:
    linear-gradient(135deg, rgba(15, 123, 95, 0.09), rgba(255, 255, 255, 0) 58%),
    #fff;
}

.first-run-card h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.22;
}

.first-run-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.42;
}

.first-run-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 900;
}

.first-run-card button,
.first-empty-state button {
  justify-self: start;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-700);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.first-run-card button:hover,
.first-empty-state button:hover {
  background: var(--surface-50);
  border-color: rgba(15, 123, 95, 0.34);
  color: var(--ink-900);
}

.first-run-inline-tip {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 123, 95, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 123, 95, 0.07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.96));
  box-shadow: 0 10px 26px rgba(24, 39, 46, 0.045);
}

.first-run-inline-tip[hidden] {
  display: none !important;
}

.first-run-inline-tip h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.22;
}

.first-run-inline-tip p {
  margin: 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.45;
}

.first-run-inline-tip button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-700);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.first-run-inline-tip button:hover {
  background: var(--surface-50);
  border-color: rgba(15, 123, 95, 0.34);
  color: var(--ink-900);
}

.template-archive-workspace .template-upload-card,
.template-archive-workspace .first-run-inline-tip {
  grid-column: 1;
}

.template-archive-workspace .template-library-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 1420px) {
  .first-run-hints {
    grid-template-columns: 1fr;
  }

  .first-run-card {
    min-height: 0;
  }
}

.overview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.overview-card {
  --overview-accent: #8da0a8;
  --overview-accent-soft: #f3f7f7;
  --overview-accent-line: #d7e2e2;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--overview-accent-line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  min-height: 194px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  position: relative;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease, background-color var(--motion-base) ease;
}

.overview-card::after {
  background: linear-gradient(90deg, var(--overview-accent), rgba(255, 255, 255, 0));
  content: "";
  height: 2px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 0;
}

.overview-card-step {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.overview-card .selection-status {
  align-items: center;
  justify-content: flex-start;
  line-height: 1.18;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.overview-card:hover,
.overview-project-card:hover {
  border-color: var(--overview-accent-line);
  box-shadow: 0 10px 24px rgba(24, 39, 46, 0.07);
  transform: translateY(-1px);
}

.card:hover,
.release-card:hover {
  border-color: #c4d4d9;
  box-shadow: var(--shadow-soft);
}

.overview-card:has(.selection-status.ready) {
  --overview-accent: var(--green);
  --overview-accent-soft: #eef8f3;
  --overview-accent-line: rgba(29, 124, 90, 0.24);
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.72) 0%, rgba(255, 255, 255, 0.95) 46%),
    #fff;
}

.overview-card:has(.selection-status.warn) {
  --overview-accent: var(--amber);
  --overview-accent-soft: #fff8ec;
  --overview-accent-line: rgba(163, 99, 20, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.82) 0%, rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.overview-card:has(.selection-status.error) {
  --overview-accent: var(--red);
  --overview-accent-soft: #fff1f1;
  --overview-accent-line: rgba(166, 63, 63, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 241, 241, 0.82) 0%, rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.overview-card .selection-status::before {
  flex: 0 0 auto;
}

.overview-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 38px;
}

.overview-card-head h3 {
  font-size: 15px;
  margin: 1px 0 0;
}

.overview-icon {
  align-items: center;
  background: var(--overview-accent-soft);
  border: 1px solid var(--overview-accent-line);
  border-radius: 9px;
  color: var(--overview-accent);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.overview-icon svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.overview-card .token-preview {
  align-items: center;
  background: #f8fbfb;
  border: 1px solid #dce7e7;
  border-radius: 8px;
  color: #344b54;
  display: -webkit-box;
  min-height: 48px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 8px 9px;
  font-size: 12.5px;
  line-height: 1.35;
}

.overview-card button {
  align-self: end;
  background: #ffffff;
  border-color: #d5e1e1;
  border-radius: 8px;
  color: var(--text);
  justify-self: stretch;
  line-height: 1.18;
  margin-top: auto;
  min-height: 40px;
  padding: 7px 9px;
  font-size: 12.5px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.overview-card button:hover {
  background: var(--overview-accent-soft);
  border-color: var(--overview-accent-line);
  color: var(--green-dark);
}

.overview-project-card {
  align-items: start;
  --overview-accent: var(--green);
  background:
    linear-gradient(135deg, rgba(33, 108, 155, 0.055), rgba(255, 255, 255, 0) 56%),
    var(--panel);
  border: 1px solid rgba(38, 83, 70, 0.13);
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(24, 39, 46, 0.035);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(210px, 0.68fr) minmax(0, 1.32fr);
  margin-bottom: 0;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.overview-project-copy {
  display: grid;
  gap: 6px;
}

.overview-project-copy h3 {
  font-size: 18px;
  margin: 0;
}

.overview-project-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.project-library-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.overview-project-card .project-name-field {
  margin-bottom: 0;
}

.overview-project-card .action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-project-card .action-row button {
  border-radius: 8px;
  min-height: 38px;
  white-space: normal;
}

.overview-project-card #loadProjectBtn {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.overview-project-card #loadProjectBtn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.overview-project-card.project-library-card {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.07), rgba(255, 255, 255, 0) 52%),
    #ffffff;
  border-color: rgba(29, 124, 90, 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(24, 39, 46, 0.045);
  gap: 14px;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1.42fr);
  margin-bottom: 0;
  padding: 14px;
}

.overview-project-card.project-library-card .overview-project-copy {
  align-content: start;
  gap: 5px;
}

.overview-project-card.project-library-card .overview-project-copy h3 {
  font-size: 17px;
  margin: 0;
}

.overview-project-card.project-library-card .overview-project-copy p:not(.eyebrow) {
  max-width: 280px;
}

.overview-project-card.project-library-card .project-library-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, 0.85fr);
}

.overview-project-card.project-library-card .project-name-field {
  margin: 0;
}

.overview-project-card.project-library-card .project-name-field,
.overview-project-card.project-library-card select {
  min-width: 0;
}

.overview-project-card.project-library-card .action-row {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(112px, 0.95fr) minmax(132px, 1.1fr) minmax(120px, 1fr) minmax(96px, 0.8fr);
}

.overview-project-card.project-library-card .action-row button {
  min-height: 38px;
  padding: 7px 10px;
  white-space: normal;
}

.overview-project-card.project-library-card #projectLibraryInfo {
  grid-column: 1 / -1;
  background: #f6fbf8;
  border-color: rgba(29, 124, 90, 0.16);
  color: #4f625d;
  padding: 8px 10px;
}

@container (max-width: 760px) {
  .overview-next-card,
  .kit-next-panel.overview-next-card {
    grid-template-columns: 1fr;
  }

  .overview-next-card .action-row,
  .kit-next-panel.overview-next-card .action-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .overview-project-card {
    grid-template-columns: 1fr;
  }

  .overview-project-card.project-library-card {
    grid-template-columns: 1fr;
  }

  .overview-project-card.project-library-card .project-library-controls {
    grid-template-columns: minmax(0, 1fr) minmax(138px, 0.72fr);
  }

  .overview-project-card .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-project-card.project-library-card .action-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 460px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-project-card.project-library-card .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-project-card.project-library-card .project-library-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1420px) {
  .overview-next-card,
  .kit-next-panel.overview-next-card {
    grid-template-columns: 1fr;
  }

  .overview-next-card .action-row,
  .kit-next-panel.overview-next-card .action-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

.source-kit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.source-kit-grid .rule-card {
  align-content: start;
  min-width: 0;
}

.project-setup-grid {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  margin-bottom: 12px;
}

.project-library-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.project-library-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.project-library-card .eyebrow {
  margin-bottom: 2px;
}

.project-library-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.project-library-controls {
  display: grid;
  gap: 8px;
}

.project-name-field {
  margin-bottom: 12px;
}

.release-template-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.project-setup-grid .release-template-picker {
  margin-top: 0;
}

.release-template-picker h3 {
  font-size: 15px;
}

.kit-section-head {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.kit-section-head > span {
  align-items: center;
  background: #e8f5ef;
  border: 1px solid #b8d8ca;
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.kit-section-head h3 {
  margin: 0 0 2px;
}

.kit-section-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.kit-current-summary {
  background: #eef8f3;
  border-color: #c9e1d5;
}

.release-template-picker select[multiple] {
  min-height: 148px;
}

.kit-list-toolbar {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
}

.kit-list-toolbar > div {
  display: flex;
  gap: 6px;
}

.kit-list-toolbar button {
  min-height: 28px;
  padding: 4px 8px;
}

.kit-choice-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 230px;
  min-height: 72px;
  overflow: auto;
  padding: 8px;
  background: #fff;
}

.base-choice-list {
  max-height: 176px;
  min-height: 86px;
}

.template-choice-list {
  max-height: 310px;
}

.kit-choice-card {
  align-items: flex-start;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 9px 10px;
}

.kit-choice-card:hover,
.kit-choice-card.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.kit-choice-card input {
  margin-top: 2px;
  width: auto;
}

.kit-choice-card b,
.kit-choice-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kit-choice-card small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.kit-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px;
}

.kit-next-panel {
  align-items: center;
  background: #0d3f32;
  border: 1px solid #0d3f32;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px 14px;
}

.kit-next-panel b,
.kit-next-panel span {
  display: block;
}

.kit-next-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.kit-next-panel button {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--green-dark);
}

.kit-next-panel .primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.kit-next-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.kit-next-panel.overview-next-card {
  background:
    linear-gradient(135deg, rgba(15, 123, 95, 0.1), rgba(255, 255, 255, 0) 54%),
    var(--panel);
  border-color: rgba(15, 123, 95, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(25, 50, 45, 0.075);
  color: var(--text);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, max-content);
  align-items: center;
  margin: 0;
  padding: 18px;
}

.kit-next-panel.overview-next-card .overview-next-copy b {
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.kit-next-panel.overview-next-card .overview-next-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 0;
  max-width: 720px;
}

.kit-next-panel.overview-next-card > div:first-child > b {
  color: var(--text);
}

.kit-next-panel.overview-next-card > div:first-child > span {
  color: var(--muted);
}

.kit-next-panel.overview-next-card .action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(148px, 1.1fr) minmax(142px, 0.9fr);
  min-width: 300px;
}

.kit-next-panel.overview-next-card button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--green-dark);
}

.kit-next-panel.overview-next-card .primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

@media (max-width: 1420px) {
  .kit-next-panel.overview-next-card {
    grid-template-columns: 1fr;
  }

  .kit-next-panel.overview-next-card .action-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

.release-template-picker .action-row button,
.project-library-card .action-row button {
  white-space: nowrap;
}

.overview-project-card.project-library-card .action-row button {
  white-space: normal;
}

.ghost-danger {
  background: #fff7f5;
  border-color: #f0c7bd;
  color: #9f2f20;
}

.ghost-danger:hover {
  background: #ffecea;
  border-color: #e5a99d;
}

.base-workspace {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-width: 0;
}

.base-left-stack {
  align-content: start;
  display: grid;
  gap: 12px;
  grid-column: 1;
  min-width: 0;
}

.base-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.base-upload-card .base-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.base-upload-card .base-card-head .selection-status {
  justify-content: flex-start;
  max-width: 100%;
  text-align: left;
}

.base-library-card {
  align-self: start;
  grid-column: 2;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.base-upload-card {
  grid-column: 1;
  grid-row: 1;
}

.base-settings-card {
  grid-column: 1;
  grid-row: 2;
}

.base-upload-card,
.base-settings-card {
  align-self: start;
}

.base-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.base-card-head > div {
  min-width: 0;
}

.base-card-head h3 {
  font-size: 16px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.base-card-head .selection-status {
  flex: 0 1 auto;
  justify-content: flex-end;
  max-width: min(230px, 48%);
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.base-count {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 9px;
  white-space: nowrap;
}

.base-search-field {
  display: grid;
  gap: 5px;
}

.base-search-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.base-library-toolbar {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
}

.base-library-toolbar button {
  font-size: 12px;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-library-toolbar button.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.base-library-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.base-library-item {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.base-library-item.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.base-pick {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
}

.base-pick input {
  margin-top: 3px;
  width: auto;
}

.base-pick b {
  display: block;
  overflow-wrap: anywhere;
}

.base-pick small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 3px;
}

.base-sheet-stats {
  background: #f3f7f7;
  border: 1px solid #dfe9e8;
  border-radius: 7px;
  color: #3f5b59;
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
}

.base-item-meta {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.base-item-meta strong {
  color: var(--green-dark);
  flex: 0 0 auto;
}

.base-item-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: max-content max-content 32px;
  align-items: center;
}

.base-item-actions button {
  font-size: 12px;
  min-height: 30px;
  min-width: 0;
  padding: 5px 8px;
  white-space: nowrap;
}

.base-icon-action,
.base-icon-danger {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.base-icon-action {
  background: #f0faf5;
  border-color: #cbe4d9;
  color: var(--green-dark);
}

.base-icon-action:hover {
  background: #e5f5ed;
  border-color: #9ccfb8;
}

.base-icon-danger {
  background: #fff7f5;
  border-color: #f0c7bd;
  color: #9f2f20;
}

.base-icon-danger:hover {
  background: #ffecea;
  border-color: #e5a99d;
}

.base-icon-action svg,
.base-icon-danger svg {
  height: 16px;
  width: 16px;
}

.base-icon-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.base-icon-danger svg {
  fill: currentColor;
}

.base-empty {
  background: #fbfdfd;
  border: 1px dashed #c9d6db;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.45;
  padding: 14px;
}

.base-active-info {
  background: #f5faf8;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  color: var(--green-dark);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 10px;
}

.base-active-info b {
  display: block;
  overflow-wrap: anywhere;
}

.base-active-info small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin-top: 3px;
}

/* Admin UI polish pass */
.admin-console-body {
  --admin-bg: #f7faf8;
  --admin-surface: #ffffff;
  --admin-card-radius: 16px;
  --admin-line: rgba(37, 70, 62, 0.12);
  --admin-shadow: 0 14px 34px rgba(23, 54, 48, 0.07);
  --admin-shadow-soft: 0 8px 20px rgba(23, 54, 48, 0.045);
  font-feature-settings: "tnum" 1;
}

.admin-console-body svg {
  display: block;
}

.admin-dashboard-shell {
  grid-template-columns: 284px minmax(0, 1fr);
}

.admin-main {
  padding: 22px 30px 30px;
}

.admin-content {
  width: 100%;
  max-width: none;
  gap: 14px;
}

.admin-console-body .admin-log-panel,
.admin-console-body .admin-shell,
.admin-console-body .admin-ops-grid,
.admin-console-body .admin-storage-panel,
.admin-console-body .admin-feedback-panel,
.admin-console-body .admin-library-panel,
.admin-console-body .admin-system-panel,
.admin-console-body .admin-control-strip,
.admin-console-body .admin-insights-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.admin-console-body .admin-log-panel,
.admin-console-body .admin-shell,
.admin-console-body .admin-ops-grid,
.admin-console-body .admin-storage-panel,
.admin-console-body .admin-feedback-panel,
.admin-console-body .admin-library-panel,
.admin-console-body .admin-system-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-sidebar {
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.94);
}

.admin-brand-text small,
.admin-sidebar-user span {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-sidebar .admin-section-nav {
  margin: 26px 0;
  gap: 5px;
}

.admin-sidebar .admin-section-nav button {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 46px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 14px;
}

.admin-nav-icon,
.admin-kpi-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: transparent;
  color: #607082;
}

.admin-nav-icon svg,
.admin-kpi-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar .admin-section-nav button.active .admin-nav-icon,
.admin-sidebar .admin-section-nav button:hover .admin-nav-icon {
  background: rgba(15, 123, 95, 0.1);
  color: var(--admin-green);
}

.admin-sidebar .admin-section-nav button.active {
  border-color: rgba(15, 123, 95, 0.16);
  background: #eef8f3;
  box-shadow: none;
}

.admin-sidebar-profile {
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.admin-sidebar-logout {
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-topbar {
  grid-template-columns: auto minmax(260px, 1fr) minmax(520px, auto);
  margin: -22px -30px 16px;
  padding: 20px 30px;
}

.admin-topbar h1 {
  font-size: clamp(25px, 1.7vw, 32px);
}

.admin-topbar p {
  max-width: 640px;
}

.admin-search {
  min-width: 230px;
}

.admin-period-select {
  max-width: 160px;
}

.admin-console-body .admin-metrics,
.admin-kpi-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-metric-card::after {
  display: none;
}

.admin-kpi-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 123, 95, 0.14);
  background: var(--admin-soft);
  color: var(--admin-green);
}

.admin-metric-card.warn .admin-kpi-icon {
  border-color: rgba(217, 134, 33, 0.18);
  background: #fff5e8;
  color: var(--admin-warn);
}

.admin-metric-card.error .admin-kpi-icon {
  border-color: rgba(207, 63, 63, 0.18);
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-kpi-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-kpi-label {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.admin-metric-card b {
  color: var(--admin-text);
  font-size: clamp(19px, 1.3vw, 25px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-metric-card small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-metric-card .admin-mini-chart {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 58px;
  height: 29px;
  margin: 0;
  opacity: 0.82;
}

.admin-mini-chart polyline {
  stroke-width: 2.6;
}

.admin-kpi-progress {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--admin-green) var(--bar, 0%), #e5eeea var(--bar, 0%));
}

.admin-dashboard-panel,
.admin-log-panel,
.admin-section-card,
.admin-system-grid section {
  border-radius: var(--admin-card-radius);
  border-color: var(--admin-line);
  box-shadow: var(--admin-shadow-soft);
}

.admin-dashboard-panel {
  padding: 16px;
}

.admin-panel-head,
.admin-card-head,
.admin-section-head {
  margin-bottom: 12px;
}

.admin-panel-head h1,
.admin-panel-head h2,
.admin-card-head h2,
.admin-card-head h3,
.admin-section-head h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
}

.admin-attention-panel,
.admin-recent-panel,
.admin-chart-panel,
.admin-control-strip,
.admin-insight-panel {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-card-radius);
  background: #fff;
  padding: 14px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-chart-panel {
  min-height: 166px;
}

.admin-bar-chart.compact,
.admin-status-bars.compact {
  min-height: auto;
}

.admin-bar-row {
  min-height: 26px;
  grid-template-columns: minmax(88px, 1fr) auto;
  gap: 6px 10px;
}

.admin-bar-row span {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-bar-row b {
  color: var(--admin-text);
  font-size: 12px;
}

.admin-bar-row i {
  height: 7px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.72) var(--bar), #e6efeb var(--bar));
}

.admin-warning-list article {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px;
}

.admin-warning-list article::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff5e8;
  color: var(--admin-warn);
  font-weight: 950;
}

.admin-warning-list article.error::before,
.admin-warning-list article.critical::before {
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-warning-list article > div {
  min-width: 0;
}

.admin-warning-list button,
.admin-card-head button,
.admin-panel-head button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-status-list {
  gap: 9px;
}

.admin-status-list article,
.admin-recent-list article,
.admin-control-list article {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #fff;
}

.admin-control-strip {
  padding: 14px;
}

.admin-control-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-control-list button,
.admin-control-list article {
  min-height: 76px;
}

.admin-insights-grid {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-feedback-summary-grid,
.feedback-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-feedback-summary-grid article,
.feedback-summary-grid article {
  border-radius: 14px;
}

.admin-feedback-visuals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-feedback-visuals > section {
  padding: 14px;
  border-radius: var(--admin-card-radius);
  box-shadow: var(--admin-shadow-soft);
}

.admin-library-grid,
.admin-folder-grid {
  gap: 10px;
}

.admin-library-card,
.admin-folder-grid article {
  border-radius: 14px;
}

.admin-system-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 12px;
}

.admin-system-grid .admin-system-health {
  grid-column: 1;
}

.admin-system-grid section:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.admin-system-grid section:nth-child(3),
.admin-system-grid section:nth-child(4) {
  grid-column: 1;
}

.admin-system-grid section {
  padding: 14px;
}

.admin-system-checks {
  grid-template-columns: 1fr;
  gap: 9px;
}

.admin-system-checks article {
  min-height: 62px;
}

.admin-folder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-system-facts {
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-system-facts span {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 11px 12px;
}

.admin-system-tools {
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-system-tools article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
}

.admin-empty-state,
.empty-state,
.empty {
  border-radius: 13px;
  color: var(--admin-muted);
}

@media (min-width: 1560px) {
  .admin-dashboard-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .admin-kpi-row,
  .admin-console-body .admin-metrics {
    gap: 14px;
  }
}

@media (max-width: 1480px) {
  .admin-topbar {
    grid-template-columns: auto minmax(240px, 1fr);
  }

  .admin-topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-console-body .admin-metrics,
  .admin-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-control-list,
  .admin-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-sidebar-collapsed .admin-dashboard-shell,
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-collapsed .admin-sidebar {
    padding-inline: 18px;
  }

  .admin-system-grid,
  .admin-system-grid .admin-system-health,
  .admin-system-grid section:nth-child(2),
  .admin-system-grid section:nth-child(3),
  .admin-system-grid section:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-system-grid,
  .admin-dashboard-grid,
  .admin-feedback-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-console-body .admin-dashboard-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-console-body .admin-main {
    width: 100% !important;
  }
}

.base-state-dot {
  background: var(--green);
  border-radius: 50%;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.base-state-dot.warn {
  background: var(--amber);
}

.base-upload-card .action-row,
.base-settings-card .action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
}

.base-upload-card .action-row button,
.base-settings-card .action-row button {
  white-space: nowrap;
}

.sheets-panel {
  padding: 14px;
}

.sheet-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: min(740px, calc(100vh - 160px));
  transition: grid-template-columns 180ms ease;
}

.sheet-workspace.library-collapsed {
  grid-template-columns: 54px minmax(0, 1fr);
}

.sheet-library-card,
.sheet-editor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.sheet-library-card {
  align-content: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 176px);
  overflow: hidden;
  padding: 12px;
  transition: padding 180ms ease;
}

.sheet-library-head-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.sheet-collapse-btn {
  align-items: center;
  background: #f4faf7;
  border-color: #cbe4d9;
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.sheet-collapse-btn svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  transition: transform 160ms ease;
  width: 17px;
}

.sheet-workspace.library-collapsed .sheet-collapse-btn svg {
  transform: rotate(180deg);
}

.sheet-workspace.library-collapsed .sheet-library-card {
  gap: 8px;
  padding: 10px 8px;
}

.sheet-workspace.library-collapsed .sheet-library-card .base-card-head {
  align-items: center;
  justify-content: center;
}

.sheet-workspace.library-collapsed .sheet-library-head-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sheet-workspace.library-collapsed .sheet-collapse-btn {
  display: inline-flex !important;
  visibility: visible;
}

.sheet-workspace.library-collapsed .sheet-library-card .base-card-head > div:not(.sheet-library-head-actions),
.sheet-workspace.library-collapsed .sheet-library-card .base-count {
  display: none;
}

.sheet-workspace.library-collapsed .sheet-library-card .primary-action {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 0;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.sheet-workspace.library-collapsed .sheet-library-card .primary-action::before {
  content: "+";
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.sheet-workspace.library-collapsed .workbook-library-list {
  gap: 8px;
  justify-items: center;
  overflow: auto;
  padding-right: 0;
}

.sheet-workspace.library-collapsed .base-empty {
  display: none;
}

.sheet-workspace.library-collapsed .workbook-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 5px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.sheet-workspace.library-collapsed .workbook-item > button:first-child,
.sheet-workspace.library-collapsed .workbook-item .base-icon-action,
.sheet-workspace.library-collapsed .workbook-item .base-icon-danger {
  border-radius: 10px;
  height: 34px;
  min-height: 34px;
  width: 34px;
}

.sheet-workspace.library-collapsed .workbook-item > button:first-child {
  align-items: center;
  background: #f6fbf8;
  border: 1px solid #cfe4db;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.sheet-workspace.library-collapsed .workbook-item.active > button:first-child {
  background: #e7f5ee;
  border-color: #94cdb4;
  box-shadow: inset 0 0 0 1px rgba(29, 130, 88, .15);
}

.sheet-workspace.library-collapsed .workbook-item > button:first-child::before {
  content: attr(data-short);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.sheet-workspace.library-collapsed .workbook-item b,
.sheet-workspace.library-collapsed .workbook-item span,
.sheet-workspace.library-collapsed .workbook-item small {
  display: none;
}

.workbook-library-list {
  align-content: start;
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.workbook-item {
  align-items: stretch;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  padding: 8px;
}

.workbook-item.active {
  background: #f0faf5;
  border-color: #a7d7c1;
}

.workbook-item > button:first-child {
  align-items: start;
  background: transparent;
  border: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.workbook-item b {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.workbook-item span,
.workbook-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.sheet-editor-card {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.sheet-editor-head,
.sheet-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
}

.sheet-title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sheet-name-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 20px;
  font-weight: 800;
  min-height: 26px;
  padding: 0;
}

.sheet-name-input:focus {
  box-shadow: none;
  outline: 2px solid rgba(29, 130, 88, 0.18);
}

.sheet-status {
  color: var(--muted);
  font-size: 12px;
}

.sheet-status.warn {
  color: #8a5a0a;
}

.sheet-actions,
.sheet-toolbar {
  flex-wrap: nowrap;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sheet-actions button,
.sheet-toolbar button {
  min-height: 34px;
  white-space: nowrap;
}

.sheet-toolbar {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 0;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 10px;
  scrollbar-width: thin;
}

.sheet-toolbar-group {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid #e2eaed;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  min-height: 34px;
  padding: 0 7px;
  width: max-content;
}

.sheet-toolbar-group:last-of-type {
  border-right: 0;
}

.sheet-tool-icon {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #62737b;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0;
}

.sheet-toolbar-group button,
.sheet-toolbar-group select {
  border-radius: 7px;
  font-size: 12px;
  min-height: 30px;
}

.sheet-toolbar-group button {
  border-color: transparent;
  color: #33434a;
  font-weight: 800;
  padding: 4px 7px;
}

.sheet-tool-icon svg,
.sheet-tool-action svg,
.sheet-tool-apply svg,
.sheet-icon-btn svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 17px;
}

.sheet-toolbar-group button:hover {
  border-color: #d3e2dd;
}

.sheet-history-tools {
  gap: 4px;
}

.sheet-toolbar-group .sheet-icon-btn {
  align-items: center;
  background: transparent;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.sheet-toolbar-group .sheet-icon-btn:hover,
.sheet-tool-action:hover {
  background: #eef7f3;
  color: var(--green-dark);
}

.sheet-toolbar-group .sheet-icon-btn:disabled {
  background: transparent;
  color: #a7b8b2;
  cursor: default;
}

.sheet-toolbar-group .sheet-icon-btn:disabled:hover {
  border-color: transparent;
}

.sheet-toolbar [data-workbook-tooltip]:disabled,
.sheet-bottom-tools [data-workbook-tooltip]:disabled {
  pointer-events: auto;
}

.workbook-tooltip {
  background: #10231e;
  border: 1px solid rgba(214, 231, 225, .24);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 35, 30, .22);
  color: #fff;
  display: grid;
  gap: 3px;
  line-height: 1.3;
  max-width: min(280px, calc(100vw - 20px));
  padding: 9px 11px;
  pointer-events: none;
  position: fixed;
  transform: translateY(-2px);
  z-index: 2600;
}

.workbook-tooltip[hidden] {
  display: none;
}

.workbook-tooltip::after {
  background: #10231e;
  border-bottom: 1px solid rgba(214, 231, 225, .2);
  border-right: 1px solid rgba(214, 231, 225, .2);
  bottom: -5px;
  content: "";
  height: 9px;
  left: calc(50% - 5px);
  position: absolute;
  transform: rotate(45deg);
  width: 9px;
}

.workbook-tooltip.below::after {
  border: 0;
  border-left: 1px solid rgba(214, 231, 225, .2);
  border-top: 1px solid rgba(214, 231, 225, .2);
  bottom: auto;
  top: -5px;
}

.workbook-tooltip b {
  font-size: 12px;
  font-weight: 900;
}

.workbook-tooltip span {
  color: #cfe3da;
  font-size: 11px;
  font-weight: 650;
}

.sheet-context-fill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 0 4px;
  text-transform: uppercase;
}

.sheet-tool-action {
  align-items: center;
  background: transparent;
  color: #33434a;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 !important;
  width: 30px;
}

.sheet-tool-danger {
  background: transparent;
  color: var(--red);
}

.sheet-tool-danger:hover {
  background: #fff0ed;
  border-color: #f0b8ad;
  color: var(--red);
}

.sheet-tool-action:disabled,
.sheet-tool-action:disabled:hover {
  background: transparent;
  border-color: transparent;
  color: #a7b8b2;
  cursor: default;
}

.sheet-format-tools {
  gap: 4px;
}

.sheet-format-toggle span {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
}

.sheet-format-toggle.active,
.sheet-format-toggle[aria-pressed="true"] {
  background: #1d8258 !important;
  border-color: #1d8258 !important;
  color: #fff !important;
}

.sheet-font-size {
  background: #fbfdfc;
  min-width: 48px;
}

#workbookFontSizeDropdown {
  width: 50px;
}

#workbookFontSizeDropdown .arsenal-dropdown-toggle {
  align-items: center;
  background: #fbfdfc;
  border-color: transparent;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  min-height: 30px;
  padding: 4px 16px 4px 6px;
  position: relative;
}

#workbookFontSizeDropdown .arsenal-dropdown-toggle:hover,
#workbookFontSizeDropdown.open .arsenal-dropdown-toggle {
  background: #eef7f3;
  border-color: #d3e2dd;
  box-shadow: none;
}

#workbookFontSizeDropdown .arsenal-dropdown-value {
  color: #33434a;
  font-size: 12px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
  width: 20px;
}

#workbookFontSizeDropdown .arsenal-dropdown-chevron {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 16px;
  position: absolute;
  right: 3px;
  width: 16px;
}

#workbookFontSizeDropdown .arsenal-dropdown-chevron svg {
  height: 13px;
  width: 13px;
}

#workbookFontSizeDropdownMenu {
  min-width: 58px;
  width: 58px;
}

#workbookFontSizeDropdownMenu .arsenal-dropdown-option {
  display: flex;
  justify-content: center;
  min-height: 30px;
  padding: 6px;
  text-align: center;
}

#workbookFontSizeDropdownMenu .arsenal-dropdown-check {
  display: none;
}

#workbookFontSizeDropdownMenu .arsenal-dropdown-option span:last-child {
  font-weight: 850;
  overflow-wrap: normal;
  white-space: nowrap;
}

.sheet-tool-apply {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

.sheet-tool-apply:hover {
  background: #0f6c49 !important;
  border-color: #0f6c49 !important;
  color: #fff !important;
}

.sheet-validation-tools .sheet-icon-btn {
  background: transparent;
}

.sheet-fill-swatch {
  appearance: none;
  background: var(--swatch) !important;
  background-color: var(--swatch) !important;
  border: 1px solid #bed6cd !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72);
  height: 20px;
  min-height: 20px !important;
  min-width: 20px;
  overflow: hidden;
  padding: 0 !important;
  position: relative;
  width: 20px;
}

.sheet-fill-swatch::after {
  background: var(--swatch);
  border-radius: inherit;
  content: "";
  inset: 3px;
  position: absolute;
}

.sheet-fill-swatch:hover {
  background: var(--swatch) !important;
  background-color: var(--swatch) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 3px rgba(29, 130, 88, .12);
}

.sheet-toolbar-group select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7f79 50%),
    linear-gradient(135deg, #6b7f79 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  border: 0;
  box-shadow: none;
  max-width: 168px;
  padding: 5px 28px 5px 8px;
}

.sheet-formula-bar {
  align-items: center;
  background: #fbfdfc;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  flex: 1 1 360px;
  gap: 0;
  grid-template-columns: 54px minmax(180px, 1fr);
  min-width: 0;
  overflow: hidden;
  padding: 6px 12px;
  width: 100%;
}

.sheet-formula-bar span {
  align-items: center;
  background: #edf6f2;
  border: 1px solid #cbe4d9;
  border-radius: 7px 0 0 7px;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 32px;
}

.sheet-formula-bar input {
  border: 1px solid #cbe4d9;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  box-shadow: none;
  min-height: 32px;
  padding-block: 6px;
}

.sheet-formula-bar input:focus {
  box-shadow: inset 0 0 0 2px rgba(29, 130, 88, 0.18);
}

.sheet-bottom-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 12px 0;
}

.sheet-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: auto;
  padding: 0;
}

.sheet-tabs button {
  background: #f8fbfa;
  border-color: var(--line);
  border-radius: 8px 8px 0 0;
  min-height: 32px;
  padding: 6px 12px;
  white-space: nowrap;
}

.sheet-tabs button.active {
  background: #fff;
  border-color: #a7d7c1;
  color: var(--green-dark);
}

.sheet-bottom-tools {
  align-items: center;
  align-self: start;
  display: flex;
  gap: 4px;
  padding-bottom: 6px;
}

.sheet-bottom-tools .sheet-icon-btn {
  align-items: center;
  background: #fbfdfc;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #33434a;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.sheet-bottom-tools .sheet-icon-btn:hover {
  background: #eef7f3;
  border-color: #d3e2dd;
  color: var(--green-dark);
}

.sheet-bottom-tools .sheet-icon-btn:disabled {
  color: #a7b8b2;
  cursor: default;
}

.sheet-bottom-tools svg,
.sheet-search-box svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 16px;
}

.sheet-search-box {
  align-items: center;
  background: #fbfdfc;
  border: 1px solid #d8e5e0;
  border-radius: 8px;
  color: #687a72;
  display: grid;
  gap: 5px;
  grid-template-columns: 16px minmax(92px, 132px) auto;
  min-height: 30px;
  padding: 0 7px;
}

.sheet-search-box:focus-within {
  background: #fff;
  border-color: #a7d7c1;
  box-shadow: 0 0 0 3px rgba(29, 130, 88, .1);
}

.sheet-search-box input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 24px;
  padding: 0;
}

.sheet-search-box input:focus {
  box-shadow: none;
}

.sheet-search-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  min-width: 22px;
  text-align: right;
}

.sheet-tab-name-input {
  background: #fff;
  border: 1px solid #a7d7c1;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 2px rgba(29, 130, 88, .08);
  color: var(--green-dark);
  font-weight: 800;
  min-height: 32px;
  padding: 5px 10px;
  width: 150px;
}

.sheet-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
}

.sheet-hint b {
  color: var(--green-dark);
}

.sheet-grid {
  min-height: 0;
  overflow: hidden;
  padding: 0 12px 12px;
}

.sheet-grid-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
  max-height: calc(100vh - 280px);
  overflow: auto;
  background: #fff;
}

.sheet-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: max-content;
}

.sheet-table th {
  background: #f5faf8;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  min-width: 104px;
  padding: 0 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.sheet-table th,
.sheet-table td {
  box-sizing: border-box;
}

.sheet-table .col-head,
.sheet-table .row-head,
.sheet-table .corner-head {
  cursor: pointer;
  user-select: none;
}

.sheet-table .col-head,
.sheet-table .row-head {
  cursor: grab;
}

.sheet-table .col-head:active,
.sheet-table .row-head:active {
  cursor: grabbing;
}

.sheet-table .col-head:hover,
.sheet-table .row-head:hover,
.sheet-table .corner-head:hover,
.sheet-table .selected-head {
  background: #e7f4ef;
  color: var(--green-dark);
}

.sheet-table .col-head {
  padding: 0 34px 0 8px;
}

.sheet-col-label {
  align-items: baseline;
  display: flex;
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-col-label b {
  color: #53666d;
  flex: 0 0 auto;
}

.sheet-col-label small {
  color: #233238;
  font-size: 11px;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-table .col-head.typed .sheet-col-label b {
  color: var(--green-dark);
}

.sheet-col-filter-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #718189;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 5px;
  width: 24px;
  z-index: 8;
}

.sheet-col-filter-btn svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 15px;
}

.sheet-col-filter-btn:hover,
.sheet-col-filter-btn.active,
.sheet-table .col-head.filtered .sheet-col-filter-btn {
  background: #dff4e9;
  border-color: #b8dccd;
  color: var(--green-dark);
}

.sheet-table th:first-child {
  left: 0;
  min-width: 46px;
  position: sticky;
  z-index: 4;
}

.sheet-table tbody th {
  left: 0;
  min-width: 46px;
  position: sticky;
  top: auto;
  z-index: 2;
}

.sheet-table td {
  border-bottom: 1px solid #e6eef1;
  border-right: 1px solid #e6eef1;
  min-width: 104px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.sheet-table td.active {
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, .64);
}

.sheet-table td.selected {
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, .24);
}

.sheet-table td.selected:not(.has-fill) {
  background: #f4fbf8;
}

.sheet-table td.active.selected {
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, .72);
}

.sheet-table td.selected::after {
  background: rgba(29, 130, 88, .045);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.sheet-table td.search-match:not(.search-active) {
  box-shadow: inset 0 0 0 2px rgba(219, 161, 36, .38);
}

.sheet-table td.search-active {
  box-shadow: inset 0 0 0 2px #d79b1f, 0 0 0 1px rgba(215, 155, 31, .22);
}

.sheet-table td.search-match:not(.has-fill):not(.selected) {
  background: #fff8df;
}

.sheet-table td.selected .sheet-cell-view,
.sheet-table td.selected .sheet-cell-editing,
.sheet-table td.selected .sheet-cell-dropdown {
  background: transparent;
  position: absolute;
  z-index: 2;
}

.sheet-table td.has-fill .sheet-cell-view,
.sheet-table td.has-fill .sheet-cell-editing,
.sheet-table td.has-fill .sheet-cell-dropdown {
  background: transparent;
}

.sheet-table td.long-cell::before {
  background: var(--green);
  border-radius: 999px;
  content: "";
  height: 5px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  z-index: 3;
}

.sheet-table td.formula-target {
  box-shadow: inset 0 0 0 2px #1f7a5a, 0 0 0 1px rgba(31, 122, 90, 0.16);
}

.sheet-table td.formula-ref {
  --formula-ref-bg: rgba(47, 128, 237, 0.1);
  --formula-ref-color: #2f80ed;
  background: var(--formula-ref-bg);
  box-shadow: inset 0 0 0 2px var(--formula-ref-color);
}

.sheet-table td.formula-ref .sheet-cell-view,
.sheet-table td.formula-ref .sheet-cell-editing,
.sheet-table td.formula-ref input {
  background: transparent;
}

.sheet-table td.formula-ref-1 {
  --formula-ref-bg: rgba(142, 68, 173, 0.1);
  --formula-ref-color: #8e44ad;
}

.sheet-table td.formula-ref-2 {
  --formula-ref-bg: rgba(242, 153, 74, 0.14);
  --formula-ref-color: #d9822b;
}

.sheet-table td.formula-ref-3 {
  --formula-ref-bg: rgba(0, 150, 136, 0.11);
  --formula-ref-color: #008b7c;
}

.sheet-table td.formula-ref-4 {
  --formula-ref-bg: rgba(235, 87, 87, 0.1);
  --formula-ref-color: #c84242;
}

.sheet-table td.formula-ref-5 {
  --formula-ref-bg: rgba(86, 204, 242, 0.14);
  --formula-ref-color: #2499bd;
}

.sheet-table td.formula-target.formula-ref {
  box-shadow: inset 0 0 0 2px #1f7a5a, inset 0 0 0 4px var(--formula-ref-color), 0 0 0 1px rgba(31, 122, 90, 0.16);
}

.sheet-table .move-source {
  background: #dff4e9 !important;
  color: var(--green-dark);
}

.sheet-table .drop-target {
  background: #cfeadd !important;
  box-shadow: inset 0 -3px 0 var(--green);
  color: var(--green-dark);
}

.sheet-table .frozen-row-head,
.sheet-table td.frozen-row {
  position: sticky;
  z-index: 5;
}

.sheet-table .frozen-col-head,
.sheet-table td.frozen-col {
  position: sticky;
  z-index: 4;
}

.sheet-table .frozen-corner,
.sheet-table td.frozen-row.frozen-col {
  z-index: 7;
}

.sheet-table td.frozen-row,
.sheet-table td.frozen-col,
.sheet-table .frozen-row-head,
.sheet-table .frozen-col-head {
  box-shadow: inset -1px -1px 0 #cfe0d9;
}

.sheet-table td.frozen-row:not(.has-fill):not(.selected),
.sheet-table td.frozen-col:not(.has-fill):not(.selected) {
  background: #fff;
}

.sheet-editor-card.formula-mode .sheet-formula-bar {
  border-color: #70b99a;
  box-shadow: 0 0 0 3px rgba(29, 130, 88, 0.12);
}

.sheet-editor-card.formula-mode .sheet-grid-frame {
  border-color: #b8dccd;
}

.sheet-table td.formula .sheet-cell-view,
.sheet-table td.formula .sheet-cell-editing {
  color: var(--green-dark);
  font-weight: 700;
}

.sheet-table td.has-validation::before {
  background: transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--green-dark);
  color: var(--green-dark);
  content: "";
  font-size: 12px;
  height: 0;
  line-height: 0;
  pointer-events: none;
  position: absolute;
  right: 9px;
  text-align: center;
  top: 11px;
  width: 0;
  z-index: 4;
}

.sheet-cell-view,
.sheet-cell-editing,
.sheet-table input,
.sheet-cell-dropdown {
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  cursor: default;
  display: block;
  font-size: 13px;
  height: 100%;
  line-height: 1.35;
  min-height: 0;
  padding: 6px 8px;
  width: 100%;
}

.sheet-cell-dropdown {
  appearance: none;
  background: transparent;
  color: inherit;
  padding-right: 28px;
  position: absolute;
  inset: 0;
}

.sheet-cell-dropdown.status-chip {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--chip-text);
  font-weight: 850;
  height: calc(100% - 10px) !important;
  inset: 5px 7px;
  padding: 3px 24px 3px 10px;
  width: calc(100% - 14px);
}

.sheet-table td.condition-empty:not(.has-fill) {
  background: #fff8d8;
}

.sheet-table td.condition-duplicate:not(.has-fill) {
  background: #eaf0ff;
}

.sheet-table td.condition-invalid:not(.has-fill) {
  background: #ffe9e5;
}

.sheet-table td.condition-empty::after,
.sheet-table td.condition-duplicate::after,
.sheet-table td.condition-invalid::after {
  border: 1px solid rgba(164, 49, 34, .18);
  content: "";
  inset: 2px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.sheet-cell-dropdown:focus {
  box-shadow: none;
  outline: none;
}

.sheet-cell-view {
  inset: 0;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-table td.wrap-cell {
  overflow: hidden;
  vertical-align: top;
}

.sheet-table td.wrap-cell .sheet-cell-view,
.sheet-cell-view.cell-wrap {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  width: 100%;
}

.sheet-cell-editing.cell-wrap {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sheet-cell-editing {
  background: #fff !important;
  border: 1px solid var(--green);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, .08);
  cursor: text;
  left: 0;
  min-height: 100%;
  min-width: 100%;
  outline: none;
  overflow: auto;
  position: absolute;
  resize: none;
  top: 0;
  user-select: text;
  z-index: 24;
}

.sheet-table td.editing {
  z-index: 30;
}

.sheet-cell-view.cell-bold,
.sheet-cell-editing.cell-bold,
.sheet-table input.cell-bold,
.sheet-cell-dropdown.cell-bold {
  font-weight: 800;
}

.sheet-cell-view.cell-italic,
.sheet-cell-editing.cell-italic,
.sheet-table input.cell-italic,
.sheet-cell-dropdown.cell-italic {
  font-style: italic;
}

.sheet-cell-view.cell-underline,
.sheet-cell-editing.cell-underline,
.sheet-table input.cell-underline,
.sheet-cell-dropdown.cell-underline {
  text-decoration: underline;
}

.sheet-cell-view.cell-strike,
.sheet-cell-editing.cell-strike,
.sheet-table input.cell-strike,
.sheet-cell-dropdown.cell-strike {
  text-decoration: line-through;
}

.sheet-cell-view.cell-underline.cell-strike,
.sheet-cell-editing.cell-underline.cell-strike,
.sheet-table input.cell-underline.cell-strike,
.sheet-cell-dropdown.cell-underline.cell-strike {
  text-decoration: underline line-through;
}

.sheet-cell-view:focus,
.sheet-cell-editing:focus,
.sheet-table input:focus,
.sheet-cell-dropdown:focus {
  box-shadow: none;
  outline: none;
}

.sheet-table input[readonly] {
  caret-color: transparent;
  user-select: none;
}

.sheet-grid-frame:focus {
  outline: none;
}

.sheet-grid-frame:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(29, 130, 88, .16);
}

body.sheet-wide .app-shell,
body.help-mode .app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

body.sheet-wide .workbench {
  overflow: hidden;
  padding: 10px 16px 16px;
}

body.sheet-wide .workbench-head {
  display: none;
}

body.sheet-wide .step-panel.active.sheets-panel {
  display: block;
  height: calc(100vh - 26px);
  padding: 12px;
}

body.sheet-wide .preview {
  display: none;
}

body.sheet-wide .center-viewer,
body.help-mode .center-viewer {
  display: none;
}

body.help-mode .preview {
  display: none;
}

body.help-mode .workbench {
  padding-right: 24px;
}

body.sheet-wide .sheet-workspace {
  height: 100%;
  min-height: 0;
}

body.sheet-wide .sheet-library-card,
body.sheet-wide .sheet-editor-card {
  height: 100%;
  max-height: none;
}

body.sheet-wide .sheet-grid-frame {
  max-height: none;
}

body.sheet-wide .sheet-table.drag-selecting .sheet-cell-view,
body.sheet-wide .sheet-table.drag-selecting input {
  cursor: cell;
  user-select: none;
}

.sheet-resize-handle {
  position: absolute;
  z-index: 7;
}

.sheet-resize-handle.col {
  bottom: 0;
  cursor: col-resize;
  right: -4px;
  top: 0;
  width: 8px;
}

.sheet-resize-handle.row {
  bottom: -4px;
  cursor: row-resize;
  height: 8px;
  left: 0;
  right: 0;
}

.sheet-resize-handle:hover {
  background: rgba(29, 130, 88, .18);
}

@media (max-width: 1260px) {
  .sheet-toolbar {
    display: flex;
  }

  .sheet-formula-bar {
    min-width: 0;
  }
}

.sheet-context-menu {
  background: #fff;
  border: 1px solid #cfe0d9;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(13, 48, 39, .16);
  display: grid;
  gap: 3px;
  min-width: 226px;
  padding: 6px;
  position: fixed;
  z-index: 4000;
}

.sheet-cell-editor {
  background: #fff;
  border: 1px solid #bddbce;
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(13, 48, 39, .20);
  display: grid;
  gap: 8px;
  padding: 10px;
  position: fixed;
  z-index: 4100;
}

.sheet-cell-editor[hidden] {
  display: none;
}

.sheet-cell-editor-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sheet-cell-editor-head span {
  background: #edf6f2;
  border-radius: 7px;
  color: var(--green-dark);
  font-weight: 900;
  padding: 6px 10px;
}

.sheet-cell-editor-head button {
  border-color: transparent;
  min-height: 30px;
  width: 34px;
}

.sheet-cell-editor textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font: inherit;
  line-height: 1.45;
  min-height: 136px;
  padding: 10px;
  resize: vertical;
}

.sheet-cell-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.sheet-list-dialog {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 5200;
}

.sheet-list-dialog[hidden] {
  display: none;
}

.sheet-list-dialog-backdrop {
  background: rgba(18, 31, 36, .34);
  inset: 0;
  position: absolute;
}

.sheet-list-dialog-card {
  background: #fff;
  border: 1px solid #cfe0d9;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(13, 48, 39, .24);
  display: grid;
  gap: 14px;
  max-width: min(620px, calc(100vw - 32px));
  opacity: 0;
  padding: 18px;
  position: relative;
  transform: translateY(10px) scale(.985);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 100%;
}

.sheet-list-dialog.active .sheet-list-dialog-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sheet-list-dialog-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sheet-list-dialog-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.sheet-list-dialog-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}

.sheet-list-dialog-head > span {
  background: #edf6f2;
  border: 1px solid #cbe4d9;
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 900;
  padding: 7px 10px;
}

.sheet-list-dialog-field {
  display: grid;
  gap: 6px;
}

.sheet-list-dialog-field span,
.sheet-list-preview-head span {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.sheet-list-dialog-field textarea {
  border-color: #cfe0d9;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(23, 33, 38, .02);
  line-height: 1.45;
  min-height: 148px;
  resize: vertical;
}

.sheet-list-preview-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.sheet-list-preview-head small {
  color: var(--muted);
}

.sheet-list-preview {
  align-content: start;
  background: #f7fbf9;
  border: 1px dashed #bddbce;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 52px;
  padding: 10px;
}

.sheet-list-preview span {
  background: #fff;
  border: 1px solid #cbe4d9;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-list-preview em {
  align-self: center;
  color: var(--muted);
  font-style: normal;
}

.sheet-list-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sheet-floating-menu {
  background: #fff;
  border: 1px solid #cfe0d9;
  border-radius: 10px;
  box-shadow: 0 20px 54px rgba(13, 48, 39, .18);
  display: grid;
  gap: 6px;
  padding: 8px;
  position: fixed;
  z-index: 4300;
}

.sheet-floating-menu[hidden] {
  display: none;
}

.sheet-floating-menu p {
  color: #6b7b82;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 4px 6px;
  text-transform: uppercase;
}

.sheet-formula-menu {
  min-width: 250px;
}

.sheet-formula-menu button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 44px minmax(0, 1fr);
  justify-items: start;
  min-height: 38px;
  padding: 6px 8px;
  text-align: left;
}

.sheet-formula-menu button:hover {
  background: #f0faf5;
  border-color: #cbe4d9;
}

.sheet-formula-menu b {
  align-items: center;
  background: #edf6f2;
  border: 1px solid #cbe4d9;
  border-radius: 7px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 12px;
  height: 26px;
  justify-content: center;
  width: 38px;
}

.sheet-formula-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-filter-menu {
  min-width: 320px;
  max-width: min(390px, calc(100vw - 24px));
}

.sheet-filter-menu-head,
.sheet-filter-menu-actions,
.sheet-filter-menu-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sheet-filter-menu-head b {
  background: #edf6f2;
  border: 1px solid #cbe4d9;
  border-radius: 7px;
  color: var(--green-dark);
  padding: 5px 9px;
}

.sheet-filter-menu input[type="search"] {
  border-color: #d5e3df;
  border-radius: 8px;
  min-height: 34px;
}

.sheet-filter-section {
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.sheet-filter-type-field {
  display: grid;
  gap: 5px;
}

.sheet-filter-type-field span,
.sheet-filter-section small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sheet-filter-type-field select {
  border-color: #d5e3df;
  border-radius: 8px;
  min-height: 34px;
}

.sheet-filter-sort-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.sheet-filter-sort-actions button {
  min-height: 32px;
}

.sheet-filter-checks label {
  align-items: center;
  color: #33434a;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

.sheet-filter-checks input {
  accent-color: var(--green);
  height: 15px;
  margin: 0;
  width: 15px;
}

.sheet-filter-menu-actions button,
.sheet-filter-menu-footer button {
  min-height: 32px;
}

.sheet-filter-options {
  border: 1px solid #edf1f3;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  max-height: 230px;
  overflow: auto;
  padding: 5px;
}

.sheet-filter-option {
  align-items: center;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 16px minmax(0, 1fr);
  min-height: 30px;
  padding: 5px 6px;
}

.sheet-filter-option:hover {
  background: #f4faf7;
}

.sheet-filter-option input {
  height: 15px;
  margin: 0;
  width: 15px;
}

.sheet-filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-filter-empty {
  color: var(--muted);
  padding: 12px 8px;
}

.sheet-template-menu {
  max-width: min(760px, calc(100vw - 24px));
  width: 700px;
}

.sheet-template-menu-head {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
}

.sheet-template-menu-head b {
  color: var(--text);
  display: block;
  font-size: 16px;
  line-height: 1.2;
  padding: 0 6px 6px;
}

.sheet-template-menu-head input {
  border-color: #d5e3df;
  border-radius: 8px;
  min-height: 34px;
}

.sheet-template-menu-note {
  background: #f7fbf9;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  color: #587069;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
}

.sheet-template-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
}

.sheet-template-categories button {
  border-color: #d8e5e0;
  border-radius: 999px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 10px;
}

.sheet-template-categories button.active {
  background: #1d8258;
  border-color: #1d8258;
  color: #fff;
}

.sheet-template-cards {
  display: grid;
  gap: 8px;
  max-height: min(430px, calc(100vh - 320px));
  overflow: auto;
  padding: 2px;
}

.sheet-template-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 96px;
  padding: 10px;
}

.sheet-template-card.wide {
  border-color: #cfe3da;
}

.sheet-template-card:hover {
  background: #f7fbf9;
  border-color: #b8dccd;
}

.sheet-template-card-main {
  min-width: 0;
}

.sheet-template-card span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sheet-template-card h3 {
  font-size: 15px;
  line-height: 1.2;
  margin-top: 3px;
}

.sheet-template-card p,
.sheet-template-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sheet-template-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  max-height: 50px;
  overflow: hidden;
}

.sheet-template-fields em {
  background: #eef7f3;
  border: 1px solid #d4e5de;
  border-radius: 999px;
  color: #425d55;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  max-width: 170px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-template-card-side {
  align-items: center;
  border-left: 1px solid #e5eeeb;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding-left: 10px;
}

.sheet-template-card-side strong {
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
}

.sheet-template-card-side small {
  font-size: 11px;
  text-align: center;
}

.sheet-template-card button {
  min-height: 32px;
  width: 100%;
}

.sheet-template-admin {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.sheet-template-admin summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.sheet-template-admin-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.sheet-template-admin-grid input,
.sheet-template-admin-grid textarea {
  border-color: #d5e3df;
  border-radius: 8px;
}

.sheet-template-admin-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.sheet-context-menu[hidden] {
  display: none;
}

.sheet-context-menu button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: flex-start;
  min-height: 32px;
  padding: 7px 9px;
  text-align: left;
}

.sheet-context-menu p {
  color: #6b7b82;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 4px 6px 2px;
  text-transform: uppercase;
}

.sheet-context-menu button:hover {
  background: #f0faf5;
  border-color: #cbe4d9;
}

.sheet-context-menu button.danger {
  color: #a43122;
}

.sheet-context-menu button.danger:hover {
  background: #fff3f0;
  border-color: #ffd0c8;
}

.sheet-context-menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 2px;
}

.sheet-context-fill {
  align-items: center;
  display: flex;
  gap: 6px;
  padding: 5px 4px 2px;
}

.sheet-context-fill button {
  justify-content: center;
}

.sheet-context-fill .sheet-fill-swatch {
  background: var(--swatch) !important;
  background-color: var(--swatch) !important;
  border: 1px solid #bed6cd !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72);
  display: inline-flex;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  padding: 0;
  width: 24px;
}

.sheet-context-fill .sheet-fill-swatch:hover {
  background: var(--swatch) !important;
  background-color: var(--swatch) !important;
  border-color: #83bfa6 !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 3px rgba(29, 130, 88, .14);
}

@media (max-width: 980px) {
  .multi-base-preview-tools,
  .issue-digest > div {
    grid-template-columns: 1fr;
  }

  .sheet-workspace {
    grid-template-columns: 1fr;
  }

  .sheet-library-card {
    max-height: 280px;
  }

  .sheet-editor-head,
  .sheet-toolbar {
    align-items: stretch;
  }

  .sheet-toolbar {
    display: flex;
  }

  .sheet-bottom-bar {
    grid-template-columns: 1fr;
  }

  .sheet-bottom-tools {
    overflow-x: auto;
  }

  .sheet-template-menu {
    width: calc(100vw - 24px);
  }

  .sheet-template-menu-head,
  .sheet-template-card {
    grid-template-columns: 1fr;
  }

  .sheet-template-card-side {
    border-left: 0;
    border-top: 1px solid #e5eeeb;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    padding-left: 0;
    padding-top: 8px;
  }

  .sheet-toolbar-group {
    width: max-content;
  }

  .sheet-actions {
    justify-content: stretch;
  }
}

.constructor-rules {
  display: grid;
  gap: 8px;
  max-height: 380px;
  min-width: 0;
  overflow: auto;
  padding-right: 2px;
}

.section-break-table {
  width: 100%;
  overflow: auto;
}

.section-break-table table {
  min-width: 560px;
}

.section-break-table th:first-child,
.section-break-table td:first-child {
  width: 78px;
  text-align: center;
}

.section-break-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.section-break-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.section-break-check input:disabled {
  cursor: not-allowed;
}

.section-rule-hints {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.section-rule-hints p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-rule-hints ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-rule-hint {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce7e3;
  border-radius: 8px;
  background: #fff;
}

.section-rule-hint b,
.section-rule-hint small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-rule-hint small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.section-rule-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef5f2;
  color: #28594b;
  font-size: 12px;
  font-weight: 700;
}

.section-rule-status.ok,
.section-rule-hint.smart .section-rule-status,
.section-rule-hint.prefix .section-rule-status {
  background: #e6f5ec;
  color: #1f6d46;
}

.section-rule-hint.missing .section-rule-status {
  background: #fff3d8;
  color: #7a4d00;
}

.section-rule-hint button {
  min-width: max-content;
}

.constructor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.85fr) minmax(112px, 0.65fr) minmax(88px, auto);
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  min-width: 0;
}

.constructor-row label,
.constructor-row input,
.constructor-row select,
.constructor-row button {
  min-width: 0;
}

.compact-grid {
  margin-bottom: 0;
}

.mini-table {
  width: 100%;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-table table {
  min-width: 420px;
}

.workbench .drop-zone {
  display: block;
  min-height: 108px;
  border: 1px dashed #aebdc4;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  color: var(--muted);
}

.drop-zone span {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-zone strong {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  word-break: break-word;
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.advanced-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px 12px;
}

.advanced-block summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.advanced-block .field-stack {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.release-rules-body .rules-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.release-rules-body .wide-field,
.release-rules-body .rule-card-wide {
  grid-column: auto;
}

.release-documents-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.release-documents-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.release-documents-main h3 {
  margin: 0;
  font-size: 14px;
}

.release-documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
}

.release-documents-actions button {
  width: auto;
  min-height: 36px;
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
}

.release-card[data-release-panel="data"] .release-card-body,
.release-card[data-release-panel="documents"] .release-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.release-card[data-release-panel="data"] .release-card-body {
  gap: 14px;
}

.release-card[data-release-panel="data"] .release-data-source-panel,
.release-template-picker-panel,
.release-template-group-panel {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
  box-shadow: none;
}

.release-card[data-release-panel="data"] .release-data-source-panel {
  border: 0;
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.92), rgba(249, 253, 251, 0.72));
  padding: 14px;
}

.release-card[data-release-panel="data"] .release-data-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px 12px;
  align-items: start;
}

.release-card[data-release-panel="data"] .release-data-source-head,
.release-card[data-release-panel="data"] .release-source-mode {
  grid-column: 1 / -1;
}

.release-card[data-release-panel="data"] .release-source-panels {
  grid-column: 1 / 2;
}

.release-card[data-release-panel="data"] .release-data-source-panel > .action-row {
  grid-column: 2 / 3;
  margin: 0;
  display: grid;
  align-items: start;
  padding-top: 23px;
}

.release-card[data-release-panel="data"] .release-source-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.release-card[data-release-panel="data"] .release-source-help {
  margin-top: 2px;
}

.release-card[data-release-panel="data"] #useReleaseDataBtn {
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  border-color: #8fcab3;
  background: #eff9f4;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.release-data-check-row {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.8fr)
    minmax(112px, 0.7fr)
    minmax(148px, 0.85fr)
    minmax(112px, 0.65fr)
    minmax(82px, 0.45fr);
  gap: 10px;
  align-items: end;
  justify-content: stretch;
  padding: 0;
  background: transparent;
  border: 0;
}

.release-data-check-row .release-data-fields {
  display: contents;
  margin: 0;
}

.release-data-check-row .release-data-actions {
  display: contents;
  gap: 8px;
  margin: 0;
  align-items: end;
}

.release-data-check-row .release-data-actions button {
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.release-data-check-row label {
  gap: 5px;
}

.release-data-check-row .arsenal-dropdown-toggle,
.release-data-check-row input {
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
}

.release-data-check-row #headerRow {
  padding: 0 12px;
  line-height: 50px;
}

.release-sheet-apply-info,
.release-sheet-suggestion {
  align-items: center;
  background: #f4faf7;
  border: 1px solid #d5eadf;
  border-radius: 8px;
  color: #36564d;
  display: flex;
  gap: 8px;
  line-height: 1.35;
  margin-top: 10px;
  padding: 8px 10px;
}

.release-sheet-apply-info {
  border-top-width: 3px;
  font-size: 12px;
  font-weight: 700;
}

.release-sheet-apply-info.is-pending {
  background: #fffdf5;
  border-color: #f2ddb0;
  border-top-color: #e8bf63;
  color: #5e512f;
}

.release-sheet-apply-info.is-applied {
  background: #f4faf7;
  border-color: #d5eadf;
  border-top-color: #2c9a76;
  color: #36564d;
}

#applyReleaseSheetBtn {
  border-top-width: 3px;
}

#applyReleaseSheetBtn.is-pending {
  background: linear-gradient(180deg, #fffefa, #ffffff);
  border-color: #ead9b2;
  border-top-color: #e5bc5b;
  color: #3f4e49;
}

#applyReleaseSheetBtn.is-applied {
  background: linear-gradient(180deg, #f7fcf9, #ffffff);
  border-color: #c9e4d8;
  border-top-color: #2c9a76;
  color: var(--green-dark);
}

.release-sheet-suggestion {
  display: none;
}

.release-card[data-release-panel="data"] .release-source-mode,
.release-card[data-release-panel="documents"] .release-document-mode {
  background: linear-gradient(90deg, rgba(234, 247, 241, 0.86), rgba(244, 249, 250, 0.74));
}

.release-card[data-release-panel="data"] .release-source-mode button.active,
.release-card[data-release-panel="documents"] .release-document-mode button.active {
  border-color: rgba(29, 124, 90, 0.42);
  background: linear-gradient(180deg, #ffffff, #f2fbf6);
  color: var(--green-dark);
}

.release-card[data-release-panel="data"] #useReleaseDataBtn,
#replaceReleaseDocumentTemplatesBtn,
#applyReleaseTemplateGroupBtn {
  border-color: var(--green);
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 90, 66, 0.14);
}

.release-card[data-release-panel="data"] #useReleaseDataBtn:hover,
#replaceReleaseDocumentTemplatesBtn:hover,
#applyReleaseTemplateGroupBtn:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

#tableInspectBtn,
#templatePreviewBtn {
  border-color: rgba(33, 108, 155, 0.34);
  background: linear-gradient(180deg, #f4f9fc, #ffffff);
  color: #1b5d86;
}

#tableInspectBtn:hover,
#templatePreviewBtn:hover {
  border-color: var(--blue);
  background: #eef7fc;
}

#repairBtn {
  border-color: rgba(163, 99, 20, 0.34);
  background: linear-gradient(180deg, #fff9ed, #ffffff);
  color: #80500f;
}

#repairBtn:hover {
  border-color: var(--amber);
  background: #fff3dc;
}

.release-card[data-release-panel="scenario"] .scenario-current,
.release-card[data-release-panel="scenario"] .scenario-context-panel,
.release-card[data-release-panel="scenario"] .scenario-settings-panel,
.release-card[data-release-panel="scenario"] .scenario-save-panel {
  border: 0;
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.92), rgba(249, 253, 251, 0.72));
  box-shadow: none;
}

.release-card[data-release-panel="scenario"] .scenario-context-item {
  min-height: 64px;
  border-color: rgba(207, 226, 216, 0.82);
  background: rgba(255, 255, 255, 0.82);
}

.release-card[data-release-panel="scenario"] .scenario-context-item.ready {
  background: linear-gradient(180deg, #f2fbf6, #ffffff);
  border-color: rgba(29, 124, 90, 0.24);
}

.release-card[data-release-panel="scenario"] .scenario-context-item.warn {
  background: linear-gradient(180deg, #fff9ed, #ffffff);
  border-color: rgba(163, 99, 20, 0.24);
}

.release-card[data-release-panel="scenario"] .scenario-inline-summary,
.release-card[data-release-panel="scenario"] .multi-base-toolbar b {
  border: 0;
  background: linear-gradient(180deg, rgba(234, 247, 241, 0.94), rgba(255, 255, 255, 0.76));
}

.release-card[data-release-panel="rules"] .release-rules-body {
  gap: 14px;
}

.release-card[data-release-panel="rules"] .rule-section {
  border: 0;
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.92), rgba(249, 253, 251, 0.72));
  padding: 14px;
}

.release-card[data-release-panel="rules"] .rule-card {
  border-color: rgba(214, 229, 223, 0.72);
  background: rgba(255, 255, 255, 0.76);
}

.release-card[data-release-panel="rules"] .rule-section-icon {
  border: 0;
  background: linear-gradient(180deg, #e6f5ee, #ffffff);
  color: var(--green-dark);
}

.release-card[data-release-panel="rules"] .setting-check {
  border-color: rgba(214, 229, 223, 0.72);
  background: rgba(255, 255, 255, 0.76);
}

.release-card[data-release-panel="rules"] .setting-check:has(input:checked),
.release-card[data-release-panel="rules"] .scenario-context-item.ready {
  background: linear-gradient(180deg, #f1faf6, #ffffff);
}

.release-card[data-release-panel="rules"] .release-rules-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.release-card[data-release-panel="rules"] .rule-section {
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.96), rgba(250, 253, 252, 0.78));
}

.release-card[data-release-panel="rules"] .rule-section-head {
  min-height: 46px;
  align-items: start;
}

.release-card[data-release-panel="rules"] .rule-card {
  padding: 12px;
  gap: 10px;
  box-shadow: none;
}

.release-card[data-release-panel="rules"] .rules-grid {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
}

.release-card[data-release-panel="rules"] .builder-row,
.release-card[data-release-panel="rules"] .compact-builder {
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  align-items: stretch;
}

.release-card[data-release-panel="rules"] #filenamePresetDropdown {
  grid-column: 1 / -1;
}

.release-card[data-release-panel="rules"] #filenameTokenSelectDropdown {
  grid-column: 1 / 2;
}

.release-card[data-release-panel="rules"] #addFilenameTokenBtn {
  grid-column: 2 / 3;
}

.release-card[data-release-panel="rules"] #clearFilenameBtn {
  grid-column: 1 / -1;
}

.release-card[data-release-panel="rules"] .builder-row select,
.release-card[data-release-panel="rules"] .builder-row button,
.release-card[data-release-panel="rules"] .filters-head button,
.release-card[data-release-panel="rules"] .filter-row button {
  min-height: 42px;
  height: 42px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
}

.release-card[data-release-panel="rules"] .builder-row button,
.release-card[data-release-panel="rules"] .filters-head button,
.release-card[data-release-panel="rules"] .filter-row button {
  white-space: nowrap;
}

.release-card[data-release-panel="rules"] .builder-row .arsenal-dropdown-toggle {
  min-height: 42px;
  padding: 7px 9px 7px 12px;
  grid-template-columns: minmax(0, 1fr) 28px;
}

.release-card[data-release-panel="rules"] .builder-row .arsenal-dropdown-value {
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-card[data-release-panel="rules"] .builder-row .arsenal-dropdown-subline {
  display: none;
}

.release-card[data-release-panel="rules"] .filters-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
}

.release-card[data-release-panel="rules"] .filters-head button {
  width: min(190px, 100%);
  justify-self: start;
  white-space: nowrap;
}

.release-card[data-release-panel="rules"] .rule-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: start;
  gap: 8px;
}

.release-card[data-release-panel="rules"] button.rule-info {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  align-self: start;
}

.release-card[data-release-panel="rules"] button.rule-info::after {
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
}

.release-card[data-release-panel="rules"] .token-preview {
  min-height: 44px;
}

.release-card[data-release-panel="rules"] .chip-list {
  min-height: 34px;
}

.release-card[data-release-panel="rules"] .rule-check-row .setting-check {
  min-height: 62px;
}

.release-card[data-release-panel="control"] .launch-card {
  border: 0;
  background: linear-gradient(135deg, rgba(234, 247, 241, 0.95), rgba(244, 249, 252, 0.9));
  box-shadow: none;
}

#finalInspectBtn {
  border-color: rgba(33, 108, 155, 0.34);
  background: linear-gradient(180deg, #f4f9fc, #ffffff);
  color: #1b5d86;
}

#finalInspectBtn:hover {
  border-color: var(--blue);
  background: #eef7fc;
}

#finalGenerateBtn {
  border-color: var(--green);
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 90, 66, 0.14);
}

#finalGenerateBtn:disabled,
#finalGenerateBtn:disabled:hover {
  color: #8c9aa1;
  background: #f3f6f7;
  border-color: #d5e0e5;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.release-card[data-release-panel="control"] .launch-actions button {
  min-height: 48px;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.release-documents-layout {
  grid-template-columns: 1fr;
  gap: 10px;
}

.release-template-picker-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px 12px;
  align-items: start;
}

.release-template-picker-panel > label {
  grid-column: span 2;
}

.release-template-picker-panel .action-row {
  display: contents;
  gap: 8px;
  margin: 0;
}

.release-template-picker-panel .action-row button {
  width: 100%;
  min-height: 48px;
  margin-top: 23px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.release-card[data-release-panel="data"] #useReleaseDataBtn,
.release-data-check-row .release-data-actions button,
.release-template-picker-panel .action-row button,
.release-template-group-controls button,
.release-documents-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.release-documents-actions {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: start;
}

.release-documents-actions button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.release-rules-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: 12px;
}

.rule-section {
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.rule-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rule-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border: 1px solid #cfe2d8;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.rule-section-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rule-section-head h3,
.rule-section-head p {
  margin: 0;
}

.rule-section-head h3 {
  font-size: 15px;
  line-height: 1.2;
}

.rule-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.rule-card {
  border: 1px solid #d6e5df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  position: relative;
}

.rule-card h3 {
  font-size: 14px;
  margin: 0;
}

.rule-help {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.rule-choice-list {
  display: grid;
  gap: 4px;
  max-height: 94px;
  overflow: auto;
  padding: 0;
  margin-top: 0;
  min-width: 0;
  animation: rule-memory-open var(--motion-fast) ease both;
}

.rule-choice-list[hidden] {
  display: none !important;
}

@keyframes rule-memory-open {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rule-line-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rule-line-row input[type="checkbox"] {
  appearance: none;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin: 0;
  border: 1.2px solid #adc3ba;
  border-radius: 3px;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
}

.rule-line-row input[type="checkbox"]::after {
  content: "";
  width: 3px;
  height: 6px;
  border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform var(--motion-fast) ease;
}

.rule-line-row input[type="checkbox"]:checked {
  border-color: var(--green);
  background: var(--green);
}

.rule-line-row input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.rule-line-input {
  width: 100%;
  min-width: 0;
  height: 26px;
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  background: #fbfdfd;
}

.rule-line-add {
  justify-self: start;
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.rule-line-add:hover {
  background: var(--green-soft);
  border-color: transparent;
  transform: none;
}

.rule-choice-empty {
  color: var(--muted);
  font-size: 11px;
}

.rule-hidden-textarea {
  display: none !important;
}

.rule-card-wide {
  grid-column: 1 / -1;
}

.field-plain {
  display: grid;
  gap: 6px;
}

.field-plain textarea {
  width: 100%;
}

.rule-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rule-card-title-row h3 {
  min-width: 0;
}

.rule-heading-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.rule-heading-check span {
  min-width: 0;
}

.rule-line-count {
  max-width: 96px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.rule-line-count.muted {
  background: #f3f6f7;
  color: var(--muted);
}

.builder-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.release-rules-body .builder-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.release-rules-body .builder-row button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
}

.release-rules-body .builder-row select,
.release-rules-body .builder-row input {
  min-width: 0;
  min-height: 40px;
}

.compact-builder {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.release-rules-body .compact-builder {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.token-preview {
  border: 1px solid #d6e5df;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: #f8fbfa;
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 30px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f0f7f4;
  color: var(--green-dark);
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.chip button {
  min-height: 18px;
  width: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
}

.filters-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin: 0;
}

.filters-head h3 {
  font-size: 14px;
  margin: 0;
}

.filters-head .rule-help {
  margin-top: 3px;
}

.release-rules-body .filters-head {
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
}

.release-rules-body .filters-head button {
  min-height: 40px;
  white-space: nowrap;
}

.filters {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(120px, 0.9fr) minmax(100px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.release-rules-body .filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border: 1px solid #d6e5df;
  border-radius: 8px;
  background: #f8fbfa;
}

.release-rules-body .filter-row label:nth-child(3) {
  grid-column: 1 / -1;
}

.release-rules-body .filter-row button {
  width: 100%;
  min-height: 40px;
}

.filter-hint {
  grid-column: 1 / -1;
  display: none;
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.filter-row:focus-within .filter-hint {
  display: block;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.checks.compact {
  grid-template-columns: 1fr;
}

.release-rule-checks {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 8px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.checks input {
  width: auto;
}

.setting-check {
  align-items: flex-start !important;
  position: relative;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  cursor: pointer;
  transition: border-color var(--motion-base) ease, background var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.setting-check:hover {
  border-color: #a9d5c4;
  background: #f6fbf8;
  box-shadow: var(--shadow-soft);
}

.setting-check:has(input:checked) {
  border-color: #add6c4;
  background: #f1faf6;
}

.setting-check input[type="checkbox"],
.rule-heading-check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border: 1.5px solid #adc3ba;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  transition: background var(--motion-base) ease, border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.rule-heading-check input[type="checkbox"] {
  margin: 0;
}

.setting-check input[type="checkbox"]::after,
.rule-heading-check input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform var(--motion-fast) ease;
}

.setting-check input[type="checkbox"]:checked,
.rule-heading-check input[type="checkbox"]:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 135, 96, 0.12);
}

.setting-check input[type="checkbox"]:checked::after,
.rule-heading-check input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.setting-check input[type="checkbox"]:focus-visible,
.rule-heading-check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(31, 135, 96, 0.32);
  outline-offset: 2px;
}

.setting-check span {
  display: grid;
  gap: 3px;
}

.setting-check b {
  color: var(--text);
  font-size: 13px;
}

.setting-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.rule-check-row {
  position: relative;
  min-width: 0;
}

.rule-check-row .setting-check {
  width: 100%;
  height: 100%;
  padding-right: 38px;
}

button.rule-info {
  min-height: 20px;
  min-width: 20px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #cfe2d8;
  background: #fff;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  position: relative;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.rule-check-row > .rule-info {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

button.rule-info:hover,
button.rule-info:focus-visible {
  background: var(--green-soft);
  border-color: #a9d5c4;
  box-shadow: 0 0 0 3px rgba(31, 135, 96, 0.1);
  transform: none;
}

button.rule-info::after {
  content: attr(data-rule-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 40;
  width: min(340px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid #bfd8ce;
  border-radius: 8px;
  background: #103d31;
  color: #f5fbf8;
  box-shadow: 0 16px 34px rgba(20, 48, 42, 0.22);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

button.rule-info:hover::after,
button.rule-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.inline-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--motion-base) ease, background var(--motion-base) ease, color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.inline-toggle:hover {
  border-color: #a9d5c4;
  background: #f6fbf8;
}

.inline-toggle input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #adc3ba;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  transition: background var(--motion-base) ease, border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.inline-toggle input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform var(--motion-fast) ease;
}

.inline-toggle:has(input:checked) {
  border-color: #add6c4;
  background: #f1faf6;
  color: var(--green-dark);
}

.inline-toggle input[type="checkbox"]:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 135, 96, 0.12);
}

.inline-toggle input[type="checkbox"]:checked::after {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.inline-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(31, 135, 96, 0.32);
  outline-offset: 2px;
}

.launch-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.metric b {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric.bad b {
  color: var(--red);
}

.metric.warn b {
  color: var(--amber);
}

.control-preview-lists {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.control-preview-lists div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(235, 247, 241, 0.88), rgba(255, 255, 255, 0.96));
}

.control-preview-lists b {
  color: var(--ink);
}

.control-preview-lists span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.center-viewer {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  box-shadow: 0 14px 34px rgba(25, 50, 45, 0.06);
  margin-top: 18px;
  overflow: hidden;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.center-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 250, 248, 0.96), rgba(255, 255, 255, 0.96)),
    var(--surface-50);
}

.center-viewer-head h3 {
  font-size: 18px;
  margin-top: 2px;
}

.viewer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.viewer-tab.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.center-viewer-body {
  overflow: auto;
  min-height: clamp(360px, 54vh, 620px);
  max-height: clamp(640px, 76vh, 920px);
  padding: 16px;
  background: var(--surface-0);
  animation: panel-soft-in var(--motion-base) ease both;
}

.center-viewer.base-focus .viewer-actions {
  justify-content: flex-end;
}

.center-viewer.base-focus .center-viewer-body,
.center-viewer.template-focus .center-viewer-body,
.center-viewer.document-focus .center-viewer-body {
  max-height: clamp(720px, 82vh, 1040px);
  min-height: clamp(520px, 68vh, 780px);
}

.template-preview-head {
  align-items: center;
  background: #f5faf8;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}

.template-preview-head h3 {
  font-size: 18px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.template-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-preview-tabs button {
  min-height: 32px;
  padding: 6px 10px;
}

.template-preview-tabs button.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.template-summary-card .download-link {
  margin-top: 10px;
}

.docx-preview-shell {
  background: #eef2f1;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  max-width: 100%;
  overflow: auto;
  padding: 18px;
  scrollbar-gutter: stable;
}

.center-viewer-body .docx-preview-shell {
  max-height: none;
  min-height: clamp(560px, 68vh, 860px);
}

.docx-page-preview {
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(24, 39, 46, 0.14);
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 760px;
  min-height: 640px;
  overflow: hidden;
  padding: 52px 58px;
  width: min(760px, 100%);
}

.docx-preview-paragraph {
  margin: 0 0 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.docx-preview-paragraph .is-bold {
  font-weight: 700;
}

.docx-preview-paragraph .is-italic {
  font-style: italic;
}

.docx-preview-paragraph .is-underlined {
  text-decoration: underline;
}

.docx-preview-paragraph .is-red,
.docx-preview-paragraph .is-placeholder.is-red {
  color: #d90000;
}

.docx-preview-paragraph .is-placeholder {
  background: rgba(255, 0, 0, 0.08);
  border-radius: 2px;
  color: #bf1010;
  font-weight: 700;
  padding: 0 1px;
}

.docx-preview-table {
  border-collapse: collapse;
  margin: 14px 0;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}

.docx-preview-table td {
  border: 1px solid #1f1f1f;
  max-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  vertical-align: top;
  word-break: break-word;
}

.docx-preview-table .docx-preview-paragraph {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docx-preview-note {
  background: #fff8e7;
  border: 1px solid #ebd59d;
  border-radius: 6px;
  color: #725213;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  margin-top: 16px;
  padding: 10px;
}

.document-preview-card .docx-preview-shell,
.document-preview-compact .docx-preview-shell {
  margin-top: 10px;
}

.document-preview-compact .docx-preview-shell {
  max-height: 460px;
  padding: 12px;
}

.center-viewer-body .document-preview-compact .docx-preview-shell {
  max-height: none;
}

.document-preview-compact .docx-page-preview {
  font-size: 12px;
  min-height: 360px;
  padding: 34px 38px;
}

.base-preview-head {
  align-items: flex-start;
  background: #f5faf8;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.base-preview-head h3 {
  font-size: 18px;
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
}

.base-preview-head span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.base-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.base-summary-grid .metric {
  min-width: 0;
}

.base-summary-grid .metric b,
.base-summary-grid .metric span {
  overflow-wrap: anywhere;
}

.card-head-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
  min-width: 0;
}

.card-head-row h3 {
  margin: 0;
}

.card-head-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.table-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: auto;
  width: 100%;
}

.table-frame table {
  margin: 0;
}

.base-table-card {
  padding: 12px;
}

.base-table-frame {
  max-height: 420px;
}

@container (max-width: 760px) {
  .base-workspace,
  .base-summary-grid {
    grid-template-columns: 1fr;
  }

  .base-library-card {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .base-left-stack {
    grid-column: auto;
  }

  .base-library-list {
    max-height: 420px;
  }

  .base-upload-card,
  .base-settings-card {
    grid-column: auto;
    grid-row: auto;
  }

  .base-card-head,
  .base-preview-head,
  .card-head-row {
    align-items: stretch;
    flex-direction: column;
  }

  .base-card-head .selection-status {
    justify-content: flex-start;
    max-width: 100%;
    text-align: left;
  }

  .card-head-row span {
    text-align: left;
  }
}

@container (max-width: 430px) {
  .base-upload-card .action-row,
  .base-settings-card .action-row {
    grid-template-columns: 1fr;
  }

  .base-upload-card .action-row button,
  .base-settings-card .action-row button {
    width: 100%;
  }

  .kit-next-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .kit-next-panel .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.center-viewer-body > .empty {
  border: 1px dashed #c9d6db;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 18px;
  line-height: 1.45;
}

.document-snippet {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  background: #f2f6f5;
  padding: 14px;
}

.document-paragraph {
  max-width: 820px;
  border: 1px solid #e2e7e5;
  border-radius: 3px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(24, 39, 46, 0.06);
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.55;
}

.document-paragraph small {
  display: block;
  color: var(--muted);
  font-family: inherit;
  margin-bottom: 4px;
}

.preview {
  min-width: 0;
  height: 100vh;
  margin-left: 14px;
  border-left: 1px solid var(--line);
  background: var(--surface-0);
  box-shadow: -10px 0 28px rgba(25, 50, 45, 0.035);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-50);
  flex: 0 0 auto;
}

.preview-tab {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-700);
  padding: 6px 8px;
  box-shadow: none;
}

.preview-tab.active {
  background: var(--surface-100);
  border-color: rgba(15, 123, 95, 0.28);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px rgba(15, 123, 95, 0.08);
}

.preview-panel {
  display: none;
  overflow: auto;
  padding: 14px;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.preview-panel.active {
  display: block;
  animation: panel-soft-in var(--motion-base) ease both;
}

.preview-panel .card {
  max-width: 100%;
  min-width: 0;
}

.preview-panel table {
  max-width: 100%;
  table-layout: fixed;
}

.preview-panel th,
.preview-panel td {
  max-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.operator-guide {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-50);
  box-shadow: none;
  display: grid;
  gap: 8px;
  margin: 10px 14px 14px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

.operator-guide::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-700);
}

.operator-guide-copy {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding-left: 4px;
}

.operator-guide-title {
  flex: 0 0 auto;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-guide-copy p,
.operator-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.operator-guide-copy p {
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.operator-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
}

.operator-step::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aebbc1;
  flex: 0 0 auto;
}

.operator-step.done {
  border-color: #cfe2d8;
  background: #f0f7f4;
  color: var(--green-dark);
}

.operator-step.done::before {
  background: var(--green);
}

.operator-step.active {
  border-color: #bddbce;
  background: #eaf5f0;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(29, 124, 90, 0.08);
}

.operator-step.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: var(--amber);
}

.operator-step.warn::before {
  background: var(--amber);
}

.operator-step.error {
  border-color: #efc7c7;
  background: #fff1f1;
  color: var(--red);
}

.operator-step.error::before {
  background: var(--red);
}

.operator-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f1faf6;
  color: var(--green-dark);
  min-height: 30px;
  padding: 5px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--green);
}

.operator-status.warn {
  border-color: #efd8aa;
  background: #fff8ec;
  color: var(--amber);
}

.operator-status.warn::before {
  background: var(--amber);
}

.operator-status.error {
  border-color: #efc7c7;
  background: #fff1f1;
  color: var(--red);
}

.operator-status.error::before {
  background: var(--red);
}

.empty {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f8fafb;
  color: var(--muted);
}

.center-viewer-body table {
  min-width: 680px;
  background: #fff;
}

.center-viewer-body th,
.center-viewer-body td {
  border: 1px solid #dfe9e5;
}

.center-viewer-body th {
  background: #eef6f2;
  color: #315a4c;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(24, 39, 46, 0.02);
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #edf5f2;
  color: var(--green-dark);
}

.badge.error {
  background: #faecec;
  color: var(--red);
}

.badge.warning {
  background: #fff5e7;
  color: var(--amber);
}

.error {
  color: var(--red);
}

.warn {
  color: var(--amber);
}

.download-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
}

.download-link.secondary {
  color: var(--green-dark);
  margin-left: 8px;
}

.center-actions,
.output-history-list {
  display: grid;
  gap: 8px;
}

.center-actions {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.audit-check-card {
  display: grid;
  gap: 12px;
}

.audit-card-note {
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.4;
  margin: -2px 0 0;
}

.audit-check-card table {
  width: 100%;
  table-layout: fixed;
}

.audit-check-card th,
.audit-check-card td {
  padding: 10px 8px;
  vertical-align: middle;
}

.audit-check-card th:nth-child(1),
.audit-check-card td:nth-child(1) {
  width: 24%;
}

.audit-check-card th:nth-child(2),
.audit-check-card td:nth-child(2) {
  width: 26%;
}

.audit-check-card td {
  overflow-wrap: anywhere;
}

.audit-status-chip {
  align-items: center;
  background: var(--surface-100);
  border: 1px solid rgba(15, 123, 95, 0.18);
  border-radius: 999px;
  color: var(--brand-700);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
}

.audit-status-chip::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.audit-status-chip.warn {
  background: var(--warn-bg);
  border-color: rgba(217, 134, 33, 0.28);
  color: #8a520d;
}

.audit-status-chip.error {
  background: var(--danger-bg);
  border-color: rgba(207, 63, 63, 0.28);
  color: #982f2f;
}

.audit-next-step {
  border: 1px solid rgba(15, 123, 95, 0.18);
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--ink-700);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.audit-next-step b {
  color: var(--brand-700);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.audit-next-step span {
  font-size: 13px;
  line-height: 1.4;
}

.audit-next-step.warn {
  background: var(--warn-bg);
  border-color: rgba(217, 134, 33, 0.28);
}

.audit-next-step.warn b {
  color: #8a520d;
}

.audit-next-step.error {
  background: var(--danger-bg);
  border-color: rgba(207, 63, 63, 0.28);
}

.audit-next-step.error b {
  color: #982f2f;
}

.output-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 10px 12px;
}

.output-history-item summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--text);
}

.output-history-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.output-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.results-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-width: 0;
}

.results-active-card,
.results-history-card,
.results-tree-card,
.results-note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 14px;
}

.results-active-card {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 14px;
}

.results-active-head {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  grid-column: 1;
  padding: 0;
}

.results-active-head > div {
  min-width: 0;
}

.results-active-head h3 {
  overflow-wrap: anywhere;
}

.results-inline-row {
  align-items: stretch;
  background: #f7fbfa;
  border: 1px solid #d7e8e2;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.62fr);
  min-width: 0;
  padding: 10px;
}

.results-active-head,
.results-section-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.results-active-head h3,
.results-section-head h3,
.results-note-card h3 {
  font-size: 16px;
  line-height: 1.2;
}

.results-muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.pill-muted {
  align-items: center;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 10px;
}

.results-stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  min-width: 0;
}

.result-stat {
  align-content: start;
  background: #fff;
  border: 1px solid #d7e8e2;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 68px;
  min-width: 0;
  padding: 10px 12px;
}

.result-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-stat strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-stat-warn {
  background: #fff8ec;
  border-color: #efd8aa;
}

.result-stat-muted {
  color: var(--muted);
}

.results-map-card {
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.results-map {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  height: 100%;
  min-width: 0;
}

.results-map-tile,
.results-meta-card {
  background: #fff;
  border: 1px solid #d7e8e2;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 82px;
}

.results-map-tile {
  color: var(--text);
  align-content: center;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
}

.results-map-tile:hover {
  background: #f1faf6;
  border-color: #b7d9ca;
}

.results-map-tile b {
  font-size: 13px;
}

.results-map-tile span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

.results-map-tile small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.results-map-tile.warn {
  background: #fff8ec;
  border-color: #efd8aa;
}

.results-map-tile.disabled,
.results-map-tile:disabled {
  cursor: default;
  opacity: 0.68;
}

.results-meta-line {
  min-width: 0;
}

.results-meta-card {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  min-width: 0;
  padding: 12px 14px;
}

.results-meta-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.results-meta-card b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.results-meta-card span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.results-section-head button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.results-history-tools {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.results-history-tools button {
  min-height: 30px;
  padding: 5px 10px;
  width: auto;
}

.results-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.results-history-item {
  align-items: start;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.results-history-item:hover,
.results-history-item.active {
  background: #f1faf6;
  border-color: #b7d9ca;
  box-shadow: inset 3px 0 0 var(--green);
}

.results-history-open {
  align-items: start;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 0;
  min-width: 0;
  padding: 2px 4px;
  text-align: left;
}

.results-history-title {
  font-weight: 850;
  overflow-wrap: anywhere;
}

.results-history-meta,
.results-history-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.results-history-status {
  align-self: start;
  background: #eef7f3;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  justify-self: start;
  padding: 3px 8px;
}

.result-delete-icon {
  align-items: center;
  align-self: start;
  background: #fff7f5;
  border: 1px solid #f0c7bd;
  border-radius: 7px;
  color: #9f2f20;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.result-delete-icon:hover {
  background: #ffecea;
  border-color: #e5a99d;
}

.result-delete-icon svg {
  height: 16px;
  width: 16px;
}

.result-delete-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.results-tree {
  margin-top: 12px;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

/* Unified operator workspace polish */
.base-card,
.template-card,
.prep-card,
.release-card,
.results-active-card,
.results-history-card,
.results-tree-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.98)),
    #fff;
  border: 1px solid rgba(38, 83, 70, 0.14);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(24, 39, 46, 0.04);
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.base-card:hover,
.template-card:hover,
.prep-card:hover,
.release-card:hover,
.results-active-card:hover,
.results-history-card:hover,
.results-tree-card:hover {
  border-color: rgba(29, 124, 90, 0.24);
  box-shadow: 0 10px 24px rgba(24, 39, 46, 0.065);
}

.base-card-head,
.template-card-head,
.results-active-head,
.results-section-head {
  gap: 12px;
}

.base-card-head h3,
.template-card-head h3,
.results-active-head h3,
.results-section-head h3 {
  color: var(--text);
}

.base-count,
.pill-muted {
  background: #f3faf6;
  border-color: rgba(29, 124, 90, 0.16);
  color: var(--green-dark);
}

.workspace-summary,
.base-active-info,
.scenario-inline-summary,
.release-source-help {
  background: #f6fbf8;
  border-color: rgba(29, 124, 90, 0.15);
  color: #4f625d;
}

.workbench .drop-zone {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.055), rgba(255, 255, 255, 0) 58%),
    #fbfdfc;
  border-color: rgba(29, 124, 90, 0.18);
  border-radius: 10px;
  transition: border-color var(--motion-base) ease, background-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease;
}

.workbench .drop-zone:hover,
.workbench .drop-zone:focus-within {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.095), rgba(255, 255, 255, 0) 60%),
    #fff;
  border-color: rgba(29, 124, 90, 0.36);
  box-shadow: 0 10px 22px rgba(24, 39, 46, 0.055);
  transform: translateY(-1px);
}

.base-library-toolbar button,
.template-library-toolbar button,
.release-card-body .action-row button,
.results-history-tools button,
.results-section-head button {
  border-radius: 8px;
}

.base-library-toolbar .primary-action,
.template-library-toolbar .primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 124, 90, 0.14);
}

.base-library-item,
.template-library-item,
.template-group-archive-item,
.kit-choice-card,
.multi-base-row,
.results-history-item,
.results-map-tile,
.result-stat,
.results-meta-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-color: rgba(38, 83, 70, 0.13);
  border-radius: 9px;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) ease, background-color var(--motion-base) ease;
}

.base-library-item:hover,
.template-library-item:hover,
.template-group-archive-item:hover,
.kit-choice-card:hover,
.multi-base-row:hover,
.results-history-item:hover,
.results-map-tile:hover {
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.72) 0%, rgba(255, 255, 255, 0.96) 52%),
    #fff;
  border-color: rgba(29, 124, 90, 0.26);
  box-shadow: 0 8px 18px rgba(24, 39, 46, 0.052);
  transform: translateY(-1px);
}

.base-library-item.active,
.template-library-item.active,
.template-group-archive-item.active,
.kit-choice-card.active,
.multi-base-row:has(input:checked),
.results-history-item.active {
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.8) 0%, rgba(255, 255, 255, 0.96) 52%),
    #fff;
  border-color: rgba(29, 124, 90, 0.34);
  box-shadow: inset 3px 0 0 var(--green), 0 8px 18px rgba(24, 39, 46, 0.05);
}

.prep-card {
  padding: 0;
  overflow: hidden;
}

.prep-card-head {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.065), rgba(255, 255, 255, 0) 58%),
    #fff;
  border-bottom: 1px solid rgba(29, 124, 90, 0.12);
  padding: 12px 14px;
}

.prep-card-body {
  padding: 12px;
}

.template-mode-switch {
  background: rgba(238, 246, 242, 0.86);
  border-color: rgba(29, 124, 90, 0.15);
  border-radius: 10px;
}

.template-mode-switch button {
  border-radius: 8px;
}

.template-mode-switch button.active {
  background: #fff;
  border-color: rgba(29, 124, 90, 0.24);
  box-shadow: 0 8px 20px rgba(24, 39, 46, 0.07);
}

.release-stepper {
  gap: 10px;
}

.release-step-tab {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-color: rgba(38, 83, 70, 0.14);
  border-radius: 10px;
  min-height: 62px;
}

.release-step-tab:hover {
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.75) 0%, rgba(255, 255, 255, 0.96) 56%),
    #fff;
  border-color: rgba(29, 124, 90, 0.26);
}

.release-step-tab.ready .release-step-index,
.release-step-tab.active .release-step-index {
  background: var(--green);
  color: #fff;
}

.release-step-tab.active {
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.88) 0%, rgba(255, 255, 255, 0.96) 62%),
    #fff;
  border-color: rgba(29, 124, 90, 0.34);
  box-shadow: inset 3px 0 0 var(--green), 0 10px 22px rgba(24, 39, 46, 0.06);
}

.release-card {
  border-radius: 10px;
}

.release-card[open] {
  border-color: rgba(29, 124, 90, 0.22);
  box-shadow: 0 10px 24px rgba(24, 39, 46, 0.055);
}

.release-card summary {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.055), rgba(255, 255, 255, 0) 58%),
    #fff;
  border-bottom-color: rgba(29, 124, 90, 0.12);
}

.release-card-body,
.release-data-source-panel,
.release-template-group-panel,
.release-template-picker-panel,
.scenario-context-panel,
.scenario-settings-panel,
.rule-section,
.launch-card {
  border-radius: 10px;
}

.release-data-source-panel,
.release-template-group-panel,
.release-template-picker-panel,
.scenario-context-panel,
.scenario-settings-panel,
.rule-section {
  background: #fbfdfc;
  border-color: rgba(29, 124, 90, 0.13);
}

.release-source-mode,
.release-document-mode {
  background: #eef6f2;
  border: 1px solid rgba(29, 124, 90, 0.14);
  border-radius: 9px;
  padding: 4px;
}

.release-source-mode button,
.release-document-mode button {
  border-color: transparent;
  border-radius: 7px;
}

.rule-section-icon,
.overview-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.launch-card {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.08), rgba(255, 255, 255, 0) 58%),
    #fff;
  border-color: rgba(29, 124, 90, 0.18);
}

.results-active-card {
  background:
    linear-gradient(135deg, rgba(29, 124, 90, 0.07), rgba(255, 255, 255, 0) 54%),
    #fff;
}

.results-inline-row {
  background: #f6fbf8;
  border-color: rgba(29, 124, 90, 0.15);
  border-radius: 10px;
}

.results-map-tile span {
  color: var(--green-dark);
}

.results-map-tile.warn,
.result-stat-warn {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.84) 0%, rgba(255, 255, 255, 0.96) 56%),
    #fff;
  border-color: rgba(163, 99, 20, 0.24);
}

.results-history-list,
.results-tree,
.base-library-list,
.template-library-list,
.template-group-archive-list,
.constructor-suggestion-list,
.multi-base-list {
  padding: 2px 4px 2px 0;
}

.results-note-card {
  display: none;
}

.results-note-grid {
  display: grid;
  gap: 8px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 12px;
}

.results-note-grid span {
  align-items: center;
  background: #edf7f3;
  border: 1px solid #c8ded4;
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.results-note-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 2px 0 0;
}

.results-empty {
  background: #f8fbfb;
  border: 1px dashed #cbded8;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 14px;
}

/* Design package alignment: Product Minimal workspace */
.workbench {
  background: var(--surface-50);
}

.workbench-head,
.brand {
  background: var(--surface-0);
}

.base-card,
.template-card,
.prep-card,
.release-card,
.results-active-card,
.results-history-card,
.results-tree-card,
.feedback-panel,
.operator-guide {
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.operator-guide {
  background: var(--surface-50);
  box-shadow: none;
}

.workbench :where(button:not(.active):not(.primary-action):not(#generateBtn):not(#finalGenerateBtn):not(.stage):not(.release-step-tab):not(.preview-tab):not(.icon-danger):not(.base-icon-danger):not(.ghost-danger):not(.danger-button):not(.sheet-tool-danger)),
.preview :where(button:not(.primary-action):not(.preview-tab):not(.tree-preview-btn)) {
  background: var(--surface-0);
  color: var(--ink-700);
}

.workbench :where(button:not(.active):not(.primary-action):not(#generateBtn):not(#finalGenerateBtn):not(.stage):not(.release-step-tab):not(.preview-tab):not(.icon-danger):not(.base-icon-danger):not(.ghost-danger):not(.danger-button):not(.sheet-tool-danger)):hover,
.preview :where(button:not(.primary-action):not(.preview-tab):not(.tree-preview-btn)):hover {
  background: var(--surface-50);
  border-color: rgba(15, 123, 95, 0.28);
  color: var(--ink-900);
}

.button-link {
  color: var(--brand-700);
}

.button-link:hover {
  background: var(--surface-100);
  border-color: rgba(15, 123, 95, 0.28);
  color: var(--brand-700);
}

#generateBtn,
#finalGenerateBtn,
.launch-actions #finalGenerateBtn {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 123, 95, 0.16);
}

#generateBtn:hover,
#finalGenerateBtn:hover,
.launch-actions #finalGenerateBtn:hover {
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 12px 26px rgba(15, 123, 95, 0.2);
}

#generateBtn:disabled,
#generateBtn:disabled:hover,
#finalGenerateBtn:disabled,
#finalGenerateBtn:disabled:hover {
  color: var(--ink-300);
  background: #f3f6f7;
  border-color: rgba(38, 83, 70, 0.14);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.chip {
  background: var(--brand-100);
  border-color: rgba(15, 123, 95, 0.18);
  color: var(--brand-700);
}

.chip.warn,
.selection-status.warn,
.operator-step.warn,
.route-status.warn,
.badge.warning {
  background: var(--warn-bg);
  border-color: rgba(217, 134, 33, 0.28);
  color: #8a520d;
}

.chip.danger,
.chip.error,
.selection-status.error,
.selection-status.danger,
.operator-step.error,
.badge.danger {
  background: var(--danger-bg);
  border-color: rgba(207, 63, 63, 0.28);
  color: #982f2f;
}

.selection-status,
.operator-step.done,
.operator-step.active {
  background: var(--brand-100);
  border-color: rgba(15, 123, 95, 0.2);
  color: var(--brand-700);
}

.selection-status::before,
.operator-step.done::before,
.operator-step.active::before {
  background: var(--brand-700);
}

.operator-step.warn,
.selection-status.warn {
  background: var(--warn-bg);
  border-color: rgba(217, 134, 33, 0.28);
  color: #8a520d;
}

.operator-step.warn::before,
.selection-status.warn::before {
  background: var(--warn);
}

.operator-step.error,
.selection-status.error,
.selection-status.danger {
  background: var(--danger-bg);
  border-color: rgba(207, 63, 63, 0.28);
  color: #982f2f;
}

.operator-step.error::before,
.selection-status.error::before,
.selection-status.danger::before {
  background: var(--danger);
}

.preview-tab:hover {
  background: var(--surface-100);
  border-color: rgba(15, 123, 95, 0.22);
  color: var(--brand-700);
  box-shadow: none;
}

.release-source-mode button.active,
.release-document-mode button.active,
.template-mode-switch button.active,
.viewer-tab.active {
  background: var(--surface-0);
  border-color: rgba(15, 123, 95, 0.24);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px rgba(15, 123, 95, 0.08), var(--shadow-soft);
}

#useReleaseDataBtn:disabled,
#useReleaseDataBtn:disabled:hover,
#replaceReleaseDocumentTemplatesBtn:disabled,
#replaceReleaseDocumentTemplatesBtn:disabled:hover,
#applyReleaseTemplateGroupBtn:disabled,
#applyReleaseTemplateGroupBtn:disabled:hover {
  background: #f3f6f7;
  border-color: var(--line);
  box-shadow: none;
  color: var(--ink-300);
  cursor: default;
  transform: none;
}

#templatePreviewBtn,
#tableInspectBtn {
  background: var(--surface-0);
  border-color: var(--line);
  color: var(--ink-700);
}

#templatePreviewBtn:hover,
#tableInspectBtn:hover {
  background: var(--surface-50);
  border-color: rgba(15, 123, 95, 0.28);
  color: var(--ink-900);
}

#repairBtn {
  background: var(--surface-0);
  border-color: rgba(217, 134, 33, 0.32);
  color: #8a520d;
}

#repairBtn:hover {
  background: var(--warn-bg);
  border-color: rgba(217, 134, 33, 0.42);
  color: #8a520d;
}

.ghost-danger,
.icon-danger,
.base-icon-danger,
.danger-button {
  color: var(--danger);
}

.ghost-danger:hover,
.icon-danger:hover,
.base-icon-danger:hover,
.danger-button:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: rgba(207, 63, 63, 0.28);
  color: var(--danger);
}

@media (max-width: 1180px) {
  .results-workspace,
  .results-active-card {
    grid-template-columns: 1fr;
  }

  .results-active-card .results-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .results-inline-row {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }

  .results-map {
    height: auto;
    grid-column: 1 / -1;
  }

  .results-meta-card {
    min-width: 0;
  }

  .results-active-card .results-stat-grid,
  .results-active-card .results-map-card,
  .results-active-card .results-meta-line {
    grid-column: 1;
    grid-row: auto;
  }

  .results-active-head,
  .results-section-head {
    align-items: stretch;
    flex-direction: column;
  }

}

.tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 13px;
}

.tree ul {
  list-style: none;
  margin: 4px 0 4px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.tree li {
  padding: 3px 0;
}

.tree-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border-radius: 6px;
  padding: 4px 6px;
}

.tree-row > span:first-child {
  min-width: 0;
  word-break: break-word;
}

.tree-folder > summary {
  cursor: pointer;
  list-style: none;
}

.tree-folder > summary::-webkit-details-marker {
  display: none;
}

.tree-folder-summary > span:first-child {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.tree-folder-summary > span:first-child::before {
  content: "";
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--green-dark);
  border-top: 4px solid transparent;
  display: inline-block;
  flex: 0 0 auto;
  height: 0;
  transition: transform var(--motion-fast) ease;
  width: 0;
}

.tree-folder[open] > .tree-folder-summary > span:first-child::before {
  transform: rotate(90deg);
}

.tree-folder-summary:hover,
.tree-row:hover {
  background: #f3faf7;
}

.tree-empty-folder {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 8px 6px 22px;
}

.tree-preview-btn {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
}

.workspace-tree .tree {
  font-size: 12px;
}

.workspace-tree .tree-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.workspace-tree .tree-row > .hint {
  grid-column: 1 / -1;
}

.workspace-tree .tree ul {
  margin-left: 10px;
  padding-left: 8px;
}

.workspace-tree .tree-preview-btn {
  min-height: 24px;
  padding: 2px 6px;
}

.file-preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.file-preview-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 8px;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgba(216, 229, 228, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 229, 228, 0.34) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.94) 0, rgba(248, 251, 250, 0.91) 42%, rgba(232, 240, 239, 0.9) 100%);
  background-size: 32px 32px, 32px 32px, auto;
  backdrop-filter: blur(5px);
  transition: opacity 260ms ease, visibility 260ms ease, transform 260ms ease;
}

.busy-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.busy-overlay[hidden] {
  display: none;
}

.busy-card {
  width: min(360px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(195, 216, 211, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 72px rgba(19, 51, 43, 0.14);
  padding: 24px 24px 22px;
  text-align: center;
  animation: loader-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(12px);
}

.busy-overlay.loaded .busy-card {
  animation: loader-exit 360ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.busy-card h2 {
  font-size: 22px;
  line-height: 1.12;
  margin: 0;
}

.busy-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px auto 0;
  max-width: 280px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d9e8e2;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: var(--green);
  animation: progress-slide 1.35s ease-in-out infinite;
}

.is-busy .app-shell {
  pointer-events: none;
}

.action-dialog {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: end center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.action-dialog.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.action-dialog[hidden] {
  display: none;
}

.action-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 31, 35, 0.18);
  backdrop-filter: blur(3px);
}

.action-dialog-card {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(197, 216, 212, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 72px rgba(18, 41, 48, 0.18);
  padding: 16px;
  backdrop-filter: blur(12px);
  animation: action-dialog-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.action-dialog:not(.active) .action-dialog-card {
  animation: action-dialog-out 180ms ease both;
}

.action-dialog-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe2d8;
  border-radius: 13px;
  background: #edf8f3;
  color: var(--green-dark);
}

.action-dialog.danger .action-dialog-mark {
  border-color: #f0c7c7;
  background: #fff5f5;
  color: var(--red);
}

.action-dialog.warn .action-dialog-mark {
  border-color: #f2d19c;
  background: #fff8ec;
  color: var(--amber);
}

.action-dialog-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-dialog-copy {
  min-width: 0;
}

.action-dialog-copy h2 {
  font-size: 18px;
  line-height: 1.2;
  margin-top: 2px;
}

.action-dialog-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 6px;
}

.action-dialog-input {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.action-dialog-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 2px;
}

#actionDialogSecondary {
  border-color: #ffd0c8;
  color: #a43122;
}

.action-dialog.danger #actionDialogConfirm {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.action-dialog.warn #actionDialogConfirm {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes loader-exit {
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.96);
    filter: blur(2px);
  }
}

@keyframes loader-rail {
  0% {
    transform: translateX(-115%);
  }
  52% {
    transform: translateX(92%);
  }
  100% {
    transform: translateX(250%);
  }
}

@keyframes app-shell-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes workspace-section-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-soft-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes action-dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes action-dialog-out {
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(240%);
  }
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .presentation-hero {
    min-height: 590px;
    background-position: 42% center;
  }

  .impact-grid,
  .process-line,
  .feature-bento,
  .pain-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .clean-card-grid.four,
  .clean-check-grid,
  .clean-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-split {
    grid-template-columns: 1fr;
  }

  .login-card {
    width: min(480px, 100%);
  }

  .app-shell {
    grid-template-columns: 240px 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar,
  .workbench {
    height: auto;
    max-height: none;
  }

  .preview {
    grid-column: 1 / -1;
    height: auto;
    min-height: auto;
    margin-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  .preview-panel {
    height: auto;
    max-height: 520px;
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }

  .template-archive-workspace,
  .template-group-workspace,
  .template-builder-workspace {
    grid-template-columns: 1fr;
  }

  .template-archive-workspace .template-upload-card,
  .template-archive-workspace .first-run-inline-tip,
  .template-archive-workspace .template-library-card {
    grid-column: auto;
    grid-row: auto;
  }

  .template-builder-fields,
  .template-builder-save {
    grid-column: auto;
    grid-row: auto;
  }

  .template-builder-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-scenario-layout {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .feedback-panel:not(.collapsed) .feedback-body {
    left: 252px;
    width: min(380px, calc(100vw - 276px));
  }
}

@media (max-width: 820px) {
  .landing-head {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
  }

  .landing-brand {
    width: 100%;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .portal-nav a {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
  }

  .feedback-panel:not(.collapsed) .feedback-body {
    left: 14px;
    right: 14px;
    bottom: 78px;
    width: auto;
    max-height: min(560px, calc(100vh - 110px));
  }

  .landing-hero {
    width: min(100% - 24px, 560px);
    padding: 26px 0;
    gap: 24px;
  }

  .landing-copy h1 {
    font-size: 34px;
  }

  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .presentation-hero {
    min-height: auto;
    padding: 46px 20px 360px;
    background-position: 58% bottom;
  }

  .clean-hero {
    padding: 42px 20px 260px;
    background-image:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.92) 44%, rgba(247, 250, 249, 0.18) 100%),
      url("/assets/landing-hero?v=20260622-fastassets-1");
    background-position: 62% bottom;
  }

  .hero-copy {
    width: 100%;
    max-width: 350px;
  }

  .clean-hero .hero-copy {
    max-width: 350px;
  }

  .hero-copy h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  .clean-hero .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .clean-metrics {
    grid-template-columns: 1fr;
  }

  .landing-band {
    padding: 44px 20px;
  }

  .clean-section {
    padding: 42px 20px;
  }

  .impact-grid,
  .process-line,
  .feature-grid,
  .roles-grid,
  .feature-bento,
  .pain-grid,
  .solution-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .clean-card-grid.four,
  .clean-check-grid,
  .clean-flow,
  .clean-split,
  .scenario-options,
  .admin-hero,
  .admin-metrics,
  .admin-section-nav,
  .admin-control-list,
  .admin-dashboard-grid,
  .admin-feedback-summary-grid,
  .admin-feedback-visuals,
  .admin-feedback-tools,
  .admin-library-grid,
  .admin-system-grid,
  .admin-insights-grid,
  .admin-storage-summary,
  .admin-storage-tools,
  .admin-shell,
  .admin-user-form,
  .admin-ops-grid {
    grid-template-columns: 1fr;
  }

  .admin-output-main header {
    display: grid;
  }

  .issue-item {
    grid-template-columns: 1fr;
  }

  .issue-actions,
  .issue-actions button {
    width: 100%;
  }

  .clean-card-grid article,
  .clean-check-grid article,
  .clean-flow article {
    min-height: auto;
  }

  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .login-shell {
    width: min(100% - 24px, 560px);
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .login-visual-card {
    min-height: 390px;
  }

  .login-request-row {
    grid-template-columns: 1fr;
  }

  .password-field {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-metrics,
  .admin-control-strip,
  .admin-dashboard-panel,
  .admin-insights-grid,
  .admin-storage-panel,
  .admin-feedback-panel,
  .admin-library-panel,
  .admin-system-panel,
  .admin-shell,
  .admin-ops-grid {
    width: min(100% - 24px, 560px);
  }

  .admin-section-nav {
    width: min(100% - 24px, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .admin-feedback-actions,
  .admin-feedback-actions-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-feedback-actions {
    display: grid;
  }

  .admin-feedback-actions-top {
    flex-direction: column;
  }

  .overview-next-card,
  .kit-next-panel.overview-next-card {
    grid-template-columns: 1fr;
  }

  .overview-next-card .action-row,
  .kit-next-panel.overview-next-card .action-row {
    min-width: 0;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-project-card {
    grid-template-columns: 1fr;
  }

  .overview-project-card .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .stage-nav,
  .grid.two,
  .grid.three,
  .rules-grid,
  .upload-grid,
  .project-setup-grid,
  .base-workspace,
  .project-library-card,
  .release-documents-layout,
  .release-rules-body,
  .release-summary-grid,
  .scenario-context-grid,
  .scenario-support-steps,
  .release-template-group-controls,
  .release-scenario-guide,
  .scenario-options,
  .source-summary-grid,
  .checks,
  .release-rule-checks,
  .summary-grid,
  .workspace-actions,
  .workspace-documents-head,
  .builder-row,
  .constructor-row,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .release-documents-actions {
    min-width: 0;
    position: static;
    padding: 8px;
  }

  .release-documents-actions {
    grid-template-columns: 1fr;
  }

  .release-template-group-controls,
  .release-rules-body .builder-row,
  .release-rules-body .compact-builder,
  .release-rules-body .filters-head,
  .release-data-source-panel,
  .release-template-picker-panel,
  .multi-base-toolbar,
  .multi-base-preview-tools {
    grid-template-columns: 1fr;
  }

  .release-data-source-panel .release-data-source-head,
  .release-data-source-panel .release-source-mode,
  .release-data-source-panel .release-source-panels,
  .release-data-source-panel > .action-row,
  .release-card[data-release-panel="data"] .release-data-source-panel,
  .release-card[data-release-panel="data"] .release-card-body > .grid.two,
  .release-card[data-release-panel="data"] .release-card-body > .action-row {
    grid-column: auto;
  }

  .release-card[data-release-panel="data"] .release-card-body {
    grid-template-columns: 1fr;
  }

  .release-card[data-release-panel="data"] .release-card-body > .grid.two {
    grid-template-columns: 1fr;
  }

  .release-data-check-row {
    grid-template-columns: 1fr;
  }

  .release-data-check-row .release-data-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .release-template-picker-panel {
    grid-template-columns: 1fr;
  }

  .release-template-picker-panel .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .release-template-picker-panel .action-row button {
    margin-top: 0;
  }

  .release-template-group-controls button {
    margin-top: 0;
  }

  .release-documents-actions {
    grid-template-columns: 1fr;
  }

  .stage-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-menu-group {
    grid-column: auto;
  }

  .release-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage {
    min-height: 48px;
  }

  .release-scenario-nav {
    grid-column: 1 / -1;
    margin: 0;
  }

  .base-library-card {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    overflow: visible;
  }

  .template-library-card {
    height: auto;
    overflow: visible;
  }

  .template-library-list {
    max-height: 420px;
  }

  .base-left-stack {
    grid-column: auto;
  }

  .workbench-head,
  .base-card-head,
  .base-preview-head,
  .template-preview-head,
  .release-summary-head,
  .center-viewer-head,
  .launch-card {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workbench-head .head-actions {
    justify-items: stretch;
    width: 100%;
  }

  .workbench-head .head-actions button {
    width: 100%;
  }

  .workbench-context {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .landing-head {
    padding: 18px 20px;
  }

  .release-stepper {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .overview-next-card .action-row,
  .kit-next-panel.overview-next-card .action-row {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stage-nav {
    grid-template-columns: 1fr;
  }

  .base-library-toolbar,
  .template-library-toolbar,
  .scenario-presets.compact-note,
  .base-summary-grid,
  .results-inline-row,
  .results-map,
  .results-meta-card,
  .results-active-card .results-stat-grid,
  .overview-project-card .action-row {
    grid-template-columns: 1fr;
  }

  .template-mode-switch {
    grid-template-columns: 1fr;
  }

  .template-builder-status {
    grid-template-columns: 1fr;
  }
}

/* Public landing: Arsenal Docs */
html:has(.ad-page-body) {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

.ad-page-body {
  --ad-ink: #16233a;
  --ad-muted: #667788;
  --ad-line: rgba(38, 83, 70, 0.14);
  --ad-green: #0f7b5f;
  --ad-green-dark: #0f3329;
  --ad-mint: #eff8f3;
  --ad-panel: #ffffff;
  --ad-soft: #f6faf8;
  --ad-warm: #f6f2e8;
  --ad-shadow: 0 18px 45px rgba(25, 50, 45, 0.08);
  --ad-pointer-x: 50%;
  --ad-pointer-y: 20%;
  --ad-scroll-ratio: 0;
  --ad-scroll-y: 0%;
  --ad-scroll-shift: 0px;
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #f9fcfa 0%, #edf8f3 46%, #fbf6eb 100%);
  color: var(--ad-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  overflow-anchor: none;
}

.ad-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--ad-pointer-x) calc(8% + var(--ad-scroll-shift)), rgba(15, 123, 95, 0.12), transparent 42vw),
    radial-gradient(circle at calc(88% - var(--ad-scroll-shift)) calc(22% + var(--ad-scroll-y)), rgba(32, 168, 120, 0.1), transparent 38vw),
    radial-gradient(circle at calc(10% + var(--ad-scroll-shift)) calc(84% - var(--ad-scroll-y)), rgba(217, 134, 33, 0.055), transparent 34vw),
    linear-gradient(rgba(15, 51, 41, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 51, 41, 0.026) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  opacity: 0.72;
  transform: translateZ(0);
  animation: ad-grid-breathe 24s ease-in-out infinite alternate;
}

.ad-page-body.ad-is-loading {
  overflow: auto;
}

.ad-scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}

.ad-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #8ee0c1, #17835f, #f3dfaf);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

.ad-static-failsafe {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #0f3329;
  background-size: 64px 64px, 64px 64px, auto;
}

.ad-static-failsafe > div {
  width: min(900px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
}

.ad-static-failsafe p {
  margin: 0;
  color: #8ee0c1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-static-failsafe strong {
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.03;
}

.ad-static-failsafe span {
  max-width: 680px;
  color: #d7e8e1;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

.ad-loader-done .ad-static-failsafe {
  display: none;
}

.ad-site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(15, 51, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 51, 41, 0.035) 1px, transparent 1px),
    #f9fcfa;
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ad-ink);
  transition: opacity 0.48s ease, visibility 0.48s ease, transform 0.48s ease;
  animation: ad-loader-failsafe 0.48s ease 6.8s forwards;
}

.ad-loader-done .ad-site-loader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  animation: none;
}

@keyframes ad-loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
  }
}

.ad-loader-card {
  position: relative;
  width: min(380px, calc(100vw - 40px));
  border: 1px solid rgba(15, 51, 41, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 70px rgba(15, 51, 41, 0.15);
  backdrop-filter: blur(12px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(24px, 3.3vw, 34px);
  overflow: visible;
}

.ad-loader-card > * {
  position: relative;
  z-index: 1;
}

.ad-loader-logo {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 20px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(15, 51, 41, 0.13);
  animation: ad-loader-logo 3.4s ease-in-out infinite;
}

.ad-loader-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ad-loader-copy {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.ad-loader-kicker {
  color: var(--ad-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-loader-card strong {
  max-width: 300px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
}

.ad-loader-flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(195, 216, 211, 0.74);
  border-radius: 999px;
  background: rgba(244, 248, 246, 0.82);
  color: #49635b;
  font-size: 12px;
  font-weight: 850;
}

.ad-loader-flow span {
  min-width: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 51, 41, 0.06);
}

.ad-loader-flow i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ad-green);
  opacity: 0.65;
  animation: ad-loader-dot 1.35s ease-in-out infinite;
}

.ad-loader-flow i:nth-of-type(2) {
  animation-delay: 0.22s;
}

.ad-loader-progress {
  position: relative;
  width: min(240px, 64vw);
  height: 4px;
  border-radius: 999px;
  background: #dfe9e4;
  overflow: hidden;
  margin-top: 6px;
}

.ad-loader-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(23, 131, 95, 0), #8ee0c1, #17835f, rgba(15, 111, 81, 0.98));
  animation: loader-rail 1.15s cubic-bezier(0.66, 0, 0.34, 1) infinite;
}

.ad-header,
.ad-landing,
.ad-footer {
  position: relative;
  z-index: 1;
}

.ad-page-body,
.ad-page-body * {
  box-sizing: border-box;
}

.ad-page-body img {
  max-width: 100%;
  display: block;
}

.ad-page-body a,
.ad-page-body button,
.ad-page-body summary {
  outline-offset: 4px;
}

.ad-page-body a:focus-visible,
.ad-page-body button:focus-visible,
.ad-page-body summary:focus-visible {
  outline: 3px solid rgba(23, 131, 95, 0.38);
}

.ad-container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.ad-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  border-bottom: 1px solid rgba(219, 229, 225, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.ad-header.is-scrolled {
  border-color: rgba(190, 207, 200, 0.92);
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.08);
}

.ad-brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.ad-logo-wrap {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(13, 28, 24, 0.07);
}

.ad-logo-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ad-brand strong,
.ad-footer strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.ad-brand small {
  color: var(--ad-muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
}

.ad-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ad-nav a {
  min-height: 38px;
  border-radius: 999px;
  color: #30423d;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ad-nav a:hover,
.ad-nav a.is-active {
  background: #edf5f1;
  color: var(--ad-green-dark);
}

.ad-nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(23, 131, 95, 0.18);
}

.ad-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.ad-header-cta,
.ad-header-login,
.ad-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ad-header-cta,
.ad-button-primary {
  background: var(--ad-green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 131, 95, 0.22);
}

.ad-header-cta.is-active {
  box-shadow:
    0 12px 24px rgba(23, 131, 95, 0.22),
    0 0 0 4px rgba(23, 131, 95, 0.12);
}

.ad-header-cta:hover,
.ad-button-primary:hover {
  background: #126e51;
  transform: translateY(-1px);
}

.ad-header-login {
  border-color: rgba(15, 51, 41, 0.14);
  background: #fff;
  color: var(--ad-green-dark);
  box-shadow: 0 10px 22px rgba(15, 51, 41, 0.06);
}

.ad-header-login:hover {
  border-color: rgba(23, 131, 95, 0.34);
  background: #edf7f2;
  transform: translateY(-1px);
}

.ad-button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ad-button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.ad-menu-button {
  display: none;
}

.ad-landing {
  position: relative;
  overflow: visible;
  background: transparent;
}

.ad-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.ad-landing > * {
  position: relative;
  z-index: 1;
}

.ad-hero {
  position: relative;
  background:
    radial-gradient(circle at 74% 22%, rgba(142, 224, 193, 0.16), transparent 28vw),
    linear-gradient(135deg, #0f3329 0%, #103d31 54%, #0b251f 100%);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.ad-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 94%);
  animation: ad-hero-grid-drift 22s linear infinite;
}

.ad-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  background:
    linear-gradient(115deg, rgba(15, 51, 41, 0.96), rgba(15, 51, 41, 0.84) 48%, rgba(22, 97, 76, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.035) 78px 79px);
}

.ad-hero-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: 44px;
  padding: clamp(32px, 4vw, 48px) 0 24px;
}

.ad-hero-grid > * {
  min-width: 0;
}

.ad-hero-copy {
  max-width: 780px;
  min-width: 0;
}

.ad-eyebrow {
  margin: 0 0 14px;
  color: var(--ad-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ad-hero .ad-eyebrow,
.ad-section-dark .ad-eyebrow,
.ad-final-cta .ad-eyebrow {
  color: #8ee0c1;
}

.ad-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.ad-hero h1 span {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.ad-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #e5f2ed;
  font-size: 20px;
  line-height: 1.45;
}

.ad-hero-support {
  max-width: 660px;
  margin: 12px 0 0;
  color: #bcd3ca;
  line-height: 1.55;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ad-microcopy {
  margin: 14px 0 0;
  color: #a9c2b8;
  font-size: 14px;
  line-height: 1.45;
}

.ad-hero-visual {
  position: relative;
  min-height: 420px;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.ad-hero-glow-card {
  position: absolute;
  right: 6%;
  top: -58px;
  z-index: 2;
  border: 1px solid rgba(142, 224, 193, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
  color: #fff;
  min-width: 190px;
  padding: 14px 16px;
  animation: ad-float-soft 7s ease-in-out infinite;
}

.ad-hero-glow-card span {
  color: #8ee0c1;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-hero-glow-card b {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.08;
}

.ad-flow-strip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ad-flow-strip::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(142, 224, 193, 0.25), transparent);
  transform: translateX(-140%);
  opacity: 0;
  animation: ad-flow-beam 5.4s cubic-bezier(0.34, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.ad-flow-strip span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9f7f2;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  display: grid;
  place-items: center;
  text-align: center;
}

.ad-mockup-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(247, 252, 249, 0.94);
  color: var(--ad-ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-width: 0;
  transform: rotate(-1deg);
  animation: ad-float 8s ease-in-out infinite;
}

.ad-mockup-top {
  height: 52px;
  border-bottom: 1px solid #d6e4de;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.ad-mockup-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7cbc4;
}

.ad-mockup-body {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 20px;
  padding: 24px;
}

.ad-table-mini {
  border: 1px solid #d7e5df;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  min-height: 220px;
}

.ad-table-mini span {
  background:
    linear-gradient(90deg, #e5eee9, #f5f8f6);
  animation: ad-table-shimmer 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 80ms);
}

.ad-table-mini span:nth-child(-n + 3) {
  background: #1c7d5d;
}

.ad-status-list {
  display: grid;
  gap: 10px;
  align-content: center;
}

.ad-status-row {
  border: 1px solid #d7e5df;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  animation: ad-status-pulse 3.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.ad-status-row span {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ad-green);
  box-shadow: 0 0 0 6px rgba(23, 131, 95, 0.12);
}

.ad-status-row span::after,
.ad-hero-proofline span::before {
  animation: ad-online-pulse 2.6s ease-in-out infinite;
}

.ad-status-row span::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(23, 131, 95, 0.32);
  border-radius: inherit;
}

.ad-status-row b {
  font-size: 13px;
}

.ad-folder-stack {
  position: absolute;
  right: 8%;
  bottom: 34px;
  width: 220px;
  height: 128px;
  transform: rotate(2deg);
}

.ad-folder-stack span {
  position: absolute;
  inset: auto 0 0 auto;
  width: 170px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(23, 131, 95, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.ad-folder-stack span:nth-child(1) {
  right: 40px;
  bottom: 36px;
  opacity: 0.42;
}

.ad-folder-stack span:nth-child(2) {
  right: 20px;
  bottom: 18px;
  opacity: 0.68;
}

.ad-folder-stack span:nth-child(3) {
  right: 0;
  bottom: 0;
}

.ad-hero-metrics {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 14px;
}

.ad-metric {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 118px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ad-metric:hover {
  border-color: rgba(142, 224, 193, 0.44);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.ad-metric .ad-icon {
  margin-bottom: 12px;
  background: rgba(142, 224, 193, 0.14);
  color: #8ee0c1;
}

.ad-metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.08;
}

.ad-metric span {
  color: #bdd4cb;
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.ad-hero-proofline {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #c5ddd3;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 48px;
}

.ad-hero-proofline span {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.ad-hero-proofline span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8ee0c1;
  box-shadow: 0 0 0 7px rgba(142, 224, 193, 0.1);
  flex: 0 0 auto;
}

.ad-section {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 8vw, 112px) 0;
  background: transparent;
  scroll-margin-top: 96px;
}

.ad-section::before {
  content: "";
  position: absolute;
  inset: -32px 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at calc(18% + var(--ad-scroll-shift)) 18%, rgba(142, 224, 193, 0.12), transparent 48%),
    radial-gradient(ellipse at calc(86% - var(--ad-scroll-shift)) 74%, rgba(15, 123, 95, 0.06), transparent 46%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  opacity: 0.64;
}

.ad-section > .ad-container {
  position: relative;
  z-index: 1;
}

.ad-section-muted {
  background: transparent;
}

.ad-section-dark {
  background: transparent;
  color: var(--ad-ink);
}

.ad-quality-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(246, 250, 248, 0.34));
}

.ad-section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.ad-section-head h2,
.ad-split h2,
.ad-final-cta h2,
.ad-ecosystem h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.ad-section-head p:not(.ad-eyebrow),
.ad-split p,
.ad-ecosystem p {
  color: var(--ad-muted);
  font-size: 18px;
  line-height: 1.58;
  margin: 16px 0 0;
}

.ad-section-head-invert p:not(.ad-eyebrow),
.ad-section-dark .ad-card p,
.ad-section-dark .ad-process-card p {
  color: #c6d8d0;
}

.ad-narrative {
  border-left: 4px solid var(--ad-green);
  color: #40514c;
  max-width: 940px;
  margin: 0 0 24px;
  padding: 8px 0 8px 18px;
  font-size: 18px;
  line-height: 1.58;
}

.ad-card-grid,
.ad-process-grid,
.ad-result-grid {
  display: grid;
  gap: 14px;
}

.ad-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ad-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ad-card,
.ad-process-card,
.ad-result-card {
  position: relative;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: var(--ad-panel);
  min-height: 168px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.ad-card::after,
.ad-process-card::after,
.ad-result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(142, 224, 193, 0.14), transparent 46%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.ad-card > *,
.ad-process-card > *,
.ad-result-card > * {
  position: relative;
  z-index: 1;
}

.ad-card:hover,
.ad-process-card:hover,
.ad-result-card:hover {
  border-color: rgba(23, 131, 95, 0.38);
  box-shadow: 0 18px 34px rgba(13, 28, 24, 0.08);
  transform: translateY(-2px);
}

.ad-card:hover::after,
.ad-process-card:hover::after,
.ad-result-card:hover::after {
  opacity: 1;
}

.ad-section-dark .ad-card,
.ad-process-card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.ad-card h3,
.ad-process-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.ad-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 18px;
}

.ad-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8f5ef;
  color: var(--ad-green);
  display: inline-grid;
  flex: 0 0 auto;
  line-height: 0;
  place-content: center;
  place-items: center;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.ad-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  transition: transform 0.22s ease;
}

.ad-card:hover .ad-icon,
.ad-process-card:hover .ad-icon,
.ad-result-card:hover .ad-icon {
  box-shadow: 0 0 0 8px rgba(23, 131, 95, 0.08);
  transform: translateY(-1px);
}

.ad-card:hover .ad-icon svg,
.ad-process-card:hover .ad-icon svg,
.ad-result-card:hover .ad-icon svg {
  transform: scale(1.08);
}

.ad-section-dark .ad-icon,
.ad-process-card .ad-icon,
.ad-result-card .ad-icon {
  background: rgba(142, 224, 193, 0.14);
  color: #8ee0c1;
}

.ad-card p,
.ad-process-card p,
.ad-result-card p {
  color: var(--ad-muted);
  line-height: 1.48;
  margin: 14px 0 0;
}

.ad-impact-grid .ad-card {
  min-height: 208px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(23, 54, 48, 0.045);
}

.ad-solution-section .ad-card {
  min-height: 234px;
}

.ad-card .ad-card-accent {
  border-top: 1px solid rgba(23, 131, 95, 0.14);
  color: var(--ad-green-dark);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.42;
  margin-top: 16px;
  padding-top: 14px;
}

.ad-split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  column-gap: 42px;
  row-gap: 24px;
  align-items: start;
}

.ad-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
}

.ad-accent-line {
  border: 1px solid rgba(23, 131, 95, 0.22);
  border-radius: 12px;
  background: #ebf7f1;
  color: var(--ad-green-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 24px;
  padding: 14px;
}

.ad-accent-line {
  margin-top: 24px;
}

.ad-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ad-mint);
  color: var(--ad-green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ad-tech-note {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}

.ad-tech-note h3 {
  margin: 0;
  font-size: 24px;
}

.ad-tech-note p:last-child {
  color: #c6d8d0;
  line-height: 1.55;
  margin: 0;
}

.ad-scenario-note {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 18px;
  padding: 20px;
}

.ad-scenario-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.ad-scenario-copy h3 {
  max-width: 520px;
}

.ad-scenario-copy p:not(.ad-eyebrow) {
  color: var(--ad-muted);
  line-height: 1.55;
  margin: 0;
}

.ad-scenario-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.ad-scenario-lanes span {
  position: relative;
  min-height: 126px;
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(13, 28, 24, 0.045);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ad-scenario-lanes span::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 131, 95, 0), rgba(23, 131, 95, 0.7), rgba(142, 224, 193, 0));
  transform: translateX(-48%);
  transition: transform 260ms ease;
}

.ad-scenario-lanes span:hover {
  border-color: rgba(23, 131, 95, 0.28);
  box-shadow: 0 16px 34px rgba(13, 28, 24, 0.08);
  transform: translateY(-2px);
}

.ad-scenario-lanes span:hover::after {
  transform: translateX(48%);
}

.ad-scenario-lanes i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e8f5ef;
  color: var(--ad-green);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.ad-scenario-lanes b {
  color: var(--ad-green-dark);
  font-size: 17px;
  line-height: 1.15;
}

.ad-scenario-lanes small {
  color: var(--ad-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ad-platform-section {
  padding-top: clamp(70px, 7vw, 104px);
}

.ad-platform-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.ad-platform-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.ad-platform-head > p {
  color: var(--ad-muted);
  font-size: 18px;
  line-height: 1.58;
  margin: 0;
}

.ad-platform-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ad-platform-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ad-platform-card {
  position: relative;
  min-height: 168px;
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(13, 28, 24, 0.05);
  color: var(--ad-ink);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.ad-platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(142, 224, 193, 0.18), transparent 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.ad-platform-card > * {
  position: relative;
  z-index: 1;
}

.ad-platform-card:hover {
  border-color: rgba(23, 131, 95, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 51, 41, 0.08);
  transform: translateY(-2px);
}

.ad-platform-card:hover::after {
  opacity: 1;
}

.ad-platform-card span {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #e8f5ef;
  color: var(--ad-green);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.ad-platform-card:hover span {
  box-shadow: 0 0 0 8px rgba(23, 131, 95, 0.08);
  transform: translateY(-1px);
}

.ad-platform-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.08;
}

.ad-platform-card p {
  color: var(--ad-muted);
  line-height: 1.48;
  margin: 0;
}

.ad-platform-preview {
  min-width: 0;
}

.ad-platform-window {
  height: 100%;
  min-height: 432px;
  border: 1px solid rgba(15, 51, 41, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ad-shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.ad-platform-top {
  min-height: 58px;
  border-bottom: 1px solid rgba(15, 51, 41, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.84);
}

.ad-platform-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b7cbc4;
}

.ad-platform-top b {
  margin-left: auto;
  color: var(--ad-green-dark);
  font-size: 14px;
}

.ad-platform-grid {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 374px;
}

.ad-platform-side {
  border-right: 1px solid rgba(15, 51, 41, 0.1);
  background: rgba(244, 248, 246, 0.72);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
}

.ad-platform-side span {
  min-height: 38px;
  border-radius: 11px;
  color: #45635a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.ad-platform-side span.is-active {
  background: var(--ad-green);
  color: #fff;
}

.ad-platform-main {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.ad-platform-banner {
  border-radius: 14px;
  background: var(--ad-green-dark);
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.ad-platform-banner b {
  font-size: 20px;
}

.ad-platform-banner small {
  color: #bfe3d5;
  font-weight: 750;
}

.ad-platform-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ad-platform-mini-grid span {
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 13px;
  background: #fff;
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 14px;
}

.ad-platform-mini-grid b {
  color: var(--ad-green-dark);
}

.ad-platform-mini-grid small {
  color: var(--ad-muted);
  font-weight: 750;
}

.ad-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-result-card {
  min-height: 176px;
}

.ad-result-card strong {
  color: var(--ad-green-dark);
  display: block;
  font-size: 30px;
  line-height: 1.06;
}

.ad-result-card .ad-card-top {
  margin-bottom: 16px;
}

.ad-ecosystem {
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--ad-shadow);
}

.ad-ecosystem-map {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #eef7f2, #ffffff);
  overflow: hidden;
}

.ad-ecosystem-map::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(23, 131, 95, 0.24);
  border-radius: 50%;
}

.ad-ecosystem-core,
.ad-ecosystem-node {
  position: absolute;
  border: 1px solid rgba(23, 131, 95, 0.2);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  box-shadow: 0 16px 30px rgba(13, 28, 24, 0.08);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-ecosystem-core {
  inset: 50%;
  width: 180px;
  transform: translate(-50%, -50%);
  background: var(--ad-green-dark);
  color: #fff;
}

.ad-ecosystem-core .ad-icon,
.ad-ecosystem-node .ad-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.ad-ecosystem-core .ad-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ad-ecosystem-node .ad-icon {
  background: #e8f5ef;
}

.ad-ecosystem-node {
  color: var(--ad-green-dark);
}

.ad-ecosystem-node:hover {
  box-shadow: 0 18px 32px rgba(13, 28, 24, 0.12);
}

.ad-ecosystem-node.node-0 {
  left: 32px;
  top: 44px;
}

.ad-ecosystem-node.node-1 {
  right: 32px;
  top: 44px;
}

.ad-ecosystem-node.node-2 {
  left: 40px;
  bottom: 112px;
}

.ad-ecosystem-node.node-3 {
  right: 40px;
  bottom: 112px;
}

.ad-ecosystem-node.node-4 {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

.ad-ecosystem-node.node-4:hover {
  transform: translateX(-50%) translateY(-2px);
}

.ad-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: stretch;
}

.ad-faq-sidebar {
  min-height: 100%;
}

.ad-faq-copy {
  position: sticky;
  top: 104px;
  max-width: 360px;
  margin-bottom: 0;
  padding-top: 6px;
}

.ad-faq-copy h2 {
  max-width: 330px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
}

.ad-faq-copy::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.3), transparent);
}

.ad-faq-list {
  display: grid;
  gap: 10px;
}

.ad-faq-item {
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(23, 54, 48, 0.035);
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.ad-faq-question {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ad-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 62px;
  font-weight: 850;
  font: inherit;
  text-align: left;
  padding: 18px 48px 18px 18px;
  position: relative;
}

.ad-faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: var(--ad-green);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

.ad-faq-item.is-open .ad-faq-question::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg);
}

.ad-faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.34s cubic-bezier(0.2, 0.72, 0.2, 1), opacity 0.24s ease;
}

.ad-faq-answer p {
  color: var(--ad-muted);
  line-height: 1.58;
  margin: 0;
  padding: 0 18px 18px;
}

.ad-faq-item.is-open {
  border-color: rgba(23, 131, 95, 0.32);
  box-shadow: 0 14px 34px rgba(13, 28, 24, 0.07);
}

.ad-faq-item.is-open .ad-faq-answer {
  opacity: 1;
}

.ad-gallery-section {
  padding-top: clamp(54px, 6vw, 86px);
}

.ad-gallery-head {
  display: block;
  margin-bottom: 28px;
}

.ad-gallery-head h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

.ad-gallery-lead {
  color: var(--ad-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 760px;
  margin: 14px 0 0;
}

.ad-gallery-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.ad-gallery-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 0;
  min-width: 0;
}

.ad-gallery-route button {
  border: 1px solid rgba(23, 131, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ad-green-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.ad-gallery-route button.is-active {
  border-color: rgba(23, 131, 95, 0.38);
  background: var(--ad-green);
  color: #fff;
  transform: translateY(-1px);
}

.ad-gallery-route button:hover {
  border-color: rgba(23, 131, 95, 0.36);
  background: #fff;
}

.ad-gallery-route button:focus-visible,
.ad-gallery-controls button:focus-visible {
  outline: 3px solid rgba(23, 131, 95, 0.22);
  outline-offset: 3px;
}

.ad-gallery-route i {
  width: 18px;
  height: 1px;
  background: rgba(23, 131, 95, 0.34);
}

.ad-gallery-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.ad-gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.06);
  color: var(--ad-green-dark);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.ad-gallery-controls button svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(0);
}

.ad-gallery-controls button:hover {
  border-color: rgba(23, 131, 95, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.ad-gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ad-gallery-track::-webkit-scrollbar {
  display: none;
}

.ad-gallery-slide {
  flex: 0 0 calc(100% - 4px);
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 22px;
  align-items: stretch;
  min-height: 500px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.ad-gallery-slide:hover .ad-tour-window {
  transform: translateY(-2px);
  box-shadow: 0 28px 62px rgba(13, 28, 24, 0.13);
}

.ad-gallery-slide::after {
  display: none;
}

.ad-tour-copy,
.ad-tour-window {
  position: relative;
  z-index: 1;
}

.ad-tour-copy {
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 251, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 44px rgba(13, 28, 24, 0.06);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 34px);
  min-width: 0;
  min-height: 500px;
}

.ad-tour-step {
  width: max-content;
  border-radius: 999px;
  background: #e7f5ef;
  color: var(--ad-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.ad-tour-copy h3 {
  color: var(--ad-green-dark);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.ad-tour-copy p {
  color: var(--ad-muted);
  font-size: 17px;
  line-height: 1.58;
  margin: 0;
}

.ad-tour-points {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  align-self: start;
}

.ad-tour-points li {
  color: #35584f;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  padding-left: 24px;
}

.ad-tour-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ad-green);
  box-shadow: 0 0 0 5px rgba(23, 131, 95, 0.1);
}

.ad-tour-window {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 20px;
  background: rgba(248, 252, 250, 0.92);
  box-shadow: 0 24px 54px rgba(13, 28, 24, 0.1);
  overflow: hidden;
  min-width: 0;
  min-height: 500px;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 240ms ease, box-shadow 240ms ease;
  text-rendering: geometricPrecision;
}

.ad-tour-topbar {
  border-bottom: 1px solid rgba(15, 51, 41, 0.1);
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
}

.ad-tour-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8e8e1;
}

.ad-tour-topbar span:first-child {
  background: #8ee0c1;
}

.ad-tour-topbar b {
  color: var(--ad-green-dark);
  font-size: 15px;
  font-weight: 800;
  margin-left: 8px;
}

.ad-tour-topbar em {
  border-radius: 999px;
  background: #e7f5ef;
  color: var(--ad-green-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-left: auto;
  padding: 7px 10px;
}

.ad-tour-app {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 446px;
}

.ad-tour-sidebar {
  border-right: 1px solid rgba(15, 51, 41, 0.1);
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 12px;
}

.ad-tour-sidebar span {
  border-radius: 12px;
  color: #46655d;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.ad-tour-sidebar span.is-active {
  background: var(--ad-green);
  color: #fff;
}

.ad-tour-main {
  background:
    linear-gradient(rgba(15, 51, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 51, 41, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.ad-tour-alert {
  border-radius: 16px;
  background: var(--ad-green-dark);
  color: #fff;
  display: grid;
  gap: 6px;
  padding: 22px;
}

.ad-tour-alert strong {
  font-size: 21px;
  font-weight: 800;
}

.ad-tour-alert small {
  color: #c9f3e2;
  font-weight: 700;
}

.ad-tour-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ad-tour-status-grid span {
  border: 1px solid rgba(15, 51, 41, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 92px;
  padding: 16px;
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.ad-gallery-slide:hover .ad-tour-status-grid span,
.ad-gallery-slide:hover .ad-tour-base-list span.is-active {
  border-color: rgba(23, 131, 95, 0.28);
  transform: translateY(-1px);
}

.ad-tour-status-grid b,
.ad-tour-sheet-toolbar strong,
.ad-tour-template-list span,
.ad-tour-doc-preview strong,
.ad-tour-flow-card b,
.ad-tour-result-card strong,
.ad-tour-tree span:first-child {
  color: var(--ad-green-dark);
  font-weight: 800;
}

.ad-tour-status-grid small {
  color: var(--ad-muted);
  font-weight: 700;
}

.ad-tour-chip {
  width: max-content;
  border: 1px solid rgba(23, 131, 95, 0.18);
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--ad-green-dark) !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 9px;
}

.ad-tour-chip-warn {
  border-color: rgba(217, 134, 33, 0.24);
  background: #fff6e7;
  color: #8a560f !important;
}

.ad-tour-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ad-tour-action-row b,
.ad-tour-sheet-toolbar button,
.ad-tour-result-card button {
  border-radius: 12px;
  background: var(--ad-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.1;
  min-height: 42px;
  padding: 12px 14px;
  text-align: center;
}

.ad-tour-action-row b:last-child,
.ad-tour-result-card button:last-child {
  background: #fff;
  color: var(--ad-green-dark);
  border: 1px solid rgba(15, 51, 41, 0.12);
}

.ad-tour-base,
.ad-tour-base-control,
.ad-tour-templates,
.ad-tour-release,
.ad-tour-results {
  background:
    linear-gradient(rgba(15, 51, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 51, 41, 0.035) 1px, transparent 1px),
    rgba(248, 252, 250, 0.72);
  background-size: 34px 34px, 34px 34px, auto;
}

.ad-tour-base-grid {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 22px;
}

.ad-tour-base-list,
.ad-tour-preview-panel {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  min-width: 0;
}

.ad-tour-base-list {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

.ad-tour-base-list > strong,
.ad-tour-preview-head b {
  color: var(--ad-green-dark);
  font-size: 17px;
  font-weight: 800;
}

.ad-tour-base-list span {
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 13px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ad-tour-base-list span.is-active {
  border-color: rgba(23, 131, 95, 0.28);
  background: #edf8f3;
}

.ad-tour-base-list span b {
  color: var(--ad-green-dark);
  font-weight: 800;
  line-height: 1.1;
}

.ad-tour-base-list span small,
.ad-tour-preview-head small,
.ad-tour-summary-row small {
  color: var(--ad-muted);
  font-weight: 700;
}

.ad-tour-base-list button {
  border: 0;
  border-radius: 12px;
  background: var(--ad-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  padding: 9px 10px;
  text-align: center;
}

.ad-tour-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  min-height: 0;
}

.ad-tour-release {
  grid-template-rows: auto auto 1fr;
}

.ad-tour-base,
.ad-tour-results {
  grid-template-rows: auto auto 1fr;
}

.ad-tour-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-tour-preview-table {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.ad-tour-preview-table span,
.ad-tour-preview-table small {
  min-width: 0;
  min-height: 46px;
  border-right: 1px solid rgba(15, 51, 41, 0.08);
  border-bottom: 1px solid rgba(15, 51, 41, 0.08);
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  padding: 0 12px;
}

.ad-tour-preview-table span {
  background: #e8f5ef;
  color: var(--ad-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.ad-tour-preview-table small {
  color: var(--ad-muted);
  font-weight: 700;
}

.ad-tour-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ad-tour-summary-row span {
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 13px;
  background: #f6fbf8;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 14px;
}

.ad-tour-summary-row b {
  color: var(--ad-green-dark);
  font-size: 19px;
}

.ad-tour-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 12px;
}

.ad-tour-sheet-toolbar strong {
  font-size: 22px;
}

.ad-tour-sheet-toolbar button,
.ad-tour-result-card button {
  border: 0;
  cursor: default;
}

.ad-tour-sheet {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 44px 1fr 1fr 1fr 1fr;
  margin: 8px 22px 22px;
  overflow: hidden;
}

.ad-tour-sheet > * {
  min-width: 0;
  min-height: 44px;
  border-right: 1px solid rgba(15, 51, 41, 0.08);
  border-bottom: 1px solid rgba(15, 51, 41, 0.08);
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  padding: 0 12px;
}

.ad-tour-sheet b,
.ad-tour-sheet strong {
  background: #e8f5ef;
  color: var(--ad-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.ad-tour-sheet small {
  color: var(--ad-muted);
  font-size: 13px;
  font-weight: 700;
}

.ad-tour-sheet .is-ok {
  color: var(--ad-green);
}

.ad-tour-sheet .is-warn {
  color: #a76b00;
}

.ad-tour-template-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
}

.ad-tour-template-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ad-tour-template-list span {
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 800;
}

.ad-tour-template-list span.is-active {
  background: var(--ad-green);
  color: #fff;
}

.ad-tour-doc-preview {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 16px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 28px;
  box-shadow: inset 0 0 0 14px #f8fbfa;
}

.ad-tour-doc-preview strong {
  font-size: 20px;
  margin-bottom: 4px;
}

.ad-tour-doc-preview p {
  color: #233b34;
  margin: 0;
  line-height: 1.45;
}

.ad-tour-doc-preview mark {
  background: rgba(215, 42, 42, 0.09);
  color: #c73030;
  font-weight: 800;
}

.ad-tour-doc-preview i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf4f1;
}

.ad-tour-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 30px 28px 20px;
}

.ad-tour-flow-card {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 116px;
  padding: 20px;
}

.ad-tour-flow-card.is-target {
  background: var(--ad-green-dark);
  color: #fff;
}

.ad-tour-flow-card.is-target b {
  color: #fff;
}

.ad-tour-flow-card small {
  color: var(--ad-muted);
  font-weight: 700;
}

.ad-tour-flow-card.is-target small {
  color: #c9f3e2;
}

.ad-tour-flow-arrow {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--ad-green);
  color: #fff;
  display: block;
  font-size: 0;
  line-height: 1;
  justify-self: center;
}

.ad-tour-flow-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(calc(-50% - 1px), -50%);
}

.ad-tour-flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(calc(-50% + 5px), -50%) rotate(45deg);
  transform-origin: center;
}

.ad-tour-route-table {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.42fr;
  margin: 0 28px 28px;
  overflow: hidden;
}

.ad-tour-route-table > * {
  min-height: 48px;
  border-right: 1px solid rgba(15, 51, 41, 0.08);
  border-bottom: 1px solid rgba(15, 51, 41, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.ad-tour-route-table span {
  background: #e8f5ef;
  color: var(--ad-green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-tour-route-table b,
.ad-tour-route-table small {
  color: #35584f;
  font-weight: 800;
}

.ad-tour-route-table em {
  color: var(--ad-green);
  font-style: normal;
  font-weight: 900;
}

.ad-tour-results {
  gap: 16px;
  padding: 22px;
}

.ad-tour-result-card {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
}

.ad-tour-result-card strong {
  font-size: 24px;
}

.ad-tour-result-card small {
  color: var(--ad-muted);
  font-weight: 800;
}

.ad-tour-result-card div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ad-tour-tree {
  border: 1px solid rgba(15, 51, 41, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.ad-tour-tree span,
.ad-tour-tree small {
  position: relative;
  border-radius: 10px;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 28px;
}

.ad-tour-tree span {
  color: var(--ad-green-dark);
  font-weight: 900;
}

.ad-tour-tree small {
  color: var(--ad-muted);
  font-weight: 700;
  margin-left: 18px;
  background: #f3faf7;
}

.ad-tour-tree span::before,
.ad-tour-tree small::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ad-green);
}

.ad-final-cta {
  background: var(--ad-green-dark);
  color: #fff;
  padding: clamp(70px, 8vw, 112px) 0;
  scroll-margin-top: 96px;
}

.ad-final-cta-box {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  padding: clamp(28px, 5vw, 56px);
}

.ad-final-cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.ad-final-cta p:not(.ad-eyebrow) {
  color: #c6d8d0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.ad-final-cta-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ad-final-cta-panel strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.ad-final-cta-panel ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ad-final-cta-panel li {
  color: #d7e8e1;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.ad-final-cta-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8ee0c1;
  box-shadow: 0 0 0 6px rgba(142, 224, 193, 0.12);
  transform: translateY(-50%);
}

.ad-final-cta-panel .ad-actions {
  gap: 10px;
}

.ad-final-cta-panel .ad-microcopy {
  margin: 0;
  font-size: 14px;
}

.ad-footer {
  border-top: 1px solid rgba(190, 207, 200, 0.86);
  background:
    linear-gradient(135deg, rgba(246, 251, 248, 0.96), rgba(255, 255, 255, 0.98));
  padding: 30px 0 24px;
}

.ad-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  color: var(--ad-muted);
}

.ad-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ad-footer-logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(13, 28, 24, 0.06);
  flex: 0 0 auto;
}

.ad-footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ad-footer-grid strong {
  color: var(--ad-ink);
}

.ad-footer-grid span,
.ad-footer-grid a,
.ad-footer-nav a {
  color: var(--ad-muted);
  text-decoration: none;
}

.ad-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-footer-nav a {
  min-height: 34px;
  border: 1px solid rgba(15, 51, 41, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ad-footer-nav a:hover {
  border-color: rgba(23, 131, 95, 0.28);
  background: #fff;
  color: var(--ad-green-dark);
  transform: translateY(-1px);
}

.ad-footer-contact {
  display: grid;
  justify-items: end;
  gap: 6px;
  white-space: nowrap;
}

.ad-footer-contact a {
  color: var(--ad-green-dark);
  font-weight: 900;
}

.ad-footer-contact span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ad-footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(190, 207, 200, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding-top: 16px;
  font-size: 13px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.72, 0.2, 1),
    transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 0.72s cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.ad-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(2px);
}

.ad-reveal-ready [data-reveal].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.ad-reveal-ready .ad-hero [data-reveal],
.ad-hero [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.ad-reveal-ready .ad-card[data-reveal].is-visible:hover,
.ad-reveal-ready .ad-process-card[data-reveal].is-visible:hover,
.ad-reveal-ready .ad-result-card[data-reveal].is-visible:hover {
  transform: translate3d(0, -2px, 0);
}

.ad-header {
  backdrop-filter: blur(16px);
}

.ad-card,
.ad-process-card,
.ad-result-card,
.ad-faq-item {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ad-card:hover,
.ad-process-card:hover,
.ad-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 131, 95, 0.26);
  box-shadow: 0 18px 40px rgba(15, 51, 41, 0.08);
}

.ad-metric {
  min-height: 128px;
}

.ad-section-dark .ad-section-head-invert p:not(.ad-eyebrow),
.ad-section-dark .ad-card p,
.ad-section-dark .ad-process-card p,
.ad-tech-note p:last-child {
  color: var(--ad-muted);
}

.ad-section-dark .ad-process-card,
.ad-section-dark .ad-card,
.ad-section-dark .ad-tech-note {
  border-color: rgba(15, 51, 41, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ad-ink);
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.04);
  backdrop-filter: blur(10px);
}

.ad-section-dark .ad-icon,
.ad-process-card .ad-icon,
.ad-result-card .ad-icon,
.ad-step-number {
  background: #e8f5ef;
  color: var(--ad-green);
}

.ad-section-dark .ad-eyebrow {
  color: var(--ad-green);
}

@keyframes ad-status-pulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes ad-float {
  0%, 100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-8px);
  }
}

@keyframes ad-grid-breathe {
  0% {
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.58;
  }
  100% {
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.78;
  }
}

@keyframes ad-hero-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 58px 58px, 58px 58px;
  }
}

@keyframes ad-site-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 64px 64px, 64px 64px;
  }
}

@keyframes ad-loader-logo {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@keyframes ad-loader-progress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes ad-loader-dot {
  0%, 100% {
    opacity: 0.36;
    transform: scale(0.82);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.18);
  }
}

@keyframes ad-float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ad-flow-beam {
  0%, 10% {
    opacity: 0;
    transform: translateX(-140%);
  }
  22%, 72% {
    opacity: 1;
  }
  90%, 100% {
    opacity: 0;
    transform: translateX(320%);
  }
}

@keyframes ad-table-shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.66;
  }
}

@keyframes ad-online-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(23, 131, 95, 0.26);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(23, 131, 95, 0);
  }
}

@media (max-width: 1120px) {
  .ad-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .ad-header-actions {
    grid-column: auto;
  }

  .ad-header-cta {
    display: none;
  }

  .ad-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    border: 1px solid var(--ad-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ad-shadow);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .ad-menu-open .ad-nav {
    display: grid;
  }

  .ad-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border-color: var(--ad-line);
    background: #fff;
    color: var(--ad-ink);
    min-height: 40px;
    font-weight: 800;
  }

  .ad-hero-grid,
  .ad-split,
  .ad-split-reverse,
  .ad-ecosystem,
  .ad-final-cta-content,
  .ad-faq-layout,
  .ad-gallery-head,
  .ad-gallery-slide,
  .ad-platform-head,
  .ad-platform-showcase {
    grid-template-columns: 1fr;
  }

  .ad-hero-grid {
    min-height: auto;
  }

  .ad-hero-visual {
    min-height: 500px;
  }

  .ad-faq-copy {
    position: relative;
    top: auto;
  }

  .ad-faq-sidebar {
    min-height: auto;
  }

  .ad-hero-proofline {
    grid-template-columns: 1fr;
    padding-bottom: 38px;
  }

  .ad-grid-five,
  .ad-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-process-grid,
  .ad-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ad-page-body {
    overflow-x: hidden;
  }

  .ad-container {
    width: calc(100% - 32px);
    max-width: 1180px;
  }

  .ad-site-loader {
    padding: 16px;
  }

  .ad-loader-card {
    border-radius: 18px;
    padding: 26px 20px;
  }

  .ad-loader-logo {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .ad-loader-logo img {
    width: 52px;
    height: 52px;
  }

  .ad-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 10px 12px;
  }

  .ad-brand {
    min-width: 0;
  }

  .ad-brand > span:last-child {
    min-width: 0;
  }

  .ad-menu-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .ad-menu-button::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    display: block;
  }

  .ad-brand small {
    display: none;
  }

  .ad-header-actions {
    grid-column: auto;
    width: auto;
    display: flex;
    gap: 8px;
  }

  .ad-header-login {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ad-header-cta {
    display: none;
  }

  .ad-nav {
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
  }

  .ad-hero-grid {
    gap: 28px;
    padding-top: 44px;
  }

  .ad-hero-copy {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .ad-hero .ad-actions,
  .ad-hero-visual,
  .ad-flow-strip,
  .ad-mockup-card {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .ad-hero h1 {
    font-size: 31px;
    line-height: 1.08;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .ad-lead {
    font-size: 16px;
  }

  .ad-hero-support {
    font-size: 14px;
  }

  .ad-eyebrow,
  .ad-lead,
  .ad-hero-support,
  .ad-microcopy {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ad-actions,
  .ad-footer-grid,
  .ad-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-button {
    width: 100%;
  }

  .ad-hero-visual {
    display: none;
  }

  .ad-flow-strip,
  .ad-mockup-body,
  .ad-hero-metrics,
  .ad-tour-app,
  .ad-tour-base-grid,
  .ad-tour-template-layout,
  .ad-tour-flow,
  .ad-platform-cards,
  .ad-platform-mini-grid,
  .ad-scenario-lanes,
  .ad-grid-five,
  .ad-grid-four,
  .ad-grid-three,
  .ad-grid-two,
  .ad-process-grid,
  .ad-result-grid,
  .ad-tech-note {
    grid-template-columns: 1fr;
  }

  .ad-flow-strip {
    width: 100%;
    overflow: hidden;
  }

  .ad-flow-strip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ad-folder-stack {
    display: none;
  }

  .ad-mockup-card {
    animation: none;
    transform: none;
  }

  .ad-section {
    padding: 48px 0;
  }

  .ad-section-head h2,
  .ad-split h2,
  .ad-final-cta h2,
  .ad-ecosystem h2,
  .ad-gallery-head h2,
  .ad-platform-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .ad-gallery-track {
    gap: 14px;
  }

  .ad-gallery-nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ad-gallery-controls {
    align-self: flex-start;
  }

  .ad-gallery-slide {
    min-height: auto;
    padding: 14px;
  }

  .ad-tour-copy {
    padding: 20px;
    min-height: auto;
  }

  .ad-tour-window {
    min-height: auto;
  }

  .ad-tour-sidebar,
  .ad-tour-template-list {
    display: none;
  }

  .ad-tour-status-grid,
  .ad-tour-summary-row,
  .ad-tour-route-table {
    grid-template-columns: 1fr;
  }

  .ad-tour-sheet {
    grid-template-columns: 34px repeat(4, minmax(90px, 1fr));
    overflow-x: auto;
  }

  .ad-tour-flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .ad-gallery-controls {
    justify-self: start;
  }

  .ad-card,
  .ad-process-card,
  .ad-result-card,
  .ad-platform-card {
    min-height: auto;
  }

  .ad-platform-window {
    min-height: auto;
  }

  .ad-platform-grid {
    grid-template-columns: 1fr;
  }

  .ad-platform-side {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 51, 41, 0.1);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .ad-ecosystem {
    padding: 22px;
  }

  .ad-ecosystem-map {
    min-height: 520px;
  }

  .ad-ecosystem-core {
    left: 50%;
    top: 28px;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
  }

  .ad-ecosystem-node {
    left: 50% !important;
    right: auto !important;
    width: min(260px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .ad-ecosystem-node.node-0 {
    top: 104px;
  }

  .ad-ecosystem-node.node-1 {
    top: 184px;
  }

  .ad-ecosystem-node.node-2 {
    top: 264px;
    bottom: auto;
  }

  .ad-ecosystem-node.node-3 {
    top: 344px;
    bottom: auto;
  }

  .ad-ecosystem-node.node-4 {
    top: 424px;
    bottom: auto;
    transform: translateX(-50%);
  }

  .ad-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ad-footer-nav {
    justify-content: flex-start;
  }

  .ad-footer-contact {
    justify-items: start;
  }

  .ad-footer-bottom {
    display: grid;
    justify-content: start;
    gap: 6px;
  }

}

@media (max-width: 820px) {
  .release-card[data-release-panel="rules"] .release-rules-body,
  .release-card[data-release-panel="rules"] .builder-row,
  .release-card[data-release-panel="rules"] .compact-builder {
    grid-template-columns: 1fr;
  }

  .release-card[data-release-panel="rules"] .rule-section {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .ad-mockup-card {
    animation: none;
  }

  .ad-page-body::before,
  .ad-landing::before,
  .ad-hero::after,
  .ad-loader-logo,
  .ad-loader-flow i,
  .ad-loader-progress span,
  .ad-flow-strip::after,
  .ad-table-mini span,
  .ad-hero-glow-card {
    animation: none !important;
  }
}

/* Admin center redesign */
.admin-console-body {
  --admin-bg: #f6faf8;
  --admin-surface: #ffffff;
  --admin-soft: #eff8f3;
  --admin-soft-2: #f5fbf8;
  --admin-line: rgba(38, 83, 70, 0.14);
  --admin-text: #16233a;
  --admin-muted: #667788;
  --admin-green: #0f7b5f;
  --admin-green-2: #20a878;
  --admin-warn: #d98621;
  --admin-red: #cf3f3f;
  --admin-blue: #2f75bd;
  --admin-shadow: 0 18px 45px rgba(25, 50, 45, 0.08);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(244, 251, 247, 0.95), rgba(248, 251, 253, 0.96)),
    var(--admin-bg);
  color: var(--admin-text);
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  background: transparent;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 10px 0 34px rgba(36, 61, 56, 0.04);
  backdrop-filter: blur(18px);
  transition: width 0.22s ease, transform 0.22s ease, padding 0.22s ease;
}

.admin-brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.admin-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.admin-brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
}

.admin-sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 123, 95, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #eaf8f2);
  color: var(--admin-green);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(15, 123, 95, 0.05);
}

.admin-brand-text b,
.admin-sidebar-user strong {
  display: block;
  color: var(--admin-text);
  font-weight: 900;
}

.admin-brand-text span,
.admin-sidebar-user span {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #fff;
  color: var(--admin-text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 123, 95, 0.34);
  background: var(--admin-soft);
}

.admin-sidebar .admin-section-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: auto;
  margin: 28px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: static;
  top: auto;
  z-index: auto;
}

.admin-sidebar .admin-section-nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #536173;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.admin-sidebar .admin-section-nav button:hover,
.admin-sidebar .admin-section-nav button.active {
  border-color: rgba(15, 123, 95, 0.12);
  background: linear-gradient(135deg, rgba(224, 244, 236, 0.95), rgba(246, 252, 249, 0.95));
  color: #0a684f;
}

.admin-sidebar .admin-section-nav button.active {
  box-shadow: inset 4px 0 0 rgba(15, 123, 95, 0.68);
}

.admin-sidebar .admin-section-nav svg {
  width: 21px;
  height: 21px;
}

.admin-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.admin-sidebar-profile {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--admin-soft);
  color: var(--admin-green);
}

.admin-sidebar-collapse-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--admin-muted);
  font-weight: 800;
  cursor: pointer;
}

.admin-sidebar-collapsed .admin-dashboard-shell {
  grid-template-columns: 88px minmax(0, 1fr);
}

.admin-sidebar-collapsed .admin-sidebar {
  padding-inline: 14px;
}

.admin-sidebar-collapsed .admin-brand,
.admin-sidebar-collapsed .admin-sidebar-profile {
  grid-template-columns: 42px;
  justify-content: center;
}

.admin-sidebar-collapsed .admin-brand-text,
.admin-sidebar-collapsed .admin-section-nav span,
.admin-sidebar-collapsed .admin-sidebar-user,
.admin-sidebar-collapsed .admin-sidebar-profile .admin-icon-button,
.admin-sidebar-collapsed .admin-sidebar-collapse-copy span {
  display: none;
}

.admin-sidebar-collapsed .admin-section-nav button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 0;
}

.admin-main {
  min-width: 0;
  padding: 24px 28px 28px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(420px, auto);
  align-items: center;
  gap: 18px;
  margin: -24px -28px 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(246, 250, 248, 0.9);
  backdrop-filter: blur(16px);
}

.admin-mobile-menu {
  display: none;
}

.admin-section-eyebrow {
  margin: 0 0 5px;
  color: var(--admin-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--admin-text);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-topbar p {
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 14px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.admin-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 260px;
}

.admin-search input,
.admin-period-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.admin-search input {
  padding: 0 42px 0 14px;
}

.admin-search svg {
  position: absolute;
  right: 13px;
  color: var(--admin-muted);
}

.admin-period-select {
  max-width: 185px;
  padding: 0 12px;
}

.admin-notification-button {
  position: relative;
}

.admin-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--admin-green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.admin-outline-button,
.admin-primary-button,
.admin-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-outline-button {
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-text);
}

.admin-primary-button {
  border: 1px solid rgba(15, 123, 95, 0.35);
  background: linear-gradient(180deg, #12946f, #0a7458);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 123, 95, 0.18);
}

.admin-danger-button {
  border: 1px solid rgba(207, 63, 63, 0.28);
  background: #fff;
  color: var(--admin-red);
}

.admin-outline-button:hover,
.admin-primary-button:hover,
.admin-danger-button:hover {
  transform: translateY(-1px);
}

.admin-status-strip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 123, 95, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #0a684f;
  font-weight: 800;
}

.admin-status-strip.show {
  display: flex;
}

.admin-status-strip.error {
  border-color: rgba(207, 63, 63, 0.22);
  color: var(--admin-red);
}

.admin-content {
  display: grid;
  gap: 18px;
  max-width: 1580px;
}

.admin-view-hidden,
.admin-subview-hidden {
  display: none !important;
}

.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.admin-metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(23, 68, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--admin-shadow);
  cursor: pointer;
  overflow: hidden;
}

.admin-metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-green), rgba(32, 168, 120, 0));
  opacity: 0.65;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 123, 95, 0.25);
}

.admin-metric-card.warn::after {
  background: linear-gradient(90deg, var(--admin-warn), rgba(217, 134, 33, 0));
}

.admin-metric-card.error::after {
  background: linear-gradient(90deg, var(--admin-red), rgba(207, 63, 63, 0));
}

.admin-metric-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--admin-soft);
  color: var(--admin-green);
  font-size: 20px;
  font-weight: 900;
}

.admin-metric-card.warn .admin-metric-icon {
  background: #fff4e8;
  color: var(--admin-warn);
}

.admin-metric-card.error .admin-metric-icon {
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-metric-body {
  min-width: 0;
}

.admin-metric-label {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-metric-value {
  display: block;
  margin-top: 7px;
  color: var(--admin-text);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-metric-hint {
  display: block;
  margin-top: 7px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-mini-chart {
  width: 78px;
  height: 38px;
  margin-top: 8px;
  color: var(--admin-green);
}

.admin-mini-chart polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-mini-chart.muted {
  display: inline-block;
  width: auto;
  height: auto;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-metric-progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e4ece8;
  overflow: hidden;
}

.admin-metric-progress i {
  display: block;
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-green), var(--admin-green-2));
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
}

.admin-dashboard-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card,
.admin-section-card,
.admin-dashboard-panel,
.admin-feed-item,
.admin-feedback-item,
.admin-user-list,
.admin-editor-card,
.admin-backup-card,
.admin-audit-card,
.admin-system-grid section {
  border: 1px solid rgba(23, 68, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--admin-shadow);
}

.admin-dashboard-panel,
.admin-section-card,
.admin-card {
  padding: 18px;
}

.admin-card-head,
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-card-head h2,
.admin-card-head h3,
.admin-section-head h2,
.admin-dashboard-panel h3,
.admin-system-grid h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 18px;
  line-height: 1.2;
}

.admin-card-head p,
.admin-section-head p,
.admin-dashboard-panel > p,
.admin-system-grid p {
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-warning-list,
.admin-recent-list,
.admin-control-list,
.admin-status-bars,
.admin-system-checks,
.admin-system-facts,
.admin-system-tools {
  display: grid;
  gap: 10px;
}

.admin-warning-list article,
.admin-recent-list article,
.admin-control-list article,
.admin-system-checks article,
.admin-system-tools article,
.admin-output-item,
.admin-backup-card,
.admin-audit-card,
.admin-library-card,
.admin-folder-grid article {
  position: relative;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
}

.admin-warning-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-warning-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff4e8;
  color: var(--admin-warn);
  font-weight: 950;
}

.admin-warning-list article.critical .admin-warning-icon,
.admin-warning-list article.error .admin-warning-icon {
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-warning-list b,
.admin-recent-list b,
.admin-control-list b {
  display: block;
  color: var(--admin-text);
  font-weight: 900;
}

.admin-warning-list span,
.admin-recent-list span,
.admin-control-list span,
.admin-warning-list small,
.admin-recent-list small,
.admin-control-list small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-text-button {
  border: 0;
  background: transparent;
  color: var(--admin-green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-chart-card {
  min-height: 170px;
}

.admin-chart-card .admin-chart {
  min-height: 92px;
}

.admin-bars {
  display: grid;
  align-content: end;
  grid-template-columns: repeat(var(--bars, 7), 1fr);
  gap: 8px;
  min-height: 118px;
}

.admin-bars span {
  align-self: end;
  min-height: 8px;
  height: var(--h, 24%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #20a878, #0f7b5f);
}

.admin-donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--admin-green) var(--slice, 0%), #e8f0ed 0);
}

.admin-status-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-status-track {
  height: 9px;
  border-radius: 999px;
  background: #e6efeb;
  overflow: hidden;
}

.admin-status-track i {
  display: block;
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--admin-green);
}

.admin-status-row.warn .admin-status-track i {
  background: var(--admin-warn);
}

.admin-status-row.error .admin-status-track i {
  background: var(--admin-red);
}

.admin-insights-grid,
.feedback-summary-grid,
.admin-library-grid,
.admin-folder-grid,
.admin-backup-grid,
.admin-audit-list,
.admin-feedback-list {
  display: grid;
  gap: 12px;
}

.admin-insights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-library-grid,
.admin-folder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-feedback-list,
.admin-backup-grid,
.admin-audit-list {
  grid-template-columns: 1fr;
}

.feedback-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feedback-summary-grid article,
.admin-insights-grid article {
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--admin-soft-2);
}

.feedback-summary-grid b,
.admin-insights-grid b {
  display: block;
  color: var(--admin-text);
  font-size: 20px;
  font-weight: 950;
}

.feedback-toolbar,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.feedback-toolbar input,
.feedback-toolbar select,
.admin-toolbar input,
.admin-toolbar select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 700;
}

.feedback-toolbar input,
.admin-toolbar input,
.admin-form input,
.admin-form textarea {
  padding: 0 12px;
}

.feedback-toolbar select,
.admin-toolbar select,
.admin-form select {
  padding: 0 10px;
}

.admin-feedback-item {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-feedback-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-feedback-item h3 {
  margin: 0 0 8px;
  color: var(--admin-text);
}

.admin-feedback-item p {
  margin: 0;
  color: #344154;
  line-height: 1.45;
}

.admin-feedback-meta,
.admin-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-badge,
.status-badge,
.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(15, 123, 95, 0.16);
  border-radius: 999px;
  background: var(--admin-soft);
  color: #0a684f;
  font-size: 12px;
  font-weight: 900;
}

.admin-badge.warn,
.status-badge.warn,
.admin-pill.warn {
  border-color: rgba(217, 134, 33, 0.24);
  background: #fff4e8;
  color: var(--admin-warn);
}

.admin-badge.error,
.status-badge.error,
.admin-pill.error {
  border-color: rgba(207, 63, 63, 0.24);
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-badge.neutral,
.status-badge.neutral,
.admin-pill.neutral {
  border-color: rgba(83, 97, 115, 0.2);
  background: #f4f7f9;
  color: #536173;
}

.admin-output-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-output-item b,
.admin-backup-card b,
.admin-audit-card b,
.admin-library-card b,
.admin-folder-grid b {
  color: var(--admin-text);
  font-weight: 900;
}

.admin-output-item small,
.admin-backup-card small,
.admin-audit-card small,
.admin-library-card small,
.admin-folder-grid small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-folder-progress {
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e6efeb;
  overflow: hidden;
}

.admin-folder-progress::before {
  content: "";
  display: block;
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-green), var(--admin-green-2));
}

.admin-system-grid {
  display: grid;
  gap: 16px;
}

.admin-system-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-system-checks article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
}

.admin-system-checks span {
  color: var(--admin-muted);
  font-size: 13px;
  grid-column: 1 / -1;
}

.admin-system-checks em,
.admin-system-tools em {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--admin-soft);
  color: var(--admin-green);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}

.admin-system-checks article.warn em {
  background: #fff4e8;
  color: var(--admin-warn);
}

.admin-system-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-system-facts span {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: #fff;
  color: var(--admin-text);
  font-weight: 800;
}

.admin-system-facts b {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-system-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-empty-state,
.empty-state {
  padding: 18px;
  border: 1px dashed rgba(15, 123, 95, 0.25);
  border-radius: 14px;
  background: var(--admin-soft-2);
  color: var(--admin-muted);
  font-weight: 800;
}

.admin-loading-skeleton,
.loading-state {
  position: relative;
  min-height: 72px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f2f7f5, #ffffff, #f2f7f5);
  background-size: 220% 100%;
  animation: adminSkeleton 1.2s ease-in-out infinite;
}

@keyframes adminSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.admin-focus-pulse {
  animation: adminFocusPulse 1s ease;
}

@keyframes adminFocusPulse {
  0%, 100% { box-shadow: var(--admin-shadow); }
  50% { box-shadow: 0 0 0 4px rgba(15, 123, 95, 0.12), var(--admin-shadow); }
}

@media (max-width: 1380px) {
  .admin-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-dashboard-grid,
  .admin-dashboard-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-104%);
    width: 292px;
  }

  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    padding: 18px;
  }

  .admin-topbar {
    grid-template-columns: auto 1fr;
    margin: -18px -18px 16px;
    padding: 16px 18px;
  }

  .admin-mobile-menu {
    display: inline-grid;
  }

  .admin-topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-kpi-row,
  .admin-insights-grid,
  .feedback-summary-grid,
  .admin-library-grid,
  .admin-folder-grid,
  .admin-system-checks,
  .admin-system-facts,
  .admin-system-tools {
    grid-template-columns: 1fr;
  }

  .admin-topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search,
  .admin-period-select,
  .admin-outline-button,
  .admin-primary-button,
  .admin-danger-button {
    width: 100%;
    max-width: none;
  }

  .admin-warning-list article,
  .admin-output-item,
  .admin-feedback-main {
    grid-template-columns: 1fr;
  }
}

/* Admin polish final overrides: keep this after legacy admin rules. */
.admin-console-body {
  --admin-card-radius: 16px;
  --admin-shadow: 0 12px 28px rgba(23, 54, 48, 0.065);
  --admin-shadow-soft: 0 7px 18px rgba(23, 54, 48, 0.045);
}

.admin-console-body svg {
  display: block;
}

.admin-dashboard-shell {
  grid-template-columns: 284px minmax(0, 1fr);
}

.admin-main {
  padding: 22px 30px 30px;
}

.admin-content {
  width: 100%;
  max-width: none;
  gap: 14px;
}

.admin-brand-text small,
.admin-sidebar-user span {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-sidebar .admin-section-nav {
  margin: 26px 0;
  gap: 5px;
}

.admin-sidebar .admin-section-nav button {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 46px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 14px;
  box-shadow: none;
}

.admin-nav-icon,
.admin-kpi-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #607082;
}

.admin-nav-icon svg,
.admin-kpi-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar .admin-section-nav button.active,
.admin-sidebar .admin-section-nav button:hover {
  border-color: rgba(15, 123, 95, 0.16);
  background: #eef8f3;
  color: var(--admin-green);
}

.admin-sidebar .admin-section-nav button.active .admin-nav-icon,
.admin-sidebar .admin-section-nav button:hover .admin-nav-icon {
  background: rgba(15, 123, 95, 0.1);
  color: var(--admin-green);
}

.admin-topbar {
  grid-template-columns: auto minmax(260px, 1fr) minmax(520px, auto);
  margin: -22px -30px 16px;
  padding: 20px 30px;
}

.admin-topbar h1 {
  font-size: clamp(25px, 1.7vw, 32px);
}

.admin-console-body .admin-metrics,
.admin-kpi-row {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 122px;
  padding: 14px;
  border-radius: 8px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-metric-card::after {
  display: none;
}

.admin-kpi-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 123, 95, 0.14);
  background: var(--admin-soft);
  color: var(--admin-green);
}

.admin-metric-card.warn .admin-kpi-icon {
  border-color: rgba(217, 134, 33, 0.18);
  background: #fff5e8;
  color: var(--admin-warn);
}

.admin-kpi-content {
  display: grid;
  min-width: 0;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.admin-kpi-label {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.admin-metric-card b {
  color: var(--admin-text);
  font-size: clamp(19px, 1.3vw, 25px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-metric-card small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-metric-card .admin-mini-chart {
  position: absolute;
  left: 52px;
  right: 10px;
  bottom: 8px;
  width: auto;
  height: 46px;
  margin: 0;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

.admin-mini-chart polyline {
  stroke-width: 3;
}

.admin-metric-card.has-chart .admin-kpi-icon,
.admin-metric-card.has-chart .admin-kpi-content {
  position: relative;
  z-index: 1;
}

.admin-metric-card.has-chart::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: min(70%, 150px);
  height: 48px;
  border-radius: 999px 8px 8px 999px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0), rgba(15, 123, 95, 0.08));
  pointer-events: none;
}

.admin-metric-card.warn.has-chart::before {
  background: linear-gradient(90deg, rgba(217, 134, 33, 0), rgba(217, 134, 33, 0.1));
}

.admin-kpi-progress {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--admin-green) var(--bar, 0%), #e5eeea var(--bar, 0%));
}

.admin-dashboard-panel,
.admin-log-panel,
.admin-section-card,
.admin-system-grid section {
  border-radius: var(--admin-card-radius);
  border-color: var(--admin-line);
  box-shadow: var(--admin-shadow-soft);
}

.admin-dashboard-panel {
  padding: 16px;
}

.admin-panel-head,
.admin-card-head,
.admin-section-head {
  margin-bottom: 12px;
}

.admin-panel-head h1,
.admin-panel-head h2,
.admin-card-head h2,
.admin-card-head h3,
.admin-section-head h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
}

.admin-attention-panel,
.admin-recent-panel,
.admin-chart-panel,
.admin-control-strip,
.admin-insight-panel {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-card-radius);
  background: #fff;
  padding: 14px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-chart-panel {
  min-height: 154px;
}

.admin-bar-row {
  min-height: 30px;
  grid-template-columns: minmax(88px, 1fr) auto;
  gap: 6px 10px;
}

.admin-bar-row span {
  color: var(--admin-muted);
  font-size: 11px;
}

.admin-bar-row b {
  color: var(--admin-text);
  font-size: 12px;
}

.admin-bar-row i {
  height: 7px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.72) var(--bar), #e6efeb var(--bar));
}

.admin-warning-list article {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px;
}

.admin-warning-list article::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff5e8;
  color: var(--admin-warn);
  font-weight: 950;
}

.admin-warning-list article.error::before,
.admin-warning-list article.critical::before {
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-warning-list button,
.admin-card-head button,
.admin-panel-head button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-control-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-control-list button,
.admin-control-list article {
  min-height: 76px;
}

.admin-insights-grid {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-feedback-summary-grid,
.feedback-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-feedback-visuals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-feedback-visuals > section {
  padding: 14px;
  border-radius: var(--admin-card-radius);
  box-shadow: var(--admin-shadow-soft);
}

.admin-system-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 12px;
}

.admin-system-grid .admin-system-health {
  grid-column: 1;
}

.admin-system-grid section:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.admin-system-grid section:nth-child(3),
.admin-system-grid section:nth-child(4) {
  grid-column: 1;
}

.admin-system-grid section {
  padding: 14px;
}

.admin-system-checks,
.admin-system-facts,
.admin-system-tools {
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-system-checks article {
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 58px;
  padding: 10px 11px;
}

.admin-system-checks em,
.admin-system-tools em {
  white-space: nowrap;
}

.admin-folder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-system-facts span,
.admin-system-tools article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 11px;
}

@media (max-width: 1480px) {
  .admin-topbar {
    grid-template-columns: auto minmax(240px, 1fr);
  }

  .admin-topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-console-body .admin-metrics,
  .admin-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-control-list,
  .admin-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-system-grid,
  .admin-system-grid .admin-system-health,
  .admin-system-grid section:nth-child(2),
  .admin-system-grid section:nth-child(3),
  .admin-system-grid section:nth-child(4),
  .admin-dashboard-grid,
  .admin-feedback-visuals {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }
}

/* Admin overview polish: compact KPI row and platform dependency chain */
.admin-console-body .admin-metric-card {
  isolation: isolate;
  overflow: hidden;
}

.admin-console-body .admin-metric-card:hover,
.admin-console-body .admin-metric-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 123, 95, 0.22);
  box-shadow: 0 18px 38px rgba(22, 45, 38, 0.1);
}

.admin-console-body .admin-metric-card.ok {
  border-color: rgba(15, 123, 95, 0.12);
}

.admin-console-body .admin-metric-card.warn {
  border-color: rgba(217, 134, 33, 0.18);
}

.admin-console-body .admin-metric-card.error {
  border-color: rgba(202, 68, 68, 0.18);
}

.admin-console-body .admin-control-strip {
  background:
    linear-gradient(135deg, rgba(236, 248, 242, 0.92), rgba(255, 255, 255, 0.94)),
    #fff;
}

.admin-console-body .admin-control-list {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

.admin-flow-node {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr;
  gap: 8px 10px;
  min-width: 0;
  min-height: 132px !important;
  padding: 13px !important;
  border: 1px solid rgba(15, 123, 95, 0.13) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--admin-text) !important;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 24px rgba(33, 54, 47, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.34), rgba(15, 123, 95, 0.08));
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-flow-node:hover,
.admin-flow-node:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 123, 95, 0.3) !important;
  background: #fff !important;
  box-shadow: 0 16px 32px rgba(33, 54, 47, 0.11);
}

.admin-flow-node.warn {
  border-color: rgba(217, 134, 33, 0.22) !important;
  background: linear-gradient(180deg, #fffaf3, #fff) !important;
}

.admin-flow-node.error {
  border-color: rgba(202, 68, 68, 0.22) !important;
  background: linear-gradient(180deg, #fff4f4, #fff) !important;
}

.admin-flow-index {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 123, 95, 0.09);
  color: var(--admin-green);
  font-size: 12px;
  font-weight: 950;
}

.admin-flow-icon {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  align-self: end;
  border-radius: 13px;
  background: var(--admin-soft);
  color: var(--admin-green);
}

.admin-flow-node.warn .admin-flow-icon,
.admin-flow-node.warn .admin-flow-index {
  background: #fff0dc;
  color: var(--admin-warn);
}

.admin-flow-node.error .admin-flow-icon,
.admin-flow-node.error .admin-flow-index {
  background: #fff0f0;
  color: var(--admin-red);
}

.admin-flow-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-flow-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.admin-flow-copy b {
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-flow-copy strong {
  min-width: 0;
  color: var(--admin-text);
  font-size: clamp(18px, 1.1vw, 24px);
  font-weight: 950;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-flow-copy small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 1480px) {
  .admin-console-body .admin-control-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .admin-flow-node:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 1180px) {
  .admin-console-body .admin-metrics,
  .admin-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-console-body .admin-control-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-console-body .admin-metrics,
  .admin-kpi-row,
  .admin-console-body .admin-control-list {
    grid-template-columns: 1fr !important;
  }

  .admin-flow-node {
    min-height: 112px !important;
  }
}

/* Admin UI refinement: thinner header, notifications, history and users */
.admin-console-body .admin-dashboard-shell {
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-console-body.admin-sidebar-collapsed .admin-dashboard-shell,
.admin-sidebar-collapsed .admin-dashboard-shell {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}

.admin-console-body .admin-sidebar {
  overflow: hidden;
  border-right: 1px solid rgba(211, 224, 220, 0.78);
}

.admin-console-body .admin-sidebar-head {
  min-height: 48px;
}

.admin-console-body .admin-sidebar-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 11px;
}

.admin-console-body .admin-brand {
  min-width: 0;
}

.admin-console-body .admin-brand-text {
  min-width: 0;
}

.admin-console-body .admin-brand-text b,
.admin-console-body .admin-brand-text small,
.admin-console-body .admin-nav-label,
.admin-console-body .admin-admin-card b,
.admin-console-body .admin-admin-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-admin-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 40, 34, 0.04);
}

.admin-console-body .admin-sidebar-logout {
  min-height: 38px;
  border-radius: 12px;
  white-space: nowrap;
}

.admin-sidebar-collapsed .admin-sidebar {
  padding-inline: 12px !important;
}

.admin-sidebar-collapsed .admin-brand {
  justify-content: center;
}

.admin-sidebar-collapsed .admin-brand-text,
.admin-sidebar-collapsed .admin-nav-label,
.admin-sidebar-collapsed .admin-admin-card span,
.admin-sidebar-collapsed .admin-sidebar-logout {
  display: none !important;
}

.admin-sidebar-collapsed .admin-section-nav button {
  grid-template-columns: 1fr !important;
  justify-items: center;
  padding-inline: 0 !important;
}

.admin-sidebar-collapsed .admin-admin-card {
  grid-template-columns: 42px;
  justify-content: center;
  padding: 8px;
}

.admin-console-body .admin-topbar {
  grid-template-columns: minmax(220px, 1fr) minmax(560px, auto) !important;
  min-height: 70px;
  gap: 14px;
  margin: -24px -28px 12px !important;
  padding: 12px 26px !important;
}

.admin-console-body .admin-mobile-menu {
  display: none;
}

.admin-console-body .admin-title-block {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-console-body .admin-title-block .eyebrow {
  margin: 0;
  font-size: 10px;
  line-height: 1;
}

.admin-console-body .admin-title-block h1,
.admin-console-body .admin-topbar h1 {
  margin: 0;
  font-size: clamp(21px, 1.45vw, 27px) !important;
  line-height: 1.05;
}

.admin-console-body .admin-title-block span,
.admin-console-body .admin-topbar p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.admin-console-body .admin-global-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(180px, 16vw, 240px);
  min-width: 0;
}

.admin-console-body .admin-global-search input,
.admin-console-body .admin-period-filter,
.admin-console-body .admin-workspace-link,
.admin-console-body .admin-topbar-logout {
  height: 38px;
  min-height: 38px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-console-body .admin-global-search input {
  width: 100%;
  padding: 0 34px 0 12px;
  border: 1px solid var(--admin-line);
  background: #fff;
}

.admin-console-body .admin-global-search span {
  position: absolute;
  right: 11px;
  color: var(--admin-muted);
}

.admin-console-body .admin-period-filter {
  width: 114px;
  padding: 0 10px;
  border: 1px solid var(--admin-line);
  background: #fff;
}

.admin-console-body .admin-workspace-link,
.admin-console-body .admin-topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
}

.admin-notification-wrap {
  position: relative;
  flex: 0 0 auto;
}

.admin-console-body .admin-notification-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: #fff;
  color: var(--admin-text);
  box-shadow: 0 8px 18px rgba(20, 40, 34, 0.04);
}

.admin-console-body .admin-notification-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-console-body .admin-notification-button b {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #8da39b;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.admin-console-body .admin-notification-button b.active {
  background: var(--admin-green);
}

.admin-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 58px rgba(20, 40, 34, 0.16);
}

.admin-notification-panel[hidden] {
  display: none !important;
}

.admin-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.admin-notification-head b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-notification-head button,
.admin-notification-list button {
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #fff;
  color: var(--admin-green);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-notification-head button {
  min-height: 30px;
  padding: 0 10px;
}

.admin-notification-list {
  display: grid;
  gap: 8px;
}

.admin-notification-list button {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
  text-align: left;
  color: var(--admin-text);
}

.admin-notification-list button.critical {
  border-color: rgba(202, 68, 68, 0.22);
  background: #fff6f6;
}

.admin-notification-list b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-notification-list span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-history-panel {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-card-radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,249,245,0.92));
  padding: 15px;
  box-shadow: var(--admin-shadow-soft);
}

.admin-history-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-history-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(15, 123, 95, 0.12);
  border-radius: 15px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 22px rgba(20, 40, 34, 0.05);
  cursor: pointer;
}

.admin-history-card.warn {
  border-color: rgba(217, 134, 33, 0.18);
}

.admin-history-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--admin-soft);
  color: var(--admin-green);
}

.admin-history-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-history-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-history-copy small,
.admin-history-copy em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
}

.admin-history-copy b {
  color: var(--admin-text);
  font-size: clamp(18px, 1.1vw, 24px);
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-history-card .admin-mini-chart {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 48px;
  height: 22px;
  opacity: 0.6;
}

.admin-user-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 9px;
  margin: 12px 0;
}

.admin-user-tools input,
.admin-user-tools select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-tools input {
  padding: 0 12px;
}

.admin-user-tools select {
  padding: 0 10px;
}

.user-list-item {
  min-width: 0;
}

.user-list-top {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.user-list-top b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f1;
  color: #51645d;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-role-badge.admin {
  background: rgba(15, 123, 95, 0.1);
  color: var(--admin-green);
}

.admin-role-badge.operator {
  background: #eef4ff;
  color: #3f6794;
}

@media (max-width: 1480px) {
  .admin-console-body .admin-topbar {
    grid-template-columns: minmax(220px, 1fr) minmax(540px, auto) !important;
  }

  .admin-console-body .admin-topbar-actions {
    grid-column: auto !important;
    justify-content: flex-end;
  }

  .admin-history-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-console-body .admin-dashboard-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-console-body .admin-sidebar {
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .admin-console-body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgba(17, 32, 28, 0.18);
  }

  .admin-console-body .admin-topbar {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .admin-console-body .admin-mobile-menu {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: #fff;
  }

  .admin-console-body .admin-topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .admin-console-body .admin-topbar {
    min-height: 0;
    padding: 10px 14px !important;
    gap: 8px 10px;
  }

  .admin-console-body .admin-title-block .eyebrow,
  .admin-console-body .admin-title-block span {
    display: none;
  }

  .admin-console-body .admin-title-block h1,
  .admin-console-body .admin-topbar h1 {
    font-size: 20px !important;
  }

  .admin-console-body .admin-topbar-actions {
    grid-column: 1 / -1 !important;
    width: 100%;
    justify-self: stretch;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-console-body .admin-global-search {
    width: 190px;
    flex: 0 0 190px;
  }

  .admin-history-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-body .admin-workspace-link,
  .admin-console-body .admin-topbar-logout {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .admin-history-cards,
  .admin-user-tools {
    grid-template-columns: 1fr;
  }
}

/* Admin product pass: readable operational lists */
.admin-output-item,
.backup-list article,
#auditList article,
.admin-feedback-item,
.admin-library-grid article {
  min-width: 0;
}

.admin-output-main header,
.backup-list article,
#auditList article {
  gap: 12px;
}

.admin-output-main header > div,
.backup-list article > div,
#auditList article > div {
  min-width: 0;
}

.admin-output-main b,
.backup-list b,
#auditList b,
.admin-feedback-item header b,
.admin-library-grid b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-main span,
.backup-list span,
.backup-list small,
#auditList span,
.admin-feedback-item p,
.admin-feedback-item small {
  overflow-wrap: anywhere;
}

.backup-list article a,
#auditList em,
.admin-output-status,
.admin-output-flags span,
.feedback-status,
.feedback-priority {
  white-space: nowrap;
}

.admin-output-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-output-flags span,
.feedback-status,
.feedback-priority,
.admin-output-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
}

.admin-output-flags span {
  background: #eef6f2;
  color: var(--admin-green);
}

.admin-output-flags span.locked {
  background: #f2f5f4;
  color: var(--admin-muted);
}

.backup-list article.warn {
  border-color: rgba(217, 134, 33, 0.2);
  background: linear-gradient(180deg, #fffaf2, #fff);
}

#auditList article.warn {
  border-color: rgba(217, 134, 33, 0.18);
}

#auditList em {
  justify-self: end;
  background: #eef6f2;
  color: var(--admin-green);
  padding: 5px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.admin-library-grid article {
  position: relative;
  overflow: hidden;
}

.admin-library-grid article::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.7), rgba(15, 123, 95, 0.13));
  opacity: 0.45;
}

.admin-library-grid article.warn::after {
  background: linear-gradient(90deg, rgba(217, 134, 33, 0.75), rgba(217, 134, 33, 0.12));
}

.admin-library-grid article.error::after {
  background: linear-gradient(90deg, rgba(202, 68, 68, 0.75), rgba(202, 68, 68, 0.12));
}

.admin-feedback-quick-actions,
.admin-feedback-actions,
.admin-storage-actions,
.admin-feedback-tools {
  min-width: 0;
}

.admin-feedback-quick-actions button,
.admin-feedback-actions button,
.admin-storage-actions button,
.admin-form-actions button,
.admin-form-actions a {
  min-height: 36px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-output-main header,
  .backup-list article,
  #auditList article {
    grid-template-columns: 1fr;
  }

  #auditList em {
    justify-self: start;
  }
}

/* Admin scale pass: stable collapsed sidebar, large-list controls and quieter feeds */
.admin-console-body.admin-sidebar-collapsed .admin-sidebar,
.admin-sidebar-collapsed .admin-sidebar {
  overflow: visible !important;
}

.admin-sidebar-collapsed .admin-sidebar-head {
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 10px;
}

.admin-sidebar-collapsed .admin-brand {
  display: grid;
  grid-template-columns: 1fr !important;
  width: 44px;
  min-height: 44px;
  justify-items: center;
}

.admin-sidebar-collapsed .admin-brand-logo {
  width: 38px;
  height: 38px;
}

.admin-sidebar-collapsed .admin-sidebar-toggle {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  margin-inline: auto;
  font-size: 21px;
  color: #0b6e56;
  background: linear-gradient(145deg, #ffffff, #effaf5);
}

.admin-sidebar-collapsed .admin-section-nav {
  align-items: center;
  gap: 8px !important;
  margin-top: 22px !important;
}

.admin-sidebar-collapsed .admin-section-nav button {
  position: relative;
  width: 52px !important;
  min-height: 48px !important;
  margin-inline: auto;
  border-radius: 15px !important;
}

.admin-sidebar-collapsed .admin-section-nav button.active {
  box-shadow: inset 0 -3px 0 rgba(15, 123, 95, 0.72) !important;
}

.admin-sidebar-collapsed .admin-section-nav button[data-admin-tooltip]::after {
  content: attr(data-admin-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 50;
  min-width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border: 1px solid rgba(196, 215, 210, 0.88);
  border-radius: 10px;
  background: #ffffff;
  color: #10231e;
  box-shadow: 0 14px 30px rgba(27, 48, 43, 0.14);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-sidebar-collapsed .admin-section-nav button:hover::after,
.admin-sidebar-collapsed .admin-section-nav button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.admin-sidebar-collapsed .admin-sidebar-footer {
  align-items: center;
}

.admin-sidebar-collapsed .admin-admin-card {
  width: 52px;
  height: 52px;
  border-radius: 17px;
}

.admin-user-tools,
.admin-audit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.admin-user-tools select,
.admin-user-tools input,
.admin-audit-tools select,
.admin-audit-tools input {
  min-height: 40px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-weight: 750;
}

.admin-user-tools select,
.admin-audit-tools select {
  min-width: 150px;
  padding: 0 34px 0 12px;
}

.admin-user-search,
.admin-audit-search {
  flex: 1 1 220px;
  min-width: 180px;
}

.admin-user-search input,
.admin-audit-search input {
  width: 100%;
  padding: 0 12px;
}

.admin-list-note,
.admin-service-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(151, 172, 166, 0.52);
  border-radius: 12px;
  background: rgba(247, 250, 249, 0.92);
  color: #66746f;
  font-size: 12px;
  font-weight: 800;
}

.admin-service-note {
  border-style: solid;
  background: rgba(241, 245, 244, 0.78);
}

.admin-feedback-message {
  display: -webkit-box;
  margin: 10px 0 4px;
  overflow: hidden;
  color: #31413d;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.admin-feedback-fulltext {
  margin: 6px 0 8px;
  color: #53635f;
  font-size: 13px;
}

.admin-feedback-fulltext summary {
  width: max-content;
  color: #0b7358;
  font-weight: 900;
  cursor: pointer;
}

.admin-output-date {
  margin: 14px 0 8px;
  color: #60716c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-list article,
.admin-output-item,
.admin-feedback-item,
.user-list-item {
  min-width: 0;
}

.audit-list article b,
.admin-output-item b,
.admin-feedback-item b,
.user-list-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-user-tools,
  .admin-audit-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-user-tools select,
  .admin-audit-tools select,
  .admin-user-search,
  .admin-audit-search {
    width: 100%;
    min-width: 0;
  }
}

/* Admin reference pass: stronger dashboard, queue layout and product-grade tables */
.admin-topbar-profile {
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
  color: var(--admin-text);
  box-shadow: 0 8px 22px rgba(20, 40, 34, 0.04);
}

.admin-topbar-profile .admin-avatar {
  width: 32px;
  height: 32px;
}

.admin-topbar-profile b,
.admin-topbar-profile small {
  display: block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar-profile b {
  font-size: 13px;
  font-weight: 900;
}

.admin-topbar-profile small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 750;
}

.admin-dashboard-command {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr) minmax(300px, 0.82fr);
  align-items: stretch;
}

.admin-release-dynamics-card {
  grid-row: span 2;
  min-height: 300px;
}

.admin-release-dynamics-card .admin-bar-chart {
  min-height: 180px;
  margin-top: 10px;
}

.admin-readiness-panel {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-card-radius);
  background: #fff;
  box-shadow: var(--admin-shadow-soft);
}

.admin-card-head span {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-mini-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-mini-stat-row span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.admin-mini-stat-row b {
  color: #0d201b;
  font-size: 18px;
  font-weight: 950;
}

.admin-mini-stat-row small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-readiness-score {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-readiness-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--admin-green) var(--ready), #e7efeb 0);
  box-shadow: inset 0 0 0 1px rgba(15, 123, 95, 0.12), 0 14px 30px rgba(15, 123, 95, 0.08);
}

.admin-readiness-ring b {
  color: #12231f;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.admin-readiness-ring span {
  margin-top: -36px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-readiness-list {
  display: grid;
  gap: 8px;
}

.admin-readiness-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.admin-readiness-list b,
.admin-readiness-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-readiness-list b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 900;
}

.admin-readiness-list em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.admin-feedback-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.admin-feedback-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-card-radius);
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  box-shadow: var(--admin-shadow-soft);
}

.admin-feedback-detail-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-feedback-detail-head b,
.admin-feedback-detail-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-detail-head b {
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 950;
}

.admin-feedback-detail-head span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-feedback-detail-badges,
.admin-feedback-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-feedback-detail p {
  margin: 0;
  color: #2f423d;
  line-height: 1.5;
}

.admin-feedback-detail > small {
  color: var(--admin-muted);
  font-weight: 760;
}

.admin-feedback-detail-actions button {
  min-height: 36px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 11px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-feedback-item {
  cursor: pointer;
}

.admin-feedback-item.selected {
  border-color: rgba(15, 123, 95, 0.44);
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08), var(--admin-shadow-soft);
}

.admin-users-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.admin-users-summary article {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.admin-users-summary span,
.admin-users-summary small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-users-summary b {
  color: #10231e;
  font-size: 20px;
  font-weight: 950;
}

.user-list-item {
  grid-template-columns: 38px minmax(0, 1fr);
}

.user-list-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9f7f0;
  color: var(--admin-green);
  font-size: 12px;
  font-weight: 950;
}

.user-list-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

@media (max-width: 1380px) {
  .admin-dashboard-command {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  }

  .admin-release-dynamics-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 1100px) {
  .admin-topbar-profile {
    display: none;
  }

  .admin-feedback-board,
  .admin-readiness-score {
    grid-template-columns: 1fr;
  }

  .admin-feedback-detail {
    position: static;
  }

  .admin-users-summary,
  .admin-mini-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-dashboard-command,
  .admin-feedback-board,
  .admin-users-summary,
  .admin-mini-stat-row {
    grid-template-columns: 1fr;
  }

  .admin-release-dynamics-card {
    min-height: auto;
  }

  .admin-readiness-ring {
    width: 116px;
    height: 116px;
  }
}

/* Admin product-final pass: scalable queues, modals, dense charts and reliable collapse */
.admin-sidebar-collapsed .admin-sidebar {
  width: 76px;
  min-width: 76px;
}

.admin-sidebar-collapsed .admin-brand-text,
.admin-sidebar-collapsed .admin-nav-label,
.admin-sidebar-collapsed .admin-admin-card span,
.admin-sidebar-collapsed .admin-sidebar-logout {
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-sidebar-collapsed .admin-section-nav button,
.admin-sidebar-collapsed .admin-brand,
.admin-sidebar-collapsed .admin-admin-card {
  justify-content: center;
  grid-template-columns: 42px;
  padding-inline: 10px;
}

.admin-sidebar-collapsed .admin-nav-icon,
.admin-sidebar-collapsed .admin-brand-logo,
.admin-sidebar-collapsed .admin-avatar {
  margin: 0 auto;
}

.admin-sidebar-collapsed .admin-section-nav .admin-nav-icon {
  display: inline-flex !important;
  width: 36px;
  height: 36px;
  min-width: 36px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-sidebar-collapsed .admin-section-nav .admin-nav-icon svg {
  display: block !important;
  width: 18px;
  height: 18px;
  opacity: 1;
  visibility: visible;
}

.admin-sidebar-collapsed .admin-section-nav button::after {
  content: attr(data-admin-tooltip);
  position: fixed;
  left: 84px;
  z-index: 30;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 213, 207, 0.85);
  border-radius: 10px;
  background: #12231f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-sidebar-collapsed .admin-section-nav button:hover::after,
.admin-sidebar-collapsed .admin-section-nav button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.admin-layered-chart {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-layered-chart button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: var(--admin-text);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.admin-layered-label,
.admin-layered-values {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-layered-values {
  text-align: right;
}

.admin-layered-track {
  position: relative;
  min-width: 0;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f1;
}

.admin-layered-track i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: inherit;
}

.admin-layered-track .primary {
  width: var(--bar);
  background: linear-gradient(90deg, #0f6b43, #1eb463);
}

.admin-layered-track .secondary {
  top: 3px;
  height: 6px;
  width: var(--bar);
  background: rgba(45, 108, 223, 0.78);
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-chart-legend i {
  width: 18px;
  height: 7px;
  border-radius: 999px;
}

.admin-chart-legend .primary {
  background: #0f6b43;
}

.admin-chart-legend .secondary {
  background: #2d6cdf;
}

.admin-donut-block {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 128px;
}

.admin-donut {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--segments));
  box-shadow: inset 0 0 0 1px rgba(15, 123, 95, 0.1);
}

.admin-donut b {
  color: #12231f;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.admin-donut span {
  margin-top: -26px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-donut-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-donut-legend button {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--admin-text);
  font: inherit;
  cursor: pointer;
}

.admin-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.admin-donut-legend span {
  overflow: hidden;
  color: #364943;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-donut-legend b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 950;
}

.admin-feedback-pulse-chart {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.admin-feedback-pulse-chart > b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-feedback-pulse-chart > span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-feedback-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-feedback-pulse-grid button {
  display: grid;
  gap: 2px;
  min-height: 58px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 13px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.admin-feedback-pulse-grid button.warn {
  border-color: rgba(245, 166, 35, 0.28);
  background: #fffaf1;
}

.admin-feedback-pulse-grid button.error {
  border-color: rgba(226, 85, 86, 0.28);
  background: #fff5f5;
}

.admin-feedback-pulse-grid span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-feedback-pulse-grid b {
  color: var(--admin-text);
  font-size: 21px;
  font-weight: 950;
}

.admin-user-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 16px;
  background: #fff;
}

.admin-user-table-head,
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) 130px 142px minmax(180px, 1fr) 124px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
}

.admin-user-table-head {
  background: #f6faf8;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-user-row {
  border-top: 1px solid rgba(226, 235, 232, 0.86);
}

.admin-user-row.selected {
  background: #f3fbf7;
}

.admin-user-person {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-user-person em {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9f7f0;
  color: var(--admin-green);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.admin-user-person b,
.admin-user-person small,
.admin-user-table .admin-user-activity b,
.admin-user-table .admin-user-activity small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-person b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-user-person small,
.admin-user-table .admin-user-activity small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-user-table .admin-user-activity {
  display: grid;
  gap: 3px;
  min-width: 0;
  cursor: default;
}

.admin-user-table .admin-user-activity b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 950;
}

.admin-user-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4f2;
  color: #596964;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.admin-user-status.ok {
  background: #e7f7ee;
  color: #0f6b43;
}

.admin-user-status.warn {
  background: #fff5df;
  color: #9c5b00;
}

.admin-user-actions button,
.admin-backup-actions button,
.admin-backup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.admin-backup-actions button {
  border-color: rgba(226, 85, 86, 0.22);
  color: #a33b3c;
}

.admin-backup-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-pagination button {
  min-height: 34px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-text);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
}

.admin-pagination button:disabled {
  opacity: 0.45;
}

.admin-user-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(14, 30, 26, 0.36);
  backdrop-filter: blur(4px);
}

.admin-user-modal-open .admin-user-modal-backdrop {
  display: block;
}

.admin-shell .admin-editor-panel {
  display: none;
}

.admin-shell[data-admin-view-panel="users"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.admin-shell[data-admin-view-panel="users"] .admin-users-panel {
  min-width: 0;
  width: 100%;
}

.admin-shell[data-admin-view-panel="users"] .admin-user-tools {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(148px, 180px));
  align-items: end;
  gap: 10px;
}

.admin-shell[data-admin-view-panel="users"] .admin-user-tools > * {
  width: 100%;
  min-width: 0;
}

.admin-shell[data-admin-view-panel="users"] #newUserBtn {
  min-width: 184px;
  white-space: nowrap;
}

.admin-ops-grid[data-admin-view-panel~="audit"],
.admin-ops-grid[data-admin-view-panel~="backups"] {
  grid-template-columns: minmax(0, 1fr) !important;
}

.admin-ops-grid[data-admin-view-panel~="audit"] .admin-log-panel,
.admin-ops-grid[data-admin-view-panel~="backups"] .admin-log-panel {
  min-width: 0;
}

.admin-user-modal-open .admin-shell .admin-editor-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  display: grid;
  width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, 820px);
  overflow: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 80px rgba(16, 32, 28, 0.24);
}

.admin-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--admin-line);
  border-radius: 50%;
  background: #fff;
  color: var(--admin-text);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

body.admin-user-modal-open {
  overflow: hidden;
}

.admin-user-modal-open .admin-shell .admin-editor-panel {
  width: min(760px, calc(100vw - 36px));
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.admin-user-modal-open .admin-shell .admin-editor-panel .admin-panel-head {
  padding-right: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(213, 226, 222, 0.86);
}

.admin-user-modal-open .admin-user-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-modal-open .admin-user-form input,
.admin-user-modal-open .admin-user-form select {
  min-height: 44px;
  border-color: rgba(196, 215, 209, 0.95);
  border-radius: 12px;
  background: #fff;
}

.admin-user-modal-open .security-rules {
  border-radius: 15px;
  background: #f4faf7;
}

.admin-user-modal-open #createBackupBtn,
.admin-user-modal-open .admin-editor-panel .secondary-link,
.admin-user-modal-new #deleteUserBtn {
  display: none !important;
}

.admin-user-modal-open .admin-form-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.admin-user-modal-open #saveUserBtn {
  min-width: 176px;
}

.admin-combo-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 22px;
  color: #42554f;
  font-size: 12px;
  font-weight: 850;
}

.admin-combo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-combo-legend i {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 8px;
  border-radius: 4px;
}

.admin-combo-legend i.bar {
  background: #b9dfcf;
}

.admin-combo-legend i.line {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #087056;
  box-shadow: none;
}

.admin-combo-legend i.line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #087056;
  transform: translate(-50%, -50%);
}

.admin-combo-svg {
  display: block;
  width: 100%;
  height: clamp(170px, 19vw, 230px);
  margin-top: 4px;
  overflow: visible;
}

.admin-combo-grid-line {
  stroke: rgba(213, 226, 222, 0.7);
  stroke-width: 1;
}

.admin-combo-bar {
  fill: #acd9c9;
  opacity: 0.95;
}

.admin-combo-line {
  fill: none;
  stroke: #087056;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-combo-point {
  fill: #087056;
  stroke: #ffffff;
  stroke-width: 2.4;
}

.admin-combo-axis,
.admin-combo-label {
  fill: #6d7d78;
  font-size: 11px;
  font-weight: 780;
}

.admin-combo-value {
  fill: #21332e;
  font-size: 11px;
  font-weight: 900;
}

.admin-mini-stat-row span {
  align-content: center;
  border-radius: 14px;
  text-align: center;
}

.admin-mini-stat-row span.ok b {
  color: var(--admin-green);
}

.admin-mini-stat-row span.warn b {
  color: #a15d00;
}

.admin-release-dynamics-card .admin-bar-chart {
  min-height: 0;
}

.admin-feedback-thread {
  display: grid;
  gap: 10px;
}

.admin-feedback-thread article {
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 14px;
  background: #fff;
}

.admin-feedback-thread .admin-answer {
  background: #f1fbf6;
}

.admin-backup-management {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-backup-management article,
.admin-audit-summary-grid button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
  padding: 12px;
}

.admin-backup-management span,
.admin-audit-summary-grid span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-backup-management b,
.admin-audit-summary-grid b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-backup-management small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-backup-list {
  display: grid;
  gap: 10px;
}

.admin-backup-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 14px;
  background: #fff;
}

.admin-backup-list article.warn {
  background: #fffaf1;
}

.admin-backup-list b,
.admin-backup-list span,
.admin-backup-list small,
.admin-backup-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-backup-list b {
  color: var(--admin-text);
  font-weight: 950;
}

.admin-backup-list span,
.admin-backup-list small,
.admin-backup-list em {
  color: var(--admin-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.admin-backup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.admin-audit-summary-grid button {
  text-align: left;
  cursor: pointer;
}

.admin-library-grid article.ok {
  border-color: rgba(15, 123, 95, 0.2);
}

@media (max-width: 1360px) {
  .admin-user-table-head,
  .admin-user-row {
    grid-template-columns: minmax(220px, 1.4fr) 120px 128px minmax(150px, 0.9fr) 112px;
  }

  .admin-backup-management {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-audit-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-user-table {
    overflow-x: auto;
  }

  .admin-user-table-head,
  .admin-user-row {
    min-width: 840px;
  }

  .admin-donut-block,
  .admin-backup-list article {
    grid-template-columns: 1fr;
  }

  .admin-backup-management {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-sidebar-collapsed .admin-sidebar {
    width: min(86vw, 290px);
  }

  .admin-sidebar-collapsed .admin-brand-text,
  .admin-sidebar-collapsed .admin-nav-label,
  .admin-sidebar-collapsed .admin-admin-card span,
  .admin-sidebar-collapsed .admin-sidebar-logout {
    width: auto;
    max-width: none;
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar-collapsed .admin-section-nav button,
  .admin-sidebar-collapsed .admin-brand,
  .admin-sidebar-collapsed .admin-admin-card {
    justify-content: start;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-layered-chart button {
    grid-template-columns: 38px minmax(0, 1fr) 54px;
  }

  .admin-feedback-pulse-grid,
  .admin-audit-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin center final product pass: modal layer, search and management sections */
.admin-console-body .admin-period-filter {
  display: none !important;
}

.admin-console-body .admin-topbar-button {
  min-width: 112px;
  text-decoration: none;
  white-space: nowrap;
}

.admin-console-body .admin-topbar-logout.admin-topbar-button {
  background: #ffffff;
  color: var(--admin-text);
}

.admin-global-search {
  position: relative;
}

.admin-global-search-results {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(196, 215, 209, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(23, 47, 40, 0.16);
}

.admin-global-search-results[hidden] {
  display: none;
}

.admin-global-search-results button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--admin-text);
  text-align: left;
  cursor: pointer;
}

.admin-global-search-results button:hover {
  background: #eef8f3;
}

.admin-global-search-results b {
  font-size: 13px;
  font-weight: 950;
}

.admin-global-search-results span {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-collapsed .admin-admin-card .admin-avatar {
  display: grid !important;
  width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  opacity: 1 !important;
}

.admin-sidebar-collapsed .admin-sidebar-toggle {
  color: var(--admin-green) !important;
  font-size: 20px !important;
  font-weight: 950;
}

.admin-user-modal-backdrop {
  z-index: 1400 !important;
  background: rgba(18, 35, 31, 0.36) !important;
  backdrop-filter: blur(5px) saturate(0.92) !important;
}

.admin-user-modal-open .admin-shell .admin-editor-panel {
  z-index: 1410 !important;
  top: 50vh !important;
  left: 50vw !important;
  transform: translate3d(-50%, -50%, 0) !important;
  max-height: min(760px, calc(100vh - 42px));
  overflow: auto;
  border: 1px solid rgba(15, 123, 95, 0.18);
  box-shadow: 0 34px 90px rgba(14, 38, 32, 0.26);
}

.admin-user-modal-open .admin-shell .admin-list-panel,
.admin-user-modal-open .admin-shell .admin-user-analytics {
  pointer-events: none;
}

.admin-feedback-visuals {
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 0.82fr) !important;
  grid-auto-rows: minmax(192px, auto);
  align-items: stretch;
}

.admin-feedback-visuals > section:first-child {
  grid-row: 1 / span 2;
  min-height: 420px;
}

.admin-feedback-visuals > section:not(:first-child) {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 204px;
}

.admin-feedback-visuals .admin-donut-block {
  align-self: stretch;
  grid-template-columns: 96px minmax(0, 1fr);
  justify-items: stretch;
  align-content: center;
  align-items: center;
  min-height: 142px;
}

.admin-feedback-visuals .admin-donut-legend {
  width: 100%;
}

.admin-risk-ring.warn {
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(#f5a623 var(--ready), #edf3f0 0);
}

.admin-risk-ring.ok {
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(var(--admin-green) var(--ready), #edf3f0 0);
}

.admin-risk-list article {
  cursor: pointer;
}

.admin-risk-list article.warn {
  background: #fffaf1;
}

.admin-risk-list article.error {
  background: #fff5f5;
}

.admin-backup-command,
.admin-audit-command,
.admin-library-command,
.admin-output-command {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-backup-command,
.admin-library-command,
.admin-output-command {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-audit-command {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-backup-command article,
.admin-output-command article,
.admin-library-command article,
.admin-audit-command button {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(196, 215, 209, 0.88);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  text-align: left;
}

.admin-audit-command button {
  cursor: pointer;
}

.admin-audit-command button:hover {
  border-color: rgba(15, 123, 95, 0.34);
  box-shadow: 0 14px 30px rgba(31, 56, 48, 0.08);
}

.admin-backup-command article.warn,
.admin-output-command article.warn,
.admin-library-command article.warn {
  background: #fffaf1;
  border-color: rgba(245, 166, 35, 0.28);
}

.admin-backup-command article.ok,
.admin-output-command article.ok,
.admin-library-command article.ok {
  background: #f4fbf7;
  border-color: rgba(15, 123, 95, 0.2);
}

.admin-backup-command span,
.admin-output-command span,
.admin-library-command span,
.admin-audit-command span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.admin-backup-command b,
.admin-output-command b,
.admin-library-command b,
.admin-audit-command b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
}

.admin-backup-command small,
.admin-output-command small,
.admin-library-command small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
}

.admin-audit-stream {
  display: grid;
  gap: 8px;
}

.admin-audit-stream article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(213, 226, 222, 0.85);
  border-radius: 14px;
  background: #fff;
}

.admin-audit-stream article.warn {
  background: #fffaf1;
}

.admin-audit-stream b,
.admin-audit-stream small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-stream em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef8f3;
  color: var(--admin-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
}

.admin-system-admin-actions {
  grid-column: 1 / -1;
}

.admin-system-admin-actions .admin-system-tools article {
  cursor: pointer;
}

@media (max-width: 1180px) {
  .admin-feedback-visuals {
    grid-template-columns: 1fr !important;
  }

  .admin-feedback-visuals > section:first-child {
    grid-row: auto;
    min-height: 300px;
  }

  .admin-backup-command,
  .admin-output-command,
  .admin-library-command,
  .admin-audit-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-sidebar-collapsed .admin-sidebar {
    width: 78px !important;
  }

  .admin-sidebar-collapsed .admin-brand-text,
  .admin-sidebar-collapsed .admin-nav-label,
  .admin-sidebar-collapsed .admin-admin-card span,
  .admin-sidebar-collapsed .admin-sidebar-logout {
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .admin-sidebar-collapsed .admin-section-nav button,
  .admin-sidebar-collapsed .admin-brand,
  .admin-sidebar-collapsed .admin-admin-card {
    grid-template-columns: 42px !important;
    justify-content: center !important;
  }

  .admin-backup-command,
  .admin-output-command,
  .admin-library-command,
  .admin-audit-command {
    grid-template-columns: 1fr;
  }

  .admin-user-modal-open .admin-shell .admin-editor-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
}

/* Admin control-center pass: centered modal, meaningful risk cards and scalable dense sections */
.admin-console-body.admin-sidebar-collapsed .admin-dashboard-shell {
  grid-template-columns: 76px minmax(0, 1fr) !important;
}

.admin-console-body.admin-sidebar-collapsed .admin-sidebar,
.admin-sidebar-collapsed .admin-sidebar {
  width: 76px !important;
  min-width: 76px !important;
  padding-inline: 10px !important;
}

.admin-sidebar-collapsed .admin-sidebar-head {
  align-items: center !important;
  justify-content: center !important;
}

.admin-sidebar-collapsed .admin-brand {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  padding: 0 !important;
}

.admin-sidebar-collapsed .admin-brand-logo {
  width: 36px !important;
  height: 36px !important;
}

.admin-sidebar-collapsed .admin-sidebar-toggle {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 14px !important;
  margin: 8px auto 0 !important;
}

.admin-sidebar-collapsed .admin-section-nav button {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
}

.admin-sidebar-collapsed .admin-section-nav button.active {
  background: #e5f7ee !important;
  box-shadow: inset 3px 0 0 #0f6b43, 0 8px 20px rgba(15, 123, 95, 0.12) !important;
}

.admin-sidebar-collapsed .admin-section-nav button::after {
  top: auto !important;
  margin-top: 0 !important;
}

.admin-sidebar-collapsed .admin-sidebar-footer {
  display: grid !important;
  justify-items: center !important;
  gap: 10px;
}

.admin-sidebar-collapsed .admin-admin-card {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
}

.admin-sidebar-collapsed .admin-admin-card .admin-avatar {
  width: 42px !important;
  height: 42px !important;
}

.admin-topbar {
  min-height: 72px;
}

.admin-topbar-actions {
  align-items: center;
}

.admin-topbar-button,
.admin-notification-button,
.admin-global-search input {
  height: 42px;
}

.admin-workspace-link.admin-topbar-button {
  border-color: rgba(15, 123, 95, 0.22);
  background: linear-gradient(180deg, #f5fbf8, #ffffff);
  color: var(--admin-green);
  font-weight: 950;
}

.admin-global-search {
  min-width: min(330px, 28vw);
}

body > .admin-editor-panel.admin-floating-user-panel {
  display: none;
}

body.admin-user-modal-open > .admin-editor-panel.admin-floating-user-panel {
  position: fixed !important;
  z-index: 2200 !important;
  top: 50% !important;
  left: 50% !important;
  display: grid !important;
  width: min(760px, calc(100vw - 48px)) !important;
  max-height: min(780px, calc(100vh - 48px)) !important;
  overflow: auto !important;
  padding: 24px !important;
  border: 1px solid rgba(15, 123, 95, 0.2) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbfa) !important;
  box-shadow: 0 40px 110px rgba(10, 25, 21, 0.32) !important;
  transform: translate(-50%, -50%) !important;
}

body.admin-user-modal-open .admin-user-modal-backdrop {
  z-index: 2100 !important;
  display: block !important;
  background: rgba(16, 31, 27, 0.46) !important;
  backdrop-filter: blur(5px) saturate(0.92) !important;
}

body.admin-user-modal-open > .admin-editor-panel .admin-panel-head {
  padding-right: 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(213, 226, 222, 0.9);
}

body.admin-user-modal-open > .admin-editor-panel .admin-user-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-user-modal-open > .admin-editor-panel .admin-form-actions {
  justify-content: flex-end;
}

body.admin-user-modal-open > .admin-editor-panel #createBackupBtn,
body.admin-user-modal-open > .admin-editor-panel .secondary-link,
body.admin-user-modal-new > .admin-editor-panel #deleteUserBtn {
  display: none !important;
}

.admin-risk-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-risk-summary .admin-readiness-ring {
  width: 116px;
  height: 116px;
}

.admin-risk-summary > div:last-child {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-risk-summary b {
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
}

.admin-risk-summary span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-risk-summary button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-simple-bars {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 100%;
}

.admin-simple-bars button {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1.5fr) 46px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--admin-text);
  font: inherit;
  cursor: pointer;
}

.admin-simple-bars span,
.admin-simple-bars small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-simple-bars span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-simple-bars i {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f1;
}

.admin-simple-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b43, #1eb463);
}

.admin-simple-bars button.warn i::before {
  background: linear-gradient(90deg, #f5a623, #ffc866);
}

.admin-simple-bars button.error i::before {
  background: linear-gradient(90deg, #e25556, #ff8b8c);
}

.admin-simple-bars button.info i::before {
  background: linear-gradient(90deg, #2d6cdf, #74a4ff);
}

.admin-simple-bars b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.admin-simple-bars > small {
  display: block;
  margin-top: 2px;
  line-height: 1.35;
}

.admin-feedback-detail-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 15px;
  background: #fff;
}

.admin-feedback-detail-controls label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-feedback-detail-controls select,
.admin-feedback-detail-controls textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #fff;
  color: var(--admin-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.admin-feedback-detail-controls textarea {
  resize: vertical;
}

.admin-feedback-detail-controls button,
.admin-output-row-actions button {
  min-height: 34px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-output-timeline-card,
.admin-audit-meaning,
.admin-system-doc-gates {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.admin-output-timeline-card > div:first-child,
.admin-audit-meaning {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-output-timeline-card b,
.admin-audit-meaning b,
.admin-system-doc-gates h3 {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-output-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-output-row-actions button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.admin-output-row-actions .danger-button {
  border-color: rgba(226, 85, 86, 0.24);
  color: #a43d3d;
}

.admin-backup-command-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-backup-list-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-audit-command-thin {
  gap: 8px;
}

.admin-audit-command-thin button {
  min-height: 58px;
  padding: 10px 12px;
}

.admin-audit-command-thin button.warn {
  background: #fffaf1;
  border-color: rgba(245, 166, 35, 0.3);
}

.admin-audit-command-thin button.ok {
  background: #f4fbf7;
  border-color: rgba(15, 123, 95, 0.18);
}

.admin-audit-command-thin button.muted {
  background: #f7f9f8;
}

.admin-system-checks-clear article {
  min-height: 112px;
}

.admin-system-facts-human span {
  min-height: 52px;
}

.admin-security-gate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-security-gate-list span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 12px;
  background: #fff;
  color: #40514c;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

@media (max-width: 1360px) {
  .admin-backup-command-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-backup-list-expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.admin-user-modal-open > .admin-editor-panel .admin-user-form,
  .admin-risk-summary,
  .admin-security-gate-list {
    grid-template-columns: 1fr;
  }

  .admin-global-search {
    min-width: 190px;
  }
}

@media (max-width: 760px) {
  .admin-console-body.admin-sidebar-collapsed .admin-dashboard-shell {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  body.admin-user-modal-open > .admin-editor-panel.admin-floating-user-panel {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 18px !important;
  }

  .admin-simple-bars button {
    grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1fr) 40px;
  }
}

/* Admin block polish pass: stable overview, scalable lists and cleaner admin language */
.admin-dashboard-shell {
  --admin-card-radius: 18px;
}

.admin-dashboard-grid {
  align-items: stretch;
}

.admin-dashboard-panel,
.admin-system-grid section,
.admin-feedback-visuals > section {
  min-width: 0;
}

.admin-risk-board {
  display: grid;
  gap: 12px;
}

.admin-risk-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 18px;
  background: linear-gradient(135deg, #f5fbf8 0%, #ffffff 100%);
}

.admin-risk-board-head.warn {
  background: linear-gradient(135deg, #fff8eb 0%, #ffffff 100%);
  border-color: rgba(245, 166, 35, 0.26);
}

.admin-risk-board-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-risk-board-head span,
.admin-risk-board-head small,
.admin-risk-note {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-risk-board-head b {
  color: var(--admin-text);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.admin-risk-board-head button {
  min-height: 38px;
  white-space: nowrap;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-risk-list-clean {
  display: grid;
  gap: 8px;
}

.admin-risk-list-clean article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(213, 226, 222, 0.88);
  border-radius: 14px;
  background: #fff;
}

.admin-risk-list-clean article.warn {
  background: #fffaf1;
  border-color: rgba(245, 166, 35, 0.24);
}

.admin-risk-list-clean article.error {
  background: #fff5f5;
  border-color: rgba(226, 85, 86, 0.24);
}

.admin-risk-list-clean div {
  min-width: 0;
}

.admin-risk-list-clean b,
.admin-risk-list-clean em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-risk-list-clean b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 920;
}

.admin-risk-list-clean em {
  color: var(--admin-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.admin-risk-list-clean strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 950;
}

.admin-polish-bars {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 100%;
}

.admin-polish-bars button {
  display: grid;
  grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1.45fr) minmax(46px, auto);
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--admin-text);
  font: inherit;
  cursor: pointer;
}

.admin-polish-bars.compact button {
  grid-template-columns: minmax(102px, 0.82fr) minmax(0, 1.55fr) minmax(42px, auto);
}

.admin-polish-bars span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-polish-bars span i {
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--admin-green);
}

.admin-polish-bars span i.warn {
  background: #f5a623;
}

.admin-polish-bars span i.error {
  background: #e25556;
}

.admin-polish-bars span i.info {
  background: #2d6cdf;
}

.admin-polish-bars span i.muted {
  background: #9aa8a3;
}

.admin-polish-bars em {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f1;
}

.admin-polish-bars em::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b43, #1eb463);
}

.admin-polish-bars button.warn em::before {
  background: linear-gradient(90deg, #f5a623, #ffc866);
}

.admin-polish-bars button.error em::before {
  background: linear-gradient(90deg, #e25556, #ff8b8c);
}

.admin-polish-bars button.info em::before {
  background: linear-gradient(90deg, #2d6cdf, #74a4ff);
}

.admin-polish-bars button.muted em::before {
  background: linear-gradient(90deg, #9aa8a3, #c8d1cd);
}

.admin-polish-bars b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.admin-polish-bars small {
  display: none;
}

.admin-polish-bars p {
  margin: 2px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-feedback-visuals {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr) !important;
  gap: 14px;
}

.admin-feedback-visuals > section:first-child {
  min-height: 360px;
}

.admin-feedback-visuals > section:not(:first-child) {
  min-height: 176px;
}

.admin-feedback-visuals h3 {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.admin-users-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.admin-users-summary article {
  min-height: 108px;
  align-content: start;
  border-radius: 16px;
}

.admin-users-summary article.warn {
  background: #fffaf1;
  border-color: rgba(245, 166, 35, 0.28);
}

.admin-output-timeline-wide {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}

.admin-output-timeline-wide .admin-combo-chart {
  min-height: 170px;
  max-height: 230px;
}

.admin-output-list-scroll {
  display: grid;
  gap: 10px;
  max-height: min(760px, calc(100vh - 370px));
  min-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.admin-output-item.warn {
  background: #fffaf1;
  border-color: rgba(245, 166, 35, 0.28);
}

.admin-library-command-clean {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.admin-storage-composition {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.admin-storage-composition > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-storage-composition b {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 950;
}

.admin-storage-composition span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-audit-command-thin {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.admin-audit-command-thin button {
  position: relative;
  min-height: 52px;
  overflow: hidden;
  border-left: 4px solid rgba(15, 123, 95, 0.35);
}

.admin-audit-command-thin button.warn {
  border-left-color: #f5a623;
}

.admin-audit-command-thin button.muted {
  border-left-color: #9aa8a3;
}

.admin-audit-stream-expanded {
  max-height: none !important;
}

.admin-audit-stream-expanded article {
  min-height: 54px;
}

.admin-system-checks-clear article {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-content: start;
  min-height: 124px;
}

.admin-system-checks-clear article span {
  grid-column: 1 / -1;
  overflow: visible;
  white-space: normal;
}

.admin-system-facts-human span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.admin-system-facts-human b,
.admin-system-facts-human em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-tools article {
  min-height: 94px;
  align-content: start;
}

.admin-layered-chart,
.admin-combo-chart {
  min-width: 0;
}

.admin-combo-chart svg,
.admin-layered-chart svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.admin-chart-legend,
.admin-combo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.admin-chart-legend span,
.admin-combo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .admin-users-summary,
  .admin-library-command-clean,
  .admin-audit-command-thin {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .admin-feedback-visuals {
    grid-template-columns: 1fr !important;
  }

  .admin-feedback-visuals > section:first-child {
    min-height: 300px;
  }

  .admin-library-command-clean,
  .admin-users-summary,
  .admin-audit-command-thin {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-risk-board-head,
  .admin-risk-list-clean article,
  .admin-polish-bars button,
  .admin-polish-bars.compact button,
  .admin-system-facts-human span {
    grid-template-columns: 1fr;
  }

  .admin-risk-board-head button,
  .admin-polish-bars b {
    justify-self: start;
    text-align: left;
  }

  .admin-library-command-clean,
  .admin-users-summary,
  .admin-audit-command-thin {
    grid-template-columns: 1fr !important;
  }

  .admin-output-list-scroll {
    min-height: 320px;
    max-height: none;
    overflow: visible;
  }
}

/* Final admin overview polish */
.admin-risk-donut-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(213, 226, 222, 0.9);
  border-radius: 18px;
  background: linear-gradient(135deg, #f6fbf8 0%, #ffffff 100%);
}

.admin-risk-donut-card.warn {
  background: linear-gradient(135deg, #fff8eb 0%, #ffffff 100%);
  border-color: rgba(245, 166, 35, 0.26);
}

.admin-risk-donut-card.error {
  background: linear-gradient(135deg, #fff4f4 0%, #ffffff 100%);
  border-color: rgba(226, 85, 86, 0.24);
}

.admin-risk-donut {
  display: grid;
  place-items: center;
  align-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--admin-green) var(--risk-ready), #e9f1ee 0);
}

.admin-risk-donut-card.warn .admin-risk-donut {
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#f5a623 var(--risk-ready), #e9f1ee 0);
}

.admin-risk-donut-card.error .admin-risk-donut {
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#e25556 var(--risk-ready), #e9f1ee 0);
}

.admin-risk-donut b {
  color: var(--admin-text);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.admin-risk-donut span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-risk-donut-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-risk-donut-copy b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-risk-donut-copy span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-risk-donut-copy button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-risk-list-compact {
  gap: 7px;
}

.admin-risk-list-compact article {
  padding-block: 9px;
}

.admin-readiness-panel .admin-card-head {
  align-items: start;
}

.admin-readiness-panel .admin-card-head span {
  line-height: 1.35;
}

@media (max-width: 760px) {
  .admin-risk-donut-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Workspace grid resilience: keep library panes inside the workbench on narrow/macOS viewports. */
.template-archive-workspace,
.template-group-workspace {
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  max-width: 100%;
}

.base-workspace {
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  max-width: 100%;
}

:where(
  .template-archive-workspace,
  .template-group-workspace,
  .template-builder-workspace,
  .base-workspace,
  .release-documents-layout,
  .release-template-picker-panel,
  .release-template-group-panel,
  .release-template-group-controls
) > *,
:where(
  .template-card,
  .base-card,
  .template-library-card,
  .template-groups-card,
  .template-group-picker,
  .template-library-list,
  .template-group-archive-list,
  .base-library-card,
  .base-library-list,
  .release-documents-main,
  .arsenal-select-field,
  .arsenal-dropdown
) {
  min-width: 0;
  max-width: 100%;
}

.template-card-head,
.base-card-head,
.template-group-subhead,
.release-template-group-head {
  min-width: 0;
}

.template-card-head > div,
.base-card-head > div,
.template-pick span,
.base-pick span,
.template-item-meta,
.base-item-meta,
.template-group-subhead h3 {
  min-width: 0;
}

.template-group-subhead {
  flex-wrap: wrap;
}

.template-group-subhead-actions,
.base-count {
  max-width: 100%;
}

.template-item-actions,
.base-item-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 32px;
  max-width: 100%;
}

.template-item-actions button:not(.icon-danger),
.base-item-actions button:not(.base-icon-danger) {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (max-width: 600px) {
  .template-archive-workspace,
  .template-group-workspace,
  .template-builder-workspace,
  .base-workspace {
    grid-template-columns: 1fr;
  }

  .base-library-card,
  .template-library-card {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  .base-left-stack,
  .template-archive-workspace .template-upload-card,
  .template-archive-workspace .first-run-inline-tip,
  .template-builder-fields,
  .template-builder-save {
    grid-column: auto;
    grid-row: auto;
  }
}

@container (max-width: 620px) {
  .release-template-group-controls,
  .release-template-picker-panel {
    grid-template-columns: 1fr;
  }

  .release-template-picker-panel > label {
    grid-column: auto;
  }

  .release-template-picker-panel .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .release-template-picker-panel .action-row button,
  .release-template-group-controls button {
    width: 100%;
    margin-top: 0;
  }
}

@container (max-width: 440px) {
  .template-item-actions,
  .base-item-actions {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .template-item-actions button[data-template-rename],
  .base-item-actions button[data-base-rename] {
    grid-column: 1 / -1;
  }
}

/* Compact laptop workspace: keep the three-pane operator layout usable on 1280-1440px screens. */
@media (min-width: 1181px) and (max-width: 1440px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr) minmax(340px, 30vw);
  }

  .brand {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    min-height: 76px;
    padding: 12px 11px;
  }

  .brand-logo {
    border-radius: 10px;
    height: 44px;
    width: 44px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .brand span {
    font-size: 10.5px;
  }

  .stage-nav {
    gap: 4px;
    padding: 8px;
  }

  .stage {
    gap: 7px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 44px;
    padding: 6px 7px;
  }

  .stage-index {
    height: 28px;
    width: 28px;
  }

  .stage b {
    font-size: 13px;
  }

  .stage small {
    font-size: 10.5px;
    line-height: 1.18;
  }

  .sidebar-footer {
    padding-inline: 10px;
  }

  .workbench {
    padding: 0 16px 20px;
  }

  .workbench-head {
    gap: 14px;
    margin: 0 -16px 16px;
    min-height: 68px;
    padding: 10px 16px;
  }

  #stepTitle {
    font-size: 22px;
  }

  .workbench-context {
    font-size: 11.5px;
    margin-top: 4px;
  }

  .workbench-head .head-actions button {
    min-height: 34px;
    min-width: 136px;
    padding: 7px 12px;
  }

  .preview {
    margin-left: 10px;
  }

  .preview-tabs {
    gap: 6px;
    padding: 10px 12px;
  }

  .preview-tab {
    min-height: 32px;
    padding: 6px 8px;
  }

  .preview-panel {
    padding: 12px;
  }

  .overview-next-card,
  .release-summary,
  .template-card,
  .base-card,
  .release-card-body,
  .release-data-source-panel,
  .release-template-group-panel,
  .release-template-picker-panel,
  .scenario-context-panel,
  .scenario-settings-panel,
  .rule-section,
  .launch-card {
    padding: 12px;
  }

  .prep-card-head {
    padding: 10px 12px;
  }

  .prep-card-body {
    padding: 10px;
  }

  .release-stepper,
  .overview-grid,
  .template-archive-workspace,
  .template-group-workspace,
  .template-builder-workspace,
  .base-workspace,
  .release-summary-grid {
    gap: 10px;
  }

  .release-step-tab {
    min-height: 56px;
    padding: 10px;
  }

  .center-viewer {
    margin-top: 14px;
  }
}

@media (min-width: 1181px) and (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr) minmax(320px, 28vw);
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 70px;
    padding: 10px;
  }

  .brand-logo {
    height: 40px;
    width: 40px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .brand span {
    font-size: 10px;
  }

  .stage {
    min-height: 42px;
  }

  .workbench {
    padding: 0 14px 18px;
  }

  .workbench-head {
    margin: 0 -14px 14px;
    min-height: 64px;
    padding: 9px 14px;
  }

  .workbench-head .head-actions button {
    min-width: 124px;
  }

  .preview {
    margin-left: 8px;
  }

  .preview-tabs {
    padding: 9px 10px;
  }

  .preview-panel {
    padding: 10px;
  }

  .release-summary-grid,
  .preview .release-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1181px) and (max-height: 800px) {
  .brand {
    min-height: 68px;
  }

  .workbench-head {
    min-height: 62px;
  }

  .stage {
    min-height: 40px;
  }

  .stage small {
    margin-top: 1px;
  }
}

/* Final operator polish: calmer empty states and clearer informational panels. */
.workbench :where(.empty, .kit-empty, .base-empty, .results-empty),
.preview :where(.empty, .kit-empty, .base-empty, .results-empty) {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-50) 100%);
  border: 1px dashed rgba(38, 83, 70, 0.18);
  border-radius: var(--radius-md);
  color: var(--ink-600);
  line-height: 1.42;
  padding: 14px;
}

.workbench :where(.empty, .kit-empty, .base-empty, .results-empty) b,
.preview :where(.empty, .kit-empty, .base-empty, .results-empty) b {
  color: var(--ink-900);
  font-weight: 850;
}

.workbench :where(.workspace-summary, .module-note),
.preview :where(.workspace-summary, .module-note) {
  line-height: 1.42;
}

.base-left-stack .action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.base-left-stack .action-row button {
  width: 100%;
}

.first-empty-state {
  display: grid;
  gap: 7px;
}

.first-empty-state span {
  color: var(--ink-600);
}

/* Focused overview panels: interactive release chart and clean risk card. */
.admin-release-dynamics-card,
.admin-release-dynamics-card .admin-bar-chart,
.admin-combo-chart-product {
  overflow: visible;
}

.admin-combo-chart-product {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.72);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f6faf8 100%);
  padding: 10px;
}

.admin-combo-value-strip {
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.admin-combo-value-strip span {
  display: grid;
  gap: 1px;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 5px 6px;
  text-align: center;
}

.admin-combo-value-strip b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-combo-value-strip em {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-combo-chart-product .admin-combo-svg {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 252, 250, 0.68));
  overflow: visible;
}

.admin-combo-chart-product .admin-combo-grid-line {
  stroke: rgba(213, 226, 222, 0.82);
  stroke-width: 1;
}

.admin-combo-chart-product .admin-combo-axis,
.admin-combo-chart-product .admin-combo-label {
  fill: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-combo-chart-product .admin-combo-bar {
  fill: rgba(82, 174, 144, 0.36);
  transition: fill 160ms ease, transform 160ms ease;
}

.admin-combo-chart-product .admin-combo-line {
  fill: none;
  stroke: var(--admin-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.admin-combo-chart-product .admin-combo-point {
  fill: var(--admin-green);
  stroke: #fff;
  stroke-width: 2.6;
}

.admin-combo-chart-product .admin-combo-value {
  fill: #11231e;
  font-size: 12px;
  font-weight: 950;
}

.admin-combo-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
}

.admin-combo-day-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(213, 226, 222, 0.88);
  border-radius: 13px;
  background: #fff;
  color: var(--admin-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-combo-day-card.active {
  border-color: rgba(15, 123, 95, 0.24);
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
}

.admin-combo-day-card:hover {
  z-index: 5;
  border-color: rgba(15, 123, 95, 0.4);
  box-shadow: 0 14px 30px rgba(15, 47, 39, 0.12);
  transform: translateY(-1px);
}

.admin-combo-day-card::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  width: auto;
  min-width: 176px;
  max-width: min(236px, calc(100vw - 56px));
  padding: 9px 11px;
  border: 1px solid rgba(213, 226, 222, 0.92);
  border-radius: 12px;
  background: #10231e;
  box-shadow: 0 18px 36px rgba(10, 25, 21, 0.18);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: normal;
}

.admin-combo-day-card:hover::after,
.admin-combo-day-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.admin-combo-day-card b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-combo-day-card span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-combo-day-card i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7efeb;
}

.admin-combo-day-card i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-green), #8dd7b7);
}

.admin-release-day-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.admin-release-day-summary button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  color: var(--admin-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-release-day-summary button:hover {
  border-color: rgba(15, 123, 95, 0.34);
  box-shadow: 0 12px 28px rgba(15, 47, 39, 0.1);
  transform: translateY(-1px);
}

.admin-release-day-summary span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-release-day-summary b {
  overflow: hidden;
  color: #10231e;
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-release-day-summary small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-readiness-score {
  display: block !important;
}

.admin-risk-control-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(213, 226, 222, 0.88);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7fbf9);
}

.admin-risk-control-card.warn {
  border-color: rgba(245, 166, 35, 0.3);
  background: linear-gradient(135deg, #fff8eb, #ffffff 58%);
}

.admin-risk-control-card.error {
  border-color: rgba(226, 85, 86, 0.28);
  background: linear-gradient(135deg, #fff4f4, #ffffff 58%);
}

.admin-risk-control-top {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-risk-control-card .admin-risk-donut {
  width: 110px;
  height: 110px;
  justify-self: center;
}

.admin-risk-control-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-risk-control-copy > span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-risk-control-copy b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-risk-control-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-risk-control-copy button {
  justify-self: start;
  min-height: 32px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-risk-signal-grid {
  display: grid;
  gap: 7px;
}

.admin-risk-signal-grid article {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.admin-risk-signal-grid article.warn {
  border-color: rgba(245, 166, 35, 0.32);
  background: rgba(255, 248, 235, 0.84);
}

.admin-risk-signal-grid article.error {
  border-color: rgba(226, 85, 86, 0.3);
  background: rgba(255, 244, 244, 0.86);
}

.admin-risk-signal-grid div {
  display: grid;
  min-width: 0;
}

.admin-risk-signal-grid b,
.admin-risk-signal-grid em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-risk-signal-grid b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-risk-signal-grid em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.admin-risk-signal-grid strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-risk-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-risk-foot span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #eef8f3;
}

.admin-risk-foot span.warn {
  background: #fff3df;
}

.admin-risk-foot span.ok b {
  color: var(--admin-green);
}

.admin-risk-foot b {
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
}

.admin-risk-foot small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 820;
}

@media (max-width: 1180px) {
  .admin-combo-day-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .admin-combo-day-strip,
  .admin-release-day-summary,
  .admin-risk-foot {
    grid-template-columns: 1fr;
  }

  .admin-risk-control-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-risk-control-card .admin-risk-donut {
    justify-self: start;
  }
}

/* Admin visual polish pass: viewport-safe grids, readable chrome and mobile tables. */
body.admin-console-body {
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-console-body *,
.admin-console-body *::before,
.admin-console-body *::after {
  box-sizing: border-box;
}

.admin-console-body .admin-dashboard-shell,
.admin-console-body .admin-main,
.admin-console-body .admin-content,
.admin-console-body [data-admin-view-panel],
.admin-console-body .admin-dashboard-panel,
.admin-console-body .admin-dashboard-grid,
.admin-console-body .admin-insights-grid,
.admin-console-body .admin-control-strip,
.admin-console-body .admin-shell,
.admin-console-body .admin-log-panel,
.admin-console-body .admin-storage-panel,
.admin-console-body .admin-library-panel,
.admin-console-body .admin-system-panel,
.admin-console-body .admin-ops-grid,
.admin-console-body .admin-panel-head,
.admin-console-body .admin-card-head,
.admin-console-body .admin-status-list,
.admin-console-body .admin-bar-chart,
.admin-console-body .admin-combo-chart,
.admin-console-body .admin-layered-chart {
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-status-list {
  overflow: visible;
  padding-right: 0;
}

.admin-console-body .admin-status-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-status-list article > *,
.admin-console-body .admin-status-list article > div {
  min-width: 0;
}

.admin-console-body .admin-status-list b,
.admin-console-body .admin-status-list span,
.admin-console-body .admin-status-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-main,
.admin-console-body .admin-content {
  overflow-x: clip;
}

.admin-console-body .admin-topbar {
  max-width: 100%;
}

.admin-console-body .admin-title-block,
.admin-console-body .admin-title-block > * {
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-title-block span {
  display: -webkit-box;
  max-width: min(760px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-console-body .admin-admin-card > span,
.admin-console-body .admin-topbar-profile > span,
.admin-console-body .admin-brand-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-console-body .admin-admin-card b,
.admin-console-body .admin-admin-card small,
.admin-console-body .admin-topbar-profile b,
.admin-console-body .admin-topbar-profile small,
.admin-console-body .admin-brand-text b,
.admin-console-body .admin-brand-text small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-topbar-actions {
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-topbar-profile {
  grid-template-columns: 34px minmax(0, 1fr);
  max-width: 178px;
}

.admin-user-table {
  width: 100%;
  max-width: 100%;
}

.admin-user-table-head,
.admin-user-row {
  grid-template-columns: minmax(190px, 1.25fr) minmax(100px, 0.55fr) minmax(104px, 0.56fr) minmax(230px, 1fr) minmax(104px, 0.42fr);
}

.admin-user-row > span,
.admin-user-actions {
  min-width: 0;
}

.admin-user-row .admin-user-actions {
  display: flex;
  max-height: none;
  overflow: visible;
  gap: 8px;
  align-items: center;
}

.admin-user-row .admin-user-actions button {
  max-width: 100%;
}

.admin-shell[data-admin-view-panel="users"] .admin-user-tools {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px));
}

.admin-storage-head {
  align-items: flex-start;
}

.admin-storage-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, auto) minmax(0, auto);
  align-items: start;
  justify-content: end;
  gap: 8px;
  min-width: 0;
  max-width: min(100%, 780px);
}

.admin-storage-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.admin-storage-action-group button {
  min-width: 0;
  max-width: 100%;
}

.admin-storage-action-group-selected {
  padding-left: 8px;
  border-left: 1px solid rgba(213, 226, 222, 0.92);
}

.admin-output-result span,
.admin-output-result small {
  line-height: 1.4;
}

.admin-output-timeline-card {
  overflow: hidden;
}

.admin-output-timeline-card > div:first-child {
  min-width: 0;
}

#adminOutputTimeline,
#adminReleaseTimeline,
#feedbackTimeline {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-output-list-scroll {
  border: 1px solid rgba(213, 226, 222, 0.7);
  border-radius: 16px;
  background: #fbfdfc;
  padding: 8px;
}

.admin-output-item,
.admin-output-main,
.admin-output-main header,
.admin-output-main header > div,
.admin-output-flags,
.admin-output-row-actions {
  min-width: 0;
  max-width: 100%;
}

.admin-output-row-actions {
  overflow: visible;
}

.admin-library-command-clean article {
  min-width: 0;
}

.admin-library-command-clean article span,
.admin-library-command-clean article small {
  text-transform: none;
  letter-spacing: 0;
}

.audit-list,
.backup-list,
.admin-backup-list-expanded,
.admin-audit-stream-expanded {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0;
}

.admin-notification-panel {
  z-index: 1250;
}

.admin-global-search-results {
  z-index: 1240;
}

@media (max-width: 1280px) {
  .admin-console-body .admin-topbar {
    grid-template-columns: minmax(0, 1fr) minmax(500px, auto) !important;
  }

  .admin-console-body .admin-global-search {
    width: clamp(170px, 15vw, 220px);
  }

  .admin-console-body .admin-topbar-profile {
    max-width: 154px;
  }
}

@media (max-width: 1180px) {
  .admin-storage-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
  }

  .admin-storage-action-group,
  .admin-storage-action-group button {
    width: 100%;
  }

  .admin-storage-action-group-selected {
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(213, 226, 222, 0.92);
  }
}

@media (max-width: 1024px) {
  .admin-user-table {
    overflow-x: auto;
  }

  .admin-user-table-head,
  .admin-user-row {
    min-width: 760px;
  }
}

@media (max-width: 760px) {
  body.admin-console-body {
    width: 100%;
    max-width: 100vw;
  }

  .admin-console-body .admin-dashboard-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .admin-console-body .admin-sidebar {
    position: fixed;
    width: min(86vw, 290px);
    max-width: calc(100vw - 24px);
  }

  .admin-console-body .admin-main,
  .admin-console-body .admin-content {
    width: 100%;
    max-width: 100vw;
  }

  .admin-console-body .admin-topbar {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    margin: -18px -16px 10px !important;
    padding: 10px 14px !important;
  }

  .admin-console-body .admin-topbar-actions {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) 42px minmax(62px, 76px) 46px;
    gap: 6px;
    width: 100%;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .admin-console-body .admin-global-search {
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    flex: initial;
  }

  .admin-console-body .admin-topbar-profile {
    display: none !important;
  }

  .admin-console-body .admin-topbar-button,
  .admin-console-body .admin-notification-button,
  .admin-console-body .admin-global-search input {
    width: 100%;
    min-width: 0 !important;
    height: 40px;
    min-height: 40px;
  }

  .admin-console-body .admin-workspace-link.admin-topbar-button,
  .admin-console-body .admin-topbar-logout.admin-topbar-button {
    overflow: hidden;
    padding: 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-console-body .admin-workspace-link.admin-topbar-button {
    font-size: 0;
  }

  .admin-console-body .admin-workspace-link.admin-topbar-button::after {
    content: "Рабочая";
    font-size: 12px;
    font-weight: 950;
  }

  .admin-console-body .admin-notification-wrap {
    min-width: 0;
  }

  .admin-notification-panel,
  .admin-global-search-results {
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 28px));
  }

  .admin-panel-head {
    flex-wrap: wrap;
  }

  .admin-console-body .admin-status-list article {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-panel-head > div,
  .admin-panel-head > button,
  .admin-feedback-actions-top,
  .admin-system-actions {
    min-width: 0;
    max-width: 100%;
  }

  .admin-shell[data-admin-view-panel="users"] .admin-user-tools,
  .admin-user-tools,
  .admin-storage-tools,
  .admin-audit-tools {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .admin-user-tools input,
  .admin-user-tools select,
  .admin-storage-tools input,
  .admin-storage-tools select,
  .admin-audit-tools input,
  .admin-audit-tools select {
    width: 100%;
    min-width: 0;
  }

  .admin-user-table {
    display: grid;
    gap: 10px;
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .admin-user-table-head {
    display: none;
  }

  .admin-user-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
    min-width: 0 !important;
    padding: 12px;
    border: 1px solid rgba(213, 226, 222, 0.9);
    border-radius: 15px;
    background: #fff;
  }

  .admin-user-row .admin-user-actions {
    width: 100%;
  }

  .admin-user-row .admin-user-actions button,
  .admin-storage-action-group button,
  .admin-output-row-actions button {
    width: 100%;
  }

  .admin-output-timeline-card {
    padding: 12px;
  }

  .admin-output-list-scroll {
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .admin-output-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .admin-output-main header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-output-status {
    justify-self: start;
  }

  .admin-library-command-clean,
  .admin-backup-command-wide,
  .admin-backup-list-expanded,
  .admin-audit-command-thin {
    grid-template-columns: 1fr !important;
  }
}

/* Admin overview final cascade: product KPI cards */
.admin-console-body #adminMetrics.admin-metrics,
.admin-console-body .admin-history-cards {
  align-items: stretch;
  gap: 12px;
}

.admin-console-body #adminMetrics .admin-metric-card,
.admin-console-body #adminHistoryCards .admin-history-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 37, 32, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.admin-console-body #adminMetrics .admin-metric-card {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  min-height: 118px;
  padding: 13px 13px 12px;
}

.admin-console-body #adminMetrics .admin-metric-card::after,
.admin-console-body #adminHistoryCards .admin-history-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 8px 0 0 8px;
  background: var(--admin-green);
  opacity: 0.55;
}

.admin-console-body #adminMetrics .admin-metric-card.warn::after,
.admin-console-body #adminHistoryCards .admin-history-card.warn::after {
  background: var(--admin-warn);
}

.admin-console-body #adminMetrics .admin-metric-card.error::after,
.admin-console-body #adminHistoryCards .admin-history-card.error::after {
  background: var(--admin-danger);
}

/* Admin confirmation dialogs */
.admin-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.admin-confirm-dialog[hidden] {
  display: none;
}

.admin-confirm-dialog.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 35, 0.34);
  backdrop-filter: blur(4px);
}

.admin-confirm-card {
  position: relative;
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(17, 35, 42, 0.22);
  padding: 18px;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.admin-confirm-dialog.active .admin-confirm-card {
  transform: translateY(0) scale(1);
}

.admin-confirm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--admin-muted, #667788);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.admin-confirm-close:hover,
.admin-confirm-close:focus-visible {
  border-color: var(--admin-line, rgba(38, 83, 70, 0.14));
  background: var(--admin-soft, #eff8f3);
  color: var(--admin-text, #16233a);
}

.admin-confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: var(--admin-soft, #eff8f3);
  color: var(--admin-green, #0f7b5f);
}

.admin-confirm-dialog.warn .admin-confirm-icon {
  border-color: rgba(217, 134, 33, 0.28);
  background: #fff8ec;
  color: var(--admin-warn, #d98621);
}

.admin-confirm-dialog.danger .admin-confirm-icon {
  border-color: rgba(207, 63, 63, 0.28);
  background: #fff1ef;
  color: var(--admin-red, #cf3f3f);
}

.admin-confirm-icon svg {
  width: 22px;
  height: 22px;
}

.admin-confirm-copy {
  min-width: 0;
  padding-right: 34px;
}

.admin-confirm-copy h2 {
  margin: 2px 0 0;
  color: var(--admin-text, #16233a);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-confirm-copy p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--admin-muted, #667788);
  font-size: 14px;
  line-height: 1.48;
}

.admin-confirm-details {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.admin-confirm-details[hidden] {
  display: none;
}

.admin-confirm-details li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--admin-text, #16233a);
  font-size: 13px;
  line-height: 1.42;
}

.admin-confirm-details li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--admin-green, #0f7b5f);
}

.admin-confirm-dialog.warn .admin-confirm-details li::before {
  background: var(--admin-warn, #d98621);
}

.admin-confirm-dialog.danger .admin-confirm-details li::before {
  background: var(--admin-red, #cf3f3f);
}

.admin-confirm-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: #fbfdfc;
  padding: 11px 12px;
  color: var(--admin-text, #16233a);
  font-size: 13px;
  line-height: 1.42;
  cursor: pointer;
}

.admin-confirm-check[hidden] {
  display: none;
}

.admin-confirm-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--admin-green, #0f7b5f);
}

.admin-confirm-dialog.danger .admin-confirm-check input {
  accent-color: var(--admin-red, #cf3f3f);
}

.admin-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.admin-confirm-actions button {
  min-height: 40px;
}

.admin-confirm-primary {
  border: 1px solid var(--admin-green, #0f7b5f);
  border-radius: 8px;
  background: var(--admin-green, #0f7b5f);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
}

.admin-confirm-dialog.warn .admin-confirm-primary {
  border-color: var(--admin-warn, #d98621);
  background: var(--admin-warn, #d98621);
}

.admin-confirm-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body.admin-confirm-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .admin-confirm-dialog {
    align-items: end;
    padding: 12px;
  }

  .admin-confirm-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .admin-confirm-icon {
    width: 40px;
    height: 40px;
  }

  .admin-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Admin library inventory */
.admin-library-browser {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-library-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-library-browser-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-library-browser-head b {
  color: var(--admin-text, #16233a);
  font-size: 16px;
}

.admin-library-browser-head span {
  color: var(--admin-muted, #667788);
  font-size: 13px;
  line-height: 1.4;
}

.admin-library-filters {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(220px, 1.2fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.admin-library-filters label {
  display: grid;
  gap: 5px;
  color: var(--admin-muted, #667788);
  font-size: 12px;
  font-weight: 800;
}

.admin-library-filters input,
.admin-library-filters select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text, #16233a);
  padding: 0 11px;
  font: inherit;
}

.admin-library-kind-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: var(--admin-soft-2, #f5fbf8);
}

.admin-library-kind-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-muted, #667788);
  font-weight: 800;
  cursor: pointer;
}

.admin-library-kind-tabs button.active {
  background: #fff;
  color: var(--admin-green, #0f7b5f);
  box-shadow: 0 8px 18px rgba(25, 50, 45, 0.08);
}

.admin-library-browser-head button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green, #0f7b5f);
  font-weight: 800;
  padding: 0 10px;
  text-decoration: none;
  cursor: pointer;
}

.admin-library-table-frame {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--admin-line, rgba(38, 83, 70, 0.14));
  border-radius: 8px;
}

.admin-library-table-frame table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-library-table-frame th,
.admin-library-table-frame td {
  max-width: 220px;
  border-bottom: 1px solid rgba(38, 83, 70, 0.1);
  border-right: 1px solid rgba(38, 83, 70, 0.08);
  padding: 8px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.admin-library-table-frame th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--admin-soft, #eff8f3);
  color: var(--admin-text, #16233a);
}

@media (max-width: 920px) {
  .admin-library-filters {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .admin-library-browser-head {
    align-items: stretch;
    flex-direction: column;
  }

}

.admin-library-product-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 14px;
}

.admin-library-product-cards article {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "hint value";
  align-items: center;
  gap: 3px 12px;
  border-radius: 8px;
  background: #fff;
  padding: 11px 13px;
  box-shadow: 0 8px 18px rgba(22, 35, 58, 0.05);
}

.admin-library-product-cards article::after {
  display: none;
}

.admin-library-product-cards article.ok {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
}

.admin-library-product-cards article.warn {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
}

.admin-library-product-cards span {
  grid-area: label;
  color: var(--admin-muted, #667788);
  font-size: 12px;
  text-transform: none;
}

.admin-library-product-cards b {
  grid-area: value;
  justify-self: end;
  color: var(--admin-text, #16233a);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-library-product-cards small {
  grid-area: hint;
  max-width: 32ch;
  font-size: 12px;
  line-height: 1.25;
}

.admin-library-browser {
  padding: 16px;
  border: 1px solid rgba(196, 215, 209, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: 0 16px 36px rgba(22, 35, 58, 0.06);
}

#adminLibraryGrid.admin-library-grid {
  grid-template-columns: 1fr !important;
  align-items: start;
}

#adminLibraryGrid.admin-library-grid > .admin-library-product-cards,
#adminLibraryGrid.admin-library-grid > .admin-library-browser {
  min-width: 0;
}

.admin-library-browser-head {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-library-browser-head b {
  font-size: 17px;
}

.admin-library-browser-head span,
.admin-library-browser span,
.admin-library-browser small,
.admin-library-browser label,
.admin-library-browser input,
.admin-library-browser select,
.admin-library-browser button,
.admin-library-browser a {
  text-transform: none;
  letter-spacing: 0;
}

.admin-library-browser-head button,
{
  border-radius: 8px;
}

.admin-library-filters {
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 8px;
  background: #f6faf8;
}

.admin-library-filters label {
  text-transform: none;
}

.admin-library-list-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(213, 226, 222, 0.82);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-library-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(213, 226, 222, 0.82);
  background: #f8fcfa;
}

.admin-library-list-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-library-list-head b {
  color: var(--admin-text, #16233a);
  font-size: 13px;
}

.admin-library-list-head span,
.admin-library-list-head small {
  min-width: 0;
  color: var(--admin-muted, #667788);
  font-size: 12px;
  line-height: 1.3;
}

.admin-library-list-loading {
  display: grid;
  gap: 10px;
}

.admin-library-browser button:disabled,
.admin-library-browser select:disabled,
.admin-library-browser input:disabled {
  opacity: 0.58;
  cursor: progress;
}

.admin-library-gentle-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #f8fcfa;
  text-align: center;
}

.admin-library-gentle-empty b {
  color: var(--admin-text, #16233a);
  font-size: 16px;
}

.admin-library-gentle-empty span {
  max-width: 46ch;
  color: var(--admin-muted, #667788);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .admin-library-product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .admin-library-product-cards {
    grid-template-columns: 1fr !important;
  }

  .admin-library-browser {
    padding: 12px;
  }
}

.admin-console-body #adminMetrics .admin-metric-card:hover,
.admin-console-body #adminMetrics .admin-metric-card:focus-visible,
.admin-console-body #adminHistoryCards .admin-history-card:hover,
.admin-console-body #adminHistoryCards .admin-history-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 123, 95, 0.26);
  box-shadow: 0 16px 34px rgba(19, 37, 32, 0.1);
}

.admin-console-body #adminMetrics .admin-kpi-icon,
.admin-console-body #adminHistoryCards .admin-history-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 123, 95, 0.14);
  border-radius: 8px;
  background: #f2fbf6;
  color: var(--admin-green);
}

.admin-console-body #adminMetrics .warn .admin-kpi-icon,
.admin-console-body #adminHistoryCards .warn .admin-history-icon {
  border-color: rgba(217, 134, 33, 0.18);
  background: #fff7ed;
  color: var(--admin-warn);
}

.admin-console-body #adminMetrics .admin-kpi-content,
.admin-console-body #adminHistoryCards .admin-history-copy {
  min-width: 0;
  gap: 5px;
}

.admin-console-body #adminMetrics .admin-kpi-label,
.admin-console-body #adminHistoryCards .admin-history-copy small {
  color: #5e716c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.admin-console-body #adminMetrics .admin-metric-card b,
.admin-console-body #adminHistoryCards .admin-history-copy b {
  color: var(--admin-text);
  font-size: 24px;
  font-weight: 950;
  font-feature-settings: "tnum" 1, "lnum" 1;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-console-body #adminMetrics .admin-metric-card small,
.admin-console-body #adminHistoryCards .admin-history-copy em {
  color: #6b7b77;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.admin-console-body #adminMetrics .admin-mini-chart {
  right: 12px;
  bottom: 9px;
  left: 54px;
  height: 38px;
  opacity: 0.22;
}

.admin-console-body #adminMetrics .admin-metric-card.has-chart::before {
  right: 10px;
  bottom: 9px;
  height: 42px;
  width: min(68%, 148px);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0), rgba(15, 123, 95, 0.07));
}

.admin-console-body #adminMetrics .admin-kpi-progress {
  height: 5px;
  margin-top: 2px;
  background: linear-gradient(90deg, var(--admin-green) var(--bar, 0%), #e8f0ed var(--bar, 0%));
}

.admin-console-body .admin-history-panel {
  border: 1px solid rgba(207, 223, 218, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 37, 32, 0.06);
}

.admin-console-body .admin-history-panel h3,
.admin-console-body .admin-history-panel p {
  letter-spacing: 0;
  text-transform: none;
}

.admin-console-body #adminHistoryCards .admin-history-card {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 104px;
  padding: 13px 13px 12px;
}

.admin-console-body #adminHistoryCards .admin-history-card.has-chart .admin-history-copy,
.admin-console-body #adminHistoryCards .admin-history-card.has-chart .admin-history-icon {
  position: relative;
  z-index: 1;
}

.admin-console-body #adminHistoryCards .admin-history-card .admin-mini-chart {
  right: 12px;
  bottom: 9px;
  width: 72px;
  height: 28px;
  opacity: 0.28;
  pointer-events: none;
}

@media (max-width: 640px) {
  .admin-console-body #adminMetrics .admin-metric-card,
  .admin-console-body #adminHistoryCards .admin-history-card {
    min-height: 98px;
  }

  .admin-console-body #adminMetrics .admin-metric-card b,
  .admin-console-body #adminHistoryCards .admin-history-copy b {
    font-size: 22px;
  }

  .admin-console-body #adminMetrics .admin-mini-chart {
    height: 32px;
  }
}

/* Admin library reader polish */
/* Admin library final (v3): id-contract browser, preview and guarded file list. */
.admin-console-body .admin-library-explorer-v3 {
  gap: 12px;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 12px;
  background: #f7fbf9;
  padding: 12px;
}

.admin-console-body .admin-library-explorer-head-v3 {
  border-radius: 10px;
  box-shadow: none;
}

.admin-console-body .admin-library-filters-v3 {
  border-radius: 10px;
  background: #eef7f3;
}

.admin-console-body .admin-library-workspace-v3 {
  display: grid;
  grid-template-columns: minmax(330px, 0.74fr) minmax(0, 1.26fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.admin-console-body .admin-library-list-v3,
.admin-console-body .admin-library-reader-v3 {
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 37, 32, 0.05);
}

.admin-console-body .admin-library-list-v3 {
  overflow: hidden;
}

.admin-console-body .admin-library-list-v3 > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(207, 223, 218, 0.86);
  background: linear-gradient(180deg, #fff, #f8fcfa);
}

.admin-console-body .admin-library-list-v3 .eyebrow,
.admin-console-body .admin-library-preview-card-v3 .eyebrow {
  margin: 0;
  color: var(--admin-green, #0f7b5f);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.admin-console-body .admin-library-list-v3 h3,
.admin-console-body .admin-library-preview-card-v3 h3 {
  margin: 2px 0 0;
  color: var(--admin-text, #16233a);
  font-size: 16px;
  line-height: 1.2;
}

.admin-console-body .admin-library-list-v3 header span,
.admin-console-body .admin-library-preview-card-v3 header span {
  display: block;
  margin-top: 4px;
  color: #65756f;
  font-size: 12px;
  line-height: 1.35;
}

.admin-console-body .admin-library-list-scroll {
  max-height: min(650px, calc(100vh - 352px));
  min-height: 420px;
  overflow: auto;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-console-body .admin-library-list-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(207, 223, 218, 0.86);
  background: #f8fcfa;
  padding: 10px 12px;
}

.admin-console-body .admin-library-list-more span {
  color: #65756f;
  font-size: 12px;
  font-weight: 750;
}

.admin-console-body .admin-library-list-more button {
  min-height: 32px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green, #0f7b5f);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.admin-console-body .admin-library-row-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-console-body .admin-library-row-card:hover {
  border-color: rgba(15, 123, 95, 0.28);
  box-shadow: 0 12px 24px rgba(19, 37, 32, 0.07);
  transform: translateY(-1px);
}

.admin-console-body .admin-library-row-card.active {
  border-color: rgba(15, 123, 95, 0.5);
  background: #f8fcfa;
  box-shadow: inset 4px 0 0 rgba(15, 123, 95, 0.55), 0 10px 22px rgba(19, 37, 32, 0.07);
}

.admin-console-body .admin-library-row-card.loading {
  opacity: 0.72;
  cursor: progress;
}

.admin-console-body .admin-library-row-icon,
.admin-console-body .admin-library-file-card-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 123, 95, 0.18);
  border-radius: 10px;
  background: #eff8f3;
  color: var(--admin-green, #0f7b5f);
}

.admin-console-body .admin-library-row-icon {
  width: 38px;
  height: 38px;
}

.admin-console-body .admin-library-row-icon.template,
.admin-console-body .admin-library-file-card-icon.template {
  border-color: rgba(47, 117, 189, 0.2);
  background: #eef6ff;
  color: var(--admin-blue, #2f75bd);
}

.admin-console-body .admin-library-row-icon svg,
.admin-console-body .admin-library-file-card-icon svg {
  width: 20px;
  height: 20px;
}

.admin-console-body .admin-library-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-console-body .admin-library-row-top {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.admin-console-body .admin-library-row-top strong {
  min-width: 0;
  color: var(--admin-text, #16233a);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-console-body .admin-library-row-top em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf7f2;
  color: var(--admin-green, #0f7b5f);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
}

.admin-console-body .admin-library-row-path {
  min-width: 0;
  color: #4f645d;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-library-row-copy small {
  color: #6d7d77;
  font-size: 11px;
  line-height: 1.25;
}

.admin-console-body .admin-library-row-copy .admin-library-row-warning {
  color: var(--admin-warn, #d98621);
}

.admin-console-body .admin-library-row-actions {
  display: grid;
  gap: 6px;
  min-width: 86px;
}

.admin-console-body .admin-library-row-actions button,
.admin-console-body .admin-library-row-actions a,
.admin-console-body .admin-library-file-card-v3 > a,
.admin-console-body .admin-library-reader-v3.empty-state button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green, #0f7b5f);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  text-decoration: none;
}

.admin-console-body .admin-library-reader-v3 {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.admin-console-body .admin-library-pathbar-v3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 10px;
  background: #f8fcfa;
  padding: 9px 10px;
}

.admin-console-body .admin-library-pathbar-v3 > span {
  color: #65756f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-console-body .admin-library-pathbar-v3 > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.admin-console-body .admin-library-pathbar-v3 b {
  min-width: 0;
  max-width: 170px;
  color: #64756f;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-library-pathbar-v3 b:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: #9caaa5;
  font-weight: 600;
}

.admin-console-body .admin-library-pathbar-v3 b.current {
  flex: 1 1 auto;
  max-width: none;
  color: var(--admin-text, #16233a);
  font-weight: 950;
}

.admin-console-body .admin-library-file-card-v3 {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fcfa);
  padding: 12px;
}

.admin-console-body .admin-library-file-card-icon {
  width: 48px;
  height: 48px;
}

.admin-console-body .admin-library-file-card-v3 p {
  margin: 0;
  color: var(--admin-green, #0f7b5f);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.admin-console-body .admin-library-file-card-v3 h3 {
  margin: 2px 0 0;
  color: var(--admin-text, #16233a);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-console-body .admin-library-file-card-v3 small {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #65756f;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-library-file-meta-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-console-body .admin-library-file-meta-v3 span {
  border: 1px solid rgba(207, 223, 218, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #60716b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  padding: 5px 8px;
}

.admin-console-body .admin-library-metrics-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-console-body .admin-library-metrics-v3 span {
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 10px;
  background: #f4faf7;
  padding: 10px;
}

.admin-console-body .admin-library-metrics-v3 b {
  display: block;
  color: var(--admin-text, #16233a);
  font-size: 22px;
  line-height: 1;
}

.admin-console-body .admin-library-metrics-v3 small {
  color: #667771;
  font-size: 12px;
}

.admin-console-body .admin-library-preview-card-v3 {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.admin-console-body .admin-library-preview-card-v3 > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-console-body .admin-library-table-head-v3 label {
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: #667771;
  font-size: 12px;
  font-weight: 850;
}

.admin-console-body .admin-library-table-head-v3 select {
  height: 38px;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.95);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text, #16233a);
  padding: 0 10px;
}

.admin-console-body .admin-library-docx-preview-v3 {
  max-height: none;
  background: #edf2f0;
  padding: 16px;
}

.admin-console-body .admin-library-docx-preview-v3 .docx-page-preview {
  width: min(760px, 100%);
  min-height: 620px;
  padding: 46px 52px;
}

.admin-console-body .admin-library-table-frame-v3 {
  max-height: min(520px, calc(100vh - 360px));
}

.admin-console-body .admin-library-empty-v3,
.admin-console-body .admin-library-loading-v3 {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(15, 123, 95, 0.24);
  border-radius: 12px;
  background: #f8fcfa;
  padding: 22px;
  text-align: center;
}

.admin-console-body .admin-library-empty-v3 b,
.admin-console-body .admin-library-reader-v3.empty-state b {
  color: var(--admin-text, #16233a);
  font-size: 16px;
}

.admin-console-body .admin-library-empty-v3 span,
.admin-console-body .admin-library-reader-v3.empty-state span {
  color: #667771;
  font-size: 13px;
  line-height: 1.45;
}

.admin-console-body .admin-library-reader-v3.empty-state {
  place-items: center;
  align-content: center;
  min-height: 420px;
  text-align: center;
}

@media (max-width: 1120px) {
  .admin-console-body .admin-library-workspace-v3 {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 920px) {
  .admin-console-body .admin-library-workspace-v3,
  .admin-console-body .admin-library-file-card-v3,
  .admin-console-body .admin-library-metrics-v3,
  .admin-console-body .admin-library-pathbar-v3 {
    grid-template-columns: 1fr;
  }

  .admin-console-body .admin-library-reader-v3 {
    position: static;
    max-height: none;
  }

  .admin-console-body .admin-library-list-scroll {
    max-height: none;
  }

  .admin-console-body .admin-library-file-card-v3 > a {
    justify-self: start;
  }

  .admin-console-body .admin-library-preview-card-v3 > header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-console-body .admin-library-table-head-v3 label {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .admin-console-body .admin-library-row-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-console-body .admin-library-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-body .admin-library-pathbar-v3 > div {
    flex-wrap: wrap;
  }

  .admin-console-body .admin-library-pathbar-v3 b {
    max-width: 100%;
  }

  .admin-console-body .admin-library-docx-preview-v3 {
    padding: 10px;
  }

  .admin-console-body .admin-library-docx-preview-v3 .docx-page-preview {
    min-height: 480px;
    padding: 28px 24px;
  }
}

/* Admin library final edge polish */
.admin-console-body .admin-library-row-card {
  position: relative;
  overflow: hidden;
}

.admin-console-body .admin-library-row-card.active {
  border-color: rgba(15, 123, 95, 0.44);
  box-shadow: 0 10px 22px rgba(19, 37, 32, 0.07);
}

.admin-console-body .admin-library-row-card.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  border-radius: 999px;
  background: rgba(15, 123, 95, 0.7);
  pointer-events: none;
}

.admin-console-body .admin-library-row-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: auto;
  bottom: 9px;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 123, 95, 0.28);
  opacity: 1;
  pointer-events: none;
}

.admin-console-body .admin-library-row-card.active::after {
  background: rgba(15, 123, 95, 0.48);
}

.admin-console-body .admin-library-row-card.active .admin-library-row-icon {
  margin-left: 4px;
}

.admin-console-body .admin-library-docx-preview-v3 {
  overflow: auto;
}

.admin-console-body .admin-library-docx-preview-v3 .docx-page-preview {
  border: 1px solid rgba(26, 41, 55, 0.12);
  overflow: hidden;
}

.admin-console-body .admin-library-docx-preview-v3 .docx-preview-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.admin-console-body .admin-library-docx-preview-v3 .docx-preview-table td {
  max-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-console-body .admin-library-docx-preview-v3 .docx-preview-table .docx-preview-paragraph,
.admin-console-body .admin-library-docx-preview-v3 .docx-preview-paragraph {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Admin storage v2 shared base: retained because the final v3 renderer still uses v2 workspace/list/reader classes. */
.admin-console-body .admin-storage-panel {
  overflow: hidden;
}

.admin-console-body .admin-storage-panel *,
.admin-console-body .admin-storage-panel *::before,
.admin-console-body .admin-storage-panel *::after {
  min-width: 0;
}

.admin-console-body .admin-storage-panel .admin-storage-summary {
  display: block;
  margin-top: 14px;
}

.admin-output-overview-v2 {
  display: grid;
  gap: 12px;
}

.admin-output-metrics-v2 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-output-metrics-v2 article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 37, 32, 0.05);
}

.admin-output-metrics-v2 article.warn {
  border-color: rgba(245, 166, 35, 0.36);
  background: #fffaf1;
}

.admin-output-metrics-v2 article.ok {
  border-color: rgba(15, 123, 95, 0.24);
}

.admin-output-metrics-v2 article.danger {
  border-color: rgba(188, 59, 47, 0.28);
}

.admin-output-metrics-v2 span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.admin-output-metrics-v2 b {
  color: var(--admin-text);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.admin-output-metrics-v2 small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
}

.admin-output-chart-v2 {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.admin-output-chart-v2 > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-output-chart-v2 b {
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 950;
}

.admin-output-chart-v2 span {
  max-width: 620px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-output-chart-v2 .admin-combo-chart {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.admin-output-chart-v2 .admin-combo-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 210px;
}

.admin-output-chart-v2 .admin-combo-day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.admin-output-chart-v2 .admin-combo-day-card {
  display: grid;
  gap: 5px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  text-align: left;
  cursor: pointer;
}

.admin-output-chart-v2 .admin-combo-day-card b {
  font-size: 11px;
}

.admin-output-chart-v2 .admin-combo-day-card span {
  font-size: 11px;
  white-space: nowrap;
}

.admin-output-chart-v2 .admin-combo-day-card i {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(207, 223, 218, 0.82);
}

.admin-output-chart-v2 .admin-combo-day-card em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(15, 123, 95, 0.5);
}

.admin-console-body .admin-storage-tools {
  grid-template-columns: minmax(220px, 290px) minmax(160px, 210px) minmax(230px, 1fr) minmax(250px, auto);
  align-items: end;
  gap: 10px;
}

.admin-console-body #outputMaintenanceSelection {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.admin-console-body .admin-storage-action-group-selected .danger-button {
  box-shadow: none;
}

.admin-console-body .admin-storage-action-group-selected button:disabled,
.admin-console-body .admin-output-row-actions-v2 button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-output-workspace-v2 {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(360px, 1.12fr);
  gap: 12px;
  align-items: start;
}

.admin-output-list-panel-v2,
.admin-output-reader-v2 {
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 37, 32, 0.05);
}

.admin-output-list-panel-v2 {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-output-list-head-v2 {
  display: grid;
  gap: 10px;
}

.admin-output-list-head-v2 > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.admin-output-list-head-v2 b {
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
}

.admin-output-list-head-v2 span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-output-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.admin-output-chip-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--admin-text);
  cursor: pointer;
}

.admin-output-chip-row button.active {
  border-color: rgba(15, 123, 95, 0.4);
  background: #eaf6f1;
  color: #0f6b52;
}

.admin-output-chip-row button span,
.admin-output-chip-row button b {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.admin-output-cards-v2 {
  display: grid;
  gap: 9px;
  max-height: min(720px, calc(100vh - 380px));
  min-height: 360px;
  overflow: auto;
  padding: 2px 4px 2px 0;
  scrollbar-gutter: stable;
}

.admin-output-card-v2 {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.92);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-output-card-v2:hover,
.admin-output-card-v2.active {
  border-color: rgba(15, 123, 95, 0.42);
  box-shadow: 0 12px 24px rgba(15, 79, 64, 0.08);
}

.admin-output-card-v2.selected {
  background: #f8fcfa;
}

.admin-output-card-v2.warn {
  border-color: rgba(245, 166, 35, 0.32);
  background: #fffaf1;
}

.admin-output-card-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.admin-output-card-check input {
  position: absolute;
  opacity: 0;
}

.admin-output-card-check span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(15, 123, 95, 0.34);
  border-radius: 6px;
  background: #fff;
}

.admin-output-card-check input:checked + span {
  background: #0f7b5f;
  box-shadow: inset 0 0 0 5px #fff;
}

.admin-output-card-check input:disabled + span {
  opacity: 0.42;
}

.admin-output-card-body {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-output-card-body b,
.admin-output-reader-path b,
.admin-output-reader-head h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-card-body b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-output-card-kicker,
.admin-output-card-body em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.2;
}

.admin-output-card-body small {
  display: block;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-card-side {
  grid-column: 2;
  display: grid;
  gap: 7px;
}

.admin-output-flags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-output-flags-v2 span {
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 999px;
  background: #f8fbfa;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.admin-output-flags-v2 span.locked {
  border-color: rgba(188, 59, 47, 0.22);
  background: #fff4f1;
  color: #9a3329;
}

.admin-output-card-side p {
  margin: 0;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-row-actions-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-output-row-actions-v2 button,
.admin-output-reader-actions button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #0f6b52;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-output-reader-v2 {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
  max-height: min(760px, calc(100vh - 200px));
  overflow: auto;
  padding: 14px;
}

.admin-output-reader-empty {
  align-content: center;
  min-height: 360px;
  color: var(--admin-muted);
  text-align: center;
}

.admin-output-reader-empty b {
  color: var(--admin-text);
  font-size: 20px;
}

.admin-output-reader-empty p {
  max-width: 430px;
  margin: 0 auto;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.admin-output-reader-path {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-output-reader-path span,
.admin-output-reader-head span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-output-reader-path b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-output-reader-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.admin-output-reader-head h3 {
  margin: 3px 0;
  color: var(--admin-text);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.admin-output-reader-head small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 780;
}

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

.admin-output-reader-grid span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-output-reader-grid b {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-output-reader-grid em {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-style: normal;
  font-weight: 930;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-reader-risks {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #f8fcfa;
}

.admin-output-reader-risks.warn {
  border-color: rgba(245, 166, 35, 0.34);
  background: #fffaf1;
}

.admin-output-reader-risks b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-output-reader-risks p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.admin-output-reader-risks div,
.admin-output-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-output-reader-risks span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
}

.admin-console-body .admin-output-result:not(:empty) {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 8px;
}

.admin-console-body .admin-output-result b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .admin-output-metrics-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-output-workspace-v2 {
    grid-template-columns: 1fr;
  }

  .admin-output-reader-v2 {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .admin-output-metrics-v2,
  .admin-output-reader-grid,
  .admin-output-chart-v2 .admin-combo-day-strip {
    grid-template-columns: 1fr;
  }

  .admin-output-chart-v2 > div:first-child,
  .admin-output-list-head-v2 > div:first-child {
    display: grid;
  }

  .admin-output-chart-v2 .admin-combo-svg {
    max-height: 180px;
  }

  .admin-output-cards-v2 {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }

  .admin-output-card-v2 {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .admin-output-row-actions-v2 button,
  .admin-output-reader-actions button {
    width: 100%;
  }

  .admin-console-body #outputMaintenanceSelection {
    width: 100%;
  }
}

/* Admin storage final (v3): read-first release list, dry-run action bar and side reader. */
.admin-console-body .admin-storage-head {
  align-items: flex-start;
  gap: 16px;
}

.admin-console-body .admin-storage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
  max-width: min(100%, 820px);
}

.admin-console-body .admin-storage-action-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border: 1px solid rgba(207, 223, 218, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-console-body .admin-storage-action-group-selected {
  border-left: 1px solid rgba(207, 223, 218, 0.78);
}

.admin-storage-action-label {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.admin-console-body .admin-storage-action-group button {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.admin-console-body .admin-storage-action-group .danger-button {
  border-color: rgba(188, 59, 47, 0.28);
}

.admin-output-overview-clean-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 12px;
  align-items: stretch;
}

.admin-output-chart-clean-v3 {
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.admin-output-chart-head-v3 {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-output-chart-head-v3 > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-output-chart-head-v3 b {
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
}

.admin-output-chart-head-v3 span {
  max-width: 480px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
  text-transform: none;
}

.admin-output-chart-head-v3 .admin-output-metrics-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-self: stretch;
  padding: 8px 10px;
  border: 1px solid rgba(207, 223, 218, 0.78);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-output-metrics-v2 > span {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 2px 12px;
  border-right: 1px solid rgba(207, 223, 218, 0.78);
}

.admin-output-metrics-v2 > span:last-child {
  border-right: 0;
}

.admin-output-metrics-v2 > span b {
  color: var(--admin-text);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.admin-output-metrics-v2 > span small {
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 920;
  line-height: 1.1;
  text-transform: none;
}

.admin-output-metrics-v2 > span em {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.admin-output-metrics-v2 > span.warn b,
.admin-output-metrics-v2 > span.danger b {
  color: #9a3329;
}

.admin-output-action-guide-v3 {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.86);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.admin-output-action-guide-v3 span {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 920;
  text-transform: none;
}

.admin-output-action-guide-v3 b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.3;
}

.admin-output-action-guide-v3 small {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  text-transform: none;
}

.admin-output-chart-clean-v3 .admin-combo-svg {
  max-height: 190px;
}

.admin-output-chart-clean-v3 .admin-combo-day-strip {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.admin-output-chart-clean-v3 .admin-combo-day-card {
  flex: 1 1 0;
  min-height: 30px;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.admin-output-chart-clean-v3 .admin-combo-day-card.active {
  background: #f1f7f4;
}

.admin-output-chart-clean-v3 .admin-combo-day-card span {
  display: none;
}

.admin-output-chart-clean-v3 .admin-combo-day-card i {
  height: 2px;
}

.admin-output-workspace-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
}

.admin-output-list-panel-v2 {
  position: sticky;
  top: 12px;
  padding: 10px;
  box-shadow: none;
}

.admin-output-list-head-v2 {
  gap: 8px;
}

.admin-output-list-head-v2 b {
  font-size: 15px;
}

.admin-output-chip-row {
  gap: 5px;
}

.admin-output-chip-row button {
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 7px;
}

.admin-output-chip-row button span,
.admin-output-chip-row button b {
  font-size: 11px;
}

.admin-output-cards-v2 {
  gap: 7px;
  max-height: min(690px, calc(100vh - 320px));
  min-height: 330px;
}

.admin-output-card-compact-v3 {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  box-shadow: none;
}

.admin-output-card-compact-v3 .admin-output-card-check {
  width: 22px;
  height: 22px;
}

.admin-output-card-compact-v3 .admin-output-card-check span {
  width: 18px;
  height: 18px;
}

.admin-output-card-compact-v3 .admin-output-card-body {
  position: relative;
  gap: 3px;
  padding-right: 76px;
}

.admin-output-card-compact-v3 .admin-output-card-body b {
  font-size: 13px;
}

.admin-output-card-compact-v3 .admin-output-card-body small {
  font-size: 11px;
}

.admin-output-card-compact-v3 .admin-output-card-body em,
.admin-output-card-compact-v3 .admin-output-card-kicker {
  font-size: 10px;
}

.admin-output-card-compact-v3 .admin-output-status {
  position: absolute;
  top: 1px;
  right: 0;
  max-width: 70px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-output-reader-main-v3 {
  position: static;
  max-height: none;
  overflow: visible;
  box-shadow: none;
}

.admin-output-reader-main-v3 .admin-output-reader-path,
.admin-output-reader-main-v3 .admin-output-reader-risks,
.admin-output-fact-strip-v3 {
  border-radius: 8px;
}

.admin-output-fact-strip-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 10px 12px;
  border: 1px solid rgba(207, 223, 218, 0.78);
  background: #f8fbfa;
}

.admin-output-fact-strip-v3 span {
  min-height: 0;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(207, 223, 218, 0.78);
  border-radius: 0;
  background: transparent;
}

.admin-output-fact-strip-v3 span:first-child {
  padding-left: 0;
}

.admin-output-fact-strip-v3 span:last-child {
  border-right: 0;
}

.admin-output-reader-main-v3 .admin-output-reader-actions button:first-child {
  border-color: rgba(15, 123, 95, 0.36);
  background: #eaf6f1;
}

@media (max-width: 1180px) {
  .admin-output-overview-clean-v3,
  .admin-output-chart-head-v3,
  .admin-output-workspace-v2 {
    grid-template-columns: 1fr;
  }

  .admin-output-list-panel-v2 {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-console-body .admin-storage-actions,
  .admin-console-body .admin-storage-action-group {
    width: 100%;
  }

  .admin-output-chart-head-v3 .admin-output-metrics-v2,
  .admin-output-fact-strip-v3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-output-metrics-v2 > span,
  .admin-output-fact-strip-v3 span {
    padding: 6px 8px;
    border-right: 0;
  }

  .admin-output-card-compact-v3 .admin-output-card-body {
    padding-right: 0;
  }

  .admin-output-card-compact-v3 .admin-output-status {
    position: static;
    justify-self: start;
    max-width: 100%;
  }
}

/* Feedback helpdesk console */
.admin-feedback-panel {
  --feedback-queue-width: minmax(330px, 0.78fr);
}

.admin-feedback-panel .admin-feedback-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-feedback-panel .admin-feedback-summary-grid article {
  min-height: 74px;
  padding: 10px 11px;
}

.admin-feedback-panel .admin-feedback-summary-grid b {
  font-size: 20px;
}

.admin-feedback-panel .admin-feedback-visuals {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 10px;
}

.admin-feedback-panel .admin-feedback-visuals > section {
  padding: 10px;
}

.admin-feedback-panel .admin-combo-chart {
  min-height: 0;
}

.admin-feedback-panel .admin-combo-svg {
  max-height: 150px;
}

.admin-feedback-board {
  grid-template-columns: var(--feedback-queue-width) minmax(0, 1.22fr);
  gap: 12px;
  align-items: start;
}

.admin-feedback-list {
  max-height: min(720px, calc(100vh - 315px));
  min-height: 420px;
  padding: 4px 6px 4px 0;
  scrollbar-gutter: stable;
}

.admin-feedback-ticket {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(205, 222, 216, 0.9);
  border-left: 3px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-feedback-ticket:hover,
.admin-feedback-ticket.selected {
  border-color: rgba(15, 123, 95, 0.42);
  border-left-color: rgba(15, 123, 95, 0.72);
  background: #f8fcfa;
}

.admin-feedback-ticket.selected {
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08);
}

.admin-feedback-ticket.error {
  border-left-color: #b94a3f;
}

.admin-feedback-ticket.warn {
  border-left-color: #b77c18;
}

.admin-feedback-ticket.is-new::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-green);
}

.admin-feedback-ticket header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.admin-feedback-ticket header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-feedback-ticket header span,
.admin-feedback-ticket footer span,
.admin-feedback-ticket p {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-feedback-ticket header b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-ticket p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-feedback-ticket footer {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-feedback-ticket footer span:first-child {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-attachment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--admin-green);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 920;
}

.admin-feedback-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-feedback-ticket-actions button {
  min-height: 28px;
  border: 1px solid rgba(15, 123, 95, 0.2);
  border-radius: 7px;
  background: #fff;
  color: var(--admin-green);
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-feedback-ticket-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}

.admin-feedback-detail {
  top: 88px;
  max-height: min(760px, calc(100vh - 118px));
  overflow: auto;
  padding: 0;
  border-radius: 8px;
  background: #fff;
}

.admin-feedback-detail-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-feedback-empty-detail {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 20px;
  text-align: center;
}

.admin-feedback-empty-detail b {
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
}

.admin-feedback-empty-detail span {
  max-width: 360px;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.admin-feedback-detail-head-v2 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(213, 226, 222, 0.86);
}

.admin-feedback-detail-head-v2 h3 {
  overflow: hidden;
  margin: 0;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-detail-head-v2 span,
.admin-feedback-detail-head-v2 small {
  display: block;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-detail-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-feedback-detail-tools a,
.admin-feedback-context-link {
  min-height: 30px;
  border: 1px solid rgba(15, 123, 95, 0.2);
  border-radius: 7px;
  background: #f7fbf9;
  color: var(--admin-green);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.admin-feedback-thread-v2 {
  display: grid;
  gap: 9px;
}

.admin-feedback-thread-v2 article {
  display: grid;
  gap: 8px;
  max-width: 88%;
  padding: 11px 12px;
  border: 1px solid rgba(213, 226, 222, 0.86);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-feedback-thread-v2 article.admin {
  justify-self: end;
  background: #eef8f3;
  border-color: rgba(15, 123, 95, 0.22);
}

.admin-feedback-thread-v2 article.system {
  max-width: 100%;
  padding: 8px 10px;
  border-style: dashed;
  background: #fff;
}

.admin-feedback-thread-v2 article.system.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-feedback-thread-v2 b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-feedback-thread-v2 span,
.admin-feedback-thread-v2 small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.admin-feedback-thread-v2 p {
  margin: 0;
  color: #243832;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-feedback-shot-block {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-feedback-shot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  min-width: 0;
}

.admin-feedback-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-feedback-shot-head a {
  color: var(--admin-green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.admin-feedback-shot-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(205, 222, 216, 0.9);
  border-radius: 8px;
  background: #eef3f1;
}

.admin-feedback-shot-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-feedback-shot-preview span {
  display: none;
  padding: 12px;
  color: var(--admin-muted);
  text-align: center;
}

.admin-feedback-shot-preview.is-error img {
  display: none;
}

.admin-feedback-shot-preview.is-error span {
  display: block;
}

.admin-feedback-shot-missing {
  border: 1px dashed rgba(205, 222, 216, 0.9);
  border-radius: 8px;
  padding: 10px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-feedback-composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(213, 226, 222, 0.92);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-feedback-composer label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-feedback-composer > div {
  display: grid;
  grid-template-columns: 160px 150px auto;
  gap: 8px;
  align-items: end;
}

.admin-feedback-composer textarea,
.admin-feedback-composer select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.admin-feedback-composer textarea {
  resize: vertical;
}

.admin-feedback-composer button,
.admin-feedback-detail-actions button {
  min-height: 38px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-feedback-detail-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .admin-feedback-panel .admin-feedback-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-feedback-board,
  .admin-feedback-panel .admin-feedback-visuals {
    grid-template-columns: 1fr;
  }

  .admin-feedback-detail {
    position: static;
    max-height: none;
  }

  .admin-feedback-list {
    max-height: none;
    min-height: 0;
  }
}

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

  .admin-feedback-detail-head-v2,
  .admin-feedback-composer > div {
    grid-template-columns: 1fr;
  }

  .admin-feedback-detail-tools {
    justify-content: flex-start;
  }

  .admin-feedback-thread-v2 article {
    max-width: 100%;
  }

  .admin-feedback-ticket header {
    grid-template-columns: 1fr;
  }

  .admin-feedback-ticket footer span:first-child {
    white-space: normal;
  }
}

/* Audit operations center */
.admin-ops-grid[data-admin-view-panel~="audit"] {
  align-items: start;
}

.admin-audit-head-actions,
.admin-audit-period {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-audit-period {
  justify-content: flex-start;
  margin: 10px 0;
}

.admin-audit-period button {
  min-height: 34px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--admin-muted);
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-audit-period button.active {
  border-color: rgba(15, 123, 95, 0.34);
  background: #eaf6f1;
  color: var(--admin-green);
}

.admin-audit-status-panel article {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.admin-audit-status-panel article.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-audit-status-panel article.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-audit-status-panel span,
.admin-audit-status-panel p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.admin-audit-status-panel b {
  color: var(--admin-text);
  font-size: 22px;
  font-weight: 960;
}

.admin-audit-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.admin-audit-metric-grid button {
  display: grid;
  gap: 3px;
  min-height: 76px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-audit-metric-grid button.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-audit-metric-grid button.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-audit-metric-grid span,
.admin-audit-metric-grid small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-metric-grid b {
  color: var(--admin-text);
  font-size: 22px;
  font-weight: 960;
}

.admin-audit-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0;
}

.admin-audit-signal-grid article {
  display: grid;
  gap: 9px;
  min-height: 140px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-left: 4px solid rgba(15, 123, 95, 0.32);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.admin-audit-signal-grid article.warn {
  border-left-color: #b77c18;
  background: #fffaf0;
}

.admin-audit-signal-grid article.error {
  border-left-color: #b94a3f;
  background: #fff4f2;
}

.admin-audit-signal-grid article.selected {
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08);
}

.admin-audit-signal-grid span,
.admin-audit-signal-grid small,
.admin-audit-signal-grid p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.admin-audit-signal-grid b {
  display: block;
  margin: 2px 0 4px;
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 950;
}

.admin-audit-signal-grid footer {
  display: grid;
  gap: 8px;
  align-self: end;
}

.admin-audit-signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-audit-signal-grid button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 7px;
  background: #fff;
  color: var(--admin-green);
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.admin-audit-trends {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 10px;
  margin: 10px 0;
}

.admin-audit-trends > section {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.admin-audit-trends h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-audit-trends .admin-layered-timeline svg,
#adminAuditTimeline svg {
  max-height: 170px;
}

.admin-audit-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  align-items: center;
}

.admin-audit-tools .admin-audit-search {
  min-width: 0;
}

.admin-audit-tools #adminAuditSearch {
  width: 100%;
}

.admin-audit-tools #adminAuditFilter,
.admin-audit-tools .admin-audit-search,
.admin-audit-tools #adminAuditSummary {
  grid-column: span 2;
}

.admin-audit-tools select,
.admin-audit-tools input[type="search"] {
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.admin-audit-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-audit-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

#auditList {
  display: grid;
  gap: 8px;
  max-height: min(760px, calc(100vh - 250px));
  overflow: auto;
  padding-right: 5px;
  scrollbar-gutter: stable;
}

.admin-audit-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  padding: 10px;
}

.admin-audit-list-head b {
  display: block;
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
}

.admin-audit-list-head span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-audit-cluster,
.admin-audit-raw {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-left: 4px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.admin-audit-cluster.warn,
.admin-audit-raw.warn {
  border-left-color: #b77c18;
}

.admin-audit-cluster.error,
.admin-audit-raw.error {
  border-left-color: #b94a3f;
  background: #fffaf9;
}

.admin-audit-cluster.selected,
.admin-audit-raw.selected {
  border-color: rgba(15, 123, 95, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.08);
}

.admin-audit-cluster header,
.admin-audit-raw {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.admin-audit-cluster header,
.admin-audit-cluster footer,
.admin-audit-raw {
  display: grid;
  gap: 9px;
}

.admin-audit-cluster footer {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
}

.admin-audit-cluster b,
.admin-audit-raw b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-cluster small,
.admin-audit-cluster p,
.admin-audit-cluster span,
.admin-audit-cluster em,
.admin-audit-raw small,
.admin-audit-raw em {
  overflow: hidden;
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-cluster p {
  white-space: normal;
}

.admin-audit-cluster footer button {
  min-height: 30px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 7px;
  background: #fff;
  color: var(--admin-green);
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.admin-audit-cluster-events {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 7px;
  background: #f7fbf9;
}

.admin-audit-cluster-events button {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 110px;
  gap: 8px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  padding: 5px 7px;
  text-align: left;
  font: inherit;
}

.admin-audit-detail {
  position: sticky;
  top: 88px;
  max-height: min(760px, calc(100vh - 120px));
  overflow: auto;
}

.admin-audit-detail-card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.admin-audit-detail-card.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-audit-detail-card.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-audit-detail-card > span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-audit-detail-card h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.admin-audit-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-audit-detail-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.8);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px;
}

.admin-audit-detail-facts b,
.admin-audit-detail-why b {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-audit-detail-facts em {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-audit-detail-why {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(15, 123, 95, 0.34);
  padding-left: 10px;
}

.admin-audit-detail-why p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.admin-audit-detail-card pre {
  overflow: auto;
  max-height: 220px;
  margin: 0;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 7px;
  background: #f8fbfa;
  color: #263b35;
  padding: 10px;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-audit-detail-card button {
  min-height: 36px;
  border: 1px solid rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .admin-audit-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-audit-signal-grid,
  .admin-audit-trends,
  .admin-audit-workspace,
  .admin-audit-tools {
    grid-template-columns: 1fr;
  }

  #auditList,
  .admin-audit-detail {
    max-height: none;
  }

  .admin-audit-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-audit-metric-grid,
  .admin-audit-detail-facts {
    grid-template-columns: 1fr;
  }

  .admin-audit-tools #adminAuditFilter,
  .admin-audit-tools .admin-audit-search,
  .admin-audit-tools #adminAuditSummary {
    grid-column: span 1;
  }

  .admin-audit-cluster header,
  .admin-audit-cluster footer,
  .admin-audit-raw,
  .admin-audit-cluster-events button {
    grid-template-columns: 1fr;
  }

  .admin-audit-head-actions,
  .admin-audit-period {
    justify-content: flex-start;
  }
}

/* System operational health center */
.admin-system-panel {
  overflow: hidden;
}

.admin-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.admin-system-actions #adminSystemSummary {
  max-width: min(420px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.admin-system-status-card,
.admin-system-signal-grid,
.admin-system-zone {
  min-width: 0;
}

.admin-system-status-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-left: 5px solid rgba(15, 123, 95, 0.5);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(35, 55, 49, 0.06);
}

.admin-system-status-card.warn {
  border-left-color: #b77c18;
  background: #fffaf0;
}

.admin-system-status-card.error {
  border-left-color: #b94a3f;
  background: #fff4f2;
}

.admin-system-status-card.unknown {
  border-left-color: #80908b;
  background: #f7f9f8;
}

.admin-system-status-card span,
.admin-system-status-card p,
.admin-system-status-card em {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
}

.admin-system-status-card h3 {
  margin: 2px 0 5px;
  color: var(--admin-text);
  font-size: 24px;
  line-height: 1.15;
}

.admin-system-status-card strong {
  display: inline-block;
  margin-top: 8px;
  color: #b94a3f;
  font-size: 12px;
}

.admin-system-score-note {
  display: inline-block;
  max-width: 760px;
  margin-top: 8px !important;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 10px;
}

.admin-system-score-note b {
  color: var(--admin-text);
  font-weight: 950;
}

.admin-system-status-card aside {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.admin-system-status-card aside b {
  color: var(--admin-text);
  font-size: 34px;
  line-height: 1;
}

.admin-system-signal-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-system-signal-grid article {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 112px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-left: 4px solid rgba(15, 123, 95, 0.35);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.admin-system-signal-grid > .empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 64px;
  border: 1px dashed rgba(151, 172, 166, 0.52);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--admin-muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 820;
}

.admin-system-signal-grid article.warn {
  border-left-color: #b77c18;
  background: #fffaf0;
}

.admin-system-signal-grid article.error {
  border-left-color: #b94a3f;
  background: #fff4f2;
}

.admin-system-signal-grid article.unknown {
  border-left-color: #80908b;
  background: #f7f9f8;
}

.admin-system-signal-grid span,
.admin-system-signal-grid p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
}

.admin-system-signal-grid b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.admin-system-signal-grid button,
.admin-system-zone header button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 7px;
  background: #fff;
  color: var(--admin-green);
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.admin-system-zone {
  grid-column: span 6;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(35, 55, 49, 0.045);
}

.admin-system-folders {
  grid-column: 1 / -1;
}

.admin-system-resources,
.admin-system-workload,
.admin-system-backups {
  grid-column: span 4;
}

.admin-system-disk,
.admin-system-logs {
  grid-column: span 8;
}

.admin-system-web,
.admin-system-tools-panel {
  grid-column: span 4;
}

#adminSystemGrid > .admin-system-status-card,
#adminSystemGrid > .admin-system-signal-grid,
#adminSystemGrid > .admin-system-folders {
  grid-column: 1 / -1 !important;
}

#adminSystemGrid > section {
  grid-row: auto !important;
}

#adminSystemGrid > .admin-system-status-card {
  order: 1;
  padding: 18px !important;
}

#adminSystemGrid > .admin-system-signal-grid {
  order: 2;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#adminSystemGrid > .admin-system-resources,
#adminSystemGrid > .admin-system-workload,
#adminSystemGrid > .admin-system-backups,
#adminSystemGrid > .admin-system-web,
#adminSystemGrid > .admin-system-tools-panel {
  grid-column: span 4 !important;
}

#adminSystemGrid > .admin-system-resources {
  order: 3;
}

#adminSystemGrid > .admin-system-workload {
  order: 4;
}

#adminSystemGrid > .admin-system-backups {
  order: 5;
}

#adminSystemGrid > .admin-system-disk,
#adminSystemGrid > .admin-system-logs {
  grid-column: span 8 !important;
}

#adminSystemGrid > .admin-system-disk {
  order: 6;
}

#adminSystemGrid > .admin-system-web {
  order: 7;
}

#adminSystemGrid > .admin-system-logs {
  order: 8;
}

#adminSystemGrid > .admin-system-tools-panel {
  order: 9;
}

#adminSystemGrid > .admin-system-folders {
  order: 10;
}

.admin-system-zone header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.admin-system-zone header div {
  min-width: 0;
}

.admin-system-zone header span,
.admin-system-zone header em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.admin-system-zone header h3 {
  margin: 2px 0 0;
  color: var(--admin-text);
  font-size: 17px;
  line-height: 1.2;
}

.admin-system-help {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
  text-transform: none;
}

.admin-system-zone header em.warn,
.admin-system-zone header em.error,
.admin-system-zone header em.unknown {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fffaf0;
}

.admin-system-zone header em.error {
  background: #fff4f2;
  color: #9d372e;
}

.admin-system-zone header em.unknown {
  background: #f1f5f3;
}

.admin-system-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-system-kpis > span,
.admin-system-tool-grid > span {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(207, 223, 218, 0.8);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 9px;
}

.admin-system-kpis > span.warn,
.admin-system-tool-grid > span.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-system-kpis > span.error,
.admin-system-tool-grid > span.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-system-kpis > span.unknown,
.admin-system-tool-grid > span.unknown {
  border-color: #d8e0dd;
  background: #f7f9f8;
}

.admin-system-kpis b,
.admin-system-tool-grid b {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-kpis strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.admin-system-kpis em,
.admin-system-tool-grid em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-system-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.admin-system-bars {
  display: grid;
  gap: 7px;
}

.admin-system-bar {
  display: grid;
  gap: 4px;
}

.admin-system-bar div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.admin-system-bar b,
.admin-system-bar span {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-bar i {
  display: block;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e7efec;
}

.admin-system-bar i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 123, 95, 0.78), rgba(15, 123, 95, 0.28));
}

.admin-system-event-list {
  display: grid;
  gap: 6px;
}

.admin-system-event-list button,
.admin-system-event-list > span {
  display: grid;
  gap: 2px;
  min-height: 40px;
  border: 1px solid rgba(207, 223, 218, 0.8);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 8px;
  text-align: left;
  font: inherit;
}

.admin-system-event-list button.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-system-event-list button.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-system-event-list b,
.admin-system-event-list span {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-event-list b {
  color: var(--admin-text);
  font-weight: 900;
}

.admin-system-folder-head,
.admin-system-folder-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 90px 110px 110px minmax(160px, 1.3fr);
  gap: 8px;
  align-items: center;
}

.admin-system-folder-head {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-system-folder-list {
  display: grid;
  gap: 6px;
}

.admin-system-folder-row {
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.8);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 8px;
}

.admin-system-folder-row.error {
  border-color: #edc1bc;
  background: #fff4f2;
}

.admin-system-folder-row.warn {
  border-color: #efd8aa;
  background: #fffaf0;
}

.admin-system-folder-row b,
.admin-system-folder-row span,
.admin-system-folder-row em {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-folder-row b {
  color: var(--admin-text);
  font-weight: 900;
}

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

.admin-system-tools-panel .admin-system-tool-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .admin-system-signal-grid,
  .admin-system-kpis,
  .admin-system-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-system-zone {
    grid-column: 1 / -1 !important;
  }

  .admin-system-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-system-actions {
    justify-content: flex-start;
  }

  .admin-system-actions #adminSystemSummary {
    max-width: 100%;
    white-space: normal;
  }

  .admin-system-grid,
  .admin-system-status-card,
  .admin-system-signal-grid,
  .admin-system-kpis,
  .admin-system-tool-grid {
    grid-template-columns: 1fr;
  }

  #adminSystemGrid.admin-system-grid,
  #adminSystemGrid .admin-system-status-card,
  #adminSystemGrid .admin-system-signal-grid,
  #adminSystemGrid .admin-system-kpis,
  #adminSystemGrid .admin-system-tool-grid {
    grid-template-columns: 1fr !important;
  }

  #adminSystemGrid > .admin-system-status-card,
  #adminSystemGrid > .admin-system-signal-grid,
  #adminSystemGrid > .admin-system-resources,
  #adminSystemGrid > .admin-system-workload,
  #adminSystemGrid > .admin-system-backups,
  #adminSystemGrid > .admin-system-disk,
  #adminSystemGrid > .admin-system-web,
  #adminSystemGrid > .admin-system-logs,
  #adminSystemGrid > .admin-system-tools-panel,
  #adminSystemGrid > .admin-system-folders {
    grid-column: 1 / -1 !important;
  }

  .admin-system-status-card aside {
    justify-items: start;
  }

  .admin-system-zone header {
    display: grid;
  }

  .admin-system-folder-head {
    display: none;
  }

  .admin-system-folder-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-system-kpis strong,
  .admin-system-kpis em,
  .admin-system-folder-row b,
  .admin-system-folder-row span,
  .admin-system-folder-row em {
    white-space: normal;
  }
}

/* Lower overview command center. The KPI and history rows above stay untouched. */
.admin-console-body .admin-overview-panel .admin-dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.88fr);
  grid-template-areas:
    "release risk"
    "tasks recent";
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.admin-console-body .admin-overview-panel .admin-release-dynamics-card {
  grid-area: release;
  grid-row: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.admin-console-body .admin-overview-panel .admin-readiness-panel {
  grid-area: risk;
  min-width: 0;
  min-height: 0;
}

.admin-console-body .admin-overview-panel .admin-attention-panel {
  grid-area: tasks;
  min-width: 0;
}

.admin-console-body .admin-overview-panel .admin-recent-panel {
  grid-area: recent;
  min-width: 0;
}

.admin-console-body .admin-overview-panel .admin-card-head {
  gap: 10px;
}

.admin-console-body .admin-overview-panel .admin-card-head > div {
  min-width: 0;
}

.admin-console-body .admin-overview-panel .admin-card-head h3,
.admin-console-body .admin-overview-panel .admin-card-head span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-console-body .admin-overview-panel .admin-card-head h3 {
  white-space: nowrap;
}

.admin-console-body .admin-overview-panel .admin-card-head span {
  display: -webkit-box;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-console-body .admin-overview-panel .admin-combo-chart-product {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.admin-console-body .admin-overview-panel .admin-combo-chart-product .admin-combo-svg {
  max-height: 190px;
  overflow: hidden;
}

.admin-console-body .admin-overview-panel .admin-combo-chart-product .admin-combo-point {
  r: 3;
  stroke-width: 2;
}

.admin-console-body .admin-overview-panel .admin-combo-value-strip {
  gap: 5px;
}

.admin-console-body .admin-overview-panel .admin-combo-value-strip span {
  min-height: 38px;
  padding: 5px;
  border-radius: 8px;
}

.admin-console-body .admin-overview-panel .admin-combo-day-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.admin-console-body .admin-overview-panel .admin-combo-day-card {
  min-height: 46px;
  padding: 7px;
  border-radius: 8px;
}

.admin-console-body .admin-overview-panel .admin-combo-day-card::after {
  display: none;
}

.admin-command-stat-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(108px, 1fr)) !important;
  gap: 8px;
  margin-top: 10px;
}

.admin-command-stat-row button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  text-align: left;
}

.admin-command-stat-row button.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-stat-row button.ok {
  border-color: rgba(15, 123, 95, 0.2);
  background: #f5fbf8;
}

.admin-command-stat-row span,
.admin-command-stat-row small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-stat-row b {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-risk-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid rgba(207, 223, 218, 0.86);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
}

.admin-command-risk-card.warn {
  border-color: rgba(217, 134, 33, 0.28);
  background: linear-gradient(180deg, #fffaf0, #ffffff 58%);
}

.admin-command-risk-card.error {
  border-color: rgba(191, 73, 63, 0.28);
  background: linear-gradient(180deg, #fff6f4, #ffffff 58%);
}

.admin-command-risk-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.admin-command-risk-card header div {
  min-width: 0;
}

.admin-command-risk-card header span {
  display: block;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-command-risk-card header h3 {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-risk-card header p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-command-risk-card header button,
.admin-command-task-list button,
.admin-command-backup-card button {
  min-height: 32px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-command-risk-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.admin-command-risk-zones button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot title value"
    "dot hint value";
  gap: 2px 8px;
  min-width: 0;
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--admin-text);
  text-align: left;
}

.admin-command-risk-zones button.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-risk-zones button.error {
  border-color: rgba(191, 73, 63, 0.32);
  background: #fff6f4;
}

.admin-command-risk-zones button.unknown {
  background: #f6f8f7;
}

.admin-command-risk-zones .status-dot {
  grid-area: dot;
  margin-top: 3px;
}

.admin-command-risk-zones b {
  grid-area: title;
  overflow: hidden;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 920;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-risk-zones em {
  grid-area: hint;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-risk-zones strong {
  grid-area: value;
  align-self: center;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.admin-command-risk-card footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.admin-command-risk-card footer span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f0f7f4;
}

.admin-command-risk-card footer span.warn {
  background: #fff3df;
}

.admin-command-risk-card footer span.error {
  background: #fff0ee;
}

.admin-command-risk-card footer b {
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.admin-command-risk-card footer small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-task-list,
.admin-command-recent-list {
  display: grid;
  gap: 7px;
}

.admin-command-task-list article {
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
}

.admin-command-task-list article.warn,
.admin-command-task-list article.warning {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-task-list article.error,
.admin-command-task-list article.critical {
  border-color: rgba(191, 73, 63, 0.32);
  background: #fff6f4;
}

.admin-command-task-list article::before,
.admin-command-recent-list article::before {
  display: none !important;
}

.admin-command-task-list article div,
.admin-command-recent-list article div {
  min-width: 0;
}

.admin-command-task-list b,
.admin-command-task-list small {
  display: block;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-task-list b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 930;
}

.admin-command-task-list small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 720;
}

.admin-command-recent-list article {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) minmax(92px, auto) !important;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(207, 223, 218, 0.78);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.admin-command-recent-list article.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-recent-list article > em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf6f2;
  color: var(--admin-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.admin-command-recent-list b,
.admin-command-recent-list span,
.admin-command-recent-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-recent-list b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 930;
}

.admin-command-recent-list span,
.admin-command-recent-list small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 720;
}

.admin-command-empty {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border: 1px dashed rgba(15, 123, 95, 0.2);
  border-radius: 8px;
  background: #f7fbf9;
}

.admin-command-empty b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 930;
}

.admin-command-empty span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.admin-command-dependency-chain {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(126px, 1fr)) !important;
  gap: 8px;
  min-width: 0;
}

.admin-command-dependency-chain button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.84);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  text-align: left;
}

.admin-command-dependency-chain button.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-dependency-chain button.info {
  background: #f7fbf9;
}

.admin-command-dependency-chain > button > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf6f2;
  color: var(--admin-green);
  font-size: 11px;
  font-weight: 950;
}

.admin-command-dependency-chain div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-command-dependency-chain b,
.admin-command-dependency-chain strong,
.admin-command-dependency-chain small,
.admin-command-dependency-chain em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-command-dependency-chain b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 930;
  line-height: 1.18;
  white-space: nowrap;
}

.admin-command-dependency-chain strong {
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.admin-command-dependency-chain small {
  display: -webkit-box;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-command-dependency-chain em {
  grid-column: 1 / -1;
  color: var(--admin-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.admin-command-feedback-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-command-feedback-grid button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-text);
  text-align: left;
}

.admin-command-feedback-grid button.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-feedback-grid button.error {
  border-color: rgba(191, 73, 63, 0.32);
  background: #fff6f4;
}

.admin-command-feedback-grid span,
.admin-command-feedback-grid small {
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-feedback-grid b {
  color: var(--admin-text);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.admin-command-active-users {
  display: grid;
  gap: 8px;
}

.admin-command-active-users article {
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.admin-command-active-users article.open {
  border-color: rgba(15, 123, 95, 0.28);
  background: #f7fbf9;
}

.admin-command-active-users div {
  min-width: 0;
}

.admin-command-active-users b,
.admin-command-active-users span,
.admin-command-active-users small,
.admin-command-active-users em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-active-users b {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 930;
}

.admin-command-active-users span,
.admin-command-active-users small,
.admin-command-active-users em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.admin-command-backup-card {
  display: grid !important;
  gap: 8px;
}

.admin-command-backup-card article {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.admin-command-backup-card article.warn {
  border-color: rgba(217, 134, 33, 0.32);
  background: #fffaf0;
}

.admin-command-backup-card article div {
  min-width: 0;
}

.admin-command-backup-card span,
.admin-command-backup-card b,
.admin-command-backup-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-backup-card span,
.admin-command-backup-card small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
}

.admin-command-backup-card b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 930;
}

.admin-command-backup-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.admin-command-backup-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f0f7f4;
}

.admin-command-backup-facts span.warn {
  background: #fff3df;
}

.admin-command-backup-facts b,
.admin-command-backup-facts small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-backup-facts b {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 950;
}

.admin-command-backup-facts small {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 820;
}

.admin-console-body .admin-insights-grid {
  align-items: start !important;
}

.admin-console-body .admin-insights-grid .admin-insight-panel {
  align-self: start;
  min-height: 0 !important;
}

.admin-command-feedback-grid,
.admin-command-active-users,
.admin-command-backup-card {
  align-content: start;
}

@media (max-width: 1380px) {
  .admin-command-dependency-chain {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .admin-console-body .admin-overview-panel .admin-dashboard-command {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "release"
      "risk"
      "tasks"
      "recent";
  }

  .admin-command-dependency-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-console-body .admin-overview-panel .admin-combo-value-strip,
  .admin-console-body .admin-overview-panel .admin-combo-day-strip,
  .admin-command-stat-row,
  .admin-command-risk-zones,
  .admin-command-risk-card footer,
  .admin-command-feedback-grid,
  .admin-command-backup-facts,
  .admin-command-dependency-chain {
    grid-template-columns: 1fr !important;
  }

  .admin-console-body .admin-overview-panel .admin-combo-chart-product .admin-combo-svg {
    max-height: 170px;
  }

  .admin-console-body .admin-overview-panel .admin-card-head h3,
  .admin-command-risk-card header h3,
  .admin-command-task-list b,
  .admin-command-task-list small,
  .admin-command-recent-list b,
  .admin-command-recent-list span,
  .admin-command-recent-list small,
  .admin-command-active-users b,
  .admin-command-active-users span,
  .admin-command-active-users small,
  .admin-command-active-users em,
  .admin-command-backup-card span,
  .admin-command-backup-card b,
  .admin-command-backup-card small {
    white-space: normal;
  }

  .admin-command-risk-card header,
  .admin-command-task-list article,
  .admin-command-recent-list article,
  .admin-command-active-users article,
  .admin-command-backup-card article {
    grid-template-columns: 1fr !important;
    justify-items: start;
  }

  .admin-command-task-list button,
  .admin-command-backup-card button {
    width: 100%;
  }
}

/* Operational overview layer: status, priorities and period rhythm. */
.admin-console-body .admin-overview-panel .admin-dashboard-command {
  grid-template-areas:
    "status status"
    "release risk"
    "tasks recent"
    "period period" !important;
}

.admin-console-body #adminOperationalStatus {
  grid-area: status;
  min-width: 0;
}

.admin-console-body #adminPeriodSummary {
  grid-area: period;
  min-width: 0;
}

.admin-command-operational-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  box-shadow: 0 10px 24px rgba(19, 37, 32, 0.05);
}

.admin-command-operational-card.ok {
  border-color: rgba(15, 123, 95, 0.22);
  background: linear-gradient(180deg, #f7fbf9, #ffffff);
}

.admin-command-operational-card.notice,
.admin-command-operational-card.unknown {
  border-color: rgba(207, 223, 218, 0.92);
  background: linear-gradient(180deg, #fbfdfc, #ffffff);
}

.admin-command-operational-card.warning {
  border-color: rgba(217, 134, 33, 0.32);
  background: linear-gradient(180deg, #fffaf0, #ffffff 62%);
}

.admin-command-operational-card.critical {
  border-color: rgba(191, 73, 63, 0.34);
  background: linear-gradient(180deg, #fff6f4, #ffffff 62%);
}

.admin-command-operational-copy {
  min-width: 0;
}

.admin-command-operational-copy > span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-command-operational-copy h3 {
  overflow: hidden;
  margin: 0;
  color: var(--admin-text);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-operational-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-command-operational-copy small {
  display: block;
  margin-top: 7px;
  color: #6d7b76;
  font-size: 11px;
  font-weight: 820;
}

.admin-command-operational-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 7px;
  min-width: 0;
}

.admin-command-operational-counters span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
  background: #f0f7f4;
  padding: 7px;
}

.admin-command-operational-counters span.error {
  background: #fff0ee;
}

.admin-command-operational-counters span.warn {
  background: #fff3df;
}

.admin-command-operational-counters span.notice,
.admin-command-operational-counters span.info {
  background: #f3f7f5;
}

.admin-command-operational-counters b {
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.admin-command-operational-counters small {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-command-operational-actions {
  display: grid;
  gap: 7px;
  justify-items: stretch;
}

.admin-command-operational-actions button {
  min-height: 34px;
  min-width: 122px;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-green);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 920;
  white-space: nowrap;
}

.admin-command-operational-actions button:first-child {
  background: var(--admin-green);
  color: #fff;
}

.admin-command-priority-list article {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
}

.admin-command-priority {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #edf6f2;
  color: var(--admin-green);
  font-size: 11px;
  font-weight: 950;
}

.admin-command-priority.p0 {
  background: #fff0ee;
  color: #9d372e;
}

.admin-command-priority.p1 {
  background: #fff3df;
  color: #9a620d;
}

.admin-command-priority.p2 {
  background: #f0f5f3;
  color: #4f625c;
}

.admin-command-priority-list article.notice,
.admin-command-priority-list article.unknown {
  background: #fbfdfc;
}

.admin-command-priority-list em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7a8883;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-period-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(207, 223, 218, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 37, 32, 0.04);
}

.admin-command-period-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.admin-command-period-head div {
  min-width: 0;
}

.admin-command-period-head h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.admin-command-period-head > span {
  max-width: 420px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
  text-align: right;
}

.admin-command-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.admin-command-period-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(207, 223, 218, 0.82);
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-command-period-grid article.warn {
  border-color: rgba(217, 134, 33, 0.28);
  background: #fffaf0;
}

.admin-command-period-grid article.unknown {
  background: #f6f8f7;
}

.admin-command-period-grid header {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.admin-command-period-grid header b,
.admin-command-period-grid header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-period-grid header b {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 950;
}

.admin-command-period-grid header small {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 820;
}

.admin-command-period-grid article > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-command-period-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
}

.admin-command-period-grid span b,
.admin-command-period-grid span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-period-grid span b {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.admin-command-period-grid span small {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 820;
}

@media (max-width: 1180px) {
  .admin-console-body .admin-overview-panel .admin-dashboard-command {
    grid-template-areas:
      "status"
      "release"
      "risk"
      "tasks"
      "recent"
      "period" !important;
  }

  .admin-command-operational-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-command-operational-counters {
    width: 100%;
  }

  .admin-command-operational-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-command-period-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-command-operational-counters,
  .admin-command-operational-actions,
  .admin-command-period-grid article > div {
    grid-template-columns: 1fr !important;
  }

  .admin-command-operational-copy h3,
  .admin-command-priority-list em,
  .admin-command-period-grid header b,
  .admin-command-period-grid header small,
  .admin-command-period-grid span b,
  .admin-command-period-grid span small {
    white-space: normal;
  }

  .admin-command-priority-list article {
    grid-template-columns: 1fr !important;
  }

  .admin-command-priority-list button {
    width: 100%;
  }

  .admin-command-period-head {
    display: grid;
  }

  .admin-command-period-head > span {
    max-width: none;
    text-align: left;
  }
}

/* Admin final cascade map.
   Overview/dashboard final: command center below.
   Feedback/audit final: dense operational queues below.
   Library/storage final: v3 layers above plus overflow guards below.
   Mobile final: compact wrapping at the end of this file.
   Keep this after legacy admin passes; it only tightens final admin surfaces. */
.admin-console-body {
  --admin-chip-bg: #eef7f3;
  --admin-chip-line: rgba(15, 123, 95, 0.2);
  --admin-chip-warn-bg: #fff5e5;
  --admin-chip-error-bg: #fff1ee;
  --admin-chip-info-bg: #eef4ff;
}

.admin-console-body .admin-command-operational-card,
.admin-console-body .admin-command-risk-card,
.admin-console-body .admin-command-period-panel,
.admin-console-body .admin-feedback-detail-shell,
.admin-console-body .admin-audit-detail-card {
  border-radius: 8px;
}

.admin-console-body .admin-command-operational-copy span,
.admin-console-body .admin-command-priority,
.admin-console-body .feedback-status,
.admin-console-body .feedback-priority,
.admin-console-body .admin-audit-cluster header em,
.admin-console-body .admin-audit-detail-card > span,
.admin-console-body .admin-system-zone header em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid var(--admin-chip-line);
  border-radius: 999px;
  background: var(--admin-chip-bg);
  color: var(--admin-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.admin-console-body .admin-command-priority.p0,
.admin-console-body .feedback-priority.error,
.admin-console-body .feedback-status.error,
.admin-console-body .admin-audit-cluster.error header em,
.admin-console-body .admin-audit-detail-card.error > span {
  border-color: rgba(191, 73, 63, 0.28);
  background: var(--admin-chip-error-bg);
  color: var(--admin-danger);
}

.admin-console-body .admin-command-priority.p1,
.admin-console-body .feedback-priority.warn,
.admin-console-body .feedback-status.warn,
.admin-console-body .admin-audit-cluster.warn header em,
.admin-console-body .admin-audit-detail-card.warn > span {
  border-color: rgba(217, 134, 33, 0.28);
  background: var(--admin-chip-warn-bg);
  color: var(--admin-warn);
}

.admin-console-body .admin-command-priority.p2,
.admin-console-body .admin-command-priority.info,
.admin-console-body .feedback-status.info,
.admin-console-body .feedback-priority.info {
  border-color: rgba(45, 107, 166, 0.2);
  background: var(--admin-chip-info-bg);
  color: #2d5f99;
}

/* Admin final overview: action-first operational command center. */
.admin-console-body .admin-overview-panel .admin-dashboard-command {
  gap: 10px;
}

.admin-console-body .admin-command-operational-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.admin-console-body .admin-command-operational-copy {
  min-width: 0;
}

.admin-console-body .admin-command-operational-copy h3 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.12;
}

.admin-console-body .admin-command-operational-copy p {
  max-width: 760px;
  margin-top: 5px;
}

.admin-console-body .admin-command-operational-counters {
  align-self: stretch;
  gap: 6px;
}

.admin-console-body .admin-command-operational-counters span,
.admin-console-body .admin-command-period-grid span,
.admin-console-body .admin-command-backup-facts span {
  border: 1px solid rgba(207, 223, 218, 0.76);
}

.admin-console-body .admin-command-task-list article {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  min-height: 58px;
}

.admin-console-body .admin-command-task-list article > div {
  display: grid;
  gap: 3px;
}

.admin-console-body .admin-command-next-action {
  display: block;
  overflow: hidden;
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-command-task-list button,
.admin-console-body .admin-command-operational-actions button {
  min-height: 34px;
  border-radius: 8px;
}

/* Admin final feedback: dense helpdesk queue and stable detail pane. */
.admin-console-body .admin-feedback-board {
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: 12px;
  align-items: stretch;
}

.admin-console-body .admin-feedback-list,
.admin-console-body .admin-feedback-detail {
  min-width: 0;
}

.admin-console-body .admin-feedback-ticket {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.admin-console-body .admin-feedback-ticket header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-console-body .admin-feedback-ticket header b,
.admin-console-body .admin-feedback-ticket p,
.admin-console-body .admin-feedback-ticket footer span {
  min-width: 0;
}

.admin-console-body .admin-feedback-ticket-meta,
.admin-console-body .admin-feedback-detail-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-console-body .admin-feedback-ticket-meta span,
.admin-console-body .admin-feedback-detail-context span {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.72);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 6px 7px;
}

.admin-console-body .admin-feedback-detail-context {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-console-body .admin-feedback-ticket-meta b,
.admin-console-body .admin-feedback-detail-context b {
  color: var(--admin-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-console-body .admin-feedback-ticket-meta em,
.admin-console-body .admin-feedback-detail-context em {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-feedback-ticket-next,
.admin-console-body .admin-feedback-next-step {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(15, 123, 95, 0.16);
  border-radius: 8px;
  background: #f3faf7;
  padding: 7px 8px;
}

.admin-console-body .admin-feedback-ticket-next b,
.admin-console-body .admin-feedback-next-step b {
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-console-body .admin-feedback-ticket-next span,
.admin-console-body .admin-feedback-next-step span {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-feedback-next-step.warn {
  border-color: rgba(184, 113, 12, 0.24);
  background: #fff8ea;
}

.admin-console-body .admin-feedback-next-step.warn b {
  color: #9d5f04;
}

.admin-console-body .admin-feedback-next-step.error {
  border-color: rgba(185, 74, 63, 0.24);
  background: #fff6f4;
}

.admin-console-body .admin-feedback-next-step.error b {
  color: #a83d34;
}

.admin-console-body .admin-feedback-badges,
.admin-console-body .admin-feedback-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.admin-console-body .admin-feedback-ticket footer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}

.admin-console-body .admin-feedback-ticket-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-console-body .admin-feedback-ticket-actions button,
.admin-console-body .admin-feedback-detail-actions button,
.admin-console-body .admin-feedback-composer button {
  min-height: 32px;
  border-radius: 8px;
}

.admin-console-body .admin-feedback-panel .admin-combo-day-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-console-body .admin-feedback-panel .admin-combo-day-card b,
.admin-console-body .admin-feedback-panel .admin-combo-day-card span,
.admin-console-body .admin-feedback-panel .admin-combo-day-card i {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-feedback-detail-shell {
  gap: 10px;
  padding: 12px;
}

.admin-console-body .admin-feedback-thread-v2 {
  gap: 8px;
}

.admin-console-body .admin-feedback-thread-v2 article {
  border-radius: 8px;
}

/* Admin final audit: compact operations queue without raw-detail spillover. */
.admin-console-body .admin-audit-workspace {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}

.admin-console-body .admin-audit-cluster {
  gap: 8px;
  padding: 10px;
}

.admin-console-body .admin-audit-cluster header {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-console-body .admin-audit-cluster p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.admin-console-body .admin-audit-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.admin-console-body .admin-audit-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  align-items: center;
  border: 1px solid rgba(15, 123, 95, 0.14);
  border-radius: 999px;
  background: #eef8f3;
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  padding: 4px 7px;
}

.admin-console-body .admin-audit-chip.warn {
  border-color: rgba(184, 113, 12, 0.22);
  background: #fff8ea;
  color: #9d5f04;
}

.admin-console-body .admin-audit-chip.error {
  border-color: rgba(185, 74, 63, 0.22);
  background: #fff6f4;
  color: #a83d34;
}

.admin-console-body .admin-audit-chip.source {
  max-width: min(100%, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-audit-next-step,
.admin-console-body .admin-audit-detail-next {
  display: block;
  min-width: 0;
  border: 1px solid rgba(207, 223, 218, 0.76);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
  padding: 7px 8px;
}

.admin-console-body .admin-audit-detail-next {
  display: grid;
  gap: 3px;
}

.admin-console-body .admin-audit-detail-next b {
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-console-body .admin-audit-detail-next p {
  margin: 0;
}

.admin-console-body .admin-audit-detail-next.warn {
  border-color: rgba(184, 113, 12, 0.24);
  background: #fff8ea;
}

.admin-console-body .admin-audit-detail-next.warn b {
  color: #9d5f04;
}

.admin-console-body .admin-audit-detail-next.error {
  border-color: rgba(185, 74, 63, 0.24);
  background: #fff6f4;
}

.admin-console-body .admin-audit-detail-next.error b {
  color: #a83d34;
}

.admin-console-body .admin-audit-cluster footer {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 6px;
}

.admin-console-body .admin-audit-cluster footer span,
.admin-console-body .admin-audit-raw em,
.admin-console-body .admin-audit-detail-facts em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-audit-detail-card {
  gap: 10px;
  padding: 12px;
}

.admin-console-body .admin-audit-detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-console-body .admin-audit-detail-card pre {
  max-height: 180px;
  overflow: auto;
  border-radius: 8px;
  word-break: break-word;
  white-space: pre-wrap;
}

.admin-console-body .admin-audit-tools {
  align-items: end;
}

/* Admin final libraries/overview overflow guard. */
.admin-console-body .admin-library-row,
.admin-console-body .admin-library-item,
.admin-console-body .admin-library-row-path {
  min-width: 0;
}

.admin-console-body .admin-library-row-path {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.admin-console-body .admin-overview-panel .admin-release-dynamics-card,
.admin-console-body .admin-overview-panel .admin-release-dynamics-card .admin-bar-chart {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-console-body .admin-overview-panel .admin-release-dynamics-card > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-console-body .admin-overview-panel .admin-release-dynamics-card .admin-bar-chart * {
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-overview-panel .admin-release-dynamics-card .admin-bar-chart small,
.admin-console-body .admin-overview-panel .admin-release-dynamics-card .admin-bar-chart span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-body .admin-combo-day-strip {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: inline-size;
  overflow-x: hidden;
}

.admin-console-body .admin-combo-day-card {
  min-width: 0;
  max-width: 100%;
}

.admin-console-body .admin-library-table-frame-v3 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: inline-size;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-console-body .admin-library-table-frame-v3 table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

/* Admin final mobile/overflow guard for polished sections. */
.admin-console-body .admin-command-operational-card *,
.admin-console-body .admin-feedback-ticket *,
.admin-console-body .admin-feedback-detail-shell *,
.admin-console-body .admin-audit-cluster *,
.admin-console-body .admin-audit-detail-card * {
  min-width: 0;
}

@media (max-width: 1180px) {
  .admin-console-body .admin-command-operational-card,
  .admin-console-body .admin-feedback-board,
  .admin-console-body .admin-audit-workspace {
    grid-template-columns: 1fr;
  }

  .admin-console-body .admin-feedback-detail,
  .admin-console-body .admin-audit-detail {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .admin-console-body .admin-command-operational-card,
  .admin-console-body .admin-feedback-detail-shell,
  .admin-console-body .admin-audit-detail-card {
    padding: 10px;
  }

  .admin-console-body .admin-command-task-list article,
  .admin-console-body .admin-feedback-ticket header,
  .admin-console-body .admin-feedback-ticket footer,
  .admin-console-body .admin-feedback-ticket-meta,
  .admin-console-body .admin-feedback-detail-context,
  .admin-console-body .admin-feedback-ticket-actions,
  .admin-console-body .admin-feedback-detail-head-v2,
  .admin-console-body .admin-feedback-composer > div,
  .admin-console-body .admin-audit-cluster header,
  .admin-console-body .admin-audit-cluster footer,
  .admin-console-body .admin-audit-detail-facts {
    grid-template-columns: 1fr !important;
  }

  .admin-console-body .admin-command-next-action,
  .admin-console-body .admin-feedback-ticket header b,
  .admin-console-body .admin-feedback-ticket footer span,
  .admin-console-body .admin-feedback-ticket-next span,
  .admin-console-body .admin-feedback-detail-context em,
  .admin-console-body .admin-feedback-next-step span,
  .admin-console-body .admin-audit-cluster footer span,
  .admin-console-body .admin-audit-chip.source,
  .admin-console-body .admin-audit-detail-facts em {
    white-space: normal;
  }

  .admin-console-body .admin-command-task-list button,
  .admin-console-body .admin-feedback-ticket-actions button,
  .admin-console-body .admin-feedback-detail-actions button,
  .admin-console-body .admin-audit-cluster footer button,
  .admin-console-body .admin-audit-detail-card button {
    width: 100%;
  }

  .admin-console-body .admin-output-chart-clean-v3 .admin-combo-day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .admin-console-body .admin-output-chart-clean-v3 .admin-combo-day-card {
    overflow: hidden;
    padding-inline: 4px;
  }

  .admin-console-body .admin-output-chart-clean-v3 .admin-combo-day-card::after {
    display: none;
    content: none;
  }

  .admin-console-body .admin-output-chart-clean-v3 .admin-combo-day-card b,
  .admin-console-body .admin-output-chart-clean-v3 .admin-combo-day-card span {
    display: block;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }
}
