/* GrowBrands panel. Kit stays in assets/gx. Accent is the family teal. */
:root {
  --gx-action: #0e7490;
  --gx-action-hover: #155e75;
  --gx-action-text: #0e7490;
  --gx-action-soft: #ecfeff;
  --gx-action-line: #a5f3fc;
}
.gb-mark { width: 36px; height: 36px; border-radius: 8px; }
.gx-app h1 { font-size: 20px; font-weight: 600; }
.gx-app h2 { font-size: 16px; font-weight: 600; }
.gx-app h3 { font-size: 14px; font-weight: 600; }
.gb-publish, .gb-pad { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.gb-block, .gb-gallery { margin-top: 16px; }
.gb-gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gb-gallery__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gb-shot-wrap { min-width: 0; padding: 12px; border: 1px solid #e7e5e4; border-radius: 12px; background: #fff; }
.gb-shot-wrap.is-chosen { border-color: #0e7490; }
.gb-shot { position: relative; overflow: hidden; border: 1px solid #e7e5e4; border-radius: 8px; background: #fff; }
.gb-shot iframe { position: absolute; top: 0; left: 0; border: 0; background: #fff; }
.gb-shot--desk { height: 168px; }
.gb-shot--desk iframe { width: 720px; height: 480px; transform: scale(0.42); transform-origin: 0 0; }
.gb-shot--mob { width: 164px; max-width: 100%; height: 210px; margin-top: 8px; }
.gb-shot--mob iframe { width: 390px; height: 700px; transform: scale(0.42); transform-origin: 0 0; }
.gb-field, .gb-tokens, .gb-window { display: grid; gap: 8px; }
.gb-tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gb-window { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; align-items: end; }
.gb-pad label, .gb-tokens label, .gb-window label, .gb-picker > label {
  display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500;
}
.gb-check { flex-direction: row; align-items: center; font-weight: 400; }
.gb-pad input, .gb-pad select, .gb-tokens input, .gb-window input, .gb-window select, .gb-picker input[type="search"] {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d6d3d1; border-radius: 8px; background: #fff; font-size: 14px;
}
.gb-check input { width: 16px; height: 16px; }
.gb-details { font-size: 14px; }
.gb-details summary { cursor: pointer; font-weight: 600; }
.gb-picker__list { max-height: 240px; margin: 0; padding: 0; overflow: auto; list-style: none; border: 1px solid #e7e5e4; border-radius: 12px; background: #fff; }
.gb-picker__list li + li { border-top: 1px solid #e7e5e4; }
.gb-picker__list label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; font-weight: 400; }
.gb-code { margin: 0; padding: 12px; overflow: hidden; border-radius: 8px; background: #f5f5f4; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.gb-clicks { width: 100%; border-collapse: collapse; font-size: 14px; }
.gb-clicks th, .gb-clicks td { padding: 8px 0; border-bottom: 1px solid #e7e5e4; text-align: left; }
.gb-clicks th { font-size: 13px; font-weight: 600; }
@media (max-width: 960px) {
  .gb-gallery__row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gb-tokens, .gb-window { grid-template-columns: 1fr; }
}

/* 10.10 — benchmark CSV: listy marek bez rozciągniętych pól wyboru, czytelne okna harmonogramu, wybór pliku po polsku */
.gb-pad input[type="checkbox"], .gb-pad input[type="radio"], .gb-pad input[type="file"] { width: auto; height: auto; padding: 0; border: 0; }
.gb-pad .gb-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.gb-pad .gb-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gx-action); flex: none; }
.gb-check small { font-weight: 400; color: var(--gx-muted); }
.gb-picker__list label { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; }
.gb-picker__list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gx-action); }
.gb-picker__list label:hover { background: #fafaf9; }
.gb-initial { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #ecfeff; color: #0e7490; font-size: 12px; font-weight: 700; }
.gb-brand-name { font-size: 14px; overflow-wrap: anywhere; }
.gb-picker__list label:has(input:checked) { background: #f0fdfa; }
.gb-picker__list label:has(input:checked) .gb-brand-name { font-weight: 600; }
.gb-details summary small { font-weight: 400; color: var(--gx-muted); margin-left: 6px; }
.gb-window { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px auto; }
.gb-remove { min-height: 40px; }
.gb-empty { margin: 0; font-size: 13px; color: var(--gx-muted); }
.gb-add { align-self: flex-start; }
.gb-drop { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; padding: 14px; border: 2px dashed #d6d3d1; border-radius: 12px; background: #fafaf9; cursor: pointer; }
.gb-drop:hover, .gb-drop:focus-within { border-color: #67e8f9; background: #ecfeff; }
.gb-drop > .gx-ico { width: 22px; height: 22px; color: #0e7490; flex: none; }
.gb-drop span { display: flex; flex-direction: column; }
.gb-drop small { font-weight: 400; color: var(--gx-muted); font-size: 12px; }
.gb-file { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; cursor: pointer; }
.gb-codeline { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.gb-codeline > span { font-size: 13px; font-weight: 600; }
.gx-card__head h2 small { font-size: 12px; font-weight: 400; }
@media (max-width: 720px) { .gb-codeline { grid-template-columns: 1fr; } .gb-window { grid-template-columns: 1fr; } }
.gb-check small, .gb-details summary small, .gb-drop small, .gx-card__head h2 small { font-size: 12px; }
/* GrowX admin kit — owner benchmark layer (CSV Power Tools), 2026-10-05.
   Adrian: dark active states read better than thin blue lines; icons sit in coloured tiles;
   a panel must not look bare. Loaded after gx-admin.css (or appended to it). */
:root{
  --gx-ink:#1c1917; --gx-ink-fg:#fff; --gx-ink-hover:#292524;
  --gx-t1-bg:#dbeafe; --gx-t1:#2563eb;   /* blue */
  --gx-t2-bg:#d1fae5; --gx-t2:#059669;   /* emerald */
  --gx-t3-bg:#fef3c7; --gx-t3:#d97706;   /* amber */
  --gx-t4-bg:#ffe4e6; --gx-t4:#e11d48;   /* rose */
  --gx-t5-bg:#ccfbf1; --gx-t5:#0d9488;   /* teal */
}

/* Tabs: the active tab is a dark pill with white text (CSV main navigation). */
.gx-tabs{gap:6px;padding-bottom:8px}
.gx-tab{min-height:40px;border-radius:var(--gx-r-sm)}
@media (max-width:640px){.gx-tab{min-height:44px}} /* touch target */
.gx-tab[aria-current="page"],.gx-tab[aria-selected="true"]{background:var(--gx-ink);color:var(--gx-ink-fg)!important;box-shadow:none}
.gx-tab[aria-current="page"] .gx-ico,.gx-tab[aria-selected="true"] .gx-ico{color:inherit}
.gx-tab[aria-current="page"]:hover,.gx-tab[aria-selected="true"]:hover{background:var(--gx-ink-hover)}

/* Segmented control: the chosen option is dark. */
.gx-seg input:checked + span{background:var(--gx-ink);color:var(--gx-ink-fg);box-shadow:none}
.gx-seg input:checked + span .gx-ico{color:inherit}

/* First steps: open steps are dark numbered badges, done steps stay green. */
.gx-step__mark{border:0;background:var(--gx-ink);color:var(--gx-ink-fg);font-weight:700}
.gx-step[aria-current="step"] .gx-step__mark{border:0;background:var(--gx-ink);color:var(--gx-ink-fg);box-shadow:0 0 0 3px var(--gx-line-strong)}
.gx-step[data-done="true"] .gx-step__mark{background:var(--gx-live-dot);color:#fff}

/* Choice cards: the chosen card gets a dark frame and a dark tick. */
.gx-choice:has(input:checked){border-color:var(--gx-ink);box-shadow:0 0 0 1px var(--gx-ink)}
.gx-choice__tick{background:var(--gx-ink)}
.gx-choice--row:has(input:checked) .gx-choice__icon{background:var(--gx-ink);color:var(--gx-ink-fg)}

/* Section headings: the leading icon becomes a coloured 32px tile; colours rotate across cards. */
.gx-h2{gap:10px}
.gx-h2 > .gx-ico:first-child{width:32px;height:32px;padding:7px;box-sizing:border-box;border-radius:10px;background:var(--gx-t1-bg);color:var(--gx-t1);vertical-align:middle}
.gx-card:nth-of-type(5n+2) .gx-h2 > .gx-ico:first-child{background:var(--gx-t2-bg);color:var(--gx-t2)}
.gx-card:nth-of-type(5n+3) .gx-h2 > .gx-ico:first-child{background:var(--gx-t3-bg);color:var(--gx-t3)}
.gx-card:nth-of-type(5n+4) .gx-h2 > .gx-ico:first-child{background:var(--gx-t4-bg);color:var(--gx-t4)}
.gx-card:nth-of-type(5n+5) .gx-h2 > .gx-ico:first-child{background:var(--gx-t5-bg);color:var(--gx-t5)}

/* Row choices: icons in coloured tiles, rotating like the CSV start cards. */
.gx-choice--row .gx-choice__icon{width:36px;height:36px;border-radius:10px;background:var(--gx-t1-bg);color:var(--gx-t1)}
.gx-choice--row:nth-child(5n+2) .gx-choice__icon{background:var(--gx-t2-bg);color:var(--gx-t2)}
.gx-choice--row:nth-child(5n+3) .gx-choice__icon{background:var(--gx-t3-bg);color:var(--gx-t3)}
.gx-choice--row:nth-child(5n+4) .gx-choice__icon{background:var(--gx-t4-bg);color:var(--gx-t4)}
.gx-choice--row:nth-child(5n+5) .gx-choice__icon{background:var(--gx-t5-bg);color:var(--gx-t5)}

/* Stats: an icon inside a stat becomes a coloured tile; values get the ink colour and weight. */
.gx-stat .gx-ico{width:40px;height:40px;padding:10px;box-sizing:border-box;border-radius:12px;background:var(--gx-t1-bg);color:var(--gx-t1);margin-bottom:8px}
.gx-stat:nth-child(5n+2) .gx-ico{background:var(--gx-t2-bg);color:var(--gx-t2)}
.gx-stat:nth-child(5n+3) .gx-ico{background:var(--gx-t3-bg);color:var(--gx-t3)}
.gx-stat:nth-child(5n+4) .gx-ico{background:var(--gx-t4-bg);color:var(--gx-t4)}
.gx-stat__value{color:var(--gx-ink);font-size:24px;font-weight:700}

/* r26 (03.11) — Pulpit, diagnoza, scenariusze, zalecane, wybory nazwane */
.gb-publish-card { margin-bottom: 16px; }
.gb-publish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px 8px; }
.gb-publish__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 60ch; }
.gb-publish__text p { margin: 0; font-size: 13px; }
.gb-result { margin: 0; padding: 0 20px 14px; min-height: 22px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.gb-result[role="alert"] { color: var(--gx-danger); font-weight: 600; }
.gb-result .gx-textbtn { display: inline-flex; align-items: center; gap: 4px; }
.gx-btn .gx-ico, .gx-textbtn .gx-ico { flex: none; }
.gx-btn { display: inline-flex; align-items: center; gap: 8px; }
.gb-welcome__head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 20px 20px 4px; }
.gb-welcome__head > div { flex: 1 1 340px; min-width: 0; }
.gb-welcome h1 { font-size: 22px; font-weight: 700; }
.gb-safe { flex: 0 1 320px; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; font-size: 13px; line-height: 1.45; }
.gb-safe .gx-ico { flex: none; color: #059669; }
.gb-stat-text { font-size: 18px !important; }
.gx-stat__value small { font-size: 13px; font-weight: 400; color: var(--gx-muted); }
.gb-ok { flex-direction: row !important; align-items: center; gap: 10px; margin: 0; }
.gb-ok .gx-ico { color: #059669; flex: none; }
.gb-issues { margin: 0; padding: 0; }
.gb-issues .gx-item { flex-wrap: nowrap; align-items: flex-start; }
.gb-issues .gx-item__main { flex: 1 1 auto; font-size: 14px; line-height: 1.45; }
.gb-issues .gx-item__actions { flex: none; margin-left: 0; }
.gb-issue__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--gx-t3-bg); color: var(--gx-t3); }
.gx-item[data-tone="error"] .gb-issue__ico { background: var(--gx-t4-bg); color: var(--gx-t4); }
.gx-item[data-tone="info"] .gb-issue__ico { background: var(--gx-t1-bg); color: var(--gx-t1); }
.gb-steps { list-style: none; margin: 0; padding: 4px 20px 20px; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb-step { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--gx-line); border-radius: 12px; background: #fff; }
.gb-step__tile { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gx-t1-bg); color: var(--gx-t1); }
.gb-step__tile[data-t="2"] { background: var(--gx-t2-bg); color: var(--gx-t2); }
.gb-step__tile[data-t="3"] { background: var(--gx-t3-bg); color: var(--gx-t3); }
.gb-step__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gb-step__body p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--gx-body); }
.gb-step__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gb-step__num { font-size: 12px; font-weight: 700; color: var(--gx-muted); }
.gb-step__state { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.gb-step[data-done="true"] .gb-step__state { background: #d1fae5; color: #065f46; }
.gx-textbtn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--gx-action-text); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.gx-textbtn:hover { text-decoration: underline; }
.gb-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gb-scenario { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; border: 1px solid var(--gx-line); border-radius: 12px; background: #fff; font: inherit; font-size: 13px; color: var(--gx-body); cursor: pointer; transition: transform 160ms ease, border-color 160ms ease; }
.gb-scenario:hover, .gb-scenario:focus-visible { border-color: var(--gx-ink); transform: translateY(-1px); }
.gb-scenario b { font-size: 14px; color: var(--gx-text); }
.gb-scenario em { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 600; color: var(--gx-action-text); }
.gb-scenario__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gx-t5-bg); color: var(--gx-t5); }
.gb-scenario:nth-child(2) .gb-scenario__ico { background: var(--gx-t3-bg); color: var(--gx-t3); }
.gb-scenario:nth-child(3) .gb-scenario__ico { background: var(--gx-t1-bg); color: var(--gx-t1); }
.gb-scenario-note { margin: 0; font-size: 13px; color: #065f46; animation: gb-pop 220ms ease-out; }
@keyframes gb-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gb-rec { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; counter-reset: rec; }
.gb-rec li { counter-increment: rec; display: flex; flex-direction: column; padding: 8px 12px 8px 36px; position: relative; border: 1px solid var(--gx-line); border-radius: 10px; background: #fff; font-size: 14px; }
.gb-rec li::before { content: counter(rec); position: absolute; left: 10px; top: 9px; font-size: 12px; font-weight: 700; color: var(--gx-muted); }
.gb-rec li span { font-size: 12px; color: var(--gx-muted); }
.gb-tuning { display: grid; gap: 16px; padding-top: 12px; }
.gb-tuning .gx-seg { width: fit-content; max-width: 100%; }
.gb-tuning small, .gb-accent small { font-weight: 400; }
.gx-optional { font-weight: 400; color: var(--gx-muted); font-size: 12px; }
.gb-gallery.gx-card { padding: 16px 20px 20px; }
.gb-gallery__bar h2 small { font-size: 12px; font-weight: 400; margin-left: 6px; }
.gx-btn.is-loading { pointer-events: none; opacity: .85; }
.gb-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gb-spin 700ms linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }
.gb-flash { animation: gb-flash 900ms ease-out; }
@keyframes gb-flash { from { box-shadow: 0 0 0 3px #67e8f9; } to { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 960px) { .gb-steps, .gb-scenarios { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .gb-issues .gx-item { flex-wrap: wrap; } .gb-issues .gx-item__actions { margin-left: 44px; } }
@media (prefers-reduced-motion: reduce) { .gb-spin, .gb-flash, .gb-scenario-note { animation: none; } .gb-scenario { transition: none; } .gb-spin { border-right-color: currentColor; } }
.gb-publish { flex-direction: row; }
.gb-publish__text { flex: 1 1 320px; }
.gx-stats.gb-pad { display: grid; flex-direction: initial; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
@media (max-width: 640px) { .gx-stats.gb-pad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
