* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Yupsale brand palette ──────────────────────────────────
   #FFB200  Akzent-/Fokusfarbe  (gold)
   #11224F  Hauptfarbe          (dark navy)
   #7396C2  Sekundärblau        (large areas / backgrounds)
   #565B62  Dunkelgrau          (backgrounds / secondary)
   #CACDD1  Hellgrau            (backgrounds / borders)
   #000000  Textfarbe Standard
──────────────────────────────────────────────────────────── */

/* ── Theme variables ── */
:root {
    /* Dark mode (default) */
    --body-bg-start:      #0b1529;
    --body-bg-end:        #11224F;
    --main-bg:            #162040;
    --upload-bg:          #1b2a54;
    --sidebar-bg:         #1b2a54;
    --result-bg:          #1b2a54;
    --result-inner:       #111e3a;
    --text-primary:       #e4eaf6;
    --text-secondary:     #a8b8d0;
    --text-header:        #ffffff;
    --border-color:       rgba(115, 150, 194, 0.25);
    --input-bg:           #1b2a54;
    --input-color:        #e4eaf6;
    --placeholder-color:  #7396C2;
    --accent-gold:        #FFB200;
    --accent-gold-hover:  #d99900;
    --accent-gold-dim:    rgba(255, 178, 0, 0.35);
    --accent-blue:        #7396C2;
    --accent-blue-hover:  #5a7faf;
    --accent-navy:        #11224F;
    --btn-primary-bg:     #7396C2;
    --btn-primary-hover:  #5a7faf;
    --btn-primary-shadow: rgba(115, 150, 194, 0.4);
    --btn-secondary-bg:   #565B62;
    --btn-secondary-hover:#3f444a;
    --btn-secondary-shadow:rgba(86, 91, 98, 0.4);
    --suggestion-item-bg: #1b2a54;
    --matched-item-bg:    rgba(115, 150, 194, 0.18);
    --progress-track:     rgba(115, 150, 194, 0.15);
    --divider-color:      rgba(115, 150, 194, 0.2);
    --header-text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    --main-shadow:        0 10px 40px rgba(0, 0, 0, 0.5);
    --toggle-bg:          #CACDD1;
    --toggle-color:       #565B62;
    --toggle-hover-bg:    #b8bcc2;
}

body.light-mode {
    --body-bg-start:      #CACDD1;
    --body-bg-end:        #e8ecf2;
    --main-bg:            #ffffff;
    --upload-bg:          #f4f6fb;
    --sidebar-bg:         #f4f6fb;
    --result-bg:          #f4f6fb;
    --result-inner:       #ffffff;
    --text-primary:       #000000;
    --text-secondary:     #565B62;
    --text-header:        #11224F;
    --border-color:       #CACDD1;
    --input-bg:           #ffffff;
    --input-color:        #000000;
    --placeholder-color:  #CACDD1;
    --accent-gold:        #FFB200;
    --accent-gold-hover:  #d99900;
    --accent-gold-dim:    rgba(255, 178, 0, 0.2);
    --accent-blue:        #7396C2;
    --accent-blue-hover:  #5a7faf;
    --accent-navy:        #11224F;
    --btn-primary-bg:     #11224F;
    --btn-primary-hover:  #0d1a3d;
    --btn-primary-shadow: rgba(17, 34, 79, 0.3);
    --btn-secondary-bg:   #565B62;
    --btn-secondary-hover:#3f444a;
    --btn-secondary-shadow:rgba(86, 91, 98, 0.3);
    --suggestion-item-bg: #ffffff;
    --matched-item-bg:    #dde6f2;
    --progress-track:     #CACDD1;
    --divider-color:      #CACDD1;
    --header-text-shadow: none;
    --main-shadow:        0 10px 40px rgba(17, 34, 79, 0.12);
    --toggle-bg:          #11224F;
    --toggle-color:       #CACDD1;
    --toggle-hover-bg:    #1a3370;
}

/* ── Theme toggle button ── */
.theme-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    background: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}

.theme-toggle:hover {
    background: var(--toggle-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active {
    transform: translateY(0);
}

/* ── Base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--body-bg-start) 0%, var(--body-bg-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ── Header ── */
header {
    text-align: center;
    color: var(--text-header);
    margin-bottom: 30px;
    transition: color 0.4s ease;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: var(--header-text-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-icon {
    height: 6.5rem;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

header p {
    font-size: 1.1rem;
    color: var(--text-header);
    opacity: 0.8;
}

/* ── Main ── */
main {
    background: var(--main-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--main-shadow);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ── Product selection ── */
.product-selection-section {
    margin-bottom: 20px;
}

.product-selection-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.product-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-item {
    font-size: 0.85rem;
    color: var(--accent-blue);
    padding: 5px 10px;
    background: var(--matched-item-bg);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    border: 1.5px solid transparent;
}

.product-item-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    padding: 1px 5px;
    white-space: nowrap;
    line-height: 1.4;
    opacity: 0.85;
}

.product-item:hover .product-item-badge,
.product-item.selected .product-item-badge {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

body.light-mode .product-item-badge {
    background: rgba(17, 34, 79, 0.1);
    color: var(--text-secondary);
}

body.light-mode .product-item:hover .product-item-badge,
body.light-mode .product-item.selected .product-item-badge {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.2);
}

.product-item:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.product-item.selected {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue-hover);
}

.product-item[draggable="true"] { cursor: grab; }
.product-item.dragging          { opacity: 0.4; cursor: grabbing; }
.product-item.insert-before     { border-top: 2px solid var(--accent-blue); }
.product-item.insert-after      { border-bottom: 2px solid var(--accent-blue); }

.product-category-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    margin: 14px 0 5px 0;
    width: 100%;
}

.product-category-header:first-child {
    margin-top: 0;
}

.product-category-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    padding: 4px;
    border-radius: 6px;
    width: 100%;
    transition: background 0.15s ease;
}

.product-category-zone.drag-over {
    background: var(--matched-item-bg);
    outline: 2px dashed var(--accent-blue);
}

/* ── Suggest row ── */
.suggest-row {
    justify-content: center;
    margin-bottom: 20px;
}

/* ── Upload ── */
.upload-section {
    margin-bottom: 30px;
}

.upload-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.upload-area {
    border: 3px dashed var(--accent-blue);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: var(--upload-bg);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.upload-area.dragover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-dim);
}

.upload-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--btn-primary-shadow);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--btn-secondary-shadow);
}

.btn-suggest {
    background: var(--accent-gold);
    color: #11224F;
    font-weight: 700;
}

.btn-suggest:hover:not(:disabled) {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 178, 0, 0.4);
}

.btn-suggest:disabled {
    background: #CACDD1;
    color: #565B62;
    cursor: not-allowed;
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
}

/* ── Preview ── */
.preview-container {
    position: relative;
    margin-top: 20px;
    display: block;
    width: 100%;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* ── Suggestions sidebar ── */
.suggestions-sidebar {
    width: 350px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--sidebar-bg);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--accent-gold);
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.suggestions-sidebar h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.suggestion-item {
    background: var(--suggestion-item-bg);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease;
}

.suggestion-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.suggestion-item .principle {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.suggestion-item .menu-change {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.suggestion-item .matched-items {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--divider-color);
}

.suggestion-item .matched-items-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.suggestion-item .matched-item {
    font-size: 0.85rem;
    color: var(--accent-blue);
    padding: 4px 8px;
    background: var(--matched-item-bg);
    border-radius: 4px;
    display: inline-block;
    margin: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item .matched-item:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

/* ── Categorized recommendation blocks ── */
.category-block {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider-color);
}

.category-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-assessment {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-style: italic;
}

.already-well-implemented {
    margin-bottom: 12px;
    padding: 6px 8px;
    background: var(--matched-item-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.already-well-implemented-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 4px;
}

.effect-badge {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 500;
    margin-right: 4px;
}

.measure-item h5 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ── Image preview ── */
#previewImage {
    width: 100%;
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

#boundingBoxCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 10px;
}

/* ── PDF multi-page preview ── */
.pdf-pages-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 10px;
}

.pdf-page-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

.pdf-page-wrapper .page-img {
    width: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pdf-page-wrapper .page-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 6px;
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ── Progress ── */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--progress-track);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7396C2, #FFB200);
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

.progress-text {
    text-align: center;
    color: var(--accent-blue);
    font-weight: 600;
}

/* ── Results ── */
.results-section {
    margin-top: 30px;
}

.result-card {
    background: var(--result-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-blue);
    transition: background 0.4s ease;
}

.result-card h2 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ── Collapsible ── */
.collapsible-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 0;
}

.collapsible-header:hover {
    opacity: 0.8;
}

.collapsible-header h2 {
    margin-bottom: 0;
    flex: 1;
}

.collapse-icon {
    font-size: 1.2rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
    margin-left: 10px;
    display: inline-block;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.collapsible-content.expanded {
    max-height: 5000px;
    padding-top: 15px;
}

.collapsible-header.expanded .collapse-icon {
    transform: rotate(180deg);
}

.result-content {
    background: var(--result-inner);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: background 0.4s ease, color 0.4s ease;
}

.result-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

/* ── Error ── */
.error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
}

body.light-mode .error-message {
    background: #f8d7da;
    color: #721c24;
}

body.light-mode .legal-page h2 {
    color: var(--accent-navy);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .preview-layout {
        flex-direction: column;
    }

    .suggestions-sidebar {
        width: 100%;
        max-height: 400px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    main {
        padding: 20px;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .upload-options {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .result-card {
        padding: 15px;
    }

    .result-card h2 {
        font-size: 1.3rem;
    }
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .upload-area {
        padding: 20px 15px;
    }
}

/* ── Profile icon + dropdown ── */
.profile-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-btn:hover {
    background: var(--toggle-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-dropdown {
    display: none;
    position: fixed;
    top: 62px;
    right: 16px;
    z-index: 1000;
    width: 240px;
    background: var(--result-inner);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    flex-direction: column;
}

.profile-dropdown.open {
    display: flex;
}

.pd-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-header);
    margin-bottom: 2px;
}

.pd-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    word-break: break-all;
}

.pd-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 0;
}

.pd-logout {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.3rem 0;
    border-radius: 6px;
    transition: color 0.2s;
}

.pd-logout:hover { color: var(--text-primary); text-decoration: underline; }

.pd-link {
    display: block;
    padding: 0.55rem 0.5rem;
    border-radius: 7px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s;
}

.pd-link:hover { background: var(--accent-gold-dim); }

/* ── Edit hint banner ── */
.edit-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    background: var(--matched-item-bg);
    border-radius: 7px;
    padding: 7px 10px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.edit-hint-item::before {
    margin-right: 3px;
}

.edit-hint-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.55;
    font-family: inherit;
}

.edit-hint-close:hover {
    opacity: 1;
}

/* ── Context menu ── */
.context-menu {
    position: fixed;
    z-index: 9999;
    background: var(--result-inner);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 190px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    font-size: 0.875rem;
}

.context-menu-item {
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-primary);
    user-select: none;
    white-space: nowrap;
    position: relative;
    transition: background 0.1s ease, color 0.1s ease;
}

.context-menu-item:hover {
    background: var(--matched-item-bg);
    color: var(--accent-blue);
}

.context-menu-item.context-menu-new-cat {
    color: var(--accent-gold);
}

.context-menu-item.context-menu-new-cat:hover {
    color: var(--accent-gold-hover);
    background: var(--accent-gold-dim);
}

.context-menu-separator {
    height: 1px;
    background: var(--divider-color);
    margin: 3px 0;
}

.context-menu-has-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-arrow {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-left: 8px;
    flex-shrink: 0;
}

.context-menu-sub {
    display: none;
    position: absolute;
    left: 100%;
    top: -4px;
    background: var(--result-inner);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 160px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 10000;
}

.context-menu-has-sub:hover .context-menu-sub {
    display: block;
}

/* ── Inline rename inputs ── */
.inline-rename-input {
    background: var(--input-bg);
    color: var(--input-color);
    border: 1.5px solid var(--accent-blue);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    min-width: 60px;
    box-shadow: 0 0 0 2px rgba(115, 150, 194, 0.25);
}

.inline-rename-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    background: transparent;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255, 178, 0, 0.2);
    width: 100%;
}

.new-category-input-wrapper {
    width: 100%;
    padding: 6px 4px 2px;
}

.inline-new-category-input {
    width: 100%;
}

/* ── Empty category placeholder ── */
.category-empty-placeholder {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.5;
    font-style: italic;
    padding: 4px 6px;
    user-select: none;
}
