/* editor.css
   The editor page (editor/index.html). Same Signal look as the site: navy bar, paper page,
   white sheets, square corners, orange action buttons.
*/
@font-face{font-family:"Newsreader";src:url("../assets/mmm/fonts/newsreader.woff2") format("woff2");font-weight:400;font-stretch:75% 100%;font-display:block}
@font-face{font-family:"Instrument Sans";src:url("../assets/mmm/fonts/instrument-sans.woff2") format("woff2");font-weight:100 900;font-display:swap}

:root{
  --ink:#0f1a17;
  --text:#44524c;
  --muted:#66756e;
  --line:#d6ddd8;
  --card:#ffffff;
  --orange:#f2b33d;
  --orange-dark:#8a5e0e;
  --purple:#1d6e55;
  --purple-soft:#dce5df;
  --bad:#8a5e0e;
  --bad-soft:#f5f7f3;
  --good:#1d6e55;
}
*{box-sizing:border-box;}
body{
  margin:0;
  min-height:100vh;
  font-family:"Instrument Sans",system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);
  background:#f1f3ee;
}
button,input,select,textarea{font:inherit;color:inherit;}
a{color:#1d6e55;}
[hidden]{display:none !important;}

/* top bar */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;background:#0f1a17;color:#f1f3ee;border-bottom:1px solid rgba(163,194,180,.26);position:sticky;top:0;z-index:5;}
.brand{display:flex;align-items:center;gap:12px;font-size:16px;}
.lamps{display:inline-block;width:30px;height:30px;background:url("../assets/mmm/img/favicon.svg") center/contain no-repeat;}
.lamps i{display:none;}
.who{display:flex;align-items:center;gap:12px;font-size:14px;color:#b3bfb8;}
/* back to the site's dashboard (the editor shares the site's sign-in, so it opens straight there) */
.back-link{margin-left:10px;padding:7px 12px;border:2px solid rgba(163,194,180,.45);color:#f1f3ee;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;}
.back-link:hover,.back-link:focus-visible{background:#f2b33d;border-color:#f2b33d;color:#0f1a17;}
.link-btn{background:none;border:0;color:#a3c2b4;text-decoration:underline;cursor:pointer;padding:0;}

main{padding:22px;}
.loading{text-align:center;color:var(--muted);margin-top:80px;}

/* cards and buttons */
.card{background:var(--card);border:1px solid #cad3cd;border-top:5px solid var(--orange);border-radius:0;box-shadow:none;padding:28px;}
.narrow{max-width:420px;margin:60px auto;}
h1{font-family:"Newsreader","Iowan Old Style",Georgia,serif;font-weight:420;letter-spacing:-.015em;line-height:1.06;font-size:26px;margin:0 0 8px;}
h2{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px;}
p{line-height:1.55;color:var(--text);}
.small,.hint{font-size:13px;color:var(--muted);}
.hint{font-weight:400;}
.btn{border:2px solid #0f1a17;background:#fff;border-radius:0;padding:10px 18px;font-weight:600;cursor:pointer;}
.btn:hover{background:#0f1a17;color:#f1f3ee;}
.btn.primary{background:var(--orange);border-color:var(--orange-dark);color:#0f1a17;box-shadow:none;}
.btn.primary:hover{background:#ffc966;color:#0f1a17;}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;}
.status{font-size:14px;color:var(--good);font-weight:600;}
.status.bad{color:var(--bad);}

/* forms */
label{display:block;font-weight:650;font-size:14px;margin:14px 0 6px;}
label input,label select{display:block;width:100%;margin-top:6px;}
input,select,textarea{border:1px solid var(--line);border-radius:0;padding:10px 12px;background:#fff;}
input:focus,select:focus,textarea:focus{outline:2px solid var(--purple);outline-offset:1px;}
textarea{width:100%;resize:vertical;line-height:1.55;}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
form label{margin-top:12px;}

/* layout */
.workspace{display:grid;grid-template-columns:240px minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;}
.email-list,.form-pane,.preview-pane{background:var(--card);border:1px solid var(--line);border-radius:0;box-shadow:none;padding:18px;}
.email-list{position:sticky;top:80px;}
.email-list ul{list-style:none;margin:0;padding:0;}
.email-list li button{width:100%;text-align:left;border:0;background:none;border-radius:0;padding:9px 10px;cursor:pointer;font-weight:600;font-size:14px;line-height:1.35;}
.email-list li button:hover{background:#f5f7f3;}
.email-list li button.active{background:var(--purple-soft);color:#14503e;}
.email-list li button small{display:block;font-weight:500;color:var(--muted);font-size:12px;margin-top:2px;}
.small-btn{margin-top:10px;font-size:13px;padding:8px 14px;}
.connection{font-size:12px;color:var(--muted);margin-top:16px;}

.when{background:#f5f7f3;border-radius:0;padding:14px 16px;margin-bottom:6px;}
.when h1{font-size:20px;}
.when p{margin:0;font-size:14px;}
.when .meta{margin-top:6px;font-size:12.5px;color:var(--muted);}
/* legal pages use a simpler form: just a title and the text */
.form-pane[data-kind="legal"] .email-only{display:none !important;}
.form-pane:not([data-kind="legal"]) .legal-only{display:none !important;}
.notice{background:#f5f7f3;color:#8a5e0e;border-radius:0;padding:10px 14px;font-size:13.5px;line-height:1.5;margin:10px 0 0;}

.announcement-box{border:1px dashed var(--purple);border-radius:0;padding:4px 14px 12px;margin:12px 0;}

/* announcements: sending, the send log, delete */
.send-panel{margin-top:24px;border-top:1px solid var(--line);padding-top:6px;}
.send-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
.send-actions .or{color:var(--muted);font-size:14px;}
.send-actions input{width:auto;}
.send-log{list-style:none;margin:0 0 14px;padding:0;}
.send-log li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f5f7f3;border-radius:0;padding:10px 12px;margin-bottom:8px;font-size:14px;line-height:1.45;}
.send-log li small{display:block;color:var(--muted);}
.send-log li.is-sent{background:#dce5df;}
.send-log li.is-scheduled{background:#dce5df;}
.send-log li.is-problem{background:var(--bad-soft);}
.send-log .empty{background:none;padding:0;color:var(--muted);}
.danger{color:var(--bad);}

.toolbar{display:flex;gap:6px;margin-bottom:6px;}
.toolbar button{border:1px solid var(--line);background:#fff;border-radius:0;padding:4px 10px;font-size:13px;cursor:pointer;}
.toolbar button:hover{background:#f5f7f3;}
.fill-ins{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.fill-ins:empty{display:none;}
.fill-ins::before{content:"Fill in:";font-size:13px;color:var(--muted);padding:4px 2px;}
.fill-ins button{border:0;background:#f5f7f3;color:#8a5e0e;border-radius:0;padding:4px 10px;font-size:12.5px;font-weight:700;cursor:pointer;}
.fill-ins button:hover{background:#ffc966;}

.colors{border:0;padding:0;margin:14px 0 0;}
.colors legend{font-weight:650;font-size:14px;margin-bottom:6px;}
#colorChoices{display:flex;gap:8px;flex-wrap:wrap;}
#colorChoices label{margin:0;display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;border:1px solid var(--line);border-radius:0;padding:6px 12px 6px 8px;cursor:pointer;}
#colorChoices input{position:absolute;opacity:0;width:1px;height:1px;}
#colorChoices span{width:16px;height:16px;border-radius:50%;display:inline-block;}
#colorChoices label:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);}
#colorChoices label:has(input:focus-visible){outline:2px solid var(--purple);}

.problems{background:var(--bad-soft);color:var(--bad);border-radius:0;padding:10px 14px 10px 30px;margin:16px 0 0;font-size:14px;line-height:1.5;}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px;}

/* preview */
.preview-pane{position:sticky;top:80px;}
.preview-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;}
.inbox-line{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.device-toggle{display:flex;background:#e9eee9;border-radius:0;padding:3px;flex-shrink:0;}
.device-toggle button{border:0;background:none;border-radius:0;padding:5px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--muted);}
.device-toggle button.active{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(54,48,110,.12);}
.preview-frame-wrap{background:#e9eee9;border-radius:0;overflow:hidden;display:flex;justify-content:center;}
#previewFrame{width:100%;height:calc(100vh - 230px);min-height:480px;border:0;background:#e9eee9;transition:width .2s ease;}
#previewFrame.phone{width:390px;max-width:100%;}

/* dialogs */
dialog{border:1px solid var(--line);border-radius:0;padding:24px;max-width:560px;width:calc(100% - 32px);box-shadow:0 24px 60px rgba(15,26,23,.25);}
dialog::backdrop{background:rgba(15,26,23,.35);}
#historyList{list-style:none;padding:0;margin:12px 0;max-height:55vh;overflow:auto;}
#historyList li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0;font-size:14px;}
#historyList li small{display:block;color:var(--muted);}

/* narrower screens: one column */
@media (max-width:1100px){
  /* the header wraps instead of running off the screen: tabs get their own row */
  .topbar{flex-wrap:wrap;}
  .tabs{order:3;flex-basis:100%;margin-left:0;flex-wrap:wrap;}
  .who{margin-left:auto;}
  .workspace{grid-template-columns:1fr;}
  .email-list,.preview-pane{position:static;}
  #previewFrame{height:640px;}
}
@media (max-width:600px){
  main{padding:12px;}
  .two{grid-template-columns:1fr;}
  .topbar{padding:12px 14px;}
}

/* tabs: Emails & pages, People, Settings */
.tabs{display:flex;gap:4px;background:#e9eee9;border-radius:0;padding:4px;margin-right:auto;margin-left:18px;}
.tabs button{border:0;background:none;border-radius:0;padding:7px 16px;font-weight:700;font-size:14px;color:var(--muted);cursor:pointer;}
.tabs button.active{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(54,48,110,.12);}
.panel{background:var(--card);border:1px solid var(--line);border-radius:0;box-shadow:none;padding:22px 24px;max-width:1200px;margin:0 auto;}
.narrow-panel{max-width:760px;}
.panel-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;}

/* People */
.people-tools{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px;}
.people-tools input{flex:1;min-width:220px;}
.people-count{align-self:center;margin-left:auto;font-size:14px;font-weight:650;color:var(--text);white-space:nowrap;}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:0;}
table.people{width:100%;border-collapse:collapse;font-size:14px;}
.people th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:#f5f7f3;padding:10px 12px;white-space:nowrap;}
.people td{padding:10px 12px;border-top:1px solid var(--line);vertical-align:middle;}
.people td small{display:block;color:var(--muted);font-size:12px;}
.people .yes{color:var(--good);font-weight:650;}
.people .no{color:var(--muted);}
.people tr.is-stopped td.address{text-decoration:line-through;color:var(--muted);}
.people tr.is-stopped td{background:#fdf6e6;}
.people td:last-child{text-align:right;white-space:nowrap;}
.people .btn{padding:6px 12px;font-size:13px;}
.stop-other{margin-top:18px;}
.stop-other .inline{display:flex;gap:10px;margin-top:6px;}
.stop-other .inline input{flex:1;max-width:340px;}

/* Settings */
.setting{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);}
.setting b{display:block;font-size:15px;}
.setting span{display:block;font-size:13.5px;color:var(--muted);line-height:1.45;margin-top:2px;}
.setting.pause{background:#fdf6e6;border:1px solid #ecd9a8;border-radius:0;padding:14px 16px;margin-top:10px;}
.switch{position:relative;display:inline-block;width:50px;height:28px;margin:0;flex-shrink:0;}
.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1;}
.switch i{position:absolute;inset:0;background:#d6ddd8;border-radius:0;transition:background .15s;}
.switch i::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .15s;}
.switch input:checked + i{background:#8aa699;}
.pause .switch input:checked + i{background:#ffc966;}
.switch input:checked + i::after{transform:translateX(22px);}
.switch input:focus-visible + i{outline:2px solid var(--purple);outline-offset:2px;}
.weeks{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;white-space:nowrap;}
.weeks input{width:72px;margin:0;}

@media (max-width:760px){
  .topbar{flex-wrap:wrap;}
  .tabs{order:3;width:100%;margin:6px 0 0;justify-content:center;flex-wrap:wrap;} /* five tabs: wrap rather than widen the page */
  .tabs button{padding:7px 12px;}
  .panel-head{flex-direction:column;}
}
/* Analysis (analysis.js): stat tiles, then chart cards in a two-column grid */
.panel.analysis{max-width:1480px;}
.analysis-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:14px 0 4px;}
.analysis-tools .check{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;}
.analysis-tools .check input{width:auto;margin:0;}
#anBody{transition:opacity .2s;}
#anBody.is-stale{opacity:.55;} /* refreshing: keep the last numbers on screen, faded */
.an-section{font-family:"Newsreader","Iowan Old Style",Georgia,serif;font-weight:420;font-size:22px;margin:30px 0 10px;color:var(--ink);}
.an-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0;}
.an-tile{background:#f5f7f3;border:1px solid var(--line);padding:14px 16px;display:flex;flex-direction:column;gap:2px;}
.an-tile > span{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);}
.an-tile > b{font-size:30px;font-weight:650;line-height:1.15;color:var(--ink);}
.an-tile > small{font-size:13px;color:var(--text);}
.an-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.an-card{background:#fff;border:1px solid var(--line);padding:16px 18px;min-width:0;}
.an-card.wide{grid-column:1 / -1;}
.an-card header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 14px;margin-bottom:10px;}
.an-card header > div:first-child{flex:1 1 260px;min-width:0;} /* the title keeps room; controls wrap below it when they don't fit */
.an-card h2{font-size:15px;letter-spacing:0;text-transform:none;color:var(--ink);margin:0 0 4px;}
.an-card header p{margin:0;font-size:13px;line-height:1.45;color:var(--muted);max-width:640px;}
.an-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0;}
.an-controls select{padding:6px 8px;font-size:13px;max-width:180px;}
.an-table-btn{border:1px solid var(--line);background:#fff;padding:6px 12px;font-size:13px;font-weight:650;cursor:pointer;}
.an-table-btn:hover,.an-table-btn[aria-pressed="true"]{background:var(--ink);color:#f1f3ee;border-color:var(--ink);}
.an-chart{min-height:40px;}
.an-svg{display:block;max-width:100%;overflow:visible;}
.an-svg text{font-family:inherit;}
.an-svg .tick{font-size:11px;fill:var(--muted);font-variant-numeric:tabular-nums;}
.an-svg .tick.strong{font-weight:700;fill:var(--text);}
.an-svg .label{font-size:13px;fill:var(--ink);}
.an-svg .value{font-size:12px;fill:var(--text);font-variant-numeric:tabular-nums;}
.an-svg .cell-text{font-size:11px;fill:var(--ink);pointer-events:none;}
.an-svg .cell-text.on-dark{fill:#fff;}
.an-svg .grid{stroke:#e6ebe7;stroke-width:1;}
.an-svg .axis{stroke:#b9c3bd;stroke-width:1;}
.an-svg .marker{stroke:var(--ink);stroke-width:1.5;}
.an-svg .range{stroke:#9aa7a0;stroke-width:2;stroke-linecap:round;}
.an-svg .fit{stroke:var(--ink);stroke-width:2;}
.an-svg .dot{stroke:#fff;stroke-width:2;fill-opacity:.85;}
.an-svg .hit{fill:transparent;}
.an-svg [data-tip]{outline:none;}
.an-svg .an-row:hover .hit,.an-svg .an-row:focus-visible .hit,.an-svg .an-col:hover .hit,.an-svg .an-col:focus-visible .hit{fill:#f1f5f2;}
.an-svg rect[data-tip]:hover,.an-svg rect[data-tip]:focus-visible{stroke:var(--ink);stroke-width:2;}
.an-svg .dot:hover,.an-svg .dot:focus-visible{stroke:var(--ink);}
.an-svg .is-clickable{cursor:pointer;}
.an-svg .is-active .hit{fill:#e8f1ec;}
.an-svg .is-active .label{font-weight:700;}
.an-svg .is-faded{opacity:.5;}
.an-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 8px;font-size:13px;color:var(--text);}
.an-legend span{display:inline-flex;align-items:center;gap:6px;}
.an-legend i{width:12px;height:12px;border-radius:3px;display:inline-block;}
.an-axis-note{margin:6px 0 0;font-size:12.5px;color:var(--muted);line-height:1.45;}
.an-empty{color:var(--muted);font-size:14px;margin:6px 0;}
.an-scroll{overflow-x:auto;}
.an-clip{overflow:hidden;}
.an-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.an-mini h4{margin:0 0 4px;font-size:13px;color:var(--text);}
.an-follow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px;}
/* the DDI factors' four groups: a 2 × 2 grid with row and column headings */
.an-quad{display:grid;grid-template-columns:minmax(80px,auto) minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch;}
.an-quad-head{font-size:12px;font-weight:700;color:var(--muted);text-align:center;align-self:end;}
.an-quad-side{font-size:12px;font-weight:700;color:var(--muted);text-align:right;align-self:center;max-width:130px;}
.an-quad-cell{border:1px solid var(--line);padding:12px 14px;display:flex;flex-direction:column;gap:2px;color:var(--ink);min-height:92px;}
.an-quad-cell > b{font-size:26px;font-weight:650;line-height:1.15;font-variant-numeric:tabular-nums;}
.an-quad-cell > small{font-size:12.5px;color:var(--text);}
.an-quad-cell > em{font-style:normal;font-size:12px;font-weight:700;margin-top:4px;}
.an-quad-cell.on-dark, .an-quad-cell.on-dark > small{color:#f1f3ee;}
.an-quad-cell.is-flag{outline:3px solid #d6900f;outline-offset:-3px;}
/* mediation: the X, M, Y diagram, its three tiles, and its sentence */
.an-pick{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--muted);}
.an-btn{border:1px solid var(--line);background:#fff;padding:6px 12px;font-size:13px;font-weight:650;cursor:pointer;}
.an-btn:hover{background:var(--ink);color:#f1f3ee;border-color:var(--ink);}
.an-med{display:flex;justify-content:center;}
.an-med .med-box{fill:#f5f7f3;stroke:#0f1a17;stroke-width:1.5;}
.an-med .med-letter{font-size:12px;font-weight:800;fill:#6f8d80;}
.an-med .med-name{font-size:13.5px;font-weight:650;fill:#0f1a17;}
.an-med .med-path{font-size:14px;font-weight:750;fill:#0f1a17;paint-order:stroke;stroke:#fff;stroke-width:5px;font-variant-numeric:tabular-nums;}
.an-med .med-sub{font-size:12px;fill:#56655e;paint-order:stroke;stroke:#fff;stroke-width:5px;}
.an-med-tiles{margin-top:12px;}
.an-med-words{margin:8px 0 0;font-size:14.5px;line-height:1.5;color:var(--ink);}
.an-table{max-height:360px;overflow:auto;border:1px solid var(--line);}
.an-table table{width:100%;border-collapse:collapse;font-size:13px;}
.an-table th{position:sticky;top:0;background:#f5f7f3;text-align:left;padding:8px 10px;font-size:12px;color:var(--muted);}
.an-table td{padding:7px 10px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;}
.an-tip{position:fixed;z-index:50;pointer-events:none;background:#0f1a17;color:#f1f3ee;padding:8px 11px;font-size:13px;line-height:1.45;max-width:300px;box-shadow:0 8px 24px rgba(15,26,23,.25);}
.an-tip b{display:block;font-weight:650;}
.an-tip span{display:block;color:#c9d4ce;}
.an-controls input[type="search"]{padding:6px 10px;font-size:13px;min-width:200px;}
.an-direction{background:#f5f7f3;border-left:4px solid #1d8a68;padding:10px 14px;font-size:13.5px;margin:0 0 14px;}
details.an-direction summary{cursor:pointer;font-weight:650;color:var(--ink);}
details.an-direction p{margin:8px 0 0;}

/* Retention and Analysis: a sidebar of pages, like the Emails list, and one page at a time */
.an-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start;margin-top:14px;}
.an-side{background:var(--card);border:1px solid var(--line);padding:14px 12px;position:sticky;top:80px;}
.an-side h2{font-size:11.5px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 10px 4px;}
.an-side h2:first-child{margin-top:2px;}
.an-side ul{list-style:none;margin:0;padding:0;}
.an-side li button{width:100%;text-align:left;border:0;background:none;padding:9px 10px;cursor:pointer;font-weight:600;font-size:14px;line-height:1.35;color:var(--ink);}
.an-side li button:hover{background:#f5f7f3;}
.an-side li button.active{background:var(--purple-soft);color:#14503e;}
.an-side li button small{display:block;font-weight:500;color:var(--muted);font-size:12px;margin-top:2px;}
.an-main{min-width:0;scroll-margin-top:80px;}
.an-page-head{margin:0 0 12px;}
.an-page-head h2{font-family:"Newsreader","Iowan Old Style",Georgia,serif;font-weight:420;font-size:26px;margin:0 0 4px;color:var(--ink);text-transform:none;letter-spacing:0;}
.an-page-head p{margin:0;font-size:14px;color:var(--text);max-width:760px;}
.an-page > .an-tiles{margin-bottom:14px;}
@media (max-width:1100px){
  .an-layout{grid-template-columns:1fr;}
  .an-side{position:static;}
  .an-side ul{display:flex;flex-wrap:wrap;gap:4px;}
  .an-side li button{width:auto;}
  .an-side li button small{display:none;}
}

/* Where people are: the world map */
.an-map svg{display:block;max-width:100%;height:auto;}
.an-map .map-sea{fill:#f7f9f6;}
.an-map .map-land{stroke:#fff;stroke-width:.6;}
.an-map .map-land.has-people{cursor:pointer;}
.an-map .map-land:hover,.an-map .map-land:focus{stroke:#0f1a17;stroke-width:1.4;outline:none;}
.an-map-key{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;font-size:12px;color:var(--muted);}
.an-map-key i{width:22px;height:12px;display:inline-block;}
.an-map-key small{margin-right:6px;}
.an-chip{display:inline-block;border:1px solid var(--line);background:#fff;padding:1px 7px;margin:2px 0;font-size:12px;color:var(--ink);cursor:default;}
.an-meaning{margin:0 0 8px;font-size:13px;color:var(--text);}
.an-taskbar{margin:0 0 12px;}
.an-taskbar select{padding:8px 10px;font-size:14px;font-weight:600;}
.an-rule{background:#f5f7f3;padding:10px 14px;font-size:13.5px;line-height:1.5;margin-bottom:12px;}
.an-parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px 18px;}
.an-part{min-width:0;}
.an-part h4{margin:0;font-size:13.5px;color:var(--ink);}
.an-part > p{margin:2px 0 4px;font-size:12px;color:var(--muted);}
.an-part .an-svg{width:100%;}
.an-part-stats{margin:2px 0 0;font-size:12px;color:var(--text);line-height:1.4;}
.an-diverge{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text);margin:0 0 6px;}
.an-diverge i{width:140px;height:10px;border-radius:5px;background:linear-gradient(90deg,rgb(38,96,178),rgb(241,243,240),rgb(196,84,44));}
.an-svg rect.is-faded-cell{opacity:.45;}
.an-count{margin:0 0 8px;}
.an-goals{list-style:none;margin:0;padding:0;max-height:620px;overflow:auto;border-top:1px solid var(--line);}
.an-goals > li{padding:12px 2px;border-bottom:1px solid var(--line);}
.an-goal-text{margin:0;font-size:15px;font-weight:650;color:var(--ink);line-height:1.4;}
.an-goal-steps{margin:6px 0 0;padding-left:18px;font-size:13.5px;color:var(--text);line-height:1.45;}
.an-goal-meta{margin:6px 0 0;font-size:12.5px;color:var(--muted);}
.an-chip{display:inline-block;background:#e8f1ec;color:#14503e;font-size:11.5px;font-weight:650;padding:2px 8px;margin:2px 4px 0 0;}
.an-goals mark{background:#ffe7a8;color:inherit;padding:0 1px;}
.an-more{margin-top:10px;padding:8px 14px;font-size:13px;}
/* Delivery (delivery.js), in Emails & pages: status colors are reserved for status and always come with an icon and a word */
.delivery-pane{grid-column:2 / -1;background:var(--card);border:1px solid var(--line);padding:18px 20px;min-width:0;}
.delivery-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;}
.delivery-head h1{font-size:24px;}
.delivery-head .small{margin:0;max-width:640px;}
.delivery-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.delivery-line b{color:var(--ink);}
.d-section{margin-top:8px;padding-top:4px;}
.d-section + .d-section{margin-top:26px;border-top:1px solid var(--line);}
.d-intro{margin:0 0 10px;font-size:13.5px;color:var(--text);max-width:820px;}
.d-tracking{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:14px;}
.d-tracking li{display:flex;align-items:center;gap:7px;}
.d-tracking li::before{content:"";width:9px;height:9px;border-radius:50%;background:#8a958f;}
.d-tracking li.is-on::before{background:#1d7a1d;}
.d-shared{color:var(--muted);}
.d-table{width:100%;border-collapse:collapse;font-size:14px;}
.d-table th{text-align:left;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:#f5f7f3;padding:9px 10px;}
.d-table td{padding:10px;border-top:1px solid var(--line);vertical-align:top;font-variant-numeric:tabular-nums;}
.d-table td small{display:block;color:var(--muted);font-size:12px;margin-top:2px;font-weight:500;}
.d-table tr[data-email]{cursor:pointer;}
.d-table tr[data-email]:hover td,.d-table tr[data-email]:focus-visible td{background:#f1f5f2;}
.d-table .d-none{color:var(--muted);}
.d-flag{display:inline-flex;align-items:center;gap:6px;font-weight:650;}
.d-flag em{font-style:normal;font-weight:800;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;font-size:10px;color:#fff;}
.d-flag.is-warn em{background:#b77f00;}
.d-flag.is-bad em{background:#d03b3b;}
.d-flag small{font-weight:600;color:var(--muted);}
@media (max-width:1100px){ .delivery-pane{grid-column:auto;} }
.an-section small{font-family:"Instrument Sans",system-ui,sans-serif;font-size:13px;color:var(--muted);font-weight:500;}
.in-alerts{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px;}
.in-alerts li{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;border:1px solid var(--line);border-left-width:5px;background:#fff;font-size:14px;line-height:1.45;}
.in-alerts li.is-warn{border-left-color:#d99a00;background:#fffaf0;}
.in-alerts li.is-bad{border-left-color:#d03b3b;background:#fdf3f2;}
.in-alerts em,.in-allclear em,.in-status{font-style:normal;font-weight:800;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:12px;color:#fff;flex-shrink:0;}
.in-alerts .is-warn em,.is-warn .in-status{background:#b77f00;}
.in-alerts .is-bad em,.is-bad .in-status{background:#d03b3b;}
.is-good .in-status,.in-allclear em{background:#1d7a1d;}
.is-unknown .in-status{background:#8a958f;}
.in-allclear{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:10px 14px;background:#f1f8f1;border:1px solid #cfe3cf;font-size:14px;font-weight:600;color:#1d4d1d;}
.in-meter .in-bar{display:block;height:6px;background:#e3e8e4;border-radius:3px;overflow:hidden;margin:6px 0 4px;}
.in-meter .in-bar s{display:block;height:100%;text-decoration:none;background:#1d7a1d;border-radius:3px;}
.in-meter.is-warn .in-bar s{background:#d99a00;}
.in-meter.is-bad .in-bar s{background:#d03b3b;}
.in-meter small{display:flex;gap:6px;align-items:flex-start;}
.in-meter .in-status{width:16px;height:16px;font-size:10px;margin-top:1px;}
.in-problem{background:#f5f7f3;border-left:4px solid #8a958f;padding:10px 14px;font-size:13.5px;margin:6px 0;color:var(--text);}
.in-meter small b{font-weight:700;color:var(--ink);}
@media (max-width:900px){
  .an-grid{grid-template-columns:1fr;}
  .an-follow{grid-template-columns:1fr;}
  .an-card header{flex-direction:column;}
  .an-controls{justify-content:flex-start;}
}

/* People: a gold star marks an editor */
.star{color:#e0a92e;font-size:15px;margin-right:6px;text-decoration:none;display:inline-block;}

/* In development tab (editor.js loadDevTasks) */
.dev-tasks{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-top:12px;}
.dev-task{border:1px solid #cad3cd;background:#fff;padding:18px;display:grid;gap:8px;align-content:start;}
.dev-task-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.dev-task h2{font-size:20px;margin:0;}
.dev-task h3{font-size:14px;margin:6px 0 0;}
.dev-task p{margin:0;}
.dev-badge{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;background:#fff4d6;color:#8a5e0e;border:1px solid #f2b33d;}
.dev-runs{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px;}
.dev-runs li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eef1ee;padding:3px 0;}
.dev-task .btn{justify-self:start;margin-top:6px;text-decoration:none;}
