:root {
  --ink: #040A12; --navy: #0A1A2F; --navy-2: #296293; --steel: #123B63; --cyan: #3DDCF0; --silver: #C9D8E2;
  --teal: #0A7C92; --teal-bg: #E0F5F9;
  --bg: #EDF2F7; --panel: #FFFFFF; --line: #D5DEE9; --line-2: #E6EDF5;
  --text: #1B2433; --muted: #5B6B82; --faint: #8795AA;
  --ok: #1E7B4B; --ok-bg: #E3F4EA; --warn: #8A5A00; --warn-bg: #FFF2D6; --bad: #B42318; --bad-bg: #FDE7E4; --info: #296293; --info-bg: #E3EFF8;
  --radius: 12px; --shadow: 0 1px 2px rgba(20, 35, 60, .06), 0 4px 16px rgba(20, 35, 60, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0; color: var(--navy); }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.hide { display: none !important; } .grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: .6rem; } .wrap { flex-wrap: wrap; } .gap-s { gap: .35rem; }
.mt { margin-top: 1rem; } .mt-s { margin-top: .5rem; } .mb { margin-bottom: 1rem; } .right { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }

/* boot / spinner */
.boot { display: grid; place-items: center; min-height: 100vh; gap: .8rem; color: #9DB5CA; align-content: center; background: #040A12; }
.boot img { width: 120px; filter: drop-shadow(0 0 28px rgba(61, 220, 240, .35)); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: #19BFDB; border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; color: #fff; background: radial-gradient(900px 620px at 28% 42%, #10405F 0%, #08182A 52%, #040A12 100%); }
.login .brand { padding: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; }
.login .brand img.logo { width: min(400px, 72%); height: auto; filter: drop-shadow(0 0 46px rgba(61, 220, 240, .38)); }
.login .brand h1 { color: #fff; font-size: 1.7rem; letter-spacing: .01em; }
.login .brand h1 span { color: var(--cyan); }
.login .brand p { color: #BFD3E3; max-width: 32rem; font-size: 1.02rem; margin: 0 auto; }
.login .brand ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; color: #DCE9F5; text-align: left; font-size: .96rem; }
.login .brand li::before { content: "✓"; color: var(--cyan); font-weight: 700; margin-right: .6rem; }
.login .panel { display: grid; place-items: center; padding: 2rem; border-left: 1px solid rgba(61, 220, 240, .14); background: linear-gradient(180deg, rgba(61, 220, 240, .05), transparent 60%); }
.login .box { background: rgba(8, 24, 42, .88); border: 1px solid rgba(61, 220, 240, .28); border-radius: 18px; padding: 2rem; width: min(410px, 100%); box-shadow: 0 0 70px rgba(61, 220, 240, .10), 0 20px 50px rgba(0, 0, 0, .45); display: grid; gap: 1rem; text-align: center; }
.login .box h2 { color: #fff; font-size: 1.25rem; }
.login .box .muted { color: #9DB5CA; }
.login .box .g { display: grid; place-items: center; min-height: 44px; }
.login .box input[type=email] { background: #0D2238; border-color: rgba(61, 220, 240, .3); color: #fff; }
.login .box .btn.primary { background: linear-gradient(180deg, #17B7D3, #0A7C92); border-color: #17B7D3; }
.login .err { color: #FFB4AB; background: rgba(180, 35, 24, .22); padding: .6rem .8rem; border-radius: 8px; text-align: left; font-size: .9rem; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login .brand { padding: 2rem 1.2rem 0; } .login .brand img.logo { width: min(250px, 62%); } .login .brand ul { display: none; } .login .panel { border-left: 0; padding: 1rem 1rem 2rem; } }

/* shell */
.shell { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.topbar { grid-column: 1 / -1; background: linear-gradient(180deg, #0D2340, #07142A); border-bottom: 1px solid rgba(61, 220, 240, .35); box-shadow: 0 1px 14px rgba(61, 220, 240, .14); color: #fff; display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; padding-top: calc(.55rem + env(safe-area-inset-top, 0px)); position: sticky; top: 0; z-index: 30; }
.topbar .logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.topbar .logo img { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 6px rgba(61, 220, 240, .45)); }
.topbar .logo small { color: var(--cyan); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; display: block; line-height: 1; margin-top: 2px; }
.topbar .sp { flex: 1; }
.topbar .btn { color: #fff; border-color: rgba(255,255,255,.3); }
.topbar .btn:hover { background: rgba(255,255,255,.12); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #296293; box-shadow: 0 0 0 2px rgba(61, 220, 240, .45); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; border: 0; cursor: pointer; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav { background: var(--navy); border-right: 1px solid rgba(61, 220, 240, .12); padding: 1rem .6rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 52px; height: calc(100vh - 52px); }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 10px; color: #B9CCDD; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(61, 220, 240, .08); color: #fff; }
.nav a.on { background: rgba(61, 220, 240, .14); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--cyan); }
.nav .foot { margin-top: auto; font-size: .76rem; color: #7E97AE; padding: .6rem .8rem; }
.main { min-width: 0; padding: 1.4rem 1.6rem 3rem; }
.page { max-width: 1240px; margin: 0 auto; }
.offline { background: var(--warn-bg); color: var(--warn); text-align: center; padding: .35rem; font-size: .85rem; grid-column: 1 / -1; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding-bottom: calc(62px + var(--safe-b)); }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid rgba(61, 220, 240, .3); padding: .3rem .4rem calc(.3rem + var(--safe-b)); z-index: 40; }
  .nav a { flex-direction: column; gap: .1rem; font-size: .72rem; padding: .35rem .6rem; flex: 1; text-align: center; align-items: center; }
  .nav a.on { box-shadow: inset 0 3px 0 var(--cyan); }
  .nav .foot { display: none; }
  .main { padding: 1rem .9rem 2rem; }
  .topbar .hide-m, .edbar .hide-m { display: none; }
  .edbar { position: static; }
  .edbar > .grow { flex: 1 1 100%; min-width: 0; }
  .edbar h1 { font-size: 1.05rem; }
  .edbar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80vw; }
}

/* controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px; padding: .5rem .9rem; cursor: pointer; font-weight: 550; line-height: 1.2; text-decoration: none; min-height: 38px; }
.btn:hover { background: var(--line-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #17466F, #0F2B4B); border-color: #0F2B4B; color: #fff; }
.btn.primary:hover { background: linear-gradient(180deg, #1B5282, #123B63); }
.btn.accent { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.accent:hover { background: #086578; }
.btn.danger { color: var(--bad); border-color: #F0C2BC; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: .25rem .6rem; min-height: 30px; font-size: .86rem; border-radius: 8px; }
.btn.icon { padding: .35rem; min-width: 34px; }
input[type=text], input[type=email], input[type=search], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff; min-height: 40px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
label.f { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); font-weight: 550; }
label.f > span { color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card h2 { margin-bottom: .6rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty .btn { margin-top: .8rem; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 650; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); } .chip.teal { background: var(--teal-bg); color: var(--teal); }
.chip.link { cursor: pointer; text-decoration: none; } .chip.link:hover { filter: brightness(.95); }
.badge-n { background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; font-weight: 700; }

/* progresso */
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--cyan)); border-radius: 99px; transition: width .4s; }
.jobbar { background: var(--info-bg); border: 1px solid #CFE0F3; border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .4rem; }

/* abas */
.pagehead { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pagehead .t { flex: 1; min-width: 220px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.tabs { display: flex; gap: .15rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .6rem .95rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs a:hover { color: var(--navy); }
.tabs a.on { color: var(--navy); border-bottom-color: #19BFDB; }

/* cards de projeto */
.pcard { display: grid; gap: .7rem; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(20,35,60,.12); }
.pcard h3 { font-size: 1.05rem; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.stats b { color: var(--text); }

/* tabelas e listas */
.list { display: grid; gap: .6rem; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; display: grid; gap: .4rem; }
.item.clickable { cursor: pointer; } .item.clickable:hover { border-color: #B8C6DA; }
.item .head { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.item .head .title { font-weight: 650; flex: 1; min-width: 200px; }
.quote { border-left: 3px solid var(--line); padding: .15rem .7rem; color: var(--muted); font-size: .88rem; font-style: italic; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .9rem; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; min-width: 140px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .35rem .8rem; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.t td { padding: .6rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }

/* arquivos / dropzone */
.drop { border: 2px dashed #B8C6DA; border-radius: var(--radius); padding: 1.3rem; text-align: center; background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--teal); background: var(--teal-bg); color: var(--teal); }

/* visualizador do edital */
.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.page-sep { position: sticky; top: 52px; background: var(--bg); padding: .35rem 0; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; z-index: 5; }
.blk { padding: .5rem .8rem; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); margin-bottom: .45rem; display: grid; grid-template-columns: 74px 1fr; gap: .7rem; }
.blk .num { font-size: .78rem; font-weight: 700; color: var(--navy-2); font-variant-numeric: tabular-nums; word-break: break-word; }
.blk.h { background: var(--info-bg); border-color: #CFE0F3; font-weight: 700; color: var(--navy); }
.blk.hit { outline: 3px solid #F5B942; background: #FFF9E8; }
.blk mark { background: #FFE08A; padding: 0 .1em; border-radius: 3px; }
.iframe-pdf { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* diff */
.diff { display: grid; gap: .7rem; }
.change { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.change > .ch { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .5rem .75rem; background: #F8FAFC; border-bottom: 1px solid var(--line-2); }
.change .loc { font-size: .84rem; color: var(--muted); font-weight: 600; }
.change .cb { padding: .65rem .8rem; font-size: .93rem; white-space: pre-wrap; word-break: break-word; }
.change .cb + .cb { border-top: 1px dashed var(--line); }
.ins { background: #D5F2DF; color: #0B5B30; text-decoration: underline; text-decoration-color: #6BC48F; border-radius: 3px; }
.del { background: #FBD9D4; color: #8E1C12; text-decoration: line-through; border-radius: 3px; }
.lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--faint); display: block; margin-bottom: .15rem; }
.kind-modified { border-left: 4px solid #E0A526; } .kind-added, .kind-section_added, .kind-moved_in { border-left: 4px solid #2FA865; } .kind-removed, .kind-section_removed, .kind-moved_out { border-left: 4px solid #D6483B; } .kind-section_renamed { border-left: 4px solid #5B7FA8; }

/* editor */
.editor { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel .ph { padding: .7rem .9rem; border-bottom: 1px solid var(--line-2); font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .5rem; }
.panel .pb { padding: .8rem .9rem; }
.side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
.secs { display: grid; padding: .3rem; }
.sec { display: flex; align-items: flex-start; gap: .4rem; padding: .45rem .55rem; border-radius: 8px; cursor: pointer; font-size: .9rem; border: 0; background: none; text-align: left; width: 100%; }
.sec:hover { background: var(--line-2); } .sec.on { background: var(--info-bg); color: var(--navy); font-weight: 650; }
.sec .n { color: var(--faint); font-variant-numeric: tabular-nums; min-width: 2.2em; font-size: .82rem; }
.sec.l2 { padding-left: 1.2rem; } .sec.l3 { padding-left: 1.9rem; }
.sec .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); min-height: 60vh; }
.paper .stitle { font-size: 1.25rem; font-weight: 700; color: var(--navy); border: 1px solid transparent; padding: .3rem .5rem; width: 100%; background: transparent; border-radius: 8px; resize: none; overflow: hidden; min-height: 0; line-height: 1.3; display: block; }
.paper .stitle:hover, .paper .stitle:focus { border-color: var(--line); background: #fff; }
.para { display: grid; grid-template-columns: 1fr; gap: .25rem; margin: .7rem 0; }
.para textarea { min-height: 70px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; overflow: hidden; }
.para.li textarea { border-left: 4px solid var(--teal); }
.para.pend textarea { border-color: #E0A526; background: #FFFBF0; }
.para .ctl { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem; opacity: .4; transition: opacity .15s; }
.para .ctl .btn { min-height: 26px; min-width: 28px; padding: .1rem .35rem; }
.para:hover .ctl, .para:focus-within .ctl { opacity: 1; }
@media (hover: none) { .para .ctl { opacity: 1; } }
.edbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; position: sticky; top: 52px; z-index: 12; background: var(--bg); padding: .5rem 0; }
.edbar h1 { font-size: 1.2rem; }
.dirty { color: var(--warn); font-weight: 650; font-size: .85rem; }
.seg { display: none; }
.menu { position: relative; display: inline-block; }
.menu > .pop { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,35,60,.18); min-width: 270px; z-index: 50; padding: .3rem; }
.menu .pop button, .menu .pop a { display: flex; gap: .6rem; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; color: var(--text); text-decoration: none; font-size: .92rem; }
.menu .pop button:hover, .menu .pop a:hover { background: var(--line-2); }
.menu .pop hr { border: 0; border-top: 1px solid var(--line-2); margin: .25rem 0; }
.vers { display: grid; gap: .5rem; }
.ver { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; display: grid; gap: .3rem; font-size: .88rem; }
.ver.cur { border-color: var(--teal); background: var(--teal-bg); }
@media (max-width: 1180px) { .editor { grid-template-columns: 220px minmax(0, 1fr); } .editor > .right-panel { grid-column: 1 / -1; } .side { position: static; max-height: none; } }
@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; }
  .seg { display: flex; gap: .3rem; margin-bottom: .8rem; background: var(--line-2); padding: .25rem; border-radius: 10px; }
  .seg button { flex: 1; border: 0; background: none; padding: .45rem; border-radius: 8px; font-weight: 600; color: var(--muted); }
  .seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
  .editor[data-pane="secs"] > :not(.left-panel), .editor[data-pane="edit"] > :not(.center-panel), .editor[data-pane="info"] > :not(.right-panel) { display: none; }
  .paper { padding: .9rem; }
}

/* modal e toast */
.overlay { position: fixed; inset: 0; background: rgba(15, 25, 45, .55); z-index: 100; display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: min(var(--w, 560px), 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { --w: 980px; }
.modal > header { padding: 1rem 1.2rem .6rem; display: flex; align-items: center; gap: .6rem; }
.modal > header h2 { flex: 1; }
.modal > .body { padding: .4rem 1.2rem 1rem; overflow: auto; display: grid; gap: .8rem; }
.modal > footer { padding: .8rem 1.2rem; border-top: 1px solid var(--line-2); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
#toasts { position: fixed; right: 1rem; bottom: calc(1rem + var(--safe-b)); z-index: 200; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
@media (max-width: 860px) { #toasts { bottom: calc(76px + var(--safe-b)); right: .6rem; left: .6rem; max-width: none; } }
.toast { background: var(--navy); color: #fff; padding: .7rem .9rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .2s; display: flex; gap: .7rem; align-items: center; }
.toast.err { background: var(--bad); } .toast.ok { background: var(--ok); }
.toast button { background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 6px; padding: .2rem .6rem; cursor: pointer; font-weight: 600; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.note { background: var(--info-bg); color: var(--navy); border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; }
.note.warn { background: var(--warn-bg); color: var(--warn); } .note.bad { background: var(--bad-bg); color: var(--bad); } .note.ok { background: var(--ok-bg); color: var(--ok); }
@media print { .topbar, .nav, .toolbar, .btn { display: none !important; } .shell { display: block; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
