:root {
  --bg: #f4f8ff;
  --paper: #ffffff;
  --surface: #eef5ff;
  --surface-strong: #dcecff;
  --line: #d6e2f2;
  --text: #13243a;
  --muted: #607188;
  --muted-soft: #8a9aad;
  --brand: #005bac;
  --brand-strong: #003f88;
  --brand-deep: #07356f;
  --accent: #1d78d8;
  --success: #0f766e;
  --success-bg: #e7f7f3;
  --warning: #b7791f;
  --warning-bg: #fff6df;
  --danger: #c2410c;
  --danger-bg: #fff1e8;
  --shadow: 0 12px 28px rgba(7, 53, 111, 0.06);
  --shadow-card: 0 8px 22px rgba(7, 53, 111, 0.05);
  --shadow-float: 0 16px 36px rgba(7, 53, 111, 0.1);
  --space-page: 20px;
  --space-card: 24px;
  --space-stack: 16px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 999px;
  --max-width: 1180px;
  --icon-home: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10.8 12 4l8 6.8V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1v-9.2Z' fill='black'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 1 0 4.08 11.57l3.92 3.93 1-1-3.93-3.92A6.5 6.5 0 0 0 10.5 4Zm0 2a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Z' fill='black'/%3E%3C/svg%3E");
  --icon-user: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.2 0-7 2.15-7 5v1h14v-1c0-2.85-2.8-5-7-5Z' fill='black'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 5 5v6c0 4.55 2.91 8.7 7 10 4.09-1.3 7-5.45 7-10V5l-7-3Zm-1.05 13.45-3.2-3.2 1.4-1.4 1.8 1.79 4.15-4.14 1.4 1.41-5.55 5.54Z' fill='black'/%3E%3C/svg%3E");
  --icon-file: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 4v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v1h5v-1H8Z' fill='black'/%3E%3C/svg%3E");
  --icon-more: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z' fill='black'/%3E%3C/svg%3E");
  --icon-eye: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5c5.2 0 8.8 4.5 9.8 6.5a1.1 1.1 0 0 1 0 1C20.8 14.5 17.2 19 12 19s-8.8-4.5-9.8-6.5a1.1 1.1 0 0 1 0-1C3.2 9.5 6.8 5 12 5Zm0 2C8.15 7 5.32 10.06 4.25 12 5.32 13.94 8.15 17 12 17s6.68-3.06 7.75-5C18.68 10.06 15.85 7 12 7Zm0 2.2a2.8 2.8 0 1 1 0 5.6 2.8 2.8 0 0 1 0-5.6Z' fill='black'/%3E%3C/svg%3E");
  --icon-dashboard: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z' fill='black'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm6.5 0a3.3 3.3 0 1 0 0-6.6 3.3 3.3 0 0 0 0 6.6ZM9 14c-3.6 0-6 1.85-6 4.3V20h12v-1.7C15 15.85 12.6 14 9 14Zm6.5.2c-.45 0-.87.03-1.27.1A5.3 5.3 0 0 1 17 18.3V20h4v-1.45c0-2.45-2.2-4.35-5.5-4.35Z' fill='black'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm1 5v4.1l3.2 1.9-1 1.7L11 13.2V8h2Z' fill='black'/%3E%3C/svg%3E");
  --icon-tags: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m11.5 3 8.8 8.8a2 2 0 0 1 0 2.8l-5.7 5.7a2 2 0 0 1-2.8 0L3 11.5V3h8.5ZM7 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z' fill='black'/%3E%3C/svg%3E");
  --icon-logout: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h9v2H6v12h7v2H4V4Zm11.6 4.4 4.6 4.6-4.6 4.6-1.4-1.4 2.2-2.2H10v-2h6.4l-2.2-2.2 1.4-1.4Z' fill='black'/%3E%3C/svg%3E");
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.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;
}

.icon-home {
  --app-icon: var(--icon-home);
}

.icon-search {
  --app-icon: var(--icon-search);
}

.icon-user {
  --app-icon: var(--icon-user);
}

.icon-shield {
  --app-icon: var(--icon-shield);
}

.icon-file {
  --app-icon: var(--icon-file);
}

.icon-more {
  --app-icon: var(--icon-more);
}

.icon-eye {
  --app-icon: var(--icon-eye);
}

.app-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--app-icon) center / contain no-repeat;
  -webkit-mask: var(--app-icon) center / contain no-repeat;
}

.app-shell,
.admin-shell {
  min-height: 100vh;
}

.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--space-page) 100px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 22px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand,
.page-title,
h1,
h2,
h3 {
  letter-spacing: 0.01em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--brand-strong);
  font-size: 1.18rem;
  font-weight: 700;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 10px 18px rgba(0, 91, 172, 0.16));
}

.brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-actions,
.hero-actions,
.filter-row,
.inline-field,
.inline-options,
.state-row,
.profile-actions,
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.desktop-only {
  display: inline-flex;
}

.hero {
  display: block;
  margin-bottom: 24px;
}

.hero-copy,
.panel,
.resource-card,
.detail-card,
.profile-card,
.quick-card,
.metric-card,
.subtle-panel,
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.home-hero {
  margin-bottom: 18px;
}

body[data-page="home"] .app-shell {
  max-width: 860px;
}

body[data-page="home"] .hero-copy {
  border-color: rgba(0, 91, 172, 0.16);
  box-shadow: var(--shadow-card);
}

body[data-page="home"] .search-panel {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

body[data-page="home"] .search-panel input {
  border-color: transparent;
  background: transparent;
}

.hero-copy::after {
  content: none;
}

.panel,
.detail-card,
.profile-card,
.auth-card {
  padding: var(--space-card);
}

.eyebrow,
.section-kicker,
.page-caption {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.page-caption-strong {
  color: var(--brand-deep);
  font-size: 1.08rem;
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

h1 {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-size: 2rem;
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
}

h3 {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.hero-text,
.muted,
.resource-description,
.detail-copy,
.panel p,
.table-row span {
  color: var(--muted);
  line-height: 1.7;
}

.hero-intro {
  max-width: 720px;
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.search-panel,
.compact-search {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.search-panel {
  margin: 24px 0 18px;
}

.compact-search {
  flex: 1 1 360px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 120, 216, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-panel label > span,
.form-panel legend {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.primary-button,
.danger-button,
.secondary-button,
.ghost-button,
.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  transition: transform 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px rgba(0, 91, 172, 0.18);
}

.danger-button {
  background: #c2410c;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px rgba(194, 65, 12, 0.16);
}

.secondary-button {
  background: rgba(0, 91, 172, 0.09);
  color: var(--brand-strong);
  border: 0;
}

.ghost-button,
.back-link {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--brand-strong);
}

.text-link {
  padding: 0;
  min-height: auto;
  color: var(--brand-strong);
}

.primary-button:hover,
.danger-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.back-link:hover {
  transform: translateY(-1px);
}

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

.section {
  margin-top: 30px;
}

.empty-state {
  margin-top: 12px;
}

.section-tight {
  margin-top: 18px;
}

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

.tag-cloud,
.card-grid,
.stack-list,
.quick-grid,
.quick-list,
.taxonomy-grid,
.home-feature-grid {
  display: grid;
  gap: 16px;
}

.tag-cloud {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 91, 172, 0.08);
  color: var(--brand-strong);
  font-weight: 600;
  border: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
}

.chip-active {
  background: var(--brand);
  color: #fff;
}

.card-grid,
.quick-grid,
.taxonomy-grid,
.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-card {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
}

.home-feature-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: rgba(0, 91, 172, 0.26);
  transform: rotate(45deg);
}

.home-feature-card span {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-feature-card strong {
  color: var(--brand-deep);
  font-size: 1.18rem;
}

.home-feature-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-primary {
  grid-column: span 3;
  min-height: 128px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.feature-primary span,
.feature-primary strong,
.feature-primary small {
  color: #fff;
}

.home-note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.home-note span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-tabs {
  display: flex;
  gap: 24px;
  margin: 2px 0 14px;
}

.news-tabs span {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  position: relative;
}

.news-tabs .active {
  color: var(--text);
}

.news-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

.home-news-feed {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.news-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.news-copy time {
  color: #98a4b3;
  font-size: 0.88rem;
  font-weight: 700;
}

.news-copy strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.news-copy span {
  color: #98a4b3;
  font-size: 0.9rem;
  font-weight: 700;
}

.news-thumb {
  display: grid;
  place-items: center;
  width: 112px;
  height: 84px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 91, 172, 0.12), rgba(29, 120, 216, 0.28)),
    var(--surface);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-thumb-primary {
  background: linear-gradient(135deg, #005bac, #1d78d8);
  color: #fff;
}

.resource-card,
.quick-card {
  padding: 18px;
}

.resource-card {
  display: grid;
  gap: 12px;
  border-top: 0;
  border-left: 4px solid rgba(0, 91, 172, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-card h3,
.quick-card strong,
.table-row strong {
  overflow-wrap: anywhere;
}

.resource-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.resource-card:hover,
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(7, 53, 111, 0.12);
}

.resource-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.meta-pill {
  background: rgba(0, 91, 172, 0.08);
  color: var(--brand);
}

.status-pill {
  background: rgba(183, 121, 31, 0.12);
  color: var(--warning);
}

.status-verified {
  background: rgba(0, 91, 172, 0.12);
  color: var(--brand-strong);
}

.detail-card {
  display: grid;
  gap: 18px;
}

.detail-header {
  display: grid;
  gap: 16px;
}

.detail-block {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(214, 226, 242, 0.78);
}

.detail-grid,
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-value {
  font-weight: 700;
  color: var(--text);
}

.banner {
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: rgba(0, 91, 172, 0.09);
  color: var(--brand-strong);
  font-weight: 600;
}

.banner-warm {
  background: rgba(29, 120, 216, 0.1);
  color: var(--brand-strong);
}

.review-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(183, 121, 31, 0.12);
  color: #8a5a14;
  font-weight: 700;
}

.legal-doc {
  max-width: 860px;
  margin: 0 auto;
}

.legal-doc h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

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

.form-panel label,
.form-panel fieldset {
  display: grid;
  gap: 8px;
}

.form-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.55;
}

.checkbox-row input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 4px;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field-label.is-required::after {
  content: "*";
  color: #d93025;
  font-weight: 900;
}

.field-label-with-link {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

.field-label-with-link.is-required::after {
  content: none;
}

.field-label-with-link > span::after {
  content: "*";
  margin-left: 4px;
  color: #d93025;
  font-weight: 900;
}

.helper-link {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-actions {
  display: grid;
  gap: 12px;
}

.auth-form-actions {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.auth-form-actions .primary-button,
.auth-form-actions .ghost-button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.register-panel {
  padding-top: 4px;
}

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

.filter-panel {
  margin-top: 12px;
  padding: 14px;
  box-shadow: none;
}

.filter-panel[hidden] {
  display: none;
}

.admin-filter {
  display: grid;
  grid-template-columns: 160px minmax(180px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.admin-filter input,
.admin-filter select {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(202, 216, 235, 0.9);
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
}

.list-filter-section {
  display: grid;
  gap: 10px;
}

.filter-toggle-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

body[data-page="home"],
body[data-page="list"],
body[data-page="detail"] {
  background: #ffffff;
}

body[data-page="home"] .app-shell,
body[data-page="list"] .app-shell,
body[data-page="detail"] .app-shell {
  max-width: 402px;
  padding: 0 0 64px;
  background: #ffffff;
}

.figma-home-header {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 130px;
  padding: 35px 46px 34px;
}

.figma-home-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.figma-home-header h1 {
  margin: 0 0 8px;
  color: #1e1e1e;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.figma-home-header p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.figma-hero-image,
.figma-news-panel {
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--brand-deep);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.figma-hero-image {
  height: 190px;
}

.figma-home-actions {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  justify-content: center;
  gap: 36px;
  padding: 26px 0 0;
}

.figma-home-actions a {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #000;
  font-size: 14px;
  font-weight: 700;
}

.figma-home-actions span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 82px;
  background: #d9d9d9;
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

.figma-home-actions strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.figma-divider {
  height: 4px;
  margin: 14px 34px 0;
  border-radius: 2px;
  background: rgba(0, 91, 172, 0.12);
}

.figma-news-section h2 {
  margin: 14px 0 7px 2px;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.figma-news-panel {
  height: 224px;
}

.figma-news-link {
  color: #000;
}

.figma-divider-bottom {
  margin-top: 12px;
}

.figma-copyright {
  margin: 18px 0 14px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

body[data-page="list"] .topbar {
  justify-content: center;
  height: 64px;
  min-height: 64px;
  margin: 0;
  padding: 18px 0 17px;
}

body[data-page="list"] .page-caption-strong {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.figma-search-section {
  padding: 15px 17px 0;
}

.figma-search-bar {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 4px 12px;
  border-radius: 28px;
  background: #eef5ff;
}

.figma-search-bar input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: 0;
  box-shadow: none;
}

.figma-search-bar input:focus {
  box-shadow: none;
}

.figma-search-menu,
.figma-search-icon {
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

body[data-page="list"] .list-filter-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 0 19px;
}

.figma-filter-label {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="list"] .filter-row {
  grid-column: 2;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 1px;
  overflow-x: auto;
}

body[data-page="list"] .chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

body[data-page="list"] .chip-active {
  background: #fff;
  color: var(--text);
}

.list-divider {
  margin: 12px 29px 31px;
}

.figma-list-section {
  padding: 0 17px 24px;
}

body[data-page="list"] .stack-list {
  gap: 9px;
}

.figma-alumni-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 0 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.figma-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #003f88;
  font-size: 16px;
  font-weight: 600;
}

.figma-card-text {
  min-width: 0;
}

.figma-card-text h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.figma-card-text p {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.figma-card-media {
  position: relative;
  align-self: stretch;
  width: 80px;
  background: #eef5ff;
}

.figma-card-media span {
  position: absolute;
  display: block;
  background: rgba(0, 91, 172, 0.24);
}

.figma-card-media span:nth-child(1) {
  right: 26px;
  top: 14px;
  width: 20px;
  height: 24px;
  border-radius: 10px 10px 4px 4px;
  transform: rotate(32deg);
}

.figma-card-media span:nth-child(2) {
  left: 15px;
  bottom: 21px;
  width: 23px;
  height: 23px;
  clip-path: polygon(50% 0, 62% 32%, 98% 30%, 70% 52%, 82% 88%, 50% 68%, 18% 88%, 30% 52%, 2% 30%, 38% 32%);
}

.figma-card-media span:nth-child(3) {
  right: 14px;
  bottom: 19px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.figma-load-more {
  display: block;
  margin: 31px auto 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

body[data-page="detail"] .topbar {
  justify-content: center;
  height: 112px;
  margin: 0;
  padding: 19px 0 0;
  position: relative;
}

body[data-page="detail"] .back-link {
  position: absolute;
  left: 10px;
  top: 4px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}

body[data-page="detail"] .detail-card {
  padding: 0 37px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.figma-detail-card {
  display: grid;
  gap: 14px;
  min-height: 543px;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  color: #000;
  font-size: 16px;
  line-height: 24px;
}

.figma-detail-card p {
  margin: 0;
}

.figma-detail-copy {
  margin-top: 18px !important;
}

.figma-contact-block {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.figma-detail-button {
  justify-self: center;
  min-width: 100px;
  min-height: 50px;
}

body[data-page="home"] .bottom-nav,
body[data-page="list"] .bottom-nav,
body[data-page="detail"] .bottom-nav {
  bottom: 0;
  width: min(100%, 402px);
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body[data-page="home"] .bottom-nav a,
body[data-page="list"] .bottom-nav a,
body[data-page="detail"] .bottom-nav a {
  position: relative;
  min-height: 64px;
  border-radius: 0;
  color: #607188;
  font-size: 12px;
  font-weight: 500;
}

body[data-page="home"] .bottom-nav a::before,
body[data-page="list"] .bottom-nav a::before,
body[data-page="detail"] .bottom-nav a::before {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
}

body[data-page="home"] .bottom-nav a.active,
body[data-page="list"] .bottom-nav a.active,
body[data-page="detail"] .bottom-nav a.active {
  background: transparent;
  color: #607188;
}

body[data-page="home"] .bottom-nav a.active::before,
body[data-page="list"] .bottom-nav a.active::before,
body[data-page="detail"] .bottom-nav a.active::before {
  background: currentColor;
  box-shadow: none;
}

body[data-page="home"] .bottom-nav a.active::after,
body[data-page="list"] .bottom-nav a.active::after,
body[data-page="detail"] .bottom-nav a.active::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 56px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 91, 172, 0.12);
  transform: translateX(-50%);
}

.table-summary {
  background: rgba(0, 91, 172, 0.06);
  color: var(--brand-strong);
  font-weight: 700;
}

.profile-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-left: 5px solid var(--brand);
}

.quick-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  border-left: 4px solid rgba(0, 91, 172, 0.72);
}

.quick-list {
  gap: 10px;
}

.guest-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.guest-panel h2 {
  color: var(--brand-deep);
  font-size: 1.28rem;
}

.profile-actions {
  align-items: center;
  justify-content: end;
}

.center-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(100%, 520px);
}

body[data-page="register"] .auth-card {
  width: min(100%, 560px);
}

.auth-links {
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(calc(100% - 24px), 420px);
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  min-height: 52px;
  display: grid;
  gap: 3px;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.bottom-nav a.active {
  background: var(--surface);
  color: var(--brand-strong);
}

.bottom-nav a::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--nav-icon) center / contain no-repeat;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
}

.nav-home {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10.8 12 4l8 6.8V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1v-9.2Z' fill='black'/%3E%3C/svg%3E");
}

.nav-find {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 1 0 4.07 11.57l3.93 3.93 1-1-3.93-3.93A6.5 6.5 0 0 0 10.5 4Zm0 2a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Z' fill='black'/%3E%3Cpath d='M13.4 10.2a3 3 0 0 1-5.8 0h1.2a1.8 1.8 0 0 0 3.4 0h1.2Z' fill='black'/%3E%3C/svg%3E");
}

.nav-me {
  --nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.2 0-7 2.15-7 5v1h14v-1c0-2.85-2.8-5-7-5Z' fill='black'/%3E%3C/svg%3E");
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
  min-height: 100vh;
  padding: 28px 20px;
  background: linear-gradient(180deg, #07356f, #005bac);
  color: #eef6ff;
  position: sticky;
  top: 0;
}

.admin-nav {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.admin-nav a {
  position: relative;
  z-index: 0;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(238, 246, 255, 0.8);
  line-height: 1.2;
  overflow: hidden;
}

.admin-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: transparent;
  transition: background 160ms ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: #fff;
}

.admin-nav a.active::after,
.admin-nav a:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.admin-exit {
  margin-top: 28px;
  width: 100%;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.admin-main {
  padding: 28px;
  display: grid;
  gap: 22px;
}

@media (min-width: 861px) {
  body[data-page="admin"] .admin-shell {
    display: block;
    min-height: 100vh;
  }

  body[data-page="admin"] .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
  }

  body[data-page="admin"] .admin-main {
    margin-left: 240px;
  }
}

.admin-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  padding: 22px;
  border-top: 4px solid var(--brand);
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  color: var(--brand-strong);
  font-size: 2rem;
}

.admin-panel {
  padding: 22px;
}

.table-list {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(214, 226, 242, 0.72);
}

.table-row span,
.table-row p {
  overflow-wrap: anywhere;
}

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

.table-actions .primary-button,
.table-actions .ghost-button {
  min-height: 40px;
}

.subtle-panel {
  padding: 20px;
  box-shadow: none;
}

body[data-page="admin"] {
  background: #f3f7fc;
}

body[data-page="admin"] .admin-sidebar {
  background: #07427d;
}

body[data-page="admin"] .admin-sidebar .brand {
  align-items: center;
  gap: 12px;
}

body[data-page="admin"] .admin-sidebar .brand strong {
  color: #fff;
}

body[data-page="admin"] .admin-sidebar .brand small {
  color: rgba(238, 246, 255, 0.72);
}

body[data-page="admin"] .admin-nav a {
  border-radius: 8px;
  font-weight: 800;
}

body[data-page="admin"] .admin-main {
  min-height: 100vh;
  padding: 26px 32px 40px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
}

.admin-page-head h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.2;
}

body[data-page="admin"] .admin-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body[data-page="admin"] .admin-filter {
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-list-summary,
.admin-empty {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
  font-weight: 800;
}

.admin-record {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-record + .admin-record {
  margin-top: 0;
}

.admin-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-record-head strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.admin-record-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.admin-record-grid div {
  min-width: 0;
}

.admin-record-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-record-grid dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.admin-record-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-record-footer .table-actions {
  justify-content: flex-end;
}

.admin-record-compact .admin-record-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.admin-shortcut,
body[data-page="admin"] .metric-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  box-shadow: none;
}

.admin-shortcut {
  padding: 18px;
}

.admin-shortcut strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.admin-shortcut span {
  color: var(--muted);
}

.feedback-root {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(calc(100% - 28px), 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

body[data-page="detail"] .feedback-root {
  top: auto;
  bottom: max(104px, calc(88px + env(safe-area-inset-bottom)));
}

.toast {
  justify-self: center;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(19, 36, 58, 0.94);
  color: #fff;
  box-shadow: 0 16px 36px rgba(19, 36, 58, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: rgba(194, 65, 12, 0.96);
}

.toast-info {
  background: rgba(0, 91, 172, 0.96);
}

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sheet-visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 36, 58, 0.28);
  backdrop-filter: blur(2px);
}

.sheet-card {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 42px rgba(19, 36, 58, 0.14);
  transform: translateY(100%);
  transition: transform 200ms ease;
}

.sheet-visible .sheet-card {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-card h2 {
  font-size: 1.25rem;
}

.sheet-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.sheet-card textarea {
  margin-top: 14px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.sheet-actions button {
  min-height: 48px;
  width: 100%;
}

.material-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.material-preview-layer.material-preview-visible {
  opacity: 1;
  pointer-events: auto;
}

.material-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 44, 0.58);
}

.material-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(214, 226, 242, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.material-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.material-preview-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-strong);
  overflow-wrap: anywhere;
}

.material-preview-close {
  min-height: 38px;
  flex: 0 0 auto;
}

.material-preview-body {
  position: relative;
  min-height: min(68vh, 720px);
  overflow: auto;
  background: var(--surface);
}

.material-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  pointer-events: none;
}

.material-preview-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
  background: #fff;
}

.material-preview-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: #fff;
}

.material-preview-empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .admin-shell,
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: auto;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-page: 16px;
    --space-card: 18px;
    --space-stack: 12px;
  }

  body {
    font-size: 15px;
  }

  .desktop-only {
    display: none !important;
  }

  .app-shell {
    padding: 14px var(--space-page) calc(88px + env(safe-area-inset-bottom));
  }

  .center-shell {
    align-items: start;
    min-height: 100svh;
    padding: 16px var(--space-page);
  }

  .topbar {
    gap: 10px;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 6px 0;
  }

  .brand {
    gap: 8px;
    font-size: 0.98rem;
    flex: 1 1 auto;
  }

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

  .brand small {
    font-size: 0.68rem;
  }

  .top-actions {
    gap: 6px;
    margin-left: auto;
  }

  .top-actions .ghost-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .hero-copy,
  .panel,
  .detail-card,
  .profile-card,
  .auth-card {
    padding: var(--space-card);
    border-radius: 16px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: 1.72rem;
    line-height: 1.16;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .eyebrow,
  .section-kicker,
  .page-caption {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

  .hero {
    margin-bottom: 10px;
  }

  .hero-text,
  .muted,
  .resource-description,
  .detail-copy,
  .panel p,
  .table-row span {
    line-height: 1.55;
  }

  .hero-intro {
    font-size: 1.78rem;
    line-height: 1.16;
  }

  .search-panel {
    margin: 16px 0 12px;
  }

  body[data-page="home"] .search-panel {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
  }

  body[data-page="home"] .search-panel input {
    min-width: 0;
  }

  body[data-page="home"] .search-panel .primary-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .topbar,
  .section-heading,
  .profile-card {
    align-items: start;
    flex-direction: column;
  }

  .topbar {
    flex-direction: row;
  }

  .topbar .page-caption {
    align-self: center;
    margin: 0;
  }

  body[data-page="list"] .topbar {
    align-items: center;
    gap: 10px;
  }

  .compact-search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .compact-search,
  .inline-field {
    flex-direction: column;
  }

  body:not([data-page="home"]) .search-panel {
    flex-direction: column;
  }

  .primary-button,
  .danger-button,
  .secondary-button,
  .ghost-button,
  .back-link {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 16px;
  }

  .section {
    margin-top: 22px;
  }

  .section-tight {
    margin-top: 12px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 10px;
  }

  .tag-cloud,
  .card-grid,
  .stack-list,
  .quick-grid,
  .quick-list,
  .taxonomy-grid,
  .home-feature-grid {
    gap: 8px;
  }

  .filter-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 calc(var(--space-page) * -1);
    padding: 0 var(--space-page) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .list-filter-section {
    gap: 8px;
  }

  .filter-toggle-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .tag,
  .chip,
  .meta-pill,
  .status-pill {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .chip {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .card-grid,
  .stack-list {
    grid-template-columns: 1fr;
  }

  .resource-card,
  .quick-card {
    padding: 14px;
    border-radius: 14px;
  }

  .resource-card {
    gap: 10px;
    border-left-width: 3px;
  }

  .resource-card .muted {
    margin: 0 0 4px;
    font-size: 0.82rem;
  }

  .resource-description {
    margin: 0;
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }

  .resource-meta,
  .detail-meta {
    gap: 5px;
  }

  .resource-card .text-link {
    justify-self: start;
    font-size: 0.86rem;
  }

  .profile-card {
    gap: 12px;
    border-left-width: 3px;
  }

  .quick-card {
    min-height: 88px;
  }

  .detail-card {
    gap: 14px;
  }

  .detail-block {
    padding: 12px;
  }

  .form-panel {
    gap: 15px;
  }

  .form-panel label,
  .form-panel fieldset {
    gap: 6px;
  }

  .form-panel label > span,
  .form-panel legend,
  .checkbox-row span {
    font-size: 0.88rem;
  }

  .form-grid {
    gap: 12px;
  }

  .inline-options {
    gap: 8px;
  }

  .inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.86rem;
  }

  .checkbox-row {
    align-items: start;
    gap: 8px !important;
  }

  .checkbox-row input {
    margin-top: 3px;
  }

  .banner {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .legal-doc {
    font-size: 0.92rem;
  }

  .legal-doc h2 {
    margin-top: 18px;
    font-size: 1.05rem;
  }

  .legal-doc p {
    margin: 9px 0;
  }

  .auth-card h1 {
    font-size: 1.6rem;
  }

  .auth-links {
    gap: 12px 16px;
    justify-content: center;
    font-size: 0.86rem;
  }

  .profile-actions {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .home-feature-card {
    min-height: 118px;
    padding: 13px;
    border-radius: 14px;
  }

  .home-feature-card::after {
    right: 12px;
    top: 12px;
    width: 14px;
    height: 14px;
  }

  .feature-primary {
    grid-column: span 2;
    min-height: 108px;
  }

  .home-feature-card span {
    font-size: 0.68rem;
  }

  .home-feature-card strong {
    font-size: 0.98rem;
  }

  .home-feature-card small {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .home-note {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .news-tabs {
    gap: 22px;
    margin-bottom: 12px;
  }

  .news-tabs span {
    font-size: 0.92rem;
  }

  .home-news-feed {
    gap: 10px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    min-height: 112px;
    padding: 14px;
    border-radius: 14px;
  }

  .news-copy {
    gap: 6px;
  }

  .news-copy time {
    font-size: 0.76rem;
  }

  .news-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .news-copy span {
    font-size: 0.76rem;
  }

  .news-thumb {
    width: 92px;
    height: 70px;
    border-radius: 9px;
    font-size: 0.72rem;
  }

  .quick-card strong {
    font-size: 0.96rem;
  }

  .quick-card span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .detail-header {
    gap: 10px;
  }

  .detail-block .resource-meta {
    gap: 6px;
  }

  .detail-value {
    font-size: 0.95rem;
  }

  .table-list {
    gap: 8px;
  }

  .table-row {
    gap: 7px;
    padding: 12px;
    border-radius: 12px;
  }

  .table-row strong {
    font-size: 0.95rem;
  }

  .table-row p {
    margin: 0;
    font-size: 0.86rem;
  }

  .table-actions {
    gap: 7px;
  }

  .table-actions .primary-button,
  .table-actions .ghost-button {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .admin-filter {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-record-head {
    flex-direction: column;
  }

  .admin-record-grid,
  .admin-record-compact .admin-record-grid,
  .admin-shortcuts {
    grid-template-columns: 1fr;
  }

  .admin-record-footer,
  .admin-record-footer .table-actions {
    justify-content: stretch;
  }

  .filter-panel {
    padding: 12px;
  }

  .review-note {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .admin-shell {
    min-height: 100vh;
  }

  .admin-sidebar {
    padding: 12px 10px;
    background: #fff;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar .brand small {
    color: var(--muted);
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    margin: 12px -10px 0;
    padding: 0 10px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--brand-strong);
    font-size: 0.82rem;
  }

  .admin-nav a.active,
  .admin-nav a:hover {
    background: var(--brand);
    color: #fff;
  }

  .admin-exit {
    margin-top: 10px;
    min-height: 38px;
    color: var(--brand-strong);
    border-color: var(--line);
    background: #fff;
  }

  .admin-main {
    gap: 12px;
    padding: 12px 10px 24px;
  }

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

  .metric-card {
    padding: 12px;
    border-top-width: 2px;
  }

  .metric-card span {
    font-size: 0.78rem;
  }

  .metric-card strong {
    margin-top: 4px;
    font-size: 1.45rem;
  }

  .admin-panel {
    padding: 14px;
  }

  .bottom-nav a {
    min-height: 46px;
    font-size: 0.72rem;
  }

  .bottom-nav a::before {
    width: 19px;
    height: 19px;
  }

  .bottom-nav {
    width: calc(100% - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 6px;
    border-radius: 18px;
  }

  .sheet-card {
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .sheet-card h2 {
    font-size: 1.12rem;
  }

  .sheet-card p {
    margin: 8px 0 12px;
    font-size: 0.9rem;
  }

  .material-preview-layer {
    padding: 10px;
  }

  .material-preview-dialog {
    max-height: calc(100vh - 20px);
  }

  .material-preview-header {
    padding: 10px;
  }

  .material-preview-body {
    min-height: 68vh;
  }
}

@media (max-width: 390px) {
  :root {
    --space-page: 14px;
    --space-card: 16px;
  }

  .app-shell {
    padding-left: var(--space-page);
    padding-right: var(--space-page);
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .top-actions .ghost-button {
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .hero-copy,
  .panel,
  .detail-card,
  .profile-card,
  .auth-card {
    padding: var(--space-card);
  }

  body[data-page="home"] .hero-copy {
    padding: 14px;
  }

  h1 {
    font-size: 1.66rem;
  }

  h2 {
    font-size: 1.14rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    flex: 1 1 130px;
  }

  .primary-button,
  .danger-button,
  .secondary-button,
  .ghost-button,
  .back-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .resource-card,
  .quick-card {
    padding: 13px;
  }

  .resource-card .muted {
    font-size: 0.8rem;
  }

  .resource-description {
    font-size: 0.84rem;
  }

  .meta-pill,
  .status-pill {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .bottom-nav {
    width: calc(100% - 12px);
  }

  .bottom-nav a {
    min-height: 44px;
  }

  .quick-card {
    min-height: 98px;
  }

  .admin-hero,
  .quick-grid,
  .home-feature-grid {
    gap: 7px;
  }

  .home-feature-card {
    min-height: 108px;
    padding: 11px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr) 82px;
    min-height: 104px;
    padding: 12px;
  }

  .news-thumb {
    width: 82px;
    height: 64px;
  }

  .sheet-actions {
    gap: 8px;
  }
}

/* HDU mobile product style restore. The Figma draft above is kept as reference only. */
body[data-page="home"],
body[data-page="list"],
body[data-page="detail"] {
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 91, 172, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef5ff 42%, #f8fbff 100%);
}

body[data-page="home"] .app-shell,
body[data-page="list"] .app-shell,
body[data-page="detail"] .app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100svh;
  padding: 16px var(--space-page) calc(92px + env(safe-area-inset-bottom));
  background: transparent;
}

.hdu-mobile-topbar,
.hdu-page-topbar {
  min-height: 48px !important;
  height: auto !important;
  margin: 0 0 14px !important;
  padding: 4px 0 !important;
}

.hdu-page-topbar {
  justify-content: center !important;
  position: relative;
}

.hdu-page-topbar .back-link {
  position: absolute;
  left: 0;
  top: 3px;
}

.hdu-page-topbar .page-caption-strong {
  color: var(--brand-deep) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em !important;
}

.hdu-home-hero .hero-copy {
  border-color: rgba(0, 91, 172, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(0, 91, 172, 0.12), transparent 36%);
}

.hdu-home-hero h1 {
  color: var(--brand-deep);
  font-size: 2rem;
}

.home-search-panel {
  align-items: center;
  border-color: rgba(0, 91, 172, 0.12) !important;
  background: rgba(238, 245, 255, 0.92) !important;
}

.list-search-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 20px;
}

.list-search-panel .compact-search {
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.list-search-panel input {
  min-height: 46px;
  border-radius: 16px;
  background: var(--surface);
}

.list-search-panel .filter-toggle-button {
  flex: 0 0 auto;
  min-height: 46px;
}

.list-search-panel .filter-row {
  margin: 0;
  padding: 0 0 2px;
}

.list-search-panel .chip {
  border-color: rgba(0, 91, 172, 0.14);
}

.list-search-panel .chip-active {
  background: var(--brand);
  color: #fff;
}

.list-result-heading {
  margin-bottom: 14px;
}

.list-result-heading h1 {
  margin: 0;
  font-size: 1.8rem;
}

.hdu-alumni-card {
  gap: 10px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-left: 4px solid rgba(0, 91, 172, 0.72);
  background: rgba(255, 255, 255, 0.96);
}

.hdu-alumni-card h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.load-more-button {
  width: 100%;
  margin-top: 14px;
}

body[data-page="detail"] .detail-card {
  padding: var(--space-card);
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

body[data-page="detail"] .detail-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.contact-block {
  display: grid;
  gap: 12px;
}

.hdu-copyright {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

body[data-page="home"] .bottom-nav,
body[data-page="list"] .bottom-nav,
body[data-page="detail"] .bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 420px);
  height: auto;
  padding: 7px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .bottom-nav a,
body[data-page="list"] .bottom-nav a,
body[data-page="detail"] .bottom-nav a {
  min-height: 48px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="home"] .bottom-nav a.active,
body[data-page="list"] .bottom-nav a.active,
body[data-page="detail"] .bottom-nav a.active {
  background: var(--surface);
  color: var(--brand-strong);
}

body[data-page="home"] .bottom-nav a.active::after,
body[data-page="list"] .bottom-nav a.active::after,
body[data-page="detail"] .bottom-nav a.active::after {
  content: none;
}

body[data-page="home"] .bottom-nav a::before,
body[data-page="list"] .bottom-nav a::before,
body[data-page="detail"] .bottom-nav a::before {
  width: 20px;
  height: 20px;
}

/* Wireframe-aligned HDU layout: keep positions from the draft, keep visual style from HDU. */
.hdu-home-banner {
  position: relative;
  height: 156px;
  margin: 16px 6px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: 24px;
  background: #dcecff;
  box-shadow: var(--shadow-card);
}

.hdu-home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 53, 111, 0), rgba(7, 53, 111, 0.1)),
    linear-gradient(90deg, rgba(0, 63, 136, 0.12), rgba(0, 63, 136, 0) 62%);
  pointer-events: none;
}

.hdu-home-banner-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 390px) {
  .hdu-home-banner {
    height: 148px;
    margin-inline: 4px;
  }
}

.hdu-home-actions {
  padding: 20px 0 0;
}

.hdu-home-actions .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hdu-home-actions .home-feature-card,
.hdu-home-actions .home-feature-card.feature-primary {
  grid-column: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 8px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.hdu-home-actions .home-feature-card::after {
  content: none;
}

.hdu-home-actions .home-feature-card strong {
  color: var(--brand-deep);
  font-size: 0.92rem;
  line-height: 1.2;
}

.hdu-home-actions .home-feature-disabled {
  cursor: default;
  opacity: 0.82;
}

.hdu-home-actions .home-feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 91, 172, 0.12), rgba(29, 120, 216, 0.18));
  color: var(--brand-strong);
  font-size: 1.25rem;
  font-weight: 900;
}

.hdu-home-divider,
.hdu-list-divider {
  height: 3px;
  margin: 22px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 172, 0.18), transparent);
}

.hdu-news-section {
  margin-top: 18px;
}

.hdu-news-section .section-heading {
  margin-bottom: 12px;
}

.hdu-news-section h2 {
  color: var(--brand-deep);
  font-size: 1.28rem;
}

.list-search-panel {
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.list-search-panel .compact-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.list-search-icon {
  color: var(--brand-strong);
  font-size: 1.18rem;
  font-weight: 900;
}

.list-search-panel input {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.list-search-panel input:focus {
  box-shadow: none;
}

.list-filter-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 calc(var(--space-page) * -1);
  padding: 0 var(--space-page);
}

.list-filter-strip > span {
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.list-filter-strip .filter-row {
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.list-filter-strip .filter-row::-webkit-scrollbar {
  display: none;
}

.list-filter-strip .chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(0, 91, 172, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-deep);
  font-size: 0.82rem;
}

.list-filter-strip .chip-active {
  background: var(--brand);
  color: #fff;
}

.hdu-list-divider {
  margin-top: 12px;
}

.hdu-list-section {
  margin-top: 16px;
}

.hdu-list-section .stack-list {
  gap: 10px;
}

.hdu-alumni-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px;
  border-left-width: 0;
}

.hdu-card-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.hdu-card-copy {
  min-width: 0;
}

.hdu-card-copy h3 {
  margin: 0 0 3px;
  color: var(--brand-deep);
  font-size: 1.02rem;
  line-height: 1.25;
}

.hdu-card-copy p,
.hdu-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdu-card-copy p {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.hdu-card-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hdu-alumni-card > strong {
  max-width: 58px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 91, 172, 0.08);
  color: var(--brand-strong);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wire-news-feed {
  display: block;
  padding-bottom: 18px;
  border-bottom: 4px solid rgba(0, 91, 172, 0.12);
}

.wire-news-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 85% 12%, rgba(0, 91, 172, 0.12), transparent 30%);
  box-shadow: var(--shadow-card);
}

.wire-news-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--brand-deep);
  font-size: 1.12rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wire-news-card time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.wire-list-title,
.wire-detail-title {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.wire-list-title small,
.wire-detail-title small {
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
}

.wire-detail-title small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.78rem;
}

.detail-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
}

.detail-contact-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.list-search-panel .compact-search {
  grid-template-columns: 24px minmax(0, 1fr) 52px;
}

.list-search-menu,
.list-search-submit {
  display: grid;
  place-items: center;
  color: var(--brand-strong);
}

.list-search-menu {
  width: 24px;
  height: 24px;
}

.list-search-submit {
  width: 52px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.list-search-menu svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.list-search-submit:active {
  transform: scale(0.96);
}

body[data-page="detail"] .section-tight {
  margin-top: 8px;
}

body[data-page="detail"] .detail-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="detail"] .detail-header {
  display: none;
}

.wire-detail-panel {
  display: grid;
  gap: 12px;
  min-height: 420px;
  padding: 24px 22px;
  background: rgba(214, 226, 242, 0.86);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.wire-detail-panel p {
  margin: 0;
}

.wire-detail-panel strong {
  color: #000;
  font-weight: 900;
}

body[data-page="detail"] .contact-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(214, 226, 242, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.detail-bottom-back {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  margin: 22px 0 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.tag-suggestion-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.tag-suggestion-panel .chip {
  min-height: 34px;
  padding: 0 12px;
}

.detail-swipe-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.detail-swipe-actions span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.detail-swipe-actions .ghost-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

/* Global mobile alignment pass: keep tab bars and form rows consistent across pages. */
body[data-page="home"],
body[data-page="list"],
body[data-page="detail"],
body[data-page="profile"],
body[data-page="verify"],
body[data-page="publish"],
body[data-page="my-posts"],
body[data-page="my-verification"],
body:not([data-page]) {
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 91, 172, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef5ff 42%, #f8fbff 100%);
}

body[data-page="home"] .app-shell,
body[data-page="list"] .app-shell,
body[data-page="detail"] .app-shell,
body[data-page="profile"] .app-shell,
body[data-page="verify"] .app-shell,
body[data-page="publish"] .app-shell,
body[data-page="my-posts"] .app-shell,
body[data-page="my-verification"] .app-shell,
body:not([data-page]) .app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100svh;
  padding: 16px var(--space-page) calc(92px + env(safe-area-inset-bottom));
  background: transparent;
}

body[data-page="profile"] .topbar,
body[data-page="verify"] .topbar,
body[data-page="publish"] .topbar,
body[data-page="my-posts"] .topbar,
body[data-page="my-verification"] .topbar {
  min-height: 48px;
  height: auto;
  margin: 0 0 14px;
  padding: 4px 0;
}

body[data-page="profile"] .topbar {
  justify-content: flex-start;
}

body[data-page="profile"] .page-caption-strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

body[data-page="home"] .bottom-nav,
body[data-page="list"] .bottom-nav,
body[data-page="profile"] .bottom-nav,
body[data-page="verify"] .bottom-nav,
body[data-page="publish"] .bottom-nav,
body[data-page="my-posts"] .bottom-nav,
body[data-page="my-verification"] .bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 420px);
  height: auto;
  padding: 7px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .bottom-nav a,
body[data-page="list"] .bottom-nav a,
body[data-page="profile"] .bottom-nav a,
body[data-page="verify"] .bottom-nav a,
body[data-page="publish"] .bottom-nav a,
body[data-page="my-posts"] .bottom-nav a,
body[data-page="my-verification"] .bottom-nav a {
  min-height: 48px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="home"] .bottom-nav a.active,
body[data-page="list"] .bottom-nav a.active,
body[data-page="profile"] .bottom-nav a.active,
body[data-page="verify"] .bottom-nav a.active,
body[data-page="publish"] .bottom-nav a.active,
body[data-page="my-posts"] .bottom-nav a.active,
body[data-page="my-verification"] .bottom-nav a.active {
  background: var(--surface);
  color: var(--brand-strong);
}

body[data-page="home"] .bottom-nav a.active::after,
body[data-page="list"] .bottom-nav a.active::after,
body[data-page="profile"] .bottom-nav a.active::after,
body[data-page="verify"] .bottom-nav a.active::after,
body[data-page="publish"] .bottom-nav a.active::after,
body[data-page="my-posts"] .bottom-nav a.active::after,
body[data-page="my-verification"] .bottom-nav a.active::after {
  content: none;
}

body[data-page="home"] .bottom-nav a::before,
body[data-page="list"] .bottom-nav a::before,
body[data-page="profile"] .bottom-nav a::before,
body[data-page="verify"] .bottom-nav a::before,
body[data-page="publish"] .bottom-nav a::before,
body[data-page="my-posts"] .bottom-nav a::before,
body[data-page="my-verification"] .bottom-nav a::before {
  width: 20px;
  height: 20px;
}

body[data-page="login"],
body[data-page="register"],
body[data-page="admin-login"] {
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 91, 172, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef5ff 42%, #f8fbff 100%);
}

body[data-page="login"] .center-shell,
body[data-page="register"] .center-shell,
body[data-page="admin-login"] .center-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 16px var(--space-page);
}

body[data-page="login"] .auth-card,
body[data-page="register"] .auth-card,
body[data-page="admin-login"] .auth-card {
  width: 100%;
  padding: 22px;
}

.checkbox-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px !important;
  row-gap: 0;
  line-height: 1.45;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  justify-self: center;
  flex: none;
  accent-color: var(--brand);
}

.checkbox-row span {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.checkbox-row .text-link {
  display: inline;
  color: var(--brand-strong);
  font-weight: 800;
}

/* Profile wireframe alignment. */
body[data-page="profile"] .app-shell {
  padding: 34px 18px calc(108px + env(safe-area-inset-bottom));
}

body[data-page="profile"] .topbar {
  min-height: 68px;
  margin: 0 0 24px;
  padding: 0 0 4px;
  align-items: flex-start;
}

body[data-page="profile"] .page-caption-strong {
  color: var(--brand-deep);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

body[data-page="profile"] main {
  min-height: calc(100svh - 230px);
}

body[data-page="profile"] .section-tight {
  margin: 0;
}

body[data-page="profile"] .profile-card {
  display: grid;
  gap: 28px;
  align-items: start;
  justify-content: stretch;
  min-height: 168px;
  padding: 31px 20px 30px;
  border: 1px solid rgba(214, 226, 242, 0.98);
  border-left: 4px solid var(--brand);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

body[data-page="profile"] .profile-card h1 {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

body[data-page="profile"] .profile-card .muted {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

body[data-page="profile"] .profile-actions {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

body[data-page="profile"] .profile-actions .table-actions {
  display: flex;
  gap: 10px;
}

body[data-page="profile"] .profile-actions .primary-button,
body[data-page="profile"] .profile-actions .ghost-button {
  min-width: 74px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.94rem;
}

body[data-page="profile"] .profile-actions [data-logout-button] {
  margin-left: auto;
}

body[data-page="profile"] [data-profile-services] {
  margin-top: 18px;
}

body[data-page="profile"] .quick-list {
  gap: 10px;
}

body[data-page="profile"] .quick-card {
  min-height: 86px;
  padding: 18px 20px;
  border-left-width: 4px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

/* Profile wireframe structure, HDU visual style. */
body[data-page="profile"] .app-shell {
  padding: 16px 18px calc(108px + env(safe-area-inset-bottom));
}

body[data-page="profile"] .topbar {
  justify-content: center !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 0 14px !important;
  padding: 4px 0 !important;
}

body[data-page="profile"] .page-caption-strong {
  color: var(--brand-deep) !important;
  font-size: 1.05rem !important;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body[data-page="profile"] main {
  min-height: calc(100svh - 204px);
}

body[data-page="profile"] .profile-status-section {
  margin-top: 0;
}

body[data-page="profile"] .profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 26px 22px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-left: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(0, 91, 172, 0.12), transparent 32%);
  box-shadow: var(--shadow-card);
}

body[data-page="profile"] .profile-card.is-clickable {
  cursor: pointer;
}

body[data-page="profile"] .profile-card.is-clickable:active {
  transform: scale(0.99);
}

body[data-page="profile"] .profile-avatar {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, var(--brand-deep) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 108%, var(--brand-deep) 0 43%, transparent 44%),
    rgba(0, 91, 172, 0.1);
  box-shadow: inset 0 0 0 3px rgba(0, 91, 172, 0.12);
}

body[data-page="profile"] .profile-card-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

body[data-page="profile"] .profile-card h1 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="profile"] .profile-card .muted {
  color: var(--brand-deep);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.35;
}

body[data-page="profile"] .profile-login-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

body[data-page="profile"] .profile-actions {
  position: relative;
  z-index: 3;
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body[data-page="profile"] .profile-actions .status-pill {
  white-space: nowrap;
}

body[data-page="profile"] .profile-actions [data-logout-button] {
  min-width: 82px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

body[data-page="profile"] .profile-divider {
  height: 3px;
  margin: 30px 0 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 172, 0.18), transparent);
}

body[data-page="profile"] .profile-service-section {
  margin: 0;
}

body[data-page="profile"] .quick-list {
  gap: 14px;
}

body[data-page="profile"] .quick-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px 24px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-left: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

body[data-page="profile"] .quick-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 91, 172, 0.1);
}

body[data-page="profile"] .quick-card-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--brand-deep);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 4v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v1h5v-1H8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 4v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v1h5v-1H8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="profile"] .quick-card-verify-icon::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 5 5v6c0 4.55 2.91 8.7 7 10 4.09-1.3 7-5.45 7-10V5l-7-3Zm-1.05 13.45-3.2-3.2 1.4-1.4 1.8 1.79 4.15-4.14 1.4 1.41-5.55 5.54Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 5 5v6c0 4.55 2.91 8.7 7 10 4.09-1.3 7-5.45 7-10V5l-7-3Zm-1.05 13.45-3.2-3.2 1.4-1.4 1.8 1.79 4.15-4.14 1.4 1.41-5.55 5.54Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="profile"] .quick-card strong {
  color: var(--brand-deep);
  font-size: 1.12rem;
  font-weight: 900;
}

/* Fixed bottom tabs need enough scroll clearance on mobile pages. */
body[data-page="home"] .app-shell,
body[data-page="list"] .app-shell,
body[data-page="profile"] .app-shell,
body[data-page="verify"] .app-shell,
body[data-page="publish"] .app-shell,
body[data-page="my-posts"] .app-shell,
body[data-page="my-verification"] .app-shell {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

body[data-page="detail"] .app-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

body[data-page="list"] .hdu-list-section {
  padding-bottom: 14px;
}

/* DESIGN.md formalization pass: mobile-first, trusted HDU service visual language. */
:root {
  --radius-input: 10px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --radius-nav: 18px;
}

body {
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.primary-button,
.ghost-button,
.danger-button,
.text-button,
button,
input,
select,
textarea {
  font-family: inherit;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 48px;
  border-radius: var(--radius-input);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  border-radius: var(--radius-input);
}

.card,
.auth-card,
.detail-card,
.profile-card,
.quick-card,
.table-panel,
.metric-card,
.resource-card,
.wire-news-card,
.contact-block {
  border-color: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hdu-mobile-topbar .brand-mark {
  width: 40px;
  height: 40px;
}

.hdu-mobile-topbar .brand strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
  font-weight: 900;
}

.hdu-mobile-topbar .brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hdu-page-topbar,
body[data-page="list"] .topbar,
body[data-page="detail"] .topbar,
body[data-page="profile"] .topbar {
  min-height: 48px !important;
  margin: 0 0 14px !important;
  padding: 4px 0 !important;
}

.hdu-page-topbar .page-caption-strong,
body[data-page="list"] .page-caption-strong,
body[data-page="detail"] .page-caption-strong,
body[data-page="profile"] .page-caption-strong {
  color: var(--brand-deep) !important;
  font-size: 1.125rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.25;
}

.wire-list-title small,
.wire-detail-title small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.hdu-home-banner {
  height: 156px;
  margin: 14px 0 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.hdu-home-banner::after {
  background: linear-gradient(180deg, rgba(7, 53, 111, 0), rgba(7, 53, 111, 0.08));
}

.hdu-home-actions {
  padding-top: 18px;
}

.hdu-home-actions .home-feature-card,
.hdu-home-actions .home-feature-card.feature-primary {
  min-height: 86px;
  border-radius: var(--radius-card);
}

.hdu-home-actions .home-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.hdu-home-actions .home-feature-disabled {
  opacity: 0.62;
}

.wire-news-feed {
  border-bottom: 0;
}

.wire-news-card {
  min-height: 108px;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  border-left: 3px solid rgba(0, 91, 172, 0.42);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
}

.wire-news-card strong {
  font-size: 1rem;
}

.wire-news-card time {
  color: var(--muted);
  font-size: 0.8rem;
}

.list-search-panel .compact-search {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 54px;
  border-color: var(--line);
  border-radius: var(--radius-panel);
}

.list-search-panel input {
  min-height: 52px;
  color: var(--text);
  font-size: 0.94rem;
}

.list-search-panel input::placeholder {
  color: var(--muted-soft);
}

.list-search-submit {
  width: 52px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.list-filter-strip .chip {
  min-height: 34px;
  border-color: var(--line);
  border-radius: 8px;
}

.hdu-list-section .stack-list {
  gap: 10px;
}

.hdu-alumni-card {
  grid-template-columns: 42px minmax(0, 1fr) minmax(54px, 72px);
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.hdu-alumni-card:active {
  background: rgba(238, 245, 255, 0.98);
  transform: scale(0.995);
}

.hdu-card-copy h3 {
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 900;
}

.hdu-card-copy p {
  color: var(--text);
  font-size: 0.86rem;
}

.hdu-card-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hdu-alumni-card > strong {
  display: -webkit-box;
  justify-self: end;
  max-width: 72px;
  max-height: 40px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
  text-overflow: initial;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="detail"] .detail-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wire-detail-panel {
  gap: 10px;
  min-height: auto;
  padding: 18px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: var(--shadow-card);
}

.wire-detail-panel p,
.detail-tags-row,
.detail-summary-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
}

.wire-detail-panel strong,
.detail-tags-row strong,
.detail-summary-row strong {
  color: var(--text);
  font-weight: 900;
}

.wire-detail-panel p span,
.detail-summary-row span {
  color: var(--text);
}

.detail-summary-row {
  margin-top: 2px;
}

.detail-summary-row span {
  line-height: 1.7;
}

.detail-tags-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 91, 172, 0.08);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-tag-empty {
  color: var(--muted);
}

body[data-page="detail"] .contact-block {
  padding: 16px;
  border-color: var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.detail-swipe-actions {
  opacity: 0.72;
}

.detail-swipe-actions .ghost-button {
  min-height: 36px;
  border-radius: 999px;
}

.detail-bottom-back {
  min-height: 52px;
  border-radius: 999px;
}

body[data-page="profile"] .profile-card {
  min-height: 132px;
  border-radius: var(--radius-card);
}

body[data-page="profile"] .profile-avatar {
  width: 70px;
  height: 70px;
}

body[data-page="profile"] .quick-card {
  min-height: 92px;
  border-radius: var(--radius-card);
}

.quick-card-copy {
  display: grid;
  gap: 5px;
}

.quick-card-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-page="home"] .bottom-nav,
body[data-page="list"] .bottom-nav,
body[data-page="profile"] .bottom-nav,
body[data-page="verify"] .bottom-nav,
body[data-page="publish"] .bottom-nav,
body[data-page="my-posts"] .bottom-nav,
body[data-page="my-verification"] .bottom-nav {
  width: min(calc(100% - 20px), 420px);
  padding: 6px;
  border-radius: var(--radius-nav);
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="home"] .bottom-nav a,
body[data-page="list"] .bottom-nav a,
body[data-page="profile"] .bottom-nav a,
body[data-page="verify"] .bottom-nav a,
body[data-page="publish"] .bottom-nav a,
body[data-page="my-posts"] .bottom-nav a,
body[data-page="my-verification"] .bottom-nav a {
  min-height: 48px;
  font-size: 0.75rem;
}

body[data-page="home"] .bottom-nav a::before,
body[data-page="list"] .bottom-nav a::before,
body[data-page="profile"] .bottom-nav a::before,
body[data-page="verify"] .bottom-nav a::before,
body[data-page="publish"] .bottom-nav a::before,
body[data-page="my-posts"] .bottom-nav a::before,
body[data-page="my-verification"] .bottom-nav a::before {
  width: 20px;
  height: 20px;
}

.auth-card {
  width: min(100%, 520px);
}

.auth-card input,
.auth-card textarea,
.auth-card select {
  border-radius: var(--radius-input);
}

.checkbox-row {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
}

body[data-page="admin"] .metric-card,
body[data-page="admin"] .table-panel,
body[data-page="admin"] .form-panel {
  border-color: var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
}

body[data-page="admin"] input,
body[data-page="admin"] select,
body[data-page="admin"] button {
  min-height: 42px;
  border-radius: 8px;
}

@media (max-width: 390px) {
.hdu-home-banner {
    height: 142px;
  }
}

/* Admin workspace polish: compact B-side console layout. */
body[data-page="admin"] {
  background: #f5f7fb;
}

body[data-page="admin"] .admin-main {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #f5f7fb;
}

body[data-page="admin"] .admin-page-head {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 86px;
  padding: 20px 32px;
  border-bottom: 1px solid #dbe5f2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body[data-page="admin"] .admin-page-head .section-kicker {
  margin: 0;
  color: #0b63b6;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-page-head h1 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-page-desc {
  margin: 8px 0 0;
  color: #607188;
  font-size: 0.9rem;
}

body[data-page="admin"] .admin-page-head > .ghost-button {
  min-width: 112px;
  background: #fff;
}

body[data-page="admin"] .admin-panel,
body[data-page="admin"] .taxonomy-grid,
body[data-page="admin"] .admin-hero,
body[data-page="admin"] .admin-shortcuts {
  width: auto;
  margin: 24px 32px 0;
}

body[data-page="admin"] .admin-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 36, 58, 0.04);
}

body[data-page="admin"] .taxonomy-manager {
  display: grid;
  gap: 16px;
  padding: 24px;
}

body[data-page="admin"] .taxonomy-form,
body[data-page="admin"] .taxonomy-search-bar {
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page="admin"] .taxonomy-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}

body[data-page="admin"] .taxonomy-manager-head div {
  display: grid;
  gap: 4px;
}

body[data-page="admin"] .taxonomy-manager-head strong {
  color: #13243a;
  font-size: 1rem;
  font-weight: 900;
}

body[data-page="admin"] .taxonomy-manager-head span,
body[data-page="admin"] .taxonomy-column-head p,
body[data-page="admin"] .admin-tag-item small {
  color: #607188;
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-page="admin"] .taxonomy-tabs-shell {
  display: grid;
  gap: 12px;
}

body[data-page="admin"] .taxonomy-manager .taxonomy-grid {
  display: block;
  width: auto;
  margin: 0;
}

body[data-page="admin"] .taxonomy-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

body[data-page="admin"] .taxonomy-overview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f7fbff;
}

body[data-page="admin"] .taxonomy-overview span {
  color: #607188;
  font-weight: 800;
}

body[data-page="admin"] .taxonomy-overview strong {
  color: #0a3a75;
  font-size: 1.8rem;
  font-weight: 900;
}

body[data-page="admin"] .taxonomy-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="admin"] .admin-taxonomy-column {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

body[data-page="admin"] .admin-taxonomy-column h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1rem;
}

body[data-page="admin"] .taxonomy-column-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

body[data-page="admin"] .taxonomy-column-head div {
  display: grid;
  gap: 4px;
}

body[data-page="admin"] .taxonomy-column-head p {
  margin: 0;
}

body[data-page="admin"] .taxonomy-column-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2fb;
  color: #0a3a75;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-tag-list {
  display: grid;
  gap: 10px;
}

body[data-page="admin"] .admin-tag-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(214, 226, 242, 0.9);
  border-radius: 8px;
  background: #fff;
}

body[data-page="admin"] .admin-tag-item > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-page="admin"] .admin-tag-item strong {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

body[data-page="admin"] .taxonomy-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f4f8fd;
}

body[data-page="admin"] .taxonomy-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #607188;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="admin"] .taxonomy-tabs button.active {
  background: #fff;
  color: #0a3a75;
  box-shadow: 0 4px 12px rgba(19, 36, 58, 0.06);
}

body[data-page="admin"] .taxonomy-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 12px;
}

body[data-page="admin"] .taxonomy-search-bar input {
  min-width: 0;
}

body[data-page="admin"] .taxonomy-tabs span,
body[data-page="admin"] .taxonomy-list-head > span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf2fb;
  color: #0a3a75;
  font-size: 0.76rem;
}

body[data-page="admin"] .taxonomy-list-panel {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

body[data-page="admin"] .taxonomy-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2ebf6;
  background: #f7fbff;
}

body[data-page="admin"] .taxonomy-list-head h2 {
  margin: 0;
  color: #13243a;
  font-size: 1rem;
  font-weight: 900;
}

body[data-page="admin"] .taxonomy-list-head p {
  margin: 4px 0 0;
  color: #607188;
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-page="admin"] .taxonomy-table {
  display: grid;
  width: 100%;
  min-width: 0;
}

body[data-page="admin"] .taxonomy-table-scroll {
  height: 560px;
  overflow: auto;
}

body[data-page="admin"] .taxonomy-table-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 220px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf3fa;
}

body[data-page="admin"] .taxonomy-table-row:last-child {
  border-bottom: 0;
}

body[data-page="admin"] .taxonomy-table-head {
  min-height: 42px;
  background: #fbfdff;
  color: #7d8da3;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .taxonomy-table-row strong {
  min-width: 0;
  overflow: hidden;
  color: #13243a;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="admin"] .taxonomy-table-row .table-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body[data-page="admin"] .taxonomy-table-row .table-actions .ghost-button,
body[data-page="admin"] .taxonomy-table-row .table-actions .primary-button {
  min-width: 72px;
}

body[data-page="admin"] .taxonomy-table .admin-empty {
  padding: 32px 18px;
}

body[data-page="admin"] .taxonomy-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid #e2ebf6;
  background: #fbfdff;
}

body[data-page="admin"] .taxonomy-pagination > span {
  color: #607188;
  font-size: 0.84rem;
  font-weight: 800;
}

body[data-page="admin"] .admin-feedback-record .admin-record-head p {
  max-width: 960px;
  white-space: pre-wrap;
}

body[data-page="admin"] .admin-feedback-table-wrap {
  overflow: auto;
}

body[data-page="admin"] .admin-feedback-table {
  display: grid;
  min-width: 980px;
  border: 1px solid #e2ebf6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

body[data-page="admin"] .admin-feedback-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(180px, 1fr) 160px 120px 220px;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #edf3fa;
}

body[data-page="admin"] .admin-feedback-row:last-child {
  border-bottom: 0;
}

body[data-page="admin"] .admin-feedback-head {
  min-height: 46px;
  background: #f7fbff;
  color: #7d8da3;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-feedback-head > span,
body[data-page="admin"] .admin-feedback-cell {
  padding: 16px 18px;
}

body[data-page="admin"] .admin-feedback-cell {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

body[data-page="admin"] .admin-feedback-cell strong {
  color: #13243a;
  font-size: 0.92rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-feedback-cell p {
  margin: 0;
  color: #607188;
  font-size: 0.84rem;
  line-height: 1.5;
}

body[data-page="admin"] .admin-feedback-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="admin"] .admin-feedback-actions .table-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body[data-page="admin"] .admin-feedback-detail-copy {
  padding: 16px 18px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  color: #1d2f46;
  line-height: 1.75;
  white-space: pre-wrap;
}

body[data-page="admin"] .admin-record-grid-wide {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

body[data-page="admin"] .admin-feedback-image {
  margin: 16px 0 0;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f7fbff;
}

body[data-page="admin"] .admin-feedback-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.admin-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 280px));
  height: 100%;
  border-left: 1px solid #dbe5f2;
  background: #fff;
  box-shadow: -22px 0 44px rgba(19, 36, 58, 0.16);
  opacity: 0;
  transform: translateX(24px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.admin-drawer-visible {
  pointer-events: auto;
}

.admin-drawer-visible .admin-drawer-backdrop {
  opacity: 1;
}

.admin-drawer-visible .admin-drawer {
  opacity: 1;
  transform: translateX(0);
}

.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid #dbe5f2;
  background: #fff;
}

.admin-drawer-header h2 {
  margin: 4px 0 0;
  color: #13243a;
  font-size: 1.35rem;
  font-weight: 900;
}

body[data-page="admin"] .admin-detail-body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px 28px 28px;
  overflow: auto;
  background: #f5f7fb;
}

body[data-page="admin"] .admin-detail-section {
  display: grid;
  gap: 12px;
}

body[data-page="admin"] .admin-detail-section h3 {
  margin: 0;
  color: var(--brand-deep);
}

body[data-page="admin"] .admin-detail-resource {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

body[data-page="admin"] .admin-filter {
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr) 92px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #e2ebf6;
  background: #fff;
}

body[data-page="admin"] .admin-filter input,
body[data-page="admin"] .admin-filter select {
  background: #fff;
}

body[data-page="admin"] .table-list {
  gap: 10px;
  padding: 14px 16px 16px;
}

body[data-page="admin"] .admin-list-summary {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: #f4f8fd;
  color: #607188;
  font-size: 0.9rem;
}

body[data-page="admin"] .admin-record {
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.7fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-color: #e2ebf6;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body[data-page="admin"] .admin-record:hover {
  border-color: #bdd3ec;
  box-shadow: 0 6px 18px rgba(19, 36, 58, 0.06);
}

body[data-page="admin"] .admin-record-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body[data-page="admin"] .admin-record-head strong {
  font-size: 0.98rem;
}

body[data-page="admin"] .admin-record-head p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #607188;
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="admin"] .admin-record-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px 18px;
}

body[data-page="admin"] .admin-record-grid dt {
  margin-bottom: 3px;
  color: #7d8da3;
  font-size: 0.74rem;
}

body[data-page="admin"] .admin-record-grid dd {
  color: #1d2f46;
  font-size: 0.9rem;
}

body[data-page="admin"] .admin-record-footer {
  padding: 0;
  border-top: 0;
}

body[data-page="admin"] .admin-record-footer .table-actions {
  flex-wrap: nowrap;
}

body[data-page="admin"] .admin-record-footer .primary-button,
body[data-page="admin"] .admin-record-footer .ghost-button {
  min-width: 72px;
}

body[data-page="admin"] .sheet-layer {
  align-items: center;
  justify-items: center;
  padding: 24px;
}

body[data-page="admin"] .sheet-backdrop {
  background: rgba(9, 24, 44, 0.42);
  backdrop-filter: none;
}

body[data-page="admin"] .sheet-card {
  width: min(460px, calc(100vw - 48px));
  max-width: 460px;
  margin: 0;
  padding: 24px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(19, 36, 58, 0.2);
  transform: translateY(8px) scale(0.98);
}

body[data-page="admin"] .sheet-visible .sheet-card {
  transform: translateY(0) scale(1);
}

body[data-page="admin"] .sheet-handle {
  display: none;
}

body[data-page="admin"] .sheet-card h2 {
  margin: 0;
  color: #13243a;
  font-size: 1.14rem;
  line-height: 1.35;
}

body[data-page="admin"] .sheet-card p {
  margin: 10px 0 0;
  color: #607188;
  line-height: 1.6;
}

body[data-page="admin"] .sheet-card textarea {
  min-height: 112px;
  margin-top: 16px;
  border-radius: 8px;
  resize: vertical;
}

body[data-page="admin"] .sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

body[data-page="admin"] .sheet-actions button {
  width: auto;
  min-width: 88px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
}

body[data-page="admin"] .admin-empty {
  padding: 28px;
  border: 1px dashed #c9d8eb;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}

body[data-page="admin"] .admin-hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="admin"] .metric-card {
  padding: 18px;
  border-top: 0;
}

body[data-page="admin"] .metric-card strong {
  margin-top: 8px;
  font-size: 1.85rem;
}

@media (max-width: 1280px) {
  body[data-page="admin"] .admin-record {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body[data-page="admin"] .admin-record-footer,
  body[data-page="admin"] .admin-record-footer .table-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  body[data-page="admin"] .admin-page-head {
    min-height: auto;
    padding: 16px;
  }

  body[data-page="admin"] .admin-panel,
  body[data-page="admin"] .taxonomy-grid,
  body[data-page="admin"] .admin-hero,
  body[data-page="admin"] .admin-shortcuts {
    margin: 14px 12px 0;
  }

  body[data-page="admin"] .admin-filter,
  body[data-page="admin"] .admin-record-grid,
  body[data-page="admin"] .admin-hero,
  body[data-page="admin"] .admin-shortcuts {
    grid-template-columns: 1fr;
  }
}

/* Final DESIGN.md pass: keep the effective UI on the HDU blue-white system. */
:root {
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --radius-nav: 18px;
}

.brand,
.page-title,
h1,
h2,
h3,
.page-caption-strong {
  letter-spacing: 0;
}

body[data-page="home"],
body[data-page="list"],
body[data-page="detail"],
body[data-page="profile"],
body[data-page="verify"],
body[data-page="publish"],
body[data-page="my-posts"],
body[data-page="my-verification"],
body[data-page="login"],
body[data-page="register"],
body[data-page="admin-login"],
body:not([data-page]) {
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 91, 172, 0.1), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 44%, #f8fbff 100%);
}

body[data-page="home"] .app-shell,
body[data-page="list"] .app-shell,
body[data-page="detail"] .app-shell,
body[data-page="profile"] .app-shell,
body[data-page="verify"] .app-shell,
body[data-page="publish"] .app-shell,
body[data-page="my-posts"] .app-shell,
body[data-page="my-verification"] .app-shell,
body:not([data-page]) .app-shell {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100svh;
  padding: 16px var(--space-page) calc(112px + env(safe-area-inset-bottom));
  background: transparent;
}

.hero-copy,
.panel,
.auth-card,
.detail-card,
.profile-card,
.quick-card,
.metric-card,
.resource-card,
.wire-news-card,
.contact-block,
.subtle-panel,
.table-panel {
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.back-link {
  min-height: 48px;
  border-radius: var(--radius-input);
  font-size: 0.92rem;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 91, 172, 0.16);
}

.secondary-button {
  border: 1px solid rgba(0, 91, 172, 0.14);
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: none;
}

.ghost-button,
.back-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  box-shadow: none;
}

.danger-button {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 22px rgba(194, 65, 12, 0.14);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: var(--line);
  border-radius: var(--radius-input);
  background: var(--paper);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 120, 216, 0.12);
}

.form-panel {
  gap: 16px;
}

.form-panel label,
.form-panel fieldset {
  gap: 8px;
}

.form-panel label > span,
.form-panel legend {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.banner,
.banner-warm {
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--brand-strong);
}

/* Checkbox rows must align even when agreement text wraps to multiple lines. */
.checkbox-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  width: 100%;
  line-height: 1.45;
}

.checkbox-row input,
.checkbox-row input[type="checkbox"] {
  grid-column: 1;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  justify-self: start;
  align-self: start;
  accent-color: var(--brand);
}

.checkbox-row span {
  grid-column: 2;
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-row .text-link {
  display: inline;
  min-height: auto;
  padding: 0;
  color: var(--brand-strong);
  font-weight: 800;
  line-height: inherit;
  white-space: normal;
}

.hdu-home-banner {
  height: 156px;
  margin: 14px 0 0;
  border-radius: var(--radius-panel);
  background: var(--surface-strong);
}

.hdu-home-actions .home-feature-card,
.hdu-home-actions .home-feature-card.feature-primary {
  min-height: 86px;
  border-radius: var(--radius-card);
}

.hdu-home-actions .home-feature-icon {
  border-radius: var(--radius-card);
  background: rgba(0, 91, 172, 0.1);
  color: var(--brand-strong);
}

.hdu-home-actions .home-feature-disabled {
  opacity: 0.64;
}

.wire-news-feed {
  border-bottom: 0;
}

.wire-news-card {
  min-height: 108px;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  border-left: 3px solid rgba(0, 91, 172, 0.42);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
}

.wire-list-title small,
.wire-detail-title small {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.list-search-panel .compact-search {
  grid-template-columns: 24px minmax(0, 1fr) 52px;
  min-height: 54px;
  border-color: var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.96);
}

.list-search-panel input {
  min-height: 52px;
}

.list-search-submit {
  width: 52px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--brand);
}

.list-filter-strip .chip,
.tag-suggestion-panel .chip {
  min-height: 34px;
  border-color: var(--line);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-deep);
}

.list-filter-strip .chip-active,
.tag-suggestion-panel .chip-active {
  background: var(--brand);
  color: #fff;
}

.hdu-alumni-card {
  grid-template-columns: 42px minmax(0, 1fr) minmax(56px, 72px);
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
}

.hdu-alumni-card > strong {
  display: -webkit-box;
  justify-self: end;
  max-width: 72px;
  max-height: 40px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 91, 172, 0.08);
  color: var(--brand-strong);
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
  text-overflow: initial;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="detail"] .detail-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wire-detail-panel {
  gap: 10px;
  min-height: auto;
  padding: 18px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: var(--shadow-card);
}

.wire-detail-panel p,
.detail-tags-row,
.detail-summary-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.wire-detail-panel strong,
.detail-tags-row strong,
.detail-summary-row strong {
  color: var(--text);
}

body[data-page="detail"] .contact-block {
  border-radius: var(--radius-card);
  background: var(--paper);
}

.detail-bottom-back {
  border-radius: var(--radius-input);
}

body[data-page="profile"] .topbar {
  justify-content: center !important;
}

body[data-page="profile"] .profile-card {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 132px;
  padding: 24px 22px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="profile"] .profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
}

body[data-page="profile"] .profile-name-row h1 {
  margin: 0;
  line-height: 1;
}

body[data-page="profile"] .profile-name-row .status-pill {
  flex: 0 0 auto;
  align-self: center;
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.76rem;
  line-height: 26px;
}

body[data-page="profile"] .profile-actions {
  display: none;
}

body[data-page="profile"] .profile-header-logout {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  min-width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-input);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="profile"] .quick-card {
  min-height: 92px;
  border-radius: var(--radius-card);
}

body[data-page="my-verification"] .panel[data-my-verification] {
  padding: 26px 22px;
}

body[data-page="my-verification"] .state-row {
  align-items: center;
  flex-wrap: nowrap;
}

body[data-page="my-verification"] .page-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.7rem);
}

body[data-page="my-verification"] .status-pill {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0 10px;
  border-radius: 50%;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body[data-page="my-verification"] .status-verified {
  background: var(--success-bg);
  color: var(--success);
}

body[data-page="my-verification"] .status-rejected,
body[data-page="my-verification"] .status-withdrawn {
  background: var(--danger-bg);
  color: var(--danger);
}

.certified-field input[readonly] {
  border-color: rgba(214, 226, 242, 0.96);
  background: var(--surface);
  color: var(--brand-deep);
  font-weight: 800;
}

.publish-certified-kicker {
  margin: 4px 0 -4px;
}

body[data-page="home"] .bottom-nav,
body[data-page="list"] .bottom-nav,
body[data-page="profile"] .bottom-nav,
body[data-page="verify"] .bottom-nav,
body[data-page="publish"] .bottom-nav,
body[data-page="my-posts"] .bottom-nav,
body[data-page="my-verification"] .bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 420px);
  height: auto;
  padding: 6px;
  border: 1px solid rgba(214, 226, 242, 0.96);
  border-radius: var(--radius-nav);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .bottom-nav a,
body[data-page="list"] .bottom-nav a,
body[data-page="profile"] .bottom-nav a,
body[data-page="verify"] .bottom-nav a,
body[data-page="publish"] .bottom-nav a,
body[data-page="my-posts"] .bottom-nav a,
body[data-page="my-verification"] .bottom-nav a {
  min-height: 48px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-page="home"] .bottom-nav a.active,
body[data-page="list"] .bottom-nav a.active,
body[data-page="profile"] .bottom-nav a.active,
body[data-page="verify"] .bottom-nav a.active,
body[data-page="publish"] .bottom-nav a.active,
body[data-page="my-posts"] .bottom-nav a.active,
body[data-page="my-verification"] .bottom-nav a.active {
  background: var(--surface);
  color: var(--brand-strong);
}

body[data-page="home"] .bottom-nav a.active::after,
body[data-page="list"] .bottom-nav a.active::after,
body[data-page="profile"] .bottom-nav a.active::after,
body[data-page="verify"] .bottom-nav a.active::after,
body[data-page="publish"] .bottom-nav a.active::after,
body[data-page="my-posts"] .bottom-nav a.active::after,
body[data-page="my-verification"] .bottom-nav a.active::after {
  content: none;
}

body[data-page="admin"] .admin-main {
  gap: 22px;
}

body[data-page="admin"] .metric-card {
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

body[data-page="admin"] .admin-panel {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

body[data-page="admin"] .admin-filter {
  grid-template-columns: 190px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body[data-page="admin"] .admin-filter input,
body[data-page="admin"] .admin-filter select,
body[data-page="admin"] .admin-filter button,
body[data-page="admin"] .admin-filter .ghost-button,
body[data-page="admin"] .admin-filter .secondary-button {
  min-height: 42px;
  border-radius: var(--radius-input);
}

body[data-page="admin"] .admin-filter input,
body[data-page="admin"] .admin-filter select {
  background: var(--paper);
}

body[data-page="admin"] .table-row {
  border-color: rgba(214, 226, 242, 0.9);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: none;
}

body[data-page="admin"] .feedback-root {
  top: auto;
  bottom: 24px;
  left: calc(240px + (100vw - 240px) / 2);
}

body[data-page="publish"] .inline-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

body[data-page="publish"] .inline-options legend {
  grid-column: 1 / -1;
}

body[data-page="publish"] .inline-options label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  line-height: 1.45;
}

body[data-page="publish"] .inline-options input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--brand);
}

.publish-action-row,
.verify-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-action-row .primary-button,
.publish-action-row .ghost-button,
.verify-action-row .primary-button,
.verify-action-row .ghost-button {
  width: 100%;
}

.publish-action-row [data-resource-hide][hidden] + .primary-button {
  grid-column: 1 / -1;
}

body[data-page="verify"] .verify-action-row {
  grid-template-columns: 1fr;
}

body[data-page="publish"] {
  overflow: hidden;
}

body[data-page="publish"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 100svh;
  padding: 16px var(--space-page) calc(14px + env(safe-area-inset-bottom));
}

body[data-page="publish"] .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 10px 0 14px;
  background: transparent;
}

body[data-page="publish"] .publish-topbar {
  justify-content: center !important;
}

body[data-page="publish"] .publish-topbar .back-link {
  left: 0;
  top: 6px;
}

body[data-page="publish"] main {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 14px;
  -webkit-overflow-scrolling: touch;
}

body[data-page="publish"] .section-tight {
  margin: 0;
}

body[data-page="publish"] .form-panel {
  margin-bottom: 0;
}

body[data-page="publish"] > .app-shell > .publish-action-row {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0), var(--bg) 28%);
}

body[data-page="publish"] .bottom-nav {
  display: none;
}

body[data-page="list"] {
  overflow: hidden;
}

body[data-page="list"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  min-height: 100svh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  overflow: hidden;
}

body[data-page="list"] .topbar {
  position: relative;
  z-index: 20;
  margin-bottom: 12px !important;
}

body[data-page="list"] main {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body[data-page="list"] .list-search-panel,
body[data-page="list"] .list-filter-strip,
body[data-page="list"] .hdu-list-divider {
  flex: 0 0 auto;
}

body[data-page="list"] .list-filter-strip {
  margin-bottom: 10px;
}

body[data-page="list"] .hdu-list-section {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 0 14px;
  -webkit-overflow-scrolling: touch;
}

body[data-page="list"] .hdu-list-section .stack-list {
  padding-bottom: 8px;
}

body[data-page="verify"] {
  overflow: hidden;
}

body[data-page="verify"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 100svh;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  overflow: hidden;
}

body[data-page="verify"] .topbar {
  position: relative;
  z-index: 20;
  margin-bottom: 12px !important;
}

body[data-page="verify"] .verify-topbar {
  align-items: center;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 6px 0 12px !important;
}

body[data-page="verify"] .verify-topbar .back-link {
  left: 0;
  top: 4px;
}

body[data-page="verify"] main {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 14px;
  -webkit-overflow-scrolling: touch;
}

body[data-page="verify"] .section-tight {
  margin: 0;
}

body[data-page="verify"] .form-panel {
  margin-bottom: 0;
}

body[data-page="verify"] > .app-shell > .verify-action-row {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0), var(--bg) 28%);
}

body[data-page="verify"] .bottom-nav {
  display: none;
}

.verify-readonly-panel {
  gap: 16px;
  padding: 18px;
}

.verify-readonly-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(214, 226, 242, 0.94);
  border-radius: 8px;
  background: #f8fbff;
}

.verify-readonly-status .status-pill {
  width: auto;
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.verify-readonly-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.verify-readonly-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.verify-readonly-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(214, 226, 242, 0.82);
}

.verify-readonly-list div:last-child {
  border-bottom: 0;
}

.verify-readonly-list dt {
  color: var(--muted);
  font-weight: 800;
}

.verify-readonly-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verify-material-preview {
  display: grid;
  gap: 8px;
  margin: 0;
}

.verify-material-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid rgba(214, 226, 242, 0.94);
  border-radius: 8px;
  background: var(--surface);
}

.verify-material-preview figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  body[data-page="admin"] .feedback-root {
    left: 50%;
    bottom: 18px;
  }
}

@media (max-width: 390px) {
  body[data-page="publish"] .inline-options {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  body[data-page="profile"] .profile-header-logout {
    right: 0;
  }

  body[data-page="my-verification"] .status-pill {
    width: 68px;
    height: 68px;
    font-size: 0.84rem;
  }
}

/* Legacy Figma draft selectors may still be referenced by older markup; map them to HDU tokens. */
.figma-search-bar,
.figma-card-media,
.figma-hero-image,
.figma-news-panel {
  background: var(--surface);
  color: var(--brand-deep);
}

.figma-search-bar input,
.figma-search-menu,
.figma-search-icon,
.figma-filter-label,
.figma-card-text h3,
.figma-card-text p {
  color: var(--text);
}

.figma-alumni-card,
.figma-list-section .resource-card {
  border-color: var(--line);
}

.figma-avatar,
.figma-card-media span {
  background: var(--surface-strong);
  color: var(--brand-strong);
}

/* Unified icon system for mobile pages and the admin console. */
.nav-home {
  --nav-icon: var(--icon-home);
}

.nav-find {
  --nav-icon: var(--icon-search);
}

.nav-me {
  --nav-icon: var(--icon-user);
}

.bottom-nav a::before {
  background: currentColor;
  mask: var(--nav-icon) center / contain no-repeat;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
}

.hdu-home-actions .home-feature-icon {
  color: var(--brand-strong);
  font-size: 0;
}

.hdu-home-actions .home-feature-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--app-icon) center / contain no-repeat;
  -webkit-mask: var(--app-icon) center / contain no-repeat;
}

.hdu-home-actions .home-feature-disabled .home-feature-icon {
  color: #7d8da3;
}

.list-search-menu.app-icon {
  background: currentColor;
}

.detail-contact-icon .app-icon {
  width: 15px;
  height: 15px;
}

body[data-page="profile"] .quick-card-icon::before {
  background: var(--brand-deep);
  mask: var(--quick-icon, var(--icon-file)) center / contain no-repeat;
  -webkit-mask: var(--quick-icon, var(--icon-file)) center / contain no-repeat;
}

body[data-page="profile"] .quick-card-verify-icon {
  --quick-icon: var(--icon-shield);
}

body[data-page="profile"] .quick-card-feedback-icon {
  --quick-icon: var(--icon-file);
}

body[data-page="feedback"] .feedback-form {
  gap: 20px;
}

body[data-page="feedback"] .feedback-form-section {
  display: grid;
  gap: 10px;
}

body[data-page="feedback"] .feedback-action-row {
  margin-top: 18px;
  grid-template-columns: 1fr;
  padding-top: 14px;
  border-top: 1px solid #dbe5f2;
}

body[data-page="feedback"] .feedback-action-row .primary-button,
body[data-page="feedback"] .feedback-action-row .ghost-button {
  width: 100%;
  justify-content: center;
}

body[data-page="admin"] .admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="admin"] .admin-nav a::before,
body[data-page="admin"] .admin-exit::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.9;
  mask: var(--admin-icon, var(--icon-dashboard)) center / contain no-repeat;
  -webkit-mask: var(--admin-icon, var(--icon-dashboard)) center / contain no-repeat;
}

body[data-page="admin"] .admin-nav a[href$="admin.html"] {
  --admin-icon: var(--icon-dashboard);
}

body[data-page="admin"] .admin-nav a[href$="admin-resources.html"] {
  --admin-icon: var(--icon-file);
}

body[data-page="admin"] .admin-nav a[href$="admin-verifications.html"] {
  --admin-icon: var(--icon-shield);
}

body[data-page="admin"] .admin-nav a[href$="admin-users.html"] {
  --admin-icon: var(--icon-users);
}

body[data-page="admin"] .admin-nav a[href$="admin-contact-logs.html"] {
  --admin-icon: var(--icon-clock);
}

body[data-page="admin"] .admin-nav a[href$="admin-feedback.html"] {
  --admin-icon: var(--icon-file);
}

body[data-page="admin"] .admin-nav a[href$="admin-taxonomy.html"] {
  --admin-icon: var(--icon-tags);
}

body[data-page="admin"] .admin-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body[data-page="admin"] .admin-exit::before {
  --admin-icon: var(--icon-logout);
}

body[data-page="maintenance"] {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(0, 91, 172, 0.12), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 75% 18%, rgba(29, 120, 216, 0.14), transparent 34%),
    var(--bg);
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.maintenance-card {
  width: min(560px, 100%);
  padding: 48px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-float);
}

.maintenance-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  filter: drop-shadow(0 12px 22px rgba(0, 91, 172, 0.18));
}

.maintenance-card h1 {
  margin: 8px 0 12px;
  color: var(--brand-strong);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.maintenance-card p {
  margin: 0 auto;
  max-width: 390px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.maintenance-card small {
  display: block;
  color: var(--muted-soft);
  font-weight: 700;
}

.maintenance-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  margin: 24px 0 14px;
}

.maintenance-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  animation: maintenance-pulse 1.1s ease-in-out infinite;
}

.maintenance-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.maintenance-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes maintenance-pulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .admin-drawer {
    width: min(92vw, 760px);
  }

  body[data-page="admin"] .admin-filter {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .taxonomy-search-bar {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .taxonomy-table-scroll {
    height: auto;
  }

  body[data-page="admin"] .taxonomy-table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="admin"] .taxonomy-table-row .table-actions {
    justify-content: flex-start;
  }

  body[data-page="admin"] .taxonomy-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="admin"] .admin-feedback-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="admin"] .admin-feedback-actions .table-actions {
    justify-content: flex-start;
  }

  body[data-page="admin"] .taxonomy-board,
  body[data-page="admin"] .taxonomy-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] .app-shell,
  body[data-page="list"] .app-shell,
  body[data-page="detail"] .app-shell,
  body[data-page="profile"] .app-shell,
  body[data-page="verify"] .app-shell,
  body[data-page="publish"] .app-shell,
  body[data-page="feedback"] .app-shell,
  body[data-page="my-posts"] .app-shell,
  body[data-page="my-verification"] .app-shell,
  body:not([data-page]) .app-shell {
    padding-left: var(--space-page);
    padding-right: var(--space-page);
  }

  .hdu-home-banner {
    height: 142px;
  }
}
