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

:root {
    --primary: #1e1e1e;
    --primary-dark: #000000;
    --accent: #1a73e8;
    --accent-dark: #174ea6;
    --bg: #121212;
    --bg-card: #28292a;
    --bg-input: #202124;
    --text: #e8eaed;
    --text-dim: #9aa0a6;
    --d100: #607d8b;
    --d20: #2196f3;
    --d12: #009688;
    --d10: #8bc34a;
    --d8: #ffc107;
    --d6: #ff5722;
    --d4: #d32f2f;
    --d3: #673ab7;
    --d2: #3f51b5;
    --dF: #795548;
    --dN: #757575;
    --border: #555;
    --border-dim: #333;
    --setting-border: #3a3a3a;
    --active-bg: #555;
    --modifier-bg: #37474f;
    --modifier-text: #b0bec5;
    --modifier-active: #546e7a;
    --modifier-open: #455a64;
    --tooltip-bg: #222;
    --tooltip-border: #444;
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow: rgba(0, 0, 0, 0.4);
    --hover-highlight: rgba(255, 255, 255, 0.05);
    --success: #4caf50;
    --dropped: #666;
    --hist-time: #666;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overscroll-behavior: none;
}

body {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    height: 100dvh;
    background: var(--bg);
    position: relative;
}

@media (min-width: 600px) and (max-width: 767px) {
    html {
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    body {
        width: 450px;
        height: 90dvh;
        max-height: 900px;
        border-radius: 16px;
        box-shadow: 0 10px 40px var(--overlay);
        overflow: hidden;
    }
}

.panels {
    display: flex;
    flex: 1;
    min-height: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 767px) {
    .panels {
        width: 300%;
    }
}

.panel-label {
    display: none;
}

.overlay-close-btn {
    display: none;
    float: right;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .overlay-close-btn {
        display: inline;
    }
}

/* Medium screens: two columns */
@media (min-width: 768px) {
    body {
        max-width: none;
        height: 100dvh;
    }

    .panels {
        flex-direction: row;
    }

    #dice.tab-content {
        display: flex;
        min-width: 33.33%;
        flex: 1 1 450px;
        border-right: 1px solid var(--border);
    }

    #favorites.tab-content {
        display: flex;
        flex: 1;
        min-width: 280px;
    }

    #history.tab-content {
        display: none;
    }

    /* History as slide-over overlay */
    #history.tab-content.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 380px;
        max-width: 90vw;
        height: 100dvh;
        background: var(--bg);
        box-shadow: -4px 0 20px var(--overlay);
        z-index: 200;
        border-left: 1px solid var(--border);
    }

    .tabs {
        display: none !important;
    }

    button.header-history-btn {
        display: flex !important;
    }

    /* Panel headers for always-visible panels */
    .panel-label {
        display: block;
        padding: 10px 12px 4px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Large screens: three columns */
@media (min-width: 1200px) {
    #history.tab-content {
        display: flex;
        flex: 1;
        min-width: 280px;
        border-left: 1px solid var(--border);
        position: static;
        width: auto;
        max-width: none;
        box-shadow: none;
        z-index: auto;
    }

    #history.tab-content.active {
        position: static;
        width: auto;
        max-width: none;
        box-shadow: none;
        z-index: auto;
    }

    .tabs {
        display: none !important;
    }

    button.header-history-btn {
        display: none !important;
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--primary);
    flex-shrink: 0;
}

header h1 {
    font-size: 20px;
    font-weight: 500;
}

.header-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

button.header-history-btn {
    display: none;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:active { opacity: 0.6; }

.tabs {
    display: flex;
    background: var(--primary);
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border-dim);
}

.tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-top: 3px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-icon {
    width: 26px;
    height: 26px;
}
.tab.active {
    color: var(--accent);
    border-top-color: var(--accent);
}

.tab-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    padding: 8px;
    gap: 4px;
    visibility: hidden;
}
.tab-content.active {
    visibility: visible;
}

@media (min-width: 768px) {
    .panels {
        width: 100% !important;
        transform: none !important;
    }
    .tab-content {
        visibility: visible;
    }
}

#dice.tab-content {
    padding-bottom: 8px;
    overflow-y: hidden; /* Prefer making buttons fill space rather than scrolling */
}

/* Input display */
.input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.input-display {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 24px;
    min-height: 52px;
    display: flex;
    align-items: center;
    word-break: break-all;
    color: var(--text);
}
.input-display.placeholder {
    color: var(--text-dim);
    font-size: 16px;
}

.backspace-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text);
    font-size: 24px;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.backspace-btn:active { opacity: 0.6; }

.hint-label {
    font-size: 12px;
    color: var(--text-dim);
    min-height: 18px;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Result card */
.result-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px var(--overlay);
}
.result-total {
    background: var(--accent);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
}
.result-total.crit { border: 4px solid var(--success); }
.result-total.fumble { border: 4px solid var(--d4); }
.result-details {
    flex: 1;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    text-align: center;
}
.result-details .formula { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.result-details .rolls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

/* Term wrapper: label + pill stacked vertically */
.roll-term {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.roll-term-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: lowercase;
    letter-spacing: 0.3px;
}

/* Pill chip for dice groups */
.roll-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
}
.roll-pill .separator {
    color: var(--text-dim);
    font-size: 11px;
}

/* Operator between terms */
.roll-operator {
    color: var(--text-dim);
    font-size: 16px;
    font-weight: 500;
    align-self: flex-end;
    padding-bottom: 2px;
}

/* Individual die values inside pills */
.roll-kept { color: var(--text); }
.roll-dropped {
    color: var(--dropped);
    opacity: 0.4;
    text-decoration: none;
    font-style: italic;
}
.roll-added { color: var(--success); }
.roll-crit { color: var(--success); font-weight: 700; }
.roll-fumble { color: var(--d4); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Constant term (no pill, just the number) */
.roll-constant {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    align-self: flex-end;
    padding-bottom: 2px;
}

.group-rolls { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.group-sub { font-size: 13px; }
.group-sub-label { color: var(--text-dim); margin-right: 4px; }
.group-sub-total { font-weight: 700; margin-left: 4px; }
.group-sub.dropped { opacity: 0.4; }
.group-sub.dropped .group-sub-total { text-decoration: line-through; }

/* Dice buttons */
.dice-grid {
    display: flex;
    gap: 4px;
    flex: 1;
    min-height: 48px;
}

.die-btn {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.die-btn:active { filter: brightness(0.7); }

.die-btn.d100 { background: var(--d100); }
.die-btn.d20 { background: var(--d20); }
.die-btn.d12 { background: var(--d12); }
.die-btn.d10 { background: var(--d10); }
.die-btn.d8 { background: var(--d8); color: #333; }
.die-btn.d6 { background: var(--d6); }
.die-btn.d4 { background: var(--d4); }
.die-btn.d3 { background: var(--d3); }
.die-btn.d2 { background: var(--d2); }
.die-btn.dF { background: var(--dF); }
.die-btn.dN { background: var(--dN); }

/* Number buttons */
.number-grid {
    display: flex;
    gap: 4px;
    flex: 1;
    min-height: 48px;
}
.num-btn {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.num-btn:active { background: var(--active-bg); }
.op-btn { color: var(--text); font-weight: 500; }


/* Modifiers toggle & panel */
.modifiers-toggle {
    width: 100%;
    padding: 10px 0;
    background: var(--modifier-bg);
    border: none;
    border-radius: 6px;
    color: var(--modifier-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.modifiers-toggle:active { background: var(--modifier-active); }
.modifiers-toggle.open { background: var(--modifier-open); }

.modifiers-panel {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    max-height: 300px; /* Slightly larger to accommodate grouped grids */
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modifiers-panel.hidden {
    max-height: 0;
    opacity: 0;
}

/* Modifier buttons */
.adv-mod {
    margin-bottom: 0;
    flex: 1;
    min-height: 44px;
}
.mod-btn {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--modifier-bg);
    color: var(--modifier-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mod-btn:active { background: var(--modifier-active); }

.grp-btn {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--modifier-bg);
    color: var(--modifier-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grp-btn:active { background: var(--modifier-active); }

.die-btn:disabled,
.num-btn:disabled,
.mod-btn:disabled,
.grp-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Modifier tooltips */
.mod-tooltip {
    position: fixed;
    background: var(--tooltip-bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    max-width: 260px;
    line-height: 1.4;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--tooltip-border);
}

/* Action buttons */
.action-row {
    display: flex;
    gap: 4px;
    margin-top: 2px;
    flex-shrink: 0;
}
.action-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.clear-btn { 
    background: var(--bg-card); 
    color: var(--text); 
    flex: 0 0 56px; 
    font-size: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-btn:active { background: var(--active-bg); }
.roll-btn { background: var(--accent); color: #fff; flex: 2; }
.roll-btn:active { background: var(--accent-dark); }
.fav-btn { 
    background: var(--bg-card); 
    color: var(--text); 
    flex: 0 0 56px; 
    font-size: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-btn:active { background: var(--active-bg); }

.btn-icon {
    width: 24px;
    height: 24px;
}

/* Compact layout for short screens */
@media (max-height: 700px) {
    #dice.tab-content {
        gap: 2px;
        padding: 4px;
    }
    .dice-grid {
        min-height: 36px;
    }
    .die-btn {
        font-size: 14px;
        border-radius: 5px;
    }
    .number-grid {
        min-height: 36px;
    }
    .num-btn {
        font-size: 16px;
        border-radius: 5px;
    }
    .modifiers-toggle {
        padding: 6px 0;
        font-size: 11px;
    }
    .adv-mod {
        min-height: 34px;
    }
    .mod-btn, .grp-btn {
        font-size: 13px;
        border-radius: 5px;
    }
    .action-row {
        margin-top: 1px;
    }
    .action-btn {
        padding: 8px 0;
        font-size: 15px;
    }
    .clear-btn, .fav-btn {
        flex: 0 0 44px;
    }
    .input-display {
        font-size: 18px;
        padding: 6px 12px;
        min-height: 40px;
    }
    .hint-label {
        font-size: 11px;
    }
}

/* Favorites */
.fav-list { display: flex; flex-direction: column; gap: 8px; }
.fav-category {
    margin-bottom: 4px;
}
.fav-category-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 6px;
}
.fav-category-header .arrow {
    transition: transform 0.2s;
    font-size: 10px;
}
.fav-category-header.collapsed .arrow { transform: rotate(-90deg); }
.fav-category-items { display: flex; flex-direction: column; gap: 4px; }
.fav-category-header.collapsed + .fav-category-items { display: none; }

.fav-item, .hist-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    gap: 10px;
    cursor: pointer;
}
.fav-item:active, .hist-item:active { background: var(--active-bg); }

.fav-result {
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
}
.fav-info { flex: 1; }
.fav-name { font-size: 15px; font-weight: 500; }
.fav-formula-text { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.fav-actions {
    display: flex;
    gap: 4px;
}
.fav-action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.fav-action-btn:hover { color: var(--text); background: var(--hover-highlight); }
.fav-action-btn.delete:hover { color: var(--d4); }

/* History */
.history-header {
    display: flex;
    justify-content: flex-end;
    padding: 4px 0;
}
.favorites-header {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 0;
}
.text-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
}
.text-btn:active { opacity: 0.6; }

.hist-list { display: flex; flex-direction: column; gap: 4px; }
.hist-item { cursor: pointer; }
.hist-result {
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
}
.hist-result.crit { background: var(--success); }
.hist-result.fumble { background: var(--d4); }
.hist-info { flex: 1; }
.hist-formula { font-size: 14px; }
.hist-details { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.hist-details .rolls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.hist-details .roll-pill { font-size: 11px; padding: 1px 6px; border-radius: 8px; gap: 2px; max-width: 100%; }
.hist-details .roll-operator { font-size: 12px; }
.hist-details .roll-constant { font-size: 12px; }
.hist-time { font-size: 11px; color: var(--hist-time); margin-top: 2px; }

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-dim);
    text-align: center;
    padding: 40px 20px;
}
.empty-state.hidden { display: none; }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 15px; line-height: 1.5; }

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}
.modal.hidden { display: none; }
.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 18px; font-weight: 500; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
}

.setting-group-header {
    padding: 10px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--setting-border);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--setting-border);
    cursor: pointer;
    font-size: 15px;
}
.setting-row select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
}
.setting-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-body label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-dim);
}
.modal-body input[type="text"] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 15px;
}
.modal-body input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}
.fav-formula {
    background: var(--bg);
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}
.modal-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}
.modal-actions .action-btn { padding: 10px 0; font-size: 15px; }

/* Animations */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.result-total.animate { animation: pop 0.3s ease; }

/* History slide-over backdrop */
.history-backdrop {
    display: none;
}
@media (min-width: 768px) and (max-width: 1199px) {
    .history-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--overlay);
        z-index: 199;
    }
    .history-backdrop:not(.hidden) {
        display: block;
    }
    #history.tab-content.active {
        animation: slideInRight 0.25s ease;
    }
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Light theme */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --primary: #ffffff;
        --primary-dark: #e0e0e0;
        --accent-dark: #1557b0;
        --bg: #f5f5f5;
        --bg-card: #ffffff;
        --bg-input: #e8e8e8;
        --text: #1a1a1a;
        --text-dim: #666666;
        --border: #d0d0d0;
        --border-dim: #e0e0e0;
        --setting-border: #e8e8e8;
        --active-bg: #d0d0d0;
        --modifier-bg: #dde3e8;
        --modifier-text: #37474f;
        --modifier-active: #c5cdd3;
        --modifier-open: #b8c4cc;
        --tooltip-bg: #ffffff;
        --tooltip-border: #d0d0d0;
        --overlay: rgba(0, 0, 0, 0.3);
        --shadow: rgba(0, 0, 0, 0.15);
        --hover-highlight: rgba(0, 0, 0, 0.05);
        --success: #2e7d32;
        --dropped: #999;
        --hist-time: #999;
    }
}

[data-theme="light"] {
    --primary: #ffffff;
    --primary-dark: #e0e0e0;
    --accent-dark: #1557b0;
    --bg: #f5f5f5;
    --bg-card: #ffffff;
    --bg-input: #e8e8e8;
    --text: #1a1a1a;
    --text-dim: #666666;
    --border: #d0d0d0;
    --border-dim: #e0e0e0;
    --setting-border: #e8e8e8;
    --active-bg: #d0d0d0;
    --modifier-bg: #dde3e8;
    --modifier-text: #37474f;
    --modifier-active: #c5cdd3;
    --modifier-open: #b8c4cc;
    --tooltip-bg: #ffffff;
    --tooltip-border: #d0d0d0;
    --overlay: rgba(0, 0, 0, 0.3);
    --shadow: rgba(0, 0, 0, 0.15);
    --hover-highlight: rgba(0, 0, 0, 0.05);
    --success: #2e7d32;
    --dropped: #999;
    --hist-time: #999;
}
