/* ============================================================
   GrowGrowth – Design System 2026
   Tokens, superfícies, hub, timeline de fases e componentes.
   Carregado globalmente (depois do Tailwind CDN).
   ============================================================ */

:root {
    color-scheme: dark;
    --bg:        #121216;
    --bg-soft:   #16161c;
    --surface:   #1d1d24;
    --surface-2: #24242d;
    --border:    #2c2c36;
    --border-soft: #24242d;
    --text:      #f4f4f5;
    --text-dim:  #a1a1aa;
    --text-mute: #71717a;

    --leaf:      #22c55e;
    --leaf-soft: #4ade80;
    --flora:     #d946ef;
    --water:     #38bdf8;
    --warn:      #f59e0b;

    --radius:    1.25rem;
    --radius-sm: 0.875rem;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 12px 40px -16px rgba(0,0,0,.7);
}

body { background: var(--bg); }

/* radial glow de fundo, sutil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(34,197,94,.10), transparent 60%),
        radial-gradient(700px 400px at -10% 0%, rgba(217,70,239,.07), transparent 55%);
}
body > * { position: relative; z-index: 1; }

/* ── Superfícies ─────────────────────────────────────────── */
.gf-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.gf-card-flat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.gf-eyebrow {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ── Hero do ciclo ───────────────────────────────────────── */
.gf-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(34,197,94,.18), transparent 55%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--bg-soft) 100%);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
}
.gf-hero.is-flora {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(217,70,239,.20), transparent 55%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--bg-soft) 100%);
}
.gf-hero-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

.gf-phase-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 9999px;
    font-size: .8rem; font-weight: 700;
    background: rgba(34,197,94,.16); color: var(--leaf-soft);
    border: 1px solid rgba(34,197,94,.3);
}
.gf-phase-pill.is-flora { background: rgba(217,70,239,.16); color: #f0abfc; border-color: rgba(217,70,239,.35); }

/* contadores grandes */
.gf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.gf-stat {
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,.28);
    border: 1px solid var(--border-soft);
    padding: .7rem .5rem; text-align: center;
}
.gf-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.gf-stat-label { margin-top: .25rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); }
.gf-stat.is-vega .gf-stat-num { color: var(--leaf-soft); }
.gf-stat.is-flora .gf-stat-num { color: #f0abfc; }

/* ── Timeline de fases ──────────────────────────────────── */
.gf-timeline { margin-top: 1rem; }
.gf-timeline-track {
    display: flex; height: .55rem; border-radius: 9999px; overflow: hidden;
    background: rgba(0,0,0,.35); border: 1px solid var(--border-soft);
}
.gf-timeline-seg { height: 100%; min-width: 4px; transition: filter .2s; }
.gf-timeline-seg.is-atual { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.gf-timeline-legend {
    display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .7rem;
}
.gf-timeline-item { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--text-dim); }
.gf-timeline-dot { width: .6rem; height: .6rem; border-radius: 9999px; flex-shrink: 0; }
.gf-timeline-item.is-atual { color: var(--text); font-weight: 700; }
.gf-timeline-item .gf-days { color: var(--text-mute); font-weight: 400; }

/* ── Painel de acesso (hub) ─────────────────────────────── */
.gf-hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.gf-hub-primary { grid-column: 1 / -1; }
@media (min-width: 480px) { .gf-hub { grid-template-columns: repeat(3, 1fr); } .gf-hub-primary { grid-column: 1 / -1; } }

.gf-tile {
    position: relative;
    display: flex; flex-direction: column; gap: .35rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    color: var(--text);
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    min-height: 92px;
}
.gf-tile:hover { transform: translateY(-2px); border-color: rgba(34,197,94,.4); }
.gf-tile:active { transform: scale(.98); }
.gf-tile-icon { font-size: 1.4rem; }
.gf-tile-title { font-weight: 700; font-size: .95rem; }
.gf-tile-sub { font-size: .72rem; color: var(--text-mute); }

.gf-tile-cta {
    flex-direction: row; align-items: center; gap: .75rem;
    background: linear-gradient(100deg, var(--leaf) 0%, #15803d 100%);
    border-color: transparent; color: #fff;
    box-shadow: 0 8px 28px -10px rgba(34,197,94,.6);
}
.gf-tile-cta:hover { border-color: transparent; filter: brightness(1.05); }
.gf-tile-cta .gf-tile-icon { font-size: 1.7rem; }
.gf-tile-cta .gf-tile-title { font-size: 1.1rem; }
.gf-tile-cta .gf-tile-sub { color: rgba(255,255,255,.85); }

/* ── Linhas de dados ────────────────────────────────────── */
.gf-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border-soft); }
.gf-row:last-child { border-bottom: 0; }
.gf-row-label { font-size: .8rem; color: var(--text-dim); }
.gf-row-value { font-size: .85rem; font-weight: 600; text-align: right; }

.gf-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .55rem; border-radius: 9999px; font-size: .72rem;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}

.gf-section-label {
    display: flex; align-items: center; justify-content: space-between;
    margin: 1.5rem 0 .6rem;
}
.gf-section-label h2 { font-size: .95rem; font-weight: 700; }
.gf-section-label a { font-size: .75rem; color: var(--leaf-soft); }

/* ── Calendário / Agenda ────────────────────────────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-title { font-size: 1.05rem; font-weight: 700; text-transform: capitalize; }
.cal-nav { display: inline-flex; gap: .4rem; }
.cal-nav a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.2rem; height: 2.2rem; border-radius: .65rem;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text); text-decoration: none; font-weight: 700;
}
.cal-nav a:hover { border-color: var(--leaf); color: var(--leaf-soft); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.cal-dow { text-align: center; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); padding: .25rem 0; }
.cal-cell {
    position: relative; min-height: 3.1rem;
    border-radius: .6rem; border: 1px solid var(--border-soft);
    background: var(--bg-soft); padding: .25rem;
    text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; gap: .15rem;
    transition: border-color .12s, background .12s;
}
.agenda-proximas { margin-top: .25rem; }
.gf-day-empty { text-align: center; }
/* Agenda em telas estreitas: calendário e tipos de registro mais legíveis */
@media (max-width: 420px) {
    .cal-cell { min-height: 2.55rem; padding: .18rem; border-radius: .5rem; }
    .cal-daynum { font-size: .68rem; }
    .cal-dot { width: .34rem; height: .34rem; }
    #add-lanc .lanc-tipo-btn { padding: .55rem .2rem; font-size: .65rem; line-height: 1.2; }
    #tab-dia .ev { padding: .55rem .6rem; gap: .5rem; }
    #tab-dia .ev-btn { width: 1.85rem; height: 1.85rem; }
}
.cal-cell:hover { border-color: rgba(34,197,94,.4); }
.cal-cell.is-out { opacity: .35; }
.cal-cell.is-today { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }
.cal-cell.is-sel { background: rgba(34,197,94,.12); border-color: var(--leaf); }
.cal-daynum { font-size: .72rem; font-weight: 600; color: var(--text-dim); }
.cal-cell.is-today .cal-daynum { color: var(--leaf-soft); }
.cal-dots { display: flex; flex-wrap: wrap; gap: .15rem; margin-top: auto; }
.cal-dot { width: .4rem; height: .4rem; border-radius: 9999px; }
.cal-dot.is-done { opacity: .4; }
.cal-more { font-size: .55rem; color: var(--text-mute); }

/* item de evento (lista) */
.ev {
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem .75rem; border-radius: .8rem;
    border: 1px solid var(--border); background: var(--surface);
    margin-bottom: .5rem;
}
.ev.is-done { opacity: .6; }
.ev.is-late { border-color: rgba(239,68,68,.4); }
.ev-icon {
    width: 2.1rem; height: 2.1rem; border-radius: .6rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    background: rgba(255,255,255,.04);
}
.ev-body { flex: 1; min-width: 0; }
.ev-title { font-size: .88rem; font-weight: 600; }
.ev-title.done { text-decoration: line-through; color: var(--text-mute); }
.ev-meta { font-size: .72rem; color: var(--text-mute); }
.ev-actions { display: flex; gap: .3rem; align-items: center; }
.ev-actions .ev-btn {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
}
.ev-actions .ev-btn:focus-visible {
    outline: none; box-shadow: 0 0 0 3px rgba(34,197,94,.35);
}
.ev-btn {
    width: 2rem; height: 2rem; border-radius: .55rem; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text-dim); cursor: pointer; font-size: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.ev-btn:hover { color: var(--text); }
.ev-btn.ok:hover { border-color: var(--leaf); color: var(--leaf-soft); }
.ev-btn.skip:hover { border-color: var(--warn); color: var(--warn); }
.ev-btn.del:hover { border-color: #ef4444; color: #ef4444; }

/* ── Botões ──────────────────────────────────────────────────
   Base = secundário (superfície). Variantes: -leaf (primário),
   -flora, -ghost, -danger, -soft. Tamanhos: -sm, -lg. Bloco: -block.
   Alvo de toque mínimo 44px (exceto -sm = 40px).
   ─────────────────────────────────────────────────────────── */
.gf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px;
    padding: .6rem 1rem; border-radius: .75rem; font-weight: 600; font-size: .85rem;
    line-height: 1.2; white-space: nowrap; text-decoration: none;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    cursor: pointer; user-select: none;
    transition: filter .12s, transform .12s, border-color .12s, background .12s;
}
.gf-btn:hover { border-color: #3a3a46; filter: brightness(1.08); }
.gf-btn:active { transform: scale(.97); }
.gf-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
.gf-btn:disabled, .gf-btn[aria-disabled="true"], .gf-btn.is-disabled {
    opacity: .5; cursor: not-allowed; filter: none; transform: none; pointer-events: none;
}

.gf-btn-leaf, .gf-btn-primary {
    background: linear-gradient(180deg, var(--leaf) 0%, #16a34a 100%);
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px -8px rgba(34,197,94,.55);
}
.gf-btn-leaf:hover, .gf-btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
.gf-btn-flora { background: var(--flora); border-color: transparent; color: #fff; }
.gf-btn-flora:hover { border-color: transparent; }
.gf-btn-secondary { background: var(--surface-2); color: var(--text); }
.gf-btn-soft { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.25); color: var(--leaf-soft); }
.gf-btn-soft:hover { border-color: rgba(34,197,94,.45); }
.gf-btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.gf-btn-ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; color: var(--text); }
.gf-btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #f87171; }
.gf-btn-danger:hover { border-color: rgba(239,68,68,.6); }

.gf-btn-sm { min-height: 40px; padding: .45rem .8rem; font-size: .78rem; border-radius: .65rem; }
.gf-btn-lg { min-height: 52px; padding: .85rem 1.25rem; font-size: 1rem; border-radius: .9rem; }
.gf-btn-block { display: flex; width: 100%; }
.gf-btn-icon { width: 44px; padding: 0; }
.gf-btn-sm.gf-btn-icon { width: 40px; }

/* ── Abas ────────────────────────────────────────────────── */
.gf-tabs {
    display: flex; gap: .25rem; padding: .25rem;
    border-radius: .9rem; border: 1px solid var(--border); background: var(--bg-soft);
}
.gf-tab {
    flex: 1; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border-radius: .7rem; font-size: .85rem; font-weight: 600;
    color: var(--text-dim); background: transparent; border: 0; cursor: pointer;
    transition: background .12s, color .12s;
}
.gf-tab:hover { color: var(--text); }
.gf-tab.is-on, .gf-tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); }
.gf-tab-badge {
    min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 9999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; background: var(--leaf); color: #fff;
}
.gf-tab-badge.is-late { background: #ef4444; }
.gf-panel[hidden] { display: none !important; }

/* ── Alertas inline ──────────────────────────────────────── */
.gf-alert { border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .85rem; border: 1px solid; }
.gf-alert-ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #86efac; }
.gf-alert-err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.gf-alert-warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fde68a; }

/* ── Collapsible padrão ──────────────────────────────────── */
.gf-collapse > summary {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    min-height: 48px; padding: .75rem 1rem; cursor: pointer;
    font-size: .9rem; font-weight: 600; color: var(--text-dim);
    list-style: none;
}
.gf-collapse > summary::-webkit-details-marker { display: none; }
.gf-collapse > summary::after { content: '▾'; color: var(--text-mute); transition: transform .15s; }
.gf-collapse[open] > summary::after { transform: rotate(180deg); }
.gf-collapse[open] > summary { color: var(--text); }
.gf-collapse-body { border-top: 1px solid var(--border); padding: .75rem 1rem 1rem; }

/* ── Campos de formulário (globais) ──────────────────────── */
.gf-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-dim);
}
.gf-input {
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: .6rem .75rem;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--text);
    transition: border-color .12s, box-shadow .12s;
    -webkit-appearance: none;
    appearance: none;
}
.gf-input::placeholder { color: var(--text-mute); }
.gf-input:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
/* select: seta custom + opções legíveis no popup nativo */
select.gf-input {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 1rem;
    cursor: pointer;
}
.gf-input option,
.gf-input optgroup {
    background: #24242d;
    color: #f4f4f5;
}
textarea.gf-input { resize: vertical; min-height: 4rem; }
/* date pickers em tema escuro */
.gf-input[type="date"]::-webkit-calendar-picker-indicator,
.gf-input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.gf-input:disabled { opacity: .55; cursor: not-allowed; }
/* checkbox / linha de opção com alvo de toque */
.gf-check {
    display: flex; align-items: center; gap: .75rem; min-height: 48px;
    padding: .6rem .9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); cursor: pointer;
    font-size: .875rem;
}
.gf-check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--leaf); flex-shrink: 0; }
.gf-help { margin-top: .3rem; font-size: .72rem; color: var(--text-mute); }

/* ── Shell responsivo (sidebar ≥ 900px, bottom nav abaixo) ──
   .gf-shell.is-app : coluna compacta (max 32rem) + bottom nav sempre.
   .gf-shell.is-web : largura fluida; sidebar a partir de 900px e,
                      abaixo disso, bottom nav. Nunca fica sem navegação.
   ─────────────────────────────────────────────────────────── */
:root { --gf-sidebar-w: 14.5rem; --gf-bottomnav-h: 4.25rem; --gf-bp-sidebar: 900px; }

.gf-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.gf-sidebar {
    display: none;
    width: var(--gf-sidebar-w); flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
}
.gf-sidebar-brand { display: flex; align-items: center; gap: .5rem; padding: 1rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.gf-sidebar-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; }
.gf-sidebar-link {
    display: flex; align-items: center; gap: .75rem; min-height: 44px;
    padding: .55rem .75rem; border-radius: .75rem; font-size: .875rem;
    color: var(--text-dim); text-decoration: none; transition: background .12s, color .12s;
}
.gf-sidebar-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.gf-sidebar-link.is-on { background: rgba(34,197,94,.16); color: var(--leaf-soft); font-weight: 600; }
.gf-sidebar-link svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.gf-sidebar-link:focus-visible,
.gf-sidebar-sublink:focus-visible { outline: 2px solid var(--leaf-soft); outline-offset: 2px; }
.gf-sidebar-sub {
    display: flex; flex-direction: column; gap: .1rem;
    margin: 0 0 .35rem .7rem; padding-left: .55rem;
    border-left: 2px solid rgba(34, 197, 94, .35);
    min-width: 0;
}
.gf-sidebar-sublink {
    display: flex; align-items: center; min-height: 36px; padding: .3rem .6rem;
    border-radius: .6rem; font-size: .8rem; color: var(--text-dim); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gf-sidebar-sublink:hover { background: rgba(255,255,255,.05); color: var(--text); }
.gf-sidebar-sublink.is-on { background: rgba(34,197,94,.1); color: var(--leaf-soft); font-weight: 700; }
.gf-sidebar-foot { border-top: 1px solid var(--border); padding: .75rem; display: flex; flex-direction: column; gap: .35rem; font-size: .75rem; color: var(--text-mute); }
.gf-sidebar-ciclo {
    margin: .25rem .75rem .75rem; padding: .7rem .75rem;
    border: 1px solid var(--border); border-radius: .75rem;
    background: rgba(34, 197, 94, .08);
}
.gf-sidebar-ciclo p { margin: 0; }
.gf-sidebar-ciclo-nome {
    margin: .2rem 0 .4rem; font-size: .95rem; font-weight: 700; line-height: 1.25;
    word-break: break-word;
}
.gf-ciclo-kicker {
    display: none; font-size: .62rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-mute);
}
.gf-ciclo-estado {
    display: inline-flex; align-items: center; width: fit-content; flex: 0 0 auto;
    padding: .1rem .45rem; border-radius: 999px;
    background: rgba(34, 197, 94, .16); color: var(--leaf-soft);
    font-size: .65rem; font-weight: 700;
}
.gf-ciclo-foco {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: .05rem; min-width: 0; max-width: 9.5rem;
    padding: .28rem .55rem; border: 1px solid var(--border); border-radius: .75rem;
    background: rgba(34, 197, 94, .08);
}
.gf-ciclo-foco .gf-ciclo-kicker {
    display: block; width: 100%; white-space: nowrap; line-height: 1.1;
}
.gf-ciclo-nome, .gf-ciclo-select {
    min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .75rem; font-weight: 700;
}
.gf-ciclo-foco .gf-ciclo-nome,
.gf-ciclo-foco .gf-ciclo-select {
    width: 100%; font-size: .68rem; font-weight: 600; line-height: 1.2;
}
.gf-ciclo-select {
    width: 100%; border: 0; background: transparent; color: inherit; padding: 0;
}
@media (max-width: 420px) {
    .gf-ciclo-foco { max-width: 7.5rem; }
}
@media (min-width: 900px) {
    .gf-ciclo-kicker { display: block; }
    .gf-ciclo-foco { max-width: 14rem; padding: .3rem .65rem; }
}

.gf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gf-container { width: 100%; margin: 0 auto; max-width: 32rem; padding-left: 1rem; padding-right: 1rem; }
.gf-shell.is-web .gf-container { max-width: 72rem; }

.gf-topbar {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(18,18,22,.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gf-topbar .gf-container {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    min-height: 56px; min-width: 0; padding-top: .4rem; padding-bottom: .4rem;
}
.gf-topbar .gf-container > div:last-child {
    display: flex; align-items: center; gap: .35rem; min-width: 0; flex-shrink: 1; justify-content: flex-end;
}
/* Evita rolagem horizontal no mobile: marca só "GG" em telas estreitas */
@media (max-width: 420px) {
    .gf-brand-text { display: none; }
    .gf-topbar .gf-container { gap: .35rem; }
}
.gf-shell, .gf-main { min-width: 0; max-width: 100%; }
body { overflow-x: clip; }

.gf-content { flex: 1; padding-top: 1rem; padding-bottom: calc(var(--gf-bottomnav-h) + 1.5rem + env(safe-area-inset-bottom, 0px)); }
.gf-shell.no-nav .gf-content { padding-bottom: 1.5rem; }

.gf-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    border-top: 1px solid var(--border);
    background: rgba(29,29,36,.95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.gf-bottomnav-inner { display: flex; justify-content: space-around; max-width: 32rem; margin: 0 auto; padding: .35rem .25rem; }
.gf-bottomnav-link {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
    min-height: 52px; padding: .4rem .25rem; border-radius: .75rem;
    font-size: .62rem; color: var(--text-dim); text-decoration: none;
}
.gf-bottomnav-link svg { width: 1.35rem; height: 1.35rem; }
.gf-bottomnav-link.is-on { color: var(--leaf-soft); }
.gf-bottomnav-link:active { background: rgba(255,255,255,.05); }
@media (min-width: 400px) { .gf-bottomnav-link { font-size: .7rem; } .gf-bottomnav-link svg { width: 1.5rem; height: 1.5rem; } }

/* elementos que só fazem sentido quando a sidebar está visível (ou não) */
.gf-show-when-sidebar { display: none !important; }

@media (min-width: 900px) {
    .gf-shell.is-web .gf-sidebar-ciclo { display: none; }
    .gf-shell.is-web .gf-sidebar { display: flex; }
    .gf-shell.is-web .gf-bottomnav { display: none; }
    .gf-shell.is-web .gf-content { padding-bottom: 2.5rem; }
    .gf-shell.is-web .gf-container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .gf-shell.is-web .gf-hide-when-sidebar { display: none !important; }
    .gf-shell.is-web .gf-show-when-sidebar { display: block !important; }
    .gf-shell.is-web .gf-show-when-sidebar.gf-flex { display: flex !important; }
}

/* grades de página que abrem em 2 colunas apenas no modo amplo */
.gf-two-col { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1200px) {
    .gf-shell.is-web .gf-two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
/* quando a página abre em duas colunas, as abas viram colunas */
@media (min-width: 1200px) {
    .gf-shell.is-web .gf-tabs.gf-tabs-split { display: none; }
    .gf-shell.is-web .gf-two-col > .gf-panel[hidden] { display: block !important; }
}
/* Agenda no computador: calendário e próximas tarefas lado a lado */
.agenda-ir-lanc { display: none; }
.agenda-prox-nav { display: none; align-items: center; gap: .35rem; }
.agenda-prox-nav[hidden] { display: none !important; }
.agenda-proximas .ev[hidden] { display: none !important; }
.agenda-prox-nav button {
    width: 2rem; height: 2rem; border-radius: .55rem;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text); font-weight: 700; cursor: pointer;
}
.agenda-prox-nav button:disabled { opacity: .35; cursor: default; }
.agenda-prox-nav span { min-width: 2.6rem; text-align: center; font-size: .75rem; color: var(--text-dim); }
@media (min-width: 1200px) {
    .gf-shell.is-web .agenda-page { max-width: 64rem; }
    .gf-shell.is-web #agenda-tabs { display: flex; }
    .gf-shell.is-web .agenda-desk { grid-template-columns: minmax(0, 1fr); }
    .gf-shell.is-web .agenda-desk > .gf-panel[hidden] { display: none !important; }
    .gf-shell.is-web .agenda-lado {
        display: grid;
        grid-template-columns: minmax(0, 40rem) minmax(16rem, 22rem);
        gap: 1.25rem;
        align-items: start;
        justify-content: start;
    }
    .gf-shell.is-web .agenda-cal-card .cal-cell { min-height: 4.6rem; }
    .gf-shell.is-web .agenda-cal-card .cal-daynum { font-size: .9rem; }
    .gf-shell.is-web .agenda-proximas { margin-top: 0; }
    .gf-shell.is-web .agenda-proximas .gf-section-label { margin-top: 0; }
    .gf-shell.is-web .agenda-prox-nav { display: flex; }
    .gf-shell.is-web .agenda-ir-lanc { display: flex; margin-top: 1rem; }
}

/* ── Dashboard "Hoje" ────────────────────────────────────── */
.gf-today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.gf-today-date { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.gf-today-sub { font-size: .8rem; color: var(--text-dim); margin-top: .2rem; }

.gf-phase-strip { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.gf-phase-strip .gf-timeline { margin-top: 0; flex: 1 1 100%; }
.gf-phase-strip-muted { margin-top: .35rem; gap: .75rem; }

.gf-next-action {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 197, 94, .35);
    background: linear-gradient(160deg, rgba(34, 197, 94, .12), var(--surface));
}
.gf-next-action.is-late {
    border-color: rgba(248, 113, 113, .4);
    background: linear-gradient(160deg, rgba(248, 113, 113, .1), var(--surface));
}
.gf-next-action.is-calm {
    border-color: var(--border);
    background: var(--surface);
}
.gf-next-action-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin-top: .15rem; }
.gf-next-action-desc { font-size: .85rem; color: var(--text-dim); margin-top: .35rem; line-height: 1.4; }
.gf-next-action-ctas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

.gf-quick-reg {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .4rem;
}
.gf-quick-reg-item {
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    padding: .65rem .25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: .7rem;
    font-weight: 600;
    text-align: center;
    min-height: 64px;
    transition: border-color .12s, transform .12s;
}
.gf-quick-reg-item:hover { border-color: rgba(34, 197, 94, .45); transform: translateY(-1px); }
.gf-quick-reg-emoji { font-size: 1.15rem; line-height: 1; }
@media (max-width: 420px) {
    .gf-quick-reg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gf-check-hint { margin-top: .25rem; }
.gf-check-hint-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    background: transparent;
    color: var(--text-dim);
    font-size: .8rem;
    text-align: left;
    cursor: pointer;
}
.gf-check-hint-btn:hover { border-color: rgba(34, 197, 94, .4); color: var(--text); }

.gf-dash-more { margin-top: 1.5rem; }
.gf-dash-more > summary { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.gf-dash-more[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.gf-today-count { margin: 0; flex-shrink: 0; text-align: right; }
.gf-today-count-num { display: block; font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.gf-rotina-breve, .gf-cultivo-breve { display: none; margin: 0; }
@media (min-width: 900px) {
    .gf-shell.is-web .gf-dash.gf-two-col {
        width: 100%;
        grid-template-columns: minmax(0, 58rem);
        justify-content: center;
    }
    /* Avisos do Hoje alinhados à coluna do conteúdo. */
    .gf-shell.is-web .gf-dash-avisos { max-width: 58rem; margin-left: auto; margin-right: auto; }
    .gf-shell.is-web .gf-dash .gf-today-count { display: flex; align-items: baseline; gap: .35rem; }
    .gf-shell.is-web .gf-dash .gf-today-count-num { display: inline; font-size: 1rem; font-weight: 700; }
    .gf-shell.is-web .gf-dash-hub { display: none; }
    .gf-shell.is-web .gf-dash-more > summary {
        display: block; list-style: none; pointer-events: none;
        border: 0; background: transparent; padding: .2rem 0 0;
        font-size: .72rem; font-weight: 700; letter-spacing: .04em;
        text-transform: uppercase; color: var(--text-mute);
    }
    .gf-shell.is-web .gf-dash-more > summary::-webkit-details-marker { display: none; }
    .gf-shell.is-web .gf-dash-more > summary::marker { content: none; }
    .gf-shell.is-web .gf-rotina-breve,
    .gf-shell.is-web .gf-cultivo-breve { display: block; font-size: .95rem; font-weight: 700; }
    .gf-shell.is-web .gf-rotina-completa,
    .gf-shell.is-web .gf-cultivo-lista,
    .gf-shell.is-web .gf-clima-item ~ .gf-clima-item { display: none; }
}
.gf-empty { padding: 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--border); color: var(--text-mute); font-size: .85rem; text-align: center; }

/* Área de trabalho dentro de um módulo. No celular a navegação fica acima do conteúdo. */
.gf-area { display: flex; flex-direction: column; gap: .85rem; }
.gf-subnav {
    display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: 0;
}
.gf-subnav-link {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    padding: .45rem .55rem; border-radius: .75rem; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text-dim); text-decoration: none;
    font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.2;
}
.gf-subnav-link:hover { color: var(--text); }
.gf-subnav-link.is-on { background: rgba(34,197,94,.16); border-color: transparent; color: var(--leaf-soft); }
.gf-subnav-link:focus-visible { outline: 2px solid var(--leaf-soft); outline-offset: 2px; }
.gf-pagehead { margin: 0; }
.gf-pagehead h1 { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.gf-pagehead p { margin: .35rem 0 0; color: var(--text-dim); font-size: .9rem; }
.gf-kicker {
    margin: 0; color: var(--text-mute); font-size: .68rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
}
.gf-choice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.gf-choice .gf-btn { width: 100%; padding-left: .4rem; padding-right: .4rem; }
@media (max-width: 380px) {
    .gf-choice { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
    .gf-shell.is-web .gf-area {
        display: grid;
        grid-template-columns: 13.5rem minmax(0, 42rem);
        grid-template-areas: "nav head" "nav main";
        column-gap: 1.5rem; row-gap: .35rem; align-items: start;
    }
    .gf-shell.is-web .gf-subnav {
        grid-area: nav; display: flex; flex-direction: column;
        position: sticky; top: 4.75rem;
    }
    .gf-shell.is-web .gf-subnav-link { width: 100%; justify-content: flex-start; text-align: left; }
    .gf-shell.is-web .gf-pagehead { grid-area: head; }
    .gf-shell.is-web .gf-area-main { grid-area: main; }
}

/* ── Área de estudos ─────────────────────────────────────── */
.estudo-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .35rem .7rem; border-radius: 9999px;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text-dim); font-size: .78rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.estudo-chip:hover { color: var(--text); border-color: var(--leaf); }
.estudo-chip.is-on { background: var(--leaf); border-color: transparent; color: #fff; }

.estudo-star {
    background: transparent; border: none; cursor: pointer;
    font-size: 1.25rem; line-height: 1; color: var(--text-mute);
    padding: .15rem .25rem;
}
.estudo-star.is-on { color: #fbbf24; }

.estudo-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.estudo-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.estudo-table thead th {
    background: var(--surface-2); color: var(--text);
    text-align: left; font-weight: 700; padding: .55rem .7rem;
    position: sticky; top: 0; white-space: nowrap;
}
.estudo-table tbody td {
    padding: .5rem .7rem; border-top: 1px solid var(--border-soft);
    color: var(--text-dim); vertical-align: top;
}
.estudo-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.estudo-table tbody td:first-child { color: var(--text); font-weight: 600; }
.estudo-legenda { margin-top: .5rem; font-size: .72rem; color: var(--text-mute); font-style: italic; }
.estudo-texto { line-height: 1.55; }

/* Matriz de VPD */
.estudo-vpd td, .estudo-vpd th { text-align: center; padding: .35rem .45rem; font-size: .72rem; white-space: nowrap; }
.estudo-vpd thead th { background: var(--surface-2); }
.estudo-vpd tbody th {
    background: var(--surface-2); color: var(--text); font-weight: 700;
    position: sticky; left: 0; z-index: 1;
}
.estudo-vpd tbody td { color: var(--text); border-top: 1px solid rgba(0,0,0,.25); font-weight: 600; }
.estudo-vpd tbody tr:nth-child(even) td { background: none; } /* cor vem do estilo inline da zona */
.vpd-legenda { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .7rem; color: var(--text-dim); }
.vpd-legenda span { display: inline-flex; align-items: center; gap: .35rem; }
.vpd-legenda i { width: .85rem; height: .85rem; border-radius: .25rem; display: inline-block; }

/* Clima de referência */
.clima-card details > summary { list-style: none; }
.clima-card details > summary::-webkit-details-marker { display: none; }
.clima-agora { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.clima-metric { display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .6rem .3rem; border-radius: .75rem; background: var(--surface-2); }
.clima-val { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.clima-cap { margin-top: .15rem; font-size: .65rem; color: var(--text-mute); }
.clima-zona { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem;
    margin-top: .15rem; padding: .5rem .7rem; border-radius: .75rem; font-weight: 700; font-size: .85rem;
    color: var(--zc); background: color-mix(in srgb, var(--zc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--zc) 35%, transparent); }
.clima-zona-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--zc); }
.clima-hora { margin-left: auto; font-size: .65rem; font-weight: 500; color: var(--text-mute); }
.clima-resumo { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border-soft); }
.clima-resumo-head { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.clima-resumo-head strong { color: var(--text); }
.clima-periodos { margin-top: .6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.clima-periodo { display: flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .5rem .2rem; border-radius: .65rem; background: var(--surface-2);
    border-top: 3px solid var(--zc); }
.clima-periodo-nome { font-size: .62rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .02em; }
.clima-periodo-vpd { font-size: 1rem; font-weight: 800; color: var(--zc); }
.clima-periodo-det { font-size: .65rem; color: var(--text-dim); }
.clima-fonte { margin-top: .55rem; font-size: .65rem; color: var(--text-mute); font-style: italic; }

/* Rotinas: lista e formulário no mesmo eixo, um estado por vez */
.rotinas-pagina { min-width: 0; max-width: 40rem; }
.rotinas-topo { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; margin-bottom: 1rem; }
.rotinas-topo .gf-btn { width: 100%; }
.rotinas-lista { display: flex; flex-direction: column; gap: .75rem; }
.rotinas-card { min-width: 0; }
.rotinas-card-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rotinas-card-acoes > form { display: flex; margin: 0; }
.rotinas-card-acoes .gf-btn { min-height: 44px; max-width: 100%; }
.rotinas-card-acoes .gf-btn-icon { width: 44px; min-width: 44px; max-width: 44px; }
.rotinas-vazio { text-align: left; }
.rotinas-vazio p { margin: 0; line-height: 1.45; }
.rotinas-form { min-width: 0; }
.rotinas-form .gf-input { width: 100%; max-width: 100%; min-width: 0; }
.rotinas-campos { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
@media (min-width: 520px) {
    .rotinas-campos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 720px) {
    .rotinas-topo { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .rotinas-topo .gf-btn { width: auto; }
}

.historico-pagina { min-width: 0; }
.historico-topo {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem;
}
.historico-topo form { margin: 0; }
.historico-topo .gf-btn { width: 100%; }
@media (min-width: 720px) {
    .historico-topo .gf-btn { width: auto; }
}
.gf-hist-breve a {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem;
    min-height: 44px; padding: .6rem .75rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: inherit; text-decoration: none;
}
.gf-hist-breve a:hover { border-color: rgba(34,197,94,.45); }
.gf-hist-breve strong { font-size: .9rem; }
.gf-hist-breve span { color: var(--text-dim); font-size: .82rem; }
.historico-nav {
    display: grid; grid-template-columns: 1fr; gap: .5rem; margin-bottom: .75rem;
}
.historico-nav .gf-btn { width: 100%; white-space: normal; }
.historico-nav-rotulo { margin: 0; text-align: center; font-size: .9rem; font-weight: 700; }
.historico-data {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .75rem;
}
.historico-data label { font-size: .8rem; font-weight: 700; color: var(--text-dim); }
.historico-data input[type="date"] {
    min-height: 44px; min-width: 0; flex: 1 1 12rem; max-width: 100%;
    border-radius: .75rem; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); padding: 0 .75rem;
    color-scheme: dark;
}
.historico-data-enviar {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.historico-data .gf-btn { flex: 0 1 auto; }
@media (max-width: 719px) {
    .historico-data input[type="date"],
    .historico-data .gf-btn { flex-basis: 100%; }
}
.historico-filtros { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.historico-filtros .gf-btn { white-space: normal; }
.historico-filtros .gf-btn.is-on {
    background: rgba(34,197,94,.16); border-color: transparent; color: var(--leaf-soft);
}
.historico-planta {
    display: inline-block; margin-left: .35rem; padding: .1rem .5rem;
    border-radius: 999px; background: rgba(34,197,94,.16); color: var(--leaf-soft);
    font-size: .75rem; font-weight: 700;
}
.plantas-pagina { max-width: 40rem; }
.plantas-topo, .plantas-card, .plantas-form, .plantas-flash, .plantas-erros, .plantas-nota { margin-bottom: 1rem; }
.plantas-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.plantas-topo h1, .plantas-secao { font-size: 1.35rem; font-weight: 800; }
.plantas-topo p, .plantas-ajuda, .plantas-nota { color: var(--text-dim); font-size: .9rem; }
.plantas-lista { display: flex; flex-direction: column; gap: .75rem; }
.plantas-card, .plantas-form, .plantas-flash, .plantas-erros {
    border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1rem;
}
.plantas-card h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.plantas-card h2 a { color: inherit; }
.plantas-card p + p { margin-top: .25rem; }
.plantas-acoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.plantas-acoes .gf-btn, .plantas-form .gf-btn, .plantas-excluir .gf-btn { min-height: 44px; }
.plantas-form .gf-input, .plantas-form select, .plantas-form textarea { width: 100%; min-height: 44px; margin-bottom: .75rem; }
.plantas-form textarea { min-height: 6rem; }
.plantas-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: .25rem 0 .75rem; font-weight: 700; }
.plantas-check input { width: 1.25rem; height: 1.25rem; }
.plantas-flash { color: var(--leaf-soft); }
.plantas-erros { color: #fca5a5; }
.plantas-secao { margin: 1.25rem 0 .75rem; }
.plantas-excluir { margin-top: 1.5rem; }
@media (max-width: 719px) {
    .plantas-topo .gf-btn, .plantas-acoes .gf-btn, .plantas-form .gf-btn, .plantas-excluir .gf-btn { width: 100%; }
}
@media (min-width: 720px) {
    .historico-nav { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
    .historico-nav .gf-btn { width: auto; }
}

/* Resposta do assistente (MarkdownSimples) */
.gf-md > * + * { margin-top: .6rem; }
.gf-md h3 { font-size: .95rem; font-weight: 700; color: #fff; }
.gf-md h4 { font-size: .875rem; font-weight: 600; color: #e5e7eb; }
.gf-md ul { list-style: disc; padding-left: 1.15rem; }
.gf-md ol { list-style: decimal; padding-left: 1.25rem; }
.gf-md li + li { margin-top: .3rem; }
.gf-md li::marker { color: var(--leaf-400, #4ade80); }
.gf-md strong { color: #fff; font-weight: 650; }
.gf-md blockquote { border-left: 3px solid rgba(74, 222, 128, .35); padding-left: .75rem; color: #9ca3af; }
.gf-md code { border-radius: .3rem; background: rgba(255, 255, 255, .08); padding: .05rem .3rem; font-size: .8em; }
.gf-md p { line-height: 1.55; }

/* ── Barra inferior: botão ＋ e painel de ação rápida ───────── */
.gf-bottomnav-mais { justify-content: center; }
.gf-bottomnav-mais-circulo {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; margin-top: -1.1rem; border-radius: 9999px;
    background: var(--leaf); color: #0f0f13;
    box-shadow: 0 8px 20px -6px rgba(34,197,94,.55), 0 0 0 4px rgba(29,29,36,.95);
}
.gf-bottomnav-mais .gf-bottomnav-mais-circulo svg { width: 1.5rem; height: 1.5rem; }
.gf-bottomnav-mais:active .gf-bottomnav-mais-circulo { transform: scale(.95); }
html.gf-sheet-aberto { overflow: hidden; }
.gf-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.gf-sheet[hidden] { display: none; }
.gf-sheet-fundo { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.gf-sheet-painel {
    position: relative; width: 100%; max-width: 32rem; max-height: 85vh; overflow-y: auto;
    padding: .6rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 1.25rem 1.25rem 0 0; border: 1px solid var(--border); border-bottom: 0;
    background: #1d1d24; animation: gf-sheet-sobe .22s ease-out;
}
@keyframes gf-sheet-sobe { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gf-sheet-painel { animation: none; } }
.gf-sheet-alca { width: 2.5rem; height: .3rem; margin: 0 auto .75rem; border-radius: 9999px; background: rgba(255,255,255,.18); }
.gf-sheet-titulo { margin: .5rem 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.gf-sheet-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gf-sheet-item {
    display: flex; flex-direction: column; align-items: center; gap: .3rem; min-height: 4.5rem; justify-content: center;
    border-radius: 1rem; border: 1px solid var(--border); background: rgba(255,255,255,.03);
    font-size: .8rem; font-weight: 600; color: #fff; text-decoration: none;
}
.gf-sheet-item span { font-size: 1.4rem; }
.gf-sheet-item:active, .gf-sheet-linha:active { background: rgba(34,197,94,.12); }
.gf-sheet-lista { display: grid; gap: .5rem; }
.gf-sheet-linha {
    display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 1rem;
    border: 1px solid var(--border); background: rgba(255,255,255,.03); color: #fff; text-decoration: none;
}
.gf-sheet-linha > span:first-child { font-size: 1.4rem; }
.gf-sheet-linha strong { display: block; font-size: .9rem; }
.gf-sheet-linha small { display: block; font-size: .75rem; color: var(--text-dim); }
.gf-sheet-fechar { width: 100%; margin-top: .9rem; min-height: 46px; border-radius: .9rem; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-weight: 600; }

/* Hoje: grupos de plantas (a fase vem de cada planta) */
.gf-grupos-hoje { margin-top: .6rem; display: grid; gap: .6rem; }
.gf-grupos-resumo { font-size: .8rem; font-weight: 600; color: #a7f3d0; }
.gf-fase-ciclo-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(167,243,208,.35); text-underline-offset: 2px; }
.gf-fase-ciclo-link strong { color: #fff; }
.gf-grupos-lista { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .gf-grupos-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gf-grupo-card {
    display: grid; gap: .15rem; padding: .7rem .85rem; border-radius: .85rem; min-height: 44px;
    border: 1px solid rgba(34,197,94,.28); background: rgba(34,197,94,.07); color: inherit; text-decoration: none;
}
.gf-grupo-card:hover, .gf-grupo-card:focus-visible { border-color: rgba(34,197,94,.6); }
.gf-grupo-card.is-flora { border-color: rgba(236,72,153,.32); background: rgba(236,72,153,.07); }
.gf-grupo-nome { font-size: .9rem; font-weight: 700; color: #f3f4f6; }
.gf-grupo-fase { font-size: .8rem; font-weight: 700; color: #4ade80; }
.gf-grupo-card.is-flora .gf-grupo-fase { color: #f472b6; }
.gf-grupo-dia { font-weight: 500; color: #9ca3af; }
.gf-grupo-vaso { font-size: .75rem; color: #9ca3af; }
.gf-grupos-acoes { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
