﻿:root {
  --bg: #f0f3f1;
  --bg-deep: #e5ebe8;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-soft: #f7faf8;
  --line: rgba(31, 48, 42, 0.11);
  --line-strong: rgba(31, 48, 42, 0.18);
  --ink: #20332c;
  --muted: #6c7b76;
  --sec: #6c7b76;
  --accent: #176b5b;
  --accent-strong: #105c4e;
  --accent-soft: rgba(23, 107, 91, 0.12);
  --info: #2f6f9f;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --sidebar: #1d2c27;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 16px 42px rgba(27, 45, 39, 0.07);
  --shadow-soft: 0 8px 22px rgba(27, 45, 39, 0.055);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "Fira Code", Consolas, monospace;
  --sidebar-w: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(23, 107, 91, 0.48);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.12);
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf5f2;
  color: var(--accent-strong);
  font-size: 12px;
}

::placeholder {
  color: #9aa9b5;
}

.shell {
  height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-view {
  height: 100%;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: #eef1f0;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 35, 33, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(23, 39, 36, 0.14);
}

.login-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #fff;
  background: #202724;
}

.login-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
}

.login-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 26, 0.34) 0%, transparent 35%),
    linear-gradient(0deg, rgba(15, 22, 20, 0.88) 0%, rgba(15, 22, 20, 0.12) 58%, transparent 75%);
}

.login-brand,
.login-mobile-brand {
  color: inherit;
  text-decoration: none;
}

.login-brand {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #176b5b;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(17, 79, 67, 0.28);
}

.login-brand > span:last-child,
.login-mobile-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.login-brand strong {
  font-size: 15px;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.login-visual-copy {
  position: absolute;
  z-index: 1;
  left: 40px;
  right: 40px;
  bottom: 70px;
}

.login-visual-copy h2 {
  max-width: 480px;
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.32;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}

.login-visual-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
}

.login-visual-meta {
  position: absolute;
  z-index: 1;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.login-access {
  display: grid;
  place-items: center;
  padding: 46px clamp(34px, 5vw, 66px);
  background: #fff;
}

.login-panel {
  width: min(390px, 100%);
}

.login-mobile-brand {
  display: none;
}

.login-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.login-panel h1 {
  margin: 0;
  color: #1c2825;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.login-subtitle {
  margin: 8px 0 0;
  color: #71807c;
  line-height: 1.6;
}

.login-icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #60736e;
  background: #f3f6f5;
  border: 1px solid #dfe7e4;
  border-radius: 6px;
}

.login-icon-button:hover,
.login-icon-button:focus-visible {
  color: #176b5b;
  background: #e9f2ef;
  border-color: #b9d1ca;
  outline: none;
}

.login-icon-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-icon-button svg,
.login-input-wrap > svg,
.password-toggle svg,
.login-submit svg,
.visitor-login-btn svg,
.login-foot svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.login-icon-button[data-checking='true'] svg {
  animation: login-spin 0.8s linear infinite;
}

.login-service-status {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 24px;
  padding: 0 12px;
  color: #697a75;
  font-size: 12px;
  background: #f5f7f6;
  border: 1px solid #e4e9e7;
  border-radius: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c78320;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.login-service-status[data-state='online'] .status-dot {
  background: #18815f;
  box-shadow: 0 0 0 4px rgba(24, 129, 95, 0.12);
}

.login-service-status[data-state='online'] {
  color: #326858;
  background: #f0f7f4;
  border-color: #d5e8e1;
}

.login-service-status[data-state='offline'] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.login-service-status[data-state='offline'] {
  color: #9f3d3d;
  background: #fff6f6;
  border-color: #f0d8d8;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #273632;
  font-size: 12px;
  font-weight: 700;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #788a85;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-input-wrap input {
  min-height: 50px;
  padding: 12px 46px 12px 42px;
  color: #1d2926;
  background: #fbfcfc;
  border: 1px solid #dbe3e0;
  border-radius: 6px;
}

.login-input-wrap input:hover {
  border-color: #bac8c4;
}

.login-input-wrap input:focus {
  background: #fff;
  border-color: #438979;
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.11);
}

.login-input-wrap input.is-invalid {
  border-color: #cf5a5a;
  box-shadow: 0 0 0 3px rgba(207, 90, 90, 0.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #647671;
  background: transparent;
  border-radius: 5px;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #176b5b;
  background: #eaf3f0;
  outline: none;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-eye-off,
.password-toggle[aria-pressed='true'] .password-eye {
  display: none;
}

.password-toggle[aria-pressed='true'] .password-eye-off {
  display: block;
}

.caps-lock-hint {
  color: #a86614;
  font-size: 11px;
  font-weight: 600;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.remember-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667873;
  font-size: 12px;
  cursor: pointer;
}

.remember-login input {
  width: 16px;
  height: 16px;
  accent-color: #176b5b;
}

.login-options a {
  color: #176b5b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.login-options a:hover,
.login-options a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.login-submit {
  position: relative;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #176b5b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 107, 91, 0.2);
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #105c4e;
  box-shadow: 0 12px 28px rgba(23, 107, 91, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.login-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

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

.login-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  display: none;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.75s linear infinite;
}

.login-submit[data-busy='true'] .login-button-label {
  visibility: hidden;
}

.login-submit[data-busy='true'] .login-spinner {
  display: block;
}

.login-submit:disabled,
.visitor-login-btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.visitor-login-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #40514c;
  background: #fff;
  border: 1px solid #d8e1de;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.visitor-login-btn:hover,
.visitor-login-btn:focus-visible {
  color: #176b5b;
  background: #f1f7f5;
  border-color: #a9c7be;
  outline: none;
}

.visitor-login-btn svg {
  width: 18px;
  height: 18px;
}

.visitor-login-btn[data-busy='true'] svg {
  animation: login-nudge 0.8s ease-in-out infinite alternate;
}

.login-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #b53d3d;
  font-size: 12px;
  line-height: 1.55;
}

.login-message:not(:empty) {
  min-height: 38px;
  padding: 9px 11px;
  background: #fff5f5;
  border: 1px solid #efd5d5;
  border-radius: 6px;
}

.login-message.success:not(:empty) {
  color: #25624f;
  background: #f0f7f4;
  border-color: #d3e7df;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa6a2;
  font-size: 11px;
}

.login-separator::before,
.login-separator::after {
  height: 1px;
  flex: 1;
  content: '';
  background: #e4e9e7;
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: #889590;
  font-size: 11px;
}

.login-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-foot svg {
  width: 13px;
  height: 13px;
}

.app-view {
  height: 100%;
  display: flex;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #d5e6f2;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #176b5b;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.sidebar-brand small {
  color: #94aec3;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  overflow-y: auto;
}

.nav-group-label {
  margin: 14px 12px 5px;
  color: #7f9a90;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-group-label:first-child {
  margin-top: 2px;
}

.nav-link,
.ghost-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  background: transparent;
  color: #d5e6f2;
  font-weight: 600;
}

.nav-link:hover,
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link.is-active {
  background: #176b5b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 50, 42, 0.28);
}

.sidebar-foot {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  min-height: 92px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 44, 66, 0.06);
}

.topbar p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.topbar-heading {
  min-width: max-content;
}

.topbar-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.session-role {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
}

.sidebar-backdrop {
  display: none;
}

.topbar-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 44, 66, 0.06);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 13px;
}

.topbar-stats strong {
  color: var(--ink);
}

.panel {
  flex: 1;
  overflow: auto;
  padding: 24px 28px 44px;
  display: none;
}

.panel.is-active {
  display: block;
  animation: fade-in 0.22s ease;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h3,
.section-head h4 {
  margin: 0 0 6px;
  font-size: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  border-radius: 8px;
  padding: 20px 18px;
  background: #f8faf9;
  border: 1px solid rgba(20, 44, 66, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.overview-recent,
.post-layout,
.media-layout,
.publish-grid {
  display: grid;
  gap: 18px;
}

.overview-recent {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publish-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  align-items: start;
}

.publish-form-main,
.form-grid {
  display: grid;
  gap: 14px;
}

.publish-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.publish-intro h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.publish-intro p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.8;
}

.publish-badge {
  align-self: start;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: #edf7ff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.file-label {
  display: block;
  cursor: pointer;
}

.file-label input[type="file"] {
  display: none;
}

.file-label span {
  display: block;
  min-height: 92px;
  padding: 22px;
  border-radius: 8px;
  border: 2px dashed rgba(47, 134, 201, 0.22);
  background: #f1f7f4;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.field-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-row,
.inline-picker,
.form-actions,
.multi-filter {
  display: flex;
  gap: 12px;
}

.form-actions {
  flex-wrap: wrap;
}

.grow-1 {
  flex: 1;
}

.grow-2 {
  flex: 2;
}

.btn-primary,
.btn-accent,
.secondary-button,
.btn-ghost,
.btn-danger,
.btn-sm {
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 32px rgba(47, 134, 201, 0.25);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  background: #eef5fa;
  color: var(--ink);
  border: 1px solid rgba(20, 44, 66, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(20, 44, 66, 0.12);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
}

.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.publish-preview {
  position: sticky;
  top: 0;
}

.preview-card {
  padding: 20px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid rgba(20, 44, 66, 0.08);
  box-shadow: var(--shadow-soft);
}

.preview-card h4 {
  margin: 0 0 14px;
  font-size: 20px;
}

.preview-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.preview-meta span:first-child {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.preview-meta span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20, 44, 66, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.preview-excerpt,
.preview-cover-empty {
  padding: 15px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 44, 66, 0.08);
  color: #4c6274;
}

.preview-excerpt {
  min-height: 110px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.preview-cover-empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.preview-cover-thumb {
  min-height: 180px;
  background-position: center;
  background-size: cover;
  color: transparent;
}

.preview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-facts div {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 44, 66, 0.08);
}

.preview-facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.preview-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.publish-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tip-card {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f3f7f5;
  border: 1px solid rgba(20, 44, 66, 0.08);
}

.tip-card strong {
  display: block;
  margin-bottom: 6px;
}

.tip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.filter-bar {
  margin-bottom: 16px;
}

.post-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.media-layout {
  grid-template-columns: minmax(0, 1fr);
}

.media-side-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

#pictureGuide,
#waveToolkit,
#remoteVideoToolkit {
  grid-column: 1 / -1;
}

.media-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.media-tab {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border: 1px solid rgba(20, 44, 66, 0.08);
  font-weight: 700;
}

.media-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 134, 201, 0.22);
}

.upload-zone {
  padding: 34px 20px;
  border: 2px dashed rgba(47, 134, 201, 0.22);
  border-radius: 8px;
  text-align: center;
  background: #f1f7f4;
  margin-bottom: 18px;
  cursor: pointer;
}

.upload-zone.drag {
  border-color: var(--accent);
  background: rgba(47, 134, 201, 0.08);
}

.upload-hero {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.upload-zone p {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.upload-zone small {
  color: var(--muted);
}

.upload-bar {
  margin-bottom: 16px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 44, 66, 0.08);
  margin-bottom: 6px;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.media-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 44, 66, 0.08);
  box-shadow: var(--shadow-soft);
}

.media-thumb,
.media-icon-box {
  height: 118px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f1;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-icon-box {
  display: grid;
  place-items: center;
  font-size: 42px;
  color: var(--accent-strong);
}

.media-item strong {
  line-height: 1.5;
  word-break: break-all;
}

.media-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.media-path {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f8fc;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.guide-list,
.playlist-columns {
  display: grid;
  gap: 12px;
}

.guide-item {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f6fbff;
  border: 1px solid rgba(20, 44, 66, 0.07);
}

.guide-item strong {
  display: block;
  margin-bottom: 4px;
}

.guide-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.playlist-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wave-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.wave-search {
  min-width: min(360px, 100%);
  margin-right: auto;
}

.wave-search input {
  min-height: 42px;
}

.wave-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wave-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.wave-order {
  color: #8a9893;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.wave-track-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wave-track-copy strong {
  display: block;
  font-size: 14px;
}

.wave-track-copy span {
  color: var(--muted);
  font-size: 12px;
}

.wave-track-copy code {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  color: #66766f;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wave-lyric-state {
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #8b5b16;
  background: #fff6df;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.wave-lyric-state.has-lyric {
  color: #176b5b;
  background: #e9f5f0;
}

.wave-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.wave-footer {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px -20px -20px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.wave-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.wave-save-button[data-dirty='true'],
#waveSaveBtn[data-dirty='true'] {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.wave-editor-dialog {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(14, 30, 24, 0.24);
}

.wave-editor-body {
  display: grid;
  gap: 15px;
  padding: 20px 22px;
}

.wave-position-field {
  width: min(180px, 100%);
}

.wave-url-preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 7px 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
}

.wave-url-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wave-url-preview code {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wave-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 23px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  outline: none;
}

.list,
.list-mini,
.friend-grid {
  display: grid;
  gap: 12px;
}

.compact-list {
  gap: 10px;
}

.list-item,
.friend-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 44, 66, 0.08);
  box-shadow: var(--shadow-soft);
}

.list-item .info,
.friend-card .finfo {
  min-width: 0;
  flex: 1;
}

.list-item .info strong,
.friend-card .finfo strong {
  display: block;
  line-height: 1.55;
}

.list-item .sub,
.friend-card .url {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}

.list-item .actions,
.friend-card .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(20, 44, 66, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.pill-green {
  background: rgba(22, 163, 74, 0.12);
  color: #0f7a34;
}

.pill-yellow {
  background: rgba(217, 119, 6, 0.14);
  color: #9a5a06;
}

.pill-red {
  background: rgba(220, 38, 38, 0.12);
  color: #b61d1d;
}

.pill-blue {
  background: rgba(47, 134, 201, 0.12);
  color: var(--accent-strong);
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-label input {
  width: auto;
}

.friend-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 18px;
}

.friend-card img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef5fa;
}

.publish-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.publish-card {
  padding: 22px 20px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid rgba(20, 44, 66, 0.08);
  box-shadow: var(--shadow-soft);
}

.publish-card.highlight {
  border-color: rgba(47, 134, 201, 0.26);
  box-shadow: 0 16px 34px rgba(47, 134, 201, 0.16);
}

.publish-card h3 {
  margin: 0 0 6px;
}

.publish-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.log-panel {
  margin-top: 20px;
}

.log-panel pre {
  margin: 0 0 14px;
  padding: 16px 18px;
  min-height: 220px;
  max-height: 440px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 8px;
  background: #132031;
  color: #d2e1ed;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.mono-input {
  font-family: var(--mono);
  font-size: 13px;
  background: #fbfdff;
}

.picker-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 28, 0.4);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.picker-dialog {
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.picker-head,
.picker-toolbar {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(20, 44, 66, 0.08);
}

.picker-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.picker-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.picker-head p {
  margin: 0;
  color: var(--muted);
}

.picker-list {
  padding: 20px 22px 24px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.picker-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(20, 44, 66, 0.08);
  background: #f8faf9;
}

.picker-item strong {
  line-height: 1.6;
}

.picker-item .sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: #122233;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.toast-success {
  background: #15803d;
}

.toast-error {
  background: #b91c1c;
}

.msg {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.msg:empty {
  display: none;
}

.msg.error {
  color: var(--danger);
}

.msg.success {
  color: var(--success);
}

.is-visitor-session .topbar {
  min-height: 80px;
}

.is-visitor-session .topbar p {
  display: none;
}

.visitor-workbench {
  display: grid;
  gap: 18px;
}

.visitor-head,
.visitor-section {
  background: var(--surface);
  border: 1px solid rgba(20, 44, 66, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.visitor-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
}

.visitor-head h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.visitor-head p {
  margin: 0;
  max-width: 880px;
  color: var(--muted);
  line-height: 1.8;
}

.visitor-kicker {
  margin-bottom: 6px !important;
  color: var(--accent-strong) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visitor-form {
  display: grid;
  gap: 18px;
}

.visitor-section {
  padding: 22px;
}

.review-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

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

.review-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.review-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.review-copy strong {
  font-size: 15px;
}

.review-author {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.review-meta,
.review-path {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}

.review-excerpt {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  color: #52615b;
  line-height: 1.7;
}

.review-media {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(260px, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.review-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3f1;
  aspect-ratio: 140 / 92;
}

.review-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.review-audio {
  display: grid;
  gap: 6px;
}

.review-audio span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-audio audio {
  width: 100%;
}

.review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-head {
  margin-bottom: 16px;
}

.compact-head h3 {
  font-size: 20px;
}

.compact-head p {
  font-size: 13px;
}

.visitor-grid {
  display: grid;
  gap: 14px;
}

.visitor-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visitor-resource-box {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid rgba(20, 44, 66, 0.08);
}

.visitor-resource-box.wide {
  margin-top: 14px;
}

.visitor-resource-box strong {
  font-size: 16px;
}

.visitor-resource-box > span,
.visitor-resource-box small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.visitor-url-adder {
  align-items: stretch;
}

.visitor-url-adder input {
  min-width: 0;
}

.visitor-resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.visitor-resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20, 44, 66, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.visitor-resource-chip span {
  max-width: min(560px, 68vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-resource-chip button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.visitor-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.visitor-preview {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fbfdff;
  border: 1px solid rgba(20, 44, 66, 0.08);
}

.visitor-preview pre {
  margin: 0;
  max-height: 480px;
  overflow: auto;
  padding: 16px;
  border-radius: 6px;
  background: #132031;
  color: #d2e1ed;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25 7 9l4-3.75' fill='none' stroke='%236b7f8f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.visitor-table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.visitor-table-tools input {
  width: 150px;
}

#visitorPager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visitor-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.visitor-table th,
.visitor-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.visitor-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f5f8f6;
  font-size: 11px;
  font-weight: 800;
}

.visitor-table tr:last-child td {
  border-bottom: 0;
}

.visitor-table .col-time { min-width: 150px; }
.visitor-table .col-ip { min-width: 130px; }
.visitor-table .col-place { min-width: 120px; }
.visitor-table .col-page { min-width: 140px; }
.visitor-table .col-ua { min-width: 200px; }
.visitor-table .col-first { min-width: 110px; }

.table-empty-cell {
  padding: 24px !important;
  color: var(--muted);
  text-align: center !important;
}

.nowrap {
  white-space: nowrap;
}

.muted-text,
.visitor-first-seen,
.visitor-user-agent {
  color: var(--muted);
  font-size: 11px;
}

.visitor-user-agent {
  display: block;
  word-break: break-all;
}

.visitor-page-path {
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 127, 143, 0.42);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes login-nudge {
  to {
    transform: translateX(3px);
  }
}

@media (max-width: 1180px) {
  .publish-grid,
  .media-layout,
  .post-layout,
  .overview-recent {
    grid-template-columns: 1fr;
  }

  .publish-preview {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-view {
    display: flex;
    height: 100%;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(300px, 86vw);
    min-width: min(300px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 48px rgba(11, 24, 20, 0.22);
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: block;
    padding: 0;
    border-radius: 0;
    background: rgba(12, 24, 20, 0.42);
  }

  .mobile-menu-button {
    display: grid;
  }

  .nav {
    min-height: 0;
    overflow-y: auto;
  }

  .sidebar-foot {
    margin-top: auto;
  }

  .workspace {
    width: 100%;
    overflow: hidden;
  }

  .topbar {
    min-height: 76px;
    padding: 14px 18px;
  }

  .topbar h2 {
    font-size: 23px;
  }

  .topbar-actions {
    overflow: hidden;
  }

  .panel {
    padding: 18px;
  }

  .card {
    padding: 18px;
    border-radius: 8px;
  }

  .tool-section {
    padding: 16px;
  }

  .form-row,
  .inline-picker,
  .multi-filter,
  .playlist-columns {
    flex-direction: column;
    display: flex;
  }

  .preview-facts,
  .publish-tips,
  .friend-grid,
  .publish-cards,
  .visitor-grid.two,
  .media-side-column {
    grid-template-columns: 1fr;
  }

  #pictureGuide,
  #waveToolkit,
  #remoteVideoToolkit {
    grid-column: auto;
  }

  .visitor-head {
    display: grid;
    padding: 18px;
  }

  .visitor-section {
    padding: 16px;
  }

  .resource-actions,
  .visitor-actions,
  .visitor-url-adder {
    flex-direction: column;
  }

  .picker-overlay {
    padding: 12px;
  }

  .picker-list {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .wave-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .wave-search {
    flex: 1 0 100%;
  }

  .wave-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .wave-row-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .wave-footer {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 780px) {
  .login-view {
    min-height: 100%;
    padding: 0;
    background: #fff;
  }

  .login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-visual {
    display: none;
  }

  .login-access {
    min-height: 100vh;
    padding: 36px 24px;
  }

  .login-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 48px;
    color: #1f302b;
  }

  .login-mobile-brand small {
    color: #788984;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .topbar-stats {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .panel {
    padding: 14px;
  }

  .section-head,
  .publish-intro {
    display: grid;
  }

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

  .stat-card {
    padding: 14px;
  }

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

  .media-tabs {
    overflow-x: auto;
  }

  .media-tab {
    min-width: 90px;
  }

  .wave-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .wave-lyric-state {
    grid-column: 2;
    justify-self: start;
  }

  .wave-row-actions {
    grid-column: 2;
  }

  .wave-footer {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .wave-pagination {
    justify-content: space-between;
  }

  #waveSaveBtn {
    width: 100%;
  }

  .wave-editor-body .form-row {
    display: grid;
  }

  .visitor-table-tools {
    justify-content: stretch;
  }

  .visitor-table-tools input,
  .visitor-table-tools button {
    flex: 1 1 140px;
    width: auto;
  }

  #visitorPager {
    flex: 1 0 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .login-view {
    padding: 0;
  }

  .login-access {
    place-items: start center;
    padding: 26px 20px 30px;
  }

  .login-mobile-brand {
    margin-bottom: 38px;
  }

  .login-panel h1 {
    font-size: 29px;
  }

  .login-service-status {
    margin: 18px 0 22px;
  }

  .login-foot {
    margin-top: 22px;
  }
}

@media (max-height: 690px) and (min-width: 781px) {
  .login-view {
    place-items: start center;
  }

  .login-shell {
    min-height: 642px;
  }

  .login-access {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-icon-button[data-checking='true'] svg,
  .login-spinner,
  .visitor-login-btn[data-busy='true'] svg {
    animation-duration: 1.8s;
  }
}

