/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --bg: #f5f4ed;
  --surface: #faf9f5;
  --ink: #181715;
  --ink-soft: #5f5c55;
  --ink-muted: #8a867f;
  --line: rgba(24, 23, 21, 0.14);
  --line-strong: rgba(24, 23, 21, 0.24);
  --accent: #c96442;
  --accent-deep: #9f4c2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 34px;
}

.login-title {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

.login-sub {
  color: var(--ink-soft);
  margin-top: 8px;
  margin-bottom: 26px;
  font-size: 14px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}

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

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 11px 12px;
  min-height: 43px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid rgba(201, 100, 66, 0.25);
  outline-offset: 1px;
  border-color: var(--accent);
  background: #fff;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

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

.primary-btn,
.ghost-btn,
.warn-btn {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-btn:hover {
  background: #fff;
}

.warn-btn {
  background: #ba3f33;
  color: #fff;
}

.helper {
  font-size: 12px;
  color: var(--ink-soft);
}

.error {
  color: #b6362a;
  font-size: 13px;
  margin-top: 8px;
}

.success {
  color: #1f7a4d;
  font-size: 13px;
  margin-top: 8px;
}

.ui-notice {
  margin: 10px 0 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.5;
}

.ui-notice.info {
  border-color: rgba(24, 23, 21, 0.2);
  color: var(--ink-soft);
}

.ui-notice.success {
  border-color: rgba(31, 122, 77, 0.36);
  background: rgba(31, 122, 77, 0.07);
  color: #1f7a4d;
}

.ui-notice.warning {
  border-color: rgba(191, 123, 34, 0.36);
  background: rgba(191, 123, 34, 0.07);
  color: #8e5f13;
}

.ui-notice.error {
  border-color: rgba(186, 63, 51, 0.36);
  background: rgba(186, 63, 51, 0.08);
  color: #a3352b;
}

.admin-frame {
  min-height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 262px 1fr;
  overflow: hidden;
}

.admin-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f5f2ea;
}

.brand-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.brand-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.admin-brand-lockup {
  border: 1px solid #ddc1ae;
  background: #fff;
  padding: 9px 10px;
  margin-bottom: 0;
}

.admin-nav-stack {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding-right: 2px;
}

.admin-nav-group {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.admin-menu-title {
  margin: 0 0 8px;
  padding: 0 2px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #6d4935;
  font-weight: 800;
}

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

.admin-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 46px;
  line-height: 1;
  padding: 0 12px 0 16px;
  color: #1f1a16;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #ddc6b6;
  background: #fff;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
}

.admin-nav-item:hover {
  background: #fff7f0;
  border-color: #d7bca7;
  color: #1b1714;
  transform: translateX(1px);
}

.admin-nav-item.active {
  background: #fff3e8;
  border-color: #c67842;
  color: #1b1714;
  font-weight: 700;
}

.admin-nav-item.active::before {
  background: #a04100;
}

.workspace-menu-title {
  margin: 6px 0 10px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

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

.nav-item {
  display: block;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  transform: translateX(2px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}

.nav-item.active {
  color: var(--ink);
  border-color: rgba(201, 100, 66, 0.24);
  background: rgba(201, 100, 66, 0.12);
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
}

.admin-sidebar-footer {
  border-top: 1px solid #ddc1ae;
  background: #fffef9;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.sidebar-footer p {
  margin: 0 0 6px;
}

.sidebar-footer .muted {
  color: var(--ink-soft);
}

.admin-user-card {
  border: 1px solid #e1cbb8;
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.admin-user-name {
  margin: 0;
  font-size: 13px;
  color: #241d18;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-role {
  margin: 0;
  font-size: 12px;
  color: #7a5f4b;
  line-height: 1.2;
}

.admin-logout-btn {
  min-height: 40px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-color: #d8b8a1;
  background: #fff6ee;
}

.admin-logout-btn:hover {
  background: #ffefe1;
  border-color: #cfa488;
}

.admin-main {
  min-width: 0;
  height: 100svh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f4eb 0%, #f4f1e8 100%);
}

.member-shell {
  min-height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 256px 1fr;
  overflow: hidden;
  background: #fafaf5;
}

.member-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  padding: 32px 0 18px;
  background: #eeeee9;
  display: flex;
  flex-direction: column;
}

.member-brand {
  padding: 0 32px;
  margin: 0 0 26px;
}

.member-brand-title {
  margin: 0;
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #191b18;
}

.member-brand-sub {
  margin: 5px 0 0;
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d716b;
}

.member-nav-list {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.member-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  color: #60615f;
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease;
}

.member-nav-icon {
  font-size: 19px;
}

.member-nav-item:hover {
  color: #a04100;
}

.member-nav-item.active {
  color: #a04100;
  background: #fafaf5;
  font-weight: 800;
  border-left: 4px solid #a04100;
  padding-left: 20px;
}

.member-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
}

.member-user-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2a2b2a;
}

.member-user-role {
  margin: 4px 0 12px;
  font-size: 12px;
  color: #6a6d67;
}

.member-logout-btn {
  width: 100%;
  border-radius: 0;
  min-height: 40px;
  border: 1px solid rgba(142, 113, 100, 0.24);
  background: #fafaf5;
}

.member-main {
  min-width: 0;
  height: 100svh;
  overflow-y: auto;
  padding: 32px 36px 46px;
  background: #fafaf5;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid rgba(226, 191, 176, 0.4);
  padding: 0 0 28px;
}

.member-kicker {
  margin: 0;
  color: #7a7d78;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.member-header h1 {
  margin: 6px 0 0;
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: clamp(33px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1a1c19;
  line-height: 1.1;
}

.member-header p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #73756f;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.member-subscription-card {
  border: 1px solid rgba(142, 113, 100, 0.24);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-subscription-copy {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.member-subscription-label {
  margin: 0;
  font-size: 10px;
  color: #8a8d87;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.member-subscription-value {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #2a2c29;
  white-space: nowrap;
}

.member-subscription-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  background: #ff6b00;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 0.18s ease;
}

.member-subscription-action:hover {
  filter: brightness(1.08);
}

.member-content {
  padding: 24px 0 0;
  width: 100%;
}

.user-frame {
  min-height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 248px 1fr;
  overflow: hidden;
}

.user-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #f8f3ea 0%, #f2ece3 100%);
}

.user-main {
  min-width: 0;
  height: 100svh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f4eb 0%, #f4f1e8 100%);
}

.expired-banner {
  background: rgba(186, 63, 51, 0.1);
  border-bottom: 1px solid rgba(186, 63, 51, 0.3);
  color: #8e2b22;
  font-size: 13px;
  padding: 10px 16px;
}

.admin-header {
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--line);
  animation: fadeInUp 0.35s ease both;
}

.user-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.user-subscription-card {
  border: 1px solid #d8b8a1;
  background: #fffaf4;
  padding: 10px 12px;
  min-width: 188px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.user-subscription-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6954;
  font-weight: 700;
}

.user-subscription-value {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #2b1f18;
}

.user-subscription-action {
  justify-self: start;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a04100;
}

.user-subscription-action:hover {
  color: #7d2f00;
}

.workspace-kicker {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-header h1 {
  margin: 5px 0 0;
  font-size: clamp(24px, 3.2vw, 30px);
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1.24;
}

.admin-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-content {
  padding: 22px 32px 40px;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  animation: fadeInUp 0.45s ease both;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.surface {
  border: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.84);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 19, 0.03);
}

.surface h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1.35;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

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

.table th {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  background: #fbfaf6;
}

.table tbody tr:nth-child(even) {
  background: rgba(245, 244, 237, 0.42);
}

.table tbody tr:hover {
  background: rgba(201, 100, 66, 0.08);
}

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

.table td .row {
  gap: 8px;
}

.table td .ghost-btn,
.table td .warn-btn,
.table td .primary-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.detail-toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.report-meta-grid {
  margin-top: 14px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.report-meta-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.report-meta-item p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.report-meta-item b {
  display: inline-block;
  margin-top: 8px;
}

.plan-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.plan-chip.active {
  border-color: var(--accent);
  background: rgba(201, 100, 66, 0.12);
  color: var(--ink);
}

.version-row-active {
  background: rgba(201, 100, 66, 0.08);
}

.badge {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-flex;
}

.badge.active {
  background: rgba(31, 122, 77, 0.1);
  border-color: rgba(31, 122, 77, 0.35);
  color: #1f7a4d;
}

.badge.frozen {
  background: rgba(186, 63, 51, 0.1);
  border-color: rgba(186, 63, 51, 0.35);
  color: #a3352b;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.kpi-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.kpi-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.kpi-item b {
  display: block;
  font-size: 22px;
  margin-top: 8px;
}

.md-view {
  margin-top: 10px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  line-height: 1.75;
}

.markdown-view {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  line-height: 1.75;
}

.markdown-view > *:first-child {
  margin-top: 0;
}

.markdown-view > *:last-child {
  margin-bottom: 0;
}

.markdown-view h1,
.markdown-view h2,
.markdown-view h3,
.markdown-view h4 {
  margin: 1.1em 0 0.5em;
  line-height: 1.35;
}

.markdown-view p,
.markdown-view ul,
.markdown-view ol,
.markdown-view blockquote,
.markdown-view pre,
.markdown-view table {
  margin: 0.6em 0;
}

.markdown-view ul,
.markdown-view ol {
  padding-left: 1.4em;
}

.markdown-view code {
  background: rgba(24, 23, 21, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
}

.markdown-view pre code {
  display: block;
  background: rgba(24, 23, 21, 0.96);
  color: #f6f4ef;
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.markdown-view table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-view th,
.markdown-view td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 6px 8px;
}

.markdown-view blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--ink-soft);
}

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

.reader-meta {
  font-size: 12px;
  letter-spacing: 0.3px;
}

.reader-title {
  margin: 8px 0 0;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.28;
}

.reader-markdown {
  padding: 18px;
  font-size: 15px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .admin-frame {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .user-frame,
  .member-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .admin-nav-stack {
    min-height: auto;
    overflow: visible;
  }

  .user-sidebar,
  .member-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .admin-main,
  .user-main,
  .member-main {
    height: auto;
    overflow: visible;
  }

  .member-main {
    padding: 22px 16px 28px;
  }

  .user-header {
    flex-direction: column;
    align-items: stretch;
  }

  .member-header {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 18px;
  }

  .user-subscription-card {
    min-width: 0;
  }

  .member-subscription-card {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .report-meta-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-header,
  .admin-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .report-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Public Site (Demo-aligned baseline) ===== */
.site-root {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 18px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(245, 244, 237, 0.92);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.site-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.site-links {
  display: inline-flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

.site-links a:hover {
  color: var(--ink);
}

.site-nav-cta {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.site-nav-cta:hover {
  opacity: 0.78;
}

.site-hero {
  min-height: 96svh;
  padding: 140px 24px 72px;
  text-align: center;
  display: grid;
  place-content: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(201, 100, 66, 0.12), transparent 34%),
    var(--bg);
}

.site-hero-compact {
  min-height: 62svh;
}

.site-kicker {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.site-hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.18;
}

.site-sub {
  margin: 20px auto 0;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.8;
}

.site-actions {
  margin-top: 30px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}

.site-btn-primary {
  background: var(--accent);
  color: #fff;
}

.site-btn-primary:hover {
  background: var(--accent-deep);
}

.site-btn-outline {
  border: 1px solid var(--line-strong);
}

.site-section {
  padding: 88px 24px;
}

.site-section-light {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-container {
  max-width: 980px;
  margin: 0 auto;
}

.site-section-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.site-section-title {
  margin-top: 12px;
  text-align: center;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
}

.site-section-lede {
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

.site-content-grid {
  margin-top: 36px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.site-content-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.site-content-item h3 {
  margin: 6px 0;
  font-size: 18px;
}

.site-content-item p {
  margin: 0;
  color: var(--ink-soft);
}

.site-content-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.site-preview-section {
  background: var(--ink);
  color: var(--surface);
}

.site-preview-section .site-section-label {
  color: #9d9b92;
}

.site-preview-section .site-section-title {
  color: var(--surface);
}

.site-preview-section .site-section-lede {
  color: #b9b6ac;
}

.site-preview-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 2px;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.site-preview-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 22px 20px;
  transition: background 0.22s ease;
}

.site-preview-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-preview-card h3 {
  margin: 8px 0 8px;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
}

.site-preview-card p {
  margin: 0;
  color: #bbb7ad;
  line-height: 1.75;
}

.site-preview-section .site-content-meta {
  color: #9d9b92;
}

.site-workflow-section {
  background: var(--bg);
}

.site-workflow-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.site-workflow-item {
  text-align: center;
}

.site-workflow-item h3 {
  margin: 0;
  font-size: 21px;
  font-family: 'Noto Serif SC', Georgia, serif;
  line-height: 1.35;
}

.site-workflow-item p {
  margin: 8px auto 0;
  max-width: 28ch;
  color: var(--ink-soft);
  line-height: 1.72;
}

.step-number {
  margin: 0 0 10px;
  color: rgba(20, 20, 19, 0.26);
  font-family: 'Noto Serif SC', Georgia, serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.site-pricing-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.site-pricing-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 18px;
  background: #fff;
}

.site-pricing-card.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-pricing-card .tier {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-soft);
}

.site-pricing-card.featured .tier {
  color: rgba(255, 255, 255, 0.78);
}

.site-pricing-card .price {
  margin: 8px 0 10px;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 30px;
}

.site-pricing-card p {
  margin: 0;
  line-height: 1.75;
}

.site-pricing-cta {
  margin-top: 18px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--surface);
}

.site-pricing-card.featured .site-pricing-cta {
  background: #fff;
  color: var(--accent);
}

.site-cta {
  padding: 80px 24px;
  background: var(--ink);
  color: var(--surface);
  text-align: center;
}

.site-cta h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(30px, 5vw, 54px);
}

.site-cta p {
  margin: 14px auto 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.76);
}

.site-cta .site-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.site-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.site-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.site-list-block {
  max-width: 760px;
}

.site-list-block ul {
  margin-top: 24px;
  padding-left: 20px;
}

.site-list-block li {
  margin: 8px 0;
  line-height: 1.8;
}

.site-deliver-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.site-deliver-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-gap: 20px;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.site-deliver-item span {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.site-deliver-item h3 {
  margin: 0;
  font-size: 20px;
  font-family: 'Noto Serif SC', Georgia, serif;
}

.site-deliver-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.site-muted {
  color: var(--ink-soft);
}

.site-footer {
  padding: 26px 24px;
  text-align: center;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-links {
    gap: 10px;
    font-size: 12px;
  }

  .site-preview-grid,
  .site-workflow-grid {
    grid-template-columns: 1fr;
  }

  .site-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-nav {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }

  .site-links {
    flex-wrap: wrap;
    row-gap: 6px;
    margin-left: 0;
    margin-right: 0;
    order: 3;
    width: 100%;
  }

  .site-nav-cta {
    margin-left: auto;
  }

  .site-hero {
    min-height: 80svh;
    padding: 132px 16px 56px;
  }

  .site-actions {
    display: grid;
  }
}

/* ===== Auth Portal ===== */
.auth-page {
  padding: 118px 24px 82px;
}

.auth-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.auth-aside {
  background: linear-gradient(160deg, #f8f6ef 0%, #f0ece2 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.auth-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.auth-aside h1 {
  margin: 0;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
}

.auth-aside > p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.auth-aside ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.auth-aside li {
  margin: 8px 0;
  line-height: 1.7;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 28px;
}

.auth-card .login-title {
  margin: 0;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(30px, 3.6vw, 38px);
  line-height: 1.2;
}

.auth-card .login-sub {
  margin: 8px 0 2px;
  font-size: 14px;
  color: var(--ink-soft);
}

.auth-form {
  margin-top: 14px;
}

.auth-links .helper {
  transition: color 0.16s ease;
}

.auth-links .helper:hover {
  color: var(--ink);
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

/* ===== Public Rebuild (Stitch-aligned) ===== */
.site-main {
  min-height: calc(100vh - 140px);
  padding-top: 82px;
}

.site-nav {
  padding: 16px 24px;
  background: rgba(245, 244, 237, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.site-links a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-links a.active {
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
}

.site-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav-helper {
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
}

.site-nav-helper:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.site-footer {
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

.site-footer-links {
  display: inline-flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.site-footer-links a:hover {
  color: var(--ink);
}

.studio-hero {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 24px 22px;
}

.studio-hero-main {
  background: linear-gradient(168deg, #f9f7ef 0%, #f2eee4 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.studio-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ink-muted);
  font-weight: 700;
}

.studio-hero-main h1 {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.15;
}

.studio-hero-main h1 span {
  color: var(--accent-deep);
}

.studio-hero-main > p {
  margin: 16px 0 0;
  max-width: 44ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

.studio-actions {
  margin-top: 22px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-btn {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.studio-btn:hover {
  transform: translateY(-1px);
}

.studio-btn-primary {
  background: var(--accent);
  color: #fff;
}

.studio-btn-primary:hover {
  background: var(--accent-deep);
}

.studio-btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.studio-btn-ghost:hover {
  background: #fff;
}

.studio-hero-panel {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 20px;
}

.studio-hero-panel h3 {
  margin: 0;
  font-size: 18px;
}

.studio-hero-panel dl {
  margin: 16px 0 0;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.studio-hero-panel dl > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}

.studio-hero-panel dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.studio-hero-panel dd {
  margin: 0;
  font-weight: 700;
}

.studio-hero-panel dd.danger {
  color: #b6362a;
}

.studio-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 24px;
}

.studio-section-first {
  padding-top: 46px;
}

.studio-section-tonal {
  background: #f0ede4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-section-head {
  margin-bottom: 16px;
  text-align: center;
}

.studio-section-head.studio-left {
  text-align: left;
}

.studio-section-head h2,
.studio-page-title {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
}

.studio-section-head p {
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

.studio-section-head.studio-left p {
  margin-left: 0;
}

.studio-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

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

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

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

.studio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.studio-card h3 {
  margin: 8px 0;
  font-size: 20px;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
}

.studio-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.studio-card-meta {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  font-weight: 700;
}

.studio-plan.featured {
  border-color: rgba(201, 100, 66, 0.35);
  background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
}

.studio-plan h3 small {
  font-size: 13px;
  color: var(--ink-soft);
}

.studio-workflow {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.studio-workflow article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.studio-workflow span {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 700;
}

.studio-workflow h3 {
  margin: 7px 0;
}

.studio-workflow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.studio-muted {
  color: var(--ink-soft);
  font-size: 14px;
}

.studio-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.studio-list li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.contact-layout .studio-card {
  min-height: 100%;
}

/* ===== Auth Rebuild ===== */
.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  background: #fafaf5;
}

.auth-side {
  background: linear-gradient(178deg, #f6f3ea 0%, #f1ebe1 100%);
  border-right: 1px solid var(--line);
  padding: 42px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-side-brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.auth-side h1 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  font-family: 'Noto Serif SC', Georgia, serif;
}

.auth-side header p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.auth-side-list {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.auth-side-list li {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.auth-side-list b {
  display: block;
  margin-bottom: 4px;
}

.auth-side-list span {
  color: var(--ink-soft);
  font-size: 13px;
}

.auth-side footer {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
}

.auth-main {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-main-inner {
  width: min(560px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}

.auth-main-head h2 {
  margin: 0;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
}

.auth-main-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.auth-form-v2 {
  margin-top: 14px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.auth-field-v2 label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 700;
}

.auth-field-v2 input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 9px 2px;
}

.auth-field-v2 input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.auth-submit-v2 {
  margin-top: 6px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.auth-submit-v2:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(160, 65, 0, 0.22);
  filter: brightness(1.03);
}

.auth-submit-v2:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-meta-row {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-meta-row a {
  color: var(--accent-deep);
  font-weight: 700;
}

.auth-resend-box {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.auth-resend-box > label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.auth-resend-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
}

.auth-resend-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 10px;
}

.auth-resend-row button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
}

.auth-foot-links {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.auth-foot-links a {
  color: var(--ink);
}

.admin-auth-stage {
  min-height: 100vh;
  padding: 24px 20px;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.admin-auth-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 30px 30px 22px;
  box-shadow: 0 2px 0 rgba(24, 23, 21, 0.06);
}

.admin-auth-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-auth-brand {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.admin-auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: rgba(24, 23, 21, 0.06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-auth-divider {
  margin: 14px 0 12px;
  width: 54px;
  height: 2px;
  background: #a04100;
}

.admin-auth-card h1 {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ===== Member Auth (homepage style aligned) ===== */
.member-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  background:
    radial-gradient(circle at 9% 8%, rgba(201, 100, 66, 0.08), transparent 30%),
    #fafaf5;
}

.member-auth-left {
  border-right: 1px solid var(--line);
  background: linear-gradient(170deg, #f6f3ea 0%, #efe9df 100%);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-auth-brand {
  margin: 0;
  font-weight: 800;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.member-auth-left h1 {
  margin: 10px 0 0;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14;
}

.member-auth-left p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.member-auth-list {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.member-auth-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px;
}

.member-auth-list b {
  display: block;
  margin-bottom: 4px;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
}

.member-auth-list span {
  font-size: 13px;
  color: var(--ink-soft);
}

.member-auth-foot {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.member-auth-main {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fff;
}

.member-auth-panel {
  width: min(560px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
}

.member-auth-head h2 {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.member-auth-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.member-auth-form {
  margin-top: 12px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.member-auth-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.member-auth-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  min-height: 40px;
  padding: 8px 2px;
}

.member-auth-field input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.member-auth-submit {
  margin-top: 6px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.member-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(160, 65, 0, 0.22);
  filter: brightness(1.03);
}

.member-auth-submit:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.member-auth-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.member-auth-row a {
  color: var(--accent-deep);
  font-weight: 700;
}

.member-auth-resend {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.member-auth-resend > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.member-auth-resend-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
}

.member-auth-resend-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.member-auth-resend-row button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
}

.member-auth-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.member-auth-links a {
  color: var(--ink);
}

.admin-auth-card header > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 13px;
}

.admin-auth-alert {
  margin-top: 16px;
  border-left: 3px solid #a04100;
  background: rgba(24, 23, 21, 0.04);
  color: var(--ink-soft);
  padding: 12px 12px 12px 10px;
  font-size: 13px;
}

.admin-auth-alert-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.admin-auth-alert p:last-child {
  margin: 0;
}

.admin-auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}

.admin-auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f9f8f4;
  padding: 0 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.admin-auth-field input:focus {
  outline: 0;
  border-color: #a04100;
  background: #fff;
}

.admin-auth-submit {
  margin-top: 4px;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  background: #a04100;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.admin-auth-submit:hover {
  background: #893500;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(160, 65, 0, 0.22);
}

.admin-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-auth-form {
  margin-top: 14px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.admin-auth-footer {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.admin-auth-footer a {
  color: #a04100;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .studio-hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .site-main {
    padding-top: 118px;
  }

  .site-nav {
    padding: 14px 16px;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .site-links {
    order: 3;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .site-nav-actions {
    margin-left: auto;
  }

  .site-footer {
    display: grid;
    text-align: left;
  }

  .studio-grid-3,
  .studio-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 22px 16px;
  }

  .auth-main {
    padding: 14px;
  }

  .member-auth {
    grid-template-columns: 1fr;
  }

  .member-auth-left {
    padding: 20px 16px;
  }

  .member-auth-main {
    padding: 14px;
  }
}

/* ===== Unified Member Auth ===== */
.brand-auth-page {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 10px 20px 20px;
  background: var(--bg);
}

.brand-auth-shell {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 34px 28px;
  box-shadow: 0 2px 0 rgba(24, 23, 21, 0.06);
}

.brand-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-auth-top h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  font-weight: 900;
  line-height: 1;
}

.brand-auth-top span {
  padding: 6px 10px;
  background: rgba(24, 23, 21, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-auth-line {
  margin: 14px 0 18px;
  width: 54px;
  height: 2px;
  background: #a04100;
}

.brand-auth-notice {
  margin-bottom: 18px;
  padding: 14px 14px 14px 12px;
  border-left: 3px solid #a04100;
  background: rgba(24, 23, 21, 0.04);
}

.brand-auth-notice-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-auth-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.brand-auth-head {
  margin-bottom: 14px;
}

.brand-auth-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.brand-auth-head p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.brand-auth-form {
  margin-top: 14px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.brand-auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}

.brand-auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f9f8f4;
  padding: 0 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.brand-auth-field input:focus {
  outline: 0;
  border-color: #a04100;
  background: #fff;
}

.brand-auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-auth-password-wrap input {
  padding-right: 44px;
}

.brand-auth-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #7f675a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-auth-eye-btn .material-symbols-outlined {
  font-size: 19px;
}

.brand-auth-eye-btn:hover {
  color: #a04100;
}

.brand-auth-eye-btn:focus-visible {
  outline: 2px solid rgba(160, 65, 0, 0.34);
  outline-offset: 1px;
}

.brand-auth-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b23428;
  line-height: 1.5;
}

.brand-auth-password-hints {
  margin: 0 0 2px;
  padding-left: 18px;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  font-size: 12px;
}

.brand-auth-password-hints .ok {
  color: #2a7f55;
}

.brand-auth-password-hints .bad {
  color: var(--ink-muted);
}

.brand-auth-submit {
  margin-top: 4px;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  background: #ff8c00;
  color: #623200;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.brand-auth-submit:hover {
  background: #f07c00;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(160, 65, 0, 0.22);
}

.brand-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.brand-auth-submit-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand-auth-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(98, 50, 0, 0.24);
  border-top-color: #a04100;
  animation: brandAuthSpin 0.86s linear infinite;
}

.brand-auth-progress {
  margin-top: -2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7a4f2c;
  background: #fff4e9;
  border: 1px solid rgba(160, 65, 0, 0.2);
  padding: 8px 10px;
}

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

.brand-auth-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13px;
}

.brand-auth-row a {
  color: #a04100;
  font-weight: 700;
}

.brand-auth-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-auth-dot {
  color: var(--ink-muted);
}

.brand-auth-resend {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.brand-auth-resend > label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.brand-auth-resend-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
}

.brand-auth-resend-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 11px;
  background: #f9f8f4;
}

.brand-auth-resend-row input:focus {
  outline: 0;
  border-color: #a04100;
  background: #fff;
}

.brand-auth-resend-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: #fafaf5;
  color: #a04100;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.brand-auth-resend-row button:hover {
  border-color: #a04100;
}

.brand-auth-resend-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.brand-auth-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .brand-auth-page {
    padding: 6px 12px 14px;
  }

  .brand-auth-shell {
    width: 100%;
    padding: 22px 16px 18px;
  }
}

/* ===== Public Header Unified (20260409j) ===== */
.site-main {
  padding-top: 0;
  min-height: calc(100vh - 78px);
}

.site-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  left: auto;
  right: auto;
  padding: 0 16px;
  background: rgba(250, 250, 245, 0.96);
  border-bottom: 1px solid rgba(137, 115, 98, 0.24);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.site-nav.scrolled {
  background: rgba(250, 250, 245, 0.98);
  border-bottom-color: rgba(137, 115, 98, 0.34);
}

.site-nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-brand {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.site-brand-mark,
.site-nav-helper {
  display: none;
}

.site-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 0;
  font-size: 14px;
  color: #564334;
}

.site-links a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-links a:hover {
  color: #1a1c19;
}

.site-links a.active {
  color: #904d00;
  border-color: #904d00;
  font-weight: 700;
}

.site-nav-actions {
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
}

.site-nav-cta {
  min-height: 38px;
  border-radius: 2px;
  padding: 0 18px;
  border: 0;
  background: #ff8c00;
  color: #623200;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.site-nav-cta:hover {
  opacity: 0.92;
}

@media (max-width: 860px) {
  .site-nav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-nav-actions {
    margin-left: auto;
  }
}

