@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url(/fonts/outfit-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url(/fonts/outfit-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(/fonts/outfit-latin-600-normal.woff2) format('woff2'); }

/* AG CORE: grafite, petróleo e dourado do site */
:root, body[data-brand="agcore"] {
  --side: #14171B; --side2: #20252B; --side-text: #C9CFD6; --side-mute: #808A95;
  --paper: #F3F4F6; --card: #FFFFFF; --ink: #14171B; --ink2: #3B434C; --mute: #6B7480; --line: #E4E7EB; --line2: #D0D5DB;
  --brand: #0A5A7E; --brand-soft: #E2EEF4; --gold: #D4A93A; --gold-soft: #FAF2DD;
  --ok: #1F8A5B; --ok-soft: #E3F4EC; --warn: #B76E00; --warn-soft: #FDF0DA; --bad: #C2413A; --bad-soft: #FBE7E5;
  --display: 'Outfit', system-ui, sans-serif; --body: 'Outfit', system-ui, sans-serif; --mono: 'Outfit', system-ui, sans-serif;
  --dw: 600; --dt: -0.01em; --r: 12px;
}
/* MAC Compliance: preto e dourado do logotipo */
body[data-brand="mac"] {
  --side: #111111; --side2: #1F1F1F; --side-text: #D6D3CD; --side-mute: #8A867E;
  --paper: #F4F4F4; --card: #FFFFFF; --ink: #141414; --ink2: #3C3C3C; --mute: #707070; --line: #E5E5E5; --line2: #D2D2D2;
  --brand: #8A6414; --brand-soft: #F4EEDF; --gold: #B8892A; --gold-soft: #F6EFDD;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stat .v, .big, .lot .v, .donut text { font-variant-numeric: lining-nums tabular-nums; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dt); margin: 0; line-height: 1.15; color: var(--ink); }
h1 { font-size: 28px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.mute { color: var(--mute); } .small { font-size: 13px; } .xs { font-size: 12px; }
.mono { font-size: 12.5px; }
.eyebrow { font-size: 13.5px; font-weight: 500; color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- estrutura ---------- */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--side) 248px, var(--paper) 248px); }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; }
.side .logo { padding: 2px 10px 22px; }
.side .logo img { height: 40px; display: block; max-width: 100%; }
body[data-brand="mac"] .side .logo img { height: 34px; }
.side .client { padding: 12px 12px; border-radius: 10px; background: var(--side2); margin-bottom: 18px; }
.side .client b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.side .client span { font-size: 12px; color: var(--side-mute); }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side nav .lbl { font-size: 12px; font-weight: 500; color: var(--side-mute); padding: 16px 12px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--side-text); font-size: 14px; }
.side nav a:hover { background: var(--side2); text-decoration: none; color: #fff; }
.side nav a.on { background: #fff; color: var(--side); font-weight: 600; }
body[data-brand="mac"] .side nav a.on { color: #111; }
.side nav a .badge { margin-left: auto; font-size: 11.5px; background: rgba(255,255,255,.12); color: #fff; padding: 1px 7px; border-radius: 99px; }
.side nav a.on .badge { background: var(--bad-soft); color: var(--bad); }
.side nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.side .me { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 8px 0; display: flex; align-items: center; gap: 10px; position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #111; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.side .me .who { min-width: 0; flex: 1; }
.side .me .who b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.side .me .who span { font-size: 11.5px; color: var(--side-mute); }
.iconbtn { background: none; border: 0; color: inherit; padding: 6px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { background: var(--side2); }
.iconbtn svg { width: 18px; height: 18px; }
.menu { position: absolute; bottom: 52px; left: 6px; right: 6px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 6px; z-index: 40; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--paper); }

.main { min-width: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 34px 40px 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.head .sub { color: var(--mute); margin-top: 6px; font-size: 14px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 18px 40px 28px; color: var(--mute); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* topo no celular */
.mtop, .mnav { display: none; }

/* ---------- blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.card > h2 { margin-bottom: 4px; }
.card .cap { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.mt { margin-top: 18px; } .mt2 { margin-top: 30px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrapr { flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 9px 15px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--mute); }
.btn.primary { background: var(--side); border-color: var(--side); color: #fff; }
.btn.primary:hover { background: var(--side2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #111; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--paper); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .55; cursor: wait; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--paper); color: var(--ink2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: #8A6414; }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.plain::before { display: none; }
.tag { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 5px; background: var(--gold-soft); color: #8A6414; }
.tag.agcore { background: #E3F0F5; color: #0A5C7A; } .tag.mac { background: #F5EEDD; color: #8A6414; }

/* ---------- régua do projeto (assinatura) ---------- */
.ruler { position: relative; padding: 8px 0 0; }
.ruler svg { display: block; width: 100%; height: auto; overflow: visible; }
.ruler .phase-lbl { font-family: var(--body); font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.ruler .phase-sub { font-family: var(--body); font-size: 11.5px; fill: var(--mute); }
.ruler .tick { font-family: var(--body); font-size: 10px; fill: var(--mute); }
.ruler .today { font-family: var(--body); font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.ruler .ms-lbl { font-family: var(--body); font-size: 11px; fill: var(--ink2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--mute); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.legend i.dia { transform: rotate(45deg); background: var(--side); width: 8px; height: 8px; }
.legend i.dia.g { background: var(--gold); }
.legend i.ln { width: 2px; height: 11px; background: var(--bad); }

/* ---------- números ---------- */
.stat .v { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--mute); margin-top: 6px; }
.meter { margin-top: 14px; }
.meter + .meter { margin-top: 16px; }
.meter .top { display: flex; justify-content: space-between; font-size: 13px; }
.meter .top b { font-weight: 600; font-size: 13px; }
.meter .track { height: 8px; border-radius: 99px; background: var(--paper); margin-top: 7px; overflow: hidden; border: 1px solid var(--line); }
.meter .track i { display: block; height: 100%; border-radius: 99px; background: var(--brand); width: 0; transition: width .6s ease; }
.meter .track i.ok { background: var(--ok); } .meter .track i.gold { background: var(--gold); }

/* lista de próximos passos */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; padding-top: 4px; }
.todo .when { flex-shrink: 0; width: 66px; font-size: 12.5px; color: var(--mute); padding-top: 2px; }
.todo .when.bad { color: var(--bad); font-weight: 500; }
.todo .what { flex: 1; min-width: 0; font-size: 14px; }
.todo .what span { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }

/* entrega em destaque */
.doc { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.doc + .doc { margin-top: 10px; }
.fico { width: 40px; height: 48px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; font-weight: 600; color: var(--mute); flex-shrink: 0; position: relative; }
.fico::after { content: ''; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--paper) 50%, var(--line2) 50%); border-bottom-left-radius: 3px; }
.fico.pdf { color: #B33A2E; } .fico.xls { color: #1F7A4D; } .fico.doc { color: #2B5FA8; }
.doc .t { font-weight: 600; font-size: 14px; }
.doc .m { font-size: 12px; color: var(--mute); margin-top: 2px; }
.doc .act { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---------- checklist ---------- */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink2); }
.seg button b { font-weight: 500; font-size: 12px; color: var(--mute); margin-left: 4px; }
.seg button.on { background: var(--side); color: #fff; }
.seg button.on b { color: rgba(255,255,255,.7); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.search { flex: 1; min-width: 200px; max-width: 320px; position: relative; }
.search input[type=search] { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mute); }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.group > summary { list-style: none; cursor: pointer; padding: 15px 20px; display: flex; align-items: center; gap: 14px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary h3 { font-family: var(--body); font-size: 15px; font-weight: 600; }
.group > summary .count { font-size: 13px; color: var(--mute); }
.group > summary .mini { width: 90px; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-left: auto; }
.group > summary .mini i { display: block; height: 100%; background: var(--ok); width: 0; }
.group > summary .chev { width: 18px; height: 18px; color: var(--mute); transition: transform .2s; }
.group[open] > summary .chev { transform: rotate(180deg); }
.it { border-top: 1px solid var(--line); padding: 14px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
.it .t { font-size: 14.5px; font-weight: 500; }
.it .m { font-size: 12.5px; color: var(--mute); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 3px; }
.it .m .late { color: var(--bad); font-weight: 500; }
.it .r { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.it .more { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); }
.it .note { background: var(--paper); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--ink2); margin-top: 4px; }
.it .resp { border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; white-space: pre-wrap; margin-top: 8px; }
.it .files { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.it.newi { background: linear-gradient(90deg, var(--gold-soft), transparent 40%); }
.fl { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.fl .ext { font-size: 10.5px; font-weight: 600; padding: 2px 5px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); color: var(--mute); }
.staff { display: flex; gap: 6px; align-items: center; grid-column: 1 / -1; padding-top: 6px; flex-wrap: wrap; }
.staff .k { font-size: 12px; font-weight: 600; color: var(--brand); margin-right: 4px; }
select.inline { width: auto; padding: 5px 8px; font-size: 13px; border-radius: 8px; }

/* ---------- cronograma (gantt) ---------- */
.gantt svg { display: block; width: 100%; height: auto; }
.gantt .gl { font-family: var(--body); font-size: 12px; fill: var(--ink); }
.gantt .gm { font-family: var(--body); font-size: 10px; fill: var(--mute); }
.gantt .gp { font-family: var(--body); font-size: 12.5px; font-weight: 600; fill: var(--brand); }

/* ---------- tabelas ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--mute); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td .s { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.tbl-wrap { overflow-x: auto; }

/* ---------- formulários ---------- */
label.f { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 14px; font-weight: 500; }
label.f > span { display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: var(--ink); outline: none; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
.drop { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 22px; text-align: center; background: var(--paper); cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { display: block; font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--mute); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--side); width: 16px; height: 16px; }
.err { color: var(--bad); font-size: 13px; margin: 4px 0 8px; }
.okmsg { color: var(--ok); font-size: 13px; font-weight: 500; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .art { background: var(--side); color: var(--side-text); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art img { height: 52px; align-self: flex-start; }
body[data-brand="mac"] .auth .art img { height: 40px; }
.auth .art .quote { font-family: var(--display); font-size: 34px; line-height: 1.2; color: #fff; max-width: 440px; font-weight: 500; }
.auth .art .quote em { font-style: normal; color: var(--gold); }
.auth .art .fine { font-size: 12px; color: var(--side-mute); }
.auth .art svg.deco { position: absolute; right: -60px; bottom: 90px; width: 420px; opacity: .5; }
.auth .form { display: grid; place-items: center; padding: 40px 24px; background: var(--card); }
.auth .form .box { width: 100%; max-width: 380px; }
.auth .form h1 { margin-bottom: 6px; }
.auth .form .lead { color: var(--mute); margin: 0 0 26px; font-size: 14px; }
.auth .mlogo { display: none; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; width: 242px; margin: 6px auto 12px; }
.qr img { display: block; width: 220px; height: 220px; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--paper); padding: 6px 8px; border-radius: 6px; word-break: break-all; font-size: 12px; }

/* ---------- modal e avisos ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10,16,26,.5); display: grid; place-items: center; z-index: 60; padding: 16px; backdrop-filter: blur(2px); }
.modal { background: var(--card); border-radius: 18px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 4px; }
.modal .lead { color: var(--mute); font-size: 14px; margin: 0 0 18px; }
.modal .bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.temp { font-family: ui-monospace, Menlo, monospace; font-size: 20px; background: var(--paper); padding: 12px; border-radius: 10px; border: 1px dashed var(--gold); text-align: center; letter-spacing: .06em; user-select: all; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 18px; z-index: 70; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); font-size: 14px; }
.notice { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--ink2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- fornecedores ---------- */
.donut { display: flex; gap: 26px; align-items: center; }
.donut svg { width: 170px; height: 170px; flex-shrink: 0; }
.donut .key { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; max-width: 520px; }
.donut .key div { display: flex; gap: 10px; align-items: baseline; }
.donut .key i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; align-self: center; }
.donut .key b { font-weight: 600; margin-left: auto; padding-left: 14px; }
.hbar { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr) 40px; gap: 6px 14px; align-items: center; font-size: 13px; }
.hbar .track { height: 12px; border-radius: 4px; background: var(--paper); display: flex; overflow: hidden; }
.hbar .track i { display: block; height: 100%; }
.hbar .n { font-size: 13px; text-align: right; color: var(--mute); }
.c-fora { background: #1F8A5B; } .c-simples { background: #D9A93A; } .c-mei { background: #E07A5F; } .c-pf { background: #A3AEBB; }
.lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.lot { padding: 4px 18px; border-left: 1px solid var(--line); }
.lot:first-child { border-left: 0; padding-left: 0; }
.lot .n { font-size: 13px; font-weight: 600; }
.lot .v { font-family: var(--display); font-size: 28px; font-weight: 600; margin-top: 4px; }
.reading p { margin: 0 0 10px; font-size: 14px; color: var(--ink2); }
.reading p:last-child { margin: 0; }

/* ---------- apresentação ---------- */
.present { position: fixed; inset: 0; background: var(--paper); z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.present .pt { display: flex; align-items: center; gap: 20px; padding: 18px 40px; background: var(--card); border-bottom: 1px solid var(--line); }
.present .pt img { height: 36px; }
body[data-brand="mac"] .present .pt img { height: 28px; }
.present .pt .ttl { font-size: 13px; color: var(--mute); }
.present .pt .ttl b { display: block; color: var(--ink); font-size: 15px; }
.present .slide { overflow: auto; padding: 36px 56px; }
.present .slide .inner { max-width: 1180px; margin: 0 auto; }
.present .slide h1 { font-size: 40px; margin-bottom: 8px; }
.present .slide .kicker { font-size: 17px; color: var(--mute); margin: 0 0 30px; max-width: 760px; }
.present .pb { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; background: var(--card); border-top: 1px solid var(--line); }
.present .dots { display: flex; gap: 8px; }
.present .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line2); cursor: pointer; padding: 0; }
.present .dots button.on { background: var(--side); width: 26px; border-radius: 99px; }
.big { font-family: var(--display); font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; background: var(--paper); }
  .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 12px; background: var(--side); padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .mtop img { height: 30px; }
  body[data-brand="mac"] .mtop img { height: 22px; }
  .mtop .sp { flex: 1; }
  .mtop .iconbtn { color: #fff; }
  .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 54px; z-index: 25; scrollbar-width: none; }
  .mnav a { white-space: nowrap; padding: 7px 12px; border-radius: 99px; font-size: 13.5px; color: var(--ink2); background: var(--paper); }
  .mnav a.on { background: var(--side); color: #fff; text-decoration: none; }
  .mnav a .badge { font-size: 11.5px; margin-left: 4px; opacity: .8; }
  .page { padding: 22px 16px 40px; }
  .foot { padding: 16px; }
  .g-main, .g2, .g3 { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 24px; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .auth .mlogo { display: block; height: 48px; margin-bottom: 28px; }
  body[data-brand="mac"] .auth .mlogo { height: 34px; }
  .lots { grid-template-columns: 1fr; gap: 14px; } .lot { border-left: 0; padding: 0; }
  .hbar { grid-template-columns: minmax(0, 1fr) 40px; } .hbar .track { grid-column: 1 / -1; order: 3; }
  .donut { flex-direction: column; align-items: flex-start; }
  .it { grid-template-columns: 1fr; } .it .r { justify-content: flex-start; }
  .card { padding: 18px; }
  .present .slide { padding: 24px 18px; } .present .pt, .present .pb { padding: 12px 16px; }
  .present .slide h1 { font-size: 28px; }
  .doc { flex-wrap: wrap; } .doc .act { margin-left: 54px; }
}

/* fases em lista (celular) */
.steps { list-style: none; margin: 14px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.steps li::before { content: ''; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); margin-top: 1px; }
.steps .done .dot { background: var(--ok); border-color: var(--ok); }
.steps .now .dot { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--card); background: var(--brand); }
.steps .k { font-size: 12.5px; color: var(--mute); }
.steps .now .k { color: var(--brand); }
.steps .n { font-weight: 600; font-size: 15px; }
.steps .s { font-size: 12.5px; color: var(--mute); }
.inline-doc { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.inline-doc:first-of-type { border-top: 0; }
.inline-doc .t { font-weight: 600; font-size: 14px; }
.inline-doc .m { font-size: 12px; color: var(--mute); margin: 2px 0 6px; }
