@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* GULAS.TECH – moderní vzhled (modern.gulas.tech). Stejné stránky a data jako Norton Commander. */
:root {
  --bg: #F4F3EF; --card: #FFFFFF; --line: #E2E0D8; --line2: #F0EEE8; --field: #D5D3CB;
  --ink: #1B1F2A; --ink2: #3A3F4C; --muted: #5E6372; --faint: #9A9DA6;
  --accent: #2440B3; --accent-dk: #16287A; --accent-bg: #EAEDF8; --accent-sel: #EEF1FB;
  --ok: #1E6B3F; --ok-bg: #E3F2E8; --warn: #8A3708; --warn-bg: #FCEBDD; --warn-ink: #A4420B;
  --grey-bg: #EDEDEA; --draft: #5E5A46; --draft-bg: #F3F1E8;
  --r: 12px; --rs: 8px;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/20px "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--mono); font-size: 13px; }
.r { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }

/* kostra */
.app { display: flex; min-height: 100vh; }
.side { width: 216px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 20px 12px; gap: 2px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: var(--ink); text-decoration: none; }
.brand .g { width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 500;
  display: flex; align-items: center; justify-content: center; }
.brand .w { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .5px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { padding: 9px 10px; border-radius: var(--rs); color: var(--ink2); text-decoration: none; }
.side nav a:hover { background: var(--bg); color: var(--ink); }
.side nav a.on { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.side .grow { flex-grow: 1; }
.who { padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.who .name { font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font-size: 13px; text-decoration: underline; }
.mtop { display: none; }
.mainwrap { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
main.work { flex-grow: 1; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1400px; width: 100%; }

.phead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phead h1 { margin-right: auto; }
.mactions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* tlačítka a pole */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--field);
  border-radius: var(--rs); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 500; }
.btn:hover { border-color: var(--faint); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn.danger { color: var(--warn); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: none; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  height: 36px; border: 1px solid var(--field); border-radius: var(--rs); padding: 0 10px; background: var(--card); min-width: 0; width: 100%; }
textarea { height: auto; padding: 7px 10px; resize: vertical; }
input[readonly], input.ro { background: var(--bg); color: var(--muted); }
input.r, input.num { text-align: right; }
input.num { font-family: var(--mono); font-size: 13px; }
::placeholder { color: var(--faint); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios label { display: flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; background: var(--bg); border-radius: var(--rs); padding: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 5px 14px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(27,31,42,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span:first-child, .field > label:first-child, .lbl { color: var(--muted); }
.field .hint, .hint { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inline { display: flex; gap: 8px; align-items: flex-end; }
.inline > .field, .inline > input, .inline > select { flex: 1; }
.defsubmit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* karty */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2 .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.split { display: flex; gap: 16px; align-items: flex-start; }
.split > .list-panel { flex: 1.35 1 0; min-width: 0; }
.split > .detail-panel { flex: 1 1 0; min-width: 0; position: sticky; top: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .v { font-family: var(--mono); font-size: 20px; line-height: 28px; font-weight: 500; }
.stat .v.warn { color: var(--warn-ink); }

/* hlášky */
.msg { background: var(--accent-bg); color: #1B2C73; border-radius: 10px; padding: 10px 14px; margin: 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.err { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 0; }
.err div + div { margin-top: 4px; }

/* seznamy (a.row – výběr šipkami a klepnutím, stejné jako v NC) */
.lhead, a.row { display: grid; gap: 8px; align-items: center; padding: 10px 16px; }
.lhead { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); }
a.row { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line2); }
a.row:hover { background: #FAFAF7; }
a.row.sel, a.row.sel:hover { background: var(--accent-sel); box-shadow: inset 3px 0 0 var(--accent); }
a.row.hidden { display: none; }
a.row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs .lhead, .docs a.row { grid-template-columns: 104px minmax(0, 1fr) 96px 132px 108px; }
.custs .lhead, .custs a.row { grid-template-columns: minmax(0, 1fr) 96px 130px; }
.s-sto { color: var(--faint); }
.list .empty, .empty { padding: 16px; color: var(--muted); margin: 0; }
.lfoot { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.lfoot a { font-weight: 500; }
.filter { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--field); border-radius: var(--rs); padding: 0 10px; height: 36px; width: 280px; }
.filter input { border: 0 !important; height: 32px !important; padding: 0 !important; outline: 0; background: none !important; }
.filter svg { color: var(--muted); flex-shrink: 0; }
.qsearch { display: none; }

.badge { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.b-uhr { background: var(--ok-bg); color: var(--ok); }
.b-vys { background: var(--accent-bg); color: var(--accent); }
.b-sp { background: var(--warn-bg); color: var(--warn); }
.b-sto { background: var(--grey-bg); color: var(--muted); }
.b-roz { background: var(--draft-bg); color: var(--draft); }

.yearnav { display: inline-flex; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--rs); padding: 2px; }
.yearnav a, .yearnav span.dis { width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; color: var(--ink2); }
.yearnav a:hover { background: var(--bg); }
.yearnav span.dis { color: var(--line); }
.yearnav b { padding: 0 8px; font-family: var(--mono); }

/* detail */
.dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 6px; column-gap: 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dhead { display: flex; align-items: flex-start; gap: 12px; }
.dhead .t { flex: 1; min-width: 0; }
.dhead .no { font-family: var(--mono); font-size: 20px; line-height: 28px; font-weight: 500; }
.sep { border-top: 1px solid var(--line2); }
.ilist { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ilist .it { display: flex; gap: 12px; }
.ilist .it > :first-child { flex: 1; min-width: 0; }
.intro { color: var(--muted); font-style: italic; white-space: pre-line; }
.totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; column-gap: 16px; font-size: 13px; }
.totals > :nth-child(2n) { text-align: right; font-family: var(--mono); }
.totals .big { font-weight: 600; font-size: 16px; padding-top: 6px; }
.totals .big:nth-child(2n) { font-weight: 500; font-size: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.follow { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.follow.hi { background: var(--accent-bg); }
.checks { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #F7F6F2; border-radius: 10px; }
.checks .line { display: flex; gap: 10px; align-items: baseline; }
.diff { display: flex; flex-direction: column; gap: 4px; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; }

/* formulář dokladu */
.docform { display: flex; flex-direction: column; gap: 16px; }
.docform > .head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fgrid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .note { grid-column: 2; font-size: 13px; color: var(--muted); margin-top: -4px; }
.items { display: grid; grid-template-columns: 24px minmax(0, 1fr) 96px 80px 140px 84px 130px; gap: 8px; align-items: center; }
.items.pdp { grid-template-columns: 24px minmax(0, 1fr) 90px 70px 130px 80px 120px 150px; }
.items .th { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.items .pos { color: var(--faint); text-align: right; font-size: 13px; }
.items .lt { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.items input::placeholder { color: transparent; }
.dfoot { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dfoot .grow { flex: 1; }
.sum { display: grid; grid-template-columns: auto minmax(160px, auto); column-gap: 24px; row-gap: 2px; text-align: right; }
.sum > :nth-child(2n) { font-family: var(--mono); }
.sum .big { font-weight: 600; font-size: 16px; padding-top: 6px; }
.sum .big:nth-child(2n) { font-weight: 500; font-size: 18px; }
.deposits { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.deposits legend { padding: 0 6px; color: var(--muted); }
.bar { position: sticky; bottom: 0; z-index: 3; background: var(--card); border-top: 1px solid var(--line); margin: 0 -28px -40px; padding: 12px 28px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar .grow { flex: 1; }

/* tabulky */
.tbl { display: grid; gap: 6px 14px; align-items: baseline; }
.tbl .th { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.tbl .num { font-family: var(--mono); font-size: 13px; text-align: right; }
.lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.lines > :nth-child(2n) { text-align: right; font-family: var(--mono); font-size: 13px; }
.lines .hi { font-weight: 600; }
.lines .bad { color: var(--warn-ink); font-weight: 600; }
.lines .good { color: var(--ok); font-weight: 600; }

/* přihlášení a samostatné karty */
.auth { min-height: 100vh; display: flex; }
.auth .hero { width: 44%; max-width: 560px; background: var(--accent); color: #fff; padding: 56px; display: flex; flex-direction: column; gap: 24px; }
.auth .hero .brand { color: #fff; padding: 0; }
.auth .hero .brand .g { background: #fff; color: var(--accent); }
.auth .hero h2 { font-size: 38px; line-height: 46px; letter-spacing: -.5px; }
.auth .hero p { margin: 0; font-size: 17px; line-height: 26px; color: #DCE2F7; }
.auth .hero .grow { flex: 1; }
.auth .hero .foot { font-size: 13px; color: #C3CCF0; }
.auth .pane { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth .box form { display: flex; flex-direction: column; gap: 14px; }
.auth .box .btn.primary { height: 44px; font-size: 15px; }
.auth input:not([type=checkbox]) { height: 44px; }
.auth .code { font-family: var(--mono); font-size: 24px; letter-spacing: 10px; text-align: center; }
.auth .foot2 { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.center { display: flex; justify-content: center; }
.narrow { width: 100%; max-width: 720px; }

/* šablony */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.tpl .thumb { display: block; line-height: 0; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; }
.tpl .thumb img { width: 100%; height: auto; aspect-ratio: 210 / 297; }
.tpl .tname { font-weight: 600; }
.tpl .tname .year { color: var(--muted); font-weight: 400; }
.tpl .tdesc { font-size: 13px; color: var(--muted); flex: 1; }
.series { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 100px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.series .th { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.donate { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.help ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.help .keys { grid-template-columns: 220px minmax(0, 1fr); }
.bfiles { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.urow { display: grid; grid-template-columns: minmax(0, 1fr) 170px 70px; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.urow.head { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.warnv { color: var(--warn-ink); font-weight: 600; }
.mlabel { display: none; }

/* telefon */
@media (max-width: 800px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 24px rgba(0,0,0,.2); }
  body.navopen .side { transform: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 10; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
  .mtop .brand { padding: 0; }
  .mtop .menu { width: 44px; height: 44px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rs); cursor: pointer; }
  main.work { padding: 14px 12px 24px; gap: 12px; }
  h1 { font-size: 20px; line-height: 28px; }
  .mactions { width: 100%; justify-content: flex-start; }
  .mactions .btn { flex: 1 1 auto; height: 40px; }
  .split { flex-direction: column; }
  .split > .detail-panel { position: static; width: 100%; scroll-margin-top: 70px; }
  .split > .list-panel { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:nth-child(3) { display: none; }
  .docs .lhead, .custs .lhead { display: none; }
  .docs a.row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c a" "n s"; row-gap: 2px; padding: 12px 14px; }
  .docs a.row > span:nth-child(1) { grid-area: n; color: var(--muted); }
  .docs a.row > span:nth-child(2) { grid-area: c; font-weight: 600; }
  .docs a.row > span:nth-child(3) { display: none; }
  .docs a.row > span:nth-child(4) { grid-area: a; text-align: right; }
  .docs a.row > span:nth-child(5) { grid-area: s; text-align: right; }
  .custs a.row { grid-template-columns: minmax(0, 1fr) auto; }
  .custs a.row > span:nth-child(3) { display: none; }
  .filter { width: 100%; }
  .grid2, .docform > .head, .row2, .row3 { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; gap: 4px; }
  .fgrid .note { grid-column: 1; margin: 0 0 6px; }
  .items, .items.pdp { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .items .th { display: none; }
  .items .pos { grid-column: 1 / -1; text-align: left; margin-top: 10px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .items .pos::before { content: attr(data-l) " "; }
  .items input[name=popis], .items select[name=kod], .items .lt { grid-column: 1 / -1; }
  .items input::placeholder { color: var(--faint); }
  .items .lt:not(:empty)::before { content: attr(data-l) ": "; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; }
  .bar { margin: 0 -12px -24px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .bar .btn { flex: 1 1 auto; height: 44px; }
  .sum { grid-template-columns: auto minmax(0, 1fr); }
  .auth { flex-direction: column; }
  .auth .hero { width: 100%; max-width: none; padding: 24px; gap: 10px; }
  .auth .hero h2 { font-size: 24px; line-height: 30px; }
  .auth .hero .grow, .auth .hero .foot, .auth .hero p { display: none; }
  .auth .pane { padding: 24px 16px; align-items: flex-start; }
  .series { grid-template-columns: minmax(0, 1fr) 100px; }
  .series .th { display: none; }
  .series .sl { grid-column: 1 / -1; font-weight: 600; margin-top: 8px; }
  .series .ex { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .help .keys { grid-template-columns: 1fr; }
  .urow { grid-template-columns: minmax(0, 1fr) auto; }
  .urow > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .urow.head { display: none; }
  .mlabel { display: inline; }
  .tbl.wide { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  input, select, textarea { font-size: 16px; }
}
@media print { .side, .mtop, .mactions, .bar { display: none !important; } }
/* pomocné třídy (CSP nedovolí style="") */
.c3 { grid-template-columns: minmax(0, 1fr) auto auto; }
.c-ec { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.c-pdp { grid-template-columns: minmax(0, 1fr) auto auto auto auto auto; }
.c-a4 { grid-template-columns: minmax(0, 1fr) auto auto auto auto; }
.ml { margin-left: auto; }
.ac { align-items: center; }
.m0 { margin: 0; }
.wauto { width: auto !important; font-weight: 600; }
.white { color: #fff; }
.spread { display: flex; justify-content: space-between; }
.end { justify-content: flex-end; }
.f18 { font-size: 18px; line-height: 26px; }
.f20 { font-size: 20px; line-height: 28px; }
.full { grid-column: 1 / -1; }
.w200 { max-width: 200px; }
.tl { text-align: left !important; }
.as { align-self: flex-start; }
main.work.auth { flex-direction: row; padding: 0; max-width: none; gap: 0; }
input.mono { font-family: var(--mono); font-size: 13px; }
@media (max-width: 800px) {
  main.work.auth { flex-direction: column; }
  .split > .list-panel, .split > .detail-panel { flex: none; }
  .stat .v { font-size: 16px; line-height: 22px; }
  .bar .small, .bar .hide-m { display: none; }
}

/* Volba jazyka na přihlašovací stránce */
.langs { display: flex; gap: 14px; font-size: 14px; }
.langs a[aria-current] { color: var(--ink, #1B1F2A); font-weight: 600; text-decoration: none; }
