:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-soft: #eef1f5;
  --text: #111318;
  --muted: #707680;
  --line: rgba(17, 19, 24, 0.1);
  --black: #050608;
  --blue: #0a84ff;
  --green: #20c76b;
  --pink: #ff3b6b;
  --orange: #ff8a24;
  --purple: #635bff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(245, 246, 248, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.desktop-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.header-action {
  border: 0;
  justify-self: end;
  padding: 11px 16px;
  background: var(--black);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-menu {
  position: relative;
  justify-self: end;
}

.site-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  width: 340px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(16, 18, 24, 0.14);
  backdrop-filter: blur(18px);
}

.site-dropdown[hidden] {
  display: none;
}

.site-dropdown [hidden] {
  display: none !important;
}

.site-dropdown a,
.site-dropdown button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.site-dropdown a:hover,
.site-dropdown button:hover {
  background: var(--panel-soft);
}

.dropdown-divider {
  height: 1px;
  margin: 8px 4px;
  background: var(--line);
}

.site-dropdown .live-auth-panel {
  margin: 0;
  padding: 8px 4px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-dropdown .live-auth-form,
.site-dropdown .register-form,
.site-dropdown .password-reset-form {
  display: none !important;
  grid-template-columns: 1fr;
  gap: 9px;
}

.site-dropdown .auth-view.is-active {
  display: grid !important;
}

.site-dropdown .live-auth-form[hidden],
.site-dropdown .register-form[hidden],
.site-dropdown .password-reset-form[hidden] {
  display: none !important;
}

.site-dropdown .live-auth-form label,
.site-dropdown .register-form label,
.site-dropdown .password-reset-form label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
}

.site-dropdown .live-auth-form input,
.site-dropdown .register-form input,
.site-dropdown .password-reset-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.site-dropdown .live-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  grid-column: auto;
}

.site-dropdown .live-auth-actions .primary-action,
.site-dropdown .live-auth-actions .secondary-action,
.site-dropdown .register-form .primary-action,
.site-dropdown .password-reset-form .secondary-action {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  cursor: pointer;
}

.auth-link-button {
  min-height: 34px;
  padding: 0;
  justify-content: flex-start;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.auth-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.live-auth-form.has-error input[name="username"],
.live-auth-form.has-error input[name="password"] {
  border-color: rgba(255, 59, 107, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 59, 107, 0.1);
}

.site-dropdown .live-user-row {
  margin: 0;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.beta-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px;
  background: #111318;
  color: white;
  text-align: center;
  font-weight: 900;
}

.beta-banner span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
}

.beta-banner strong {
  font-size: clamp(18px, 2.2vw, 26px);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 130px);
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 72px) 46px;
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 610px;
}

.hero-preview,
.phone-frame {
  position: absolute;
}

.hero-preview {
  width: min(310px, 43vw);
  min-height: 560px;
  padding: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 247, 0.92));
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 38px;
  box-shadow: 0 34px 70px rgba(16, 24, 40, 0.2);
  overflow: hidden;
}

.preview-left {
  left: 5%;
  top: 3%;
  transform: rotate(-5deg);
}

.preview-right {
  right: 7%;
  top: 15%;
  transform: rotate(5deg);
}

.phone-frame {
  width: min(360px, 46vw);
  aspect-ratio: 900 / 1250;
  background: transparent;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.22));
}

.phone-left {
  left: 1%;
  top: 2%;
  transform: rotate(-6deg);
}

.phone-right {
  right: 2%;
  top: 17%;
  transform: rotate(6deg);
}

.phone-17 {
  aspect-ratio: 780 / 1180;
  filter: drop-shadow(0 34px 52px rgba(24, 34, 60, 0.28));
}

.phone-14 {
  width: min(370px, 48vw);
  aspect-ratio: 756 / 1000;
  filter: drop-shadow(0 34px 52px rgba(9, 17, 26, 0.3));
}

.phone-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.app-screen {
  position: absolute;
  z-index: 3;
  left: 30.8%;
  right: 9.2%;
  top: 2.5%;
  bottom: 9.8%;
  height: auto;
  padding: 22px 14px;
  background: #f6f7fb;
  border-radius: 34px;
  overflow: hidden;
}

.phone-14 .app-screen {
  left: 38.5%;
  right: 3.4%;
  top: 3%;
  bottom: 3.2%;
  border-radius: 31px;
}

.phone-17 .app-screen {
  left: 28.6%;
  right: 4.6%;
  top: 2.8%;
  bottom: 6.4%;
  border-radius: 34px;
}

.hero-preview .app-screen {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 542px;
  height: 100%;
  border-radius: 30px;
}

.app-screen.public {
  background: #f7fbf8;
}

.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 14px 16px;
  background:
    radial-gradient(circle at 50% 8%, rgba(32, 199, 107, 0.14), transparent 34%),
    #f7f8fb;
}

.screen-dynamic-island {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 76px;
  height: 24px;
  transform: translateX(-50%);
  background: #050608;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.login-top {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  max-width: 100%;
}

.login-top img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.login-avatar {
  width: 88px;
  height: 88px;
  margin-top: 28px;
  padding: 12px;
  border-radius: 30px;
  background: white;
  box-shadow: 0 18px 34px rgba(24, 32, 44, 0.13);
}

.login-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.login-title {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
  max-width: 100%;
  line-height: 1;
}

.login-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.login-field span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #d5dbe3;
}

.login-field p {
  margin: 0;
  color: #8a9099;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-button {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 18px;
  background: #050608;
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
}

.login-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
  text-align: center;
}

.chat-screen {
  padding: 18px 12px 14px;
  background: #f3f4f7;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.chat-header img {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.chat-header strong {
  display: block;
  font-size: 14px;
}

.chat-header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chat-date {
  width: max-content;
  margin: 0 auto 12px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.message {
  width: max-content;
  max-width: 94%;
  margin: 8px 0;
  padding: 9px 10px 10px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(18, 24, 34, 0.07);
}

.message b {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  color: var(--muted);
}

.message span {
  display: block;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.message.incoming {
  background: white;
  border-bottom-left-radius: 6px;
}

.message.outgoing {
  margin-left: auto;
  background: #101216;
  color: white;
  border-bottom-right-radius: 6px;
}

.message.outgoing b {
  color: rgba(255, 255, 255, 0.62);
}

.message.alt {
  background: #e9f7ef;
}

.typing-row {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
  padding: 12px 13px;
  background: white;
  border-radius: 999px;
}

.typing-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa1ab;
}

.screen-title {
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 900;
}

.screen-card,
.avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin-bottom: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.screen-card.compact {
  min-height: 72px;
}

.screen-card strong,
.avatar-row strong {
  display: block;
  font-size: 17px;
}

.screen-card small,
.avatar-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.screen-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
}

.screen-icon.blue {
  background: rgba(10, 132, 255, 0.16);
}

.screen-icon.pink {
  background: rgba(255, 59, 107, 0.16);
}

.screen-icon.green {
  background: rgba(32, 199, 107, 0.16);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.screen-grid span {
  aspect-ratio: 1;
  background: #dde3eb;
  border-radius: 18px;
}

.avatar-row img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.chat-line {
  width: max-content;
  max-width: 90%;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
}

.chat-line.left {
  background: #e9edf3;
}

.chat-line.right {
  margin-left: auto;
  background: #111;
  color: white;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 12vw, 142px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 22px;
}

.hero-copy,
.section-heading p,
.public-section p,
.support-card p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 560;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  background: var(--black);
  color: white;
}

.secondary-action {
  background: white;
  border: 1px solid var(--line);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero-status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.live-blog-section {
  scroll-margin-top: 96px;
  padding: clamp(30px, 5vw, 50px) clamp(18px, 5vw, 42px);
  margin: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 16px 48px rgba(12, 15, 24, 0.09);
}

.live-panel {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  transform: none;
}

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

.admin-panel {
  scroll-margin-top: 96px;
  width: auto;
  padding: clamp(30px, 5vw, 50px) clamp(18px, 5vw, 42px);
  margin: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 16px 48px rgba(12, 15, 24, 0.1);
}

.worktool-panel {
  scroll-margin-top: 96px;
  width: auto;
  padding: clamp(30px, 5vw, 50px) clamp(18px, 5vw, 42px);
  margin: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 16px 48px rgba(12, 15, 24, 0.08);
}

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

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

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-overview-card {
  grid-column: 1 / -1;
}

.admin-card {
  min-height: 260px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.admin-card h3 {
  margin-bottom: 16px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metric {
  min-height: 92px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1;
}

.admin-metric span,
.admin-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-note {
  margin: 14px 0 0;
}

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

.admin-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-item strong {
  display: block;
  font-size: 15px;
}

.admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-item-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.admin-item small,
.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-item select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

.admin-item-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-item-actions button:hover {
  background: var(--panel-soft);
}

.admin-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-reply-form input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.admin-reply-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-settings-form,
.admin-danger-zone {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-settings-form {
  margin-bottom: 12px;
}

.admin-settings-form label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-settings-form input[type="password"] {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.admin-settings-form button,
.admin-danger-zone button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-danger-zone {
  border-color: rgba(255, 59, 107, 0.22);
  background: rgba(255, 59, 107, 0.05);
}

.admin-danger-zone p,
.admin-danger-zone small,
.admin-settings-form small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-danger-zone button {
  background: #ff3b6b;
  color: white;
}

.worktool-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.worktool-card {
  min-height: 260px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.worktool-focus-card {
  grid-row: span 2;
}

.worktool-user-note-card {
  grid-column: 2;
}

.worktool-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.worktool-card-head h3 {
  margin-bottom: 5px;
}

.worktool-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.worktool-note-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.worktool-note-form input,
.worktool-note-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.worktool-note-form textarea {
  min-height: 150px;
  padding-top: 13px;
  resize: vertical;
}

.worktool-note-form button {
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.worktool-notes,
.worktool-user-list {
  display: grid;
  gap: 10px;
}

.worktool-note,
.worktool-note-empty,
.worktool-user-empty {
  padding: 14px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.worktool-note div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.worktool-note strong {
  font-size: 15px;
}

.worktool-note time,
.worktool-note small,
.worktool-note-empty,
.worktool-user-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.worktool-note p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.worktool-user {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f9fb;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.worktool-user:hover,
.worktool-user.is-selected {
  border-color: rgba(10, 132, 255, 0.38);
  background: rgba(10, 132, 255, 0.08);
}

.worktool-user strong {
  font-size: 15px;
}

.worktool-user span,
.worktool-user small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-role-form,
.support-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-role-form input[type="text"],
.admin-role-form input:not([type]),
.support-form input,
.support-form select,
.support-form textarea,
.admin-role-form input[name="name"],
.admin-role-form input[name="description"] {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.admin-role-form label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-role-form button,
.support-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.live-blog-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.live-blog-header h2 {
  max-width: 760px;
}

.live-blog-header p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.5;
}

.live-auth-panel,
.live-manager-panel,
.live-user-row {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.live-auth-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-auth-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
}

.live-auth-form input,
.live-editor input,
.live-editor select,
.live-editor textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.live-auth-form input:focus,
.live-editor input:focus,
.live-editor select:focus,
.live-editor textarea:focus {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.live-auth-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  grid-column: span 2;
}

.live-auth-actions .primary-action,
.live-auth-actions .secondary-action {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.live-form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.live-editor {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 12px;
  align-items: start;
}

.live-editor textarea {
  grid-column: 1 / -1;
  min-height: 118px;
  padding-top: 14px;
  resize: vertical;
}

.live-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.live-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.live-status.is-done {
  color: #047857;
  background: #d1fae5;
}

.live-status.is-progress {
  color: #c2410c;
  background: #ffedd5;
}

.live-status.is-planned {
  color: #b91c1c;
  background: #fee2e2;
}

.live-post-meta span {
  height: 30px;
  margin-bottom: 0;
  line-height: 1;
}

.live-editor button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.live-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.live-user-row button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

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

.live-post {
  min-height: 230px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.live-post span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.live-post h3 {
  font-size: 24px;
}

.live-post p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.5;
  white-space: pre-wrap;
}

.live-post time {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.live-post.skeleton {
  opacity: 0.72;
}

.section {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.data-section {
  padding-top: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

.section-heading.narrow {
  max-width: 640px;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 280px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.feature-card p,
.timeline p,
.status-row p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.48;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 16px;
  font-weight: 900;
}

.feature-icon.blue {
  color: var(--blue);
  background: rgba(10, 132, 255, 0.13);
}

.feature-icon.green {
  color: var(--green);
  background: rgba(32, 199, 107, 0.14);
}

.feature-icon.pink {
  color: var(--pink);
  background: rgba(255, 59, 107, 0.12);
}

.feature-icon.orange {
  color: var(--orange);
  background: rgba(255, 138, 36, 0.14);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #101216;
  color: white;
}

.split-section .section-heading p,
.split-section .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.status-panel {
  display: grid;
  gap: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
}

.status-row > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.status-row.active > span {
  background: var(--green);
}

.status-row p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.release-section {
  background: var(--panel);
}

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

.timeline article {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.timeline time {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
}

.support-section {
  padding-top: 34px;
}

.support-card {
  max-width: 1080px;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 18, 28, 0.1);
}

.support-card .primary-action {
  margin-top: 16px;
}

.support-chat {
  margin-top: 24px;
  overflow: hidden;
  background: #eef1f6;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.support-chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
}

.support-chat-bar strong,
.support-chat-bar span {
  display: block;
}

.support-chat-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-chat-actions {
  display: flex;
  gap: 8px;
}

.support-chat-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.support-chat-body {
  padding: 16px;
}

.support-chat-messages {
  display: grid;
  gap: 9px;
  min-height: 220px;
  max-height: 390px;
  overflow: auto;
  padding: 6px 6px 16px;
}

.support-empty {
  padding: 18px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
}

.support-bubble {
  width: max-content;
  max-width: min(640px, 90%);
  padding: 12px 15px;
  background: white;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 8px 24px rgba(15, 18, 28, 0.06);
}

.support-bubble.visitor {
  margin-left: auto;
  background: #111318;
  color: white;
  border-radius: 18px 18px 6px 18px;
}

.support-bubble.admin {
  background: #ffffff;
}

.support-bubble.system {
  justify-self: center;
  max-width: min(560px, 94%);
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(185, 28, 28, 0.18);
  border-radius: 16px;
}

.support-bubble strong,
.support-bubble time {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.support-bubble p {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.support-bubble time {
  color: var(--muted);
}

.support-bubble.visitor time,
.support-bubble.visitor strong {
  color: rgba(255, 255, 255, 0.64);
}

.support-bubble.system time,
.support-bubble.system strong {
  color: #b91c1c;
}

.support-form {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 22px;
}

.support-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.support-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.support-form.is-chatting {
  margin-top: 4px;
}

.support-ended {
  display: flex;
  justify-content: center;
  padding: 14px 4px 2px;
}

.support-ended[hidden] {
  display: none;
}

.support-ended .primary-action {
  border: 0;
  cursor: pointer;
}

.support-form textarea {
  min-height: 52px;
  max-height: 140px;
  padding-top: 13px;
  resize: vertical;
}

.support-form .primary-action {
  min-height: 52px;
  margin: 0;
  border: 0;
}

.support-form span {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-chat.is-minimized .support-chat-bar {
  border-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero,
  .split-section,
  .public-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 2;
    min-height: 520px;
  }

  .preview-left,
  .phone-left {
    left: 5%;
  }

  .preview-right,
  .phone-right {
    right: 5%;
  }

  .feature-grid,
  .timeline,
  .live-posts,
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-blog-header,
  .live-auth-form,
  .live-editor {
    grid-template-columns: 1fr;
  }

  .live-auth-actions,
  .live-editor textarea {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .header-action {
    display: inline-flex;
  }

  .site-dropdown {
    right: 0;
    width: min(230px, calc(100vw - 36px));
  }

  .live-panel {
    width: auto;
    max-height: none;
  }

  .admin-panel {
    width: auto;
    max-height: none;
  }

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

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

  .worktool-focus-card,
  .worktool-user-note-card {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-preview {
    width: 210px;
    min-height: 390px;
    border-radius: 28px;
  }

  .hero-preview .app-screen {
    min-height: 372px;
    border-radius: 22px;
  }

  .phone-frame {
    width: 205px;
    border-radius: 34px;
  }

  .preview-left,
  .phone-left {
    left: 0;
  }

  .preview-right,
  .phone-right {
    right: 0;
    top: 22%;
  }

  .screen-title {
    font-size: 22px;
  }

  .feature-grid,
  .timeline,
  .live-posts,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .support-chat-bar,
  .support-compose,
  .support-identity {
    grid-template-columns: 1fr;
  }

  .support-chat-bar {
    align-items: stretch;
  }

  .support-chat-actions {
    justify-content: space-between;
  }

  .feature-card {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
  }
}
