:root {
  --ink: #1d2638;
  --muted: #687386;
  --line: #dfe5ec;
  --soft: #f5f7fa;
  --blue: #428dd3;
  --blue-dark: #2f76b7;
  --navy: #202a3b;
  --white: #fff;
  --shadow: 0 18px 45px rgba(22, 32, 49, .13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef1f5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
  user-select: none;
}
.app-navigation { min-width:0; display:flex; align-items:center; gap:10px; margin-right:auto; }
.wordmark { display:flex; align-items:center; gap:11px; min-width:0; flex:0 0 auto; padding:0; background:transparent; text-align:left; }
.wordmark:hover .mark { background:#2c3a50; transform:translateY(-1px); }
.wordmark .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: white;
  display: grid; place-items: center; font-family: Georgia, serif; font-size: 23px; font-weight: 700;
  box-shadow: 0 5px 14px rgba(31,41,57,.22); transition:background .15s, transform .15s;
}
.wordmark-copy { min-width:0; }
.wordmark strong { font-size: 19px; display: block; letter-spacing: -.3px; }
.wordmark-copy > span { font-size:11px; color:var(--muted); display:block; margin-top:1px; }
.context-breadcrumb { min-width:0; display:flex; align-items:center; gap:8px; }
.context-breadcrumb:empty { display:none; }
.breadcrumb-separator { color:#a0a9b6; font-size:16px; font-weight:500; }
.breadcrumb-brand {
  min-width:0; max-width:220px; height:36px; display:flex; align-items:center; gap:8px; padding:0 9px;
  border:1px solid transparent; background:transparent; color:#526074; font-size:11px;
}
.breadcrumb-brand:hover { border-color:#dce3ea; background:#f5f7fa; color:#2f5f88; }
.breadcrumb-brand-icon { width:22px; height:22px; flex:0 0 auto; border-radius:6px; }
.breadcrumb-brand > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.breadcrumb-document { min-width:0; max-width:260px; overflow:hidden; color:#7a8595; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.top-actions { display: flex; align-items: center; justify-content:flex-end; gap: 9px; min-width:0; }
.top-actions > .hidden { display:none; }
.top-actions svg, .icon-button svg, .move-button svg, .duplicate-section-button svg,
.remove-section-button svg, .choose-image svg { width:17px; height:17px; pointer-events:none; }
button { border: 0; border-radius: 9px; color: var(--ink); background: white; font-weight: 700; }
button.quiet { height: 38px; padding: 0 13px; border: 1px solid var(--line); }
button.quiet:hover { background: var(--soft); }
button.primary, button.dark { height: 40px; padding: 0 16px; color: white; }
button.primary { background: var(--blue); }
button.primary:hover { background: var(--blue-dark); }
button.dark { background: var(--navy); }
button.icon-only { width: 40px; padding: 0; font-size: 17px; }
button.small { height: 32px; font-size: 12px; }
.save-status { color:#798495; font-size:10px; font-weight:700; min-width:58px; text-align:center; opacity:0; transition:color .2s, opacity .2s; }
.save-status.saving { color:#3978b3; opacity:1; }
.save-status.saved { color:#5d7968; opacity:1; }
.save-status.error { color:#b84545; opacity:1; }
.narrow-view-switch { display:none; align-items:center; padding:3px; border-radius:8px; background:#e6eaf0; }
.narrow-view-switch button { height:29px; padding:0 11px; background:transparent; color:#667285; font-size:10px; }
.narrow-view-switch button.active { background:white; color:#263247; box-shadow:0 1px 4px rgba(27,38,55,.12); }
.workspace {
  --sections-width:245px;
  --editor-width:420px;
  height: calc(100% - 76px);
  display: grid;
  grid-template-columns: var(--sections-width) 6px var(--editor-width) 6px minmax(320px, 1fr);
}
.workspace.hidden, .home-screen.hidden { display:none; }
.home-screen {
  height:calc(100% - 76px); overflow:auto; padding:38px 44px 60px;
  background:linear-gradient(145deg,#f8fafc 0%,#edf2f7 56%,#e7edf3 100%);
}
.home-shell { width:min(1180px,100%); margin:0 auto; }
.home-welcome { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-bottom:26px; }
.home-welcome h1 { margin:4px 0 7px; font-size:34px; letter-spacing:-1.1px; }
.home-welcome p { margin:0; color:var(--muted); font-size:14px; }
.home-actions, .home-icon-actions { display:flex; align-items:center; gap:7px; }
.home-icon-button {
  width:38px; height:38px; flex:0 0 auto; display:grid; place-items:center; padding:0;
  border:1px solid #d8e0e8; background:white; color:#5b697d;
  box-shadow:0 2px 7px rgba(32,46,65,.06);
}
.home-icon-button:hover { border-color:#a9c8e1; background:#f3f8fc; color:#3378b6; }
.home-icon-button.small { width:32px; height:32px; }
.home-icon-button.primary-icon { border-color:var(--blue); background:var(--blue); color:white; }
.home-icon-button.primary-icon:hover { border-color:var(--blue-dark); background:var(--blue-dark); color:white; }
.home-icon-button.danger-icon { color:#a25058; }
.home-icon-button.danger-icon:hover { border-color:#e8bfc3; background:#fff3f4; color:#b53e49; }
.home-icon-button svg { width:17px; height:17px; pointer-events:none; }
.home-icon-button.small svg { width:15px; height:15px; }
.home-grid { display:grid; grid-template-columns:minmax(420px,1.35fr) minmax(320px,.9fr); gap:22px; }
.home-card { background:white; border:1px solid #dde4eb; border-radius:16px; box-shadow:0 12px 32px rgba(35,48,66,.08); overflow:hidden; }
.home-card-header { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.home-card-header > div:first-child { min-width:0; }
.home-card-header h2 { margin:0; font-size:15px; }
.home-card-header small { display:block; color:var(--muted); margin-top:3px; font-size:10px; }
.current-project { display:grid; grid-template-columns:230px 1fr; min-height:365px; }
.clickable-project { cursor:pointer; transition:background .16s, box-shadow .16s; }
.clickable-project:hover { background:#f9fbfd; box-shadow:inset 0 0 0 2px rgba(66,141,211,.14); }
.clickable-project:focus-visible, .clickable-row:focus-visible { outline:3px solid rgba(66,141,211,.28); outline-offset:-3px; }
.dashboard-email-frame { height:365px; overflow:hidden; background:#dfe5eb; border-right:1px solid var(--line); position:relative; }
.dashboard-email-content { width:690px; transform:scale(.333); transform-origin:top left; pointer-events:none; }
.current-project-copy { padding:28px 26px; display:flex; flex-direction:column; align-items:flex-start; }
.current-project-copy .brand-chip { display:inline-flex; align-items:center; gap:7px; background:#f1f5f8; padding:6px 9px; border-radius:30px; font-size:10px; font-weight:800; }
.current-project-copy h2 { margin:19px 0 8px; font-size:24px; letter-spacing:-.5px; }
.current-project-copy p { color:var(--muted); line-height:1.5; font-size:12px; margin:0 0 22px; }
.current-project-copy .home-project-buttons { display:flex; gap:9px; margin-top:auto; flex-wrap:wrap; }
.home-side { display:flex; flex-direction:column; gap:22px; }
.home-list { padding:5px 18px 10px; }
.home-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:13px 8px; border-bottom:1px solid var(--line); }
.home-list-row.clickable-row { cursor:pointer; border-radius:9px; transition:background .14s; }
.home-list-row.clickable-row:hover { background:#f3f8fc; }
.home-list-row:last-child { border-bottom:0; }
.home-list-row strong { display:block; font-size:12px; }
.home-list-row small { display:block; color:var(--muted); margin-top:4px; font-size:10px; }
.newsletter-row-copy { display:flex; align-items:center; gap:9px; min-width:0; }
.newsletter-row-copy > span:last-child { min-width:0; }
.newsletter-row-copy strong, .newsletter-row-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand-title-line { display:flex; align-items:center; gap:12px; }
.brand-title-line h1 { margin-top:4px; }
.brand-title-swatch { width:35px; height:35px; flex:0 0 auto; border-radius:10px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-icon-tile { display:grid; place-items:center; overflow:hidden; }
.brand-icon-tile img { display:block; width:100%; height:100%; object-fit:contain; background:#fff; }
.brand-home-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; padding:16px 18px 20px; }
.brand-home-card { min-height:70px; border:1px solid var(--line); padding:12px; text-align:left; background:white; display:flex; align-items:center; gap:10px; }
.brand-home-card.active { border-color:#83b6df; box-shadow:0 0 0 2px rgba(66,141,211,.11); background:#f5faff; }
.brand-home-swatch { width:31px; height:31px; border-radius:9px; flex:0 0 auto; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-home-card strong { display:block; font-size:11px; }
.brand-home-card small { display:block; color:var(--muted); font-size:9px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:95px; }
.home-empty { padding:25px 20px; text-align:center; color:var(--muted); font-size:11px; }
.start-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.start-option { min-height:130px; padding:20px; border:1px solid var(--line); background:white; text-align:left; }
.start-option:hover { border-color:#84b7df; background:#f5faff; }
.start-option .start-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:#eaf3fb; color:#347dbb; font-size:20px; margin-bottom:14px; }
.start-option .start-icon svg { width:19px; height:19px; }
.start-option strong { display:block; font-size:14px; }
.start-option small { display:block; margin-top:6px; color:var(--muted); font-size:10px; line-height:1.4; }
.template-replace-intro .brand-chip { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border-radius:30px; background:#f1f5f8; color:#566276; font-size:10px; font-weight:800; }
.template-replace-intro h3 { margin:16px 0 7px; font-size:17px; line-height:1.3; }
.template-replace-intro p { margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.template-copy-options { display:grid; gap:9px; margin-top:18px; }
.template-copy-choice { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:11px; padding:13px; border:1px solid var(--line); border-radius:11px; cursor:pointer; transition:border-color .14s, background .14s, box-shadow .14s; }
.template-copy-choice:hover, .template-copy-choice:has(input:checked) { border-color:#83b6df; background:#f5faff; box-shadow:0 0 0 2px rgba(66,141,211,.08); }
.template-copy-choice input { margin:2px 0 0; accent-color:var(--blue); }
.template-copy-choice strong { display:block; font-size:11px; }
.template-copy-choice strong em { display:inline-block; margin-left:5px; padding:2px 5px; border-radius:5px; background:#e4f2fd; color:#397db8; font-size:7px; font-style:normal; letter-spacing:.45px; text-transform:uppercase; vertical-align:1px; }
.template-copy-choice small { display:block; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.45; }
.template-safety-note { margin-top:12px; padding:10px 12px; border-radius:9px; background:#f5f6f8; color:#667185; font-size:9px; }
.template-success { padding:8px 4px 4px; text-align:center; }
.template-success-icon { width:42px; height:42px; display:grid; place-items:center; margin:0 auto 14px; border-radius:50%; background:#e8f5ee; color:#2f8b5c; font-size:20px; font-weight:900; }
.template-success h3 { margin:0 0 7px; font-size:17px; }
.template-success p { margin:0 auto; max-width:390px; color:var(--muted); font-size:11px; line-height:1.55; }
.sections-panel, .editor-panel, .preview-panel { min-width: 0; height: 100%; overflow: hidden; }
.sections-panel { background: #f8fafc; padding: 22px 16px 18px; display: flex; flex-direction: column; }
.editor-panel { background: white; overflow-y: auto; padding: 28px 34px 60px; }
.preview-panel { background: #e8ecf1; display: flex; flex-direction: column; }
.column-resizer {
  position:relative; z-index:3; width:6px; height:100%; cursor:col-resize;
  background:#f5f7fa; border-left:1px solid #dfe5ec; border-right:1px solid #dfe5ec;
  transition:background .15s, border-color .15s;
}
.column-resizer::after {
  content:""; position:absolute; left:1px; right:1px; top:calc(50% - 22px); height:44px;
  border-radius:4px; background:#c9d1dc; opacity:0;
}
.column-resizer:hover, body.resizing-columns .column-resizer { background:#e9f2fa; border-color:#a9cae5; }
.column-resizer:hover::after, body.resizing-columns .column-resizer::after { opacity:1; }
body.resizing-columns { cursor:col-resize; user-select:none; }
.panel-heading { display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:0 5px 16px; }
.newsletter-identity { min-width:0; flex:1; }
.left-brand-row { display:flex; align-items:center; gap:5px; min-width:0; margin-bottom:8px; }
.left-brand-row > span { color:#929baa; font-size:8px; font-weight:900; letter-spacing:1px; text-transform:uppercase; }
.left-brand-row strong { min-width:0; max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#536074; font-size:10px; }
.brand-edit-button { width:23px; height:23px; flex:0 0 auto; display:grid; place-items:center; padding:0; background:transparent; color:#8290a2; }
.brand-edit-button:hover { background:#e9eef3; color:#466b8d; }
.brand-edit-button svg { width:12px; height:12px; pointer-events:none; }
.panel-heading-actions { display:flex; align-items:center; gap:6px; }
.panel-heading-actions > .hidden { display:none; }
.history-button { font-size:17px; color:#5f6d7f; }
.eyebrow { display: block; color: #929baa; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 5px; }
.email-name { width: 175px; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 800; outline: 0; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); font-size: 19px; }
.delete-email-button { display:grid; place-items:center; padding:0; color:#96555c; }
.delete-email-button:hover { border-color:#efc8cc; background:#fff4f5; color:#b53e49; }
.delete-email-button svg { width:15px; height:15px; pointer-events:none; }
.list-icon-button {
  width:32px; height:32px; display:grid; place-items:center; padding:0;
  border:1px solid var(--line); background:white;
}
.list-icon-button:hover { border-color:#efc8cc; background:#fff4f5; }
.list-icon-button svg { width:14px; height:14px; pointer-events:none; }
.section-list { flex: 1; overflow-y: auto; padding: 1px 2px 12px; }
.section-item {
  display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: center;
  min-height: 60px; padding: 9px 8px; margin-bottom: 7px; border: 1px solid transparent;
  border-radius: 11px; background: transparent; cursor: pointer;
}
.section-item:hover { background: white; border-color: var(--line); }
.section-item.active { background: white; border-color: #b8d4ee; box-shadow: 0 5px 15px rgba(32,62,90,.07); }
.drag-handle { cursor: grab; color: #a5afbd; font-size: 16px; line-height: 1; letter-spacing: -2px; user-select: none; }
.section-item.dragging { opacity: .42; }
.section-item.drop-before { box-shadow: 0 -3px 0 var(--blue); }
.section-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.section-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.section-item.hidden-section .section-copy { opacity: .48; }
.add-section { width: 100%; min-height: 40px; border: 1px dashed #b7c2cf; background: transparent; color: #526174; }
.add-section:hover { border-color: var(--blue); color: var(--blue-dark); background: #eff7fd; }
.template-scope-note {
  display:flex; flex-direction:column; gap:3px; margin:0 0 16px; padding:11px 13px;
  border:1px solid #d5dce5; border-radius:10px; background:#f7f9fb; color:#596678;
}
.template-scope-note strong { font-size:10px; text-transform:uppercase; letter-spacing:.7px; }
.template-scope-note span { font-size:9px; line-height:1.45; }
.editor-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 24px; }
.editor-header h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.65px; max-width: 550px; }
.editor-header.compact { justify-content:space-between; align-items:center; min-height:44px; padding-bottom:10px; margin-bottom:18px; }
.editor-header.compact .move-button { width:34px; height:34px; font-size:17px; }
.editor-header-left { display:flex; align-items:center; gap:7px; }
.compact-show-label { color:#5f6a7b; font-size:10px; font-weight:900; letter-spacing:.65px; margin-left:-1px; }
.editor-header-actions { display: flex; gap: 7px; align-items: center; }
.move-button { width: 38px; height: 38px; border: 1px solid var(--line); font-size: 19px; }
.duplicate-section-button {
  width:34px; height:34px; display:grid; place-items:center; padding:0;
  border:1px solid transparent; background:transparent; color:#627184; font-size:17px;
}
.duplicate-section-button:hover { border-color:#c8dceb; background:#f2f8fd; color:#3378b6; }
.remove-section-button {
  width:34px; height:34px; display:grid; place-items:center; padding:0;
  border:1px solid transparent; background:transparent; color:#9a5960;
}
.remove-section-button:hover { border-color:#efc8cc; background:#fff4f5; color:#b53e49; }
.switch-row { display: flex; align-items: center; gap: 8px; margin-left:0; font-size: 11px; font-weight: 800; color: #5f6a7b; }
.switch { width: 35px; height: 21px; border-radius: 20px; background: #c8d0da; padding: 3px; transition: .2s; }
.switch::after { content:""; width: 15px; height: 15px; display:block; border-radius:50%; background:#fff; box-shadow:0 1px 3px #7b8794; transition:.2s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(14px); }
.editor-stack { display:flex; flex-direction:column; gap:13px; }
.editor-group {
  border:1px solid var(--line); border-radius:13px; background:#fff; overflow:hidden;
}
.editor-group > summary {
  min-height:58px; padding:12px 15px; display:flex; align-items:center; justify-content:space-between;
  gap:14px; cursor:pointer; list-style:none; user-select:none;
}
.editor-group > summary::-webkit-details-marker { display:none; }
.editor-group > summary:hover { background:#f8fafc; }
.editor-group > summary strong { display:block; color:#354258; font-size:11px; text-transform:uppercase; letter-spacing:.75px; }
.editor-group > summary small { display:block; color:#8993a2; font-size:9px; line-height:1.35; margin-top:3px; }
.group-chevron { color:#8290a2; font-size:15px; transition:transform .16s; }
.editor-group[open] .group-chevron { transform:rotate(180deg); }
.editor-group-body { padding:16px; border-top:1px solid #e8edf2; background:#fcfdfe; }
.arrangement-control { display:grid; grid-template-columns:1fr 1fr; gap:3px; padding:3px; border-radius:9px; background:#e9edf2; }
.arrangement-control button { height:34px; padding:0 10px; background:transparent; color:#667285; font-size:11px; }
.arrangement-control button.active { background:white; color:#263247; box-shadow:0 1px 4px rgba(27,38,55,.13); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: #566174; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .75px; margin-bottom: 7px; }
.field-label-row { min-height:22px; display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.field-label-row label { margin-bottom:7px; }
.rewrite-button {
  width:24px; height:20px; flex:0 0 auto; display:grid; place-items:center; padding:0; margin-top:-4px;
  border:1px solid transparent; background:transparent; color:#4a8bc7; font-size:14px; line-height:1;
}
.rewrite-button:hover { border-color:#c6dced; background:#eff7fd; color:#2f76b7; }
.rewrite-button.loading { color:transparent; position:relative; pointer-events:none; }
.rewrite-button.loading::after {
  content:""; width:11px; height:11px; border:2px solid #c5d9e9; border-top-color:#3378b6;
  border-radius:50%; position:absolute; inset:0; margin:auto; animation:spin .75s linear infinite;
}
input[type="text"], input[type="url"], input[type="password"], input[type="number"], textarea, select.control {
  width: 100%; border: 1px solid #d8dfe7; border-radius: 9px; background: white; color: #263247;
  outline: none; padding: 11px 12px; font-size: 13px; font-weight: 650;
}
input:focus, textarea:focus, select.control:focus { border-color: #7eb4e3; box-shadow: 0 0 0 3px rgba(66,141,211,.11); }
textarea { min-height: 98px; resize: vertical; line-height: 1.55; }
.summary-counter { color: #98a1ae; font-size: 9px; text-align: right; margin-top: 4px; }
.content-link-box {
  grid-column: 1 / -1; border: 1px solid #dbe3eb; border-radius: 12px; background: #f6f8fa;
  padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.content-link-box .field { margin: 0; }
.gather { height: 40px; padding: 0 16px; border: 1px solid #aac9e4; color: #3378b6; background: white; white-space: nowrap; }
.gather.loading { color: transparent; position: relative; pointer-events: none; }
.gather.loading::after { content:""; width: 15px; height: 15px; border:2px solid #b9d2e7; border-top-color:#3378b6; border-radius:50%; position:absolute; inset:0; margin:auto; animation:spin .75s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.smart-note { grid-column: 1 / -1; display:flex; gap:8px; color:#3978b3; background:#f0f7fd; border:1px solid #c9def0; padding:10px 12px; border-radius:9px; font-size:10px; line-height:1.45; }
.used-warning { grid-column:1/-1; color:#8a641f; background:#fff8e9; border:1px solid #efd293; padding:10px 12px; border-radius:9px; font-size:10px; }
.check-row { grid-column:1/-1; display:flex; gap:10px; align-items:center; color:#4f5c6e; font-size:12px; font-weight:700; padding:3px 0; }
.check-row input { width:17px; height:17px; accent-color:var(--blue); }
.compact-editor {
  grid-column:1/-1; border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden;
  box-shadow:0 2px 7px rgba(32,46,65,.025);
}
.compact-editor > summary {
  min-height:64px; display:grid; grid-template-columns:42px minmax(0,1fr) auto 18px;
  align-items:center; gap:11px; padding:10px 13px; cursor:pointer; list-style:none; user-select:none;
}
.compact-editor > summary::-webkit-details-marker { display:none; }
.compact-editor > summary:hover { background:#f8fafc; }
.compact-editor[open] > summary { background:#fbfcfd; }
.compact-editor-thumbnail {
  width:42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:8px;
  background:#edf2f6; color:#8190a2; box-shadow:inset 0 0 0 1px rgba(40,55,75,.07);
}
.compact-editor-thumbnail svg { width:18px; height:18px; }
.compact-editor-thumbnail img { width:100%; height:100%; display:block; object-fit:cover; }
.compact-editor-summary-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.compact-editor-summary-copy strong { color:#344156; font-size:11px; }
.compact-editor-summary-copy strong em { margin-left:6px; color:#8b96a5; font-size:8px; font-style:normal; font-weight:700; }
.compact-editor-summary-copy small { overflow:hidden; color:#7a8697; font-size:9px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.compact-item-status {
  padding:4px 7px; border-radius:20px; font-size:8px; font-weight:900; letter-spacing:.2px; white-space:nowrap;
}
.compact-item-status.ready { background:#e9f5ed; color:#39724b; }
.compact-item-status.needs { background:#fff5df; color:#8a641f; }
.compact-item-status.empty { background:#eef1f5; color:#748093; }
.compact-editor-chevron { color:#8290a2; font-size:14px; transition:transform .16s; }
.compact-editor[open] .compact-editor-chevron { transform:rotate(180deg); }
.compact-editor-body { padding:16px; border-top:1px solid #e6ebf0; background:#fbfcfd; }
.compact-editor-actions { grid-column:1/-1; display:flex; justify-content:flex-end; margin:-5px -4px -2px; }
.remove-card-button { min-height:28px; display:flex; align-items:center; gap:5px; padding:5px 7px; background:transparent; color:#9a5960; font-size:9px; }
.remove-card-button:hover { background:#fff0f1; color:#b53e49; }
.remove-card-button svg { width:13px; height:13px; pointer-events:none; }
.add-card-button {
  width:100%; min-height:43px; border:1px dashed #a9bed1; background:#f7fafc; color:#466b8d;
  font-size:11px;
}
.add-card-button:hover { border-color:#6da5d2; background:#eff7fd; color:#2f76b7; }
.hidden-card-note {
  padding:10px 12px; border:1px solid #d7e1ea; border-radius:9px; background:#f6f9fb;
  color:#68778a; font-size:10px; line-height:1.45;
}
.mini-group-label {
  grid-column:1/-1; color:#8993a2; font-size:9px; font-weight:900; text-transform:uppercase;
  letter-spacing:.9px; padding-top:4px; border-top:1px solid #e5eaf0;
}
.compact-editor-body .mini-group-label:first-child { border-top:0; padding-top:0; }
.image-helper { display:flex; gap:8px; }
.image-helper input { flex:1; }
.choose-image { width:40px; display:grid; place-items:center; padding:0; border:1px solid var(--line); background:#f6f8fa; color:#5f7083; }
.choose-image:hover { border-color:#a9c8e1; background:#eef6fc; color:#3378b6; }
.gallery-editor-intro {
  grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:14px;
  color:#718094; font-size:10px; line-height:1.45;
}
.compact-balance-button { flex:0 0 auto; min-height:31px; padding:0 10px; font-size:9px; }
.compact-balance-button.loading { color:transparent; position:relative; pointer-events:none; }
.compact-balance-button.loading::after {
  content:""; width:12px; height:12px; border:2px solid #c7d6e3; border-top-color:#3378b6;
  border-radius:50%; position:absolute; inset:0; margin:auto; animation:spin .75s linear infinite;
}
.custom-code-note {
  grid-column:1/-1; padding:10px 12px; border:1px solid #d7e1e9; border-radius:9px;
  background:#f6f9fb; color:#677689; font-size:10px; line-height:1.5;
}
.code-editor {
  min-height:300px; font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:11px; font-weight:500; line-height:1.55; tab-size:2; white-space:pre;
}
.custom-code-warning {
  grid-column:1/-1; padding:10px 12px; border:1px solid #edcf91; border-radius:9px;
  background:#fff8e9; color:#825f1f; font-size:10px; line-height:1.45;
}
.danger-text { color:#b84545 !important; }
.preview-toolbar { height:54px; display:flex; align-items:center; justify-content:flex-end; gap:18px; padding:0 20px; border-bottom:1px solid #d4dbe3; background:#f6f8fa; }
.segmented { display:flex; padding:3px; border-radius:8px; background:#e6eaf0; }
.segmented button { height:27px; padding:0 10px; background:transparent; font-size:10px; color:#697487; }
.segmented button.active { background:white; color:#263247; box-shadow:0 1px 4px rgba(27,38,55,.12); }
.preview-stage { flex:1; overflow:auto; padding:25px; }
.email-preview { width:100%; max-width:690px; min-height:100%; margin:0 auto; transition:width .2s; box-shadow:var(--shadow); background:white; }
.email-preview.mobile { width:390px; }
.email-preview.mobile .stack-col { display:block !important; width:100% !important; padding-left:0 !important; padding-right:0 !important; }
.email-preview.mobile .mobile-pad { padding-left:24px !important; padding-right:24px !important; }
.email-preview.mobile .card-gap { height:16px !important; }
.email-preview.mobile .card-spacer { height:16px !important; }
.email-preview.mobile .side-media { padding-bottom:22px !important; }
.email-preview.mobile .side-media-after { padding-top:22px !important; padding-bottom:0 !important; }
.email-preview.mobile img.side-image { width:230px !important; max-width:100% !important; height:auto !important; }
.email-preview.mobile img.card-image { height:auto !important; }
.email-preview [data-preview-section] { scroll-margin: 70px; transition: outline-color .25s; }
.email-preview [data-preview-section].preview-selected { outline:3px solid rgba(66,141,211,.5); outline-offset:-3px; }
.modal-backdrop { position:fixed; inset:0; z-index:20; background:rgba(18,26,38,.45); display:grid; place-items:center; padding:28px; backdrop-filter:blur(4px); }
.modal { width:min(760px, 95vw); max-height:90vh; display:flex; flex-direction:column; background:white; border-radius:17px; box-shadow:0 28px 80px rgba(0,0,0,.28); overflow:hidden; }
.modal.wide { width:min(1380px, 97vw); }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:20px 23px; border-bottom:1px solid var(--line); }
.modal-header h2 { margin:0; font-size:20px; }
.modal-close { width:34px; height:34px; font-size:18px; background:var(--soft); }
.modal-body { overflow:auto; padding:22px 23px 28px; }
.modal-footer { padding:14px 23px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:9px; }
.confirm-copy { margin:2px 0 4px; color:#596678; font-size:13px; line-height:1.55; }
.danger-button { background:#b84545 !important; }
.danger-button:hover { background:#9f3434 !important; }
.modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; }
.brand-layout { display:grid; grid-template-columns:170px minmax(430px, 1fr) 400px; gap:18px; min-height:610px; }
.brand-designer-form { min-width:0; display:flex; flex-direction:column; gap:11px; }
.brand-scope-note {
  display:flex; flex-direction:column; gap:4px; padding:13px 15px;
  border:1px solid #c9def0; border-radius:11px; background:#f1f7fc; color:#3c678d;
}
.brand-scope-note strong { font-size:11px; }
.brand-scope-note span { font-size:10px; line-height:1.45; }
.brand-list { border-right:1px solid var(--line); padding-right:15px; }
.brand-row { width:100%; padding:11px; display:flex; align-items:center; gap:9px; text-align:left; border:1px solid transparent; margin-bottom:6px; }
.brand-row.active { border-color:#c6d8e9; background:#f2f8fd; }
.brand-dot { width:15px; height:15px; border-radius:50%; }
.brand-list-icon { width:25px; height:25px; flex:0 0 auto; border-radius:7px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-add { width:100%; border:1px dashed #b8c3cf; height:38px; color:#526174; background:transparent; margin-top:7px; }
.brand-settings-group { border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.brand-settings-group > summary {
  min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px;
  cursor:pointer; list-style:none; user-select:none; background:#fafbfc;
}
.brand-settings-group > summary::-webkit-details-marker { display:none; }
.brand-settings-group > summary span { min-width:0; display:flex; flex-direction:column; gap:3px; }
.brand-settings-group > summary strong { color:#2c384b; font-size:12px; }
.brand-settings-group > summary small { color:#7b8796; font-size:9px; font-weight:600; line-height:1.35; }
.brand-settings-group > summary b { color:#7c8795; font-size:15px; transition:transform .18s; }
.brand-settings-group[open] > summary { border-bottom:1px solid var(--line); }
.brand-settings-group[open] > summary b { transform:rotate(180deg); }
.brand-settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px 16px; padding:15px; }
.typography-table-heading, .typography-role-row {
  grid-column:1/-1; display:grid; grid-template-columns:94px minmax(132px,1fr) 62px 102px 84px;
  gap:8px; align-items:center;
}
.typography-table-heading { padding:0 6px 2px; color:#8a95a4; font-size:8px; font-weight:900; letter-spacing:.55px; text-transform:uppercase; }
.typography-role-row { padding:9px 6px; border-top:1px solid #e8edf2; }
.typography-role-row:first-of-type { border-top:0; }
.typography-role-row > strong { color:#3c485b; font-size:10px; }
.typography-role-row .control, .typography-role-row input[type="number"] { min-width:0; height:36px; padding:7px 8px; font-size:10px; }
.typography-inherited { color:#7d8999; font-size:9px; line-height:1.25; }
.perspective-help { margin-top:6px; text-align:left; line-height:1.45; }
.brand-subheading {
  grid-column:1/-1; padding-top:5px; color:#7e8998; font-size:9px; font-weight:900;
  letter-spacing:.9px; text-transform:uppercase; border-top:1px solid #e6ebf0;
}
.brand-subheading:first-child { padding-top:0; border-top:0; }
.palette-help { text-align:left; margin-top:9px; line-height:1.45; }
.brand-preview-pane { min-width:0; position:sticky; top:0; align-self:start; border:1px solid var(--line); border-radius:13px; overflow:hidden; background:#eef1f4; }
.brand-preview-header { height:48px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; background:#fff; border-bottom:1px solid var(--line); }
.brand-preview-header strong { font-size:11px; color:#2c384b; }
.brand-preview-header span { font-size:9px; color:#7b8796; font-weight:800; text-transform:uppercase; letter-spacing:.6px; }
.brand-preview-stage { height:560px; overflow:auto; padding:12px; background:#e8ecf0; }
.brand-preview-content { width:100%; min-height:100%; background:#fff; box-shadow:0 5px 18px rgba(30,42,58,.10); }
.brand-preview-content > table { transform-origin:top left; }
.palette { display:flex; flex-wrap:wrap; gap:9px; }
.swatch { width:50px; height:50px; border-radius:10px; border:2px solid white; box-shadow:0 0 0 1px #ccd3dc; position:relative; }
.swatch strong { position:absolute; right:-5px; top:-6px; width:18px; height:18px; border-radius:50%; background:var(--navy); color:white; font-size:9px; display:grid; place-items:center; }
.brand-scan { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; gap:9px; padding:14px; background:#f5f8fb; border:1px solid var(--line); border-radius:12px; }
.brand-icon-control {
  grid-column:1/-1; display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:12px; align-items:center;
  padding:12px; border:1px solid #dbe3eb; border-radius:11px; background:#f9fbfc;
}
.brand-icon-preview { width:56px; height:56px; border-radius:14px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.09); }
.brand-icon-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.brand-icon-copy label { color:#566174; font-size:10px; font-weight:900; letter-spacing:.75px; }
.brand-icon-copy span { color:#7b8796; font-size:9px; line-height:1.4; }
.brand-icon-copy .brand-icon-quality-warning { color:#95691d; }
.brand-icon-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.brand-icon-actions button:disabled { opacity:.42; cursor:default; }
.project-row { display:grid; grid-template-columns:1fr auto auto auto auto; gap:12px; align-items:center; padding:14px 4px; border-bottom:1px solid var(--line); }
.project-row strong { display:block; }
.project-row small { display:block; color:var(--muted); margin-top:4px; }
.version-list { display:flex; flex-direction:column; }
.version-row { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center; padding:14px 3px; border-bottom:1px solid var(--line); }
.version-row:last-child { border-bottom:0; }
.version-row strong { display:block; font-size:12px; }
.version-row small { display:block; color:var(--muted); margin-top:4px; font-size:10px; }
.empty-state { text-align:center; padding:50px 20px; color:var(--muted); }
.layout-menu { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.layout-choice { border:1px solid var(--line); padding:14px; text-align:left; background:white; }
.layout-choice:hover { border-color:#8ab9df; background:#f4f9fd; }
.layout-choice strong { display:block; font-size:13px; }
.layout-choice small { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.subject-panel { margin:0 0 18px; padding:15px; border:1px solid #cfdae5; border-radius:13px; background:#f8fafc; }
.subject-panel-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:13px; }
.subject-panel-header > div { display:flex; flex-direction:column; gap:3px; }
.subject-panel-header strong { font-size:13px; color:#2b374a; }
.subject-panel-header span { color:#8490a0; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.55px; }
.subject-generate { flex:0 0 auto; }
.subject-stale { margin:-2px 0 12px; padding:9px 11px; border:1px solid #ecd18e; border-radius:8px; background:#fff8e8; color:#7d5d1f; font-size:10px; line-height:1.4; }
.subject-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:14px; }
.subject-option { min-width:0; padding:11px; border:1px solid #d8e1e9; background:#fff; text-align:left; }
.subject-option:hover { border-color:#94badb; background:#f5fafe; }
.subject-option.selected { border-color:#5597d0; box-shadow:0 0 0 2px rgba(66,141,211,.13); background:#f2f8fd; }
.subject-option-meta { display:flex; justify-content:space-between; gap:8px; margin-bottom:8px; color:#7c899a; }
.subject-option-meta b { flex:0 0 auto; color:#3978b3; font-size:9px; text-transform:uppercase; letter-spacing:.55px; }
.subject-option-meta small { font-size:8px; text-align:right; line-height:1.25; }
.subject-option > strong { display:block; color:#273348; font-size:11px; line-height:1.35; }
.subject-option > p { margin:6px 0 0; color:#667386; font-size:9px; line-height:1.4; }
.subject-empty { margin-bottom:14px; padding:14px; border:1px dashed #bfccd8; border-radius:9px; color:#758294; background:#fff; font-size:10px; text-align:center; }
.messaging-editor { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.messaging-field { min-width:0; }
.messaging-label { min-height:20px; display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.messaging-label label { color:#566174; font-size:9px; font-weight:900; letter-spacing:.7px; }
.character-counter { color:#929dab; font-size:8px; }
.messaging-field input, .messaging-field textarea { width:100%; }
.messaging-field textarea { min-height:64px; }
.preheader-check { grid-column:1/-1; display:flex; align-items:center; gap:8px; color:#596678; font-size:10px; font-weight:700; }
.preheader-check input { width:16px; height:16px; accent-color:var(--blue); }
.messaging-copy-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:7px; }
.messaging-copy-actions button:disabled { opacity:.45; cursor:default; }
.writing-check-row {
  width:100%; min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin:0 0 18px; padding:10px 14px; border:1px solid #d8e1e9; background:#fff; text-align:left;
}
.writing-check-row:hover { border-color:#9bbbd6; background:#f6fafc; }
.writing-check-row > span { display:flex; flex-direction:column; gap:3px; }
.writing-check-row strong { color:#303d50; font-size:11px; }
.writing-check-row small { color:#8792a1; font-size:9px; }
.writing-check-row > b { color:#3978b3; font-size:10px; white-space:nowrap; }
.writing-check-row > b i { padding-left:5px; font-size:15px; font-style:normal; }
.writing-check-row.clear > b { color:#3d7d50; }
.writing-check-row.loading { color:transparent; position:relative; pointer-events:none; }
.writing-check-row.loading > b { visibility:hidden; }
.writing-check-row.loading::after {
  content:""; width:16px; height:16px; border:2px solid #c5d9e9; border-top-color:#3378b6;
  border-radius:50%; position:absolute; right:18px; top:0; bottom:0; margin:auto; animation:spin .75s linear infinite;
}
.writing-review { display:flex; flex-direction:column; gap:12px; }
.writing-review-progress { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.writing-review-progress span { color:#8692a1; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; }
.writing-review-progress b { padding:5px 8px; border-radius:20px; background:#edf5fb; color:#3978b3; font-size:9px; }
.writing-review > small { color:#6f7d90; font-size:10px; }
.writing-context { padding:17px; border:1px solid #dce3ea; border-radius:11px; background:#f8fafc; color:#334055; font-size:14px; line-height:1.65; }
.writing-context mark { padding:1px 3px; border-radius:4px; background:#ffe7a8; color:#473819; }
.writing-review > p { margin:0; color:#5e6a7b; font-size:11px; line-height:1.5; }
.writing-suggestions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.writing-suggestions > span { width:100%; color:#8994a2; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.55px; }
.writing-suggestions button { min-height:35px; padding:0 12px; border:1px solid #a9c9e4; background:#fff; color:#3378b6; }
.writing-suggestions button:hover { background:#eff7fd; }
.writing-no-replacement { padding:11px 12px; border-radius:8px; background:#f3f5f7; color:#748093; font-size:10px; line-height:1.45; }
.writing-checking { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; color:#647286; }
.writing-checking span { width:22px; height:22px; border:3px solid #c5d9e9; border-top-color:#3378b6; border-radius:50%; animation:spin .75s linear infinite; }
.writing-checking strong { font-size:11px; }
.preflight-summary { margin:0 0 18px; padding:14px 16px; border-radius:11px; border:1px solid var(--line); font-size:11px; line-height:1.45; }
.preflight-summary > strong { display:block; font-size:12px; }
.preflight-summary p { margin:5px 0 0; }
.preflight-summary ul { margin:9px 0 0; padding-left:18px; }
.preflight-summary li { margin:5px 0; }
.preflight-summary li.error { color:#923a42; }
.preflight-summary li.warning { color:#80601f; }
.preflight-summary.ready { background:#eff9f2; border-color:#b9dfc3; color:#346941; }
.preflight-summary.has-errors { background:#fff3f4; border-color:#edc4c8; color:#7e343c; }
.preflight-summary.has-warnings { background:#fff9ec; border-color:#ead39b; color:#75581e; }
.toast-root { position:fixed; z-index:40; right:22px; bottom:22px; display:flex; flex-direction:column; gap:9px; }
.toast { width:310px; padding:13px 15px; color:white; background:#253146; border-radius:10px; box-shadow:0 12px 30px rgba(0,0,0,.2); font-size:12px; line-height:1.4; animation:toastIn .2s ease-out; }
.toast.error { background:#a84545; }
.settings-status-card, .settings-file-actions {
  padding:14px; border:1px solid var(--line); border-radius:11px; background:#f8fafc;
}
.settings-status-card strong { display:block; margin:4px 0 5px; font-size:15px; }
.settings-button-row { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.user-management, .user-form { display:grid; gap:16px; }
.managed-user-list { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.managed-user-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); }
.managed-user-row:last-child { border-bottom:0; }
.managed-user-row strong, .managed-user-row small { display:block; }
.managed-user-row small { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.4; }
.account-role { padding:5px 9px; border-radius:999px; background:#e9f2fb; color:#2f76b7; font-size:12px; font-weight:800; }
.user-brand-access { display:grid; gap:8px; margin-top:8px; }
.user-brand-choice { display:grid; grid-template-columns:auto 34px minmax(0,1fr); gap:10px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.user-brand-choice:has(input:checked) { border-color:#83b6df; background:#f5faff; }
.user-brand-choice input { accent-color:#2f76b7; }
.user-brand-choice strong, .user-brand-choice small { display:block; }
.user-brand-choice small { margin-top:2px; color:var(--muted); font-size:12px; line-height:1.35; }
.user-brand-icon { width:34px; height:34px; }
.password-reset-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:end; }
.password-reset-card > label, .password-reset-card > .summary-counter { grid-column:1/-1; }
.settings-signout { margin-right:auto; color:#9c4048; }
.import-confirmation > p { margin:18px 0 12px; color:var(--muted); font-size:12px; line-height:1.5; }
.import-confirmation > p strong { color:var(--ink); }
.import-counts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.import-counts > div { padding:16px; border:1px solid var(--line); border-radius:11px; background:#f7f9fb; text-align:center; }
.import-counts strong { display:block; font-size:25px; color:#2f76b7; }
.import-counts span { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:700; }
.smart-note.warning-note { border-color:#e4cb8b; background:#fff8e7; color:#75581e; }
.login-page { min-height:100%; overflow:auto; background:linear-gradient(145deg,#e9eff5 0%,#f8fafc 48%,#e4ebf2 100%); }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:28px; }
.login-card {
  width:min(440px,100%); padding:34px; border:1px solid #dbe3eb; border-radius:19px; background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(29,38,56,.17);
}
.login-brand { display:flex; align-items:center; gap:12px; margin-bottom:34px; }
.login-brand .mark {
  width:43px; height:43px; display:grid; place-items:center; border-radius:12px; background:var(--navy); color:white;
  font-family:Georgia,serif; font-size:25px; font-weight:700; box-shadow:0 6px 16px rgba(31,41,57,.22);
}
.login-brand strong { display:block; font-size:20px; }
.login-brand div > span { display:block; margin-top:1px; color:var(--muted); font-size:13px; }
.login-copy .eyebrow { color:#4d80ad; font-size:12px; font-weight:800; letter-spacing:.8px; }
.login-copy h1 { margin:8px 0 7px; font-size:30px; letter-spacing:-.7px; }
.login-copy p { margin:0 0 25px; color:var(--muted); font-size:15px; line-height:1.5; }
.login-form { display:grid; gap:9px; }
.login-form label { margin-top:7px; color:#465469; font-size:14px; font-weight:750; }
.login-form input {
  width:100%; height:46px; padding:0 13px; border:1px solid #cfd9e3; border-radius:9px; background:white; color:var(--ink); font-size:16px;
  outline:none; transition:border-color .15s,box-shadow .15s;
}
.login-form input:focus { border-color:#6ca4d5; box-shadow:0 0 0 3px rgba(66,141,211,.16); }
.login-form button { width:100%; height:46px; margin-top:12px; font-size:15px; }
.login-form button:disabled { cursor:wait; opacity:.7; }
.login-error { display:none; padding:11px 12px; border-radius:8px; background:#fff1f2; color:#923a42; font-size:14px; line-height:1.4; }
.login-error.visible { display:block; }
.login-security { margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line); color:#778397; font-size:13px; line-height:1.5; }
.app-tooltip {
  position:fixed; z-index:70; left:0; top:0; max-width:220px; padding:7px 9px;
  border-radius:7px; background:#202a3b; color:white; box-shadow:0 7px 18px rgba(15,24,37,.22);
  font-size:10px; font-weight:700; line-height:1.25; white-space:nowrap;
  opacity:0; visibility:hidden; transform:translateY(-2px); pointer-events:none;
  transition:opacity .12s, transform .12s, visibility .12s;
}
.app-tooltip.visible { opacity:1; visibility:visible; transform:translateY(0); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } }
@media (max-width: 1280px) {
  .wordmark-copy > span { display:none; }
  .topbar { padding-left:18px; padding-right:18px; }
  .brand-layout { grid-template-columns:150px minmax(400px, 1fr) 340px; }
  .breadcrumb-brand { max-width:170px; }
  .breadcrumb-document { max-width:180px; }
}
@media (max-width: 1180px) {
  .narrow-view-switch { display:flex; }
  .workspace { grid-template-columns:210px 6px minmax(0,1fr); }
  .workspace .column-resizer[data-resizer="editor"] { display:none; }
  .workspace.pane-editor .preview-panel { display:none; }
  .workspace.pane-preview .editor-panel { display:none; }
}
@media (max-width: 1100px) {
  .save-status { display:none; }
  .top-actions { gap:6px; }
  .brand-layout { grid-template-columns:145px minmax(0, 1fr); }
  .brand-preview-pane { grid-column:2; position:relative; }
  .typography-table-heading, .typography-role-row { grid-template-columns:84px minmax(120px,1fr) 58px 96px 78px; gap:6px; }
}
