:root {
    color-scheme: dark;
    --tj-bg: #07101e;
    --tj-sidebar: #0b1627;
    --tj-panel: #11233a;
    --tj-field: #0b182a;
    --tj-text: #eaf1fc;
    --tj-muted: #91a6c5;
    --tj-accent: #258bff;
    --tj-accent-text: #78bcff;
    --tj-on-accent: #041327;
    --tj-border: #2a4160;
    --tj-hover: #1a3352;
    --tj-green: #71d9a8;
    --tj-yellow: #ffd280;
    --tj-red: #ff9b9e;
    --tj-shadow: 0 16px 40px #0003;
    --tj-radius: 16px;
    --tj-tint: brightness(0) saturate(100%) invert(54%) sepia(51%) saturate(2490%) hue-rotate(181deg) brightness(112%) contrast(101%);
    --tj-font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

:root[data-tj-theme="light"] {
    color-scheme: light;
    --tj-bg: #edf3fb;
    --tj-sidebar: #f8fbff;
    --tj-panel: #fff;
    --tj-field: #f4f8fd;
    --tj-text: #14263f;
    --tj-muted: #4a627f;
    --tj-accent: #096be0;
    --tj-accent-text: #075dbb;
    --tj-on-accent: #fff;
    --tj-border: #c6d6e9;
    --tj-hover: #e7f0fe;
    --tj-green: #137452;
    --tj-yellow: #865600;
    --tj-red: #a72c3d;
    --tj-shadow: 0 16px 36px #21466915;
    --tj-tint: brightness(0) saturate(100%) invert(31%) sepia(85%) saturate(2547%) hue-rotate(199deg) brightness(95%) contrast(96%);
}

.tj-app, .tj-auth {
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    background: var(--tj-bg);
    background: radial-gradient(ellipse at 82% -10%, color-mix(in srgb, var(--tj-accent) 14%, transparent), transparent 48%), var(--tj-bg);
    color: var(--tj-text);
    font: 400 1rem/1.55 var(--tj-font);
}

.tj-app *, .tj-app *::before, .tj-app *::after,
.tj-auth *, .tj-auth *::before, .tj-auth *::after { box-sizing: border-box; }
.tj-app [hidden], .tj-auth [hidden] { display: none !important; }
.tj-app :focus-visible, .tj-auth :focus-visible { outline: 2px solid var(--tj-accent-text); outline-offset: 4px; }
.tj-app a:not([class]), .tj-auth a:not([class]) { color: var(--tj-accent-text); text-underline-offset: .2em; }
.tj-muted { color: var(--tj-muted); }
.tj-sr-only, .tj-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    margin: -1px;
    border: 0;
}
.tj-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px; background: var(--tj-sidebar); color: var(--tj-text); }
.tj-brand-image { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; filter: var(--tj-tint); }

.tj-shell.wrapper { display: grid; grid-template-columns: 14rem minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100vh; transform: none; }
.tj-sidebar {
    position: sticky;
    inset-block-start: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow-y: auto;
    background: var(--tj-sidebar);
    border-inline-end: 1px solid var(--tj-border);
    padding: 1.5rem 1rem 1rem;
}
.tj-sidebar-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 2rem; }
.tj-brand { display: flex; min-height: 4rem; flex-direction: column; justify-content: center; gap: .4rem; margin: 0 0 1.65rem; padding: 0 .7rem; color: var(--tj-text); text-decoration: none; }
.tj-brand img { height: 2.35rem; max-width: 10rem; object-position: left center; }
.tj-brand span { color: var(--tj-muted); font-size: .9rem; font-weight: 650; }
.tj-nav { display: grid; gap: .35rem; }
.tj-nav a { display: flex; align-items: center; min-height: 44px; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: var(--tj-muted); text-decoration: none; font-size: .91rem; font-weight: 650; }
.tj-nav a:hover { background: var(--tj-hover); color: var(--tj-text); }
.tj-nav a[aria-current] { background: var(--tj-hover); box-shadow: inset 3px 0 var(--tj-accent); color: var(--tj-text); }
.tj-nav-icon { width: 1.2rem; flex: none; color: var(--tj-accent-text); font: 600 1.03rem/1 var(--tj-font); text-align: center; }
.tj-sidebar-account { display: grid; gap: .5rem; border-top: 1px solid var(--tj-border); padding: .85rem .25rem 0; }
.tj-sidebar-account p { margin: 0; color: var(--tj-text); overflow-wrap: anywhere; font-size: .9rem; font-weight: 700; }
.tj-sidebar-account form { margin: 0; }
.tj-sidebar-account button { width: 100%; justify-content: flex-start; }
.tj-sidebar .tj-mobile-menu { display: none; }

.tj-app .tj-shell-content.content { grid-column: 2; grid-row: 1; width: min(calc(100% - 3rem), 980px); max-width: none; min-width: 0; margin: 2rem auto; padding: clamp(1.1rem, 3vw, 2rem); background: var(--tj-panel); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); box-shadow: var(--tj-shadow); }
.tj-app .tj-shell-content--full.content { width: min(calc(100% - 3rem), 1480px); padding: 0; background: none; border: 0; box-shadow: none; }
.tj-shell > .footer { grid-column: 2; grid-row: 2; color: var(--tj-muted); margin: .2rem auto 1.2rem; padding: 0 1rem; }
.tj-shell > .footer a { color: var(--tj-accent-text); }
.tj-page { display: grid; gap: 1rem; min-width: 0; }
.tj-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.tj-page-header h1, .tj-auth-card h1 { color: var(--tj-text); margin: 0; font-size: clamp(1.85rem, 3vw, 2.9rem); line-height: 1.14; letter-spacing: -.046em; }
.tj-page-header p { margin: .48rem 0 0; color: var(--tj-muted); font-size: .95rem; overflow-wrap: anywhere; }
.tj-panel { min-width: 0; padding: clamp(.9rem, 2vw, 1.4rem); background: var(--tj-panel); background: linear-gradient(145deg, color-mix(in srgb, var(--tj-panel) 95%, var(--tj-accent) 5%), var(--tj-panel) 60%); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); box-shadow: var(--tj-shadow); }
.tj-panel h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.018em; color: var(--tj-text); }
.tj-panel-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .82rem; }
.tj-panel-heading p, .tj-panel-heading span { margin: 0; color: var(--tj-muted); font-size: .85rem; }

.tj-button, .tj-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: .45rem;
    padding: .56rem .85rem;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    background: var(--tj-field);
    color: var(--tj-text);
    font: 650 .9rem/1.25 var(--tj-font);
    text-decoration: none;
    text-align: start;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tj-button:hover, .tj-icon-button:hover { background: var(--tj-hover); border-color: var(--tj-accent-text); }
.tj-button--primary { background: var(--tj-accent); border-color: var(--tj-accent); color: var(--tj-on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--tj-accent) 19%, transparent); }
.tj-button--primary:hover { background: color-mix(in srgb, var(--tj-accent) 88%, var(--tj-on-accent)); border-color: var(--tj-accent); }
:root[data-tj-theme="light"] .tj-button--primary:hover { background: #075fc7; }
.tj-button--quiet { background: transparent; }
.tj-button--small { font-size: .79rem; padding-inline: .58rem; min-height: 36px; }
.tj-button--success { color: var(--tj-green); }
.tj-button span { flex: none; }
.tj-icon-button { background: transparent; }
.tj-theme-control { color: var(--tj-muted); }
.tj-form { display: grid; gap: 1rem; }
.tj-field { display: grid; min-width: 0; align-content: start; gap: .32rem; color: var(--tj-text); font-size: .86rem; font-weight: 650; }
.tj-field input, .tj-field select, .tj-field textarea, .tj-fieldset-control {
    min-width: 0; width: 100%; min-height: 44px; margin: 0; border: 1px solid var(--tj-border); border-radius: 9px;
    padding: .55rem .68rem; background: var(--tj-field); color: var(--tj-text); font: 400 1rem/1.3 var(--tj-font);
}
.tj-field input::placeholder { color: var(--tj-muted); opacity: 1; }
.tj-field input:focus, .tj-field select:focus, .tj-field textarea:focus, .tj-fieldset-control:focus { border-color: var(--tj-accent-text); outline: 2px solid var(--tj-accent-text); outline-offset: 1px; box-shadow: none; }
.tj-message { padding: .65rem .8rem; margin: 0; border-radius: 10px; border: 1px solid currentColor; }
.tj-message--error { color: var(--tj-red); }
.tj-filters { display: grid; grid-template-columns: minmax(6.2rem, .65fr) minmax(9.25rem, .88fr) minmax(8rem, 1fr) minmax(8rem, 1.2fr) minmax(8rem, 1.1fr) auto; align-items: end; gap: .6rem; }
.tj-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.tj-filter-clear { color: var(--tj-accent-text); padding: .5rem .25rem; font-size: .85rem; text-underline-offset: .18em; }

.tj-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.tj-stat { display: grid; gap: .18rem; margin: 0; padding: .9rem; min-height: 108px; }
.tj-stat dt { color: var(--tj-muted); font-size: .83rem; min-width: 0; overflow-wrap: anywhere; }
.tj-stat dd { margin: 0; }
.tj-stat .tj-stat-count { color: var(--tj-text); font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 720; line-height: 1.12; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tj-stat .tj-stat-value { color: var(--tj-muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
.tj-stat .tj-stat-value--red { color: var(--tj-red); }
.tj-stat .tj-stat-value--green { color: var(--tj-green); }
.tj-stat .tj-stat-value--blue { color: var(--tj-accent-text); }
.tj-overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); align-items: stretch; gap: 1rem; }
.tj-chart { margin: 0; }
.tj-chart-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: clamp(.15rem, .9vw, .68rem); margin: 0; padding: .65rem 0 .2rem; list-style: none; }
.tj-chart-bars li { min-width: 0; display: grid; justify-items: center; gap: .32rem; }
.tj-chart-track { display: flex; height: 6.75rem; width: 100%; max-width: 2rem; align-items: flex-end; border-radius: 6px; background: color-mix(in srgb, var(--tj-accent) 10%, transparent); }
.tj-chart-bar { width: 100%; height: var(--tj-bar-height); max-height: 100%; border-radius: 6px; background: linear-gradient(0deg, #1a5ec7, #51aafb); }
.tj-chart-bar--credit { background: var(--tj-red); }
.tj-chart-label { color: var(--tj-muted); font: 650 .69rem/1.4 var(--tj-font); }
.tj-chart-details { margin-top: .7rem; color: var(--tj-muted); font-size: .82rem; }
.tj-chart-details summary, .tj-utility summary { cursor: pointer; }
.tj-chart-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .35rem .7rem; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.tj-chart-values li { display: flex; justify-content: space-between; gap: .35rem; }
.tj-chart-values strong { color: var(--tj-text); }
.tj-short-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tj-short-list li { display: flex; justify-content: space-between; gap: .65rem; padding: .67rem 0; border-bottom: 1px solid var(--tj-border); }
.tj-short-list li:last-child { border-bottom: 0; }
.tj-short-list a { font-size: .9rem; font-weight: 700; }
.tj-short-list span, .tj-short-list small { display: block; color: var(--tj-muted); font-size: .8rem; }
.tj-short-list strong { color: var(--tj-text); font-size: .89rem; }
.tj-short-list .tj-short-total { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.tj-empty { color: var(--tj-muted); margin: .8rem 0; }

.tj-table-wrap { min-width: 0; overflow-x: auto; }
.tj-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .87rem; }
.tj-table th, .tj-table td { border-bottom: 1px solid var(--tj-border); padding: .65rem .45rem; color: var(--tj-text); text-align: start; vertical-align: middle; }
.tj-table tr:last-child td { border-bottom: 0; }
.tj-table th { color: var(--tj-muted); letter-spacing: .015em; text-transform: none; font-size: .8rem; font-weight: 680; white-space: nowrap; }
.tj-table td:first-child a { color: var(--tj-accent-text); font-weight: 700; }
.tj-table .tj-money, .tj-table time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tj-due-late { color: var(--tj-red); font-weight: 650; }
.tj-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.tj-row-actions form { display: inline-flex; margin: 0; }
.tj-pill { display: inline-flex; align-items: center; gap: .37rem; min-width: 0; border: 1px solid currentColor; border-radius: 999px; padding: .27rem .5rem; color: var(--tj-muted); font-size: .77rem; font-weight: 700; line-height: 1.16; white-space: nowrap; }
.tj-pill::before { content: ""; width: .43rem; height: .43rem; flex: none; border-radius: 50%; background: currentColor; }
.tj-pill--rozpracovana { color: var(--tj-yellow); }
.tj-pill--odeslana { color: var(--tj-accent-text); }
.tj-pill--zaplacena { color: var(--tj-green); }
.tj-pagination { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--tj-border); margin-top: .7rem; padding-top: .7rem; color: var(--tj-muted); font-size: .85rem; }
.tj-pagination div { display: flex; gap: .45rem; }
.tj-page .tj-utility > summary { color: var(--tj-text); font-weight: 650; }
.tj-utility[open] > summary { margin-bottom: .75rem; }
.tj-calculator { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.tj-calculator-results { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; margin-bottom: 0; }
.tj-calculator-results dt { color: var(--tj-muted); font-size: .85rem; }
.tj-calculator-results dd { margin: 0; font-weight: 650; }

.tj-auth { display: grid; grid-template-rows: 1fr auto; padding: clamp(.85rem, 4vw, 3rem); position: relative; }
.tj-auth-theme { position: absolute; inset: 1rem 1rem auto auto; }
.tj-auth-layout { justify-self: center; align-self: center; width: min(100%, 54rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.2rem, 5vw, 4.4rem); padding: 4rem 0 2rem; }
.tj-auth-brand { min-width: 0; display: grid; place-items: start; gap: .6rem; }
.tj-auth-brand img { width: min(100%, 20rem); max-height: 8rem; object-position: left center; }
.tj-auth-brand p { font-size: clamp(2rem, 6vw, 4rem); margin: 0; letter-spacing: -.06em; font-weight: 750; line-height: 1.1; }
.tj-auth-card { padding: clamp(1.25rem, 4vw, 2rem); }
.tj-auth-card h1 { margin: 0 0 1.45rem; font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
.tj-auth-card .tj-form button, .tj-unit-list button { width: 100%; justify-content: space-between; }
.tj-auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; color: var(--tj-muted); font-size: .84rem; margin-top: 1rem; }
.tj-unit-list { display: grid; gap: .5rem; }
.tj-auth-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .95rem; font-size: .88rem; }

@media (max-width: 1260px) {
    .tj-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
    .tj-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
    .tj-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .tj-shell.wrapper { display: flex; flex-direction: column; }
    .tj-sidebar { z-index: 2; height: auto; max-height: min(80dvh, 34rem); padding: .55rem 1rem; border-inline-end: 0; border-bottom: 1px solid var(--tj-border); }
    .tj-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
    .tj-sidebar-top .tj-brand { min-height: 44px; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: .5rem; }
    .tj-brand img { height: 1.8rem; max-width: 7.25rem; }
    .tj-sidebar .tj-mobile-menu { display: inline-flex; }
    .tj-has-menu .tj-sidebar-body:not(.is-open) { display: none; }
    .tj-sidebar-body { margin-top: .5rem; gap: .7rem; }
    .tj-sidebar-account { padding-inline: 0; }
    .tj-sidebar-account form, .tj-sidebar-account button { width: auto; }
    .tj-menu-icon { width: 1rem; height: .62rem; border-block: 1px solid currentColor; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat; }
    .tj-app .tj-shell-content.content { width: calc(100% - 2rem); margin: 1.2rem auto; }
    .tj-shell > .footer { margin-top: auto; }
    .tj-button--small { min-height: 44px; }
}
@media (max-width: 650px) {
    .tj-auth-layout { grid-template-columns: minmax(0, 1fr); width: min(100%, 26rem); }
    .tj-auth-brand img { max-width: min(64%, 12rem); max-height: 3.3rem; }
    .tj-auth-brand p { font-size: 2rem; }
    .tj-page-header { align-items: start; flex-direction: column; }
    .tj-filters, .tj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tj-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .tj-filters .tj-search { grid-column: 1 / -1; }
    .tj-filter-actions { grid-column: 1 / -1; }
    .tj-stat { min-height: 88px; padding: .7rem; }
    .tj-stats .tj-stat:last-child { grid-column: 1 / -1; }
    .tj-table--invoices { display: block; }
    .tj-table--invoices thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .tj-table--invoices tbody { display: grid; gap: .65rem; }
    .tj-table--invoices tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .65rem; border: 1px solid var(--tj-border); border-radius: 12px; }
    .tj-table--invoices td { display: block; min-width: 0; padding: .25rem; border: 0; word-break: normal; overflow-wrap: anywhere; }
    .tj-table--invoices td::before { content: attr(data-label); display: block; color: var(--tj-muted); font-size: .76rem; }
    .tj-table--invoices td:first-child, .tj-table--invoices td:last-child { grid-column: 1 / -1; }
    .tj-table--invoices td :is(time,.tj-pill) { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .tj-button, .tj-icon-button { transition: none; }
}


/* EET configuration wizard */
.tj-eet-wizard { display: grid; gap: clamp(.8rem, 2vw, 1.4rem); }
.tj-eet-wizard > * { min-width: 0; }
.tj-eet-wizard > .tj-page-header { align-items: center; }
.tj-eet-environment { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.tj-eet-environment > .tj-field { min-width: min(11rem, 100%); }
.tj-eet-progress ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: .55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tj-eet-progress-link {
    display: flex;
    align-items: center;
    gap: .58rem;
    height: 100%;
    min-width: 0;
    min-height: 4.1rem;
    padding: .65rem;
    color: var(--tj-text);
    background: var(--tj-panel);
    border: 1px solid var(--tj-border);
    border-radius: .75rem;
    text-decoration: none;
}
.tj-eet-progress-link:hover,
.tj-eet-progress-link[aria-current="step"] {
    border-color: var(--tj-accent);
    background: color-mix(in srgb, var(--tj-panel) 89%, var(--tj-accent) 11%);
}
.tj-eet-progress-link strong, .tj-eet-progress-link small { display: block; overflow-wrap: anywhere; }
.tj-eet-progress-link strong { font-size: .88rem; }
.tj-eet-progress-link small { color: var(--tj-muted); font-size: .74rem; }
.tj-eet-step-icon {
    flex: 0 0 1.65rem;
    display: grid;
    place-items: center;
    height: 1.65rem;
    border: 1px solid var(--tj-border);
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 750;
}
.tj-eet-progress-link.is-complete .tj-eet-step-icon,
.tj-eet-progress-link[aria-current="step"] .tj-eet-step-icon {
    color: var(--tj-text);
    background: color-mix(in srgb, var(--tj-panel) 70%, var(--tj-accent) 30%);
}
.tj-eet-reauth {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .7rem 1rem;
    padding: .85rem;
    border: 1px solid var(--tj-border);
    border-left: .25rem solid var(--tj-accent);
    border-radius: .7rem;
}
.tj-eet-reauth p { margin: .25rem 0 0; color: var(--tj-muted); }
.tj-eet-reauth input { max-width: 10rem; }
.tj-eet-edit { min-width: 0; padding: clamp(.7rem, 2vw, 1.2rem); margin: 0; border: 1px solid var(--tj-border); border-radius: .85rem; }
.tj-eet-edit legend { padding: 0 .35rem; color: var(--tj-text); font-weight: 750; }
.tj-eet-edit :is(code, dd) { overflow-wrap: anywhere; }
.tj-eet-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: end;
    gap: .75rem;
    margin: .7rem 0 1rem;
}
.tj-eet-form-actions, .tj-eet-form > .tj-eet-check { grid-column: 1 / -1; }
.tj-eet-saved { padding: .8rem; border: 1px solid var(--tj-border); border-radius: .6rem; }
.tj-eet-form .tj-field { min-width: 0; }
.tj-eet-check { display: flex; align-items: start; gap: .5rem; color: var(--tj-text); }
.tj-eet-check input { flex: 0 0 auto; margin-top: .19em; }
.tj-eet-mode-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .65rem; }
.tj-eet-activation { display: grid; justify-items: start; gap: .45rem; }
.tj-eet-next { justify-content: space-between; }
.tj-eet-wizard button:disabled, .tj-eet-edit:disabled :is(input, select) { opacity: .64; }
@media (max-width: 480px) {
    .tj-eet-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tj-eet-progress-link { padding: .5rem; min-height: 3.5rem; }
    .tj-eet-progress-link strong { font-size: .8rem; }
    .tj-eet-step-icon { flex-basis: 1.35rem; height: 1.35rem; }
    .tj-eet-environment > .tj-field { flex: 1 1 100%; }
}

/* Customer permissions */
.tj-tenant-access { margin-block: 1rem; scroll-margin-block-start: 1rem; }
.tj-tenant-access > .tj-message { margin-block-end: .75rem; }
.tj-tenant-access .tj-tenant-add-account { display: grid; grid-template-columns: minmax(0, 23rem) auto; align-items: end; justify-content: start; gap: .65rem; margin: 0 0 1rem; }
.tj-tenant-access .tj-tenant-cards { display: grid; gap: .9rem; }
.tj-tenant-access .tj-tenant-card { display: grid; gap: .85rem; min-width: 0; padding: clamp(.65rem, 2vw, 1rem); background: var(--tj-field); border: 1px solid var(--tj-border); border-radius: 12px; }
.tj-tenant-access .tj-tenant-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; }
.tj-tenant-access .tj-tenant-card-heading h3 { margin: 0; color: var(--tj-text); overflow-wrap: anywhere; }
.tj-tenant-access .tj-tenant-statuses { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.tj-tenant-access .tj-tenant-status { color: var(--tj-muted); border: 1px solid currentColor; border-radius: 6px; padding: .12rem .38rem; font-size: .76rem; font-weight: 650; }
.tj-tenant-access .tj-tenant-status--active { color: var(--tj-green); }
.tj-tenant-access .tj-tenant-status--paused { color: var(--tj-yellow); }
.tj-tenant-access .tj-tenant-permission-form { display: grid; gap: .85rem; margin: 0; }
.tj-tenant-access .tj-tenant-permission-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .7rem; }
.tj-tenant-access .tj-tenant-unit-fieldset { min-width: 0; padding: .3rem .65rem .65rem; margin: 0; border: 1px solid var(--tj-border); border-radius: 9px; }
.tj-tenant-access .tj-tenant-unit-fieldset legend { padding-inline: .3rem; font-size: .9rem; font-weight: 650; }
.tj-tenant-access .tj-tenant-unit-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .45rem; }
.tj-tenant-access .tj-tenant-unit-option { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; padding: .3rem .45rem; border-radius: 7px; background: var(--tj-panel); overflow-wrap: anywhere; }
.tj-tenant-access .tj-tenant-unit-option:has(input:not(:disabled)) { cursor: pointer; }
.tj-tenant-access .tj-tenant-unit-option:has(input:focus-visible) { outline: 2px solid var(--tj-accent-text); outline-offset: 2px; }
.tj-tenant-access .tj-tenant-unit-option input { width: 1rem; height: 1rem; margin: 0; flex: none; accent-color: var(--tj-accent); }
.tj-tenant-access .tj-tenant-unit-option small { color: var(--tj-muted); font-size: .77rem; }
.tj-tenant-access .tj-tenant-unit-option small + small { display: block; }
.tj-tenant-access .tj-tenant-card-actions { display: flex; justify-content: flex-end; }

@media (max-width: 560px) {
    .tj-tenant-access .tj-tenant-add-account, .tj-tenant-access .tj-tenant-permission-fields { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
    .tj-tenant-access .tj-tenant-card-actions .tj-button { width: 100%; }
}

.tj-server-clock {
    position: sticky;
    top: .5rem;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .12rem .7rem;
    min-width: 0;
    margin-bottom: .8rem;
    padding: .45rem .7rem;
    border: 1px solid var(--tj-border);
    border-radius: 9px;
    background: var(--tj-field);
    color: var(--tj-muted);
    font-size: .82rem;
}
.tj-server-clock time {
    color: var(--tj-text);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.tj-server-clock-status { color: var(--tj-yellow); }
@media (max-width: 850px) {
    .tj-server-clock { top: 4.25rem; justify-content: flex-start; }
}
