@import "CSSVAR.css";

body {
    margin-top: 90px;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text);
    font-family: var(--font);
}

.ueberschrift {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

button {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    box-shadow: var(--shadow);
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--primary-dark);
}

input,
select,
textarea {
    font-family: var(--font);
    font-size: 1em;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0 4px 0 0;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 600px;
    margin: 60px auto;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.container-duo {
    width: min(1500px, calc(100% - 32px));
    margin: 60px auto;
    display: grid;
    grid-template-columns: minmax(420px, 0.85fr) minmax(620px, 1.15fr);
    gap: 24px;
    align-items: start;
}

.container-duo > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.container-duo .container-table {
    overflow-x: auto;
}

@media (max-width: 1180px) {
    .container-duo {
        grid-template-columns: 1fr;
        width: min(800px, calc(100% - 24px));
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .container-duo {
        width: calc(100% - 20px);
        margin: 30px auto;
        gap: 20px;
    }
}

.form-block {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 15px;
}

.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.navbar {
    background-color: var(--primary);
    padding: 10px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 50px;
}

.nav-links {
    position: fixed;
    left: 50vw;
    transform: translateX(-50%);
    top: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-divider {
    width: 5px;
    height: 48px;
    background-color: #fff;
    margin: 0 0.5rem;
    border-radius: 10px;
}

.nav-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.nav-icon:hover {
    filter: brightness(0) saturate(100%) invert(86%) sepia(82%) saturate(5000%) hue-rotate(1deg);
}

.has-submenu .submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0;
    gap: 1rem;
    flex-direction: column;
    z-index: 100;
    border: white double 10px;
    transition: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    z-index: 999;
    transition: none;
    transition-delay: 0s;
}

.has-submenu:not(:hover) .submenu {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease 0.2s,
        visibility 0.1s linear 0.35s;
}

.navbar.submenu-switch .has-submenu:not(:hover) .submenu {
    transition: none !important;
}

.has-submenu:hover > a .nav-icon,
.has-submenu:focus-within > a .nav-icon {
    filter: brightness(0) saturate(100%) invert(86%) sepia(82%) saturate(5000%) hue-rotate(1deg);
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--border-radius);
}

.submenu li a:hover {
    background-color: var(--primary-dark);
}

.submenu li a:hover .nav-icon,
.submenu li a:focus .nav-icon,
.submenu li a:focus-visible .nav-icon {
    filter: brightness(0) saturate(100%) invert(86%) sepia(82%) saturate(5000%) hue-rotate(1deg);
}

.submenu .submenu-text {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.submenu .nav-icon {
    width: 32px;
    height: 32px;
}

.nav-icon-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.nav-alert-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 0px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff, var(--shadow);
    z-index: 2;
}

.submenu .nav-alert-badge {
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 0px;
    font-size: 0.68rem;
}

.chart-third {
    flex: 1 1 28%;
    max-width: 450px;
}

.chart-quarter {
    flex: 1 1 20%;
    max-width: 333px;
}

.chart-third canvas,
.chart-quarter canvas {
    width: 100%;
    height: 300px !important;
}

.zeitbereich-form {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family: var(--font);
}

.zeitbereich-label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text);
}

.zeitbereich-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--border-radius);
    background: var(--accent);
    box-shadow: var(--shadow);
    outline: none;
    transition: background 0.3s;
}

.zeitbereich-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 2px solid white;
    transition: background 0.2s;
}

.zeitbereich-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
}

.zeitbereich-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 2px solid white;
    transition: background 0.2s;
}

.zeitbereich-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
}

.toolbar {
    position: sticky;
    top: 70px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    margin: 0 0 16px 0;
}

.search-input {
    width: 340px;
    max-width: 60vw;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.badge {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--text-light);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.food-card {
    text-align: center;
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    cursor: pointer;
}

.food-card:hover {
    background: #fff7ee;
    border-color: var(--accent);
}

.card-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.title-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    justify-content: center;
    text-align: center;
}

.pill {
    background: var(--primary);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #444;
    font-size: 0.95rem;
    margin: 6px 0;
}

.nutri {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 1em;
    min-width: 90px;
    text-align: center;
}

.subtle {
    font-size: 0.85rem;
    color: #777;
}

.loadmore-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.loadmore-btn {
    background: var(--accent);
    color: var(--text);
}

.status-msg {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: white;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 6px solid var(--primary);
    font-weight: 600;
}

.food-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--font);
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.food-table th,
.food-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.food-table th {
    background-color: var(--accent);
    color: var(--text);
    font-weight: bold;
}

.food-table tr:hover {
    background-color: #fff2e5;
}

.food-table td form {
    display: inline;
}

.autocomplete-list,
.autocomplete-list-tr {
    list-style: none;
    padding: 0;
    background-color: white;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
}

.autocomplete-list {
    margin-top: 0px;
}

.autocomplete-list-tr {
    margin-top: -180px;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1em;
}

.autocomplete-item:hover {
    background-color: var(--accent);
}

.autocomplete-item.active {
    background-color: var(--accent);
}

.input-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.kalorien-output {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-top: 20px;
}

.kategorie-select {
    padding: 6px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background-color: white;
    font-family: var(--font);
    font-size: 0.95rem;
}

.input-group-dropdown {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
}

.modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 500px;
    max-width: 90%;
    position: relative;
    z-index: 1001;
}

.modal select {
    background-color: white;
    color: var(--text);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font);
    font-size: 1rem;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    appearance: auto;
}

.close-button {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

.modal.hidden {
    display: none !important;
}

.lt-page {
    --lt-accent: var(--primary);
    max-width: 1400px;
    margin: 30px auto 80px;
    padding: 0 16px;
}

.lt-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.lt-yearwrap {
    width: 160px;
    min-width: 140px;
}

.lt-label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.lt-chart-wrap {
    margin: 18px auto 16px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    height: calc(255px + 26px);
}

.lernzeit-chart-wrap {
    height: 350px !important;
}

.lt-hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    margin: 26px 0;
}

.lt-subject-row {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.lt-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
}

.lt-tab {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(0, 0, 0, 0.10);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: none;
    transition: transform 0.08s ease, border-color 0.15s ease, background-color 0.15s ease;
}

/* .lt-tab:hover {
    transform: translateY(-1px);
} */

.lt-tab.active {
    border-color: var(--lt-accent);
    background-color: rgba(0, 0, 0, 0.03);
    outline: 2px solid rgba(0, 0, 0, 0.02);
}

.lt-add-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    font-size: 26px;
    background-color: var(--primary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lt-table-wrap {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: auto;
    max-width: 1000px;
}

.lt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font);
}

.lt-table thead th {
    text-align: left;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.lt-col-check {
    width: 110px;
    text-align: center !important;
}

.lt-right {
    text-align: center;
}

.lt-row {
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

.lt-row td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.lt-row:last-child td {
    border-bottom: none;
}

.lt-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.lt-row:active {
    transform: scale(0.999);
}

.lt-row.done {
    opacity: 0.55;
    filter: grayscale(0.15);
}

.lt-row.pending {
    opacity: 0.75;
}

.lt-task {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lt-task-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.lt-task-left{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lt-task-right{
    display: flex;
    align-items: center;      /* vertikal zentriert */
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0.78;
}

.lt-task-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.lt-unit {
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.lt-title {
    font-weight: 700;
    opacity: 0.95;
}

.lt-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lt-note {
    font-size: 0.92rem;
    opacity: 0.85;
}

.lt-doneat-label{
    font-weight: 700;
    opacity: 0.85;
}

.lt-doneat-value{
    font-variant-numeric: tabular-nums;
}

.lt-dur {
    font-size: 0.90rem;
    opacity: 0.78;
}

.lt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lt-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lt-check label {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.10s ease, border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
    background: #fff;
}

.lt-check label:hover {
    transform: translateY(-1px);
    border-color: var(--lt-accent);
}

.lt-checkmark {
    width: 30px;
    height: 30px;
}

.lt-checkmark path {
    fill: none;
    stroke: var(--lt-accent);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.22s ease;
}

.lt-check input:checked + label {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--lt-accent);
    animation: lt-pop 0.18s ease;
}

.lt-check input:checked + label .lt-checkmark path {
    stroke-dashoffset: 0;
}

.lt-check input:disabled + label {
    opacity: 0.75;
    cursor: progress;
}

@keyframes lt-pop {
    0% { transform: scale(1); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.lt-modal-content {
    border-top: 6px solid var(--lt-accent);
}

.lt-modal-title {
    margin-top: 0;
    margin-bottom: 16px;
}

.lt-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lt-empty td {
    padding: 22px 16px;
    text-align: center;
    opacity: 0.75;
}

.lt-col-drag {
    width: 54px;
    text-align: center !important;
}

.lt-table th.lt-col-drag,
.lt-table td.lt-dragcell {
    padding: 0;
    vertical-align: stretch;
    width: 44px;
}

.lt-table td.lt-dragcell {
    width: 54px;
    text-align: center;
    border-left: 6px solid var(--lt-accent);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.lt-left {
    border-left: none;
}

.lt-grip {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.10s ease, border-color 0.15s ease, background-color 0.15s ease;
    color: rgba(0, 0, 0, 0.55);
    background: #fff;
    font-size: 18px;
    line-height: 1;
}

.lt-grip:hover {
    border-color: var(--lt-accent);
    color: var(--lt-accent);
    transform: translateY(-1px);
}

.lt-grip:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.lt-dragcell .lt-grip {
    width: 100%;
    height: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    background: rgba(0, 0, 0, 0.04);
}

.lt-dragcell .lt-grip:hover {
    background: rgba(0, 0, 0, 0.08);
}

tr.lt-dragging .lt-grip {
    cursor: grabbing;
}

.lt-row.lt-dragging {
    opacity: 0.85;
}

.lt-row.lt-drop-before td {
    box-shadow: inset 0 3px 0 var(--lt-accent);
}

.lt-row.lt-drop-after td {
    box-shadow: inset 0 -3px 0 var(--lt-accent);
}

.dashboard-page .dashboard-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-page .dashboard-title-soft {
    font-weight: 500;
    opacity: 0.85;
}

.dashboard-page .dashboard-title-soft-detail {
    font-size: 0.72em;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 4px;
    white-space: nowrap;
}

.dashboard-page .dashboard-filterform {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-page .dashboard-pies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dashboard-page .dashboard-pies.dashboard-pies-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .dashboard-pies.dashboard-pies--asym {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
}

.dashboard-page .dashboard-pie-card {
    border-radius: var(--border-radius);
    padding: 14px 14px 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-page .dashboard-pie-kpi {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dashboard-page .dashboard-pie-kpi-label {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.dashboard-page .dashboard-pie-kpi-value {
    font-weight: 600;
    opacity: 0.9;
}

.dashboard-page .dashboard-pie-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 255px;
}

.dashboard-page .dashboard-pie-wrap > canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.dashboard-page .dashboard-pies.dashboard-pies--single {
    grid-template-columns: 1fr;
}

.dashboard-page .dashboard-pie-card.dashboard-pie-card--full {
    grid-column: 1 / -1;
}

.dashboard-page button.dashboard-upload-trigger {
    appearance: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2px 8px;
    text-align: center;
}

.dashboard-page button.dashboard-upload-trigger:hover {
    background: color-mix(in srgb, var(--primary) 10%, #fff 90%);
}

.dashboard-page button.dashboard-upload-trigger:disabled {
    cursor: progress;
    opacity: 0.7;
}

.csv-upload-toast {
    position: fixed;
    top: 220px; /* hier hoch/runter schieben */
    left: 50%;
    z-index: 5000;
    min-width: min(360px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    background: #fff;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-weight: 900;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.csv-upload-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.csv-upload-toast--success,
.csv-upload-toast--info {
    border-color: var(--primary);
    color: var(--primary);
}

.csv-upload-toast--error {
    border-color: var(--error);
    color: var(--error);
}

@media (max-width: 1100px) {
    .dashboard-page .dashboard-pies.dashboard-pies-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dashboard-page .dashboard-pies,
    .dashboard-page .dashboard-pies.dashboard-pies-3 {
        grid-template-columns: 1fr;
    }
}

.dashboard-page .dashboard-sober-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-page .dashboard-sober-counter {
    flex: 0 0 auto;
    min-width: 115px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2px 8px;
    text-align: center;
}

.dashboard-page .dashboard-sober-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text);
    /*! margin-bottom: 3px; */
}

.dashboard-page .dashboard-sober-value {
    display: block;
    font-size: clamp(0.95rem, 0.82rem + 0.45vw, 1.18rem);
    font-weight: 900;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dashboard-page .dashboard-sober-since {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.72;
}

.ernährungsdiablock {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

button.chart-back {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 22px;
    height: 22px;
    transform: scale(2);
    transform-origin: left center;
    margin-right: 8px;
    line-height: 1;
}

button.chart-back:hover {
    color: var(--primary);
    opacity: 1;
}

button.chart-back:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

#ltTabs .lt-tab {
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

#ltTabs .lt-tab:hover {
    background-color: var(--tab-accent);
    border-color: var(--tab-accent);
    color: var(--tab-accent-text);
}

#ltTabs .lt-tab.active {
    background-color: var(--tab-accent);
    border-color: var(--tab-accent);
    color: var(--tab-accent-text);
}

.lt-task-top{
  align-items:center;
}

.lt-indent{
  display:inline-block;
  width:calc(var(--lt-depth,0)*18px);
  flex:0 0 auto;
}

.lt-expcell,
.lt-subcell{
  width:52px;
  text-align:center;
  vertical-align:middle;
}

.lt-todo-expbtn,
.lt-todo-subbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1;
  opacity:.75;
  user-select:none;
  color:inherit;
}

.lt-todo-expbtn{
  width:1.8rem;
  height:1.8rem;
  font-size:3rem;
  transform:rotate(0deg);
  transition:transform .12s ease,opacity .12s ease;
}

.lt-todo-subbtn{
  width:1.8rem;
  height:1.8rem;
  font-size:3rem;
}

.lt-todo-expbtn:hover,
.lt-todo-subbtn:hover{
  opacity:1;
  color:var(--lt-accent);
}

.lt-todo-expbtn.open{
  transform:rotate(90deg);
}

.lt-todo-expbtn.is-hidden{
  visibility:hidden;
}

.lt-todo-subbtn.is-hidden{
  display:none;
}

.lt-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.35em;
  height:1.35em;
  margin-left:.5rem;
  padding:0 .35em;
  border-radius:999px;
  background:rgba(0,0,0,.12);
  font-size:.78em;
  line-height:1;
}

.lt-child .lt-task-top{
  opacity:.98;
}

.lt-row.lt-child td{
  background:var(--lt-child-bg, rgba(0,0,0,.035));
}

.lt-row.lt-child .lt-title{
  font-size:.9em;
}

.lt-row.lt-child .lt-note{
  font-size:.8em;
  opacity:.9;
}

.lt-modal-actions{
  display:flex;
  align-items:stretch;
  gap:12px;
  margin-top:16px;
}

/* Save: links, breit */
.lt-save-btn{
  flex: 1 1 auto;          /* nimmt den Platz */
  min-width: 220px;        /* optional */
  justify-content:center;
}

/* Delete: rechts, schmal */
.lt-delete-btn{
  flex: 0 0 auto;          /* nicht wachsen */
  min-width: 110px;
  padding: 10px 12px;
  background:#fff;
  color:#c0392b;
  border:2px solid rgba(192,57,43,.55);
  box-shadow:none;
}

.lt-delete-btn:hover{
  background:#c0392b;
  color:#fff;
  border-color:#c0392b;
}

.lt-delete-btn:active{
  transform:scale(0.99);
}

.lt-delete-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.form-separator {
    border-top: 1px solid #ddd;
    margin: 4px 0 2px 0;
}




.kartei-shell {
    max-width: 1460px;
    margin: 24px auto 56px;
    padding: 0 18px 28px;
}

.kartei-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.kartei-statsline {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
}

.kartei-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.kartei-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(34, 34, 34, 0.72);
}

.kartei-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.kartei-topmeta {
    margin-left: auto;
    font-size: 0.95rem;
    color: rgba(34, 34, 34, 0.7);
    white-space: nowrap;
}

.kartei-stage {
    position: relative;
}

.kartei-panel {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    /* min-height: calc(100vh - 400px); */
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kartei-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kartei-panel-meta {
    font-size: 0.96rem;
    font-weight: 600;
    color: rgba(34, 34, 34, 0.7);
    letter-spacing: 0.01em;
}

.kartei-question-wrap {
    padding-top: 2px;
}

.kartei-question-body {
    /* min-height: 120px; */
    font-size: clamp(1.85rem, 1.55rem + 0.55vw, 1.85rem);
    font-weight: 700;
    line-height: 1.42;
    color: var(--text);
    letter-spacing: -0.01em;
    text-align: center;
}

.kartei-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

.kartei-option {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
}

.kartei-option:hover {
    border-color: var(--primary);
    background: var(--bg-light);
    transform: translateY(-1px);
}

.kartei-option:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.25);
    outline-offset: 2px;
}

.kartei-option.is-selected {
    border-color: var(--primary);
    background: #fff2e6;
    box-shadow: var(--shadow);
}

.kartei-option.is-locked {
    cursor: default;
}

.kartei-option-letter {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.kartei-option-content {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text);
    font-size: 1.13rem;
    line-height: 1.5;
    padding-top: 4px;
}

.kartei-bottombar {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.kartei-btn {
    border: none;
    border-radius: var(--border-radius);
    padding: 11px 16px;
    font-weight: 700;
    font-size: 40px;
    font-family: var(--font);
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.kartei-btn:hover {
    transform: translateY(-1px);
}

.kartei-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.kartei-btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.kartei-btn-primary:hover {
    background: var(--primary-dark);
}

.kartei-btn-subtle {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: none;
}

.kartei-btn-subtle:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.kartei-empty {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    font-size: 1.08rem;
    color: rgba(34, 34, 34, 0.72);
}

.kartei-no-options {
    padding: 22px 18px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    border: 1px dashed rgba(0, 0, 0, 0.16);
    color: rgba(34, 34, 34, 0.7);
    font-weight: 600;
}

.kartei-feedback {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    box-shadow: var(--shadow);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
}

.kartei-feedback.is-correct {
    background: #2e9b55;
    opacity: 1;
}

.kartei-feedback.is-wrong {
    background: #c0392b;
    opacity: 1;
}

.kartei-question-body .mjx-container,
.kartei-option-content .mjx-container {
    margin: 0 !important;
}

.kartei-question-body .MathJax,
.kartei-option-content .MathJax {
    outline: none;
}

@media (max-width: 1180px) {
    .kartei-options {
        grid-template-columns: 1fr;
    }

    .kartei-panel {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .kartei-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .kartei-topbar {
        padding: 12px;
    }

    .kartei-topmeta {
        white-space: normal;
        margin-left: 0;
        width: 100%;
    }

    .kartei-panel {
        padding: 16px;
    }

    .kartei-question-body {
        font-size: 1.45rem;
        min-height: 0;
    }

    .kartei-option {
        min-height: 96px;
        padding: 14px;
    }

    .kartei-option-letter {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .kartei-option-content {
        font-size: 1rem;
    }
}

.kartei-header-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.kartei-header-topic {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
}

.kartei-header-stats {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 0;
}

.kartei-header-topic {
    display: flex;
    align-items: center;
    padding-right: 12px;
}

.kartei-header-topic .kategorie-select {
    width: 100%;
}

.kartei-header-divider {
    flex: 0 0 1px;
    width: 1px;
    align-self: stretch;
    background: rgba(0, 0, 0, 0.12);
}

.kartei-header-stats {
    display: flex;
    align-items: center;
    padding-left: 12px;
}


.kartei-header-row-with-action {
    align-items: stretch;
}

.kartei-header-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.kartei-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.kartei-btn-danger {
    background: #fff;
    color: #c0392b;
    border: 2px solid rgba(192, 57, 43, 0.55);
    box-shadow: none;
    white-space: nowrap;
}

.kartei-btn-danger:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.kartei-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kartei-option.is-answer-correct {
    border-color: #2e9b55;
    background: #edf8f1;
    box-shadow: var(--shadow);
}

.kartei-option.is-answer-correct .kartei-option-letter {
    background: #2e9b55;
}

.kartei-option.is-answer-correct-selected {
    border-color: #2e9b55;
    background: #e3f5e9;
    box-shadow: var(--shadow);
}

.kartei-option.is-answer-correct-selected .kartei-option-letter {
    background: #2e9b55;
}

.kartei-option.is-answer-wrong-selected {
    border-color: #c0392b;
    background: #fdf0ee;
    box-shadow: var(--shadow);
}

.kartei-option.is-answer-wrong-selected .kartei-option-letter {
    background: #c0392b;
}

.life-wrap {
    height: auto !important;
    overflow: visible;
    padding-top: 12px;
    padding-bottom: 18px;
    position: relative;
}

.life-sticky-shell {
    position: relative;
}

.life-axis-sticky {
    position: sticky;
    top: 67px;
    z-index: 200;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.life-axis-scroll {
    overflow-x: hidden;
    overflow-y: visible;
}

.life-body-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.life-board {
    min-width: 980px;
}

.life-axis-row,
.life-row {
    display: grid;
    grid-template-columns: 340px minmax(620px, 1fr);
    align-items: stretch;
}

.life-axis-row {
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.life-ordinate-spacer {
    min-height: 42px;
    background: #fff;
}

.life-months {
    display: grid;
    min-height: 42px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.14);
    background: #fff;
}

.life-month-cell {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 2px 6px;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--text);
    border-left: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
}

.life-month-cell:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.10);
}

.life-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.life-row--group {
    min-height: 36px;
}

.life-row--entry {
    min-height: 42px;
}

.life-label {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 0px 12px;
    padding-left: calc(14px + (var(--life-depth, 0) * 22px));
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    min-width: 0;
}

.life-label-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.life-label--group {
    font-weight: 800;
    background: rgba(0, 0, 0, 0.035);
}

.life-label--entry {
    font-weight: 500;
}

.life-track {
    position: relative;
    min-height: 100%;
    background: #fff;
}

.life-grid {
    position: absolute;
    inset: 0;
    display: grid;
    z-index: 0;
    pointer-events: none;
}

.life-grid-cell {
    border-left: 1px solid rgba(0, 0, 0, 0.10);
}

.life-grid-cell:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.10);
}

.life-row--group .life-track {
    background: rgba(0, 0, 0, 0.025);
}

.life-row--entry .life-track {
    background: #fff;
}

.life-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    min-width: 4px;
    z-index: 2;
    box-shadow: var(--shadow);
    opacity: 0.96;
}

.life-event {
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 3;
    background: currentColor;
    box-shadow: 0 0 0 2px #fff;
}

.life-event::before,
.life-event::after {
    display: none;
}

.life-event::before,
.life-event::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.life-event::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.life-event::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.life-event--be {
    color: #2563eb;
}

.life-event--nb {
    color: red;
}

.life-event--q {
    color: grey;
}

.life-event--x {
    color: #d97706;
}

.life-event--an {
    color: #333;
}

.life-event--default {
    color: #111827;
}

.life-empty {
    padding: 22px 12px 8px;
    text-align: center;
    opacity: 0.75;
    font-weight: 600;
}

.life-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.life-modewrap {
    width: 160px;
    min-width: 140px;
}

.life-label--clickable {
    cursor: pointer;
    user-select: none;
}

.life-group-toggle {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    margin-right: 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
    box-shadow: none;
}

.life-group-toggle:hover {
    background: rgba(0, 0, 0, 0.12);
}

.life-group-toggle-icon {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
    transform: rotate(90deg);
    transition: transform 0.18s ease;
    margin-left: 2px;
}

.life-row--collapsed .life-group-toggle-icon {
    transform: rotate(0deg);
}

.life-row-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .life-axis-row,
    .life-row {
        grid-template-columns: 280px minmax(620px, 1fr);
    }
}

.life-sidewrap {
    width: 180px;
    min-width: 160px;
}


.life-interactive {
    cursor: pointer;
}

.life-bar.life-interactive:focus-visible,
.life-event.life-interactive:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
    z-index: 8;
}

.life-info-popover {
    position: fixed;
    z-index: 9999;
    display: none;
    min-width: 220px;
    max-width: min(380px, calc(100vw - 24px));
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #fff;
    color: #111;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.life-info-popover.is-open {
    display: block;
}

.life-info-popover-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.life-info-popover-title {
    font-weight: 700;
    line-height: 1.35;
    flex: 1 1 auto;
}

.life-info-popover-close {
    appearance: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 3px;
    margin: 0;
    flex: 0 0 auto;
}

.life-info-popover-close:hover,
.life-info-popover-close:focus-visible {
    color: var(--primary);
    outline: none;
    background: none;
}

.life-info-popover-body {
    display: grid;
    gap: 4px;
}

.life-info-popover-line {
    line-height: 1.4;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
}






@supports (-webkit-touch-callout: none) {
    .life-body-scroll {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .life-axis-row,
    .life-row {
        display: flex;
        align-items: stretch;
    }

    .life-ordinate-spacer,
    .life-label {
        flex: 0 0 180px;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .life-months,
    .life-track {
        flex: 1 0 auto;
        min-width: 540px;
        width: auto;
        max-width: none;
    }

    .life-board {
        width: max-content;
        min-width: 0;
    }

    .life-label {
        padding: 0 8px !important;
        padding-left: 8px !important;
        overflow: hidden;
        position: relative;
        z-index: 2;
    }

    .life-label-text {
        display: block;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-size: 0.9rem;
        line-height: 1.15;
        color: var(--text);
        opacity: 1;
        visibility: visible;
    }

    .life-track {
        position: relative;
        overflow: visible;
        z-index: 1;
    }

    .life-bar {
        position: absolute;
        z-index: 3;
        height: 14px;
        min-width: 3px;
        opacity: 1;
        visibility: visible;
    }

    .life-event {
        position: absolute;
        z-index: 4;
        width: 14px;
        height: 14px;
        opacity: 1;
        visibility: visible;
    }

    .life-event::before,
    .life-event::after {
        width: 14px;
        height: 2.5px;
    }

    .life-group-toggle {
        width: 18px;
        height: 18px;
        min-width: 18px;
        margin-right: 6px;
        flex: 0 0 18px;
        opacity: 1;
        visibility: visible;
    }

    .life-group-toggle-icon {
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 6px solid currentColor;
        margin-left: 1px;
    }
}




.spotify-token-page .container {
    margin-top: 0;
}

.spotify-token-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 270px;
    text-align: center;
}

.spotify-token-countdown {
    font-size: clamp(1.5rem, 3vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.spotify-token-expiry {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.spotify-token-actions {
    margin-top: 0;
}

.spotify-token-log-panel {
    display: flex;
}

.spotify-token-log {
    height: 100%;
    min-height: 230px;
    resize: vertical;
    font-family: monospace;
    white-space: pre;
    margin: 0;
}

.spotify-token-notice {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    background: #edf8f1;
    border-left: 6px solid #2e9b55;
    font-weight: 700;
}

.spotify-token-error {
    margin-top: 24px;
    padding: 12px;
    border-radius: var(--border-radius);
    background: #fdf0ee;
    border-left: 6px solid #c0392b;
    text-align: left;
}

.spotify-token-error-code {
    font-weight: 900;
    color: #c0392b;
    margin-bottom: 6px;
}

.spotify-token-error-message {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 12px;
}