/*
 * Dashboard and console styling: "Midnight".
 *
 * The palette, type and shapes come from the design system
 * (design-system/src/tokens.css), inlined below by `npm run sync-design-tokens`
 * so the app and the design system cannot drift apart. Do not edit the token
 * block by hand; edit it in the design system and re-run the sync.
 *
 * No CSS framework and no webfont CDN: the gateway may run inside a network
 * that cannot reach either. Manrope and JetBrains Mono are served from the
 * gateway itself (the fonts/ folder next to this file), and every stack in the
 * tokens still has system fallbacks for the moment before they load.
 */

/* --- BEGIN generated tokens, do not edit ------------------------------- */
/*
 * CostGrid design tokens: "Midnight".
 *
 * Dark is the brand, and the default. Champagne is the one accent: primary
 * buttons, the active nav icon, the headline figure, the focus ring. It is
 * never a fill for a large area. Green, amber and red mean state (on track,
 * needs a look, failing) and always sit next to a word that says so.
 *
 * Readable first: one face, Manrope, for everything anyone reads, at sizes
 * that hold up on a laptop screen. JetBrains Mono only for keys and ids.
 * Figures are tabular everywhere, because a column of costs that jitters as
 * digits change is a column nobody trusts.
 *
 * Every colour pair here clears 4.5:1 for text in both themes. Light is
 * opt-in: `data-theme="light"` on <html>, or `data-theme="system"` when the
 * operating system asks for light.
 */

:root {
  color-scheme: dark;

  /* --- Surfaces, darkest to lightest ------------------------------------ */
  --cg-bg:             #0b0d12;
  --cg-sidebar:        #0f1218;
  --cg-surface:        #12151c;
  --cg-surface-2:      #171b24;
  --cg-nav-active:     #1b2029;

  /* --- Lines: a group border, a row divider, a control edge ------------- */
  --cg-line:           #252b37;
  --cg-line-soft:      #1f2430;
  --cg-control:        #333a48;

  /* --- Ink --------------------------------------------------------------- */
  --cg-ink:            #f1f2f5;
  --cg-ink-2:          #b4bac6;
  --cg-ink-3:          #8b93a1;

  /* --- The accent -------------------------------------------------------- */
  --cg-accent:         #d9b46c;
  --cg-on-accent:      #1a1307;
  --cg-accent-wash:    #17140e;
  --cg-accent-line:    #3a3222;
  --cg-chart:          #b38b38;

  /* --- State: text on its own background, always with a word ----------- */
  --cg-good:           #7dd8a8;
  --cg-good-bg:        #13261c;
  --cg-warn:           #f2c46e;
  --cg-warn-bg:        #2c2312;
  --cg-bad:            #f4948a;
  --cg-bad-bg:         #321a17;

  --cg-shadow:         0 40px 80px -40px rgba(0, 0, 0, 0.8);

  /* --- Older names, kept so existing styles and components still resolve */
  --cg-paper:          var(--cg-bg);
  --cg-surface-sunk:   var(--cg-surface-2);
  --cg-ink-soft:       var(--cg-ink-2);
  --cg-ink-faint:      var(--cg-ink-3);
  --cg-rule-hair:      var(--cg-line-soft);
  --cg-rule:           var(--cg-line);
  --cg-rule-total:     var(--cg-ink-3);
  --cg-over:           var(--cg-bad);
  --cg-over-wash:      var(--cg-bad-bg);
  --cg-saved:          var(--cg-good);
  --cg-saved-wash:     var(--cg-good-bg);
  --cg-focus:          var(--cg-accent);

  /* --- Type -------------------------------------------------------------- */
  --cg-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
                     Helvetica, Arial, sans-serif;
  --cg-font-sans:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
                     Helvetica, Arial, sans-serif;
  --cg-font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
                     Consolas, monospace;

  --cg-text-xs:   0.8125rem;   /* 13, captions and labels */
  --cg-text-sm:   0.875rem;    /* 14 */
  --cg-text-body: 0.90625rem;  /* 14.5, app body */
  --cg-text-base: 1rem;        /* 16, site body */
  --cg-text-lg:   1.125rem;    /* 18 */
  --cg-text-xl:   1.5rem;      /* 24, page title */
  --cg-text-2xl:  1.875rem;    /* 30, figures */
  --cg-text-3xl:  2.5rem;      /* 40, site sections */
  --cg-text-4xl:  clamp(2.5rem, 5vw, 4.125rem);

  --cg-weight-regular:  400;
  --cg-weight-medium:   500;
  --cg-weight-semibold: 600;
  --cg-weight-bold:     700;

  --cg-leading-tight:  1.1;
  --cg-leading-snug:   1.45;
  --cg-leading-normal: 1.55;

  --cg-tracking-tight: -0.02em;
  --cg-tracking-label: 0.12em;   /* the site overline, the only uppercase */

  /* --- Space: 4px base --------------------------------------------------- */
  --cg-space-1:  0.25rem;
  --cg-space-2:  0.5rem;
  --cg-space-3:  0.75rem;
  --cg-space-4:  1rem;
  --cg-space-5:  1.5rem;
  --cg-space-6:  2rem;
  --cg-space-7:  3rem;
  --cg-space-8:  4rem;
  --cg-space-9:  6rem;

  /* --- Shape: pills for actions and state, soft corners for surfaces ---- */
  --cg-radius-sm:     8px;     /* nav items */
  --cg-radius-field:  10px;    /* inputs */
  --cg-radius-md:     12px;    /* cards and panels */
  --cg-radius-window: 14px;    /* raised windows */
  --cg-radius-pill:   999px;   /* buttons and status pills */
}

:root[data-theme="light"] {
  color-scheme: light;
  --cg-bg: #f5f6f8; --cg-sidebar: #eef0f3; --cg-surface: #ffffff;
  --cg-surface-2: #f8f9fb; --cg-nav-active: #e4e7ec;
  --cg-line: #e1e4ea; --cg-line-soft: #eceef2; --cg-control: #cfd4dc;
  --cg-ink: #12151c; --cg-ink-2: #4a5160; --cg-ink-3: #5f6673;
  --cg-accent: #8a6628; --cg-on-accent: #ffffff;
  --cg-accent-wash: #f7f1e4; --cg-accent-line: #e6d6b3; --cg-chart: #a8823a;
  --cg-good: #17603a; --cg-good-bg: #e3f1e8;
  --cg-warn: #8a4b00; --cg-warn-bg: #fdf0dc;
  --cg-bad: #a1241a; --cg-bad-bg: #fbe6e3;
  --cg-shadow: 0 24px 60px -30px rgba(18, 21, 28, 0.25);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --cg-bg: #f5f6f8; --cg-sidebar: #eef0f3; --cg-surface: #ffffff;
    --cg-surface-2: #f8f9fb; --cg-nav-active: #e4e7ec;
    --cg-line: #e1e4ea; --cg-line-soft: #eceef2; --cg-control: #cfd4dc;
    --cg-ink: #12151c; --cg-ink-2: #4a5160; --cg-ink-3: #5f6673;
    --cg-accent: #8a6628; --cg-on-accent: #ffffff;
    --cg-accent-wash: #f7f1e4; --cg-accent-line: #e6d6b3; --cg-chart: #a8823a;
    --cg-good: #17603a; --cg-good-bg: #e3f1e8;
    --cg-warn: #8a4b00; --cg-warn-bg: #fdf0dc;
    --cg-bad: #a1241a; --cg-bad-bg: #fbe6e3;
    --cg-shadow: 0 24px 60px -30px rgba(18, 21, 28, 0.25);
  }
}

/*
 * The root class. Put it on any container of your own so type, colour and
 * figure settings are inherited by everything inside.
 */
.cg-root {
  font-family: var(--cg-font-sans);
  color: var(--cg-ink);
  font-size: var(--cg-text-body);
  line-height: var(--cg-leading-normal);
  box-sizing: border-box;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.cg-root *,
.cg-root *::before,
.cg-root *::after { box-sizing: inherit; }

/* Anything that is a number gets the treatment, wherever it appears. */
.cg-num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.cg-root :focus-visible {
  outline: 2px solid var(--cg-focus);
  outline-offset: 2px;
}
/* --- END generated tokens ---------------------------------------------- */

/* Latin only, and only the weights the app uses. Swap, not block: text is
 * readable in the fallback face at once and changes when the real one lands. */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* Short local names, kept because inline styles in the views still use them. */
:root {
  --bg: var(--cg-bg); --ink: var(--cg-ink); --gold: var(--cg-accent);
  --rust: var(--cg-bad); --green: var(--cg-good);
  --rule: var(--cg-line); --rule-soft: var(--cg-line-soft);
  --muted: var(--cg-ink-2); --muted-strong: var(--cg-ink); --panel: var(--cg-surface-2);
  --sans: var(--cg-font-sans); --mono: var(--cg-font-mono); --display: var(--cg-font-display);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--cg-bg); color: var(--cg-ink); }
body {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cg-ink); text-decoration-color: var(--cg-control); text-underline-offset: 2px; }
a:hover { color: var(--cg-accent); text-decoration-color: currentColor; }
strong { font-weight: 600; }
code {
  font-family: var(--mono); font-size: 0.86em; padding: 1px 6px;
  background: var(--cg-surface-2); border: 1px solid var(--cg-line-soft); border-radius: 6px;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- shell */

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--cg-sidebar); border-right: 1px solid var(--cg-line-soft); }
/* Sticky inside a full-height column: the nav stays put while the page
 * scrolls, and a short window scrolls the nav rather than clipping it. */
.sidebar-inner {
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 18px 12px;
}

.brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--cg-ink);
}
.brand .logo { width: 26px; height: 26px; flex: none; color: var(--cg-accent); }

.workspace {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--cg-line); border-radius: var(--cg-radius-field);
}
.workspace[hidden] { display: none; }
.workspace-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.workspace-note { font-size: 12.5px; color: var(--cg-ink-3); }
.workspace-orgs { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.workspace-orgs button {
  font: inherit; font-size: 13px; text-align: left; padding: 5px 8px; border: 0;
  border-radius: 6px; background: transparent; color: var(--cg-ink-2); cursor: pointer;
}
.workspace-orgs button:hover { background: var(--cg-surface-2); color: var(--cg-ink); }
.workspace-orgs button[aria-current="true"] { background: var(--cg-nav-active); color: var(--cg-ink); font-weight: 600; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border: 0; border-radius: var(--cg-radius-sm); background: transparent;
  font: inherit; font-size: 14.5px; text-align: left; text-decoration: none;
  color: var(--cg-ink-2); cursor: pointer;
}
.nav-item:hover { color: var(--cg-ink); background: var(--cg-surface-2); }
.nav-item[aria-current="true"] { color: var(--cg-ink); background: var(--cg-nav-active); font-weight: 600; }
.nav-item[aria-current="true"] .icon { color: var(--cg-accent); }

.side-field { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; font-size: 13px; font-weight: 500; color: var(--cg-ink-2); }

.content { min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1320px; padding: 24px 28px 32px; }
footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 14px 28px; border-top: 1px solid var(--cg-line-soft);
  font-size: 13px; color: var(--cg-ink-3);
}
.notice { margin: 20px 28px 0; }

/* One page header per screen: title and a line under it, actions on the right. */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px;
}
.page-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 80ch; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { margin: 0; color: var(--cg-ink-2); }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------- structure */

h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 28px 0 6px; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0 0 6px; }

.section-note { margin: 0 0 16px; max-width: 80ch; color: var(--cg-ink-2); }
.rail { font-size: 13px; font-weight: 500; color: var(--cg-ink-2); }
.step-label { font-size: 13px; font-weight: 700; color: var(--cg-accent); }

.grid { display: grid; gap: 12px; }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  min-width: 0; padding: 18px 20px; background: var(--cg-surface);
  border: 1px solid var(--cg-line); border-radius: var(--cg-radius-md);
}
.card.sunk { background: var(--cg-surface-2); }
.card.danger { border-color: var(--cg-bad); }
.stack > * + * { margin-top: 12px; }

/* KPI tiles: a card that leads with a figure. */
.kpi, .card:has(> .kpi-value) {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--cg-surface-2);
}
.kpi-value { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpi-sub { font-size: 13px; line-height: 1.45; color: var(--cg-ink-3); }
p.kpi-sub { font-size: 14px; color: var(--cg-ink-2); }

.accent-gold { color: var(--cg-accent); }
.accent-rust { color: var(--cg-bad); }
.accent-green { color: var(--cg-good); }

/* ---------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--cg-ink-2);
  padding: 10px 16px; border-bottom: 1px solid var(--cg-line); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--cg-line-soft); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }

/* A table that is the whole panel runs edge to edge, like the reference. */
.card:has(> table:only-child) { padding: 0; }
.card > table:only-child th:first-child, .card > table:only-child td:first-child { padding-left: 20px; }
.card > table:only-child th:last-child, .card > table:only-child td:last-child { padding-right: 20px; }
.card > table:only-child tbody tr:hover td { background: var(--cg-surface-2); }

.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
th.num { text-align: right; }
.scroll-x { overflow-x: auto; min-width: 0; }

/* -------------------------------------------------------------- controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--cg-control); border-radius: var(--cg-radius-pill);
  background: transparent; color: var(--cg-ink); font: inherit; font-size: 14px;
  font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { color: var(--cg-ink); background: var(--cg-surface-2); border-color: var(--cg-ink-3); }
.btn-primary { background: var(--cg-accent); border-color: var(--cg-accent); color: var(--cg-on-accent); font-weight: 700; }
.btn-primary:hover { background: var(--cg-accent); border-color: var(--cg-accent); color: var(--cg-on-accent); filter: brightness(1.08); }
.btn-quiet { border-color: transparent; color: var(--cg-ink-2); padding-inline: 8px; }
.btn-quiet:hover { border-color: transparent; background: transparent; color: var(--cg-ink); }
.btn-sm { font-size: 13px; padding: 5px 12px; }
.btn-danger { color: var(--cg-bad); }
.btn-danger:hover { color: var(--cg-bad); background: var(--cg-bad-bg); border-color: var(--cg-bad); }
.btn-danger.solid { background: var(--cg-bad-bg); border-color: var(--cg-bad); }
.btn-good { color: var(--cg-good); }
.btn-good:hover { color: var(--cg-good); background: var(--cg-good-bg); border-color: var(--cg-good); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  max-width: 100%; padding: 8px 12px; font: inherit; font-size: 14px; line-height: 1.4;
  color: var(--cg-ink); background: var(--cg-surface);
  border: 1px solid var(--cg-control); border-radius: var(--cg-radius-field);
}
input::placeholder, textarea::placeholder { color: var(--cg-ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cg-accent); outline-offset: 1px; }
select:disabled { opacity: 0.7; }
input[type="checkbox"], input[type="radio"] {
  width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--cg-accent);
}

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--cg-ink-2); }
.field input, .field select { width: 100%; max-width: 420px; }
.check { display: flex; align-items: center; margin-bottom: 14px; font-size: 14px; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-row.end { align-items: flex-end; }
.form-row + .form-row { margin-top: 10px; }
.form-row .field { margin-bottom: 0; }
.form-row .field input { width: 200px; }
.form-row .note { flex-basis: 100%; }
.provider { min-width: 90px; font-weight: 600; }
.w-key { width: 260px; }
.w-num { width: 120px; }
.w-wide { min-width: 340px; }

.segmented {
  display: inline-flex; gap: 2px; padding: 3px; background: var(--cg-surface);
  border: 1px solid var(--cg-control); border-radius: var(--cg-radius-pill);
}
.segmented button {
  padding: 6px 14px; border: 0; border-radius: var(--cg-radius-pill); background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--cg-ink-2); cursor: pointer;
}
.segmented button:hover { color: var(--cg-ink); }
.segmented button[aria-pressed="true"] { background: var(--cg-nav-active); color: var(--cg-ink); }

details summary { cursor: pointer; }

/* ---------------------------------------------------------- status, notes */

/* A status pill always carries a word; the colour only repeats it. */
.tag {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-pill); background: var(--cg-surface-2); color: var(--cg-ink-2);
  font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: middle;
}
.tag::first-letter { text-transform: uppercase; }
.tag.on { background: var(--cg-good-bg); color: var(--cg-good); border-color: transparent; }
.tag.warn { background: var(--cg-warn-bg); color: var(--cg-warn); border-color: transparent; }
.tag.block { background: var(--cg-bad-bg); color: var(--cg-bad); border-color: transparent; }

.banner {
  margin-bottom: 20px; padding: 12px 16px; border-radius: var(--cg-radius-md);
  background: var(--cg-warn-bg); color: var(--cg-ink); font-size: 14px; line-height: 1.55;
}
.banner strong { color: var(--cg-warn); }
.banner.good { background: var(--cg-good-bg); }
.banner.good strong { color: var(--cg-good); }
.banner.bad { background: var(--cg-bad-bg); }
.banner.bad strong { color: var(--cg-bad); }
.banner code.key { display: block; margin-top: 6px; word-break: break-all; }

.empty {
  padding: 40px 24px; text-align: center; color: var(--cg-ink-2);
  background: var(--cg-surface); border: 1px solid var(--cg-line); border-radius: var(--cg-radius-md);
}

.code-block {
  margin: 6px 0 14px; padding: 12px 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: var(--cg-surface-2); border: 1px solid var(--cg-line); border-radius: var(--cg-radius-field);
}

/* ---------------------------------------------------------------- charts */

svg { display: block; width: 100%; height: auto; }
.icon { width: 17px; height: 17px; flex: none; }
.chart-bar { fill: var(--cg-chart); }
.chart-line { fill: none; stroke: var(--cg-chart); stroke-width: 2; }
.chart-grid { stroke: var(--cg-line-soft); stroke-width: 1; }
.chart-axis { stroke: var(--cg-line); stroke-width: 1; }
.chart-label { fill: var(--cg-ink-3); font-family: var(--sans); font-size: 13px; }
.chart-accent { fill: var(--cg-accent); stroke: var(--cg-accent); }
.chart-ink { fill: var(--cg-ink); stroke: var(--cg-ink); }
.chart-accent.chart-label, .chart-ink.chart-label { stroke: none; font-weight: 600; }
.bar { height: 8px; min-width: 2px; border-radius: 4px; background: var(--cg-chart); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--cg-ink-2); }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.swatch.accent { background: var(--cg-accent); }
.swatch.ink { background: var(--cg-ink); }

/* ---------------------------------------------------------- narrow window */

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--cg-line-soft); }
  .sidebar-inner { position: static; max-height: none; gap: 12px; padding: 12px 16px; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-item { width: auto; flex: none; white-space: nowrap; }
  .side-field { flex-direction: row; align-items: center; }
  main { padding: 20px 16px 28px; }
  footer { padding: 14px 16px; }
  .notice { margin: 16px 16px 0; }
  .w-wide, .w-key { min-width: 0; width: 100%; }
}
