/* Painel JDB — direction A "Selva". One visual system; every screen uses only this file. */
:root {
  --bg:#F3F5EF; --surface:#FFFFFF; --surface-2:#F8FAF5; --ink:#17231B; --muted:#5E6B61; --line:#DDE3D8;
  --nav:#14432A; --nav-ink:#E6F0DF; --nav-muted:#9DB7A2; --nav-active:#1E5A38;
  --accent:#F4AE1A; --accent-ink:#2A1A00; --accent-edge:#C9870A;
  --pos:#1F7A3A; --neg:#B3261E; --warn:#8A5A00; --info:#2B5C8A;
  --pos-bg:#E4F2E5; --neg-bg:#FBE7E5; --warn-bg:#FFF1CF; --info-bg:#E3EEF8;
  --mark:#F4AE1A; --house:#1F7A3A; --out:#7E8A80;
  --shadow:0 12px 40px rgba(20,40,25,.18);
  --r:14px; --r-sm:10px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0F1612; --surface:#161F19; --surface-2:#1B261F; --ink:#E8EFE6; --muted:#93A396; --line:#27352C;
    --nav:#0B1C12; --nav-ink:#E6F0DF; --nav-muted:#7E9A84; --nav-active:#173826;
    --pos:#6CCB7A; --neg:#FF7A6E; --warn:#F2C155; --info:#7DB3E8;
    --pos-bg:#16301E; --neg-bg:#3A1C19; --warn-bg:#33290F; --info-bg:#15283A;
    --house:#6CCB7A; --out:#6F7D73; --shadow:0 12px 40px rgba(0,0,0,.5);
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0F1612; --surface:#161F19; --surface-2:#1B261F; --ink:#E8EFE6; --muted:#93A396; --line:#27352C;
  --nav:#0B1C12; --nav-ink:#E6F0DF; --nav-muted:#7E9A84; --nav-active:#173826;
  --pos:#6CCB7A; --neg:#FF7A6E; --warn:#F2C155; --info:#7DB3E8;
  --pos-bg:#16301E; --neg-bg:#3A1C19; --warn-bg:#33290F; --info-bg:#15283A;
  --house:#6CCB7A; --out:#6F7D73; --shadow:0 12px 40px rgba(0,0,0,.5);
  color-scheme:dark;
}

* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 Manrope, system-ui, sans-serif; font-variant-numeric:tabular-nums; }
a { color:inherit; }
button, input, select, textarea { font:inherit; color:inherit; }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; animation:none !important; } }

/* Shell */
.shell { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:100vh; }
.nav { background:var(--nav); color:var(--nav-ink); padding:20px 14px; display:flex; flex-direction:column; gap:20px; position:sticky; top:0; height:100vh; overflow-y:auto; }
.brand { font-family:"Lilita One", sans-serif; font-size:26px; line-height:1; letter-spacing:.5px; color:var(--mark); padding:4px 10px; text-decoration:none; display:block; }
.brand small { display:block; font:700 11px/1.4 Manrope, sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--nav-muted); margin-top:6px; }
.nav h6 { margin:0 10px 4px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--nav-muted); font-weight:700; }
.nav a.item { display:flex; justify-content:space-between; align-items:center; padding:7px 10px; border-radius:8px; color:var(--nav-ink); text-decoration:none; font-weight:600; font-size:14px; }
.nav a.item:hover { background:var(--nav-active); }
.nav a.item[aria-current] { background:var(--nav-active); box-shadow:inset 3px 0 0 var(--mark); }
.nav .count { background:var(--mark); color:var(--accent-ink); font-size:11px; font-weight:800; border-radius:999px; padding:1px 7px; }
.nav .who { margin-top:auto; font-size:13px; color:var(--nav-muted); padding:0 10px; min-width:0; overflow-wrap:anywhere; }
.topbar { display:none; }
main { padding:26px 36px 56px; min-width:0; }
.wrap { max-width:1280px; }

/* Breadcrumbs and page header */
.crumbs { font-size:13px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }
.crumbs a { color:var(--muted); }
.crumbs .sep { opacity:.6; }
.head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px 20px; margin:8px 0 22px; flex-wrap:wrap; }
.head h1 { margin:0; font-size:28px; line-height:1.15; font-weight:800; letter-spacing:-.01em; }
.head .meta { color:var(--muted); font-size:14px; margin-top:4px; }
h2.section { font-size:16px; font-weight:800; margin:28px 0 12px; }
.lede { color:var(--muted); margin:-12px 0 20px; font-size:14px; max-width:70ch; }

/* Buttons: always a button, always aligned in an .actions row */
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.actions.end { justify-content:flex-end; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); background:var(--surface); color:var(--ink); padding:8px 16px; border-radius:var(--r-sm); font-weight:700; font-size:14px; min-height:40px; cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover { border-color:var(--muted); }
.btn.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent-edge); box-shadow:0 3px 0 var(--accent-edge); }
.btn.primary:active { transform:translateY(2px); box-shadow:0 1px 0 var(--accent-edge); }
.btn.danger { color:var(--neg); }
.btn.danger.solid { background:var(--neg); color:#fff; border-color:var(--neg); }
.btn.sm { min-height:32px; padding:4px 12px; font-size:13px; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }

/* Tags and statuses */
.tags { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.tag { display:inline-block; font-size:12px; font-weight:700; padding:2px 9px; border-radius:999px; background:var(--pos-bg); color:var(--pos); white-space:nowrap; }
.tag.warn { background:var(--warn-bg); color:var(--warn); }
.tag.neg { background:var(--neg-bg); color:var(--neg); }
.tag.info { background:var(--info-bg); color:var(--info); }
.tag.muted { background:var(--surface-2); color:var(--muted); border:1px solid var(--line); }

/* Cards, tiles, deflist */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; }
.grid { display:grid; gap:12px; }
.g2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns:repeat(4, minmax(0,1fr)); }
.tiles { grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; }
.tile .label { font-size:13px; color:var(--muted); font-weight:600; }
.tile .value { font-size:24px; font-weight:800; margin-top:2px; letter-spacing:-.01em; white-space:nowrap; }
.tile .hint { font-size:12px; color:var(--muted); }
.tile.main { border-color:var(--mark); box-shadow:inset 0 3px 0 var(--mark); }
dl.def { display:grid; grid-template-columns:180px 1fr; gap:8px 16px; margin:0; font-size:14px; }
dl.def dt { color:var(--muted); font-weight:600; }
dl.def dd { margin:0; }

/* Money story — the signature */
.story-top { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.story-top h2 { margin:0; font-size:15px; font-weight:800; }
.verdict { font-weight:800; font-size:15px; }
.verdict b { color:var(--house); }
.bar { display:flex; height:14px; border-radius:999px; overflow:hidden; margin:14px 0 12px; background:var(--line); }
.bar i { display:block; }
.legend { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:10px; }
.legend div { font-size:13px; color:var(--muted); }
.legend strong { display:block; color:var(--ink); font-size:16px; }
.dot { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:6px; vertical-align:1px; }

/* Tabs (query-string driven in the real app) */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:14px; overflow-x:auto; }
.tabs a { padding:10px 14px; font-weight:700; color:var(--muted); border-bottom:3px solid transparent; white-space:nowrap; text-decoration:none; font-size:14px; }
.tabs a[aria-selected="true"] { color:var(--ink); border-color:var(--mark); }
.tabs .count { font-size:12px; color:var(--muted); margin-left:4px; }

/* Filter bar */
.filters { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; margin-bottom:14px; }
.field { display:flex; flex-direction:column; gap:4px; min-width:0; }
.field label, .field .label { font-size:13px; font-weight:700; color:var(--ink); }
.field .help { font-size:12px; color:var(--muted); }
.input, select.input, textarea.input { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 12px; min-height:40px; width:100%; }
textarea.input { min-height:88px; resize:vertical; }
.input:focus { border-color:var(--accent-edge); outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.input.money { font-weight:800; font-size:18px; }
.search { flex:1 1 320px; }
.form { display:grid; gap:14px; }
.form.cols { grid-template-columns:repeat(2, minmax(0,1fr)); }
.check { display:flex; gap:10px; align-items:flex-start; font-size:14px; }
.check input { width:18px; height:18px; margin-top:2px; accent-color:var(--pos); }
.choice { display:flex; gap:8px; flex-wrap:wrap; }
.choice label { border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 12px; font-weight:700; font-size:14px; cursor:pointer; display:flex; gap:8px; align-items:center; background:var(--surface); }
.choice input { accent-color:var(--pos); }

/* Tables — fixed layout; become cards on phones */
.table-wrap { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:10px 14px; border-bottom:1px solid var(--line); font-weight:700; white-space:nowrap; }
td { padding:11px 14px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover, tbody tr[aria-selected="true"] { background:var(--surface-2); }
.num { text-align:right; white-space:nowrap; }
td.act { text-align:right; white-space:nowrap; }
td.act .actions { justify-content:flex-end; flex-wrap:nowrap; }
.in { color:var(--pos); font-weight:700; }
.out { color:var(--neg); font-weight:700; }
.sub { font-size:12px; color:var(--muted); }
.strong { font-weight:700; }
.bicho { font-weight:700; }
.bicho small { color:var(--muted); font-weight:600; }
.mono { font-family:"JetBrains Mono", ui-monospace, monospace; font-size:13px; }

/* Pager */
.pager { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; font-size:13px; color:var(--muted); flex-wrap:wrap; }

/* Banner and empty state */
.banner { border-radius:var(--r); padding:12px 16px; font-size:14px; display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.banner.warn { background:var(--warn-bg); color:var(--warn); }
.banner.neg { background:var(--neg-bg); color:var(--neg); }
.banner.info { background:var(--info-bg); color:var(--info); }
.banner strong { color:inherit; }
dialog .banner { margin:0; }
pre.raw { font-family:"JetBrains Mono", ui-monospace, monospace; font-size:12px; white-space:pre-wrap; word-break:break-word; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px; margin:8px 0 0; }
.empty { text-align:center; padding:40px 20px; color:var(--muted); }

/* Attention list (home) */
.todo { display:grid; gap:10px; }
.todo .row { display:flex; gap:16px; align-items:center; justify-content:space-between; background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--mark); border-radius:var(--r); padding:14px 16px; flex-wrap:wrap; }
.todo .row.neg { border-left-color:var(--neg); }
.todo .row.ok { border-left-color:var(--pos); }
.todo .what { font-weight:800; }
.todo .why { font-size:13px; color:var(--muted); }

/* Timeline */
.timeline { list-style:none; margin:0; padding:0; }
.timeline li { position:relative; padding:0 0 16px 22px; font-size:14px; }
.timeline li::before { content:""; position:absolute; left:4px; top:7px; width:9px; height:9px; border-radius:50%; background:var(--mark); }
.timeline li::after { content:""; position:absolute; left:8px; top:18px; bottom:0; width:1px; background:var(--line); }
.timeline li:last-child::after { display:none; }
.timeline .when { font-size:12px; color:var(--muted); }

/* Results board — draws, the game's own artifact */
.board { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px; }
.board .pos { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 10px; text-align:center; }
.board .pos .n { font-size:11px; color:var(--muted); font-weight:700; }
.board .pos .milhar { font-size:20px; font-weight:800; letter-spacing:.04em; }
.board .pos .g { font-size:12px; font-weight:700; color:var(--muted); }

/* Dialog — forms and confirmations over the current screen */
dialog { border:0; padding:0; border-radius:18px; box-shadow:var(--shadow); background:var(--surface); color:var(--ink); width:min(560px, calc(100vw - 32px)); max-height:calc(100vh - 32px); }
dialog::backdrop { background:rgba(10,25,15,.55); }
dialog .dh { padding:18px 22px 0; }
dialog .dh h3 { margin:0; font-size:19px; font-weight:800; }
dialog .dh p { margin:4px 0 0; color:var(--muted); font-size:14px; }
dialog .db { padding:18px 22px; display:grid; gap:14px; }
dialog .df { padding:14px 22px 18px; border-top:1px solid var(--line); display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.preview { background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px 14px; display:grid; grid-template-columns:1fr auto; gap:4px 12px; font-size:14px; }
.preview .after { font-weight:800; }

/* Toggle row (settings) */
.toggles { display:grid; gap:0; }
.toggles .t { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.toggles .t:last-child { border-bottom:0; }
.switch { position:relative; display:inline-block; width:44px; height:26px; flex:none; vertical-align:middle; }
.switch input { opacity:0; width:100%; height:100%; margin:0; cursor:pointer; position:absolute; z-index:1; }
.switch span { position:absolute; inset:0; background:var(--line); border-radius:999px; }
.switch span::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background:var(--pos); }
.switch input:checked + span::after { left:21px; }
.switch input:focus-visible + span { outline:3px solid var(--accent); outline-offset:2px; }

/* Chat transcript (AI support) */
.chat { display:grid; gap:10px; }
.bubble { max-width:78%; padding:10px 14px; border-radius:14px; font-size:14px; background:var(--surface-2); border:1px solid var(--line); }
.bubble.me { justify-self:end; background:var(--pos-bg); border-color:transparent; }
.bubble .sub { display:block; margin-top:4px; }

/* Phone */
@media (max-width: 860px) {
  .shell { grid-template-columns:1fr; }
  .nav { display:none; position:fixed; inset:0; z-index:20; height:auto; }
  .nav.open { display:flex; }
  .topbar { display:flex; align-items:center; justify-content:space-between; background:var(--nav); padding:10px 16px; position:sticky; top:0; z-index:10; }
  .topbar .brand { font-size:22px; padding:0; }
  main { padding:16px 16px 72px; }
  .head h1 { font-size:22px; }
  .head > .actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .head > .actions .btn { width:100%; }
  .g2 { grid-template-columns:1fr; }
  .g3, .g4 { grid-template-columns:1fr 1fr; }
  .tile .value { font-size:20px; }
  .legend { grid-template-columns:1fr 1fr; }
  .form.cols { grid-template-columns:1fr; }
  dl.def { grid-template-columns:1fr; gap:2px; }
  dl.def dd { margin-bottom:8px; }
  .board { grid-template-columns:repeat(5, minmax(0,1fr)); gap:4px; }
  .board .pos { padding:6px 2px; }
  .board .pos .milhar { font-size:15px; }
  .filters > * { flex:1 1 100%; }
  .filters .actions { width:100%; }
  /* tables become cards */
  .table-wrap { background:none; border:0; overflow:visible; }
  table, tbody, tr, td { display:block; }
  thead { display:none; }
  tbody tr { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; }
  tbody tr:hover { background:var(--surface); }
  td { border:0; padding:0; }
  td.num { grid-column:2; grid-row:1; }
  td.act { grid-column:1 / -1; text-align:left; margin-top:8px; }
  td.act .actions { justify-content:stretch; flex-wrap:wrap; }
  tbody td:not(:first-child):not(.num):not(.act) { grid-column:1 / -1; }
  td.act .actions .btn { flex:1; }
  td[data-hide-phone] { display:none; }
  dialog { width:100vw; max-width:100vw; margin:auto 0 0; border-radius:18px 18px 0 0; max-height:92vh; }
  .bubble { max-width:92%; }
}

/* ---------- Refinement pass: identity and finish ---------- */
:root { --grp-bg:#14432A; --grp-ink:#F4AE1A; --elev:0 1px 2px rgba(20,40,25,.05), 0 2px 8px rgba(20,40,25,.04); }
:root[data-theme="dark"] { --grp-bg:#1E5A38; --elev:0 1px 0 rgba(0,0,0,.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grp-bg:#1E5A38; --elev:0 1px 0 rgba(0,0,0,.4); } }

/* Real logo in the menu */
.nav { background:radial-gradient(140% 50% at 0% 100%, rgba(244,174,26,.10), transparent 60%), var(--nav); }
.brand-logo { display:block; padding:0 6px; text-decoration:none; }
.brand-logo img { display:block; width:156px; height:auto; filter:drop-shadow(0 3px 0 rgba(0,0,0,.28)); }
.brand-logo small { display:block; font:700 11px/1.4 Manrope, sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--nav-muted); margin:4px 0 0 4px; }
.topbar .brand-logo img { width:96px; }

/* Signature: the animal group as a plaque, wherever a group appears */
.grp { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:20px; padding:0 4px; margin-right:5px; border-radius:6px; background:var(--grp-bg); color:var(--grp-ink); font-weight:800; font-size:11.5px; letter-spacing:.02em; vertical-align:1px; box-shadow:inset 0 -2px 0 rgba(0,0,0,.28); }

/* Results board: the game's own plaque; the 1st prize leads */
.board .pos { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 8px 10px; }
.board .pos .n { position:absolute; top:-1px; left:50%; transform:translateX(-50%); background:var(--line); color:var(--muted); font-size:11px; font-weight:800; padding:1px 9px; border-radius:0 0 7px 7px; }
.board .pos .milhar { font-size:26px; font-weight:800; letter-spacing:.08em; line-height:1.1; }
.board .pos .g { margin-top:4px; color:var(--ink); }
.board .pos:first-child { border-color:var(--mark); background:color-mix(in srgb, var(--mark) 9%, var(--surface)); }
.board .pos:first-child .n { background:var(--mark); color:var(--accent-ink); }

/* Money: the currency steps back, the number leads */
.cur { font-size:.6em; font-weight:700; color:var(--muted); margin-right:3px; letter-spacing:0; vertical-align:.22em; }
.value.in .cur, .value.out .cur { color:inherit; opacity:.75; }

/* Status tags carry a dot */
.tag::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:6px; vertical-align:1px; }

/* Surfaces, headers, type */
.card, .tile, .table-wrap, .todo .row { box-shadow:var(--elev); }
thead th { background:var(--surface-2); }
.head h1 { font-size:30px; letter-spacing:-.02em; }
.tile .label, dl.def dt { letter-spacing:.01em; }
.btn { transition:background-color .12s, border-color .12s, box-shadow .12s, transform .06s; }
.btn:not(.primary):not(.solid):hover { background:var(--surface-2); }
.tabs a { transition:color .12s, border-color .12s; }
.tabs a:hover { color:var(--ink); }

/* Dialogs arrive, they don't pop */
dialog[open] { animation:dlg-in .18s ease-out; }
dialog::backdrop { backdrop-filter:blur(2px); }
@keyframes dlg-in { from { opacity:0; transform:translateY(10px) scale(.985); } to { opacity:1; transform:none; } }

@media (max-width: 860px) {
  .head h1 { font-size:24px; }
  .board .pos { padding:16px 2px 8px; }
  .board .pos .milhar { font-size:16px; letter-spacing:.02em; }
  .board .pos .g .grp { display:none; }
  .board .pos .n { font-size:10px; padding:0 6px; }
}

/* Permission matrix: labels appear only where the column header is gone (phone) */
table.perms th:not(:first-child), table.perms td:not(:first-child) { text-align:center; width:90px; }
table.perms td.na { color:var(--muted); }
.perm { display:inline-flex; gap:6px; align-items:center; cursor:pointer; }
.perm span { display:none; font-size:13px; font-weight:700; }
.perm input { width:18px; height:18px; margin:0; accent-color:var(--pos); }
@media (max-width: 860px) {
  .table-wrap table.perms tbody tr { display:flex; flex-wrap:wrap; gap:10px 18px; }
  table.perms td:first-child { flex-basis:100%; }
  table.perms td:not(:first-child) { width:auto; text-align:left; }
  table.perms td.na { display:none; }
  .perm span { display:inline; }
}

/* ---------- Panel additions: login, closing the phone menu, notices ---------- */
.auth { min-height:100vh; display:grid; place-items:center; padding:24px 16px; background:radial-gradient(140% 60% at 0% 100%, rgba(244,174,26,.14), transparent 60%), var(--nav); }
.auth .card { width:min(420px, 100%); padding:26px 24px; box-shadow:var(--shadow); }
.auth .brand-logo { display:flex; justify-content:center; margin-bottom:18px; }
.auth h1 { margin:0; font-size:24px; font-weight:800; letter-spacing:-.01em; }
.auth .meta { color:var(--muted); font-size:14px; margin:4px 0 18px; }
.auth .form .btn { width:100%; }
.auth .banner { margin:0 0 16px; }
.input.code { font:800 26px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.4em; text-align:center; }
.nav .close-menu { display:none; }
.nav .who form { margin-top:8px; }
dialog.wide { width:min(760px, calc(100vw - 32px)); }
@media (max-width: 860px) {
  .nav .close-menu { display:flex; justify-content:flex-end; }
  dialog.wide { width:100vw; }
}
