:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #fbf9f3;
  --ink: #1e1a12;
  --muted: #6f6857;
  --faint: #a39b88;
  --line: #e7e1d3;
  --gold: #8f7300;
  --gold-deep: #6b5600;
  --gold-soft: #f3ecd6;
  --ok: #2f7a4b;
  --ok-soft: #e3f1e7;
  --warn: #b4531a;
  --warn-soft: #fbe9dd;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 26, 18, 0.05), 0 8px 24px -12px rgba(30, 26, 18, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
q { quotes: "“" "”" "‘" "’"; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: 26px; }
h3 { font-size: 21px; }

/* ---------- logo ---------- */
.logo {
  display: inline-block;
  width: 120px;
  aspect-ratio: 1000 / 550;
  background: url("../assets/logo.webp") no-repeat;
  background-size: 200% auto;
  background-position: 50% 45.2%;
  mix-blend-mode: multiply;
  flex: none;
}
.logo.lg { width: 200px; }
.logo.sm { width: 92px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field small { color: var(--faint); font-size: 12.5px; }
.input, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(143,115,0,.14); }
.form-grid { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--gold-soft); color: var(--gold-deep); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.revision { background: var(--warn-soft); color: var(--warn); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* ---------- abas de filtro ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab .n { margin-left: 4px; color: var(--faint); font-weight: 700; }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.on .n { color: rgba(255,255,255,.6); }

/* ---------- criativo: imagem, vídeo, carrossel ---------- */
.creative { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creative .single { display: flex; justify-content: center; padding: 20px; }
.creative .single img, .creative .single video {
  max-height: 600px; width: auto; border-radius: 6px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); cursor: zoom-in; background: #000;
}
.creative .single video { cursor: auto; width: 100%; max-width: 420px; }

.carousel { position: relative; }
.carousel .strip {
  --h: 360px;
  display: flex; gap: 10px; padding: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 20px; scrollbar-width: thin;
}
.carousel .slide { position: relative; flex: none; height: var(--h); scroll-snap-align: start; cursor: zoom-in; }
.carousel .slide img, .carousel .slide video { height: 100%; width: auto; max-width: none; border-radius: 6px; box-shadow: 0 6px 20px -10px rgba(0,0,0,.3); background: #fff; }
.carousel .slide .num {
  position: absolute; top: 8px; left: 8px; min-width: 26px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: rgba(20,17,10,.72); color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.carousel .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.95); box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel .nav.prev { left: 8px; } .carousel .nav.next { right: 8px; }
.carousel .nav svg { width: 18px; height: 18px; }
.carousel-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 14px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .carousel .strip { --h: 250px; padding: 14px; gap: 8px; scroll-padding: 14px; }
  .carousel .nav { display: none; }
  .creative .single { padding: 14px; }
  .carousel-foot { padding: 0 14px 12px; }
}
.creative .empty { padding: 48px 20px; text-align: center; color: var(--faint); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,10,6,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .lb-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(30,26,18,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; padding: 26px; background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.modal h3 { margin-bottom: 8px; }
.modal p { margin: 0 0 18px; color: var(--muted); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); animation: toastIn .25s ease; white-space: pre-line;
}
.toast.err { background: var(--danger); }
.toast.wa { background: #0b7a4b; }
.toast.wa b { display: block; font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.demo-bar {
  background: var(--ink); color: #f3ecd6; font-size: 13px; text-align: center; padding: 8px 16px;
}
.demo-bar b { color: #e6c65a; }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: flex; justify-content: center; padding: 80px 0; }

/* =====================================================================
   ÁREA DO CLIENTE
   ===================================================================== */
.portal-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.portal-head .inner { max-width: 820px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-head .who { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.3; }
.portal-head .who b { display: block; color: var(--ink); font-size: 15px; }
.preview-bar { position: sticky; top: 0; z-index: 50; background: #1e1a12; color: #f3ecd6; font-size: 13.5px; }
.preview-bar .inner { max-width: 820px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.preview-bar .btn { height: 32px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

.portal { max-width: 820px; margin: 0 auto; padding: 32px 16px 80px; }
.portal-intro { margin-bottom: 22px; }
.portal-intro p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.portal .tabs { margin-bottom: 20px; }
.post-list { display: grid; gap: 26px; }

.post { overflow: hidden; }
.post-meta { padding: 22px 24px 20px; }
.post-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.post-date { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.post-date svg { width: 16px; height: 16px; color: var(--gold); }
.post h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts > div { background: var(--surface-2); padding: 11px 14px; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .post-meta { padding: 18px 16px 16px; } }
.caption { margin-top: 14px; }
.caption dt { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.caption dd { margin: 0; white-space: pre-line; color: #3b352a; }
.caption dd.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.caption button { border: 0; background: none; padding: 4px 0 0; color: var(--gold-deep); font-weight: 700; font-size: 13px; cursor: pointer; }

.post-actions { padding: 18px 24px 22px; }
@media (max-width: 560px) { .post-actions { padding: 16px; } }
.post-actions .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-actions .choice .btn { height: 50px; font-size: 15px; }
.post-actions .ask { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.revise-box { display: grid; gap: 10px; }
.revise-box .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.state {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px;
}
.state svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.state.approved { background: var(--ok-soft); color: #1f5a36; }
.state.revision { background: var(--warn-soft); color: #7a3810; }
.state b { display: block; font-size: 15px; }
.state q { display: block; margin-top: 6px; font-style: italic; quotes: "“" "”"; }

.portal-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.portal-empty svg { width: 44px; height: 44px; color: var(--gold); margin-bottom: 10px; }
.portal-foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 50px; }

/* =====================================================================
   PAINEL ADMIN
   ===================================================================== */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 20px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.topbar nav a:hover { background: var(--surface-2); color: var(--ink); }
.topbar nav a.on { color: var(--ink); background: var(--gold-soft); }
.topbar .me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .topbar .inner { flex-wrap: wrap; gap: 8px 12px; }
  .topbar nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .topbar .me { margin-left: auto; }
  .topbar .me .email { display: none; }
}

.page { max-width: 1180px; margin: 0 auto; padding: 30px 16px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

.dash { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.client-card { padding: 18px; display: grid; gap: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.client-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.client-card h3 { font-size: 22px; }
.client-card .counts { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.side { display: grid; gap: 16px; }
.side .card { padding: 18px; }
.side h3 { font-size: 20px; margin-bottom: 12px; }
.feed { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.feed li a { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: inherit; font-size: 13.5px; line-height: 1.4; }
.feed li a:hover { background: var(--surface-2); }
.feed .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.feed .dot.approved { background: var(--ok-soft); } .feed .dot.revision { background: var(--warn-soft); } .feed .dot.resubmitted { background: var(--gold-soft); }
.feed small { display: block; color: var(--faint); font-size: 12px; }
.feed q { display: block; color: var(--muted); font-style: italic; margin-top: 2px; }
.empty-note { color: var(--faint); font-size: 13.5px; padding: 6px 8px; }

.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
.link-box code { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.link-box .lbl { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 560px) { .link-box .lbl { display: none; } }

.post-rows { display: grid; gap: 10px; }
.post-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 12px; text-decoration: none; color: inherit; transition: border-color .15s; }
.post-row:hover { border-color: var(--gold); }
.post-row .thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); position: relative; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.post-row .thumb img, .post-row .thumb video { width: 100%; height: 100%; object-fit: cover; }
.post-row .thumb .stack { position: absolute; right: 4px; bottom: 4px; background: rgba(20,17,10,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.post-row .t { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.post-row .sub { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px 12px; flex-wrap: wrap; }
.post-row q { display: block; margin-top: 6px; font-size: 13px; color: var(--warn); font-style: italic; }
@media (max-width: 560px) {
  .post-row { grid-template-columns: 56px 1fr; gap: 12px; }
  .post-row .thumb { width: 56px; height: 56px; }
  .post-row .badge { grid-column: 2; justify-self: start; }
}

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor .panel { padding: 22px; }
.editor .preview-col { position: sticky; top: 84px; }
.editor .preview-col .eyebrow { margin: 0 0 10px 4px; display: block; }
.fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fmt label { cursor: pointer; }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); background: var(--surface); transition: all .15s;
}
.fmt span svg { width: 22px; height: 22px; }
.fmt input:checked + span { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.fmt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(143,115,0,.2); }

.drop {
  border: 1.5px dashed #d6ceb9; border-radius: 12px; padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s;
}
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-soft); }
.drop b { display: block; }
.drop small { color: var(--faint); }
.media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .n { position: absolute; top: 5px; left: 5px; background: rgba(20,17,10,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.media-item .tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.media-item .tools button { width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.media-item .tools button svg { width: 14px; height: 14px; }
.media-item .tools button:disabled { opacity: .35; cursor: default; }
.media-item.loading { display: flex; align-items: center; justify-content: center; }

.history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; gap: 10px; font-size: 13.5px; }
.history .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.history .dot.approved { background: var(--ok-soft); } .history .dot.revision { background: var(--warn-soft); } .history .dot.resubmitted { background: var(--gold-soft); }
.history small { display: block; color: var(--faint); }
.history q { display: block; font-style: italic; color: var(--muted); }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.editor-actions .right { display: flex; gap: 10px; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert.revision { background: var(--warn-soft); color: #7a3810; }
.alert.approved { background: var(--ok-soft); color: #1f5a36; }
.alert b { display: block; }
.alert q { display: block; font-style: italic; margin-top: 4px; }

.settings-wrap { max-width: 680px; display: grid; gap: 20px; }
.settings-wrap .card { padding: 24px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.steps code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.team-list .avatar { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
.team-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-form .input { flex: 1; }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; padding: 32px 28px; text-align: center; }
.login .logo { margin: 0 auto 8px; }
.login p.sub { color: var(--muted); margin: 0 0 22px; }
.login form { text-align: left; }
.login .links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13.5px; }
.login .links a { cursor: pointer; font-weight: 600; text-decoration: none; }
.login .msg { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.login .msg.err { background: #fbe4e2; color: var(--danger); }
.login .msg.ok { background: var(--ok-soft); color: var(--ok); }
