/* Paleta, typografie a rozměry vycházejí z hotspotdb/www/css/tokens.css. */
:root { color-scheme: light; --text: #111827; --muted: #6b7280; --surface: #fff; --raised: #f9fafb; --background: #f3f4f6; --border: #e5e7eb; --strong: #d1d5db; --accent: #2563eb; --accent-hover: #1d4ed8; --tint: #dbeafe; --danger: #b91c1c; --success: #166534; font: 14px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--background); }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --text: #e5e7eb; --muted: #9ca3af; --surface: #111827; --raised: #1f2937; --background: #0f172a; --border: #374151; --strong: #4b5563; --accent: #3b82f6; --accent-hover: #2563eb; --tint: #1e3a5f; --danger: #fca5a5; --success: #86efac; } }
* { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } button, input { font: inherit; } button, a, input, summary { -webkit-tap-highlight-color: transparent; } :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.topbar { min-height: 60px; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: var(--surface); } .brand { font-weight: 750; font-size: 21px; color: var(--text); letter-spacing: -.7px; } .brand:hover { text-decoration: none; } .brand > span:first-child { color: var(--accent); } .brand-divider { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--strong); font-size: 13px; letter-spacing: 1px; color: var(--muted); }
main { padding: 36px 24px 56px; margin: auto; } .auth-layout { max-width: 508px; padding-top: clamp(32px, 9vh, 110px); } .dashboard { max-width: 1120px; } h1, h2, h3, p { margin: 0; } h1 { font-size: 28px; letter-spacing: -.7px; line-height: 1.3; } h2 { font-size: 19px; line-height: 1.4; } h3 { font-size: 16px; } p { margin: 8px 0 16px; } .muted, .field-help, .auth-help, .auth-footer { color: var(--muted); } .eyebrow { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 3px #00000006; scroll-margin-top: 24px; } .auth-card { padding: 32px; } .auth-symbol { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: var(--tint); color: var(--accent); margin-bottom: 24px; } .intro { font-size: 16px; color: var(--muted); margin: 12px 0 28px; } .auth-help { font-size: 13px; text-align: center; margin: 16px 0 24px; } .card-note { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; color: var(--muted); font-size: 13px; } .auth-footer { text-align: center; font-size: 12px; }
button { min-height: 42px; border: 1px solid transparent; padding: 9px 16px; border-radius: 6px; cursor: pointer; background: var(--accent); color: white; font-weight: 550; line-height: 1.4; } button:hover { background: var(--accent-hover); } button:disabled { opacity: .55; cursor: default; } button[aria-busy="true"] { cursor: wait; } button[aria-busy="true"]::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .secondary { background: var(--surface); border-color: var(--strong); color: var(--text); } .secondary:hover, .danger-quiet:hover { background: var(--raised); } .compact { min-height: 36px; padding: 6px 12px; font-size: 13px; } .wide { width: 100%; } .danger-quiet { background: transparent; color: var(--danger); } .danger-quiet:disabled { color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 550; margin: 12px 0 6px; } input:not([type="checkbox"]) { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--strong); border-radius: 6px; background: var(--surface); color: var(--text); min-height: 44px; } input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); vertical-align: middle; margin: 0 6px 0 0; } .field-help { font-size: 12px; font-weight: 400; display: block; margin: 6px 0 18px; } .steps { display: flex; padding: 0; list-style: none; counter-reset: step; gap: 20px; margin: 0 0 24px; color: var(--muted); font-size: 13px; } .steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--background); } .steps .current { color: var(--accent); font-weight: 600; } .steps .current::before { background: var(--tint); }
#message:empty { display: none; } #message, .notice { padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; margin: 0 0 20px; overflow-wrap: anywhere; } #message[data-kind="error"] { border-left-color: var(--danger); color: var(--danger); } #message[data-kind="success"] { border-left-color: var(--success); color: var(--success); }
.page-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .page-heading { margin-bottom: 20px; } .page-heading p:last-child { margin-bottom: 0; } .badge { display: inline-block; background: var(--raised); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; color: var(--muted); vertical-align: middle; } .section-nav { display: flex; flex-wrap: wrap; gap: 24px; padding: 0 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--border); } .section-nav a { color: var(--muted); font-weight: 550; } .section-nav a:hover { color: var(--accent); } .empty-state { text-align: center; color: var(--muted); padding: 32px 16px; } .empty-state p { margin: 6px 0 0; } .empty-state strong { color: var(--text); font-weight: 550; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 20px; } .app-link { display: flex; justify-content: space-between; padding: 20px; background: var(--raised); border: 1px solid var(--border); border-radius: 6px; } .key-list { list-style: none; padding: 0; margin: 16px 0; } .key-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--border); padding: 14px 0; } .key-list strong { overflow-wrap: anywhere; } .key-list .field-help { margin: 4px 0 0; } .add-key-row { display: flex; align-items: end; gap: 12px; } .add-key-row > div { flex: 1; } .security-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: 12px; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin: 24px 0; } legend { font-weight: 650; padding: 0 8px; overflow-wrap: anywhere; } fieldset button { margin: 12px 8px 0 0; } fieldset label { font-weight: 400; } .new-user, .audit-panel { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; } summary { cursor: pointer; font-weight: 600; padding: 4px 0; } .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .checkbox-label { margin: 20px 0; } pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, monospace; color: var(--muted); max-height: 320px; overflow: auto; } .search-label { margin-top: 20px; }
@media (max-width: 600px) { .topbar { padding: 10px 16px; } main { padding: 24px 16px; } .auth-layout { padding-top: 32px; } .auth-card, .card { padding: 24px 20px; } h1 { font-size: 24px; } input:not([type="checkbox"]) { font-size: 16px; } .page-heading { align-items: flex-start; } .page-heading .muted .badge { margin-top: 8px; } .card-heading { flex-wrap: wrap; } .add-key-row, .security-note { align-items: stretch; flex-direction: column; } .form-grid { grid-template-columns: 1fr; gap: 0; } .steps { gap: 12px; } .key-list li { align-items: flex-start; } .brand-divider { margin-left: 12px; padding-left: 12px; } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::before { animation: none; } }

.key-list .key-item { flex-wrap: wrap; } .key-summary { flex: 1; min-width: 180px; } .key-actions { display: flex; flex-wrap: wrap; gap: 8px; } .rename-key-form { flex-basis: 100%; padding: 16px; background: var(--raised); border-radius: 6px; } .rename-key-form label { margin-top: 0; } .rename-key-form .key-actions { margin-top: 12px; }

button.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; flex-shrink: 0; } button.icon-button.wide { width: 100%; } .icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } button.icon-button[aria-busy="true"] svg { display: none; } button.icon-button[aria-busy="true"]::before { margin: 0; }

.section-nav { gap: 4px; padding-bottom: 0; flex-wrap: nowrap; } .section-nav [role="tab"] { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: 12px 16px; margin-bottom: -1px; min-height: 48px; } .section-nav [role="tab"]:hover { background: var(--raised); color: var(--text); } .section-nav [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: var(--surface); } @media(max-width:600px) { .section-nav { gap: 0; } .section-nav [role="tab"] { padding: 10px 8px; font-size: 13px; flex: 1; } }
