* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f2f5f7;
    color: #222;
    font-family: Tahoma, Arial, sans-serif;
}
.topbar {
    background: #111827;
    color: #fff;
    padding: 14px 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.brand { font-size: 22px; font-weight: 700; }
.subtitle { color: #cbd5e1; margin-top: 3px; font-size: 13px; }
.container { max-width: 1360px; margin: 20px auto; padding: 0 14px 40px; }
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
}
h1, h2 { margin: 0 0 12px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
.muted { color: #667085; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.box-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.box-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px;
    background: #fbfbfc;
}
.box-title { font-weight: 700; margin-bottom: 10px; color: #0f172a; }
label { display: block; margin: 10px 0 5px; font-size: 13px; color: #344054; }
.input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 9px 10px;
    background: white;
    font-size: 14px;
}
.textarea { min-height: 70px; resize: vertical; }
.textarea.small { min-height: 48px; }
.colors-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.colors-row input[type=color] { width: 54px; height: 38px; border: 0; background: transparent; }
.small-colors { margin: 10px 0; }
.compact label { margin-top: 6px; }
.btn {
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    margin-inline-end: 8px;
}
.btn.primary { background: #2563eb; color: #fff; }
.btn.danger { background: #fee2e2; color: #991b1b; }
.btn:disabled { opacity: .55; cursor: wait; }
.alert { border-radius: 10px; padding: 12px; margin-top: 12px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.info-line { margin: 8px 0; color: #475467; }
.sticky-actions { position: sticky; top: 0; z-index: 5; border-color: #bfdbfe; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; color: #2563eb; }
@media (max-width: 980px) {
    .grid.two, .grid.three, .box-grid { grid-template-columns: 1fr; }
}


/* v2 - login/register/dashboard */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nav-actions a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.10);
    padding: 8px 12px;
    border-radius: 9px;
}
.user-chip {
    color: #dbeafe;
    border: 1px solid rgba(219,234,254,.35);
    padding: 8px 12px;
    border-radius: 999px;
}
.inline-form { display: inline; margin: 0; }
.link-button {
    border: 0;
    background: #ef4444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}
.auth-page {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
}
.auth-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(15,23,42,.16);
    border: 1px solid #e5e7eb;
}
.auth-logo {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 14px;
}
.btn.full { width: 100%; margin-top: 18px; }
.auth-footer {
    margin-top: 18px;
    color: #667085;
    text-align: center;
}
.auth-footer a { color: #2563eb; font-weight: 700; }
.hero-card {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    box-shadow: 0 16px 38px rgba(37,99,235,.25);
}
.hero-card .muted { color: #dbeafe; }
.empty-state {
    background: #fff;
    border: 1px dashed #93c5fd;
    border-radius: 18px;
    padding: 34px;
    text-align: center;
}
.birds-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}
.bird-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15,23,42,.06);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.bird-ring {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}
.bird-name {
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
}
.bird-meta {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
}
.bird-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}
.bird-actions .btn {
    text-decoration: none;
    text-align: center;
    margin-inline-end: 0;
}
.section-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}
@media (max-width: 980px) {
    .hero-card, .bird-card, .section-title-row, .topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .birds-grid { grid-template-columns: 1fr; }
    .nav-actions { justify-content: start; }
}


/* v3 - parent lookup and reusable parents */
.parent-picker {
    border-top: 4px solid #2563eb;
}
.father-picker {
    border-top-color: #1d4ed8;
}
.mother-picker {
    border-top-color: #db2777;
}
.search-results {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}
.search-row {
    width: 100%;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: start;
    cursor: pointer;
    display: grid;
    gap: 3px;
}
.search-row:hover {
    background: #eff6ff;
    border-color: #60a5fa;
}
.search-row b {
    color: #0f172a;
    font-size: 15px;
}
.search-row span {
    color: #334155;
}
.search-row small {
    color: #64748b;
}
.small-note {
    margin-top: 10px;
    font-size: 13px;
}

.report-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.report-viewer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-viewer-card {
    overflow: hidden;
    height: calc(100vh - 245px);
    min-height: 620px;
    border-radius: 16px;
    background: #374151;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}

.report-pdf-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .report-viewer-header {
        align-items: stretch;
        flex-direction: column;
    }

    .report-viewer-card {
        height: calc(100vh - 300px);
        min-height: 520px;
    }
}

/* v4 - latest editor layout: child first, then parents, then full family tree */
.designer-heading {
    border-right: 5px solid #2563eb;
}

.step-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.compact-step {
    margin-bottom: 12px;
}

.step-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.step-number.secondary {
    background: #475569;
}

.step-title h2,
.parent-search-head h3,
.settings-panel h3 {
    margin: 0 0 5px;
}

.designer-primary-grid {
    align-items: start;
}

.settings-panel {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px;
}

.report-number-select {
    font-weight: 700;
    border-color: #60a5fa;
}

.pedigree-box-editor {
    background: #fff;
    border-color: #cbd5e1;
}

.box-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.box-code {
    direction: ltr;
    background: #e2e8f0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.box-live-preview {
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}

.param-name {
    direction: ltr;
    display: inline-block;
    color: #94a3b8;
    font-size: 11px;
    margin-inline-start: 5px;
}

.images-section,
.global-styles-section {
    border-top: 4px solid #64748b;
}

.upload-box {
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.upload-box input[type=file] {
    width: 100%;
    margin-top: 8px;
}

.parents-section {
    border-top: 4px solid #7c3aed;
}

.parent-editor-grid {
    align-items: start;
}

.parent-column {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.father-column {
    border-top: 5px solid #1d4ed8;
}

.mother-column {
    border-top: 5px solid #db2777;
}

.parent-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.small-btn {
    padding: 7px 11px;
    font-size: 12px;
    margin: 0;
}

.search-input {
    border-width: 2px;
    border-color: #93c5fd;
}

.selected-parent-chip {
    margin: 10px 0;
    border-radius: 10px;
    background: #dbeafe;
    color: #1e3a8a;
    padding: 9px 11px;
}

.mother-chip {
    background: #fce7f3;
    color: #831843;
}

.global-colors {
    gap: 22px;
}

.global-colors > div {
    min-width: 92px;
}

.family-tree-section {
    margin-bottom: 8px;
    border-top: 4px solid #059669;
}

.generation-card > h2 {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.service-settings-card {
    background: #f8fafc;
}

.settings-details {
    margin-top: 14px;
}

.font-controls {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .parent-search-head {
        flex-direction: column;
    }

    .small-btn {
        width: 100%;
    }
}


/* v5 - collapsible ordered pedigree groups and per-person editors */
.designer-group {
    padding: 0;
    overflow: hidden;
}

.designer-group-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 19px;
    cursor: pointer;
    user-select: none;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
}

.designer-group-summary::-webkit-details-marker,
.person-editor-summary::-webkit-details-marker,
.family-subgroup-summary::-webkit-details-marker {
    display: none;
}

.designer-group-summary::after,
.person-editor-summary::after,
.family-subgroup-summary::after {
    content: "⌄";
    margin-inline-start: auto;
    color: #475569;
    font-size: 20px;
    font-weight: 900;
    transition: transform .18s ease;
}

.designer-group[open] > .designer-group-summary::after,
.person-editor[open] > .person-editor-summary::after,
.family-subgroup[open] > .family-subgroup-summary::after {
    transform: rotate(180deg);
}

.designer-group[open] > .designer-group-summary {
    border-bottom-color: #e2e8f0;
}

.group-step-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: 18px;
    font-weight: 900;
}

.father-number { background: #1d4ed8; }
.mother-number { background: #db2777; }
.general-number { background: #475569; }

.group-summary-text {
    display: grid;
    gap: 4px;
}

.group-summary-text strong {
    font-size: 20px;
    color: #0f172a;
}

.group-summary-text small {
    color: #64748b;
    font-size: 13px;
}

.designer-group-body {
    padding: 18px;
}

.child-group { border-right: 5px solid #2563eb; }
.father-family-group { border-right: 5px solid #1d4ed8; }
.mother-family-group { border-right: 5px solid #db2777; }
.remaining-settings-group { border-right: 5px solid #475569; }

.standalone-parent-column {
    margin-bottom: 15px;
}

.family-subgroup {
    margin-top: 15px;
    border: 1px solid #dbe3ed;
    border-radius: 13px;
    background: #f8fafc;
    overflow: hidden;
}

.family-subgroup-summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-weight: 800;
    background: #eef2f7;
}

.subgroup-body {
    padding: 14px;
}

.person-editor {
    padding: 0;
    margin-top: 12px;
    overflow: hidden;
    background: #fff;
}

.person-editor-summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
}

.person-editor[open] > .person-editor-summary {
    border-bottom-color: #e2e8f0;
}

.person-summary-title {
    font-weight: 900;
    color: #0f172a;
}

.person-summary-data {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 12px;
}

.person-editor-body {
    padding: 12px;
}

.person-editor-body > details {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.mother-search-input {
    border-color: #f9a8d4;
}

@media (max-width: 720px) {
    .designer-group-summary {
        align-items: flex-start;
        padding: 14px;
    }

    .group-summary-text strong {
        font-size: 17px;
    }

    .person-editor-summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .person-summary-data {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* v6 - pedigree style presets */
.style-presets-panel {
    border: 2px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    margin-top: 0;
    margin-bottom: 18px;
}

.style-presets-panel > .family-subgroup-summary {
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 16px;
}

.style-preset-body {
    display: grid;
    gap: 14px;
}

.style-preset-main-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.style-preset-select-wrap {
    min-width: 0;
}

.style-preset-select {
    border-width: 2px;
    border-color: #60a5fa;
    font-weight: 800;
}

.style-preview-card {
    min-width: 190px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.style-preview-card > span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.style-preview-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.style-preview-strip i {
    display: block;
    width: 48px;
    height: 28px;
    max-width: 100%;
    border: 2px solid #64748b;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.style-preset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.style-preset-actions .btn {
    margin: 0;
}

.success-btn {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

.success-btn:hover {
    background: #166534;
}

.subtle-danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff7f7;
}

.style-help-text {
    border-right: 4px solid #3b82f6;
    background: #f8fafc;
    color: #475569;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
}

@media (max-width: 720px) {
    .style-preset-main-row {
        grid-template-columns: 1fr;
    }

    .style-preview-card {
        min-width: 0;
    }

    .style-preset-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .style-preset-actions .btn {
        width: 100%;
    }
}

/* v7 - inline PDF preview, organized child fields and watermark controls */
.preview-btn {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.preview-btn:hover {
    background: #115e59;
}

.pdf-preview-section {
    scroll-margin-top: 90px;
}

.pdf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pdf-preview-header h2,
.pdf-preview-header p {
    margin-bottom: 4px;
}

.pdf-preview-shell {
    padding: 18px;
    background: #dbe3ea;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
}

.designer-pdf-preview {
    display: block;
    width: 100%;
    min-height: 78vh;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.child-main-settings {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border-radius: 13px;
    padding: 15px;
}

.child-basic-fields {
    gap: 10px;
}

.automatic-file-name {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    direction: ltr;
    text-align: left;
}

.loft-manager-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
}

.background-watermark-box {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 800;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.range-input {
    width: 100%;
    accent-color: #2563eb;
}

@media (max-width: 720px) {
    .sticky-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sticky-actions .btn {
        width: 100%;
        margin: 0;
    }

    .pdf-preview-header {
        align-items: stretch;
        flex-direction: column;
    }

    .pdf-preview-shell {
        padding: 10px;
    }

    .designer-pdf-preview {
        min-height: 68vh;
    }
}

/* v7.3 - faster preview feedback */
.busy-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-weight: 800;
}

/* v7.4 foreground overlay controls */
.foreground-image-toggle {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
}

/* v8.1.0 - owner name is a bird-level field and spans the full basic-data row. */
.child-basic-fields .owner-name-field {
    grid-column: 1 / -1;
}

/* v8.2.0 - three-line bird boxes: ring number, owner name, information */
.owner-name-input {
    border-color: #93c5fd;
    background: #f8fbff;
}

.box-three-line-colors {
    flex-wrap: wrap;
}

.box-three-line-colors > div {
    min-width: 92px;
}

.three-line-font-controls > div {
    min-width: 0;
}

@media (max-width: 1180px) {
    .three-line-font-controls {
        grid-template-columns: 1fr;
    }
}

/* v8.4 - modern classic bird list dashboard */
.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 8px 2px;
}
.dashboard-head h1 { margin: 3px 0 6px; font-size: 30px; color: #111827; }
.dashboard-kicker { color: #2563eb; font-size: 13px; font-weight: 800; }
.dashboard-add { text-decoration: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(37,99,235,.20); }
.bird-list-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15,23,42,.06);
    overflow: hidden;
}
.bird-list-toolbar {
    min-height: 74px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fafbfc;
}
.bird-count { display: flex; align-items: baseline; gap: 6px; color: #64748b; }
.bird-count strong { font-size: 25px; color: #0f172a; }
.bird-search-wrap { position: relative; width: min(410px, 100%); }
.bird-search-icon { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 20px; }
.bird-search-input {
    width: 100%; height: 42px; padding: 0 42px 0 14px;
    border: 1px solid #d0d5dd; border-radius: 10px; background: #fff;
    outline: none; font: inherit;
}
.bird-search-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.bird-table-wrap { overflow-x: auto; }
.bird-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.bird-table th {
    padding: 13px 16px; text-align: right; color: #475467; background: #f8fafc;
    border-bottom: 1px solid #e5e7eb; font-size: 13px; font-weight: 800;
}
.bird-table td { padding: 12px 16px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.bird-table tbody tr { transition: background .15s ease; }
.bird-table tbody tr:hover { background: #f8fbff; }
.bird-table tbody tr:last-child td { border-bottom: 0; }
.bird-photo-column { width: 84px; }
.bird-actions-column { width: 330px; }
.bird-thumb {
    width: 54px; height: 54px; border-radius: 10px; overflow: hidden;
    border: 1px solid #dbe2ea; background: #f1f5f9; display: grid; place-items: center;
    font-size: 25px;
}
.bird-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bird-ring-link { color: #0f172a; font-weight: 900; font-size: 15px; text-decoration: none; }
.bird-ring-link:hover { color: #2563eb; }
.bird-table td small { display: block; color: #98a2b3; margin-top: 4px; }
.bird-name-cell { color: #344054; font-weight: 700; }
.bird-date-cell { color: #667085; font-variant-numeric: tabular-nums; }
.sex-badge { display: inline-flex; min-width: 65px; justify-content: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sex-badge.male { background: #dbeafe; color: #1d4ed8; }
.sex-badge.female { background: #fce7f3; color: #be185d; }
.sex-badge.unknown { background: #f1f5f9; color: #64748b; }
.bird-row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px;
    text-decoration: none; cursor: pointer; font-weight: 800; font-size: 12px; font-family: inherit;
}
.action-btn.print { background: #0f172a; color: #fff; }
.action-btn.view { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.action-btn.edit { background: #fffbeb; color: #a16207; border-color: #fde68a; }
.action-btn.delete { background: transparent; color: #b42318; border-color: #fecaca; }
.action-btn:hover { filter: brightness(.97); transform: translateY(-1px); }
.action-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.bird-no-results { padding: 42px 18px; text-align: center; color: #667085; }
@media (max-width: 760px) {
    .dashboard-head, .bird-list-toolbar { flex-direction: column; align-items: stretch; }
    .dashboard-add { text-align: center; }
    .bird-search-wrap { width: 100%; }
}

/* v8.4.1 - clearer dashboard actions and bounded owner column */
.dashboard-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.dashboard-main-action {
    min-width: 230px;
    min-height: 64px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
    border: 1px solid rgba(255, 255, 255, .20);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.dashboard-main-action:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .30);
    filter: brightness(1.02);
}
.dashboard-main-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    flex: 0 0 40px;
}
.dashboard-main-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}
.dashboard-main-action-text strong { font-size: 16px; font-weight: 900; }
.dashboard-main-action-text small { color: rgba(255, 255, 255, .82); font-size: 11px; }
.bird-toolbar-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}
.bird-refresh-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bird-refresh-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.bird-refresh-btn:disabled { opacity: .55; cursor: wait; }
.bird-ring-column { width: 170px; }
.bird-owner-column { width: 210px; }
.bird-name-column { width: 200px; }
.bird-ring-cell { white-space: nowrap; }
.bird-owner-cell {
    width: 210px;
    max-width: 210px;
}
.bird-owner-text {
    display: block;
    width: 180px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #344054;
    font-weight: 800;
}
.bird-name-cell {
    width: 200px;
    max-width: 200px;
}
.bird-name-cell > span {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-btn { gap: 5px; }
.action-btn > span { font-size: 14px; line-height: 1; }
@media (max-width: 760px) {
    .dashboard-actions { width: 100%; }
    .dashboard-main-action { width: 100%; min-width: 0; justify-content: center; }
    .bird-toolbar-summary { width: 100%; justify-content: space-between; }
}


/* v8.4.2 - fully interactive dashboard with fixed name columns */
.dashboard-shell {
    width: 100%;
}

.dashboard-commandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .11), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.dashboard-title-block {
    min-width: 0;
}

.dashboard-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}

.dashboard-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    direction: ltr;
}

.dashboard-commandbar .dashboard-kicker {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-commandbar h1 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.dashboard-commandbar p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-primary-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: 0 0 auto;
}

.command-btn {
    min-height: 66px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, border-color .14s ease;
}

.command-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22), transparent 70%);
    transform: translateX(120%);
    transition: transform .34s ease;
    pointer-events: none;
}

.command-btn:hover::after {
    transform: translateX(-120%);
}

.command-btn:hover {
    transform: translateY(-2px);
}

.command-btn:active {
    transform: translateY(1px) scale(.985);
    box-shadow: none;
}

.command-btn:focus-visible,
.bird-command:focus-visible,
.bird-search-clear:focus-visible,
.inline-reset-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .30);
    outline-offset: 2px;
}

.command-btn:disabled {
    opacity: .58;
    cursor: wait;
    transform: none;
}

.command-btn-primary {
    min-width: 230px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}

.command-btn-primary:hover {
    color: #fff;
    box-shadow: 0 17px 34px rgba(37, 99, 235, .34);
    filter: saturate(1.06);
}

.command-btn-secondary {
    min-width: 190px;
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
}

.command-btn-secondary:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
}

.command-btn-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
}

.command-btn-secondary .command-btn-icon {
    background: #eff6ff;
    color: #2563eb;
}

.command-btn-icon svg,
.bird-search-box-icon svg,
.bird-command svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.command-btn-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.25;
}

.command-btn-copy strong {
    font-size: 15px;
    font-weight: 900;
}

.command-btn-copy small {
    color: inherit;
    opacity: .76;
    font-size: 11px;
}

.is-spinning {
    animation: dashboard-spin .85s linear infinite;
}

@keyframes dashboard-spin {
    to { transform: rotate(360deg); }
}

.dashboard-loading-card {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.dashboard-loading-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-loading-card small {
    color: #64748b;
}

.dashboard-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: dashboard-spin .8s linear infinite;
}

.dashboard-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eff6ff;
    font-size: 34px;
}

.empty-add-button {
    margin-top: 12px;
}

.bird-manager-card {
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.bird-manager-toolbar {
    min-height: 88px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.bird-stat-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.bird-stat-card {
    width: 120px;
    height: 58px;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.bird-stat-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.bird-stat-card strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
}

.bird-stat-filtered {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.bird-stat-filtered strong {
    color: #1d4ed8;
}

.bird-search-box {
    position: relative;
    width: min(520px, 100%);
    height: 48px;
}

.bird-search-box input {
    width: 100%;
    height: 100%;
    padding: 0 46px 0 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bird-search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.bird-search-box-icon {
    position: absolute;
    z-index: 1;
    inset-inline-start: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.bird-search-clear {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 21px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .14s ease, color .14s ease, transform .14s ease;
}

.bird-search-clear:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.bird-search-clear:active {
    transform: translateY(-50%) scale(.92);
}

.bird-table-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: #94a3b8 #e2e8f0;
}

.bird-management-table {
    width: 1240px;
    min-width: 1240px;
    max-width: 1240px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    margin: 0 auto;
}

.bird-management-table .col-photo { width: 78px; }
.bird-management-table .col-ring { width: 164px; }
.bird-management-table .col-owner { width: 205px; }
.bird-management-table .col-bird-name { width: 180px; }
.bird-management-table .col-sex { width: 92px; }
.bird-management-table .col-date { width: 116px; }
.bird-management-table .col-actions { width: 405px; }

.bird-management-table th {
    height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #dbe4ef;
    background: #f1f5f9;
    color: #475569;
    text-align: right;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.bird-management-table td {
    height: 76px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    vertical-align: middle;
    transition: background .14s ease;
}

.bird-management-table tbody tr {
    position: relative;
}

.bird-management-table tbody tr:hover td {
    background: #f8fbff;
}

.bird-management-table tbody tr:hover td:first-child {
    box-shadow: inset -4px 0 0 #3b82f6;
}

.bird-management-table tbody tr:last-child td {
    border-bottom: 0;
}

.bird-table-photo {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
}

.bird-table-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bird-ring-number {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

.bird-ring-number:hover {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fixed-owner-cell,
.fixed-bird-name-cell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fixed-text-value {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #334155;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixed-owner-cell .fixed-text-value {
    width: 174px;
    max-width: 174px;
}

.fixed-bird-name-cell .fixed-text-value {
    width: 150px;
    max-width: 150px;
}

.bird-table-date {
    color: #64748b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bird-action-toolbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 7px;
    width: 100%;
}

.bird-command {
    height: 42px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
    transition: transform .13s ease, box-shadow .13s ease, filter .13s ease;
}

.bird-command > span {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.bird-command svg {
    width: 18px;
    height: 18px;
}

.bird-command:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(15, 23, 42, .13);
    filter: saturate(1.07);
}

.bird-command:active {
    transform: translateY(1px) scale(.97);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .10);
}

.bird-command:disabled {
    opacity: .52;
    cursor: wait;
    transform: none;
}

.bird-command-print {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.bird-command-print:hover { color: #fff; }

.bird-command-view {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.bird-command-view:hover { color: #fff; }

.bird-command-edit {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.bird-command-edit:hover { color: #fff; }

.bird-command-delete {
    background: #fff;
    color: #b91c1c;
    border-color: #fecaca;
}

.bird-command-delete:hover {
    background: #fee2e2;
}

.bird-no-results {
    min-height: 210px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #64748b;
}

.bird-no-results strong {
    color: #0f172a;
    font-size: 18px;
}

.inline-reset-button {
    margin-top: 8px;
    padding: 8px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.inline-reset-button:hover {
    background: #dbeafe;
}

@media (max-width: 1050px) {
    .dashboard-commandbar,
    .bird-manager-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-primary-actions {
        width: 100%;
    }

    .command-btn {
        flex: 1 1 0;
    }

    .bird-search-box {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .dashboard-commandbar {
        padding: 17px;
    }

    .dashboard-primary-actions,
    .bird-stat-group {
        flex-direction: column;
    }

    .command-btn,
    .bird-stat-card {
        width: 100%;
        min-width: 0;
    }

    .bird-stat-card {
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .command-btn,
    .bird-command,
    .bird-search-clear,
    .bird-management-table td {
        transition: none;
    }

    .command-btn::after {
        display: none;
    }
}


/* v8.5.0 - automatic pedigree synchronization */
.auto-sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #86efac;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(22, 101, 52, .12);
}

@media (max-width: 820px) {
    .auto-sync-badge {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* v8.5.1 - bird photo editor and gender-specific default images */
.bird-table-photo {
    position: relative;
    isolation: isolate;
}

.bird-table-photo.male {
    border-color: #93c5fd;
    background: #eff6ff;
}

.bird-table-photo.female {
    border-color: #f9a8d4;
    background: #fdf2f8;
}

.bird-table-photo.unknown {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bird-table-photo .default-photo-mark {
    position: absolute;
    left: 3px;
    bottom: 3px;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #334155;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .20);
}

.bird-table-photo.male .default-photo-mark { background: #1d4ed8; }
.bird-table-photo.female .default-photo-mark { background: #be185d; }

.bird-photo-editor {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .10), transparent 36%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.bird-photo-preview {
    min-height: 180px;
    position: relative;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 10px 22px rgba(15, 23, 42, .10);
}

.bird-photo-preview.male { border-color: #93c5fd; background: #eff6ff; }
.bird-photo-preview.female { border-color: #f9a8d4; background: #fdf2f8; }
.bird-photo-preview.unknown { border-color: #cbd5e1; background: #f8fafc; }

.bird-photo-preview img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    display: block;
    object-fit: cover;
}

.bird-photo-default-label {
    position: absolute;
    right: 9px;
    left: 9px;
    bottom: 9px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(5px);
}

.bird-photo-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.bird-photo-kicker {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.bird-photo-content h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 24px;
}

.bird-photo-content p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.bird-photo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bird-photo-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.bird-photo-upload-button {
    min-width: 190px;
    cursor: pointer;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .20);
}

.bird-photo-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .26);
}

.bird-photo-upload-button:active {
    transform: translateY(1px) scale(.985);
}

.bird-photo-help {
    padding: 9px 11px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
    line-height: 1.7;
}

.secondary-image-preview {
    width: 100%;
    max-width: 240px;
    height: 140px;
    margin: 8px 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    background: #f8fafc;
}

@media (max-width: 760px) {
    .bird-photo-editor {
        grid-template-columns: 1fr;
    }

    .bird-photo-preview {
        width: min(100%, 280px);
        min-height: 220px;
        margin: 0 auto;
    }

    .bird-photo-preview img {
        min-height: 216px;
    }

    .bird-photo-actions > * {
        width: 100%;
    }
}


/* v8.5.2 — Report response timer */
.report-timing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.report-timing-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid #86efac;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(22, 101, 52, .08);
}

.report-total-timing {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.report-loading-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #334155;
}

.report-loading-card span {
    color: #64748b;
    font-size: 13px;
}

.report-loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: report-timer-spin .8s linear infinite;
}

@keyframes report-timer-spin {
    to { transform: rotate(360deg); }
}
