/* =====================================================================
   Flax — shadcn/ui-inspired dark theme
   ===================================================================== */

/* --- CSS Reset (minimal) ------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Design tokens (shadcn/ui zinc dark palette) --------------------- */
:root {
    --background:        240 10% 3.9%;
    --foreground:        0 0% 98%;
    --card:              240 10% 4.5%;
    --card-foreground:   0 0% 98%;
    --popover:           240 10% 5.5%;
    --popover-foreground:0 0% 98%;
    --primary:           0 0% 98%;
    --primary-foreground:240 5.9% 10%;
    --secondary:         240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted:             240 3.7% 12%;
    --muted-foreground:  240 5% 64.9%;
    --accent:            240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive:       0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border:            240 3.7% 15.9%;
    --input:             240 3.7% 15.9%;
    --ring:              240 4.9% 83.9%;

    --green:             142 71% 45%;
    --blue:              217 91% 60%;
    --violet:            262 83% 58%;
    --amber:             38 92% 50%;
    --red:               0 84% 60%;

    --radius:            0.625rem;
    --radius-sm:         0.375rem;
    --radius-lg:         0.875rem;

    --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow:     0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Scrollbars */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.4); }

/* --- App shell ---------------------------------------------------- */
.app-shell {
    display: grid;
    grid-template-columns: 256px 1fr;
    min-height: 100vh;
}

.app-main {
    min-width: 0;
    background: hsl(var(--background));
}

.app-content {
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .app-content { padding: 20px 16px; }
}

/* --- Sidebar ------------------------------------------------------- */
.sidebar {
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid hsl(var(--border));
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 8px;
    overflow-y: auto;
}

.nav-section + .nav-section {
    margin-top: 24px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    padding: 8px 12px;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: hsl(var(--muted-foreground));
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 120ms, color 120ms;
    margin: 2px 0;
}

.nav-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.nav-item.active {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.nav-item .icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid hsl(var(--border));
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.user-meta {
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

.user-mail {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Page header --------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 13.5px;
    margin-top: 6px;
    max-width: 60ch;
}

.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Card ---------------------------------------------------------- */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    margin-top: 4px;
}

.card-content {
    padding: 20px 24px;
}

.card-header + .card-content {
    padding-top: 8px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: hsl(var(--muted) / 0.3);
}

/* --- Grid utility -------------------------------------------------- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.row-spread { justify-content: space-between; }

/* --- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms, color 120ms, border-color 120ms, opacity 120ms;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-color: hsl(var(--border));
}
.btn-secondary:hover { background: hsl(var(--accent)); }

.btn-outline {
    border-color: hsl(var(--border));
    background: transparent;
    color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--accent)); }

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}
.btn-destructive:hover { background: hsl(var(--destructive) / 0.9); }

.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
}

.btn-lg {
    height: 42px;
    padding: 0 18px;
    font-size: 14.5px;
}

.btn-icon {
    width: 36px;
    padding: 0;
}

.btn-block {
    width: 100%;
}

/* --- Form controls ------------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field + .field {
    margin-top: 14px;
}

.label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.label-hint {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
    margin-left: 8px;
}

.input,
.textarea,
.select {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid hsl(var(--input));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    font-size: 13.5px;
    outline: none;
    transition: border-color 120ms, box-shadow 120ms;
}

.input::placeholder,
.textarea::placeholder { color: hsl(var(--muted-foreground)); }

.input:focus,
.textarea:focus,
.select:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

.textarea {
    height: auto;
    min-height: 100px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.55;
    font-family: var(--font-sans);
}

.textarea-mono {
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.field-error {
    color: hsl(var(--red));
    font-size: 12px;
}

.field-help {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
}

/* Checkbox */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox input[type=checkbox] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid hsl(var(--input));
    background: hsl(var(--card));
    appearance: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 120ms, border-color 120ms;
}

.checkbox input[type=checkbox]:checked {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.checkbox input[type=checkbox]:checked::after {
    content: '';
    width: 9px;
    height: 9px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e") center/contain no-repeat;
}

/* --- Table -------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: hsl(var(--card));
    font-size: 13.5px;
}

.table th {
    text-align: left;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    padding: 12px 16px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid hsl(var(--border));
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background 100ms;
}

.table tbody tr:hover {
    background: hsl(var(--muted) / 0.4);
}

.table-empty {
    padding: 48px 16px;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

/* --- Badge -------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    height: 22px;
    white-space: nowrap;
}

.badge-muted   { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); }
.badge-blue    { background: hsl(var(--blue) / 0.15);   color: hsl(var(--blue));   border: 1px solid hsl(var(--blue) / 0.3); }
.badge-violet  { background: hsl(var(--violet) / 0.15); color: hsl(var(--violet)); border: 1px solid hsl(var(--violet) / 0.3); }
.badge-amber   { background: hsl(var(--amber) / 0.15);  color: hsl(var(--amber));  border: 1px solid hsl(var(--amber) / 0.3); }
.badge-green   { background: hsl(var(--green) / 0.15);  color: hsl(var(--green));  border: 1px solid hsl(var(--green) / 0.3); }
.badge-red     { background: hsl(var(--red) / 0.15);    color: hsl(var(--red));    border: 1px solid hsl(var(--red) / 0.3); }

/* --- Alert -------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    font-size: 13px;
    margin-bottom: 16px;
}

.alert .icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: hsl(var(--green) / 0.1);
    border-color: hsl(var(--green) / 0.3);
    color: hsl(var(--green));
}

.alert-error {
    background: hsl(var(--red) / 0.1);
    border-color: hsl(var(--red) / 0.3);
    color: hsl(var(--red));
}

.alert-info {
    background: hsl(var(--blue) / 0.1);
    border-color: hsl(var(--blue) / 0.3);
    color: hsl(var(--blue));
}

.alert-warning {
    background: hsl(var(--amber) / 0.1);
    border-color: hsl(var(--amber) / 0.3);
    color: hsl(var(--amber));
}

/* --- Stat card ----------------------------------------------------- */
.stat-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 20px 22px;
}

.stat-label {
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 6px;
    font-feature-settings: 'tnum';
}

.stat-delta {
    margin-top: 6px;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.stat-delta-positive { color: hsl(var(--green)); }

/* --- Auth (login/setup) ------------------------------------------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(ellipse at top, hsl(var(--accent) / 0.3), transparent 60%),
        hsl(var(--background));
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-brand .brand-logo { width: 32px; height: 32px; }
.auth-brand-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
}

.auth-sub {
    color: hsl(var(--muted-foreground));
    font-size: 13px;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 22px;
}

.auth-footer {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    margin-top: 16px;
}

/* --- Misc helpers -------------------------------------------------- */
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-success { color: hsl(var(--green)); }
.text-error { color: hsl(var(--red)); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.w-full { width: 100%; }
.hidden { display: none; }
.divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 16px 0;
    border: none;
}

/* TOTP-Code-Input */
.totp-input {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-mono);
    height: 52px;
}

/* QR-Code-Wrap */
.qr-wrap {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    margin: 0 auto;
    width: max-content;
}

.qr-secret {
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    word-break: break-all;
    padding: 8px 12px;
    background: hsl(var(--muted));
    border-radius: var(--radius-sm);
    user-select: all;
}

/* Code-Box */
.code-box {
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

/* Variable-Chip (für Template-Hilfe) */
.var-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: background 120ms;
}
.var-chip:hover { background: hsl(var(--muted-foreground) / 0.2); }
.var-chip-desc { color: hsl(var(--muted-foreground)); font-family: var(--font-sans); }

/* Lead-Detail-Layout */
.lead-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}
@media (max-width: 1100px) {
    .lead-detail-grid { grid-template-columns: 1fr; }
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    font-size: 13.5px;
}
.detail-label { color: hsl(var(--muted-foreground)); }
.detail-value { word-break: break-word; }

/* Compose-Layout */
.compose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 1100px) {
    .compose-grid { grid-template-columns: 1fr; }
}

.preview-box {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 24px 28px;
    min-height: 400px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.preview-meta {
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
}

.preview-meta .preview-subject {
    color: hsl(var(--foreground));
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    word-break: break-word;
    white-space: normal;
}

/* Toolbar-Filter über Tabelle */
.table-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.table-toolbar .input { max-width: 320px; }
.table-toolbar .select { max-width: 180px; }

/* Step-Indicator (Setup) */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: center;
}
.step-dot {
    width: 24px;
    height: 6px;
    background: hsl(var(--muted));
    border-radius: 3px;
    transition: background 120ms;
}
.step-dot.active { background: hsl(var(--primary)); }

/* Inline-Form-Row (zwei nebeneinander) */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
}

/* Subtiler Card-Hover für Klick-Cards */
.clickable-card {
    cursor: pointer;
    transition: background 120ms, border-color 120ms;
}
.clickable-card:hover {
    background: hsl(var(--muted) / 0.5);
    border-color: hsl(var(--ring) / 0.5);
}

/* Drop-Zone für Import */
.dropzone {
    border: 1.5px dashed hsl(var(--border));
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: border-color 120ms, background 120ms;
    cursor: pointer;
}
.dropzone:hover,
.dropzone.dragover {
    border-color: hsl(var(--ring));
    background: hsl(var(--muted) / 0.3);
}
.dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: hsl(var(--muted));
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: hsl(var(--muted-foreground));
}
.dropzone-text { font-size: 13.5px; }
.dropzone-hint { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }

/* Skeleton / Empty state */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: hsl(var(--muted));
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: hsl(var(--muted-foreground));
}
.empty-title { font-size: 16px; font-weight: 600; }
.empty-sub { color: hsl(var(--muted-foreground)); margin-top: 4px; font-size: 13.5px; }
.empty-action { margin-top: 16px; }

/* Inline status pill (z.B. "0 ungelesen") */
.pill {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

/* link styles inside body */
.link {
    color: hsl(var(--foreground));
    text-decoration: underline;
    text-decoration-color: hsl(var(--muted-foreground));
    text-underline-offset: 3px;
}
.link:hover { text-decoration-color: hsl(var(--foreground)); }

/* keyboard kbd */
kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1;
}
