/* Guanxi Meeting Minutes Form. Shell (topbar/dash-card/ms-dropdown/info-icon)
   comes from comms_analytics.css — this file only holds what's specific to
   this form. Same conventions as comms_media_elite_form.css, prefixed gmf-
   instead of me- so it reads as its own thing, not a Media Elite leftover. */

.gmf-content { max-width: 760px; }

.gmf-form-card { gap: 6px; }

/* Edit-mode loading overlay (2026-09-04) — see the HTML's own comment for
   why. .dash-card (the shell .gmf-form-card sits on) already has
   `position: relative`, so `inset: 0` here covers exactly that card, no
   ancestor change needed. Opaque background (not translucent) — the point
   is to fully hide the still-blank/default fields underneath while the
   real data is in flight, not to fade them in from behind a scrim. Trying
   this out only on this one screen for now, before deciding whether it's
   worth reusing anywhere else in the app. */
.gmf-loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 16px -> 6px (2026-09-15, client: "vamos aproximar mais o loading data
       da imagem, cimar um pouco o texto") — same value applied everywhere
       else this spinner is used, so the text always sits the same distance
       from the logo across every Guanxi screen. */
    gap: 6px;
}

/* "Drawing itself in" (2026-09-04, replaces a plain rotation — client:
   "podemos fazer algo mais criativo") — a faint, always-visible copy of the
   brand mark sits underneath (the "outline"), and a full-color copy on top
   is revealed by a conic-gradient mask that sweeps a full turn on loop, so
   the shape looks like it's completing itself over and over rather than
   just spinning in place. Registering --gmf-sweep as an <angle> is what lets
   @keyframes interpolate it smoothly (a plain custom property can't be
   animated otherwise) — needs a reasonably modern browser (Chrome/Edge 85+,
   Safari 16.4+, Firefox 128+), acceptable for an internal tool; if it's
   ever unsupported, the mask is simply ignored and the foreground copy just
   shows fully, solid and un-animated — never visually broken, just static. */
@property --gmf-sweep {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
/* 52px -> 96px (2026-09-08, client: "conseguimos aumentar essa logo?") */
.gmf-loading-spinner-wrap {
    position: relative;
    width: 96px;
    height: 96px;
}
.gmf-loading-spinner-bg,
.gmf-loading-spinner-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* dsmile.png isn't square (4320x4008, ~1.08:1) — without this the square
       wrap above stretched it non-uniformly (client noticed, 2026-09-08:
       "sem estar distorcido"). contain scales it down to fit the box
       uniformly instead, same fix in every other screen reusing this
       spinner (guanxi_meeting_minutes_log/profile/analytics .css). */
    object-fit: contain;
}
.gmf-loading-spinner-bg { opacity: 0.16; }
.gmf-loading-spinner-fg {
    -webkit-mask-image: conic-gradient(from 0deg, #000 var(--gmf-sweep), transparent var(--gmf-sweep));
            mask-image: conic-gradient(from 0deg, #000 var(--gmf-sweep), transparent var(--gmf-sweep));
    animation: gmf-sweep 1.3s linear infinite;
}
@keyframes gmf-sweep {
    to { --gmf-sweep: 360deg; }
}

.gmf-loading-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Amber "attention" notice — same color language as the app-wide .warn-icon
   (#ffbc00), used here for a full-width banner instead of an icon tooltip
   since this needs to stay visible without a hover. */
.gmf-notice {
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,188,0,0.12);
    border: 1px solid rgba(255,188,0,0.35);
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.5;
}
.gmf-notice strong { color: #ffbc00; }

.gmf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0;
}

.gmf-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 14px 0;
}
.gmf-row .gmf-field { margin: 0; }

@media (max-width: 640px) {
    .gmf-row { grid-template-columns: 1fr; }
}

.gmf-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.gmf-label-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}

.gmf-required::after {
    content: ' *';
    color: var(--accent);
}

.gmf-field .ms-wrap,
.gmf-field .ms-trigger { width: 100%; box-sizing: border-box; }

.gmf-input {
    width: 100%;
    box-sizing: border-box;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    color-scheme: light;
}

.gmf-input:focus { outline: none; border-color: var(--accent); }

/* Native <input type="date">/<input type="time"> render their inner text via
   WebKit-only pseudo-elements that don't inherit `color` from the input by
   default — `color: inherit` here just makes them follow whatever color the
   <input> itself has, so the two rules below can actually control it. */
.gmf-input[type="date"]::-webkit-datetime-edit,
.gmf-input[type="time"]::-webkit-datetime-edit,
.gmf-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.gmf-input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.gmf-input[type="date"]::-webkit-datetime-edit-text,
.gmf-input[type="time"]::-webkit-datetime-edit-text,
.gmf-input[type="date"]::-webkit-datetime-edit-month-field,
.gmf-input[type="date"]::-webkit-datetime-edit-day-field,
.gmf-input[type="date"]::-webkit-datetime-edit-year-field,
.gmf-input[type="time"]::-webkit-datetime-edit-hour-field,
.gmf-input[type="time"]::-webkit-datetime-edit-minute-field,
.gmf-input[type="time"]::-webkit-datetime-edit-ampm-field {
    color: inherit;
}

/* Empty date/time fields show placeholder-ish segments (dd/mm/yyyy, --:--) —
   those should look like a placeholder (muted), not like real dark text.
   `.gmf-has-value` is toggled by gmfSyncDateTimeColor() in the JS whenever
   the field actually has a value, same idea as a text input's ::placeholder
   vs typed-text color. */
.gmf-input[type="date"],
.gmf-input[type="time"] {
    color: var(--text-muted);
}
.gmf-input[type="date"].gmf-has-value,
.gmf-input[type="time"].gmf-has-value {
    color: var(--text);
}

.gmf-input[type="date"]::-webkit-calendar-picker-indicator,
.gmf-input[type="time"]::-webkit-calendar-picker-indicator {
    filter: opacity(0.55);
    cursor: pointer;
}
.gmf-input-disabled { color: var(--text-muted); }

.gmf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}
.gmf-textarea:focus { outline: none; border-color: var(--accent); }

.gmf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
}
.gmf-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Per-stakeholder block ──────────────────────────────────────────────────
   One of these renders per selected name in the Stakeholder(s) multi-select —
   either the 8 metric dropdowns (existing stakeholder, pre-filled from their
   latest sth_interactions snapshot) or the full registration sub-form
   (Unmapped Stakeholder) plus the same 8 metric dropdowns, blank. */

.gmf-sth-block {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 10px 0;
    background: var(--surface-2);
}

/* Sticky stakeholder name (2026-08-06) — the Unmapped Stakeholder sub-form
   (and, on the Edit Stakeholder screen, its single always-open "Editing"
   panel) is tall enough that scrolling through its fields used to scroll the
   name/title itself out of view, along with any chance of remembering whose
   record is being edited. Sticking the header to the top of the viewport
   (below whatever page chrome sits above the content — .dash-topbar's 52px
   here; Edit Stakeholder also has a .dash-filterbar above that and overrides
   `top` accordingly in guanxi_edit_stakeholder.css) keeps the name visible
   for as long as the surrounding .gmf-sth-block is still on screen. Negative
   margins bleed the header out to the block's own edges (canceling
   .gmf-sth-block's padding) so its background covers the full card width
   instead of a sticky strip narrower than the block around it. */
.gmf-sth-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -14px -16px 10px -16px;
    padding: 10px 16px;
    position: sticky;
    top: 52px;
    z-index: 10;
    background: var(--surface-2);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--border-soft);
}

.gmf-sth-block-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.gmf-sth-block-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: rgba(255,95,20,0.12);
    border-radius: 5px;
    padding: 2px 6px;
    margin-left: 8px;
}

.gmf-sth-block-loading {
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
}

.gmf-mini-error {
    font-size: 10.5px;
    color: #ef4444;
    line-height: 1.3;
}

.gmf-mini-input.gmf-input-error { border-color: #ef4444; }

/* Metric scale — a row of one-click pill buttons instead of a dropdown full of
   long sentences (client's call, 2026-07-28: "something simpler to fill in").
   Same segmented-control language as .gran-toggle/.date-pill elsewhere in the
   app; the full historical sentence survives as the button's title tooltip. */
.gmf-scale-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 3px;
}

.gmf-scale-btn {
    background: transparent;
    border: none;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s;
    white-space: nowrap;
}

.gmf-scale-btn:hover { color: var(--text); }

.gmf-scale-btn.active {
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 700;
}

/* Stacked one-per-row (not 2 columns) — client's call, 2026-07-28: the 5-option
   scale rows (collaboration/interaction/risk/endorsement) need the full form
   width to lay out without wrapping awkwardly inside a half-width column. */
.gmf-metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gmf-reg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-soft);
}
@media (max-width: 640px) {
    .gmf-reg-grid { grid-template-columns: 1fr; }
}

.gmf-mini-field { display: flex; flex-direction: column; gap: 4px; }
.gmf-mini-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.gmf-mini-label.gmf-required::after { content: ' *'; color: var(--accent); }

.gmf-mini-input {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
}

/* Explicit (not browser-default) placeholder color, added 2026-08-06 so a
   descriptive placeholder (e.g. Contact Phone's "+55 11 91234-5678" format
   example, or Country Detail's "Describe the Central Team Requests
   context...") reads as the same muted gray as every other not-yet-filled
   control in the app (a mini-select's "Select"/"Select (optional)" label),
   instead of whatever gray the browser's UA stylesheet happens to pick. */
.gmf-mini-input::placeholder { color: var(--text-muted); opacity: 1; }

/* Mini single-select — reuses the app-wide .ms-wrap/.ms-trigger/.ms-dropdown
   component (see comms_analytics.css) instead of a native <select>, so this
   form's dropdowns look identical to every other dropdown in the system.
   Only the trigger's size is overridden here to fit this tight grid, sized to
   match .gmf-mini-input exactly. */
/* Birth Date mini-field (added 2026-08-06, both here and on Edit Stakeholder's
   own reg grid) — same empty-looks-like-a-placeholder trick as .gmf-input[type=date]
   above, just scoped to .gmf-mini-input since Birth Date is a mini-field, not
   a full .gmf-input. This form toggles .gmf-has-value via gmfSyncDateTimeColor()
   (inline oninput on the field itself); Edit Stakeholder toggles the same
   class via its own local gesSyncDateColor(), since it never loads this
   file's .js, only its .css. */
.gmf-mini-input[type="date"] { color-scheme: light; color: var(--text-muted); }
.gmf-mini-input[type="date"].gmf-has-value { color: var(--text); }
.gmf-mini-input[type="date"]::-webkit-datetime-edit,
.gmf-mini-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.gmf-mini-input[type="date"]::-webkit-datetime-edit-text,
.gmf-mini-input[type="date"]::-webkit-datetime-edit-month-field,
.gmf-mini-input[type="date"]::-webkit-datetime-edit-day-field,
.gmf-mini-input[type="date"]::-webkit-datetime-edit-year-field {
    color: inherit;
}
.gmf-mini-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: opacity(0.55);
    cursor: pointer;
}

.gmf-mini-ms { width: 100%; }
.gmf-mini-ms .ms-trigger {
    width: 100%;
    min-width: 0;
    height: 32px;
    font-size: 12px;
}
.gmf-mini-ms .ms-dropdown { width: 100%; min-width: 0; box-sizing: border-box; }
.gmf-mini-select:focus, .gmf-mini-input:focus { outline: none; border-color: var(--accent); }

.gmf-country-detail { margin-top: 6px; }

/* ── Manual relationships (2026-08-07) — same mechanism as the Relationship
   Map's "+ Add relationship", reused here (Edit Stakeholder's single panel,
   and both stakeholder block types on the Meeting Minutes Form) instead of
   importing guanxi_relationship_map.css, so this stays self-contained in the
   one file both screens already share. Deliberately more compact/muted than
   that screen's bold pill button — this sits inside an already dense form,
   not a page header, so the trigger is a small discreet "+" instead. */
.gmf-relationships-section {
    border-top: 1px dashed var(--border-soft);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gmf-relationships-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gmf-add-unmapped-wrap { margin: 4px 0 6px; }
/* Stakeholder(s) field: the names are always shown, so the button may grow to several lines instead of cutting them */
#gmf-ms-sth_name .ms-trigger, #gmf-ms-didi_participant .ms-trigger { height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; align-items: flex-start; white-space: normal; text-align: left; }
#gmf-ms-sth_name .ms-trigger > span, #gmf-ms-didi_participant .ms-trigger > span { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
#gmf-ms-sth_name .ms-trigger > svg, #gmf-ms-didi_participant .ms-trigger > svg { flex: none; margin-top: 5px; }
/* One rounded box per picked name (stakeholders and DiDi participants) */
.ms-trigger > span.gmf-ms-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gmf-ms-chip { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 99px; background: var(--accent-dim); border: 1px solid rgba(255,95,20,.35); color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmf-ms-chip-new { background: transparent; border-style: dashed; border-color: var(--accent); color: var(--accent); }
.gmf-sth-block-who { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.gmf-add-unmapped {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
}
.gmf-add-unmapped:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.gmf-sth-block-remove {
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: #e5484d;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
}
.gmf-sth-block-remove:hover { border-color: #e5484d; background: rgba(229, 72, 77, .08); }
.gmf-rel-add-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
}
.gmf-rel-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Confirmed-added relationships (this editing session only - see JS
   comments for the "why not fetch full history" trade-off) — a running
   trail above the panel, not editable/removable here. */
.gmf-rel-list { display: flex; flex-direction: column; gap: 4px; }
.gmf-rel-item {
    font-size: 11.5px;
    color: var(--text-soft);
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    padding: 6px 10px;
}
.gmf-rel-item strong { color: var(--text); }

.gmf-rel-panel {
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gmf-rel-panel .ms-wrap { width: 100%; }
.gmf-rel-panel .dash-filter-input { width: 100%; box-sizing: border-box; min-width: 0; }

/* Flag next to a name in the target-search dropdown (2026-08-07, client
   request: "só a bandeira", right-aligned) — flag-icons (SVG sprites),
   pushed to the far right of the row via margin-left:auto since .ms-item
   itself is a plain flex row without justify-content:space-between (shared
   by every other dropdown in the app, not just this one). */
.rel-target-flag {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.rel-target-flag .fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--border);
}
.rel-target-flag-fallback { font-size: 11px; }

.gmf-rel-reason {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
}

.gmf-rel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.gmf-rel-cancel, .gmf-rel-add-other, .gmf-rel-save {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
}
.gmf-rel-cancel {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
}
.gmf-rel-cancel:hover { border-color: var(--text-muted); color: var(--text); }

/* "+ Add other relationship" (2026-08-07, client request) — saves the
   current entry but keeps the panel open (cleared, ready for the next one)
   instead of closing it like plain "Add" does, so several relationships can
   be declared for the same stakeholder without reopening anything each
   time. Outlined in the brand color (between the neutral Cancel and the
   solid-filled Add) rather than filled, so the solid orange "Add" still
   reads as the primary/final action of the two. */
.gmf-rel-add-other {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
}
.gmf-rel-add-other:hover { background: var(--accent-dim); }
.gmf-rel-add-other:disabled { opacity: 0.5; cursor: default; }

.gmf-rel-save {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-text);
}
.gmf-rel-save:hover { opacity: 0.85; }
.gmf-rel-save:disabled { opacity: 0.5; cursor: default; }

.gmf-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.15s, opacity 0.15s;
}
.gmf-submit-btn:hover:not(:disabled) { background: var(--accent-hover); }
.gmf-submit-btn:disabled { opacity: 0.55; cursor: default; }

/* Clarifies what Submit actually does (2026-09-10, client asked directly:
   "ele faz um resumo ia?") — it doesn't, it just saves the form fields as
   typed; unlike this app's several other "Summarize..."/"AI Analysis"
   buttons (which DO call Gemini), this one never does. */
.gmf-submit-note {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.gmf-error {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    font-size: 12.5px;
}

/* "Sent!" card (2026-11-10) */
.gmf-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 52px 28px 44px; }
.gmf-done-check { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(145deg, #3aa87f, #2a8f69); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(52,143,112,.12), 0 10px 26px -10px rgba(42,143,105,.7); }
.gmf-done-check svg { width: 56px; height: 56px; }
.gmf-done-ring { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.gmf-done-tick { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.gmf-done.gmf-done-play .gmf-done-check { animation: gmfDonePop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.gmf-done.gmf-done-play .gmf-done-tick { animation: gmfDoneTick .45s .25s ease-out both; }
.gmf-done.gmf-done-play .gmf-done-title, .gmf-done.gmf-done-play .gmf-done-sub, .gmf-done.gmf-done-play .gmf-done-chips, .gmf-done.gmf-done-play .gmf-done-actions { animation: gmfDoneUp .5s .3s ease-out both; }
@keyframes gmfDonePop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gmfDoneTick { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes gmfDoneUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.gmf-done-title { margin: 8px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.gmf-done-sub { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.gmf-done-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.gmf-done-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--text); }
.gmf-done-chip svg { color: #2a8f69; }
.gmf-done-note { max-width: 520px; padding: 10px 14px; border-radius: 10px; background: #fffbea; border: 1px solid #f3dc8a; font-size: 12.5px; line-height: 1.45; color: #6b5300; text-align: left; }
.gmf-done-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; width: 100%; }
.gmf-done-new { min-width: 300px; max-width: 100%; height: 48px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(255,95,20,.9); transition: transform .12s ease, background .12s ease; }
.gmf-done-new:hover { background: #e8530f; transform: translateY(-1px); }
.gmf-done-link { font-size: 13px; color: var(--text-muted); text-decoration: underline; }
.gmf-done-link:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .gmf-done.gmf-done-play * { animation: none !important; } }

/* Progress card of "Fill the form with AI" (2026-11-10): what is happening now, the percentage big, the bar,
   and the steps as a list with a tick, a spinner or a dot. */
.gmf-aifill-progress { gap: 9px; padding: 11px 12px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.gmf-aifill-progress .up-progress { margin: 0; }
.gmf-aifill-progress .up-progress-head { align-items: center; gap: 10px; margin: 0; font-size: inherit; }
.gmf-pg-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gmf-aifill-progress .up-progress-label { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: normal; overflow: visible; text-overflow: clip; }
.gmf-aifill-progress .up-progress-sub { font-size: 10.5px; line-height: 1.35; color: var(--text-muted); }
.gmf-aifill-progress .up-progress-pct { flex: 0 0 auto; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.gmf-aifill-progress .gmf-aifill-progress-track { height: 7px; background: rgba(255,95,20,.14); }
.gmf-aifill-progress .gmf-aifill-progress-bar { background: linear-gradient(90deg, #ff8a4d, var(--accent)); box-shadow: 0 0 10px rgba(255,95,20,.35); }
.gmf-aifill-progress-steps { flex-direction: column; flex-wrap: nowrap; gap: 5px; padding-top: 3px; border-top: 1px solid var(--border-soft); }
.gmf-pg-step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.gmf-pg-step .gmf-pg-ico { width: 14px; height: 14px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--border); }
.gmf-pg-step.now { color: var(--text); font-weight: 700; }
.gmf-pg-step.now .gmf-pg-ico { border-color: rgba(255,95,20,.22); border-top-color: var(--accent); animation: gmfPgSpin .8s linear infinite; }
.gmf-pg-step.done { color: #1b7a4b; font-weight: 600; }
.gmf-pg-step.done .gmf-pg-ico { border-color: #1b9a62; background: #1b9a62 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
@keyframes gmfPgSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gmf-pg-step.now .gmf-pg-ico { animation: none; border-top-color: var(--accent); } }

.gmf-success {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(52,143,112,0.12);
    border: 1px solid rgba(52,143,112,0.3);
    color: #348f70;
    font-size: 12.5px;
}

/* ── Draft review (?draft=<id>) — see gmfEnterDraftMode() ─────────────────── */
.gmf-draft-banner { background: #fff7f2; border-color: #ffc9a8; color: #5a2a0c; }
.gmf-draft-after { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; margin-top: 8px; }
.gmf-draft-match { background: #fffbea; border: 1px solid #f3dc8a; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.gmf-dm-title { font-size: 13px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gmf-dm-status { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.gmf-dm-warn { background: #ffe1a8; color: #7a4a00; }
.gmf-dm-ok { background: #d4efe3; color: #1d6b4e; }
.gmf-dm-help { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }
.gmf-dm-row { background: #fff; border: 1px solid #efe3b0; border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; }
.gmf-dm-row-done { flex-direction: row; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #f7faf8; border-color: #cfe6da; }
.gmf-dm-typed { font-size: 13px; font-weight: 700; }
.gmf-dm-nomatch { font-size: 10.5px; font-weight: 600; color: #a0670a; margin-left: 6px; }
.gmf-dm-note { font-size: 12px; color: #1d6b4e; }
.gmf-dm-line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gmf-dm-lbl { font-size: 11.5px; color: var(--text-muted); }
.gmf-dm-btn { border: 1px solid var(--accent); background: #fff0e8; color: #8a3300; border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.gmf-dm-btn:hover { background: var(--accent); color: #fff; }
.gmf-dm-btn-alt { border-color: var(--border); background: #fff; color: var(--text); }
.gmf-dm-btn:disabled { opacity: 0.45; cursor: default; }

.gmf-draft-banner strong { color: #8a3300; }

.gmf-dm-sub { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #7a6a20; margin-top: 4px; }

.gmf-dm-undo { margin-left: auto; }
.gmf-dm-search { display: flex; flex-direction: column; gap: 4px; }
.gmf-dm-results { max-height: 180px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

.gmf-dm-ms { align-self: flex-start; min-width: 240px; }
.gmf-dm-ms .ms-dropdown { min-width: 320px; }

.gmf-dm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gmf-dm-chips:empty { display: none; }
.gmf-dm-chips-lbl { font-size: 11.5px; color: var(--text-muted); }
.gmf-dm-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff0e8; border: 1px solid #ffd0b8; border-radius: 99px; padding: 3px 6px 3px 10px; font-size: 12px; }
.gmf-dm-chip button { border: none; background: none; cursor: pointer; font-size: 14px; line-height: 1; color: #b44; }

/* Hints under Stakeholder(s) / DiDi Participant(s) for names typed on the public draft page. */
.gmf-draft-hints { flex-direction: column; gap: 6px; margin-top: 6px; }
.gmf-draft-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fffbea; border: 1px solid #f3dc8a; border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.gmf-draft-hint-lbl { color: var(--text-muted); }
.gmf-draft-hint-x { margin-left: auto; border: none; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--text-muted); }


/* Fill from minutes (AI) panel, 2026-10-22 */
.gmf-aifill { border: 1px dashed var(--accent); background: var(--accent-dim); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.gmf-aifill-head { display: flex; flex-direction: column; gap: 3px; }
.gmf-aifill-title { font-size: 14px; font-weight: 700; color: var(--text); }
.gmf-aifill-beta { margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.gmf-aifill-sub { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.gmf-aifill-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gmf-aifill-btn { height: 30px; padding: 0 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 99px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.gmf-aifill-btn:hover { border-color: var(--accent); }
.gmf-aifill-file { font-size: 12px; color: var(--text-muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmf-aifill-link { border: 0; background: none; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 0; }
.gmf-aifill-go { height: 32px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gmf-aifill-go:disabled { opacity: .55; cursor: wait; }
.gmf-aifill-status { font-size: 12px; color: var(--text-muted); }
.gmf-aifill-status.ok { color: #1b7a4b; }
.gmf-aifill-status.err { color: #c0392b; }

/* Fill from minutes: orange progress bar */
.gmf-aifill-progress { display: flex; flex-direction: column; gap: 6px; }
.gmf-aifill-progress-track { height: 8px; border-radius: 99px; background: rgba(255,95,20,.16); overflow: hidden; }
.gmf-aifill-progress-bar { height: 100%; width: 0; border-radius: 99px; transition: width .35s ease;
  background: linear-gradient(90deg, #FF5F14 0%, #ff9a5c 50%, #FF5F14 100%); background-size: 200% 100%;
  animation: gmf-aifill-shimmer 1.4s linear infinite; }
@keyframes gmf-aifill-shimmer { to { background-position: -200% 0; } }
.gmf-aifill-progress-steps { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted); }
.gmf-aifill-progress-steps .now { color: var(--accent); font-weight: 600; }
.gmf-aifill-progress-steps .done { color: #1b7a4b; }
/* Upload info line (real percentage, time left) and retry button, built by gmfAiEnsureUpInfo (shared .up-* classes live in style.css) */
.gmf-aifill-progress .up-progress { margin-top: 0; }
.gmf-aifill-progress .up-progress-head { margin-bottom: 0; }
.gmf-aifill-progress .up-progress-pct { flex: 0 0 auto; white-space: nowrap; }
.gmf-aifill-progress .up-progress-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmf-aifill-progress .up-progress.up-error .up-progress-label { color: #e5484d; white-space: normal; }
.gmf-aifill-progress.up-failed .gmf-aifill-progress-bar { background: #e5484d; width: 100% !important; }
.gmf-aifill-progress.up-failed .gmf-aifill-progress-track { background: rgba(229,72,77,.16); }
.gmf-aifill-progress.up-failed .gmf-aifill-progress-steps { display: none; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-row.up-dropzone { position: relative; }

.gmf-aifill-status:empty { display: none; }




.gmf-aifill-go { margin-left: auto; }
.gmf-aifill-clear { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 50%; color: var(--text-muted); cursor: pointer; }
.gmf-aifill-clear:hover { border-color: var(--accent); color: var(--accent); }

/* ── Record an in-person meeting (inside the AI panel) ── */
.gmf-rec { display: flex; flex-direction: column; gap: 10px; }
.gmf-rec-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; font: inherit; font-size: 12.5px; color: var(--text-muted); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.gmf-rec-open b { color: var(--text); }
.gmf-rec-open:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(255,95,20,.12); }
.gmf-rec-open-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.gmf-rec-card { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.gmf-rec-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gmf-rec-tip { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--accent-dim); }
.gmf-rec-tip-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gmf-rec-tip div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text); }
.gmf-rec-tip div span { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
.gmf-rec-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text); cursor: pointer; margin: 4px 0 2px; }
.gmf-rec-consent input { margin-top: 2px; accent-color: var(--accent); }
.gmf-rec-start { height: 36px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.gmf-rec-start:disabled { opacity: .45; cursor: not-allowed; }
.gmf-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.gmf-rec-live-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gmf-rec-pulse { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: gmf-rec-pulse 1.6s ease-out infinite; }
.gmf-rec-pulse.paused { animation: none; background: var(--text-muted); }
@keyframes gmf-rec-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,95,20,.45); } 100% { box-shadow: 0 0 0 18px rgba(255,95,20,0); } }
.gmf-rec-time { display: flex; flex-direction: column; min-width: 90px; }
.gmf-rec-time span { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.gmf-rec-time small { font-size: 11.5px; color: var(--text-muted); }
#gmf-rec-wave { flex: 1 1 200px; max-width: 360px; height: 52px; }
.gmf-rec-backup { font-size: 11.5px; color: #1b7a4b; }
.gmf-rec-backup.warn { color: #c0392b; }
.gmf-rec-cancel { border: 0; background: none; font: inherit; font-size: 12px; color: var(--text-muted); cursor: pointer; text-decoration: underline; margin-left: 6px; }
.gmf-rec-recover { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: #fff7e0; border: 1px solid #f0d58a; font-size: 12.5px; color: var(--text); }
@media (max-width: 760px) { .gmf-rec-tips { grid-template-columns: 1fr; } }
.gmf-rec-backup { margin-top: 6px; }
.gmf-rec-live-top { margin-bottom: 4px; }

/* ── AI panel: two boxes (text / audio) ── */
.gmf-aifill-headrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gmf-aifill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gmf-aifill-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.gmf-aifill-boxhead { display: flex; gap: 10px; align-items: flex-start; }
.gmf-aifill-boxhead > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text); }
.gmf-aifill-boxhead > div span { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }
.gmf-aifill-boxico { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.gmf-aifill-box .gmf-aifill-go { margin-left: 0; align-self: flex-start; }
.gmf-aifill-paste { align-self: flex-start; }
.gmf-aifill-or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); }
.gmf-aifill-or::before, .gmf-aifill-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gmf-aifill-box .gmf-rec-open { padding: 8px 12px; }
.gmf-aifill-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.gmf-aifill-note b { color: var(--text); }
@media (max-width: 860px) { .gmf-aifill-grid { grid-template-columns: 1fr; } }

/* ── AI panel as a left sidebar ── */
.gmf-content.gmf-has-side { max-width: 1240px; display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 18px; align-items: start; }
.gmf-ai-side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.gmf-ai-side .gmf-aifill { margin-bottom: 0; }
.gmf-ai-side .gmf-aifill-grid { grid-template-columns: 1fr; }
.gmf-ai-side .gmf-rec-tips { grid-template-columns: 1fr; }
.gmf-ai-side .gmf-aifill-file { max-width: 100%; white-space: normal; }
.gmf-ai-side .gmf-aifill-go { white-space: normal; text-align: center; height: auto; min-height: 32px; padding: 7px 16px; }
.gmf-ai-side #gmf-rec-wave { flex: 1 1 100%; max-width: 100%; }
.gmf-main { min-width: 0; }
@media (max-width: 1000px) { .gmf-content.gmf-has-side { display: block; } .gmf-ai-side { position: static; max-height: none; margin-bottom: 14px; } }

/* Buttons centered inside the AI sidebar boxes */
.gmf-ai-side .gmf-aifill-box { align-items: stretch; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-row { justify-content: center; flex-direction: column; gap: 6px; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-file { text-align: center; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-go, .gmf-ai-side .gmf-aifill-box .gmf-aifill-paste { align-self: center; }
.gmf-ai-side .gmf-rec-card .gmf-aifill-row { justify-content: center; flex-direction: row; }
.gmf-ai-side .gmf-rec-start { margin: 0 auto; }
.gmf-ai-side .gmf-rec-open { justify-content: center; }

/* ── AI sidebar: cleaner, more organized layout (2026-10-23) ── */
.gmf-ai-side .gmf-aifill { border: 1px solid var(--border); background: var(--surface); padding: 16px; gap: 14px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.gmf-ai-side .gmf-aifill-head { gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.gmf-ai-side .gmf-aifill-sub { font-size: 11.5px; }
.gmf-ai-side .gmf-aifill-box { background: var(--surface-2); border: 1px solid var(--border); padding: 14px; gap: 12px; }
.gmf-ai-side .gmf-aifill-boxhead { align-items: center; gap: 10px; }
.gmf-ai-side .gmf-aifill-boxhead b { font-size: 13px; line-height: 1.25; }
.gmf-ai-side .gmf-aifill-boxhead > div span { font-size: 11.5px; }
/* file chooser as a drop-style area */
.gmf-ai-side .gmf-aifill-box .gmf-aifill-row { border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); padding: 12px; gap: 6px; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-btn { width: 100%; max-width: 220px; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-file { font-size: 11px; }
/* main actions: full width, same height */
.gmf-ai-side .gmf-aifill-box .gmf-aifill-go { align-self: stretch; width: 100%; height: 36px; border-radius: 10px; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-paste { align-self: center; font-size: 11.5px; }
.gmf-ai-side .gmf-aifill-or { margin: 2px 0; }
.gmf-ai-side .gmf-aifill-box .gmf-rec-open { width: 100%; border-radius: 10px; background: var(--surface); }
.gmf-ai-side .gmf-aifill-note { border-top: 1px solid var(--border); padding-top: 12px; font-size: 11px; }

/* AI panel: explanations (purpose, steps, review warning, privacy) */
.gmf-aifill-sub b { color: var(--text); }
.gmf-aifill-steps { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
.gmf-aifill-steps > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; font-size: 12px; color: var(--text); }
.gmf-aifill-steps span { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gmf-aifill-steps small { color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.gmf-aifill-hint { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--text-muted); text-align: center; }
.gmf-aifill-review { font-size: 12px; line-height: 1.5; color: #7a4a00; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 12px; }
.gmf-aifill-review b { color: #5c3800; }
.gmf-aifill-privacy { font-size: 11.5px; color: var(--text-muted); }
.gmf-aifill-privacy summary { cursor: pointer; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; list-style: none; }
.gmf-aifill-privacy summary::-webkit-details-marker { display: none; }
.gmf-aifill-privacy summary::after { content: "\25BE"; margin-left: auto; color: var(--text-muted); }
.gmf-aifill-privacy[open] summary::after { content: "\25B4"; }
.gmf-aifill-privacy ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.gmf-aifill-privacy li b { color: var(--text); }

/* explanations live inside each block */
.gmf-aifill-box .gmf-aifill-review { font-size: 11.5px; padding: 9px 11px; }
.gmf-aifill-box .gmf-aifill-privacy { font-size: 11px; }

/* Short, always-visible note about how recordings are protected (Fill the form with AI). */
.gmf-aifill-secnote { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 11px; }
.gmf-aifill-secnote svg { flex: none; margin-top: 2px; color: var(--green); }
.gmf-aifill-secnote b { color: var(--text); }

/* "File chosen" state of the upload: soft-orange chip like the other chips in this form. */
.gmf-aifill-file.chosen { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; box-sizing: border-box; background: #fff0e8; border: 1px solid #ffd0b8; border-radius: 99px; padding: 4px 5px 4px 11px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.gmf-aifill-file.chosen > svg { flex: none; color: var(--accent); }
.gmf-aifill-file.chosen .gmf-aifill-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gmf-aifill-file.chosen .gmf-aifill-fsize { flex: none; color: var(--text-muted); font-weight: 400; font-size: 11px; }
.gmf-aifill-x { flex: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(255, 95, 20, 0.14); color: var(--accent); font-size: 15px; line-height: 1; padding: 0; cursor: pointer; }
.gmf-aifill-x:hover { background: var(--accent); color: #fff; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-file.chosen { font-size: 12px; max-width: 100%; }
#gmf-aifill-change { font-size: 11.5px; }

/* AI sidebar (2026-11-04): original font sizes; it fits the screen without scrolling by growing into the free
   margin on the LEFT (the form column keeps its position) and with slightly tighter spacing. */
.gmf-content.gmf-has-side { --gmf-ai-ext: clamp(0px, calc((100vw - 1240px) / 2 + 16px), 64px); }
.gmf-ai-side { margin-left: calc(-1 * var(--gmf-ai-ext)); width: calc(100% + var(--gmf-ai-ext)); box-sizing: border-box; }
@media (max-width: 1000px) { .gmf-ai-side { margin-left: 0; width: auto; } }
.gmf-ai-side .gmf-aifill { padding: 14px; gap: 10px; }
.gmf-ai-side .gmf-aifill-head { padding-bottom: 10px; gap: 3px; }
.gmf-ai-side .gmf-aifill-box { padding: 12px; gap: 10px; }
.gmf-ai-side .gmf-aifill-boxico { display: none; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-row { padding: 10px; gap: 5px; }
.gmf-ai-side .gmf-aifill-secnote { border: 0; background: transparent; padding: 0; gap: 6px; }

/* "Fill the form" + the eraser side by side (own class: .gmf-aifill-row turns into the dashed upload box in the sidebar). */
.gmf-aifill-actions { display: flex; align-items: center; gap: 8px; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-actions .gmf-aifill-go { flex: 1; width: auto; align-self: auto; margin-left: 0; }
.gmf-aifill-actions .gmf-aifill-clear { flex: none; }

/* Review warning: small alert icon + text on one line. */
.gmf-ai-side .gmf-aifill-box .gmf-aifill-review { display: flex; align-items: flex-start; gap: 7px; }
.gmf-aifill-review svg { flex: none; margin-top: 2px; color: #c98a00; }
.gmf-ai-side .gmf-aifill-tips ul { margin-top: 6px; gap: 4px; }
.gmf-ai-side { top: 58px; max-height: calc(100vh - 70px); }

/* Tips for best results: always visible (no collapse arrow). */
.gmf-aifill-tips { font-size: 11px; color: var(--text-muted); }
.gmf-aifill-tips-title { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.gmf-aifill-tips ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.gmf-aifill-tips li b { color: var(--text); }

/* Progress + result message live inside the box, right under "Fill the form". The tips stay visible; while a
   file is being read only the controls that cannot be used meanwhile step aside, so everything still fits. */
.gmf-aifill.gmf-ai-busy .gmf-aifill-paste, .gmf-aifill.gmf-ai-busy #gmf-aifill-change { display: none; }
.gmf-ai-side .gmf-aifill-box .gmf-aifill-status { line-height: 1.45; }

/* A long file name must never widen the panel: the column can shrink and the name is cut with "...". */
.gmf-ai-side .gmf-aifill-grid { grid-template-columns: minmax(0, 1fr); }
.gmf-ai-side .gmf-aifill, .gmf-ai-side .gmf-aifill-box, .gmf-ai-side .gmf-aifill-box .gmf-aifill-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
.gmf-ai-side .gmf-aifill-file.chosen { min-width: 0; }
.gmf-ai-side { overflow-x: hidden; }
.gmf-aifill-file.chosen .gmf-aifill-x { width: 20px; height: 20px; min-width: 20px; min-height: 20px; align-self: center; }
