/* Yaria 云端旅行手账 · 授权签发台
   仅覆盖 license-admin.css 的视觉与布局，不改变任何交互。 */
:root {
  --page: #ffe8d6;
  --surface: rgba(255, 249, 242, 0.96);
  --surface-solid: #fff9f2;
  --surface-blue: #b0e5f9;
  --line: rgba(15, 62, 128, 0.22);
  --line-strong: rgba(15, 62, 128, 0.48);
  --text: #0f3e80;
  --muted: rgba(15, 62, 128, 0.68);
  --blue: #b0e5f9;
  --blue-deep: #0f3e80;
  --blue-pale: #b0e5f9;
  --pink: #fb6ec2;
  --pink-deep: #0f3e80;
  --green: #b0e5f9;
  --green-deep: #0f3e80;
  --yellow: #d1aade;
  --yellow-deep: #0f3e80;
  --shadow: 8px 9px 0 rgba(15, 62, 128, 0.12);
  --shadow-soft: 5px 6px 0 rgba(15, 62, 128, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --cream: #ffe8d6;
  --navy: #0f3e80;
  --berry: #fb6ec2;
  --lavender: #d1aade;
  --mist: #b0e5f9;
  --paper: #fff9f2;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-padding-top: 24px;
  background: var(--cream);
}

body {
  color: var(--navy);
  background: var(--cream);
  font-size: 15px;
}

::selection {
  color: var(--navy);
  background: var(--lavender);
}

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.skip-link {
  color: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--berry);
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

.eyebrow,
.section-kicker,
.login-flight-tag,
.ticket-stub,
.workspace-stars + span {
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
}

.eyebrow,
.section-kicker {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.17em;
}

.muted {
  color: var(--muted);
}

/* 天空只保留素材云层，不依赖视频也有完整背景。 */
.cloud-background {
  background: var(--cream);
}

.cloud-background::after {
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 232, 214, 0.12), rgba(255, 232, 214, 0.72));
}

.cloud-background video {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
}

.sky-cloud,
.sky-stars {
  position: absolute;
  z-index: 1;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.sky-cloud {
  width: 280px;
  height: auto;
  opacity: 0.5;
  animation: yaria-sky-drift 16s ease-in-out infinite alternate;
}

.sky-cloud-one {
  top: 8vh;
  left: -70px;
}

.sky-cloud-two {
  right: -45px;
  bottom: 9vh;
  width: 360px;
  opacity: 0.34;
  animation-delay: -7s;
  animation-duration: 21s;
}

.sky-stars {
  top: 16vh;
  right: 6vw;
  width: 120px;
  height: auto;
  opacity: 0.34;
  animation: yaria-sticker-float 8s ease-in-out infinite;
}

/* 控件：像旅行凭证上的印刷字样，而不是模板化胶囊按钮。 */
.button,
.icon-button,
.day-option {
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button {
  padding: 11px 19px;
  letter-spacing: 0.01em;
}

.button.primary {
  color: var(--cream);
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 3px 3px 0 var(--berry);
}

.button.primary:hover:not(:disabled) {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--lavender);
  box-shadow: 3px 3px 0 var(--mist);
  transform: translate(-1px, -1px);
}

.button.primary:active:not(:disabled) {
  box-shadow: 1px 1px 0 var(--berry);
  transform: translate(1px, 1px);
}

.button.secondary {
  color: var(--navy);
  border-color: rgba(15, 62, 128, 0.52);
  background: rgba(255, 249, 242, 0.66);
  box-shadow: none;
}

.button.secondary:hover:not(:disabled) {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--mist);
}

.button.danger {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(251, 110, 194, 0.2);
}

.button.danger:hover:not(:disabled) {
  background: var(--berry);
}

.field {
  color: var(--navy);
}

.field input {
  min-height: 50px;
  color: var(--navy);
  border: 1px solid rgba(15, 62, 128, 0.5);
  border-radius: 8px;
  background: rgba(255, 249, 242, 0.88);
  box-shadow: none;
}

.field input:focus {
  border-color: var(--navy);
  box-shadow: 3px 3px 0 rgba(251, 110, 194, 0.38);
}

.field input::placeholder {
  color: rgba(15, 62, 128, 0.46);
}

.password-control .icon-button {
  color: var(--navy);
  border-radius: 6px;
}

.password-control .icon-button:hover:not(:disabled) {
  background: var(--lavender);
}

.form-message {
  color: var(--navy);
}

.form-message:not(:empty) {
  padding: 9px 12px;
  border-left: 3px solid var(--berry);
  background: rgba(251, 110, 194, 0.12);
}

.field-help {
  color: var(--muted);
}

/* 登录：左侧旅行明信片，右侧带存根的登机凭证。 */
.login-shell {
  position: relative;
  display: grid;
  width: min(1220px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 52px 28px 42px;
  place-items: center;
  align-content: center;
}

.login-flight-tag {
  display: flex;
  width: min(1110px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.login-flight-tag span:last-child {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.login-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  width: min(1110px, 100%);
  overflow: hidden;
  border: 1.5px solid var(--navy);
  border-radius: 10px 26px 26px 10px;
  background: var(--paper);
  box-shadow: 12px 14px 0 rgba(15, 62, 128, 0.12);
  backdrop-filter: none;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 59%;
  z-index: 5;
  border-left: 1px dashed rgba(15, 62, 128, 0.46);
  pointer-events: none;
}

.login-art {
  position: relative;
  display: flex;
  min-height: 620px;
  padding: 32px 40px 26px;
  overflow: hidden;
  background: var(--cream);
}

.login-art::before {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  z-index: 0;
  width: 500px;
  height: 410px;
  border-radius: 50%;
  background: var(--mist);
  opacity: 0.82;
}

.login-art::after {
  content: "POST\A CARD";
  position: absolute;
  right: 30px;
  bottom: 22px;
  z-index: 0;
  color: rgba(15, 62, 128, 0.1);
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-align: right;
  white-space: pre;
  border: 0;
  border-radius: 0;
}

.brand-lockup,
.mobile-brand,
.sidebar-brand {
  gap: 11px;
}

.brand-lockup {
  z-index: 4;
  font-size: 23px;
}

.yaria-brand-mark {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-lockup .yaria-brand-mark {
  width: 50px;
  height: 50px;
}

.login-art [data-brand-asset="logo"],
.login-form-wrap [data-brand-asset="logo"],
.sidebar-brand [data-brand-asset="logo"],
.login-art .login-mascot,
.empty-state [data-brand-asset] {
  display: none !important;
}

.brand-lockup small {
  margin-top: 6px;
  color: var(--navy);
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.travel-stamp {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 2;
  width: 126px;
  height: auto;
  opacity: 0.88;
  transform: rotate(7deg);
  animation: yaria-stamp-float 7s ease-in-out infinite;
}

.login-art-copy {
  z-index: 3;
  max-width: 76%;
  margin-top: 66px;
}

.login-art-copy .eyebrow {
  margin-bottom: 13px;
}

.login-art-copy h2 {
  margin-bottom: 17px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.32;
  letter-spacing: -0.055em;
}

.login-art-copy p {
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
}

.travel-route {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(340px, 72%);
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.travel-route i {
  height: 1px;
  flex: 1;
  border-top: 1px dashed rgba(15, 62, 128, 0.5);
}

.travel-route b {
  color: var(--berry);
  font-size: 17px;
  line-height: 1;
}

.login-visual {
  position: absolute;
  right: 31px;
  bottom: 54px;
  z-index: 2;
  width: 215px;
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(8px 10px 0 rgba(15, 62, 128, 0.08));
  animation: yaria-sticker-float 7s ease-in-out infinite;
}

.login-postcard {
  position: absolute;
  bottom: 74px;
  left: 38px;
  z-index: 1;
  width: 165px;
  height: auto;
  opacity: 0.76;
  transform: rotate(-8deg);
}

.login-stars {
  position: absolute;
  top: 128px;
  right: 18px;
  z-index: 1;
  width: 108px;
  height: auto;
  opacity: 0.7;
  animation: yaria-sticker-float 6s ease-in-out -2s infinite;
}

.art-note {
  z-index: 4;
  margin-top: auto;
  padding: 6px 0;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.login-form-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 620px;
  justify-content: center;
  padding: 54px 44px 32px;
  background: var(--paper);
}

.login-form-wrap::after {
  content: "YA-001";
  position: absolute;
  top: 24px;
  right: 22px;
  color: rgba(15, 62, 128, 0.34);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.login-form-wrap h1 {
  margin-top: 2px;
  font-size: 34px;
}

.login-form-wrap > .muted {
  margin-bottom: 30px;
}

.login-form-wrap form {
  gap: 18px;
}

.login-form-wrap .button.primary {
  min-height: 50px;
  margin-top: 3px;
}

.security-note {
  margin-top: 24px;
  color: var(--muted);
}

.security-note span {
  color: var(--berry);
}

.ticket-stub {
  display: grid;
  grid-template-columns: 1.25fr 0.65fr 1fr;
  gap: 10px;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px dashed rgba(15, 62, 128, 0.4);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticket-stub > span {
  min-width: 0;
}

.ticket-stub small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.login-postmark {
  width: min(1110px, 100%);
  margin: 20px 0 0;
  color: rgba(15, 62, 128, 0.58);
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-align: right;
}

.mobile-brand {
  display: none;
}

/* 后台：顶部工作条 + 非对称纸张网格，无固定侧栏。 */
.admin-layout {
  display: block;
  width: min(1440px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 28px 46px;
}

.sidebar {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(420px, 1.5fr) auto;
  width: 100%;
  height: auto;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  overflow: visible;
  border: 1.5px solid var(--navy);
  border-radius: 18px;
  background: rgba(255, 249, 242, 0.94);
  box-shadow: 5px 6px 0 var(--lavender);
  backdrop-filter: none;
}

.sidebar-brand {
  min-height: 58px;
  padding: 2px 10px 2px 2px;
  border: 0;
}

.sidebar-brand .yaria-brand-mark {
  width: 46px;
  height: 46px;
}

.sidebar-brand strong {
  font-size: 23px;
  letter-spacing: -0.04em;
}

.sidebar-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.side-nav {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

.nav-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-link > span {
  display: inline;
  width: auto;
  height: auto;
  color: rgba(15, 62, 128, 0.55);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--navy);
  border-color: rgba(15, 62, 128, 0.25);
  background: var(--mist);
}

.nav-link.active {
  color: var(--cream);
  border-color: var(--navy);
  background: var(--navy);
}

.nav-link.active > span {
  color: var(--berry);
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.sidebar-bottom p {
  max-width: 92px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.sidebar-bottom .button {
  width: auto;
  min-width: 94px;
  padding: 9px 14px;
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 0;
}

.workspace-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: end;
  gap: 28px;
  padding: 47px 7px 30px;
}

.workspace-header::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 0;
  left: 7px;
  border-bottom: 1px dashed rgba(15, 62, 128, 0.28);
}

.workspace-header > *:not(.workspace-stars) {
  position: relative;
  z-index: 1;
}

.workspace-header h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4.2vw, 48px);
}

.workspace-header p {
  margin: 0;
  color: var(--muted);
}

.workspace-stars {
  position: absolute;
  top: 22px;
  right: 260px;
  z-index: 0;
  width: 110px;
  height: auto;
  opacity: 0.38;
  pointer-events: none;
  animation: yaria-sticker-float 8s ease-in-out infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.session-chip,
.soft-badge {
  color: var(--navy);
  border: 1px solid rgba(15, 62, 128, 0.36);
  border-radius: 7px;
  background: rgba(255, 249, 242, 0.58);
}

.session-chip {
  min-height: 44px;
  padding: 8px 13px;
}

.online-dot {
  background: var(--berry);
  box-shadow: 0 0 0 4px rgba(251, 110, 194, 0.17);
}

.section-block {
  margin-top: 27px;
  scroll-margin-top: 24px;
}

.section-heading {
  margin: 0 3px 15px;
}

.section-heading h2 {
  font-size: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  gap: 15px;
  padding: 24px;
  overflow: hidden;
  border: 1.5px solid var(--navy);
  border-radius: 15px;
  box-shadow: none;
}

.stat-total {
  grid-column: span 4;
  color: var(--cream);
  background: var(--navy);
}

.stat-active {
  grid-column: span 3;
  background: var(--mist);
}

.stat-unused {
  grid-column: span 3;
  background: var(--lavender);
}

.stat-revoked {
  grid-column: span 2;
  background: rgba(255, 249, 242, 0.76);
}

.stat-card .stat-icon {
  width: 30px;
  height: 44px;
  flex: 0 0 30px;
  color: var(--navy);
  border-radius: 0;
  background: transparent;
  font-family: Georgia, serif;
  font-size: 27px;
}

.stat-total .stat-icon {
  color: var(--berry);
  background: transparent;
}

.stat-active .stat-icon,
.stat-unused .stat-icon,
.stat-revoked .stat-icon {
  color: var(--navy);
  background: transparent;
}

.stat-card span:not(.stat-icon) {
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
}

.stat-card strong {
  margin-top: 3px;
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-total small {
  position: absolute;
  right: 19px;
  bottom: 18px;
  color: var(--lavender);
  font-family: Georgia, serif;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: right;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 25px;
}

.panel {
  min-width: 0;
  padding: 29px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  scroll-margin-top: 24px;
}

.generator-panel {
  position: relative;
  grid-column: 1 / 9;
  overflow: hidden;
  background: var(--paper);
}

.generator-panel > :not(.generator-ticket) {
  position: relative;
  z-index: 1;
}

.generator-ticket {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 0;
  width: 116px;
  height: auto;
  opacity: 0.13;
  pointer-events: none;
  transform: rotate(-8deg);
}

.panel-heading h2,
.flow-panel h2,
.password-intro h2 {
  font-size: 25px;
}

.soft-badge {
  min-height: 34px;
  padding: 5px 10px;
  background: var(--lavender);
  font-size: 11px;
}

.days-fieldset {
  margin: 27px 0 21px;
}

.days-fieldset legend {
  color: var(--navy);
}

.day-options {
  gap: 9px;
}

.day-option {
  min-height: 46px;
  color: var(--navy);
  border-color: rgba(15, 62, 128, 0.35);
  background: rgba(255, 232, 214, 0.34);
}

.day-option:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--mist);
}

.day-option.selected {
  color: var(--cream);
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 2px 2px 0 var(--berry);
}

.generate-row {
  gap: 15px;
}

.custom-days {
  max-width: 280px;
}

.generate-row .button {
  min-height: 50px;
}

.input-with-unit > span {
  color: var(--navy);
}

.flow-panel {
  position: relative;
  grid-column: 9 / 13;
  min-height: 370px;
  margin-top: 46px;
  padding: 27px;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
  box-shadow: 6px 7px 0 var(--mist);
}

.flow-panel .section-kicker {
  color: var(--mist);
}

.flow-list {
  position: relative;
  z-index: 1;
  gap: 23px;
  margin-top: 25px;
}

.flow-list li:not(:last-child)::after {
  top: 36px;
  bottom: -20px;
  left: 15px;
  width: 0;
  border-left: 1px dashed rgba(176, 229, 249, 0.48);
  background: transparent;
}

.flow-list li > span {
  color: var(--navy);
  border: 1px solid var(--cream);
  background: var(--berry);
  font-family: Georgia, serif;
}

.flow-list strong {
  color: var(--cream);
}

.flow-list p {
  color: rgba(255, 232, 214, 0.74);
}

.flow-clouds {
  position: absolute;
  right: -20px;
  bottom: 2px;
  z-index: 0;
  width: 190px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  animation: yaria-sky-drift 12s ease-in-out infinite alternate;
}

/* 卡密是一本可逐条翻阅的签发记录。 */
.cards-panel {
  margin-top: 28px;
  padding: 30px;
  background: rgba(255, 249, 242, 0.95);
}

.cards-heading {
  align-items: flex-start;
}

.cards-heading p {
  margin-top: 7px;
}

.cards-list {
  gap: 14px;
  margin-top: 24px;
}

.license-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(15, 62, 128, 0.42);
  border-radius: 12px;
  background: rgba(255, 232, 214, 0.26);
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.license-card:hover {
  border-color: var(--navy);
  background: rgba(176, 229, 249, 0.14);
  box-shadow: 4px 4px 0 rgba(209, 170, 222, 0.5);
}

.license-card-header {
  margin-bottom: 17px;
}

.license-hint {
  color: var(--navy);
  font-size: 16px;
}

.status-badge {
  min-height: 30px;
  border: 1px solid rgba(15, 62, 128, 0.25);
  border-radius: 5px;
  font-size: 11px;
}

.status-active {
  color: var(--navy);
  background: var(--mist);
}

.status-unused {
  color: var(--navy);
  background: var(--lavender);
}

.status-revoked {
  color: var(--navy);
  background: rgba(251, 110, 194, 0.55);
}

.status-expired {
  color: var(--navy);
  background: var(--cream);
}

.license-meta {
  gap: 16px 20px;
}

.license-meta dt {
  color: var(--muted);
}

.license-meta dd {
  color: var(--navy);
}

.license-actions {
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 62, 128, 0.28);
}

.license-actions .button {
  min-height: 44px;
}

.loading-state,
.empty-state {
  color: var(--muted);
}

.loading-dot {
  border-color: var(--lavender);
  border-top-color: var(--navy);
}

.empty-state .empty-art {
  width: 132px;
  height: 126px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.empty-state h3 {
  color: var(--navy);
}

/* 安全页像手账跨页：说明与表单由一道装订线分开。 */
.password-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  margin-top: 28px;
  padding: 34px;
  overflow: hidden;
  background: var(--lavender);
}

.password-intro {
  position: relative;
  min-width: 0;
}

.password-intro p {
  max-width: 390px;
  margin-top: 14px;
  color: rgba(15, 62, 128, 0.75);
}

.password-stamp {
  width: 142px;
  height: auto;
  margin: 25px 0 0 12px;
  opacity: 0.5;
  transform: rotate(-7deg);
}

.password-form {
  min-width: 0;
  gap: 15px;
  padding-left: 43px;
  border-left: 1px dashed rgba(15, 62, 128, 0.42);
}

.password-form .field input {
  background: rgba(255, 249, 242, 0.76);
}

.password-form .button {
  justify-self: start;
  min-width: 132px;
  margin-top: 2px;
}

.workspace-footer {
  padding: 32px 10px 4px;
  color: var(--muted);
  font-family: Georgia, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
}

.workspace-footer > span[aria-hidden] {
  margin-left: 7px;
  color: var(--berry);
}

/* 原生 dialog 保留，仅换成旅行凭证材质。 */
.dialog {
  width: min(540px, calc(100% - 32px));
  padding: 32px;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 9px 10px 0 var(--berry);
}

.dialog::backdrop {
  background: rgba(15, 62, 128, 0.52);
  backdrop-filter: blur(4px);
}

.dialog-decoration,
.confirm-symbol {
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--mist);
}

.confirm-symbol {
  background: var(--berry);
}

.dialog-stamp {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 105px;
  height: auto;
  opacity: 0.44;
  pointer-events: none;
  transform: rotate(7deg);
}

.generated-card {
  color: var(--navy);
  border: 1px dashed var(--navy);
  border-radius: 9px;
  background: var(--mist);
}

.dialog-actions .button {
  min-height: 46px;
}

.toast-region {
  top: 20px;
  right: 20px;
  bottom: auto;
}

.toast {
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--lavender);
}

.toast.success {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--mist);
}

.toast.error {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(251, 110, 194, 0.74);
}

.noscript-message {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--berry);
}

@keyframes yaria-sky-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(20px, -7px, 0); }
}

@keyframes yaria-sticker-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes yaria-stamp-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(7deg); }
  50% { transform: translate3d(0, -5px, 0) rotate(5deg); }
}

@media (max-width: 1180px) {
  .admin-layout {
    display: block;
    padding: 20px;
  }

  .sidebar {
    grid-template-columns: auto minmax(390px, 1fr) auto;
    height: auto;
  }

  .sidebar-bottom p {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .stat-total {
    grid-column: span 5;
  }

  .stat-active {
    grid-column: span 3;
  }

  .stat-unused {
    grid-column: span 2;
  }

  .stat-revoked {
    grid-column: span 2;
  }

  .stat-card {
    min-height: 128px;
    padding: 20px;
  }

  .login-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  }

  .login-card::before {
    left: 52.5%;
  }

  .login-art,
  .login-form-wrap {
    min-height: 590px;
  }

  .login-art {
    padding-right: 32px;
    padding-left: 32px;
  }

  .login-form-wrap {
    padding-right: 35px;
    padding-left: 35px;
  }

  .login-visual {
    right: 22px;
    width: 185px;
  }
}

@media (max-width: 1020px) {
  .sidebar {
    grid-template-columns: auto minmax(350px, 1fr) auto;
    gap: 9px;
  }

  .nav-link {
    padding-right: 10px;
    padding-left: 10px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .generator-panel {
    grid-column: 1 / 13;
  }

  .flow-panel {
    grid-column: 2 / 13;
    min-height: auto;
    margin-top: 0;
  }

  .flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-list li:not(:last-child)::after {
    top: 15px;
    right: -11px;
    bottom: auto;
    left: auto;
    width: 20px;
    height: 0;
    border-top: 1px dashed rgba(176, 229, 249, 0.48);
    border-left: 0;
  }

  .license-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .login-shell {
    padding: 28px 20px 30px;
  }

  .login-card {
    grid-template-columns: minmax(0, 1fr);
    width: min(600px, 100%);
    border-radius: 10px 22px 22px 10px;
  }

  .login-card::before {
    display: none;
  }

  .login-art {
    display: flex;
    min-height: 400px;
    padding: 26px 30px 22px;
  }

  .login-art-copy {
    max-width: 72%;
    margin-top: 34px;
  }

  .login-art-copy h2 {
    font-size: 32px;
  }

  .login-visual {
    right: 24px;
    bottom: 44px;
    width: 150px;
    height: 205px;
  }

  .login-postcard {
    bottom: 61px;
    left: 30px;
    width: 125px;
  }

  .travel-stamp {
    top: 24px;
    right: 25px;
    width: 105px;
  }

  .login-form-wrap {
    min-height: auto;
    padding: 38px 38px 28px;
    border-top: 1px dashed rgba(15, 62, 128, 0.46);
  }

  .login-form-wrap::after {
    display: none;
  }

  .admin-layout {
    display: block;
    padding: 14px;
  }

  .sidebar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 10px;
    padding: 11px;
    border-radius: 16px;
  }

  .sidebar-brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 52px;
  }

  .sidebar-bottom {
    grid-column: 2;
    grid-row: 1;
  }

  .side-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    min-height: 46px;
    padding: 8px 9px;
  }

  .nav-link > span {
    display: inline;
  }

  .workspace-header {
    padding: 38px 5px 26px;
  }

  .workspace-stars {
    right: 20px;
  }

  .stat-total {
    grid-column: span 12;
  }

  .stat-active,
  .stat-unused,
  .stat-revoked {
    grid-column: span 4;
  }

  .password-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .password-stamp {
    position: absolute;
    right: 8px;
    bottom: -16px;
    width: 120px;
    margin: 0;
  }

  .password-form {
    padding-top: 25px;
    padding-left: 0;
    border-top: 1px dashed rgba(15, 62, 128, 0.42);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .sky-cloud-one {
    left: -120px;
  }

  .sky-cloud-two {
    right: -150px;
  }

  .sky-stars {
    right: -25px;
  }

  .login-shell {
    padding: 20px 14px 26px;
  }

  .login-flight-tag {
    gap: 8px;
    margin-bottom: 12px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .login-flight-tag span:last-child {
    font-size: 7px;
  }

  .login-card {
    box-shadow: 7px 8px 0 rgba(15, 62, 128, 0.12);
  }

  .login-art {
    min-height: 342px;
    padding: 21px 22px 18px;
  }

  .brand-lockup {
    font-size: 20px;
  }

  .brand-lockup .yaria-brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-lockup small {
    font-size: 7px;
  }

  .travel-stamp {
    top: 20px;
    right: 18px;
    width: 82px;
  }

  .login-art-copy {
    max-width: 76%;
    margin-top: 28px;
  }

  .login-art-copy .eyebrow {
    margin-bottom: 9px;
    font-size: 8px;
  }

  .login-art-copy h2 {
    margin-bottom: 10px;
    font-size: 27px;
  }

  .login-art-copy p {
    max-width: 225px;
    font-size: 12px;
    line-height: 1.55;
  }

  .travel-route {
    width: 62%;
    gap: 6px;
    margin-top: 17px;
    font-size: 8px;
  }

  .login-visual {
    right: 12px;
    bottom: 39px;
    width: 112px;
    height: 155px;
  }

  .login-postcard {
    display: none;
  }

  .login-stars {
    top: 95px;
    right: 8px;
    width: 76px;
  }

  .login-art::after {
    right: 18px;
    bottom: 16px;
    font-size: 48px;
  }

  .art-note {
    font-size: 8px;
  }

  .login-form-wrap {
    padding: 30px 23px 24px;
  }

  .login-form-wrap h1 {
    font-size: 29px;
  }

  .login-form-wrap > .muted {
    margin-bottom: 24px;
  }

  .ticket-stub {
    margin-top: 26px;
    font-size: 9px;
  }

  .login-postmark {
    margin-top: 16px;
    font-size: 7px;
    line-height: 1.6;
  }

  .admin-layout {
    padding: 10px;
  }

  .sidebar {
    gap: 8px;
    padding: 10px;
    box-shadow: 4px 4px 0 var(--lavender);
  }

  .sidebar-brand {
    gap: 8px;
  }

  .sidebar-brand .yaria-brand-mark {
    width: 40px;
    height: 40px;
  }

  .sidebar-brand strong {
    font-size: 20px;
  }

  .sidebar-brand small {
    font-size: 8px;
  }

  .sidebar-bottom .button {
    min-width: 80px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .side-nav {
    gap: 5px;
  }

  .nav-link {
    min-height: 52px;
    flex-direction: column;
    gap: 0;
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  .nav-link > span {
    display: block;
    font-size: 9px;
  }

  .workspace-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 32px 4px 23px;
  }

  .workspace-header h1 {
    font-size: 34px;
  }

  .workspace-header p {
    max-width: 90%;
    font-size: 13px;
  }

  .workspace-stars {
    top: 15px;
    right: 0;
    width: 82px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .session-chip {
    min-width: 0;
    white-space: normal;
  }

  .section-block {
    margin-top: 23px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-total {
    grid-column: span 12;
  }

  .stat-active,
  .stat-unused {
    grid-column: span 6;
  }

  .stat-revoked {
    grid-column: span 12;
  }

  .stat-card {
    min-height: 112px;
    gap: 10px;
    padding: 17px;
    border-radius: 13px;
  }

  .stat-card strong {
    font-size: 34px;
  }

  .stat-card .stat-icon {
    width: 25px;
    flex-basis: 25px;
    font-size: 23px;
  }

  .stat-total small {
    right: 16px;
    bottom: 15px;
  }

  .dashboard-grid {
    gap: 14px;
    margin-top: 18px;
  }

  .panel,
  .cards-panel,
  .password-panel {
    padding: 21px;
    border-radius: 17px;
  }

  .generator-panel .panel-heading {
    flex-direction: column;
    gap: 11px;
  }

  .panel-heading h2,
  .flow-panel h2,
  .password-intro h2 {
    font-size: 22px;
  }

  .soft-badge {
    align-self: flex-start;
  }

  .day-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .generate-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-days {
    max-width: none;
  }

  .generate-row .button {
    width: 100%;
  }

  .flow-panel {
    grid-column: 1 / 13;
    padding: 23px;
  }

  .flow-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .flow-list li:not(:last-child)::after {
    top: 34px;
    right: auto;
    bottom: -17px;
    left: 15px;
    width: 0;
    height: auto;
    border-top: 0;
    border-left: 1px dashed rgba(176, 229, 249, 0.48);
  }

  .flow-clouds {
    width: 145px;
  }

  .cards-panel {
    margin-top: 18px;
  }

  .cards-heading {
    flex-direction: column;
    gap: 16px;
  }

  .cards-heading .button {
    width: 100%;
  }

  .license-card {
    padding: 16px;
  }

  .license-card-header {
    align-items: flex-start;
    gap: 9px;
  }

  .license-hint {
    font-size: 13px;
  }

  .license-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .license-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-actions .button {
    padding: 8px 9px;
  }

  .license-actions .button:only-child {
    grid-column: 1 / -1;
  }

  .password-panel {
    gap: 24px;
    margin-top: 18px;
  }

  .password-intro p {
    max-width: 78%;
  }

  .password-stamp {
    right: -3px;
    bottom: -17px;
    width: 100px;
  }

  .password-form .button {
    width: 100%;
    justify-self: stretch;
  }

  .workspace-footer {
    padding-top: 27px;
    font-size: 9px;
  }

  .dialog {
    width: calc(100% - 24px);
    padding: 25px 20px;
    border-radius: 14px;
    box-shadow: 6px 7px 0 var(--berry);
  }

  .dialog-stamp {
    top: 18px;
    right: 18px;
    width: 78px;
  }

  .card-dialog .dialog-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .dialog-actions .button {
    width: 100%;
  }

  .toast-region {
    top: 12px;
    right: 12px;
    bottom: auto;
    width: calc(100% - 24px);
  }
}

@media (max-width: 380px) {
  .login-shell {
    padding-right: 11px;
    padding-left: 11px;
  }

  .login-art {
    min-height: 330px;
    padding-right: 19px;
    padding-left: 19px;
  }

  .login-form-wrap {
    padding: 27px 19px 22px;
  }

  .login-art-copy h2 {
    font-size: 25px;
  }

  .login-visual {
    width: 102px;
  }

  .admin-layout {
    padding: 8px;
  }

  .sidebar-brand .yaria-brand-mark {
    width: 36px;
    height: 36px;
  }

  .sidebar-brand strong {
    font-size: 18px;
  }

  .sidebar-brand small {
    font-size: 7px;
  }

  .sidebar-bottom .button {
    min-width: 74px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions .button,
  .session-chip {
    width: 100%;
    justify-content: center;
  }

  .stat-card {
    padding: 15px;
  }

  .license-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sky-cloud,
  .sky-stars,
  .travel-stamp,
  .login-visual,
  .login-stars,
  .workspace-stars,
  .flow-clouds {
    animation: none !important;
  }

  .cloud-background video {
    display: none;
  }
}

/* ---- 卡密管理：完整卡密 / 折叠 / 搜索 ---- */
.cards-toolbar { margin: 10px 0 14px; }
.cards-search { width: 100%; padding: 10px 12px; font-size: 14px; color: #141413; background: #fff; border: 1px solid #141413; border-radius: 0; }
.license-card.collapsed .license-meta,
.license-card.collapsed .license-actions,
.license-card.collapsed .license-full { display: none; }
.license-card-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.license-toggle { margin-left: auto; }
.license-full { margin: 10px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.license-full .license-key { font-family: "Menlo", "Consolas", monospace; font-size: 14px; word-break: break-all; background: #f5f5f5; border: 1px solid #8b8b88; padding: 8px 10px; }
