/**
 * GluX Kontroll — the web surface, matching the iOS app.
 *
 * ⚠️ THE DESIGN IS NOT INVENTED HERE. It is the app's, ported.
 *
 * Every token below is `GluXKontroll/Design/AppTheme.swift` converted from
 * SwiftUI's 0–1 components to hex, and the card and section-header shapes come
 * from `Design/DesignComponents.swift` (`GlassCard`, `SectionHeader`). The
 * premise of the web Kontroll is that it is the *same* analysis the app shows;
 * a second visual language would make that quietly untrue, and someone reading
 * their report on both would see two different products.
 *
 * When AppTheme.swift changes, this changes. It is a port, not a fork.
 */

:root {
  color-scheme: dark;

  /* AppTheme.accent — dark (0.22, 0.80, 0.74) / light (0.04, 0.56, 0.52) */
  --accent: #38ccbd;
  --accent-deep: #1f9e94;
  /* AppTheme.accentSecondary — (0.32, 0.64, 0.94) */
  --accent-2: #52a3f0;

  /* Semantic glucose — AppTheme.glucose* */
  --in-range: #4cd18c;   /* glucoseInRange (0.30, 0.82, 0.55) */
  --low: #ff616b;        /* glucoseLow     (1.00, 0.38, 0.42) */
  --high: #ffa640;       /* glucoseHigh    (1.00, 0.65, 0.25) */
  --line: #66b8ff;       /* glucoseLine    (0.40, 0.72, 1.00) */

  /* Surfaces — AppTheme.screenBackground / cardBackground / elevatedBackground */
  --screen: #0d0f14;
  --card: #1c1f26;
  --elevated: #24262e;
  --chip: #262930;
  --card-border: rgba(255, 255, 255, 0.08);
  --separator: rgba(255, 255, 255, 0.06);

  --ink: #f2f5f8;
  --secondary: #9aa3ad;
  --tertiary: #6f7883;

  --r-card: 20px;
  --r-sm: 10px;

  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  font-family: var(--font);
  color: var(--ink);
  background: var(--screen);
  -webkit-font-smoothing: antialiased;
}

/* The app is dark by default; a viewer who prefers light gets AppTheme's own
   light values rather than an inverted guess. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --accent: #0a8f85;
    --accent-deep: #067069;
    --accent-2: #1475c2;
    --in-range: #24ad6b;
    --low: #e03d47;
    --high: #ea8014;
    --line: #1a7ad6;
    --screen: #fafbfd;
    --card: #ffffff;
    --elevated: #ffffff;
    --chip: #f1f3f6;
    --card-border: #e8ecf1;
    --separator: rgba(145, 158, 171, 0.28);
    --ink: #14181c;
    --secondary: #5c6670;
    --tertiary: #8a939d;
  }
}

* { box-sizing: border-box; }
/* A layout `display` beats the `hidden` attribute. */
[hidden] { display: none !important; }
.is-hidden { visibility: hidden; }
body { margin: 0; background: var(--screen); font: 400 15px/1.55 var(--font); }
main { max-width: 860px; margin: 0 auto; padding: 8px 16px 96px; }

/* ------------------------------------------------------- masthead & chrome */

.top { text-align: center; padding: 26px 16px 6px; }
.brand { font: 700 20px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink); }
.tagline { color: var(--secondary); margin: 5px 0 0; font-size: 13.5px; }

h1 { font: 650 22px/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); margin: 0 0 6px; }
.muted { color: var(--secondary); font-size: 14px; }
.hidden { display: none !important; }
.error { color: var(--low); font-size: 14px; margin: 14px 0 0;
         background: color-mix(in srgb, var(--low) 12%, transparent);
         border: 1px solid color-mix(in srgb, var(--low) 28%, transparent);
         border-radius: var(--r-sm); padding: 10px 12px; }
.slug-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.share-hint { margin-top: 8px; font-size: 13px; }
code { font: 500 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
       background: var(--chip); border-radius: 5px; padding: .15em .4em; color: var(--ink); }

/* GlassCard — DesignComponents.swift */
.card, .sec {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 18px 18px 20px;
  margin: 0 0 14px;
}

/* SectionHeader — icon in accent, title uppercase and tracked, subtitle
   secondary, hairline divider below. */
.sec-head { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 12px;
            border-bottom: 1px solid var(--separator); margin-bottom: 16px; }
.sec-head .ic { flex: 0 0 auto; width: 19px; height: 19px; color: var(--accent); margin-top: 1px; }
.sec-head h2 { font: 600 13.5px/1.25 var(--font); letter-spacing: .06em; text-transform: uppercase;
               color: var(--ink); margin: 0; }
.sec-head .sub { font-size: 13px; color: var(--secondary); margin: 3px 0 0; }

.lede, .para { color: var(--ink); margin: 0 0 12px; line-height: 1.6; }
.lede:last-child, .para:last-child { margin-bottom: 0; }
.colophon { color: var(--secondary); font-size: 12.5px; line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------------- figures */

/* Wide enough for the plain-language line under each number: at six columns
   the explanation is squeezed into a vertical ribbon and stops being read. */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fig { background: var(--elevated); border: 1px solid var(--card-border);
       border-radius: 14px; padding: 13px 14px; }
.fig .n { font: 650 26px/1.1 var(--font); letter-spacing: -.03em; color: var(--ink);
          font-variant-numeric: tabular-nums; }
.fig .n s { text-decoration: none; font-size: .5em; font-weight: 500; color: var(--tertiary); margin-left: 3px; }
.fig .k { font-size: 12.5px; color: var(--secondary); margin-top: 7px; }
.fig .note { font-size: 11.5px; margin-top: 3px; color: var(--tertiary); }
.fig .note.ok { color: var(--in-range); }
.fig .note.warn { color: var(--high); }
/* Time in range is what the report is about. */
.fig-hero { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
            background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--elevated)), var(--elevated) 65%);
            border-color: color-mix(in srgb, var(--accent) 30%, var(--card-border)); }
.fig-hero .n { font-size: 52px; letter-spacing: -.045em; }
.fig-hero .k { margin-top: 0; font-size: 14.5px; color: var(--ink); }

/* ----------------------------------------------------------------- lists */

ol.findings { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 10px; }
ol.findings li { counter-increment: f; position: relative; padding: 12px 14px 12px 42px;
                 background: var(--elevated); border: 1px solid var(--card-border);
                 border-radius: 12px; line-height: 1.55; }
ol.findings li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 14px; top: 13px;
                         font: 600 12px/1.4 var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font: 500 12px/1 var(--font); color: var(--secondary); text-align: left;
          padding: 0 0 9px; border-bottom: 1px solid var(--separator); }
.tbl th:not(:first-child), .tbl td:not(:first-child) { text-align: right; }
.tbl td { padding: 9px 0; border-bottom: 1px solid var(--separator); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .day { color: var(--ink); font-weight: 500; font-variant-numeric: normal; }
.tbl .tir { color: var(--in-range); }
.tbl .tbr { color: var(--low); }
.tbl .tar { color: var(--high); }
.tbl .cv { color: var(--secondary); }
.scroll { max-height: 300px; overflow-y: auto; }

/* Best / needs-attention day — KontrollDailyAggregateCard.highlightRow */
.highlights { display: grid; gap: 7px; padding-bottom: 14px; margin-bottom: 14px;
              border-bottom: 1px solid var(--separator); }
.hl { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--secondary); }
.hl .ic { width: 14px; height: 14px; flex: 0 0 auto; align-self: center; }
.hl.best .ic { color: var(--in-range); }
.hl.watch .ic { color: var(--low); }
.hl .spacer { flex: 1 1 auto; }
.hl .d { color: var(--ink); font-weight: 600; }
.hl .v { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------ forms & buttons */

label { display: block; margin: 14px 0; font-size: 13.5px; color: var(--ink); font-weight: 500; }
input[type="password"], input[type="text"], select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--card-border); border-radius: var(--r-sm);
  background: var(--elevated); color: var(--ink); font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, summary:focus-visible, a:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
fieldset { border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
legend { padding: 0 6px; color: var(--secondary); font-size: 12.5px; }
fieldset label { display: inline-flex; align-items: center; gap: 7px; margin: 5px 16px 5px 0; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
       border: 1px solid var(--card-border); background: var(--elevated); color: var(--ink);
       padding: 11px 18px; border-radius: var(--r-sm); font: 600 14.5px/1 var(--font);
       cursor: pointer; text-decoration: none; transition: filter .15s ease, opacity .15s ease; }
.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06231f; }
.btn.ghost { background: transparent; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------- account & paid flow */

.account-head { padding: 6px 2px 16px; }
.account-head h1 { margin: 0 0 5px; }
.account-head p { margin: 0; color: var(--secondary); font-size: 13.5px; }

.redeem-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 12px; }
.redeem-form label { flex: 1 1 15rem; margin: 0; }
.redeem-form input { font: 600 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
                     letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.redeem-form .btn { height: 44px; }

.coverage { margin-top: 14px; }
.coverage-count { margin: 0 0 9px; font: 650 20px/1.2 var(--font); color: var(--ink);
                  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.meter { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent));
              transition: width .6s cubic-bezier(.22,1,.36,1); }

.notice { margin: 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
          background: color-mix(in srgb, var(--high) 12%, transparent);
          border: 1px solid color-mix(in srgb, var(--high) 26%, transparent); color: var(--high); }
.force-details { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--separator); }
.force-details summary { cursor: pointer; color: var(--secondary); font-size: 13.5px; list-style: none;
                         display: inline-flex; align-items: center; gap: 6px; }
.force-details summary::-webkit-details-marker { display: none; }
.force-details summary::before { content: "›"; display: inline-block; transition: transform .15s ease; }
.force-details[open] summary::before { transform: rotate(90deg); }
.force-details > p { margin: 12px 0 14px; font-size: 13.5px; }

.report-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.report-link { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
               padding: 13px 15px; background: var(--elevated); border: 1px solid var(--card-border);
               border-radius: 12px; text-decoration: none; color: var(--ink);
               transition: border-color .15s ease; }
.report-link:hover { border-color: var(--accent); }
.report-window { font-weight: 600; margin-right: auto; }
.report-date { color: var(--secondary); font-size: 13px; }
.report-partial { color: var(--high); font-size: 13px; }

.report-head { padding: 6px 2px 0; }
.report-head h1 { margin: 0 0 6px; }
.report-actions { display: flex; gap: 9px; margin: 16px 0 20px; }

/* ------------------------- AGP — KontrollAnalysisView.agpCard, ported ---- */

.agp { width: 100%; height: auto; display: block; touch-action: pan-y; }
.gl { stroke: var(--separator); stroke-width: 1; }
.gl-v { stroke: var(--separator); stroke-width: 1; stroke-dasharray: 3 4; }
.ax { font: 400 11.5px var(--font); fill: var(--secondary); }
.agp-narrow .ax { font-size: 13px; }
.unit { font: 400 11px var(--font); fill: var(--tertiary); }
/* accent at 0.12 and 0.28 — the app's exact opacities. */
.b90 { fill: var(--accent); opacity: .12; }
.b50 { fill: var(--accent); opacity: .28; }
/* glucoseLine, 2.5pt, smoothed — the app uses catmullRom interpolation. */
.med { stroke: var(--line); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
/* RuleMarks at the personal band, 1pt dashed [4,3] at 0.7 opacity. */
.thr-low { stroke: var(--low); stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; }
.thr-high { stroke: var(--high); stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; }
.crosshair { stroke: var(--tertiary); stroke-width: 1; stroke-dasharray: 3 3; }
.marker { fill: var(--line); stroke: var(--card); stroke-width: 2; }
.overlay { cursor: crosshair; }
.caption { font-size: 12.5px; color: var(--secondary); margin: 12px 0 0; line-height: 1.5; }
.readout { margin: 9px 0 0; font: 600 13px/1.3 var(--font); color: var(--line);
           font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- legacy dashboard */

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-end; }
.toolbar-actions { display: flex; gap: 10px; align-items: flex-end; }
.toolbar-actions label { margin: 0; }
.modules { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; }
.modules label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 13.5px; }
.modules-label { font: 600 11.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--secondary); }
.module-panel.hidden-panel { display: none; }
#chart { width: 100%; max-width: 100%; display: block; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.metric { background: var(--elevated); border: 1px solid var(--card-border); border-radius: 14px; padding: 13px 14px; }
.metric .value { font: 650 24px/1.1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric .label { font-size: 12.5px; color: var(--secondary); margin-top: 6px; }
.pattern-list, .rec-list, .meal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pattern-list li, .rec-list li, .meal-list li { padding: 12px 14px; background: var(--elevated);
  border: 1px solid var(--card-border); border-radius: 12px; }
.pattern-list li strong, .rec-list li strong, .meal-list li strong { display: block; margin-bottom: 4px; color: var(--ink); }
.pattern-list .meta, .rec-list .meta { font-size: 12px; color: var(--tertiary); margin-bottom: 4px; }
.severity-high { border-left: 3px solid var(--low); }
.severity-medium { border-left: 3px solid var(--high); }
.severity-low { border-left: 3px solid var(--in-range); }
.summary-text p { margin: 0 0 10px; }
.loading-card { display: flex; align-items: center; gap: 14px; color: var(--secondary); }
.loading-spinner { width: 22px; height: 22px; border: 2px solid var(--card-border); border-top-color: var(--accent);
                   border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------- print: this layout IS the PDF */

@media print {
  :root {
    color-scheme: light;
    --screen: #fff; --card: #fff; --elevated: #fff; --chip: #f1f3f6;
    --ink: #111; --secondary: #555; --tertiary: #777; --card-border: #dfe4ea; --separator: #e8ecf1;
    --accent: #0a8f85; --line: #1a7ad6; --low: #c0392b; --high: #b8730f; --in-range: #1e7d4e;
  }
  .top, .no-print, .report-actions, .readout, .modules, .toolbar-actions { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .sec { break-inside: avoid; page-break-inside: avoid; box-shadow: none; }
  .scroll { max-height: none; overflow: visible; }
  a { text-decoration: none; color: inherit; }
}

/* ------------------------------ guidance: what it means, and what to do --- */

.fig .share { font-size: 12px; color: var(--accent); margin-top: 3px; font-variant-numeric: tabular-nums; }
.fig .means { font-size: 12px; color: var(--tertiary); margin-top: 8px; line-height: 1.5; }
.fig-hero .means { max-width: 46ch; }

/* Strengths and shortcomings side by side: the comparison is the point, and
   putting them in one column would make the second list read as an afterthought. */
.highlight-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hcol h3 { font: 600 13px/1.25 var(--font); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 10px; }
.hcol.good h3 { color: var(--in-range); }
.hcol.watch h3 { color: var(--high); }
.hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hlist li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.hlist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
                    border-radius: 50%; background: var(--accent); }
.hcol.good .hlist li::before { background: var(--in-range); }
.hcol.watch .hlist li::before { background: var(--high); }
.hlist.warn li::before { background: var(--low); }

.goal-group { margin-bottom: 18px; }
.goal-group:last-child { margin-bottom: 0; }
.goal-group h3 { font: 600 12.5px/1.25 var(--font); letter-spacing: .05em; text-transform: uppercase;
                 color: var(--secondary); margin: 0 0 9px; }

/* A finding is a headline plus its substance; the severity rail is the app's. */
ol.findings li strong { display: block; color: var(--ink); margin-bottom: 4px; }
ol.findings li .meta { font-size: 12px; color: var(--tertiary); margin-bottom: 5px; }
ol.findings li .body { color: var(--secondary); line-height: 1.55; }
ol.findings li.sev-high { border-left: 3px solid var(--low); }
ol.findings li.sev-medium { border-left: 3px solid var(--high); }
ol.findings li.sev-low { border-left: 3px solid var(--in-range); }

/* A note under a row, not beside it: on a phone an inline flag and the row's
   own value each wrap into a ragged half-width column. */
.meal-list .meal-note { font-size: 12px; margin-top: 4px; }
.meal-list .rise-high { color: var(--high); }
.meal-list .rise-low { color: var(--in-range); }
.sec h3 { font: 600 13px/1.25 var(--font); color: var(--ink); margin: 16px 0 9px; }
.sec h3:first-of-type { margin-top: 0; }

/* Idoszak-valaszto: a hossz a termekbol jon, a helye a vevotol. */
.period-picker { display: grid; gap: 8px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--separator); }
.period-picker label { display: grid; gap: 5px; font-size: 13px; color: var(--secondary); }
.period-picker input[type="date"] { padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--card-border); background: var(--elevated); color: var(--ink);
  font: inherit; color-scheme: inherit; }
.period-picker .btn { justify-self: start; }

/* ------------------------------- daily curves, episodes and the event log --
   Ported from `KontrollDailyCurvesCard`, `KontrollEpisodesCard` and
   `KontrollEventsCard`. The app draws these three; the web report — the thing
   people actually pay for — drew none of them. */

/* Small multiples. `auto-fill` rather than a fixed count: two panels on a
   phone, six on a desktop, and the shared y-scale means they stay comparable
   at any width. */
.curves { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.curve { min-width: 0; }
.curve-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.curve-head .d { font: 600 12.5px/1.2 var(--font); color: var(--ink); }
.curve-head .v { margin-left: auto; font-size: 11.5px; color: var(--secondary);
                 font-variant-numeric: tabular-nums; }
.curve-svg { width: 100%; height: auto; display: block; }
.curve-band { fill: var(--in-range); opacity: .10; }
.curve-ax { font: 400 8px/1 var(--font); fill: var(--tertiary); }
/* 1.4px, as the app's `StrokeStyle`. Thinner than the AGP median on purpose:
   thirty of these at once would otherwise read as a wall of colour. */
.curve-line { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.curve-line.is-in { stroke: var(--in-range); }
.curve-line.is-low { stroke: var(--low); }
.curve-line.is-high { stroke: var(--high); }

/* One row shape for both lists: icon, what it was, when — the app's
   `HStack(alignment: .firstTextBaseline)`. */
.rows { display: grid; gap: 2px; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0;
       border-bottom: 1px solid var(--separator); }
.row:last-child { border-bottom: 0; }
.row .ic.sm { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent-2);
              align-self: center; }
.row.is-low .ic.sm { color: var(--low); }
.row.is-high .ic.sm { color: var(--high); }
.row-main { min-width: 0; flex: 1 1 auto; }
.row-t { font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.row-s { font-size: 11.5px; color: var(--secondary); margin-top: 1px;
         font-variant-numeric: tabular-nums; }
.row-side { flex: 0 0 auto; text-align: right; }
.row-v { font: 600 13px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.row.is-low .row-v { color: var(--low); }
.row.is-high .row-v { color: var(--high); }
.row-side .row-s { text-align: right; }
.row-when { flex: 0 0 auto; font-size: 11.5px; color: var(--secondary);
            font-variant-numeric: tabular-nums; white-space: nowrap; }

/* On paper a curve panel must not be split across a page break, and the grid
   can afford a narrower track than a touch screen needs. */
@media print {
  .curves { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .curve, .row { break-inside: avoid; page-break-inside: avoid; }
}

/* Megosztás orvossal — a kész riport fejlécében.
   A mező és a gombok egy sorban, de telefonon egymás alá törnek: 360px-en egy
   48 karakteres link és két gomb nem fér el egymás mellett, és a `wrap` nélkül
   a mező nyomná ki az oldalt vízszintesen. */
.share-row { margin-top: 10px; }
.share-out { margin-top: 10px; }
.share-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-field {
  flex: 1 1 260px; min-width: 0; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}
.share-out .share-hint { margin-top: 8px; }
