/* Aetopia app brand kit: the shared look for Aetopia's internal web apps
   (Gantry, Litmus, ...). One source in aetopia-app/brand/; each app carries a
   copy made by brand/sync.sh. Change it here, then re-sync every app.

   What it gives an app:
   - Montserrat (the aetopia.com typeface) for brand text: the product name and
     page headings. Dense UI (tables, forms) stays on the system font, which
     reads better small.
   - Colour tokens (--ae-*).
   - The app bar (.ae-bar), drawn by aetopia-nav.js: logo, product name,
     section links, the signed-in person's menu.
   Fonts: Montserrat, SIL Open Font License (fonts/OFL.txt), self-hosted, no
   third-party font requests. */

@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ae-bar: #0b3f3c;          /* app bar background */
  --ae-teal: #0f6e68;         /* primary buttons, links, selection */
  --ae-teal-hover: #0c5c57;
  --ae-teal-soft: #e9f4f3;    /* selected rows, soft chips */
  --ae-accent: #5fc4b8;       /* active section marker on the bar */
  --ae-ink: #1f2933;          /* text */
  --ae-muted: #6b7785;        /* secondary text */
  --ae-line: #e4e9ee;         /* borders */
  --ae-page: #f4f6f8;         /* page background */
  --ae-warn: #b45309;
  --ae-bad: #c2410c;
  --ae-font-brand: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ae-font-ui: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* short names apps already use */
  --teal: var(--ae-teal); --ink: var(--ae-ink); --muted: var(--ae-muted); --grid: var(--ae-line);
  --soft: var(--ae-page); --warn: var(--ae-warn); --bad: var(--ae-bad);
}

/* page headings in the brand face */
.ae-h1, main h1, header h1, .planhead h1 { font-family: var(--ae-font-brand); font-weight: 600; letter-spacing: -.01em; }

/* ---- app bar ---- */
.ae-bar { flex: 0 0 auto; display: flex; align-items: stretch; gap: 6px; height: 48px; padding: 0 18px;
          background: var(--ae-bar); color: #fff; position: sticky; top: 0; z-index: 30;
          font: 13px/1.45 var(--ae-font-ui); }
.ae-bar a { color: inherit; text-decoration: none; }
.ae-brand { display: flex; align-items: center; gap: 12px; margin-right: 22px; color: #fff; }
.ae-brand svg { display: block; height: 17px; width: auto; }
.ae-divider { width: 1px; height: 20px; background: rgba(255,255,255,.28); }
.ae-product { font-family: var(--ae-font-brand); font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; }
.ae-links { display: flex; align-items: stretch; }
.ae-links a { display: flex; align-items: center; padding: 0 14px; color: rgba(255,255,255,.72);
              border-top: 3px solid transparent; border-bottom: 3px solid transparent; font-weight: 500; }
.ae-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.ae-links a.active { color: #fff; font-weight: 600; border-bottom-color: var(--ae-accent); }
.ae-icon { width: 15px; height: 15px; margin-right: 7px; flex: none; opacity: .75; fill: none; stroke: currentColor;
           stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ae-links a.active .ae-icon, .ae-links a:hover .ae-icon { opacity: 1; }
.ae-grow { flex: 1; }
.ae-user { position: relative; display: flex; align-items: center; font-size: 12px; white-space: nowrap; }
.ae-me { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border: 0; border-radius: 18px;
         background: none; color: rgba(255,255,255,.85); font: inherit; cursor: pointer; }
.ae-me:hover, .ae-me[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
.ae-me:focus-visible { outline: 2px solid var(--ae-accent); outline-offset: 1px; }
.ae-me svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ae-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ae-accent);
             color: var(--ae-bar); font: 600 11.5px/1 var(--ae-font-ui); letter-spacing: .02em; }
.ae-menu { position: absolute; right: 0; top: 44px; z-index: 45; min-width: 250px; max-width: min(330px, calc(100vw - 24px));
           box-sizing: border-box; padding: 6px; border: 1px solid var(--ae-line); border-radius: 12px; background: #fff;
           color: var(--ae-ink); font: 13px/1.4 var(--ae-font-ui); white-space: normal; box-shadow: 0 14px 40px rgba(0,0,0,.18);
           animation: ae-menu-in .12s ease-out; }
.ae-menu[hidden] { display: none; }
@keyframes ae-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ae-menu-who { display: flex; flex-direction: column; padding: 7px 10px 6px; }
.ae-menu-who b { font: 600 13.5px/1.3 var(--ae-font-brand); }
.ae-menu-who span { color: var(--ae-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ae-menu-sep { height: 1px; margin: 5px 4px; background: var(--ae-line); }
.ae-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 7px 10px; border: 0;
                border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; }
a.ae-menu-item, button.ae-menu-item { cursor: pointer; }
a.ae-menu-item:hover, button.ae-menu-item:hover, .ae-menu-item:focus { background: var(--ae-teal-soft); color: var(--ae-teal); outline: none; }
.ae-menu-item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
                    stroke-linejoin: round; opacity: .7; }
.ae-menu-item:hover svg, .ae-menu-item:focus svg { opacity: 1; }
.ae-menu-gap { width: 16px; flex: none; }
.ae-menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ae-menu-text small { color: var(--ae-muted); font-size: 11.5px; overflow-wrap: anywhere; }
.ae-menu-badge { flex: none; padding: 1px 7px; border-radius: 9px; background: #eef1f4; color: var(--ae-muted); font-size: 11.5px; font-weight: 600; }
.ae-menu-bad, a.ae-menu-bad:hover, a.ae-menu-bad:focus { color: var(--ae-bad); }
@media (max-width: 680px) {
  .ae-bar { padding: 0 12px; }
  .ae-brand { margin-right: 6px; gap: 9px; }
  .ae-brand svg { height: 14px; }
  .ae-links a { padding: 0 9px; position: relative; }
  .ae-links a .ae-icon { width: 18px; height: 18px; margin-right: 0; }
  .ae-links a .ae-icon + .ae-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ae-user .ae-email { display: none; }
  .ae-me { gap: 4px; padding: 0 4px; }
}

/* ---- "updated, reload" (just under the app bar) ---- */
.ae-update { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 1000; display: flex; gap: 10px;
             align-items: center; width: max-content; max-width: calc(100% - 32px); box-sizing: border-box;
             padding: 8px 8px 8px 16px; border-radius: 8px; background: var(--ae-bar); color: #fff;
             font: 13px/1.4 var(--ae-font-ui); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ae-update[hidden] { display: none; }
.ae-update button { flex: none; border: 0; border-radius: 5px; padding: 6px 12px; font: inherit; cursor: pointer; }
.ae-update .ae-reload { background: #fff; color: var(--ae-bar); font-weight: 600; }
.ae-update .ae-later { background: transparent; color: #fff; padding: 6px 8px; font-size: 16px; line-height: 1; }

/* ---- Feedback (opened from the person's menu, under the app bar) ---- */
.ae-fb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
             stroke-linejoin: round; flex: none; }
.ae-fb { position: fixed; right: 18px; top: 56px; z-index: 41; width: 400px; max-width: calc(100vw - 32px);
         max-height: calc(100vh - 72px); overflow: auto; box-sizing: border-box; padding: 16px 18px 14px; border: 1px solid var(--ae-line);
         border-radius: 14px; background: #fff; color: var(--ae-ink); font: 13px/1.45 var(--ae-font-ui);
         box-shadow: 0 18px 50px rgba(0,0,0,.2); animation: ae-fb-in .16s ease-out; }
@keyframes ae-fb-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ae-fb[hidden] { display: none; }
.ae-fb-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ae-fb-head div { flex: 1; }
.ae-fb-head h2 { margin: 0; font: 600 16px/1.25 var(--ae-font-brand); color: var(--ae-teal); }
.ae-fb-head p { margin: 2px 0 0; font-size: 12px; color: var(--ae-muted); }
.ae-fb-x { border: 0; background: none; padding: 4px; margin: -4px -6px 0 0; border-radius: 6px; color: var(--ae-muted); cursor: pointer; }
.ae-fb-x:hover { background: #eef1f4; color: var(--ae-ink); }
.ae-fb-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.ae-fb-kinds button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border: 1px solid var(--ae-line);
             border-radius: 9px; background: #fff; color: var(--ae-muted); font: 500 12px/1.2 var(--ae-font-ui); cursor: pointer;
             transition: border-color .12s, color .12s, background .12s; }
.ae-fb-kinds button svg { width: 19px; height: 19px; }
.ae-fb-kinds button:hover { border-color: var(--ae-teal); color: var(--ae-teal); }
.ae-fb-kinds button[aria-checked="true"] { border-color: var(--ae-teal); background: var(--ae-teal-soft); color: var(--ae-teal); font-weight: 600; }
.ae-fb-kinds button[data-kind="problem"][aria-checked="true"] { border-color: var(--ae-bad); background: #fdeee8; color: var(--ae-bad); }
.ae-fb textarea { display: block; width: 100%; box-sizing: border-box; min-height: 110px; resize: vertical; padding: 9px 11px;
             border: 1px solid var(--ae-line); border-radius: 9px; font: inherit; font-size: 13.5px; color: inherit; }
.ae-fb textarea:focus { outline: 2px solid var(--ae-teal-soft); border-color: var(--ae-teal); }
.ae-fb-shot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.ae-fb-capture { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #b9c7d1; border-radius: 8px; background: #fafcfd;
             padding: 6px 11px; color: var(--ae-ink); font: 500 12.5px/1.2 var(--ae-font-ui); cursor: pointer; }
.ae-fb-capture:hover { border-color: var(--ae-teal); color: var(--ae-teal); background: var(--ae-teal-soft); }
.ae-fb-capture[hidden], .ae-fb-paste[hidden] { display: none; }
.ae-fb-paste { font-size: 11.5px; color: var(--ae-muted); }
.ae-fb-thumb { position: relative; width: 100%; }
.ae-fb-thumb[hidden] { display: none; }
.ae-fb-thumb img { display: block; width: 100%; max-height: 170px; object-fit: cover; object-position: top; border: 1px solid var(--ae-line);
             border-radius: 8px; }
.ae-fb-unshot { position: absolute; right: 6px; top: 6px; border: 0; border-radius: 6px; padding: 3px 8px; background: rgba(11,63,60,.85);
             color: #fff; font: 500 11.5px var(--ae-font-ui); cursor: pointer; }
.ae-fb-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ae-muted); }
.ae-fb-msg { margin: 6px 0 0; min-height: 1em; font-size: 12px; color: var(--ae-muted); }
.ae-fb-msg.err { color: var(--ae-bad); }
.ae-fb-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ae-fb-actions button { border: 1px solid var(--ae-line); border-radius: 7px; padding: 7px 14px; background: #fff; color: var(--ae-ink);
             font: inherit; cursor: pointer; }
.ae-fb-actions .ae-fb-send { background: var(--ae-teal); border-color: var(--ae-teal); color: #fff; font-weight: 600; }
.ae-fb-actions .ae-fb-send:hover { background: var(--ae-teal-hover); }
.ae-fb-actions .ae-fb-send:disabled { opacity: .6; cursor: default; }
.ae-fb form[hidden], .ae-fb-done[hidden] { display: none; }
.ae-fb-done { text-align: center; padding: 18px 8px 10px; }
.ae-fb-done svg { width: 40px; height: 40px; color: var(--ae-teal); animation: ae-fb-pop .3s ease-out; }
@keyframes ae-fb-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ae-fb-done b { display: block; margin-top: 6px; font: 600 16px/1.3 var(--ae-font-brand); }
.ae-fb-done p { margin: 4px 0 0; color: var(--ae-muted); font-size: 12.5px; }
.ae-fb-head + .ae-fb-tabs { margin-top: -4px; }
.ae-fb-tabs { display: flex; align-items: center; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--ae-line); }
.ae-fb-tabs [role="tab"] { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 5px 10px 7px; background: none;
             color: var(--ae-muted); font: 500 12.5px/1.2 var(--ae-font-ui); cursor: pointer; }
.ae-fb-tabs [role="tab"]:hover { color: var(--ae-teal); }
.ae-fb-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--ae-teal); color: var(--ae-teal); font-weight: 600; }
.ae-fb-count { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 5px; border-radius: 8px; box-sizing: border-box;
             background: var(--ae-teal-soft); color: var(--ae-teal); font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; }
.ae-fb-count:empty { display: none; }
.ae-fb-all { margin-left: auto; border: 0; padding: 5px 0 7px; background: none; color: var(--ae-teal); font: 500 12px/1.2 var(--ae-font-ui);
             cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ae-fb-all[hidden], .ae-fb-mine[hidden] { display: none; }
.ae-fb-mine { max-height: min(58vh, 440px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.ae-fb-list { list-style: none; margin: 0; padding: 0; }
.ae-fb-item { padding: 10px 0; border-bottom: 1px solid var(--ae-line); }
.ae-fb-item:last-child { border-bottom: 0; }
.ae-fb-item.ae-fb-focus { margin: 0 -6px; padding: 10px 6px; border-radius: 8px; background: var(--ae-teal-soft); }
.ae-fb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: 11.5px; color: var(--ae-muted); }
.ae-fb .ae-fb-line svg { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.ae-fb-line a { max-width: 100%; overflow: hidden; color: var(--ae-teal); text-overflow: ellipsis; white-space: nowrap; }
.ae-fb-text { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ae-fb-reply { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--ae-teal); border-radius: 0 6px 6px 0; background: #f6faf9; font-size: 12.5px; }
.ae-fb-reply b { color: var(--ae-teal); font-weight: 600; }
.ae-fb-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ae-fb-empty { margin: 16px 0 8px; color: var(--ae-muted); font-size: 12.5px; text-align: center; }
.ae-fb-empty:empty { display: none; }
.ae-fb-status { display: inline-block; padding: 0 8px; border-radius: 9px; background: #eef1f4; color: var(--ae-ink);
             font: 600 11px/18px var(--ae-font-ui); white-space: nowrap; }
.ae-fb-s-new { background: #e7effa; color: #1d4f91; }
.ae-fb-s-doing { background: #fdf1dc; color: var(--ae-warn); }
.ae-fb-s-done { background: var(--ae-teal-soft); color: var(--ae-teal); }
.ae-fb-s-wontdo { background: #eef1f4; color: var(--ae-muted); }

/* All feedback: the feedback admins' page, over the app */
html.ae-fbm-on { overflow: hidden; }
.ae-fbm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px;
          box-sizing: border-box; background: rgba(11,30,29,.45); }
.ae-fbm[hidden] { display: none; }
.ae-fbm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ae-fbm-panel { display: flex; flex-direction: column; width: 100%; max-width: 960px; max-height: 100%; border-radius: 14px; background: #fff;
          color: var(--ae-ink); font: 13px/1.45 var(--ae-font-ui); box-shadow: 0 24px 70px rgba(0,0,0,.28); animation: ae-fb-in .16s ease-out; }
.ae-fbm-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--ae-line); }
.ae-fbm-head div { flex: 1; }
.ae-fbm-head h2 { margin: 0; font: 600 18px/1.25 var(--ae-font-brand); color: var(--ae-teal); outline: none; }
.ae-fbm-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ae-muted); }
.ae-fbm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 20px; border-bottom: 1px solid var(--ae-line); }
.ae-fbm-filter { display: inline-flex; border: 1px solid var(--ae-line); border-radius: 8px; overflow: hidden; }
.ae-fbm-filter button { border: 0; border-right: 1px solid var(--ae-line); padding: 6px 12px; background: #fff; color: var(--ae-ink);
          font: 500 12.5px/1.2 var(--ae-font-ui); cursor: pointer; }
.ae-fbm-filter button:last-child { border-right: 0; }
.ae-fbm-filter button[aria-pressed="true"] { background: var(--ae-teal-soft); color: var(--ae-teal); font-weight: 600; }
.ae-fbm-filter button span { margin-left: 5px; color: var(--ae-muted); font-weight: 500; }
.ae-fbm-tools select, .ae-fbm-tools input { padding: 6px 9px; border: 1px solid var(--ae-line); border-radius: 8px; background: #fff;
          color: var(--ae-ink); font: 13px/1.3 var(--ae-font-ui); }
.ae-fbm-tools input { flex: 1; min-width: 180px; }
.ae-fbm-msg { margin: 0; padding: 8px 20px 0; font-size: 12.5px; color: var(--ae-muted); }
.ae-fbm-msg:empty { display: none; }
.ae-fbm-msg.err, .ae-fbm-said.err { color: var(--ae-bad); }
.ae-fbm-list { flex: 1; min-height: 0; margin: 0; padding: 6px 12px 16px; overflow-y: auto; list-style: none; }
.ae-fbm-item { border-bottom: 1px solid var(--ae-line); }
.ae-fbm-item:last-child { border-bottom: 0; }
.ae-fbm-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px;
          background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ae-fbm-sum:hover { background: #f6f8f9; }
.ae-fbm-item.open .ae-fbm-sum { background: var(--ae-teal-soft); }
.ae-fbm-who span { margin-left: 8px; color: var(--ae-muted); font-size: 12px; }
.ae-fbm-tags { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--ae-muted); font-size: 12px; }
.ae-fbm-tags svg { margin-right: 4px; vertical-align: -3px; }
.ae-fbm-title { grid-column: 1 / -1; color: var(--ae-muted); font-size: 12px; }
.ae-fbm-first { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-fbm-body { padding: 6px 8px 18px; }
.ae-fbm-comment { margin: 4px 0 12px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ae-fbm-facts { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 3px 12px; margin: 0 0 12px; font-size: 12.5px; }
.ae-fbm-facts dt { color: var(--ae-muted); }
.ae-fbm-facts dd { margin: 0; overflow-wrap: anywhere; }
.ae-fbm-facts a { color: var(--ae-teal); }
.ae-fbm-facts code { margin-left: 6px; color: var(--ae-muted); font-size: 11.5px; }
.ae-fbm-errors { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: #fdf1ec; color: var(--ae-bad); font-size: 11.5px;
          white-space: pre-wrap; overflow-wrap: anywhere; }
.ae-fbm-pic img { display: block; max-width: 100%; max-height: 420px; margin: 0 0 4px; border: 1px solid var(--ae-line); border-radius: 8px; cursor: zoom-in; }
.ae-fbm-form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ae-line); }
.ae-fbm-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ae-fbm-statuses button { padding: 4px 12px; border: 1px solid var(--ae-line); border-radius: 15px; background: #fff; color: var(--ae-ink);
          font: 500 12.5px/1.3 var(--ae-font-ui); cursor: pointer; }
.ae-fbm-statuses button:hover { border-color: var(--ae-teal); color: var(--ae-teal); }
.ae-fbm-statuses button[aria-checked="true"] { border-color: var(--ae-teal); background: var(--ae-teal); color: #fff; font-weight: 600; }
.ae-fbm-form textarea { display: block; width: 100%; min-height: 72px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--ae-line);
          border-radius: 8px; font: inherit; color: inherit; resize: vertical; }
.ae-fbm-form textarea:focus { outline: 2px solid var(--ae-teal-soft); border-color: var(--ae-teal); }
.ae-fbm-act { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ae-fbm-hint { flex: 1; color: var(--ae-muted); font-size: 12px; }
.ae-fbm-act button { padding: 7px 16px; border: 1px solid var(--ae-teal); border-radius: 7px; background: var(--ae-teal); color: #fff;
          font: 600 13px/1.2 var(--ae-font-ui); cursor: pointer; }
.ae-fbm-act button:hover { background: var(--ae-teal-hover); }
.ae-fbm-act button:disabled { opacity: .6; cursor: default; }
.ae-fbm-said { margin: 6px 0 0; color: var(--ae-teal); font-size: 12.5px; }
.ae-fbm-said:empty, .ae-fbm-hist:empty { display: none; }
.ae-fbm-hist { margin: 4px 0 0; color: var(--ae-muted); font-size: 11.5px; }
.ae-fbm-none { padding: 32px 0; color: var(--ae-muted); text-align: center; }

/* ---- What's new (in the same dialog as All feedback) ---- */
.ae-wn .ae-fbm-panel { max-width: 720px; }
.ae-wn-list { flex: 1; min-height: 0; margin: 0; padding: 4px 20px 20px; overflow-y: auto; list-style: none; }
.ae-wn-day h3 { margin: 16px 0 6px; font: 600 13px/1.3 var(--ae-font-brand); color: var(--ae-ink); }
.ae-wn-day ul { margin: 0; padding: 0; list-style: none; }
.ae-wn-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 7px 10px; border-radius: 8px; }
.ae-wn-item b { font-weight: 600; }
.ae-wn-item p { margin: 2px 0 0; color: #3d4a57; white-space: pre-line; overflow-wrap: anywhere; }
.ae-wn-item + .ae-wn-item { margin-top: 2px; }
.ae-wn-unseen { background: #fff7e6; }
.ae-wn-kind { justify-self: start; align-self: start; padding: 0 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600; line-height: 19px; }
.ae-wn-new { background: var(--ae-teal-soft); color: var(--ae-teal); }
.ae-wn-improved { background: #e7effa; color: #1d4f91; }
.ae-wn-fixed { background: #f1eafd; color: #6d28d9; }
.ae-me.ae-unread .ae-avatar { position: relative; }
.ae-me.ae-unread .ae-avatar::after { content: ""; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%;
             background: #f59e0b; box-shadow: 0 0 0 2px var(--ae-bar); }
@media (max-width: 680px) {
  .ae-fb { right: 12px; left: 12px; width: auto; }
  .ae-wn-list { padding: 4px 14px 16px; }
  .ae-wn-item { grid-template-columns: 1fr; gap: 3px; }
  .ae-fb-kinds { grid-template-columns: repeat(2, 1fr); }
  .ae-fbm { padding: 0; }
  .ae-fbm-panel { height: 100%; border-radius: 0; }
  .ae-fbm-head, .ae-fbm-tools { padding-left: 14px; padding-right: 14px; }
  .ae-fbm-tools input { flex-basis: 100%; min-width: 0; }
  .ae-fbm-sum { grid-template-columns: 1fr; }
  .ae-fbm-tags { justify-content: flex-start; }
  .ae-fbm-facts { grid-template-columns: 1fr; }
  .ae-fbm-facts dt { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .ae-fb, .ae-fbm-panel, .ae-fb-done svg, .ae-menu { animation: none; } }
@media print { .ae-menu, .ae-fb, .ae-fbm, .ae-update { display: none !important; } }
