@font-face {
  font-family: Manrope;
  src: url("/font/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/font/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #070d16;
  --surface: #0e1a29;
  --surface-raised: #15263b;
  --line: #243750;
  --ink: #f2f6fb;
  --muted: #a3b3c3;
  --soft: #788da2;
  --mint: #76b7ff;
  --mint-ink: #07182c;
  --blue: #a2d1ff;
  --coral: #ffad7a;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 88% 0%, #11223a 0%, transparent 34rem), var(--bg);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.grain { display: none; }
.shell {
  position: relative;
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 18px 0 calc(104px + var(--safe-bottom));
}
.loading {
  min-height: 75vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #d9ebff;
  background: #142d49;
  border: 1px solid #28517d;
}
.brand-mark svg { width: 28px; height: 28px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 20px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.brand .brand-mark svg { width: 27px; height: 27px; }
.brand-copy { min-width: 0; }
.brand-name { font-size: 15px; font-weight: 780; letter-spacing: .08em; }
.workspace-name {
  max-width: 58vw;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #385a7d;
  border-radius: 50%;
  color: #9ccaff;
  background: #172b40;
  flex: 0 0 38px;
}
.avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.welcome {
  position: relative;
  isolation: isolate;
  min-height: 235px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: #15222c;
  background-image: linear-gradient(90deg, #0b1726 0%, #0b1726ed 38%, #0b172680 67%, #0b17261c 100%), url("/art/hero.png");
  background-size: cover;
  background-position: center;
}
.welcome-copy { position: relative; z-index: 1; width: 62%; padding: 26px; }
.welcome h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.welcome p { max-width: 390px; margin: 11px 0 0; color: #c0cbd0; font-size: 14px; line-height: 1.55; }
.account-line { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #d4e4f4; font-size: 12px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #6eafff21; }
.status.off .status-dot { background: var(--coral); box-shadow: 0 0 0 4px #ff95801c; }
.account-link { color: var(--blue); font-size: 12px; font-weight: 650; text-decoration: none; }
.account-link:hover { text-decoration: underline; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 13px 0 29px;
  padding: 15px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stat { min-width: 0; padding: 1px 17px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-value { margin-top: 5px; font-size: 22px; font-weight: 720; letter-spacing: -.035em; }
.stat-foot { display: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 27px 2px 12px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 720; letter-spacing: -.025em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.quiet-link, .back {
  border: 0;
  padding: 7px 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: linear-gradient(145deg, #172a40, #122033 76%);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, transform .16s, background .16s;
}
.action-card:hover, .list-card:hover { transform: translateY(-1px); border-color: #456487; background: var(--surface-raised); }
.action-image { width: 62px; height: 62px; display: block; border-radius: 14px; object-fit: cover; }
.action-title { display: block; font-size: 13px; font-weight: 680; line-height: 1.3; }
.action-note { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.section-cover {
  position: relative;
  height: 155px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 0 0 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #16222c;
}
.section-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .68; }
.section-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0d131a 0%, #0d131a55 56%, transparent 100%); }
.section-cover-copy { position: relative; z-index: 1; padding: 16px 18px; }
.section-cover h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.section-cover p { margin: 5px 0 0; color: #d0d8db; font-size: 12px; }
.list { display: grid; gap: 8px; }
.list-card, .panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #112036, #0d1827 78%);
}
.list-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: .16s;
}
.list-main { min-width: 0; }
.list-title { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.list-end { color: var(--muted); font-size: 11px; white-space: nowrap; }
.panel { padding: 16px; margin: 12px 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #3b4b57;
  border-radius: 15px;
  color: var(--ink);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { border-color: #8bc4ff; color: #07182c; background: linear-gradient(135deg, #9bcfff, #72b6f3); box-shadow: 0 5px 15px #4b9bea20; }
.btn:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.danger { border-color: #613a36; color: #ffc0b3; background: #362321; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; color: #dce8f4; font-size: 13px; font-weight: 650; }
.field { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #2b4059; border-radius: 15px; outline: 0; color: var(--ink); background: #0a1421; font: inherit; font-size: 13px; font-weight: 450; }
.field:focus { border-color: #6eaef3; box-shadow: 0 0 0 3px #6eaef326; }
.field::placeholder { color: #75899c; }
textarea.field { min-height: 100px; resize: vertical; line-height: 1.55; }
.field-note { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.5; }
.form-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.campaign-card, .task-card, .account-card { padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, #172a40, #122033 76%); }
.campaign-card p, .task-card p { margin: 10px 0; color: #d7e1ec; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.task-details { margin: 10px 0; color: #cbd9e8; font-size: 12px; }
.task-details summary { width: fit-content; color: var(--blue); cursor: pointer; }
.task-details pre { max-height: 360px; overflow: auto; margin: 9px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: #d7e1ec; background: #0d1926; font: inherit; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-error { margin: 10px 0; padding: 11px 12px; border: 1px solid #654943; border-radius: 13px; color: #ffd0be; background: #2a2024; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.campaign-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.campaign-top strong { min-width: 0; font-size: 14px; font-weight: 700; }
.campaign-top .role { flex: 0 0 auto; color: #bddbfa; background: #1d3550; }
.campaign-card .tool-row, .task-card .tool-row, .account-card .tool-row { margin: 12px 0 0; }
.section-head.first { margin: 2px 0 17px; }
.section-head.first p { max-width: 540px; font-size: 12px; }
.feature-list { display: grid; gap: 9px; }
.feature-row { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: linear-gradient(145deg,#172a40,#122033 78%); text-align: left; cursor: pointer; transition: .16s; }
.feature-row:hover { border-color: #456487; background: var(--surface-raised); }
.feature-row > span:nth-child(2) { display: grid; gap: 4px; }
.feature-row strong { font-size: 13px; font-weight: 700; }
.feature-row small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.feature-row b { color: var(--blue); font-size: 19px; font-weight: 450; }
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: #acd4ff; background: #1d3855; font-size: 20px; }
.feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode-choice { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 11px !important; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #111f2e; }
.mode-choice input { margin: 3px 0 0; accent-color: #76b7ff; }
.mode-choice span { display: grid; gap: 4px; }
.mode-choice strong { font-size: 13px; }
.mode-choice small { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.45; }
.compact-stats { margin: 0 0 15px; }
.compact-stats .stat-label { min-height: 29px; line-height: 1.4; }
.invite-box p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.section-head + .list { margin-bottom: 18px; }
.contact { padding: 14px 0; border-top: 1px solid var(--line); }
.contact:first-child { border: 0; }
.contact-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); align-items: end; gap: 12px; margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #0d1928; }
.contact-filters label { display: grid; gap: 7px; color: #dce8f4; font-size: 12px; font-weight: 650; }
.contact-filters .tool-row { grid-column: 1 / -1; margin: 0; }
.contact-name { font-size: 14px; font-weight: 650; }
.contact-sub { margin-top: 5px; color: var(--muted); font-size: 11px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; }
.contact-links a { color: var(--blue); font-size: 12px; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.message-context { margin: 13px 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #0d1928; }
.message-context > strong { color: var(--muted); font-size: 11px; font-weight: 650; }
.message-copy { margin-top: 7px; color: #e2ebf5; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.offer-edit { margin-top: 12px; color: var(--blue); font-size: 12px; }
.offer-edit summary { width: fit-content; cursor: pointer; }
.offer-edit .form { margin-top: 13px; }
.empty { padding: 24px 18px; border: 1px dashed #38516d; border-radius: 14px; color: var(--muted); background: #111e2b; font-size: 13px; line-height: 1.6; }
.empty-icon { display: none; }
.members { display: grid; gap: 8px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.member-name { font-size: 13px; font-weight: 650; }
.member-id { margin-top: 3px; color: var(--muted); font-size: 11px; }
.role { padding: 5px 8px; border-radius: 9px; color: #b8d8f4; background: #21384a; font-size: 10px; white-space: nowrap; }
.role.member-role { color: #c4ddf8; background: #1b3047; }
.invite-box { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #132238; }
.invite-title { font-size: 13px; font-weight: 650; }
.invite-note { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.bottom-nav {
  position: fixed;
  z-index: 4;
  bottom: calc(10px + var(--safe-bottom));
  left: 50%;
  width: min(100% - 24px, 530px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid #34434f;
  border-radius: 17px;
  background: #0b1523f5;
  box-shadow: 0 12px 34px #0007;
  backdrop-filter: blur(18px);
}
.nav-btn { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.nav-btn .nav-icon { width: 19px; height: 19px; display: block; }
.nav-btn .nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.active { color: var(--blue); background: #1b3048; }
.toast { position: fixed; z-index: 10; bottom: calc(88px + var(--safe-bottom)); left: 50%; max-width: min(92vw, 460px); padding: 11px 15px; transform: translate(-50%, 12px); border: 1px solid #355576; border-radius: 13px; opacity: 0; pointer-events: none; color: #e5f1ff; background: #142337; font-size: 13px; box-shadow: 0 7px 22px #0008; transition: .2s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.error-screen { max-width: 460px; margin: 12vh auto; text-align: center; }
.error-screen h1 { font-size: 26px; letter-spacing: -.04em; }
.error-screen p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.skeleton { height: 82px; border-radius: 15px; background: linear-gradient(90deg, #18232c, #24323d, #18232c); background-size: 200% 100%; animation: shine 1.4s infinite; }
.footer { padding: 22px 0; color: var(--soft); font-size: 10px; text-align: center; }
.mono { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #8bc4ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@keyframes shine { to { background-position: -200% 0; } }
@media (min-width: 700px) {
  .shell { padding-top: 24px; }
  .welcome-copy { padding: 34px; }
  .welcome { min-height: 270px; }
  .action-card { grid-template-columns: 72px minmax(0, 1fr); min-height: 98px; padding: 11px; }
  .action-image { width: 72px; height: 72px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 900px); padding-top: 12px; }
  .topbar { margin-bottom: 13px; }
  .welcome { min-height: 218px; align-items: flex-end; }
  .welcome-copy { width: 100%; padding: 20px; }
  .welcome h1 { max-width: 300px; font-size: 27px; }
  .welcome p { max-width: 270px; font-size: 13px; }
  .welcome { background-image: linear-gradient(90deg, #0b1726fa 0%, #0b1726ed 45%, #0b17265d 100%), url("/art/hero.png"); background-position: 62% center; }
  .account-line { margin-top: 15px; }
  .stats { margin: 10px 0 24px; padding: 13px 2px; }
  .stat { padding: 1px 11px; }
  .stat-value { font-size: 20px; }
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .action-card { grid-template-columns: 55px minmax(0, 1fr); min-height: 72px; padding: 8px; }
  .action-image { width: 55px; height: 55px; }
  .action-note { font-size: 11px; }
  .section-cover { height: 138px; }
  .section-cover h1 { font-size: 22px; }
  .contact-filters { grid-template-columns: 1fr; }
  .contact-filters .tool-row { grid-column: auto; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 18px); }
  .welcome h1 { font-size: 24px; }
  .stat { padding: 1px 8px; }
  .stat-value { font-size: 18px; }
}
@media print {
  body { color: #17191b; background: #fff; }
  .grain, .topbar, .bottom-nav, .back, .tool-row, .quiet-link { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .panel, .list-card, .contact { color: #111; background: #fff; border-color: #ddd; break-inside: avoid; }
  .contact-sub, .list-meta, .footer { color: #555; }
  .section-head h2 { font-size: 22px; }
}
