/* Marketing Corner — layout D (sidebar + OS hero) · Seedtag Design System tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --coral: #FF6B7C; --coral-ink: #E8475C; --coral-deep: #C93347; --coral-soft: #FFF0F1; --coral-chip: #FFE4E7;
  --black: #000; --ink: #202020; --white: #fff;
  --bg: #FFFFFF; --bg-low: #F8F7F6; --bg-mid: #F0ECEA; --cream: #EBE6E4; --card: #FCFBFA;
  --line: #E6E5E5; --line-2: #EBE6E4; --line-3: #F0ECEA;
  --grey1: #D4D0CE; --grey2: #BCB8B6; --grey3: #8D8A89; --grey4: #5E5C5B; --grey5: #2F2E2E; --muted: #707070;
  --ok: #1A7A45; --ok-soft: #EDFAF2; --blue: #3B4EAA; --blue-soft: #EEF2FF; --warn: #9A5000; --warn-soft: #FFF7ED; --poor: #B02A2A;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow-glow: 0 12px 40px rgba(253,95,115,.10), 0 2px 6px rgba(0,0,0,.04);
}
html, body { background: var(--bg); font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: var(--sans); color: inherit; }
a { color: var(--coral-ink); text-decoration: none; cursor: pointer; }
a:hover { color: var(--coral-deep); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { background: var(--bg-mid); border-radius: 14px; animation: pulse 1.4s ease-in-out infinite; }
.sr { position: absolute; left: -9999px; }

/* ── SHELL ── */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 248px; background: var(--bg-low); border-right: 1px solid var(--line-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand b { display: block; font-size: 14px; font-weight: 600; }
.brand small { font-size: 11.5px; color: var(--grey3); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--grey3); padding: 0 10px 6px; }
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: none; background: none; font-size: 13.5px; color: var(--grey5); cursor: pointer; text-align: left; }
.nav-btn svg { flex-shrink: 0; color: var(--grey4); }
.nav-btn:hover { background: rgba(0,0,0,.035); }
.nav-btn.on { background: var(--white); color: var(--black); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.nav-btn.on svg { color: var(--coral); }
.nav-btn .soon { margin-left: auto; font-size: 9px; font-weight: 700; color: var(--coral-ink); background: var(--coral-soft); border-radius: 99px; padding: 1px 6px; }
.edit-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--grey5); cursor: pointer; border: none; background: none; width: 100%; }
.switch { width: 30px; height: 18px; border-radius: 99px; background: var(--grey1); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.edit-toggle.on .switch { background: var(--coral); }
.edit-toggle.on .switch::after { transform: translateX(12px); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line-2); font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #FFD2D6; color: var(--coral-ink); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.me small { display: block; color: var(--grey3); }

@media (max-width: 860px) {
  .side { flex-basis: 100%; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-right: none; border-bottom: 1px solid var(--line-2); }
  .nav-group { flex-direction: row; flex-wrap: wrap; }
  .nav-label, .me { display: none; }
  .nav-btn { width: auto; }
}

/* ── HERO ── */
.hero { position: relative; overflow: hidden; padding: 52px 44px 36px; background: var(--bg-low); border-bottom: 1px solid var(--line-2); }
.hero::before { content: ""; position: absolute; top: -160px; right: -60px; width: 560px; height: 420px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(253,95,115,.13) 0%, rgba(253,95,115,.04) 45%, rgba(248,247,246,0) 70%); pointer-events: none; }
.hero > * { position: relative; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--coral-ink); background: var(--coral-chip); padding: 5px 12px; border-radius: 99px; text-transform: uppercase; }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 54px); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 1.1em; }
.hero p { margin-top: 14px; max-width: 540px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.searchbar { margin-top: 26px; max-width: 620px; height: 52px; padding: 0 7px 0 18px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-glow); }
.searchbar svg { color: var(--grey3); flex-shrink: 0; }
.searchbar input { flex: 1; min-width: 0; border: none; outline: none; font-size: 14.5px; background: transparent; }
.btn-dark { height: 38px; padding: 0 18px; border-radius: 999px; border: none; background: #101010; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-dark:hover { background: #2a2a2a; }
.announce { margin-top: 18px; max-width: 620px; display: flex; gap: 10px; align-items: center; font-size: 13px; background: var(--white); border: 1px solid rgba(255,107,124,.3); border-radius: 12px; padding: 10px 14px; }
.announce::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

/* page header for section views */
.page-head { padding: 34px 44px 24px; border-bottom: 1px solid var(--line-2); background: var(--bg-low); }
.page-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1.1; }
.page-head p { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 620px; }

.body { padding: 28px 44px 56px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 600px) { .hero, .page-head, .body { padding-left: 16px; padding-right: 16px; } }

/* ── QUICK TILES ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { border-radius: 14px; padding: 18px; background: var(--bg-low); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; text-align: left; border: none; cursor: pointer; color: var(--ink); transition: transform .2s ease-out; position: relative; }
.tile:hover { transform: translateY(-2px); color: var(--ink); }
.tile small { font-size: 12px; color: var(--muted); }
.tile b { font-size: 17px; font-weight: 600; }
.tile.dark { background: #000; color: #fff; } .tile.dark small { color: var(--grey1); }
.tile.pink { background: var(--coral-soft); } .tile.pink small { color: var(--coral-deep); }

/* ── LAYOUT GRID ── */
.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head .l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--grey3); }
.sec-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; }
.sec-title.sans { font-family: var(--sans); font-style: normal; font-size: 17px; font-weight: 600; }
.link-btn { background: none; border: none; color: var(--coral-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--coral-deep); }
.add-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px dashed var(--coral); background: var(--coral-soft); color: var(--coral-ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.edit-btn { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--grey4); font-size: 11px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.edit-btn:hover { border-color: var(--coral); color: var(--coral-ink); }
.is-hidden { opacity: .45; }
.ed-wrap { position: relative; display: flex; flex-direction: column; }
.ed-wrap > .tile, .ed-wrap > .doc, .ed-wrap > .ch-card { flex: 1; }

/* ── PILLS ── */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12px; padding: 5px 12px; border-radius: 99px; background: var(--bg-low); color: var(--grey4); border: none; cursor: pointer; }
.pill:hover { background: var(--bg-mid); }
.pill.on { background: #000; color: #fff; }

/* ── TEAMS ── */
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.teams.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .teams, .teams.wide { grid-template-columns: 1fr; } }
.team { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card); display: flex; flex-direction: column; animation: fadeUp .35s ease both; }
.team.span { grid-column: 1 / -1; }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.team-name { font-size: 15px; font-weight: 600; }
.team-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.team ul { margin: 10px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.6; color: var(--grey4); flex: 1; }
.team .contact { margin-top: 10px; font-size: 12.5px; font-weight: 600; align-self: flex-start; background: none; border: none; color: var(--coral-ink); cursor: pointer; padding: 0; text-align: left; }
.team .contact:hover { color: var(--coral-deep); }
.subs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sub { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 13px; display: flex; flex-direction: column; }
.sub .team-name { font-size: 13.5px; }
.sub ul { margin-top: 7px; }

/* ── DOCS ── */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .doc-list { grid-template-columns: 1fr; } }
.doc { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; width: 100%; transition: border-color .2s, transform .2s; animation: fadeUp .3s ease both; }
.doc:hover { border-color: var(--grey1); transform: translateY(-1px); color: var(--ink); }
.doc .badge { width: 38px; height: 38px; border-radius: 10px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-transform: uppercase; background: var(--bg-mid); color: var(--grey5); }
.doc .t { flex: 1; min-width: 0; }
.doc .t b { display: block; font-size: 13.5px; font-weight: 600; }
.doc .t span { display: block; font-size: 12px; color: var(--grey3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .arrow { color: var(--grey2); }
.c-faq { background: var(--ok-soft) !important; color: var(--ok) !important; }
.c-brand { background: var(--blue-soft) !important; color: var(--blue) !important; }
.c-guide { background: var(--warn-soft) !important; color: var(--warn) !important; }

/* ── ASK MARKETING ── */
.ask { border-radius: 16px; background: var(--bg-low); padding: 18px; }
.ask > p { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }
.q { position: relative; background: var(--white); border-radius: 10px; border: 1px solid transparent; transition: border-color .2s; }
.q + .q { margin-top: 6px; }
.q.open { border-color: var(--coral); }
.q-btn { width: 100%; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: none; border: none; text-align: left; font-size: 13px; cursor: pointer; }
.q-btn span:first-child { flex: 1; }
.q.open .q-btn { font-weight: 600; }
.q-src { font-size: 10px; color: var(--grey3); background: var(--bg-mid); padding: 3px 8px; border-radius: 4px; white-space: nowrap; font-weight: 400; }
.chev { color: var(--grey3); transition: transform .2s; flex-shrink: 0; }
.q.open .chev { transform: rotate(180deg); }
.q-a { display: none; padding: 0 14px 12px; }
.q.open .q-a { display: block; }
.answer { font-size: 13px; line-height: 1.65; color: var(--grey5); }
.answer p + p { margin-top: 8px; }
.answer img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.answer a { text-decoration: underline; }
.q-foot { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--grey3); }
.q-foot .acts { display: flex; gap: 12px; }

.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }
.browse { display: flex; flex-direction: column; gap: 2px; max-height: 640px; overflow-y: auto; }
.browse .mono { padding: 12px 10px 6px; font-size: 10px; letter-spacing: .14em; }
.browse-sec { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: none; font-size: 13px; color: var(--grey5); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.browse-sec:hover { background: var(--bg-low); }
.browse-sec.on { background: var(--coral-soft); color: var(--coral-ink); font-weight: 600; }
.browse-sec span:last-child { color: var(--grey2); font-size: 11.5px; }
.faq-list .q { border: 1px solid var(--line); }
.faq-list .q.open { border-color: var(--coral); box-shadow: 0 4px 16px rgba(255,107,124,.08); }
.faq-list .q-btn { font-size: 14px; padding: 14px 18px; }
.faq-list .q-a { padding: 0 18px 16px; }
.faq-list .answer { font-size: 13.5px; }
.results-head { font-size: 12.5px; color: var(--grey3); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.results-head b { color: var(--black); }
.feedback { background: var(--bg-low); border-radius: 14px; padding: 18px; margin-top: 12px; }
.feedback-row { display: flex; gap: 8px; margin-top: 10px; }
.feedback-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--grey1); font-size: 13px; outline: none; background: #fff; }
.feedback-row input:focus { border-color: var(--coral); }

/* inline search (section pages) */
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 36px; border-radius: 10px; border: 1px solid var(--grey1); font-size: 13.5px; background: #fff; outline: none; }
.search input:focus { border-color: var(--coral); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--grey3); pointer-events: none; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.count { font-size: 12px; color: var(--grey3); }

/* ── CHANNELS ── */
.ch-list { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.ch-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink); background: none; border: none; text-align: left; cursor: pointer; width: 100%; }
.ch-list > * + * { border-top: 1px solid var(--line-3); }
.ch-row:hover { background: var(--bg-low); color: var(--ink); }
.ch-row small { color: var(--grey3); font-size: 11.5px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ch-card { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; transition: transform .2s; color: var(--ink); animation: fadeUp .3s ease both; }
.ch-card:hover { transform: translateY(-2px); color: var(--ink); }
.ch-img { height: 120px; background: var(--bg-mid); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-initial { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--coral); }
.ch-body { padding: 13px 15px 15px; }
.ch-kind { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey3); }
.ch-name { font-size: 14px; font-weight: 600; margin-top: 3px; }
.ch-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.placeholder { background: var(--bg-low); border-radius: 16px; padding: 34px; text-align: center; color: var(--grey4); font-size: 13.5px; line-height: 1.6; }
.empty { text-align: center; padding: 30px 16px; color: var(--grey3); font-size: 13.5px; grid-column: 1 / -1; }
.error-box { background: #FFF0F1; border: 1px solid #FFCDD2; border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #C62828; margin: 30px 44px; line-height: 1.5; }

/* ── BUTTONS / FORMS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--grey1); background: var(--white); color: var(--grey5); transition: all .15s; }
.btn:hover { border-color: var(--grey3); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.primary:hover { background: var(--coral-ink); border-color: var(--coral-ink); }
.btn.dark { background: #101010; border-color: #101010; color: #fff; }
.btn.danger { color: var(--poor); border-color: #F3C9C9; }
.btn.small { height: 30px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey3); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font-size: 13px; background: #FAFAF9; border: 1px solid var(--grey1); border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,124,.16); }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.hint { font-size: 11px; color: var(--grey3); margin-top: 4px; line-height: 1.4; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; margin-right: 16px; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; }
.check input { accent-color: var(--coral); width: 15px; height: 15px; }
.msg { font-size: 12px; color: var(--poor); min-height: 16px; margin-top: 6px; }

/* ── MODAL / TOAST ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 26px 26px 22px; width: 100%; max-width: 460px; position: relative; animation: fadeUp .22s ease; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.modal.wide { max-width: 720px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; cursor: pointer; font-size: 17px; color: var(--grey3); padding: 4px; }
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; padding-right: 24px; }
.modal .sub-t { font-size: 12px; color: var(--grey3); margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--grey5); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 1100; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ── ADMIN ── */
.admin-tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.admin-tabs button { background: none; border: none; color: var(--grey4); font-size: 13px; font-weight: 600; padding: 9px 13px; cursor: pointer; border-radius: 99px; white-space: nowrap; }
.admin-tabs button:hover { background: rgba(0,0,0,.04); }
.admin-tabs button.on { background: #000; color: #fff; }
.tbl-wrap { border: 1px solid var(--line-2); border-radius: 14px; overflow-x: auto; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey3); padding: 11px 12px; background: var(--bg-low); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line-3); vertical-align: top; }
.tbl tr.inactive td { opacity: .45; }
.tbl tr.child td:nth-child(2) { padding-left: 30px; }
.tbl .id { font-family: var(--mono); font-size: 11px; color: var(--grey3); }
.tbl .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .actions { white-space: nowrap; text-align: right; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 7px; padding: 3px 7px; cursor: pointer; color: var(--grey3); font-size: 12px; }
.icon-btn:hover { border-color: var(--grey1); color: var(--black); }
.badge-s { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 2px 8px; }
.badge-s.on { background: var(--ok-soft); color: var(--ok); } .badge-s.off { background: var(--bg-mid); color: var(--grey3); }
.badge-s.star { background: var(--warn-soft); color: var(--warn); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--bg-low); border-radius: 14px; padding: 14px 16px; }
.kpi .v { font-size: 24px; font-weight: 700; }
.kpi .l { font-size: 11px; color: var(--grey3); margin-top: 2px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.panel { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; background: #fff; }
.panel h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.meter-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; font-size: 12px; padding: 5px 0; }
.meter-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 4px; background: var(--bg-mid); border-radius: 2px; margin-top: 3px; }
.meter i { display: block; height: 4px; border-radius: 2px; background: var(--coral); }
.meter-row .n { text-align: right; font-weight: 600; color: var(--grey4); font-variant-numeric: tabular-nums; }
.preview { background: var(--bg-low); border-radius: 10px; padding: 4px 12px 10px; margin-top: 6px; }
select.sel { height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--grey1); background: #fff; font-size: 12.5px; }
.q > .edit-btn { right: 40px; top: 9px; }
.team > .edit-btn, .sub > .edit-btn { top: 10px; right: 10px; }
.ed-wrap > .ch-row { padding-right: 84px; }
.team.span .team-head { padding-right: 64px; }
.sub .team-name { padding-right: 52px; }

/* ── 13 Oct · blocks, pages, feedback, dev notes, how to ── */
.nbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; }
.nav-btn .nbadge { margin-left: auto; }
.nav-add { color: var(--coral-ink); font-weight: 600; font-size: 12.5px; }
.head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-btns { display: flex; align-items: center; gap: 10px; }
.fb-plus { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--coral); color: #fff; font-size: 21px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(255,107,124,.4); display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.fb-plus:hover { background: var(--coral-ink); }
.hero-fb { position: absolute !important; top: 18px; right: 22px; }
.col-top { gap: 20px; }
.blk { position: relative; min-width: 0; }
.app .col[data-col] .blk + .blk { margin-top: 0; }
.blk-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 5px 6px 5px 10px; border-radius: 10px; background: #fff; border: 1px dashed var(--coral); font-size: 11.5px; color: var(--grey4); }
.blk-bar .blk-handle { cursor: grab; color: var(--grey2); letter-spacing: -2px; margin-right: 4px; }
.blk-bar .blk-name { flex: 1; min-width: 0; font-weight: 600; color: var(--grey5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-bar .blk-name i { font-style: normal; font-weight: 400; color: var(--grey3); }
.blk-bar button { height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; cursor: pointer; color: var(--grey5); }
.blk-bar button:hover { border-color: var(--coral); color: var(--coral-ink); }
.blk.dragging { opacity: .4; }
.blk.drop-before::before { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--coral); margin: -10px 0 8px; }
.col.drop-col { outline: 2px dashed var(--coral); outline-offset: 6px; border-radius: 12px; }
.add-zone { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--grey1); background: transparent; color: var(--grey4); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.add-zone:hover { border-color: var(--coral); color: var(--coral-ink); background: var(--coral-soft); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pick { position: relative; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pick:hover { border-color: var(--coral); background: var(--coral-soft); }
.pick b { font-size: 13.5px; } .pick span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pick i { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey3); }
.prose { font-size: 14px; line-height: 1.7; color: var(--grey5); max-width: 760px; }
.callout { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.callout h3 { font-size: 18px; font-weight: 600; }
.callout .answer { font-size: 14px; }
.callout-soft { background: var(--bg-low); }
.callout-coral { background: var(--coral); color: #fff; } .callout-coral .answer { color: #fff; } .callout-coral .btn { background: #fff; border-color: #fff; color: var(--coral-ink); }
.callout-dark { background: #000; color: #fff; } .callout-dark .answer { color: var(--grey1); } .callout-dark .btn { background: var(--coral); border-color: var(--coral); color: #fff; }
.note-row { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-bottom: 8px; }
.note-row.unread { border-color: rgba(255,107,124,.45); background: var(--coral-soft); }
.nr-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; } .nr-top span { font-weight: 400; color: var(--grey4); }
.nr-text { font-size: 12.5px; color: var(--grey4); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: middle; }
.unread-row td { background: var(--coral-soft); }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px 2px; }
.bubble { align-self: flex-start; max-width: 85%; background: var(--bg-low); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 13px; line-height: 1.5; }
.bubble.mine { align-self: flex-end; background: var(--coral-soft); border-radius: 14px 14px 4px 14px; }
.bubble .who { font-size: 10.5px; color: var(--grey3); margin-bottom: 3px; }
.howto { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.how-step { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.how-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.how-step h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.how-step p { font-size: 13.5px; line-height: 1.65; color: var(--grey4); }
/* texts & sections live preview */
.texts-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .texts-layout { grid-template-columns: 1fr; } }
.texts-preview { position: sticky; top: 12px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fff; }
.tp-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--grey3); }
.tp-hero { position: relative; overflow: hidden; padding: 22px 20px 18px; background: var(--bg-low); }
.tp-hero h1 { margin-top: 10px; font-size: 26px; font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.tp-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 1.1em; }
.tp-hero p { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.tp-ann { margin-top: 10px; font-size: 11.5px; background: #fff; border: 1px solid rgba(255,107,124,.3); border-radius: 8px; padding: 6px 10px; }
.tp-secs { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tp-sec { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12px; }
.tp-sec b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; }
.tp-sec span { color: var(--grey3); }
.changed { box-shadow: 0 0 0 3px rgba(255,107,124,.2); border-color: var(--coral) !important; }
.bulk-prev { max-height: 260px; overflow: auto; margin-top: 10px; }

/* ══ Library v2 — cards, side panel, categories & tags, mini sidebar, news banner ══ */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.doc-grid .empty { grid-column: 1 / -1; }
.doc-grid .ed-wrap { display: flex; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; min-height: 176px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; animation: fadeUp .3s ease both; }
.dcard:hover { border-color: var(--grey1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.dcard.on { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.dc-ic { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-ic.sm { width: 28px; height: 28px; border-radius: 8px; }
.ic-coral { background: var(--coral-soft); color: var(--coral-ink); }
.ic-blue { background: #EAF1FE; color: #2F5BD3; }
.ic-amber { background: #FFF4E0; color: #B26A00; }
.ic-green { background: #E8F6EE; color: #1A7A45; }
.ic-red { background: #FDECEC; color: #C2362F; }
.ic-purple { background: #F2EEFE; color: #6B47D6; }
.ic-grey { background: var(--bg-mid); color: var(--grey4); }
.dc-t { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-d { font-size: 12.5px; line-height: 1.45; color: var(--grey3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-f { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-3); display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey3); }
.dc-f span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-go { color: var(--coral-ink); flex-shrink: 0; }
.tag-chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.t-coral { background: var(--coral-chip); color: var(--coral-deep); }
.t-blue { background: #E3ECFD; color: #2F5BD3; }
.t-green { background: #DFF3E7; color: #1A7A45; }
.t-amber { background: #FFEFD2; color: #9A5000; }
.t-purple { background: #ECE6FD; color: #5B3BC4; }
.t-grey { background: var(--bg-mid); color: var(--grey4); }
.pill-n { font-size: 10px; opacity: .55; margin-left: 2px; }
.cat-desc { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--grey4); background: var(--bg-low); border-radius: 10px; padding: 10px 14px; margin-top: -12px; }
.cat-desc .mono { font-size: 10.5px; color: var(--coral-ink); flex-shrink: 0; }

/* document side panel */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 900; max-width: 100vw; display: flex; flex-direction: column; background: var(--white); border-left: 1px solid var(--line-2); box-shadow: -18px 0 50px rgba(0,0,0,.08); transform: translateX(105%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.dr-handle { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 2; display: flex; align-items: center; justify-content: center; }
.dr-handle i { width: 4px; height: 44px; border-radius: 4px; background: var(--grey1); transition: background .15s; }
.dr-handle:hover i, .dr-resizing .dr-handle i { background: var(--coral); }
.dr-resizing, .dr-resizing * { user-select: none; cursor: col-resize !important; }
.dr-resizing iframe { pointer-events: none; }
.dr-resizing .drawer { transition: none; }
.dr-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-3); }
.dr-title { flex: 1; min-width: 0; }
.dr-title .mono { font-size: 10px; color: var(--grey3); }
.dr-title h2 { font-size: 17px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dr-x { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-low); cursor: pointer; font-size: 13px; color: var(--grey4); }
.dr-x:hover { background: var(--bg-mid); color: var(--black); }
.dr-meta { padding: 12px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--grey4); border-bottom: 1px solid var(--line-3); }
.dr-meta p { line-height: 1.5; }
.dr-meta:empty { display: none; }
.dr-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-low); }
.dr-body iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.dr-tip { font-size: 11px; color: var(--grey3); padding: 6px 18px; border-top: 1px solid var(--line-3); background: var(--white); }
.dr-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--grey3); padding: 30px; }
.dr-empty b { color: var(--ink); font-size: 14px; }
@media (max-width: 700px) { .drawer { width: 100% !important; } .dr-handle { display: none; } .dr-acts .btn { display: none; } }

/* collapsible sidebar */
.side { transition: flex-basis .2s ease; }
.side-tg { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); color: var(--grey4); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.side-tg:hover { color: var(--black); border-color: var(--grey1); }
.nav-btn { position: relative; }
@media (min-width: 861px) {
  .app.side-mini .side { flex-basis: 68px; padding: 22px 10px; }
  .app.side-mini .brand { flex-direction: column; gap: 12px; padding: 0; }
  .app.side-mini .brand > div, .app.side-mini .nav-label, .app.side-mini .nav-btn > span:not(.nbadge), .app.side-mini .me > div { display: none; }
  .app.side-mini .side-tg { margin: 0; }
  .app.side-mini .nav-btn { justify-content: center; padding: 10px 0; }
  .app.side-mini .nav-btn .nbadge { position: absolute; top: 2px; right: 4px; }
  .app.side-mini .nav-add { font-size: 0; } .app.side-mini .nav-add::before { content: "+"; font-size: 18px; }
  .app.side-mini .edit-toggle { justify-content: center; } .app.side-mini .edit-toggle > span:first-child { font-size: 0; gap: 0; }
  .app.side-mini .edit-toggle .switch { display: none; } .app.side-mini .edit-toggle.on { background: var(--coral-soft); color: var(--coral-ink); }
  .app.side-mini .me { justify-content: center; padding: 6px; background: none; border: none; }
}
@media (max-width: 860px) { .side-tg { display: none; } }

/* news banner */
.nbanner { display: flex; align-items: center; gap: 12px; padding: 11px 44px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); animation: fadeUp .3s ease both; }
.nb-lbl { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.nb-t { flex: 1; min-width: 0; line-height: 1.45; }
.nb-more { border: none; background: none; font-weight: 600; font-size: 13px; cursor: pointer; flex-shrink: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nb-x { border: none; background: none; cursor: pointer; font-size: 12px; opacity: .6; flex-shrink: 0; color: inherit; padding: 4px; }
.nb-x:hover { opacity: 1; }
.nb-new { background: linear-gradient(90deg, var(--coral-soft), #FFF8F8); color: var(--ink); }
.nb-new .nb-lbl { background: var(--coral); color: #fff; } .nb-new .nb-more { color: var(--coral-ink); }
.nb-info { background: #101010; color: #fff; border-bottom-color: #101010; }
.nb-info .nb-lbl { background: rgba(255,255,255,.14); color: #fff; }
.nb-warning { background: var(--warn-soft); color: #5A3000; }
.nb-warning .nb-lbl { background: #FFD9A0; color: #5A3000; }
@media (max-width: 600px) { .nbanner { padding: 10px 16px; flex-wrap: wrap; } }
.tp-banner { margin: -2px 0 12px; } .tp-banner .nbanner { padding: 8px 12px; font-size: 12px; border-radius: 8px; border: none; }
.tp-banner .hint { margin-top: 4px; }

/* admin: icon picker, categories & tags */
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.ip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); cursor: pointer; }
.ip .dc-ic { width: 32px; height: 32px; border-radius: 8px; }
.ip small { font-size: 10.5px; color: var(--grey4); }
.ip:hover { border-color: var(--grey1); }
.ip.on { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-soft); }
.tbl-doc { display: flex; gap: 10px; align-items: flex-start; } .tbl-doc > span:last-child { min-width: 0; }
.opt-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.opt-explain > div { background: var(--bg-low); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--grey4); }
.opt-explain .mono { font-size: 10px; color: var(--coral-ink); display: block; margin-bottom: 4px; }
.opt-explain b { color: var(--ink); }
.opt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.opt-cols h4 { font-size: 13px; margin-bottom: 8px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.opt-row { display: flex; gap: 6px; align-items: flex-start; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); }
.opt-mv { display: flex; flex-direction: column; }
.opt-mv .icon-btn { padding: 0 5px; line-height: 1.4; }
.opt-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.opt-line { display: flex; gap: 8px; align-items: center; }
.opt-fields input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13px; }
.opt-name { font-weight: 600; flex: 1; }
.opt-desc { font-size: 12px !important; color: var(--grey4); }
.opt-n { font-size: 10.5px; color: var(--grey3); white-space: nowrap; }
.opt-x { align-self: flex-start; }
.swatches { display: flex; gap: 5px; }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sw.on { border-color: var(--ink); }
@media (max-width: 700px) { .opt-explain, .opt-cols { grid-template-columns: 1fr; } }
.opt-fields .opt-desc { width: 100%; max-width: none; }
