:root {
  --ink: #1f2926;
  --ink-soft: #4d5955;
  --muted: #7a8581;
  --line: #dcded9;
  --line-strong: #c8ccc5;
  --paper: #ffffff;
  --canvas: #f4f1ea;
  --canvas-deep: #e9e5dc;
  --green: #245849;
  --green-strong: #174538;
  --green-soft: #e4eee9;
  --copper: #b66f42;
  --copper-soft: #f1dfd2;
  --danger: #b44343;
  --danger-soft: #f9e8e6;
  --shadow: 0 18px 55px rgba(31, 41, 38, 0.1);
  --shadow-soft: 0 8px 24px rgba(31, 41, 38, 0.07);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

body.busy {
  cursor: progress;
}

body.modal-open {
  overflow: hidden;
}

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

button,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label[tabindex]:focus-visible {
  outline: 3px solid rgba(36, 88, 73, 0.25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #f8f5ef;
  background: var(--green);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

.brand-mark-large {
  width: 58px;
  height: 58px;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.brand-mark-large svg {
  width: 38px;
  height: 38px;
}

.login-view {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(182, 111, 66, 0.1), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(36, 88, 73, 0.11), transparent 35%),
    var(--canvas);
}

.login-card {
  display: grid;
  width: min(1080px, 100%);
  min-height: 640px;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 38, 0.08);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(31, 41, 38, 0.13);
}

.login-visual {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 72px 68px;
  color: #f8f5ef;
  background:
    linear-gradient(145deg, rgba(18, 61, 49, 0.98), rgba(36, 88, 73, 0.96)),
    var(--green);
}

.login-visual::before {
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -135px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 238, 233, 0.2), transparent 66%);
  content: "";
}

.login-visual .eyebrow {
  color: #dfb08e;
}

.login-visual h1 {
  max-width: 460px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.login-visual-copy {
  max-width: 390px;
  margin: 28px 0 0;
  color: rgba(248, 245, 239, 0.7);
  font-size: 16px;
  line-height: 1.8;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-one {
  right: -62px;
  bottom: -90px;
  width: 340px;
  height: 340px;
}

.orbit-two {
  right: 44px;
  bottom: 18px;
  width: 190px;
  height: 190px;
}

.visual-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 8px rgba(182, 111, 66, 0.12);
}

.dot-one {
  right: 218px;
  bottom: 118px;
  width: 10px;
  height: 10px;
}

.dot-two {
  right: 70px;
  bottom: 245px;
  width: 7px;
  height: 7px;
  background: #dfb08e;
}

.login-form-panel {
  display: grid;
  padding: 64px 74px;
  place-items: center;
}

.login-form-wrap {
  width: 100%;
  max-width: 390px;
}

.mobile-brand {
  display: none;
}

.login-form-wrap h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.login-help {
  margin: 14px 0 29px;
  font-size: 14px;
  line-height: 1.75;
}

.login-field {
  margin-bottom: 17px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
textarea,
.token-field input,
.caption-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fbfbf9;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input[type="text"],
input[type="password"],
.token-field input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 126px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus {
  border-color: var(--green);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 88, 73, 0.1);
}

.token-field {
  position: relative;
}

.token-field input {
  height: 52px;
  padding-right: 52px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.icon-button:hover {
  color: var(--green);
  background: var(--green-soft);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.token-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
}

.form-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(36, 88, 73, 0.16);
}

.primary-button:hover {
  border-color: var(--green-strong);
  background: var(--green-strong);
  box-shadow: 0 9px 22px rgba(36, 88, 73, 0.22);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
}

.secondary-button:hover {
  border-color: #afbbb4;
  color: var(--green);
  background: #f8faf8;
}

.icon-only-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.login-button {
  width: 100%;
  height: 52px;
  margin-top: 5px;
}

.login-button svg {
  width: 19px;
  height: 19px;
}

.secure-note {
  display: flex;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.secure-note svg {
  width: 15px;
  height: 15px;
}

.download-entry {
  display: grid;
  margin-top: 18px;
  padding: 13px 14px;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fafaf8;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.download-entry:hover {
  border-color: rgba(36, 88, 73, 0.38);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.download-entry-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--green);
}

.download-entry-icon svg {
  width: 19px;
  height: 19px;
}

.download-entry strong,
.download-entry small {
  display: block;
}

.download-entry strong {
  font-size: 12px;
}

.download-entry small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.download-entry-arrow {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.download-page-body {
  color: #f8f5ef;
  background:
    radial-gradient(circle at 12% 5%, rgba(182, 111, 66, 0.25), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(63, 142, 116, 0.2), transparent 32%),
    #102e26;
}

.download-page {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
}

.download-nav {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.download-brand,
.download-back {
  display: inline-flex;
  align-items: center;
  color: #f8f5ef;
  text-decoration: none;
}

.download-brand {
  gap: 11px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  font-weight: 600;
}

.download-brand .brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.download-back {
  gap: 7px;
  color: rgba(248, 245, 239, 0.72);
  font-size: 12px;
}

.download-back:hover {
  color: white;
}

.download-back svg {
  width: 17px;
  height: 17px;
}

.download-main {
  width: min(920px, 100%);
  margin: 0 auto;
}

.download-intro {
  padding: 68px 0 0;
  text-align: center;
}

.download-intro .download-kicker {
  margin-bottom: 18px;
}

.download-intro h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.download-intro p {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgba(248, 245, 239, 0.58);
  font-size: 13px;
  line-height: 1.8;
}

.download-switcher {
  margin-top: 34px;
}

.download-tabs {
  display: grid;
  width: min(500px, 100%);
  margin: 0 auto 16px;
  padding: 5px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 28, 22, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.download-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(248, 245, 239, 0.62);
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.download-tab[aria-selected="true"] {
  color: var(--green-strong);
  background: #f8f5ef;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.download-tab:active {
  transform: scale(0.985);
}

.download-tab:focus-visible {
  z-index: 1;
  outline-color: rgba(159, 229, 202, 0.72);
}

.download-tab-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.download-tab[aria-selected="true"] .download-tab-icon {
  color: var(--green);
  background: var(--green-soft);
}

.download-tab-icon svg {
  width: 18px;
  height: 18px;
}

.download-tab strong,
.download-tab small {
  display: block;
}

.download-tab strong {
  font-size: 14px;
  font-weight: 800;
}

.download-tab small {
  margin-top: 4px;
  color: inherit;
  font-size: 10px;
  opacity: 0.68;
}

.download-tab-panel {
  padding: 46px 48px 24px;
  border-radius: 28px;
  color: var(--ink);
  background: #f8f5ef;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.version-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
  gap: 48px;
}

.version-label {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.phone-version-label {
  color: #8b4f2f;
  background: var(--copper-soft);
}

.version-overview h2 {
  margin: 17px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.version-overview > p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.version-tags {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 7px;
}

.version-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 700;
}

.version-download-button {
  display: flex;
  min-height: 64px;
  margin-top: 27px;
  padding: 0 18px;
  align-items: center;
  gap: 13px;
  border-radius: 14px;
  color: white;
  background: var(--green);
  box-shadow: 0 13px 28px rgba(36, 88, 73, 0.2);
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.version-download-button:hover {
  background: var(--green-strong);
  box-shadow: 0 16px 32px rgba(36, 88, 73, 0.25);
  transform: translateY(-1px);
}

.version-download-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.version-download-button strong,
.version-download-button small {
  display: block;
}

.version-download-button strong {
  font-size: 13px;
}

.version-download-button small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 600;
}

.version-guide {
  padding: 25px;
  border: 1px solid #dbe4df;
  border-radius: 18px;
  background: #eef3f0;
}

.version-guide-kicker {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.version-guide h3 {
  margin: 7px 0 20px;
  font-size: 18px;
}

.version-guide ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 13px;
  list-style: none;
  counter-reset: version-step;
}

.version-guide li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  counter-increment: version-step;
}

.version-guide li::before {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 88, 73, 0.08);
  font-size: 9px;
  font-weight: 800;
  content: counter(version-step, decimal-leading-zero);
}

.version-guide a {
  color: var(--green);
  font-weight: 700;
}

.version-caveat {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #d7e1dc;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.version-checksum {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.version-checksum summary {
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.version-checksum code {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.version-difference {
  display: flex;
  margin-top: 18px;
  padding: 17px 20px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: rgba(248, 245, 239, 0.58);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  line-height: 1.65;
}

.version-difference strong {
  flex: 0 0 auto;
  color: #efbd98;
  font-size: 11px;
}

.download-hero {
  display: grid;
  padding: 78px 0 72px;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

.download-kicker {
  display: inline-flex;
  margin-bottom: 23px;
  padding: 7px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(223, 176, 142, 0.35);
  border-radius: 999px;
  color: #f2c5a4;
  background: rgba(182, 111, 66, 0.11);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.download-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e6a87a;
  box-shadow: 0 0 0 5px rgba(230, 168, 122, 0.12);
  content: "";
}

.download-copy h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.download-lead {
  max-width: 620px;
  margin: 25px 0 0;
  color: rgba(248, 245, 239, 0.68);
  font-size: 15px;
  line-height: 1.85;
}

.download-lead strong {
  color: #fff;
  font-weight: 760;
}

.download-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.apk-download-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 23px;
  align-items: center;
  gap: 11px;
  border-radius: 14px;
  color: var(--green-strong);
  background: #f8f5ef;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.apk-download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.apk-download-button svg {
  width: 21px;
  height: 21px;
}

.download-text-link {
  padding: 9px 2px;
  border-bottom: 1px solid rgba(248, 245, 239, 0.24);
  color: rgba(248, 245, 239, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.download-text-link:hover {
  border-color: #f2c5a4;
  color: white;
}

.hero-meta {
  display: flex;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(248, 245, 239, 0.52);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 700;
}

.download-version {
  color: rgba(248, 245, 239, 0.58);
  font-size: 11px;
  line-height: 1.6;
}

.download-device {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 40%, rgba(92, 190, 152, 0.2), transparent 44%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.recognition-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 270px;
  place-items: center;
}

.stage-corner {
  position: absolute;
  width: 38px;
  height: 38px;
  color: rgba(97, 211, 168, 0.7);
}

.corner-top-left {
  top: 12px;
  left: 2px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 9px 0 0;
}

.corner-top-right {
  top: 12px;
  right: 2px;
  border-top: 1px solid;
  border-right: 1px solid;
  border-radius: 0 9px 0 0;
}

.corner-bottom-left {
  bottom: 12px;
  left: 2px;
  border-bottom: 1px solid;
  border-left: 1px solid;
  border-radius: 0 0 0 9px;
}

.corner-bottom-right {
  right: 2px;
  bottom: 12px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 9px;
}

.recognition-label {
  position: absolute;
  bottom: 26px;
  padding: 7px 11px;
  border: 1px solid rgba(97, 211, 168, 0.22);
  border-radius: 999px;
  color: #9fe5ca;
  background: rgba(24, 78, 62, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.glasses-illustration {
  width: 100%;
  max-width: 360px;
  color: #e5f2ec;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.26));
}

.glasses-illustration path,
.glasses-illustration circle {
  stroke-width: 1.15;
}

.device-status {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 245, 239, 0.72);
  font-size: 10px;
}

.device-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61d3a8;
  box-shadow: 0 0 0 6px rgba(97, 211, 168, 0.1);
  content: "";
}

.phone-device {
  min-height: 430px;
}

.phone-frame {
  position: relative;
  width: 210px;
  height: 354px;
  padding: 18px 10px 11px;
  border: 2px solid rgba(248, 245, 239, 0.65);
  border-radius: 34px;
  background: rgba(9, 36, 29, 0.82);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(255, 255, 255, 0.035);
}

.phone-camera {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.22);
  transform: translateX(-50%);
}

.phone-viewfinder {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(97, 211, 168, 0.23), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.phone-viewfinder > svg {
  width: 112px;
  color: rgba(229, 242, 236, 0.85);
}

.phone-viewfinder > span:last-child {
  position: absolute;
  bottom: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(97, 211, 168, 0.22);
  border-radius: 999px;
  color: #9fe5ca;
  background: rgba(24, 78, 62, 0.82);
  font-size: 9px;
  font-weight: 800;
}

.download-details {
  display: grid;
  margin-top: 22px;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}

.platform-content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.platform-summary-panel h2 {
  margin-top: 7px;
  margin-bottom: 12px;
}

.platform-summary-panel .package-capabilities {
  margin-top: 18px;
}

.download-boundary-note {
  margin-top: 52px;
}

.download-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.download-panel h2 {
  margin: 0 0 19px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 500;
}

.download-panel p {
  margin: 0;
  color: rgba(248, 245, 239, 0.66);
  font-size: 12px;
  line-height: 1.8;
}

.app-facts {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.app-facts div {
  padding: 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.app-facts dt {
  margin-bottom: 6px;
  color: rgba(248, 245, 239, 0.46);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-facts dd {
  margin: 0;
  color: rgba(248, 245, 239, 0.86);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.install-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
  counter-reset: install-step;
}

.install-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: rgba(248, 245, 239, 0.72);
  font-size: 12px;
  line-height: 1.6;
  counter-increment: install-step;
}

.install-steps li::before {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(223, 176, 142, 0.32);
  border-radius: 10px;
  color: #efbd98;
  background: rgba(182, 111, 66, 0.1);
  font-size: 11px;
  font-weight: 800;
  content: counter(install-step, decimal-leading-zero);
}

.download-footer {
  display: flex;
  margin-top: 22px;
  padding: 18px 2px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(248, 245, 239, 0.42);
  font-size: 10px;
  line-height: 1.6;
}

.download-footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.package-section,
.test-flow-section {
  scroll-margin-top: 24px;
  padding: 48px 0 0;
}

.download-section-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.download-section-heading h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.download-section-heading > p {
  width: min(360px, 40%);
  margin: 0 0 3px;
  color: rgba(248, 245, 239, 0.48);
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

.section-kicker {
  color: #dfb08e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.package-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.package-card-recommended {
  border-color: rgba(97, 211, 168, 0.28);
  background:
    radial-gradient(circle at 96% 0%, rgba(97, 211, 168, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.065);
}

.package-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.package-heading > div {
  min-width: 0;
}

.package-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  color: #dbeae4;
  background: rgba(255, 255, 255, 0.06);
}

.package-icon svg {
  width: 24px;
  height: 24px;
}

.phone-icon {
  color: #9fe5ca;
  background: rgba(97, 211, 168, 0.08);
}

.recommended-badge,
.device-badge {
  display: block;
  margin-bottom: 6px;
  color: #83d9b8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-badge {
  color: #e5ae85;
}

.package-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.package-card > p {
  min-height: 68px;
  margin: 22px 0 0;
  color: rgba(248, 245, 239, 0.58);
  font-size: 11px;
  line-height: 1.8;
}

.package-capabilities {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 9px;
  color: rgba(248, 245, 239, 0.72);
  font-size: 10px;
  list-style: none;
}

.package-capabilities li {
  position: relative;
  padding-left: 18px;
  line-height: 1.55;
}

.package-capabilities li::before {
  position: absolute;
  top: 0.3em;
  left: 1px;
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid #68d1aa;
  border-left: 1.5px solid #68d1aa;
  content: "";
  transform: rotate(-45deg);
}

.package-download-row {
  display: flex;
  margin-top: 26px;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.package-download-row > span {
  color: rgba(248, 245, 239, 0.38);
  font-size: 9px;
}

.package-download-button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  color: #113e32;
  background: #9fe5ca;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.package-download-button:hover {
  background: #b6ecd7;
  transform: translateY(-1px);
}

.package-download-button svg {
  width: 17px;
  height: 17px;
}

.secondary-package-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8f5ef;
  background: rgba(255, 255, 255, 0.08);
}

.secondary-package-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.test-flow-section {
  padding-top: 74px;
}

.compact-section-heading {
  margin-bottom: 28px;
}

.test-flow {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
}

.test-flow li {
  min-width: 0;
  min-height: 210px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-number {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(223, 176, 142, 0.27);
  border-radius: 10px;
  color: #efbd98;
  background: rgba(182, 111, 66, 0.08);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 800;
}

.test-flow h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.test-flow p {
  margin: 0;
  color: rgba(248, 245, 239, 0.5);
  font-size: 10px;
  line-height: 1.75;
}

.test-flow a {
  color: #9fe5ca;
}

.photo-guidance {
  display: flex;
  margin-top: 13px;
  padding: 15px 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  color: rgba(248, 245, 239, 0.5);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9px;
}

.photo-guidance strong {
  margin-right: 2px;
  color: rgba(248, 245, 239, 0.82);
  font-size: 10px;
}

.photo-guidance span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.photo-guidance span::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #dfb08e;
  content: "";
}

.boundary-panel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border-color: rgba(223, 176, 142, 0.18);
  background: rgba(182, 111, 66, 0.055);
}

.panel-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #efbd98;
  background: rgba(182, 111, 66, 0.1);
}

.panel-icon svg {
  width: 20px;
  height: 20px;
}

.boundary-panel h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.install-panel h2 {
  font-size: 20px;
}

.checksum-panel {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(248, 245, 239, 0.52);
  background: rgba(255, 255, 255, 0.025);
}

.checksum-panel summary {
  padding: 17px 19px;
  color: rgba(248, 245, 239, 0.65);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.checksum-panel dl {
  display: grid;
  margin: 0;
  padding: 0 19px 19px;
  gap: 11px;
}

.checksum-panel dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.checksum-panel dt {
  color: rgba(248, 245, 239, 0.42);
  font-size: 9px;
}

.checksum-panel dd {
  min-width: 0;
  margin: 0;
}

.checksum-panel code {
  color: rgba(248, 245, 239, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.checksum-panel > code {
  display: block;
  padding: 0 19px 19px;
}

.download-footer a {
  color: rgba(248, 245, 239, 0.62);
  text-decoration: none;
}

.download-footer a:hover {
  color: white;
}

.admin-view {
  --admin-page-title: clamp(34px, 3.5vw, 44px);
  --admin-section-title: 20px;
  --admin-card-title: 15px;
  --admin-body-text: 14px;
  --admin-label-text: 13px;
  --admin-meta-text: 12px;
  min-height: 100vh;
  background: var(--canvas);
}

.admin-view .eyebrow {
  font-size: var(--admin-meta-text);
}

.admin-view .primary-button,
.admin-view .secondary-button {
  font-size: var(--admin-label-text);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 76px;
  padding: 0 30px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(31, 41, 38, 0.09);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.topbar-brand strong,
.topbar-brand span {
  display: block;
}

.topbar-brand strong {
  margin-bottom: 2px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.topbar-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  min-height: 46px;
  padding: 4px 8px 4px 5px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.user-menu-button:hover,
.user-menu-button[aria-expanded="true"] {
  border-color: var(--line);
  background: #f7f7f4;
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-username {
  max-width: 120px;
  overflow: hidden;
  font-size: var(--admin-label-text);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 150ms ease;
}

.user-menu-button[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-popover {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(31, 41, 38, 0.11);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 46px rgba(31, 41, 38, 0.16);
}

.user-menu-heading {
  display: flex;
  padding: 8px;
  align-items: center;
  gap: 10px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 11px;
}

.user-menu-heading small,
.user-menu-heading strong {
  display: block;
}

.user-menu-heading small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.user-menu-heading strong {
  font-size: var(--admin-label-text);
}

.user-menu-divider {
  height: 1px;
  margin: 5px 0;
  background: var(--line);
}

.user-menu-popover > button {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: var(--admin-label-text);
  font-weight: 700;
  cursor: pointer;
}

.user-menu-popover > button:hover {
  color: var(--green);
  background: var(--green-soft);
}

.user-menu-popover > button svg {
  width: 18px;
  height: 18px;
}

.password-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 90px rgba(31, 41, 38, 0.24);
}

.password-dialog::backdrop {
  background: rgba(19, 30, 27, 0.46);
  backdrop-filter: blur(3px);
}

.password-form {
  padding: 28px;
}

.password-dialog-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.password-dialog-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.password-dialog-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--admin-label-text);
}

.password-field {
  display: grid;
  margin-top: 15px;
  gap: 7px;
  color: var(--ink-soft);
  font-size: var(--admin-label-text);
  font-weight: 700;
}

.password-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fafaf8;
}

.password-field input:focus {
  border-color: var(--green);
  outline: 0;
  background: white;
  box-shadow: 0 0 0 3px rgba(36, 88, 73, 0.1);
}

.password-field small {
  color: var(--muted);
  font-size: var(--admin-meta-text);
  font-weight: 500;
}

.password-form-error {
  min-height: 18px;
  margin: 12px 0 0;
}

.password-dialog-actions {
  display: flex;
  margin-top: 16px;
  justify-content: flex-end;
  gap: 9px;
}

.connection-state {
  display: inline-flex;
  height: 36px;
  margin-right: 4px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e3dc;
  border-radius: 999px;
  color: var(--green);
  background: #f3f8f5;
  font-size: var(--admin-meta-text);
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55a078;
  box-shadow: 0 0 0 4px rgba(85, 160, 120, 0.13);
}

.compact-button {
  min-height: 38px;
  padding: 0 13px;
}

.workspace {
  min-height: calc(100vh - 76px);
}

.catalog-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.catalog-heading h1 {
  margin: 0 0 9px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: var(--admin-page-title);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.catalog-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: var(--admin-body-text);
}

.catalog-stats {
  display: grid;
  margin: 30px 0 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  position: relative;
  min-height: 124px;
  padding: 21px 23px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 38, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: rgba(36, 88, 73, 0.07);
  content: "";
}

.stat-card.online::after {
  background: rgba(85, 160, 120, 0.11);
}

.stat-card.offline::after {
  background: rgba(182, 111, 66, 0.1);
}

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

.stat-card span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--admin-label-text);
  font-weight: 750;
}

.stat-card strong {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}

.stat-card small {
  margin-top: 8px;
  color: #929a96;
  font-size: var(--admin-meta-text);
}

.catalog-panel {
  overflow: hidden;
  scroll-margin-top: 92px;
  border: 1px solid rgba(31, 41, 38, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.catalog-tools {
  display: flex;
  min-height: 78px;
  padding: 15px 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-search {
  position: relative;
  flex: 1;
}

.catalog-search > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fafaf8;
  font-size: var(--admin-body-text);
}

.catalog-search input[type="search"]:focus {
  border-color: var(--green);
  outline: 0;
  background: white;
  box-shadow: 0 0 0 3px rgba(36, 88, 73, 0.1);
}

.catalog-search .icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
}

.status-filter-label {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.status-filter-label select {
  height: 46px;
  min-width: 132px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fafaf8;
  font-size: var(--admin-label-text);
}

.table-select-all input,
.content-selection input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.batch-operation {
  position: relative;
}

.batch-operation-button {
  min-width: 86px;
  min-height: 42px;
  padding: 0 13px;
  justify-content: center;
  font-size: var(--admin-label-text);
}

.batch-operation-button svg {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.batch-operation-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.batch-operation-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  width: 156px;
  padding: 7px;
  border: 1px solid rgba(31, 41, 38, 0.11);
  border-radius: 13px;
  background: white;
  box-shadow: 0 16px 38px rgba(31, 41, 38, 0.15);
}

.batch-operation-menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: var(--admin-label-text);
  font-weight: 700;
  cursor: pointer;
}

.batch-operation-menu button:not(:disabled):hover {
  color: var(--green);
  background: var(--green-soft);
}

.batch-operation-menu button:disabled {
  color: #aeb4b1;
  cursor: not-allowed;
}

.batch-operation-menu button svg {
  width: 17px;
  height: 17px;
}

.batch-operation-menu .batch-offline-menu-item:not(:disabled) {
  color: #925636;
}

.batch-operation-menu .batch-offline-menu-item:not(:disabled):hover {
  background: #f8ece4;
}

.content-table-heading,
.content-item {
  display: grid;
  grid-template-columns: 42px minmax(280px, 1.6fr) 100px 70px 170px 100px;
  align-items: center;
  gap: 12px;
}

.content-table-heading {
  min-height: 42px;
  padding: 0 20px;
  color: #8e9792;
  background: #f7f7f4;
  font-size: var(--admin-meta-text);
  font-weight: 800;
  letter-spacing: 0.045em;
}

.content-list {
  display: grid;
}

.catalog-pagination {
  display: flex;
  min-height: 56px;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}

.pagination-controls,
.page-size-label,
.page-buttons {
  display: flex;
  align-items: center;
}

.catalog-result-count {
  color: var(--muted);
  font-size: var(--admin-label-text);
  font-weight: 600;
  line-height: 1;
}

.pagination-controls {
  gap: 14px;
}

.page-size-label {
  margin: 0;
  gap: 8px;
  color: var(--muted);
  font-size: var(--admin-label-text);
  font-weight: 600;
  line-height: 1;
}

.page-size-label > span,
.page-summary {
  display: inline-flex;
  height: 34px;
  align-items: center;
}

.page-size-label select {
  appearance: none;
  height: 34px;
  min-width: 78px;
  padding: 0 27px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8581' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 15px 15px;
  font-size: var(--admin-label-text);
  font-weight: 600;
  line-height: 1;
}

.page-summary {
  min-width: 88px;
  color: var(--muted);
  font-size: var(--admin-label-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  text-align: center;
}

.page-buttons {
  gap: 6px;
}

.page-buttons .pagination-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.page-buttons .pagination-button svg {
  width: 16px;
  height: 16px;
}

.content-item {
  min-height: 104px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

.content-item:last-child {
  border-bottom: 0;
}

.content-item:hover {
  background: #fbfbf9;
}

.content-item.selected {
  background: #f2f7f4;
  box-shadow: inset 3px 0 var(--green);
}

.content-selection {
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
}

.content-selection:hover {
  background: rgba(36, 88, 73, 0.08);
}

.table-select-all {
  align-self: center;
  justify-self: start;
}

.content-primary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  cursor: pointer;
}

.content-primary:focus-visible {
  outline: 3px solid rgba(36, 88, 73, 0.2);
  outline-offset: 4px;
}

.content-thumb {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e5e7e3;
}

.content-item-copy {
  min-width: 0;
}

.content-item-copy strong,
.content-item-copy code,
.content-item-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-item-copy strong {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 780;
}

.content-item-copy code {
  margin-bottom: 7px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.content-item-copy span {
  max-width: 440px;
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.publish-status {
  display: inline-flex;
  width: max-content;
  min-height: 27px;
  padding: 0 10px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: var(--admin-meta-text);
  font-weight: 800;
  white-space: nowrap;
}

.publish-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.publish-status.online {
  color: #287252;
  background: #e6f2eb;
}

.publish-status.offline {
  color: #8a6251;
  background: #f3e9e2;
}

.publish-status.draft,
.publish-status.dirty {
  color: #9b602f;
  background: #f5e5d7;
}

.table-version,
.table-updated {
  color: var(--muted);
  font-size: var(--admin-meta-text);
  font-variant-numeric: tabular-nums;
}

.content-item-actions,
.editor-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.content-item-actions .primary-button {
  min-width: 76px;
  justify-content: center;
}

.take-offline {
  color: #8a6251;
}

.put-online {
  color: var(--green);
  border-color: #b8d1c6;
  background: #eff6f2;
}

.catalog-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
}

.catalog-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.catalog-empty strong {
  color: var(--ink-soft);
  font-size: var(--admin-card-title);
}

.catalog-empty span {
  font-size: var(--admin-meta-text);
}

.detail-main {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 76px;
}

.detail-shell {
  width: 100%;
}

.detail-toolbar {
  position: sticky;
  z-index: 12;
  top: 76px;
  display: grid;
  min-height: 78px;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(31, 41, 38, 0.1);
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(18px);
}

.detail-toolbar > :first-child {
  justify-self: start;
}

.detail-toolbar-copy {
  text-align: center;
}

.detail-toolbar-copy strong,
.detail-toolbar-copy span {
  display: block;
}

.detail-toolbar-copy strong {
  margin-bottom: 3px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.detail-toolbar-copy span {
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.detail-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
}

.detail-heading {
  padding: 42px 0 27px;
}

.detail-heading h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: var(--admin-page-title);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.detail-heading .muted {
  margin: 0;
  font-size: var(--admin-label-text);
}

.detail-panel {
  margin-bottom: 18px;
  padding: 30px;
}

.detail-fields {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-fields > div {
  min-width: 0;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafaf8;
}

.detail-fields .detail-summary-field {
  grid-column: 1 / -1;
}

.detail-fields dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--admin-meta-text);
  font-weight: 750;
}

.detail-fields dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-summary-field dd {
  font-weight: 500;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.detail-media-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafaf8;
}

.detail-block-heading {
  display: flex;
  min-height: 30px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-block-heading h3 {
  margin: 0;
  font-size: var(--admin-card-title);
}

.detail-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-image-gallery figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas-deep);
}

.detail-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-gallery figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: rgba(20, 35, 30, 0.72);
  font-size: 11px;
  font-weight: 750;
  line-height: 23px;
  backdrop-filter: blur(8px);
}

.detail-media-block audio {
  width: 100%;
  margin-top: 6px;
}

.detail-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: var(--admin-meta-text);
  text-align: center;
}

.detail-caption-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-caption-row {
  display: grid;
  min-height: 66px;
  padding: 13px 16px;
  grid-template-columns: 42px 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #fafaf8;
}

.detail-caption-row:last-child {
  border-bottom: 0;
}

.detail-caption-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 750;
}

.detail-caption-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--admin-meta-text);
  font-variant-numeric: tabular-nums;
}

.detail-caption-row p {
  margin: 0;
  font-size: var(--admin-body-text);
  line-height: 1.7;
}

.version-badge,
.content-id,
.asset-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.editor-main {
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 76px) 74px;
}

.admin-view.editor-mode .editor-main {
  position: fixed;
  z-index: 50;
  inset: 0;
  padding: 0 clamp(24px, 5vw, 72px) 84px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 8% 4%, rgba(182, 111, 66, 0.08), transparent 25%),
    var(--canvas);
}

.admin-view.editor-mode .editor-form {
  width: min(1160px, 100%);
  scroll-margin-top: 0;
}

.admin-view.editor-mode .editor-heading {
  margin-top: 34px;
}

.admin-view.editor-mode .desktop-save {
  display: none;
}

.admin-view.editor-mode .save-bar {
  display: none;
}

.editor-form {
  width: min(1080px, 100%);
  margin: 0 auto;
  scroll-margin-top: 104px;
}

.create-dialog-toolbar {
  position: sticky;
  z-index: 12;
  top: 0;
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(31, 41, 38, 0.1);
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(18px);
}

.create-dialog-toolbar > :first-child {
  justify-self: start;
}

.create-dialog-toolbar > :last-child {
  justify-self: end;
}

.create-dialog-title {
  text-align: center;
}

.create-dialog-title span,
.create-dialog-title small {
  display: block;
}

.create-dialog-title span {
  margin-bottom: 3px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.create-dialog-title small {
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.panel.ai-create-panel {
  display: grid;
  margin-bottom: 18px;
  padding: 28px 30px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  color: #f8f5ef;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 88% 0%, rgba(223, 176, 142, 0.25), transparent 36%),
    linear-gradient(140deg, var(--green-strong), var(--green));
  box-shadow: 0 18px 45px rgba(23, 69, 56, 0.18);
}

.ai-create-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 19px;
  color: #f1c2a1;
  background: rgba(255, 255, 255, 0.08);
}

.ai-create-icon svg {
  width: 30px;
  height: 30px;
}

.ai-create-copy .eyebrow {
  margin-bottom: 5px;
  color: #dfb08e;
}

.ai-create-copy h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.ai-create-copy > p:last-of-type {
  max-width: 620px;
  margin: 0;
  color: rgba(248, 245, 239, 0.7);
  font-size: var(--admin-label-text);
  line-height: 1.7;
}

.figurine-name-field {
  max-width: 520px;
  margin-top: 15px;
}

.figurine-name-field label {
  margin-bottom: 6px;
  color: rgba(248, 245, 239, 0.82);
  font-size: var(--admin-label-text);
}

.figurine-name-field input[type="text"] {
  height: 46px;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.figurine-name-field input::placeholder {
  color: #8d9692;
}

.ai-create-steps {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(248, 245, 239, 0.76);
  font-size: var(--admin-meta-text);
  font-weight: 700;
}

.ai-create-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-create-steps b {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-strong);
  background: #dfb08e;
  font-size: 11px;
}

.ai-create-actions {
  display: grid;
  min-width: 222px;
  gap: 9px;
}

.ai-create-actions .secondary-button,
.ai-create-actions .primary-button {
  width: 100%;
  justify-content: center;
}

.ai-create-actions label.secondary-button {
  margin: 0;
  color: #f8f5ef;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.ai-create-actions label.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.ai-create-actions .primary-button {
  color: var(--green-strong);
  background: #f4dfcf;
}

.ai-create-actions .primary-button:hover {
  background: #f8e9dd;
}

.ai-generate-status {
  margin: 0;
  color: rgba(248, 245, 239, 0.62);
  font-size: var(--admin-meta-text);
  text-align: center;
}

.ai-generate-status.generating {
  color: #f3c5a5;
}

.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 31px;
  height: 31px;
  border: 3px solid rgba(36, 88, 73, 0.14);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.editor-heading {
  display: flex;
  margin-bottom: 27px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.heading-meta {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  gap: 8px;
}

.content-id {
  min-height: 25px;
  padding: 0 10px;
  color: var(--green);
  background: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.content-id-input {
  width: min(320px, 55vw);
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(36, 88, 73, 0.25);
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.version-badge {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: var(--admin-meta-text);
  font-weight: 700;
}

.editor-heading h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: var(--admin-page-title);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.editor-heading .muted {
  margin: 0;
  font-size: var(--admin-label-text);
}

.desktop-save {
  flex: 0 0 auto;
}

.panel {
  border: 1px solid rgba(31, 41, 38, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
}

.form-panel {
  margin-bottom: 18px;
  padding: 30px;
}

.section-heading {
  display: grid;
  margin-bottom: 26px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.section-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d5e1db;
  border-radius: 11px;
  color: var(--green);
  background: #f0f5f2;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0 0 5px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: var(--admin-section-title);
  font-weight: 600;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--admin-label-text);
  line-height: 1.6;
}

.recognition-note {
  display: grid;
  margin: -7px 0 22px;
  padding: 14px 16px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #d9e5df;
  border-radius: 12px;
  color: var(--green);
  background: #f1f6f3;
}

.recognition-note svg {
  width: 19px;
  height: 19px;
  margin-top: 1px;
}

.recognition-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--admin-meta-text);
  line-height: 1.7;
}

.recognition-note strong {
  color: var(--green);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-hint {
  display: flex;
  margin-top: 7px;
  justify-content: space-between;
  gap: 15px;
  color: #929a96;
  font-size: var(--admin-meta-text);
}

.field-hint span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.media-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafaf8;
}

.media-card-heading {
  display: flex;
  min-height: 43px;
  margin-bottom: 14px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.media-card-heading h3 {
  margin: 0 0 4px;
  font-size: var(--admin-card-title);
  font-weight: 800;
}

.media-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.photo-capture-panel {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #d5e1db;
  border-radius: 13px;
  background: #f0f5f2;
}

.photo-capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-capture-actions .primary-button,
.photo-capture-actions .secondary-button {
  min-width: 0;
  margin: 0;
  justify-content: center;
}

.camera-button {
  cursor: pointer;
}

.photo-progress {
  display: flex;
  margin-top: 11px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.photo-progress strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: var(--admin-label-text);
}

.photo-progress span {
  color: var(--muted);
  font-size: var(--admin-meta-text);
  line-height: 1.45;
  text-align: right;
}

.photo-angle-guide {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.photo-angle-guide span {
  display: grid;
  min-height: 26px;
  place-items: center;
  border: 1px dashed #b8c8c0;
  border-radius: 8px;
  color: #72817a;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 750;
  transition: 160ms ease;
}

.photo-angle-guide span.done {
  border-style: solid;
  border-color: #9dc2b1;
  color: #287252;
  background: #dfeee6;
}

.photo-angle-guide span.done::before {
  margin-right: 3px;
  content: "✓";
}

.asset-size {
  min-height: 23px;
  padding: 0 8px;
  color: var(--muted);
  background: #eceeea;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.image-dropzone {
  position: relative;
  display: block;
  height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px dashed #bdc5bf;
  border-radius: 12px;
  background: #e7e9e5;
  cursor: pointer;
}

.image-dropzone.dragging {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 4px rgba(36, 88, 73, 0.09);
}

.image-dropzone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.image-dropzone:hover img {
  transform: scale(1.025);
}

.image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: linear-gradient(180deg, transparent 45%, rgba(16, 34, 28, 0.74));
  opacity: 0;
  transition: opacity 160ms ease;
}

.dropzone-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.dropzone-icon svg {
  width: 18px;
  height: 18px;
}

.dropzone-copy strong,
.dropzone-copy small {
  display: block;
}

.dropzone-copy strong {
  font-size: var(--admin-body-text);
}

.dropzone-copy small {
  margin-top: 4px;
  font-size: var(--admin-meta-text);
  font-weight: 550;
  opacity: 0.72;
}

.image-dropzone:not(.has-images) .image-overlay {
  color: var(--green);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(228, 238, 233, 0.9));
  opacity: 1;
}

.image-dropzone:not(.has-images) .dropzone-copy {
  color: var(--ink-soft);
  text-align: left;
}

.image-dropzone.dragging .image-overlay {
  color: var(--green-strong);
  background: rgba(228, 238, 233, 0.94);
  opacity: 1;
}

.image-dropzone:hover .image-overlay,
.image-dropzone.dragging .image-overlay {
  opacity: 1;
}

.image-gallery {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #e7e9e5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: white;
  background: rgba(16, 34, 28, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.gallery-item.pending {
  border-color: #d69a72;
  box-shadow: inset 0 0 0 1px rgba(182, 111, 66, 0.16);
}

.gallery-remove {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: white;
  background: rgba(20, 35, 30, 0.76);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.gallery-remove:hover {
  background: var(--danger);
}

.gallery-remove svg {
  width: 14px;
  height: 14px;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-selection {
  min-width: 0;
  margin: 10px 1px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--admin-meta-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-selection.pending {
  color: var(--copper);
  font-weight: 700;
}

.audio-card {
  display: flex;
  flex-direction: column;
}

.audio-visual {
  display: flex;
  min-height: 123px;
  margin-bottom: 14px;
  padding: 17px;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--green);
  background:
    radial-gradient(circle at 92% 15%, rgba(182, 111, 66, 0.12), transparent 35%),
    var(--green-soft);
}

.audio-icon {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 19px;
  color: white;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(36, 88, 73, 0.2);
}

.audio-icon svg {
  width: 29px;
  height: 29px;
}

.waveform {
  display: flex;
  min-width: 0;
  height: 65px;
  flex: 1;
  align-items: center;
  gap: 4px;
  opacity: 0.64;
}

.waveform i {
  width: 3px;
  min-height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.waveform i:nth-child(3n + 1) { height: 28%; }
.waveform i:nth-child(3n + 2) { height: 72%; }
.waveform i:nth-child(4n) { height: 95%; }
.waveform i:nth-child(5n) { height: 48%; }
.waveform i:nth-child(7n) { height: 34%; }

audio {
  width: 100%;
  height: 40px;
  color-scheme: light;
}

.audio-actions {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
  align-items: center;
  gap: 12px;
}

.upload-button {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.audio-actions .file-selection {
  margin: 0;
}

.captions-section-heading {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.add-caption {
  align-self: center;
}

.caption-table-heading,
.caption-row {
  display: grid;
  grid-template-columns: 38px 112px 112px minmax(170px, 1fr) 40px;
  align-items: center;
  gap: 9px;
}

.caption-table-heading {
  padding: 0 9px 9px;
  color: #929a96;
  font-size: var(--admin-meta-text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.caption-list {
  display: grid;
  gap: 7px;
}

.caption-row {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafaf8;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.caption-row:focus-within {
  border-color: rgba(36, 88, 73, 0.35);
  background: white;
}

.caption-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
}

.caption-input {
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: var(--admin-label-text);
}

.caption-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.delete-caption {
  width: 34px;
  height: 34px;
  color: #9b7772;
}

.delete-caption:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.caption-error {
  margin-top: 10px;
}

.save-bar {
  position: sticky;
  z-index: 10;
  bottom: 16px;
  display: flex;
  width: calc(100% - 24px);
  min-height: 72px;
  margin: 30px 12px 0;
  padding: 12px 14px 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(31, 41, 38, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(31, 41, 38, 0.14);
  backdrop-filter: blur(16px);
}

.save-bar strong,
.save-bar span {
  display: block;
}

.save-bar strong {
  margin-bottom: 4px;
  font-size: var(--admin-label-text);
}

.save-bar > div > span {
  color: var(--muted);
  font-size: var(--admin-meta-text);
}

.mobile-editor-actions {
  display: none;
}

.admin-view.create-mode .generated-test-detail,
.admin-view.create-mode .editor-heading,
.admin-view.create-mode .save-bar,
.admin-view.create-mode #create-save-button,
.admin-view.create-mode .mobile-publish-action {
  display: none;
}

.admin-view.create-mode .editor-toolbar-actions {
  display: none;
}

.admin-view.create-mode .media-grid {
  grid-template-columns: minmax(0, 1fr);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(31, 41, 38, 0.12);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
  animation: toast-in 220ms ease both;
}

.toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
}

.toast.error .toast-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.toast span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 980px) {
  .download-hero {
    gap: 36px;
  }

  .test-flow {
    grid-template-columns: 1fr 1fr;
  }

  .login-card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .login-visual {
    padding: 58px 45px;
  }

  .login-form-panel {
    padding: 54px 46px;
  }

  .catalog-page {
    width: min(100% - 36px, 920px);
  }

  .content-table-heading,
  .content-item {
    grid-template-columns: 42px minmax(250px, 1.5fr) 92px 145px 180px;
  }

  .content-table-heading span:nth-child(4),
  .table-version {
    display: none;
  }

  .editor-main {
    padding: 36px 25px 68px;
  }

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

  .ai-create-panel {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .ai-create-actions {
    min-width: 0;
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

  .ai-create-actions .ai-generate-button {
    grid-column: 1 / -1;
  }

  .ai-generate-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .download-page {
    width: min(100% - 30px, 560px);
    padding-top: 18px;
  }

  .download-nav {
    min-height: 46px;
  }

  .download-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .download-brand {
    font-size: 14px;
  }

  .download-intro {
    padding-top: 48px;
  }

  .download-intro h1 {
    font-size: 42px;
  }

  .download-switcher {
    margin-top: 32px;
  }

  .download-hero {
    padding: 48px 0 38px;
    grid-template-columns: 1fr;
  }

  .download-tabs {
    margin-top: 0;
  }

  .download-tab-panel {
    padding: 34px 30px 22px;
  }

  .version-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .version-guide {
    padding: 22px;
  }

  .version-difference {
    align-items: flex-start;
  }

  .download-device {
    min-height: 300px;
    grid-row: 1;
  }

  .download-copy h1 {
    font-size: clamp(41px, 13vw, 58px);
  }

  .download-details {
    grid-template-columns: 1fr;
  }

  .platform-content-grid {
    grid-template-columns: 1fr;
  }

  .download-section-heading {
    display: block;
  }

  .download-section-heading > p {
    width: 100%;
    margin-top: 12px;
    text-align: left;
  }

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

  .test-flow-section {
    padding-top: 58px;
  }

  .test-flow {
    grid-template-columns: 1fr 1fr;
  }

  .test-flow li {
    min-height: 190px;
  }

  .download-panel {
    padding: 24px 20px;
  }

  .download-footer {
    display: block;
  }

  .download-footer code {
    display: block;
    margin-top: 7px;
  }

  .login-view {
    padding: 16px;
  }

  .login-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 23px;
  }

  .login-visual {
    display: none;
  }

  .login-form-panel {
    min-height: calc(100vh - 32px);
    padding: 38px 28px;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 74px;
    align-items: center;
    gap: 10px;
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-weight: 600;
  }

  .mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .topbar {
    height: 66px;
    padding: 0 16px;
  }

  .topbar-brand span,
  .connection-state,
  .current-username,
  .user-menu-chevron {
    display: none;
  }

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

  .topbar .brand-mark {
    width: 36px;
    height: 36px;
  }

  .topbar-actions {
    gap: 3px;
  }

  .user-menu-button {
    padding: 4px;
  }

  .workspace {
    display: block;
    min-height: calc(100vh - 66px);
  }

  .catalog-page {
    width: min(100% - 28px, 620px);
    padding: 30px 0 54px;
  }

  .catalog-heading {
    align-items: flex-start;
  }

  .catalog-heading h1 {
    font-size: var(--admin-page-title);
  }

  .catalog-heading > div > p:last-child {
    display: none;
  }

  .catalog-heading .primary-button {
    min-height: 42px;
    padding: 0 13px;
  }

  .catalog-stats {
    margin-top: 22px;
    gap: 8px;
  }

  .stat-card {
    min-height: 92px;
    padding: 15px 13px;
    border-radius: 15px;
  }

  .stat-card span {
    margin-bottom: 6px;
    font-size: var(--admin-meta-text);
  }

  .stat-card strong {
    font-size: 28px;
  }

  .stat-card small {
    display: none;
  }

  .catalog-panel {
    border-radius: 18px;
  }

  .catalog-tools {
    display: grid;
    padding: 13px;
    grid-template-columns: 1fr auto;
  }

  .catalog-search {
    grid-column: 1 / -1;
  }

  .status-filter-label > span {
    display: none;
  }

  .status-filter-label select {
    min-width: 126px;
  }

  .batch-operation {
    justify-self: end;
  }

  .catalog-pagination {
    padding: 10px 13px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .catalog-result-count {
    font-size: var(--admin-meta-text);
  }

  .pagination-controls {
    margin-left: auto;
    gap: 9px;
  }

  .page-size-label {
    gap: 6px;
  }

  .page-summary {
    min-width: 78px;
  }

  .content-table-heading {
    display: grid;
    min-height: 40px;
    padding: 0 16px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .content-table-heading > span {
    display: none;
  }

  .content-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .content-selection {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .content-primary {
    grid-column: 2 / -1;
  }

  .content-thumb {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .content-item-copy span {
    max-width: 240px;
  }

  .content-item > .publish-status {
    grid-column: 2;
  }

  .table-updated {
    grid-column: 3;
    justify-self: end;
  }

  .content-item-actions {
    grid-column: 2 / -1;
    justify-content: stretch;
  }

  .content-item-actions .primary-button {
    flex: 1;
  }

  .editor-main {
    padding: 28px 14px 55px;
  }

  .detail-main {
    width: min(100% - 28px, 620px);
    padding-bottom: 54px;
  }

  .detail-toolbar {
    top: 66px;
    min-height: 66px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .detail-toolbar .secondary-button,
  .detail-toolbar .primary-button {
    min-width: 42px;
    padding: 0 12px;
  }

  .detail-toolbar > .secondary-button span {
    display: none;
  }

  .detail-toolbar-copy span {
    display: none;
  }

  .detail-actions {
    gap: 6px;
  }

  .detail-heading {
    padding: 28px 0 22px;
  }

  .detail-heading h1 {
    font-size: var(--admin-page-title);
  }

  .detail-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .detail-fields,
  .detail-media-grid {
    grid-template-columns: 1fr;
  }

  .detail-fields .detail-summary-field {
    grid-column: auto;
  }

  .detail-image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-caption-row {
    padding: 14px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .detail-caption-row time {
    grid-column: 2;
  }

  .detail-caption-row p {
    grid-column: 1 / -1;
    padding-top: 4px;
  }

  .admin-view.editor-mode .editor-main {
    padding: 0 14px calc(132px + env(safe-area-inset-bottom));
  }

  .admin-view.editor-mode .editor-heading {
    margin-top: 26px;
  }

  .create-dialog-toolbar {
    min-height: 66px;
    padding: 9px 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .create-dialog-toolbar .secondary-button,
  .create-dialog-toolbar .primary-button {
    min-width: 42px;
    padding: 0 12px;
  }

  .create-dialog-title small {
    display: none;
  }

  .create-dialog-title {
    text-align: center;
  }

  .editor-toolbar-actions {
    width: auto;
  }

  .editor-toolbar-actions .secondary-button,
  .editor-toolbar-actions .primary-button {
    justify-content: center;
  }

  #create-save-button {
    display: none;
  }

  .admin-view.create-mode .editor-toolbar-actions {
    display: none;
  }

  .ai-create-panel {
    padding: 24px 20px;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    border-radius: 18px;
  }

  .ai-create-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .ai-create-icon svg {
    width: 24px;
    height: 24px;
  }

  .ai-create-copy h2 {
    font-size: var(--admin-section-title);
  }

  .ai-create-copy > p:last-of-type,
  .ai-create-steps {
    grid-column: 1 / -1;
  }

  .ai-create-actions {
    grid-column: 1 / -1;
  }

  .photo-capture-panel {
    margin-bottom: 10px;
    padding: 12px;
  }

  .photo-capture-actions .primary-button,
  .photo-capture-actions .secondary-button {
    min-height: 48px;
  }

  .photo-progress {
    display: block;
  }

  .photo-progress strong,
  .photo-progress span {
    display: block;
    text-align: left;
  }

  .photo-progress span {
    margin-top: 4px;
  }

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

  .gallery-remove {
    width: 30px;
    height: 30px;
  }

  .editor-heading {
    align-items: flex-start;
  }

  .editor-heading h1 {
    font-size: var(--admin-page-title);
  }

  .desktop-save {
    display: none;
  }

  .form-panel {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field-group.full-width {
    grid-column: auto;
  }

  .section-heading,
  .captions-section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .add-caption {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .caption-table-heading {
    display: none;
  }

  .caption-row {
    grid-template-columns: 34px 1fr 1fr 34px;
    gap: 7px;
  }

  .caption-text {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .delete-caption {
    grid-column: 4;
    grid-row: 1;
  }

  .save-bar {
    display: none;
  }

  .mobile-editor-actions {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: 0.8fr 1fr 1.35fr;
    align-items: stretch;
    gap: 8px;
    border-top: 1px solid rgba(31, 41, 38, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 32px rgba(31, 41, 38, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-action-button {
    display: flex;
    height: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 5px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink-soft);
    background: #f8f8f5;
    font: inherit;
    font-size: var(--admin-meta-text);
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-action-button svg {
    width: 20px;
    height: 20px;
  }

  .mobile-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
  }

  .mobile-publish-action {
    border-color: var(--green);
    color: white;
    background: var(--green);
  }

  .admin-view:not(.create-mode) .mobile-ai-action {
    display: none;
  }

  .admin-view:not(.create-mode) .mobile-editor-actions {
    grid-template-columns: 1fr 1.6fr;
  }

  .admin-view.create-mode .mobile-editor-actions {
    grid-template-columns: 0.8fr 2fr;
  }

  .admin-view.create-mode .mobile-ai-action {
    color: white;
    border-color: var(--green);
    background: var(--green);
  }

  .toast-region {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .download-back span {
    display: none;
  }

  .download-device {
    min-height: 255px;
    padding: 25px;
    border-radius: 25px;
  }

  .download-tabs {
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
  }

  .download-tab {
    min-height: 54px;
    padding: 8px 9px;
    gap: 8px;
    border-radius: 999px;
  }

  .download-tab-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 50%;
  }

  .download-tab-icon svg {
    width: 19px;
    height: 19px;
  }

  .download-tab strong {
    font-size: 13px;
  }

  .download-tab small {
    display: none;
  }

  .download-tab-panel {
    padding: 28px 20px 18px;
    border-radius: 0 0 20px 20px;
  }

  .version-overview h2 {
    font-size: 32px;
  }

  .version-download-button {
    width: 100%;
  }

  .version-guide {
    padding: 20px 17px;
  }

  .version-difference {
    display: block;
    padding: 16px 17px;
  }

  .version-difference strong {
    display: block;
    margin-bottom: 6px;
  }

  .phone-device {
    min-height: 330px;
  }

  .phone-frame {
    width: 174px;
    height: 288px;
    border-radius: 28px;
  }

  .download-actions {
    display: block;
  }

  .apk-download-button {
    width: 100%;
    justify-content: center;
  }

  .download-version {
    margin-top: 12px;
  }

  .download-text-link {
    display: inline-block;
    margin-top: 14px;
  }

  .hero-meta {
    display: grid;
  }

  .package-card {
    padding: 23px 20px;
  }

  .package-heading {
    align-items: flex-start;
  }

  .package-card h3 {
    font-size: 16px;
  }

  .package-card > p {
    min-height: 0;
  }

  .package-download-row {
    display: block;
  }

  .package-download-button {
    width: 100%;
    justify-content: center;
  }

  .package-download-row > span {
    display: block;
    margin-top: 9px;
    text-align: center;
  }

  .test-flow {
    grid-template-columns: 1fr;
  }

  .test-flow li {
    min-height: 0;
  }

  .flow-number {
    margin-bottom: 20px;
  }

  .photo-guidance {
    align-items: flex-start;
  }

  .photo-guidance strong {
    width: 100%;
  }

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

  .checksum-panel dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .app-facts {
    grid-template-columns: 1fr;
  }

  .login-form-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .login-form-wrap h2 {
    font-size: 34px;
  }

  .mobile-brand {
    margin-bottom: 58px;
  }

  .image-dropzone {
    height: 200px;
  }

  .photo-capture-actions {
    grid-template-columns: 1fr;
  }

  .photo-angle-guide {
    gap: 3px;
  }

  .photo-angle-guide span {
    min-height: 25px;
    font-size: 11px;
  }

  .audio-actions {
    display: block;
  }

  .audio-actions .file-selection {
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
