/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --bg-soft: #fbf9f5;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --surface-3: #ece7de;
  --text: #1a161d;
  --text-2: #6c6573;
  --text-3: #948d9b;
  --line: #e8e2d8;
  --line-strong: #d7d0c4;
  --brand: #f4511e;
  --brand-2: #ff2d55;
  --brand-soft: #fff0e8;
  --brand-text: #c23c0f;
  --green: #12805c;
  --green-soft: #e6f6ef;
  --wa: #25d366;
  --wa-dark: #0f7a3d;
  --blue: #1264d8;
  --blue-soft: #eaf2ff;
  --danger: #cc2a20;
  --danger-soft: #fdecea;
  --warn: #a85608;
  --warn-soft: #fff3df;
  --focus: #ff7a18;
  --topbar-bg: rgba(246, 243, 238, 0.86);
  --shadow-sm: 0 1px 2px rgba(30, 20, 10, 0.04), 0 6px 18px -12px rgba(30, 20, 10, 0.18);
  --shadow-md: 0 18px 48px -24px rgba(30, 20, 10, 0.3);
  --shadow-lg: 0 32px 80px -30px rgba(20, 12, 5, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, #ff8a00 0%, #ff5a1f 46%, #ff2d55 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 138, 0, 0.12), rgba(255, 45, 85, 0.1));
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0c10;
  --bg-soft: #121016;
  --surface: #18161d;
  --surface-2: #201d26;
  --surface-3: #29252f;
  --text: #f7f3ed;
  --text-2: #a9a2b2;
  --text-3: #7f7889;
  --line: #2b2733;
  --line-strong: #3a3443;
  --brand: #ff6a35;
  --brand-2: #ff4a6e;
  --brand-soft: #2c1811;
  --brand-text: #ff9a6b;
  --green: #43d19e;
  --green-soft: #11251e;
  --blue: #77aaff;
  --blue-soft: #152033;
  --danger: #ff7b72;
  --danger-soft: #2e1516;
  --warn: #f5b45e;
  --warn-soft: #2b2010;
  --topbar-bg: rgba(13, 12, 16, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 20px 56px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 36px 90px -30px rgba(0, 0, 0, 0.9);
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(244, 81, 30, 0.22); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 24px; height: 24px; }

/* ============ Buttons / fields ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(255, 61, 61, 0.8);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-soft { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.btn-soft:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-wa { background: var(--wa); color: #063b1c; }
.btn-wa:hover { filter: brightness(1.04); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn .icon { width: 18px; height: 18px; }
a.btn, a.share-btn, a.link-tile { text-decoration: none; }
.btn-ghost.is-danger { color: var(--danger); }
.btn-ghost.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.seg-btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.is-solid { background: var(--surface); border-color: var(--line); }

.link-btn {
  border: 0; padding: 0;
  background: none;
  color: var(--brand-text);
  font-weight: 650;
  font-size: inherit;
}
.link-btn:hover { text-decoration: underline; }

.label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(244, 81, 30, 0.12);
}
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(204, 42, 32, 0.1); }
.select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.select-sm { min-height: 38px; height: 38px; padding: 6px 34px 6px 12px; font-size: 13px; border-radius: 10px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap-block { display: flex; width: 100%; }
.select-chevron {
  position: absolute;
  right: 11px;
  width: 16px; height: 16px;
  pointer-events: none;
  color: var(--text-2);
}
.field { margin-bottom: 16px; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.4; }
.field-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); font-weight: 550; }
.field-error.is-visible { display: block; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .affix {
  position: absolute;
  left: 12px;
  display: grid; place-items: center;
  color: var(--text-3);
  pointer-events: none;
}
.input-affix .affix .icon { width: 18px; height: 18px; }
.input-affix .input { padding-left: 40px; }
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  cursor: pointer;
}
.checkline input {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--brand);
  flex: none;
}
.fine { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.45; }

/* ============ Topbar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1440px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 8px 18px -10px rgba(255, 61, 61, 0.85); }
.brand-name {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--text);
  white-space: nowrap;
}
.brand-name strong {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  max-width: 560px;
  min-width: 160px;
  height: 44px;
  margin: 0 auto;
  padding: 0 12px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.searchbox:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(244, 81, 30, 0.12);
}
.searchbox-icon { color: var(--text-3); width: 19px; height: 19px; }
.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
}
.search-clear {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 0; border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
}
.search-clear:hover { color: var(--text); }
.search-clear .icon { width: 14px; height: 14px; }
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.account-wrap { position: relative; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color .16s ease, background .16s ease;
}
.account-btn:hover { border-color: var(--line-strong); }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-3);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  flex: none;
  overflow: hidden;
  text-transform: uppercase;
}
.avatar-sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar-lg { width: 52px; height: 52px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }
.account-label { font-size: 13px; font-weight: 650; color: var(--text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { width: 15px; height: 15px; color: var(--text-3); }

.menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 262px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: pop .16s ease both;
}
.menu-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.menu-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); word-break: break-word; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  text-align: left;
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item .icon { width: 17px; height: 17px; }
.menu-item.is-danger { color: var(--danger); }
.menu-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}
.menu-status.is-pending { background: var(--warn-soft); color: var(--warn); }

/* ============ Search panel ============ */
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 60;
  width: min(620px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease both;
}
.sp-section + .sp-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sp-title .link-btn { font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
}
.sp-chip:hover { border-color: var(--brand); color: var(--brand-text); }
.sp-chip .icon { width: 14px; height: 14px; }
.sp-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.sp-suggestion:hover { background: var(--surface-2); }
.sp-suggestion .sp-suggest-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex: none;
}
.sp-suggestion .sp-suggest-icon .icon { width: 16px; height: 16px; }
.sp-suggestion-text { min-width: 0; }
.sp-suggestion-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-suggestion-text span { display: block; font-size: 11.5px; color: var(--text-3); }
.sp-tips { display: grid; gap: 7px; }
.sp-tip { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.sp-tip .icon { width: 15px; height: 15px; color: var(--green); margin-top: 2px; }
.sp-empty { padding: 14px 8px; font-size: 13px; color: var(--text-2); text-align: center; }

/* ============ Shell / sidebar / rail ============ */
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 24px 72px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.nav-item.is-active .icon { color: var(--brand); }
.nav-item .icon { width: 19px; height: 19px; color: var(--text-3); }
.nav-sep { height: 1px; margin: 10px 8px; background: var(--line); }
.side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.side-card p { margin: 6px 0 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.side-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 6px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.45;
}
.side-note .icon { width: 14px; height: 14px; margin-top: 2px; flex: none; }

.main { min-width: 0; }
.rail {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.rail-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.rail-text { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.about-community { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.about-community strong { display: block; font-size: 14.5px; letter-spacing: -0.015em; }
.about-community div > span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.about-stat { text-align: center; }
.about-stat strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.about-stat span { display: block; margin-top: 1px; font-size: 10.5px; color: var(--text-3); font-weight: 550; }
.contrib-list { display: flex; flex-direction: column; gap: 10px; }
.contrib { display: flex; align-items: center; gap: 9px; min-width: 0; }
.contrib-info { min-width: 0; }
.contrib-info strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contrib-info span { display: block; font-size: 11px; color: var(--text-3); }
.contrib-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-2); padding: 3px 7px; border-radius: 999px; }
.rules { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rules li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.rules .rule-num {
  display: grid; place-items: center;
  width: 19px; height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 10.5px;
  font-weight: 750;
  flex: none;
}
.invite-rail { background: var(--grad-soft); border-color: transparent; }
.invite-rail-head { display: flex; gap: 10px; margin-bottom: 12px; }
.invite-orb {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--wa);
  color: #063b1c;
  flex: none;
}
.invite-orb .icon { width: 19px; height: 19px; }
.invite-rail-head strong { display: block; font-size: 13px; letter-spacing: -0.01em; }
.invite-rail-head p { margin-top: 2px; font-size: 11.5px; color: var(--text-2); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px;
  border-radius: 24px;
  background: radial-gradient(120% 160% at 100% 0%, #43252f 0%, #1c1720 45%, #141018 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}
.hero::before {
  width: 280px; height: 280px;
  right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.5), rgba(255, 45, 85, 0) 68%);
}
.hero::after {
  width: 240px; height: 240px;
  right: 130px; bottom: -160px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.28), rgba(255, 45, 85, 0) 70%);
}
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-copy { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.hero-eyebrow .icon { width: 13px; height: 13px; color: #ffb27a; }
.hero-title {
  margin-top: 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffb27a, #ff6a7f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-text {
  max-width: 500px;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-actions .btn-primary { box-shadow: 0 14px 30px -14px rgba(255, 90, 31, 0.9); }
.hero-actions .btn-ghost { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.88); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hero-stats {
  display: flex;
  gap: 6px;
  flex: none;
}
.hero-stat {
  min-width: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(4px);
  text-align: center;
}
.hero-stat strong { display: block; font-size: 20px; font-weight: 750; letter-spacing: -0.03em; }
.hero-stat span { display: block; margin-top: 2px; font-size: 10px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.hero.is-compact { padding: 22px 26px; }
.hero.is-compact .hero-inner { align-items: center; }
.hero.is-compact .hero-title { font-size: clamp(20px, 2.4vw, 26px); margin-top: 8px; }
.hero.is-compact .hero-text { margin-top: 5px; font-size: 12.5px; }
.hero.is-compact .hero-actions { margin-top: 12px; }
.hero.is-compact .hero-stat { padding: 9px 12px; min-width: 66px; }
.hero.is-compact .hero-stat strong { font-size: 17px; }
.hero.is-compact .hero-eyebrow { padding: 4px 9px; font-size: 10.5px; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--warn);
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.45;
}
.banner.is-danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.banner.is-success { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.banner .icon { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.banner strong { font-weight: 700; }

/* ============ Feed head / filters ============ */
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.feed-title { font-size: 21px; font-weight: 750; letter-spacing: -0.035em; }
.feed-subtitle { margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.feed-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
}
.chip.is-active .chip-count { background: rgba(255, 255, 255, 0.16); color: inherit; }
.chip .icon { width: 14px; height: 14px; }

.search-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}
.search-state strong { color: var(--text); font-weight: 700; }
.search-state .search-state-spacer { flex: 1; }
.search-state .btn { height: 30px; }
.search-state .icon { width: 16px; height: 16px; color: var(--brand); }

/* ============ Cards ============ */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  animation: rise .22s ease both;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-meta { min-width: 0; }
.card-author {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.card-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.card-type {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  flex: none;
}
.card-type .icon { width: 12px; height: 12px; }
.type-post { background: var(--brand-soft); color: var(--brand-text); }
.type-image { background: var(--blue-soft); color: var(--blue); }
.type-file { background: var(--green-soft); color: var(--green); }
.type-link { background: var(--warn-soft); color: var(--warn); }
.type-poll { background: var(--surface-2); color: var(--text-2); }
.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 10px;
  font-weight: 700;
}
.pin-badge .icon { width: 11px; height: 11px; }
.card-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-align: left;
}
.card-title:hover { color: var(--brand-text); }
.card-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  white-space: pre-line;
}
mark { padding: 0 2px; border-radius: 4px; background: #ffe18a; color: #2a1c05; }
[data-theme="dark"] mark { background: #6b4d0d; color: #ffe6a8; }

.card-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.link-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  min-width: 0;
}
.link-favicon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-text);
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.link-info { min-width: 0; }
.link-domain { display: block; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.link-url {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-arrow { margin-left: auto; color: var(--text-3); flex: none; }
.link-arrow .icon { width: 17px; height: 17px; }

.file-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  min-width: 0;
}
.file-ext {
  display: grid; place-items: center;
  width: 42px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex: none;
  text-transform: uppercase;
}
.file-info { min-width: 0; }
.file-name { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.file-dl { margin-left: auto; flex: none; }

.poll-mini { display: flex; flex-direction: column; gap: 7px; }
.poll-mini-row { display: flex; flex-direction: column; gap: 4px; }
.poll-mini-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); }
.poll-mini-label span:last-child { font-weight: 650; color: var(--text-3); flex: none; }
.poll-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.poll-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); min-width: 2px; transition: width .3s ease; }
.poll-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }

.card-foot {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.icon-action:hover { background: var(--surface-2); color: var(--text); }
.icon-action .icon { width: 16px; height: 16px; }
.icon-action.is-liked { color: var(--brand-2); }
.icon-action.is-liked .icon { fill: currentColor; }
.card-foot .spacer { flex: 1; }
.icon-action.is-share { color: var(--text-2); }
.icon-action.is-share:hover { color: var(--wa-dark); background: var(--green-soft); }
.card-empty-note { font-size: 11.5px; color: var(--text-3); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}
.empty-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.empty-icon .icon { width: 26px; height: 26px; }
.empty-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.empty-text { max-width: 380px; margin-top: 5px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.empty-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
}
.foot-brand { font-weight: 700; color: var(--text-2); }
.foot-dot { opacity: 0.6; }

/* ============ Modals ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 14, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .18s ease both;
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 940px);
  overflow-y: auto;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s cubic-bezier(.2, .8, .2, 1) both;
  overscroll-behavior: contain;
}
.modal-xs { width: min(420px, 100%); }
.modal-sm { width: min(520px, 100%); }
.modal-lg { width: min(680px, 100%); }
.modal-xl { width: min(760px, 100%); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-close .icon { width: 16px; height: 16px; }
.modal-head { margin-bottom: 16px; padding-right: 26px; }
.modal-head h2 { margin-top: 4px; font-size: 21px; font-weight: 750; letter-spacing: -0.03em; }
.modal-head p { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.modal-head-center { text-align: center; padding-right: 0; }
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.join-head { text-align: center; margin-bottom: 20px; }
.join-mark { display: inline-block; width: 52px; height: 52px; margin-bottom: 12px; }
.join-mark svg { width: 100%; height: 100%; border-radius: 15px; }
.join-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; }
.join-head p { max-width: 360px; margin: 6px auto 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

.gate-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin: 4px auto 14px;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.gate-icon .icon { width: 26px; height: 26px; }

.seg {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.seg-btn .icon { width: 15px; height: 15px; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 116px;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone strong { font-size: 13px; color: var(--text); }
.dropzone span { font-size: 11.5px; color: var(--text-3); max-width: 340px; line-height: 1.45; }
.dropzone .dz-icon { width: 24px; height: 24px; color: var(--brand); margin-bottom: 3px; }
.dropzone input[type="file"] { display: none; }
.dropzone-image { min-height: 128px; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12.5px;
}
.file-chip .icon { width: 17px; height: 17px; color: var(--green); }
.file-chip-info { min-width: 0; }
.file-chip strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.file-chip span { display: block; color: var(--text-3); font-size: 11px; }
.file-chip .icon-btn { margin-left: auto; width: 30px; height: 30px; flex: none; }
.image-preview { position: relative; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.image-preview img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.image-preview .icon-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(15, 12, 18, 0.7);
  border-color: transparent;
  color: #fff;
  width: 32px; height: 32px;
}
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }
.poll-option-row { display: flex; gap: 7px; align-items: center; }
.poll-option-row .input { flex: 1; }
.poll-option-row .icon-btn { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); }
.compose-note {
  display: flex;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.45;
}
.compose-note .icon { width: 14px; height: 14px; margin-top: 2px; flex: none; }

.copy-field { display: flex; gap: 7px; margin-bottom: 15px; }
.copy-field .input { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); background: var(--surface-2); }
.copy-field .btn { flex: none; height: 46px; }
.share-subtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.share-btn:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.share-glyph {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
}
.share-glyph .icon { width: 19px; height: 19px; }
.share-btn.is-wa .share-glyph { background: var(--wa); color: #063b1c; }
.share-btn.is-fb .share-glyph { background: #1877f2; color: #fff; }
.share-btn.is-x .share-glyph { background: #111; color: #fff; }
.share-btn.is-tg .share-glyph { background: #229ed9; color: #fff; }
.share-btn.is-in .share-glyph { background: #0a66c2; color: #fff; }
.share-btn.is-mail .share-glyph { background: var(--brand-soft); color: var(--brand-text); }
.share-btn.is-copy .share-glyph { background: var(--green-soft); color: var(--green); }
.share-fine { text-align: left; margin-top: 14px; }

.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 30px; flex-wrap: wrap; }
.detail-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.detail-author-meta strong { display: block; font-size: 13.5px; font-weight: 700; }
.detail-author-meta span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.detail-title {
  margin: 4px 0 10px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.detail-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-media { margin-top: 16px; border-radius: 15px; overflow: hidden; border: 1px solid var(--line); }
.detail-media img { width: 100%; display: block; }
.detail-tile { margin-top: 16px; }
.detail-tile .link-tile, .detail-tile .file-tile { padding: 14px; }
.detail-poll { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
}
.poll-option:hover { border-color: var(--brand); }
.poll-option .poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand-soft);
  z-index: 0;
  transition: width .35s ease;
}
.poll-option .poll-option-text, .poll-option .poll-option-pct { position: relative; z-index: 1; }
.poll-option .poll-option-text { font-weight: 550; }
.poll-option .poll-option-pct { font-weight: 700; color: var(--text-2); font-size: 12px; }
.poll-option.is-chosen { border-color: var(--brand); }
.poll-option.is-chosen .poll-fill { background: rgba(244, 81, 30, 0.18); }
.poll-option.is-chosen .poll-option-text::after { content: " · your vote"; color: var(--brand-text); font-weight: 650; }
.poll-total { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.poll-lock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.poll-lock .icon { width: 14px; height: 14px; }
.detail-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.detail-actions .btn { height: 36px; font-size: 13px; }
.detail-actions .spacer { flex: 1; }
.detail-note { margin-top: 14px; font-size: 11px; color: var(--text-3); }

/* ============ Admin ============ */
.admin-body {
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(255, 138, 0, 0.07), transparent 60%),
    radial-gradient(900px 480px at 96% 0%, rgba(255, 45, 85, 0.06), transparent 58%),
    var(--bg);
}
.admin-bar { position: sticky; top: 0; z-index: 50; background: var(--topbar-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; max-width: 1180px; height: var(--header-h); margin: 0 auto; padding: 0 20px; }
.admin-bar .brand { gap: 9px; }
.admin-bar-actions { display: flex; align-items: center; gap: 8px; }
.admin-who { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.admin-badge { padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); font-size: 10px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 20px 70px; min-height: calc(100vh - var(--header-h)); }
.admin-login { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.admin-login-card { width: 100%; max-width: 390px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }
.admin-login-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--grad-soft); color: var(--brand-text); }
.admin-login-mark .icon { width: 20px; height: 20px; }
.admin-login-card h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.admin-login-sub { margin: 5px 0 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.admin-remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 15px; font-size: 12px; color: var(--text-2); }
.admin-remember input { width: 15px; height: 15px; accent-color: var(--brand); }
.admin-view { min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin-top: 4px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.04em; }
.admin-head p { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(560px 220px at 100% 0%, rgba(255, 45, 85, 0.1), transparent 70%),
    radial-gradient(420px 200px at 0% 100%, rgba(255, 138, 0, 0.1), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad);
}
.admin-hero-copy { min-width: 0; }
.admin-hero-copy h1 { margin-top: 4px; font-size: clamp(24px, 3.2vw, 31px); font-weight: 800; letter-spacing: -0.045em; }
.admin-hero-copy p { margin-top: 5px; font-size: 13px; color: var(--text-2); }
.admin-hero-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.admin-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.admin-hero-pill .icon { width: 13px; height: 13px; }
.admin-hero-pill.is-warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.admin-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-card {
  --tone: var(--text-2);
  --tone-soft: var(--surface-2);
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.stat-card.tone-brand { --tone: var(--brand-text); --tone-soft: var(--brand-soft); }
.stat-card.tone-blue { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.stat-card.tone-warn { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.stat-card.tone-green { --tone: var(--green); --tone-soft: var(--green-soft); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-card-label { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.stat-card-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--tone-soft); color: var(--tone); }
.stat-card-icon .icon { width: 15px; height: 15px; }
.stat-card-value { display: block; margin-top: 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.045em; }
.stat-card-note { display: block; margin-top: 1px; font-size: 11px; color: var(--text-3); }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-tab .icon { width: 15px; height: 15px; }
.admin-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.admin-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 10.5px; font-weight: 750; }
.admin-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-toolbar-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.admin-search { position: relative; flex: 1 1 220px; min-width: 0; }
.admin-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.admin-search .input { height: 38px; min-height: 38px; padding-left: 36px; font-size: 13px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.admin-row.is-blocked { border-left: 3px solid var(--danger); background: linear-gradient(90deg, var(--danger-soft), var(--surface) 22%); }
.admin-row-main { min-width: 0; flex: 1; }
.admin-row-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; min-width: 0; }
.admin-row-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.admin-row-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.admin-row-actions { display: flex; align-items: center; gap: 4px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.admin-row-actions .btn { height: 30px; padding: 0 9px; font-size: 12px; }
.admin-row-actions .icon-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; }
.admin-row-actions .icon-btn .icon { width: 15px; height: 15px; }
.admin-row-icon { width: 38px; height: 38px; padding: 0; margin-left: 0; border-radius: 11px; flex: none; }
.admin-row-icon .icon { width: 17px; height: 17px; }
.admin-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status-approved { background: var(--green-soft); color: var(--green); }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-suspended { background: var(--danger-soft); color: var(--danger); }
.status-admin { background: var(--brand-soft); color: var(--brand-text); }
.admin-empty {
  padding: 34px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}
.admin-empty .icon { width: 24px; height: 24px; margin: 0 auto 8px; color: var(--text-3); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.panel-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.panel-link { border: 0; background: none; color: var(--brand-text); font-size: 11.5px; font-weight: 650; }
.panel-accent {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(255, 138, 0, 0.09), transparent 70%),
    var(--surface);
}
.admin-tips { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.admin-tips li { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.admin-tips .icon { width: 15px; height: 15px; margin-top: 1px; flex: none; color: var(--brand-text); }
.admin-tips strong { color: var(--text); font-weight: 650; }
.panel-divider { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-subtitle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.panel-subtitle .icon { width: 15px; height: 15px; color: var(--brand-text); }
.panel-hint { font-size: 11.5px; color: var(--text-3); }
.storage-meter { height: 8px; margin: 10px 0 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.storage-meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .3s ease; }
.storage-note { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.quick-btn:hover { border-color: var(--brand); color: var(--text); }
.quick-btn .icon { width: 16px; height: 16px; color: var(--brand-text); flex: none; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.settings-grid .field-full { grid-column: 1 / -1; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row:last-of-type { border-bottom: 0; }
.switch-info { min-width: 0; }
.switch-info strong { display: block; font-size: 13px; font-weight: 600; }
.switch-info span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.switch {
  position: relative;
  width: 42px; height: 24px;
  flex: none;
}
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background .16s ease;
  pointer-events: none;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .16s ease;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 2px; }
.security-note {
  display: flex;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.security-note .icon { width: 17px; height: 17px; color: var(--warn); margin-top: 1px; flex: none; }
.data-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-zone { padding-top: 4px; }

/* ============ Toasts / misc ============ */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in .22s ease both;
}
.toast .icon { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.toast.is-success .icon { color: #6ee7a8; }
.toast.is-error .icon { color: #ff9b92; }
.toast.is-info .icon { color: #ffbe7a; }
.toast.is-out { animation: toast-out .18s ease both; }

.bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding: 0 10px env(safe-area-inset-bottom, 0px);
  background: var(--topbar-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}
.bottomnav-item .icon { width: 21px; height: 21px; }
.bottomnav-item.is-active { color: var(--brand-text); }
.bottomnav-create {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin: -20px auto 0;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255, 61, 61, 0.7);
}
.bottomnav-create .icon { width: 22px; height: 22px; }
.fab {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(255, 61, 61, 0.75);
  transition: transform .16s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab .icon { width: 24px; height: 24px; }

.blogger-native { display: none !important; }

/* ============ Animations ============ */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ============ Responsive ============ */
@media (min-width: 1080px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}
@media (max-width: 1279px) {
  .shell { grid-template-columns: 224px minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 1023px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-stats { align-self: flex-start; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 96px; gap: 0; }
  .sidebar { display: none; }
  .bottomnav { display: grid; }
  .fab { display: none; }
  .searchbox { margin: 0; }
  .feed { padding-bottom: 6px; }
  .toast-stack { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 9px 16px 10px;
    row-gap: 9px;
  }
  .topbar-inner .brand { order: 1; }
  .topbar-inner .top-actions { order: 2; margin-left: auto; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .search-panel { top: calc(100% + 6px); }
  .kbd { display: none; }
  .hero { margin-bottom: 18px; padding: 24px; border-radius: 20px; }
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; min-width: 0; }
  .feed-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .feed-controls { width: 100%; justify-content: space-between; }
  .feed-create { flex: 1; justify-content: center; }
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .account-label { display: none; }
  .account-btn { padding: 0 5px; }
  .account-chevron { display: none; }
  .admin-row { align-items: flex-start; flex-wrap: wrap; }
  .admin-row-main { flex-basis: calc(100% - 62px); }
  .admin-row-actions { width: 100%; justify-content: flex-start; margin-left: 51px; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-hero-actions { width: 100%; }
  .admin-hero-actions .btn { flex: 1; justify-content: center; }
  .settings-grid { grid-template-columns: 1fr; }
  .modal { padding: 16px; }
  .modal-card { padding: 22px; border-radius: 20px; }
}
@media (max-width: 640px) {
  .shell { padding: 16px 14px 92px; }
  .topbar-inner { padding: 8px 14px 10px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-name { font-size: 16px; }
  .hero { padding: 20px; border-radius: 18px; }
  .hero-title { font-size: 23px; }
  .hero-text { font-size: 12.5px; }
  .hero-actions .btn { flex: 1; }
  .hero-stat { padding: 9px 7px; }
  .hero-stat strong { font-size: 16px; }
  .hero-stat span { font-size: 9px; letter-spacing: 0.02em; }
  .feed-title { font-size: 19px; }
  .filter-row { margin-right: -14px; padding-right: 14px; }
  .card { padding: 15px; border-radius: 16px; }
  .card-title { font-size: 16px; }
  .modal {
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }
  .modal-card {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    animation: sheet-in .24s cubic-bezier(.2, .8, .2, 1) both;
  }
  .modal-card::before {
    content: "";
    display: block;
    width: 38px; height: 4px;
    margin: -8px auto 14px;
    border-radius: 999px;
    background: var(--line-strong);
  }
  .modal-close { top: 12px; right: 12px; }
  .modal-head { padding-right: 30px; }
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .share-btn { padding: 11px 5px; font-size: 11px; }
  .share-glyph { width: 33px; height: 33px; }
  .copy-field { flex-direction: column; }
  .copy-field .btn { width: 100%; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .admin-hero { padding: 18px; border-radius: 18px; }
  .admin-hero-copy h1 { font-size: 24px; }
  .admin-stats { gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card-value { font-size: 21px; }
  .admin-tabs { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; padding: 4px 10px; position: sticky; top: var(--header-h); z-index: 10; }
  .admin-toolbar-count { width: 100%; margin-left: 0; }
  .admin-row-actions { margin-left: 0; }
  .admin-row-main { flex-basis: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
  .search-panel { max-height: 60vh; }
  .detail-title { font-size: 22px; }
  .detail-body { font-size: 14px; }
  .seg-btn { flex: 0 0 auto; padding: 0 11px; }
}
@media (max-width: 400px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex-basis: calc(33.333% - 4px); }
  .filter-row .chip { height: 32px; padding: 0 10px; }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

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

/* ============ Laravel server-rendered additions ============ */
a.nav-item, a.chip, a.admin-tab, a.icon-action { text-decoration: none; }
a.admin-tab { display: inline-flex; align-items: center; gap: 7px; }
form.searchbox { padding-right: 6px; }
form.searchbox .search-submit {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  flex: none;
}
form.searchbox .search-submit:hover { background: var(--surface-2); color: var(--text); }
.inline-form { display: inline; }
.poll-vote-form { display: contents; }
.detail-page { display: flex; flex-direction: column; gap: 16px; }
.detail-page .back-link { align-self: flex-start; }
.page-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.page-panel + .page-panel { margin-top: 16px; }
.page-title { font-size: clamp(21px, 3vw, 27px); letter-spacing: -0.03em; }
.page-sub { margin-top: 5px; color: var(--text-2); font-size: 13px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.form-page { max-width: 720px; }
.form-page .field + .field { margin-top: 14px; }
.form-page .modal-actions { margin-top: 20px; }
.form-page .select-wrap { margin-top: 0; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.toast a { color: inherit; font-weight: 700; text-decoration: underline; }
.field-error { display: none; margin-top: 6px; font-size: 12px; color: var(--danger); }
.field-error.is-visible { display: block; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--danger); }
.join-error {
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 12px; padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
}
.detail-poll .poll-vote-form:disabled { pointer-events: none; }
.empty-icon .icon { width: 26px; height: 26px; }
.admin-tab .icon { width: 17px; height: 17px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-row-actions form { display: inline-flex; }
.admin-row-actions .inline-form + form, .admin-row-actions form + form { margin-left: 4px; }
.admin-toolbar form { display: contents; }
.hero-stats .hero-stat a { color: inherit; text-decoration: none; }
.feed-sort { display: flex; align-items: center; gap: 6px; }
a.card-title, a.card-body, a.file-tile, a.icon-action, a.quick-btn, a.bottomnav-item, a.brand, a.back-link { text-decoration: none; }
a.card-body:hover { color: var(--text); }
a.quick-btn { display: flex; align-items: center; gap: 7px; }
a.icon-action { text-decoration: none; }
.admin-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.admin-search input[type="search"] { padding-right: 12px; }
.poll-vote-form:disabled { pointer-events: none; }
