/* ============================================================
   AdFrugal Admin — Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Themes ──────────────────────────────────────────────── */
:root {
    --bg:          #0f1117;
    --surface:     #1a1d27;
    --border:      #252836;
    --text:        #d0d4e0;
    --text-bright: #ffffff;
    --muted:       #9ca3af;  /* was #6b7280 (~3.7:1 on the dark bg); this is ~7:1 */
    --accent:      #4a7cff;
    --accent2:     #e0a030;
    --danger:      #e05555;
    --sidebar-w:   220px;
}

html[data-theme="light"] {
    --bg:          #f4f5f9;
    --surface:     #ffffff;
    --border:      #dde1ee;
    --text:        #374151;
    --text-bright: #111827;
    --muted:       #4b5563;  /* was #9ca3af (~2.4:1 on the light bg); this is ~7:1 */
    --accent:      #4a7cff;
    --accent2:     #b5790a;
    --danger:      #dc2626;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: .9rem;
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background .2s, color .2s;
}

/* ── Sidebar ─────────────────────────────────────────────── */
#sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    transition: background .2s, border-color .2s;
}

.sidebar-logo {
    padding: 1.2rem 1.1rem .9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    border-bottom: 1px solid var(--border);
    letter-spacing: .03em;
}

.sidebar-logo span { color: var(--accent); }

.sidebar-section {
    padding: .9rem .9rem .25rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-bright);
}

nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .52rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    margin: .1rem .5rem;
    transition: background .15s, color .15s;
    font-size: .875rem;
}

nav a:hover  { background: var(--border); color: var(--text-bright); }
nav a.active { background: var(--accent);  color: #fff; }
nav a .icon  { width: 16px; text-align: center; font-style: normal; opacity: .8; }

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: .9rem 1.1rem;
}

.sidebar-footer a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.sidebar-footer a:hover { color: var(--danger); }

/* ── Main ────────────────────────────────────────────────── */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

#topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .2s, border-color .2s;
}

#topbar h1 { font-size: .95rem; font-weight: 500; color: var(--text-bright); }

/* ── Top tabs (Publish / Advertise) ───────────────────────────
   Replaces the plain page title when an account has access to
   both sides -- this is the one control that swaps the entire
   dashboard context, so it's built as wide, filled buttons, not
   text links -- impossible to mistake for a subtler nav item. */
.top-tabs { display: flex; align-items: center; gap: .6rem; }

.top-tab {
    min-width: 160px;
    text-align: center;
    padding: .55rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s, color .15s;
}

.top-tab:hover { border-color: var(--accent); color: var(--text-bright); }

.top-tab.active.top-tab-publish {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.top-tab.active.top-tab-advertise {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #fff;
}

#theme-toggle {
    background: var(--border);
    border: 1px solid transparent;
    color: var(--text);
    border-radius: 20px;
    padding: .28rem .8rem;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.4;
}

#theme-toggle:hover { background: var(--accent); color: #fff; }

#content { flex: 1; overflow-y: auto; padding: 1.8rem 2rem; }

/* ── Panels ──────────────────────────────────────────────── */
.panel        { display: none; }
.panel.active { display: block; }
.panel > h2   { font-size: 1.05rem; font-weight: 600; color: var(--text-bright); margin-bottom: 1.5rem; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    transition: background .2s, border-color .2s;
}

.stat-card .label {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .4rem;
}

.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--text-bright); }
.stat-card .sub   { font-size: .74rem; color: var(--muted); margin-top: .2rem; }

/* Colored top bar for the tiles that matter most (same blue/amber as the
   Publish/Advertise tabs). Restrained on purpose — a bar, not a full fill. */
.stat-card--blue   { border-top: 4px solid var(--accent); }
.stat-card--amber  { border-top: 4px solid var(--accent2); }

/* Plain explanatory sentence under a heading — readable, not faint. */
.af-note { font-size: .85rem; color: var(--text); margin: 0 0 1rem; }

/* ── Empty state ─────────────────────────────────────────── */
.empty {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted);
    transition: background .2s, border-color .2s;
}

.empty strong { color: var(--text); display: block; margin-bottom: .4rem; }
.empty p      { font-size: .85rem; }
.empty code   { background: var(--border); padding: .1em .4em; border-radius: 3px; font-size: .8rem; }

/* ── Tables ──────────────────────────────────────────────── */
.af-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.af-table th {
    text-align: left;
    padding: .7rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-bright);
    background: var(--surface);          /* tinted band so the header row reads as a header */
    border-bottom: 2px solid var(--border);
}

.af-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.af-table tr:last-child td { border-bottom: none; }
.af-table tr:hover td { background: var(--border); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s, color .15s;
    font-family: inherit;
}

.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a6ce0; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover  { opacity: .85; }
.btn-ghost    { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover   { background: var(--border); color: var(--text-bright); }
.btn[disabled]     { opacity: .4; cursor: default; pointer-events: none; }

/* Pager / per-page chip row (Traffic Log). */
.af-pager {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    margin: .5rem 0;
    font-size: .9rem;
    color: var(--text-bright);
}
.af-pager .af-pager-count { padding: 0 .4rem; }
.af-pager label  { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--text); }
.af-pager select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-bright);
    padding: .35rem .6rem;
    font-size: .9rem;
    font-family: inherit;
}

/* ── Forms ───────────────────────────────────────────────── */
.af-form label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: .3rem;
    margin-top: .9rem;
}

.af-form input,
.af-form select,
.af-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    padding: .55rem .8rem;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .15s;
}

.af-form input:focus,
.af-form select:focus,
.af-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .15em .55em;
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.badge-green  { background: #1a3a2a; color: #38c97a; }
.badge-red    { background: #3a1212; color: #e07070; }
.badge-yellow { background: #3a2e10; color: #d4a340; }
.badge-blue   { background: #1a2545; color: #7aabff; }

html[data-theme="light"] .badge-green  { background: #d1fae5; color: #065f46; }
html[data-theme="light"] .badge-red    { background: #fee2e2; color: #991b1b; }
html[data-theme="light"] .badge-yellow { background: #fef3c7; color: #92400e; }
html[data-theme="light"] .badge-blue   { background: #dbeafe; color: #1e40af; }

/* ══════════════════════════════════════════════════════════
   Email Panel — Gmail style
   ══════════════════════════════════════════════════════════ */

/* Panel container — full height flex column */
#panel-email.active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 57px - 3.6rem);
    overflow: hidden;
}

/* ── Account tabs ─────────────────────────────────────────── */
.gm-acct-bar { display: flex; gap: .5rem; margin-bottom: .8rem; flex-shrink: 0; }

.gm-acct {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 20px;
    padding: .28rem 1rem;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
}
.gm-acct:hover          { background: var(--border); color: var(--text-bright); }
.gm-acct.gm-acct-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Shell: aside + main, side by side ───────────────────── */
.gm-shell {
    display: flex;
    flex: 1;
    min-height: 0;       /* CRITICAL — lets flex children shrink */
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}

/* ── Left sidebar ─────────────────────────────────────────── */
.gm-aside {
    width: 210px;
    min-width: 210px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: .9rem .5rem .9rem .7rem;
    overflow-y: auto;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}

/* Compose button — Gmail pill */
.gm-compose-btn {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #c2e7ff;
    color: #001d35;
    border: none;
    border-radius: 20px;
    padding: .68rem 1.4rem .68rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: background .15s, box-shadow .15s;
    white-space: nowrap;
}
.gm-compose-btn:hover   { background: #a8d8f8; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.gm-compose-ico         { font-size: 1.05rem; }

html[data-theme="dark"]  .gm-compose-btn       { background: #004a77; color: #c2e7ff; }
html[data-theme="dark"]  .gm-compose-btn:hover { background: #005d96; }

/* Folder nav */
.gm-nav { list-style: none; display: flex; flex-direction: column; }

.gm-nav-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .44rem .8rem .44rem .7rem;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text);
    user-select: none;
    transition: background .12s, color .12s;
    /* extend left flush with aside edge */
    margin-left: -.7rem;
    width: calc(100% + .7rem);
}
.gm-nav-item:hover         { background: var(--border); color: var(--text-bright); }
.gm-nav-item.gm-nav-active { background: #0842a0; color: #c2e7ff; font-weight: 700; }

html[data-theme="light"] .gm-nav-item.gm-nav-active { background: #d3e3fd; color: #041e49; }

.gm-nav-ico       { font-size: .82rem; width: 20px; text-align: center; flex-shrink: 0; opacity: .75; }
.gm-nav-lbl       { flex: 1; }
.gm-nav-cnt       { font-size: .8rem; font-weight: 700; color: var(--text-bright); }
.gm-nav-cnt-draft  { color: var(--muted); }
.gm-nav-cnt-phish  { color: #e05555; }
.gm-nav-item.gm-nav-active .gm-nav-cnt       { color: inherit; opacity: .85; }
.gm-nav-item.gm-nav-active .gm-nav-cnt-draft { color: inherit; opacity: .85; }

/* Phishing folder — subtle red tint when active */
.gm-nav-phishing.gm-nav-active               { background: #5c1010; color: #ffaaaa; }
html[data-theme="light"] .gm-nav-phishing.gm-nav-active { background: #fee2e2; color: #991b1b; }

/* ── Main area ────────────────────────────────────────────── */
.gm-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: background .2s;
}
html[data-theme="light"] .gm-main { background: #f6f8fc; }

/* Toolbar */
.gm-toolbar {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    min-height: 44px;
    background: var(--bg);
    transition: background .2s, border-color .2s;
}
html[data-theme="light"] .gm-toolbar { background: #f6f8fc; }

.gm-chkwrap { display: flex; align-items: center; margin-right: .3rem; }

.gm-tbtn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: .87rem;
    font-family: inherit;
    padding: .28rem .55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s, color .12s;
    line-height: 1.5;
}
.gm-tbtn:hover     { background: var(--border); color: var(--text-bright); }
.gm-tbtn-del:hover { color: var(--danger); }
.gm-tsep    { width: 1px; height: 16px; background: var(--border); margin: 0 .3rem; flex-shrink: 0; }
.gm-tcount  { margin-left: auto; font-size: .76rem; color: var(--muted); }

/* ── Panes: list column + reader column ───────────────────── */
.gm-panes {
    display: flex;
    flex: 1;
    min-height: 0;   /* CRITICAL */
    overflow: hidden;
}

.gm-list-col {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: var(--bg);
    transition: background .2s;
}
.gm-list-col.gm-split { flex: 0 0 40%; min-width: 0; border-right: 1px solid var(--border); }

html[data-theme="light"] .gm-list-col { background: #f6f8fc; }

.gm-reader-col {
    flex: 0 0 60%;
    min-width: 0;
    overflow-y: auto;
    padding: 1.4rem 1.8rem;
    background: var(--bg);
    transition: background .2s;
}
html[data-theme="light"] .gm-reader-col { background: #fff; }

/* ── Email rows ───────────────────────────────────────────── */
.gm-row {
    display: flex;
    align-items: center;
    padding: 0 1rem 0 .6rem;
    height: 52px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: .875rem;
    transition: background .08s, box-shadow .08s;
    background: var(--surface);   /* unread */
    position: relative;
}
.gm-row.gm-row-read { background: transparent; }
.gm-row:hover       { background: var(--border) !important; box-shadow: 0 1px 3px rgba(0,0,0,.18); z-index: 1; }

.gm-row.gm-row-sel  { background: #0e2a5c !important; }
html[data-theme="light"] .gm-row             { background: #fff; }
html[data-theme="light"] .gm-row.gm-row-read { background: #f2f6fc; }
html[data-theme="light"] .gm-row.gm-row-sel  { background: #c2dbff !important; }

.gm-row-chk  { flex-shrink: 0; margin-right: .4rem; accent-color: var(--accent); cursor: pointer; }

.gm-row-star {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--border);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .12s;
    margin-right: .3rem;
}
.gm-row-star:hover   { color: #f59e0b; }
.gm-row-star.gm-starred { color: #f59e0b; }

.gm-row-from {
    width: 160px;
    min-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: .8rem;
    font-size: .87rem;
    color: var(--text);
}
.gm-row:not(.gm-row-read) .gm-row-from { font-weight: 700; color: var(--text-bright); }

.gm-row-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gm-row-subj { font-weight: 500; color: var(--text); }
.gm-row-prev { color: var(--muted); font-size: .875rem; font-weight: 400; }
.gm-row:not(.gm-row-read) .gm-row-subj { font-weight: 700; color: var(--text-bright); }

.gm-row-date {
    flex-shrink: 0;
    width: 60px;
    text-align: right;
    font-size: .79rem;
    color: var(--muted);
    white-space: nowrap;
}
.gm-row:not(.gm-row-read) .gm-row-date { font-weight: 700; color: var(--text); }

.gm-empty-list { padding: 4rem 2rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* ── Reading pane content ──────────────────────────────────── */
.gm-back-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: .2rem .45rem;
    border-radius: 6px;
    margin-bottom: .9rem;
    transition: background .12s, color .12s;
    display: inline-block;
}
.gm-back-btn:hover { background: var(--border); color: var(--text-bright); }

.gm-rdr-subject {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.gm-rdr-meta {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.1rem;
}

.gm-rdr-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-rdr-from    { flex: 1; min-width: 0; }
.gm-rdr-name    { font-weight: 600; color: var(--text-bright); font-size: .88rem; }
.gm-rdr-addr    { color: var(--muted); font-size: .78rem; }
.gm-rdr-date    { font-size: .78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

.gm-rdr-body {
    font-size: .875rem;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 1.5rem;
}

.gm-rdr-actions { display: flex; gap: .6rem; }

.gm-rdr-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 20px;
    padding: .38rem 1.1rem;
    font-size: .84rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.gm-rdr-btn:hover          { background: var(--border); color: var(--text-bright); }
.gm-rdr-btn-phish          { border-color: #7f1d1d; color: #e07070; }
.gm-rdr-btn-phish:hover    { background: #3a1212; color: #ffaaaa; }
.gm-rdr-btn-del            { border-color: var(--border); color: var(--muted); }
.gm-rdr-btn-del:hover      { background: #3a1212; color: var(--danger); }

/* ── Compose overlay — Gmail bottom-right drawer ──────────── */
.gm-compose-overlay {
    position: fixed;
    bottom: 0;
    right: 2.5rem;
    width: 500px;
    min-width: 300px;
    z-index: 1000;
}

.gm-compose-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    overflow: auto;
    position: relative;
    min-height: 320px;
    transition: background .2s;
}

/* Top-left corner drag handle — resizes width + height */
.gm-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    cursor: nw-resize;
    z-index: 10;
    border-radius: 12px 0 0 0;
}
.gm-resize-handle::after {
    content: '';
    display: block;
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,.5);
    border-left: 2px solid rgba(255,255,255,.5);
}
.gm-resize-handle:hover::after {
    border-color: rgba(255,255,255,.9);
}

.gm-cHdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    background: #1e3a5c;
    color: #fff;
    font-weight: 600;
    font-size: .87rem;
}
html[data-theme="light"] .gm-cHdr { background: #404040; }

.gm-cClose {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: .95rem;
    padding: .15rem .35rem;
    border-radius: 4px;
    transition: color .12s, background .12s;
    line-height: 1;
}
.gm-cClose:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Compose account tabs */
.gm-cAcctTabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.gm-cAcct {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: .78rem;
    font-family: inherit;
    padding: .45rem .5rem;
    cursor: pointer;
    transition: color .12s, border-color .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-cAcct:hover           { color: var(--text-bright); }
.gm-cAcct.gm-cAcct-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* Compose form */
.gm-cForm { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.gm-cRow {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: .28rem .9rem;
    min-height: 38px;
}

.gm-cRow input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: .875rem;
    font-family: inherit;
    padding: .15rem 0;
    outline: none;
}

.gm-cRow-subj input { font-size: .95rem; }

.gm-cForm textarea {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: .875rem;
    font-family: inherit;
    padding: .75rem .9rem;
    outline: none;
    resize: none;
    min-height: 120px;
    line-height: 1.65;
    box-sizing: border-box;
}

.gm-cFtr {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border-top: 1px solid var(--border);
}

.gm-send-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: .4rem 1.4rem;
    font-size: .87rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.gm-send-btn:hover { background: #3a6ce0; }

.gm-cFtrBtn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: .83rem;
    font-family: inherit;
    padding: .38rem .6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.gm-cFtrBtn:hover { background: var(--border); color: var(--text-bright); }
