/* CoreStudio Lizenzverwaltung – schlicht, mobil zuerst */
:root { --ink: #2b241f; --bone: #f2eee7; --paper: #fffdf9; --line: rgba(43,36,31,.14); --muted: #6f655d; --sage: #8fa38a; --ok: #4e7a51; --warn: #a8782f; --danger: #8f3f35; --gutter: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 15.5px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif; }
.hidden { display: none !important; }
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); background: var(--ink); color: var(--bone); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #f9f6f0; }
.brand b { display: block; font: 400 21px/1 Georgia, serif; }
.brand small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
main { max-width: 1040px; margin: 0 auto; padding: 22px var(--gutter) 60px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
h1 { font: 400 32px/1.1 Georgia, serif; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font: 400 23px/1.2 Georgia, serif; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.narrow { max-width: 420px; margin: 30px auto; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: 16px "Segoe UI", system-ui, sans-serif; padding: 13px 14px; border: 1px solid rgba(43,36,31,.22); border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(43,36,31,.08); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 "Segoe UI", sans-serif; padding: 14px 20px; min-height: 48px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--bone); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.light { color: var(--bone); }
.link.danger { color: var(--danger); }
.err { background: #f3e0dc; color: var(--danger); border-radius: 6px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; }
.okmsg { background: #e3eadf; color: #3f5a3b; border-radius: 6px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.list { display: grid; gap: 10px; }
.lic { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.lic:hover { border-color: var(--ink); }
.lic .t { font-weight: 600; font-size: 16px; }
.lic .s { color: var(--muted); font-size: 13.5px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #e9e3d9; white-space: nowrap; }
.pill.ok { background: #e3eadf; color: #3f5a3b; } .pill.warn { background: #f6ecd8; color: #7a5a22; } .pill.bad { background: #f3e0dc; color: var(--danger); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.meta div { background: var(--bone); border-radius: 8px; padding: 10px 12px; }
.meta small { display: block; font-size: 12px; color: var(--muted); }
.meta strong { font-size: 15px; word-break: break-word; }
.key { font: 600 15px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.dev { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dev:first-child { border-top: 0; }
.dev .t { font-weight: 600; } .dev .s { font-size: 13px; color: var(--muted); }
.codebox { text-align: center; padding: 26px 16px; }
.code { font: 700 clamp(38px, 11vw, 60px)/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; margin: 14px 0; user-select: all; }
.timer { color: var(--muted); }
.qr { display: block; margin: 12px auto; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 8px; }
.secret { font: 600 15px ui-monospace, Menlo, Consolas, monospace; text-align: center; word-break: break-all; background: var(--bone); padding: 10px; border-radius: 6px; }
.back { margin-bottom: 12px; display: inline-block; }
.log { font-size: 13px; color: var(--muted); }
.log div { padding: 6px 0; border-top: 1px solid var(--line); }
.search { margin-bottom: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .lic { grid-template-columns: 1fr; } .row .btn { flex: 1 1 auto; } h1 { font-size: 27px; } }

.tabs { display: flex; gap: 4px; padding: 0 var(--gutter); background: var(--ink); overflow-x: auto; position: sticky; top: 60px; z-index: 9; }
.tabs a { color: rgba(242,238,231,.7); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 14px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--bone); border-bottom-color: var(--sage); }
.user { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.user:first-child { border-top: 0; }
.user .t { font-weight: 600; } .user .s { font-size: 13px; color: var(--muted); }
.user .acts { display: flex; gap: 14px; flex-wrap: wrap; }
.pwshow { display: flex; gap: 10px; align-items: center; background: var(--bone); border: 1px dashed rgba(43,36,31,.3); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.pwshow code { flex: 1; font: 700 18px ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.radio input { width: auto; margin-top: 4px; }
.ro { padding: 12px 14px; border: 1px dashed rgba(43,36,31,.22); border-radius: 6px; background: var(--bone); font-weight: 600; word-break: break-all; }
.sub3 { font-size: 14px; font-weight: 700; margin: 18px 0 4px; }
