:root {
  --app-bg: #f4f5f1;
  --app-bg-2: #e9eee8;
  --ink: #181c19;
  --ink-soft: #363d38;
  --muted: #68716b;
  --line: rgba(24, 28, 25, 0.13);
  --line-strong: rgba(24, 28, 25, 0.22);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #fffffb;
  --accent: #657b66;
  --accent-dark: #31443a;
  --copper: #b8794d;
  --danger: #a94242;
  --focus: #263f35;
  --shadow-sm: 0 8px 24px rgba(24, 28, 25, 0.07);
  --shadow-md: 0 18px 48px rgba(24, 28, 25, 0.11);
  --radius: 10px;
  --radius-lg: 14px;
  --space: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(184, 121, 77, 0.12), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(101, 123, 102, 0.14), transparent 30%),
    linear-gradient(135deg, var(--app-bg), var(--app-bg-2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(38, 63, 53, 0.34);
  outline-offset: 3px;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #181c19;
  color: #fffaf2;
  font-size: 0.9rem;
  font-weight: 820;
  box-shadow: var(--shadow-sm);
}

.app-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

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

.text-button,
.ghost-button,
.primary-button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

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

.primary-button {
  border: 1px solid #181c19;
  background: #181c19;
  color: #fffaf2;
  box-shadow: 0 12px 26px rgba(24, 28, 25, 0.15);
}

.login-layout {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: 56px;
}

.login-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1,
.section-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.login-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.login-notes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 760;
}

.login-panel,
.control-panel,
.item-list,
.module-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-panel,
.control-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.panel-title {
  display: grid;
  gap: 5px;
}

.panel-title.unframed {
  padding: 0 2px;
}

.panel-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.25;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

label {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="color"] {
  padding: 4px;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(49, 68, 58, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(49, 68, 58, 0.1);
}

.input-prefix {
  position: absolute;
  z-index: 1;
  left: 13px;
  bottom: 13px;
  color: var(--muted);
  font-weight: 760;
  pointer-events: none;
}

.has-prefix {
  padding-left: 38px;
}

.form-message {
  margin: 0;
  border: 1px solid rgba(101, 123, 102, 0.2);
  border-radius: var(--radius);
  background: rgba(101, 123, 102, 0.09);
  color: var(--accent-dark);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.45;
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(340px, 430px);
  gap: 18px;
  padding-top: 20px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-profile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.nav-profile img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-profile strong,
.nav-profile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-nav button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  padding: 0 11px;
  font-weight: 780;
  text-align: left;
}

.admin-nav button.active {
  border-color: rgba(24, 28, 25, 0.12);
  background: #181c19;
  color: #fffaf2;
  box-shadow: 0 10px 22px rgba(24, 28, 25, 0.13);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

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

.nav-metrics {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 8px 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-metrics strong {
  color: var(--ink);
}

.editor-area {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.section-heading {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 4px 2px;
}

.section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > p:last-child {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent-dark);
}

.link-manager,
.style-manager,
.user-manager {
  display: grid;
  gap: 18px;
}

.item-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.list-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

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

.list-item strong,
.list-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
}

.mini-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(24, 28, 25, 0.1);
  border-radius: 10px;
  background: #f3f5ef;
  color: var(--accent-dark);
}

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

.status-pill {
  min-width: 54px;
  border: 1px solid rgba(101, 123, 102, 0.2);
  border-radius: 999px;
  background: rgba(101, 123, 102, 0.1);
  color: var(--accent-dark);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.status-pill.off {
  border-color: rgba(169, 66, 66, 0.18);
  background: rgba(169, 66, 66, 0.08);
  color: var(--danger);
}

.list-actions,
.user-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.list-actions button,
.user-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 760;
}

.list-actions .danger,
.user-actions .danger {
  color: var(--danger);
}

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

.module-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.module-card.active {
  border-color: rgba(49, 68, 58, 0.48);
  box-shadow: 0 0 0 3px rgba(49, 68, 58, 0.1);
}

.module-card small {
  color: var(--muted);
  line-height: 1.45;
}

.module-swatch {
  height: 66px;
  border: 1px solid rgba(24, 28, 25, 0.1);
  border-radius: 9px;
  background-position: center;
  background-size: cover;
}

.preview-stage,
.public-shell {
  --theme-bg: linear-gradient(135deg, #f7f7f3 0%, #eef2ec 48%, #f4efe8 100%);
  --theme-page-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  --theme-surface: rgba(255, 255, 255, 0.9);
  --theme-glass-border: rgba(36, 41, 37, 0.12);
  --theme-glass-blur: 12px;
  --theme-text: #181c19;
  --theme-muted: #66706a;
  --theme-button: #fbfbf7;
  --theme-button-text: #181c19;
  --theme-button-border: rgba(24, 28, 25, 0.14);
  --theme-button-radius: 12px;
  --theme-button-shadow: 0 10px 30px rgba(24, 28, 25, 0.08);
  position: relative;
  isolation: isolate;
  color: var(--theme-text);
  background: var(--theme-bg);
  background-position: center;
  background-size: cover;
}

.preview-stage::before,
.public-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--theme-page-overlay);
  pointer-events: none;
}

.preview-stage {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.preview-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(24, 28, 25, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 780;
  position: relative;
  z-index: 1;
}

.preview-toolbar a {
  color: var(--accent-dark);
  text-decoration: none;
}

.public-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.link-page {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 46px 0 34px;
}

.preview-stage .link-page {
  width: min(360px, calc(100% - 28px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
}

.profile-head {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 10px;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid rgba(24, 28, 25, 0.1);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--theme-button-shadow);
}

.avatar-circle {
  border-radius: 999px;
}

.avatar-rounded {
  border-radius: 18px;
}

.avatar-squircle {
  border-radius: 34%;
}

.profile-head h1 {
  margin: 10px 0 0;
  color: var(--theme-text);
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.profile-head .title {
  margin: 0;
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 780;
}

.profile-head .bio {
  max-width: 44ch;
  margin: 0;
  color: var(--theme-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.public-links {
  display: grid;
  gap: 10px;
}

.public-link {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--theme-button-border);
  border-radius: var(--theme-button-radius);
  background: var(--item-bg, var(--theme-button));
  color: var(--item-text, var(--theme-button-text));
  box-shadow: var(--theme-button-shadow);
  padding: 0 12px;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.public-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.public-number {
  color: var(--theme-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 820;
}

.public-icon,
.public-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(24, 28, 25, 0.04);
}

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

.public-title {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  font-weight: 820;
}

.public-arrow {
  justify-self: end;
  font-weight: 900;
}

.public-footer {
  min-height: 24px;
  margin: 0;
  color: var(--theme-muted);
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.45;
}

.layout-centered .profile-head,
.layout-compact .profile-head {
  justify-items: center;
  text-align: center;
}

.layout-centered .public-footer,
.layout-compact .public-footer {
  text-align: center;
}

.layout-compact {
  gap: 16px;
}

.layout-compact .profile-avatar {
  width: 78px;
  height: 78px;
}

.layout-compact .profile-head h1 {
  font-size: 2rem;
}

.layout-editorial .profile-head {
  justify-items: start;
  text-align: left;
}

.layout-editorial .profile-head .bio {
  max-width: 48ch;
}

.layout-portfolio {
  gap: 24px;
}

.layout-portfolio .profile-head {
  border-bottom: 1px solid var(--theme-button-border);
  padding-bottom: 24px;
}

.style-portfolio .public-link {
  box-shadow: none;
}

.style-portfolio .public-link:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(24, 28, 25, 0.28);
}

.layout-social {
  width: min(710px, calc(100vw - 32px));
  gap: 34px;
  padding: 28px 0 26px;
}

.layout-social .profile-head {
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.layout-social .profile-avatar {
  width: 214px;
  height: 214px;
  border: 5px solid var(--theme-text);
  border-radius: 999px;
  box-shadow: none;
}

.layout-social .profile-head h1 {
  margin-top: 14px;
  color: var(--theme-text);
  font-size: 2.65rem;
  line-height: 1.05;
  font-weight: 520;
}

.layout-social .profile-head .title,
.layout-social .profile-head .bio,
.layout-social .public-footer {
  display: none;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
}

.social-row a {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--theme-text);
  text-decoration: none;
}

.social-row svg {
  width: 39px;
  height: 39px;
}

.layout-social .public-links {
  gap: 28px;
  margin-top: 14px;
}

.layout-social .public-link {
  min-height: 110px;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 0 28px;
}

.layout-social .public-number,
.layout-social .public-arrow {
  display: none;
}

.layout-social .public-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.96);
  color: var(--theme-text);
}

.layout-social .public-icon svg {
  width: 48px;
  height: 48px;
}

.layout-social .public-title {
  text-align: center;
  font-size: 1.72rem;
  font-weight: 520;
  letter-spacing: 0;
}

.style-social-pink .public-link {
  border-color: var(--theme-button-border);
  background: var(--theme-button) !important;
  color: var(--theme-button-text);
  box-shadow: var(--theme-button-shadow);
}

.style-social-pink .public-link:hover {
  border-color: rgba(5, 32, 111, 0.2);
  background: #e978aa !important;
  box-shadow: 0 12px 0 rgba(5, 32, 111, 0.06);
}

.layout-glass {
  width: min(444px, calc(100vw - 36px));
  min-height: auto;
  justify-content: flex-start;
  gap: 22px;
  padding: 38px 32px 32px;
  border: 1px solid var(--theme-glass-border);
  border-radius: 58px;
  background: var(--theme-surface);
  box-shadow:
    0 42px 96px rgba(8, 7, 5, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -80px 120px rgba(16, 14, 12, 0.2);
  backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.18) contrast(1.02);
  -webkit-backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.18) contrast(1.02);
  overflow: hidden;
}

.layout-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 36%, transparent 62%),
    radial-gradient(circle at 50% -8%, rgba(255, 228, 206, 0.32), transparent 34%);
  pointer-events: none;
}

.layout-glass > * {
  position: relative;
  z-index: 1;
}

.layout-glass .profile-head {
  justify-items: center;
  text-align: center;
  border-bottom: 0;
  padding: 6px 0 2px;
}

.layout-glass .profile-head::before {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  margin-bottom: 8px;
}

.layout-glass .profile-avatar {
  width: min(100%, 320px);
  height: 168px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 62px rgba(12, 10, 8, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.layout-glass .profile-head h1 {
  font-size: 2.12rem;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.layout-glass .profile-head .title {
  color: var(--theme-muted);
}

.layout-glass .profile-head .bio {
  max-width: 35ch;
  color: var(--theme-muted);
}

.style-frosted .profile-head .title,
.style-frosted .profile-head .bio,
.style-frosted .public-footer {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.style-frosted .public-link {
  border-color: var(--theme-button-border);
  background: var(--theme-button) !important;
  box-shadow: var(--theme-button-shadow);
  backdrop-filter: blur(calc(var(--theme-glass-blur))) saturate(1.12);
  -webkit-backdrop-filter: blur(calc(var(--theme-glass-blur))) saturate(1.12);
  min-height: 66px;
  grid-template-columns: 38px 42px minmax(0, 1fr) 36px;
  color: var(--theme-button-text);
  box-shadow:
    0 18px 38px rgba(8, 7, 5, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.style-frosted .public-number {
  color: rgba(255, 250, 244, 0.58);
}

.style-frosted .public-title {
  text-align: left;
  color: var(--theme-button-text);
  font-weight: 780;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.style-frosted .public-icon,
.style-frosted .public-arrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--theme-button-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.style-frosted .public-link:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(52, 46, 39, 0.58) !important;
  box-shadow:
    0 24px 48px rgba(8, 7, 5, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .public-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(24, 28, 25, 0.1);
  }

  .primary-button:hover,
  .ghost-button:hover,
  .text-button:hover,
  .list-actions button:hover,
  .module-card:hover,
  .user-actions button:hover,
  .admin-nav button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .preview-stage {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
    min-height: 760px;
  }
}

@media (max-width: 880px) {
  .app-shell {
    width: min(100% - 24px, 760px);
    padding-top: 12px;
  }

  .topbar,
  .login-layout,
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding-bottom: 14px;
  }

  .login-layout {
    min-height: auto;
    padding: 36px 0;
  }

  .login-copy h1,
  .section-heading h1 {
    font-size: 2.1rem;
    line-height: 1.02;
  }

  .admin-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-profile,
  .nav-metrics {
    grid-column: 1 / -1;
  }

  .admin-nav button {
    justify-content: center;
    padding: 0 8px;
  }

  .admin-nav button .nav-icon {
    display: none;
  }

  .form-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .list-item,
  .user-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .status-pill,
  .list-actions,
  .user-actions {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 20px);
  }

  .public-shell {
    padding: 0 16px;
  }

  .link-page {
    width: 100%;
    justify-content: flex-start;
    padding-top: 34px;
  }

  .profile-avatar {
    width: 82px;
    height: 82px;
  }

  .profile-head h1 {
    font-size: 2.35rem;
  }

  .public-link {
    min-height: 58px;
    grid-template-columns: 34px 34px minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 0 10px;
  }

  .public-icon,
  .public-arrow {
    width: 32px;
    height: 32px;
  }

  .layout-glass {
    width: 100%;
    border-radius: 34px;
    padding: 30px 18px 24px;
  }

  .layout-social {
    width: 100%;
    gap: 26px;
    padding-top: 22px;
  }

  .layout-social .profile-avatar {
    width: 178px;
    height: 178px;
    border-width: 4px;
  }

  .layout-social .profile-head h1 {
    font-size: 2.1rem;
  }

  .social-row {
    gap: 20px;
  }

  .social-row a {
    width: 46px;
    height: 46px;
  }

  .social-row svg {
    width: 35px;
    height: 35px;
  }

  .layout-social .public-links {
    gap: 18px;
  }

  .layout-social .public-link {
    min-height: 86px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 0 18px;
  }

  .layout-social .public-icon {
    width: 56px;
    height: 56px;
  }

  .layout-social .public-icon svg {
    width: 37px;
    height: 37px;
  }

  .layout-social .public-title {
    font-size: 1.2rem;
  }
}

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