/* LumiNote app chrome — dark studio skin
   Safe restyle: keeps all IDs/classes and positioning the JS relies on.
   Score canvas stays light for notation readability. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3d9f94;
    --primary-dark: #2d7f76;
    --success-color: #3ecf7a;
    --error-color: #f07178;
    --selection-color: #5b9bd5;
    --ink: #e8eceb;
    --ink-soft: #b8c2c0;
    --paper: #0f1413;
    --paper-deep: #1a2220;
    --muted: #8a9693;
    --line: rgba(232, 236, 235, 0.12);
    --surface: #171d1c;
    --surface-elevated: #1e2624;
    --panel: rgba(30, 38, 36, 0.94);
    --score-paper: #f1e6d0;
    --font-ui: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(900px 500px at 10% 0%, rgba(61, 159, 148, 0.12), transparent 55%),
        radial-gradient(700px 400px at 90% 100%, rgba(61, 159, 148, 0.06), transparent 50%),
        linear-gradient(180deg, #121918 0%, #0c1010 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: auto;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.app-container {
    min-width: 800px;
    width: min(95vw, 1400px);
    max-width: 1400px;
    margin: 8px auto 100px;
    padding: 8px 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* —— Buttons —— */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(61, 159, 148, 0.14);
    color: #fff;
}

.btn-toggle {
    background: var(--paper-deep);
    color: var(--ink-soft);
}

.btn-toggle.active {
    background: var(--selection-color);
    color: #fff;
}

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

/* —— Score —— */
.score-section {
    margin-top: 0;
    margin-bottom: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.score-section.maximized {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 999;
    background: var(--paper);
}

.score-section.maximized #score-wrapper {
    height: 100vh;
    border-radius: 0;
    border: none;
    resize: none;
}

#score-wrapper {
    position: relative;
    background: var(--score-paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    resize: both;
    min-height: 420px;
    max-height: none;
    height: calc(100vh - 180px);
    width: 100%;
    min-width: 400px;
}

#score-container {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    padding: 20px 40px 20px 20px;
    height: 100%;
    background: var(--score-paper);
}

#verovio-svg-output {
    display: inline-block;
    width: max-content;
}

#score-container.linear-view {
    scrollbar-width: thin;
}

#score-container.linear-view::-webkit-scrollbar {
    height: 12px;
}

#score-container.linear-view::-webkit-scrollbar-track {
    background: var(--paper-deep);
}

#score-container.linear-view::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 6px;
}

#score-container.selection-mode {
    cursor: crosshair !important;
}

#score-container.pan-mode {
    cursor: grab;
}

#score-container.is-panning {
    cursor: grabbing !important;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(26, 107, 99, 0.25));
    border-radius: 10px 10px 0 0;
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.resize-handle:hover {
    background: linear-gradient(to bottom, transparent, rgba(26, 107, 99, 0.45));
}

.resize-handle::before {
    content: '';
    width: 40px;
    height: 3px;
    background: rgba(26, 107, 99, 0.55);
    border-radius: 2px;
    box-shadow: 0 3px 0 rgba(26, 107, 99, 0.55), 0 6px 0 rgba(26, 107, 99, 0.55);
}

/* Note highlighting (keep semantics) */
.highlighted-selection {
    fill: rgba(30, 77, 140, 0.55) !important;
    stroke: var(--selection-color) !important;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.highlighted-correct {
    fill: var(--success-color) !important;
    stroke: #1f7a42 !important;
    transition: fill 0.3s ease, stroke 0.3s ease;
    animation: correctFlash 0.4s ease-out;
}

@keyframes correctFlash {
    0% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

.highlighted-wrong,
.highlighted-wrong * {
    fill: var(--error-color) !important;
    stroke: #b33a3a !important;
    transition: fill 0.2s ease, stroke 0.2s ease;
    animation: wrongFlash 0.4s ease-out;
}

@keyframes wrongFlash {
    0%, 100% { filter: drop-shadow(0 0 4px var(--error-color)); }
    50% { filter: drop-shadow(0 0 8px var(--error-color)); }
}

.chord-note-played {
    fill: #8fd4a4 !important;
    stroke: #2e8b57 !important;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.highlighted-playback {
    fill: rgba(30, 77, 140, 0.65) !important;
    stroke: #163a6b !important;
}

.measure-cursor {
    position: absolute;
    width: 3px;
    height: 100px;
    display: none;
    z-index: 9999;
    pointer-events: none;
    background: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(61, 159, 148, 0.35);
    border-radius: 1px;
    opacity: 0.95;
}

.selection-box {
    position: fixed;
    border: 2px dashed var(--selection-color);
    background: rgba(30, 77, 140, 0.15);
    display: none;
    z-index: 10000;
    pointer-events: none;
}

.loop-bar {
    position: absolute;
    background-color: rgba(30, 77, 140, 0.18);
    border: 1px solid rgba(30, 77, 140, 0.4);
    border-radius: 2px;
    height: 15px;
    display: none;
    z-index: 2000;
    pointer-events: none;
}

.selection-box-active {
    position: absolute;
    border: 2px dashed var(--selection-color);
    background-color: rgba(30, 77, 140, 0.15);
    pointer-events: none;
    z-index: 9999;
}

.selected-note {
    fill: #1e90ff !important;
    stroke: #0057c8 !important;
    stroke-width: 2.5px !important;
}

.selection-mode,
.selection-mode * {
    cursor: crosshair !important;
}

/* —— Stats —— */
.stats-panel {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1001;
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    cursor: default;
    margin-top: 0;
}

.stats-panel.dragging {
    opacity: 0.8;
    cursor: grabbing;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    border-left: 3px solid var(--line);
    text-align: center;
}

.stat-card.success { border-left-color: var(--success-color); }
.stat-card.error { border-left-color: var(--error-color); }
.stat-card.info { border-left-color: var(--primary-color); }

.stat-card h4 {
    margin: 0;
    color: var(--muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    font-weight: 600;
}

.stat-card .value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

/* —— Progress info —— */
.progress-info {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: var(--panel);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 16px;
    cursor: default;
}

.progress-info.dragging {
    opacity: 0.8;
    cursor: grabbing;
}

.progress-info p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    white-space: nowrap;
}

.progress-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-info span {
    color: var(--ink);
    font-weight: 500;
    font-family: ui-monospace, Consolas, monospace;
}

/* —— Learning disclaimer —— */
.learning-disclaimer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1001;
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    max-width: 350px;
    font-size: 13px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-left-color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.45;
}

.learning-disclaimer.collapsed {
    max-width: 50px;
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.learning-disclaimer.collapsed .disclaimer-content {
    display: none;
}

.learning-disclaimer.collapsed .disclaimer-icon {
    font-size: 20px;
    margin-right: 0;
}

.disclaimer-icon {
    font-size: 16px;
    margin-right: 6px;
}

.disclaimer-content strong {
    color: var(--ink);
    font-weight: 600;
}

/* —— Device status (lives in left sidebar) —— */
.device-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(61, 159, 148, 0.1);
    border-radius: 2px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary-color);
    margin: 4px 0 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.device-status.connected {
    background: rgba(62, 207, 122, 0.1);
    border-left-color: var(--success-color);
}

.device-status.error {
    background: rgba(240, 113, 120, 0.1);
    border-left-color: var(--error-color);
}

.device-status.warning {
    background: rgba(200, 150, 40, 0.14);
    border-left-color: #c89628;
}

.device-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-status .icon {
    font-size: 1.1rem;
    line-height: 1;
}

.device-status h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.device-status.connected h4 {
    color: var(--success-color);
}

.device-info-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
    word-break: break-word;
}

.device-status.connected .device-info-text {
    color: var(--ink-soft);
}

#midi-device-selector {
    display: none;
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 2px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-family: var(--font-ui);
    width: 100%;
    max-width: none;
    background: var(--paper-deep);
    color: var(--ink);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer .home-link {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    justify-content: center;
}

.app-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 2px;
}

.app-identity .app-name {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-identity .app-version {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

/* —— File sidebar —— */
.file-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--surface-elevated);
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45);
    border-right: 1px solid var(--line);
    z-index: 2000;
    transition: transform 0.3s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.file-sidebar.collapsed {
    transform: translateX(-100%);
}

.file-sidebar-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 2px 2px 0;
    padding: 12px 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, padding 0.2s ease;
}

.file-sidebar-toggle:hover {
    background: var(--primary-dark);
    padding-right: 10px;
}

.file-sidebar.collapsed + .file-sidebar-toggle {
    left: 0;
}

.file-sidebar:not(.collapsed) + .file-sidebar-toggle {
    left: 250px;
}

.file-sidebar h3 {
    margin: 0 0 10px 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.file-sidebar .button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-sidebar .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 0.9rem;
}

#file-input {
    display: none;
}

/* —— Saved-score library (right) —— */
.library-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--surface-elevated);
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.45);
    border-left: 1px solid var(--line);
    z-index: 2000;
    transition: transform 0.3s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.library-sidebar.collapsed {
    transform: translateX(100%);
}

.library-sidebar-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 2px 0 0 2px;
    padding: 12px 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, padding 0.2s ease;
}

.library-sidebar-toggle:hover {
    background: var(--primary-dark);
    padding-left: 10px;
}

.library-sidebar.collapsed + .library-sidebar-toggle {
    right: 0;
}

.library-sidebar:not(.collapsed) + .library-sidebar-toggle {
    right: 250px;
}

.library-sidebar h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.library-hint,
.library-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.library-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.library-item {
    display: flex;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper-deep);
}

.library-item.active {
    border-color: rgba(61, 159, 148, 0.65);
    background: rgba(61, 159, 148, 0.14);
}

.library-item-load {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
}

.library-item-load:hover {
    color: #fff;
}

.library-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.library-item-meta {
    font-size: 0.72rem;
    color: var(--muted);
}

.library-item-delete {
    flex-shrink: 0;
    width: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    border-radius: 0 2px 2px 0;
}

.library-item-delete:hover {
    background: rgba(240, 113, 120, 0.18);
    color: var(--error-color);
}

.library-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.library-actions .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.file-name {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 15px;
    background: var(--paper-deep);
    border-radius: 2px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* —— Icon control bar (from shared, restyled) —— */
.icon-control-bar {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    z-index: 1001;
    border: 1px solid var(--line);
    user-select: none;
}

.icon-control-bar .icon-group {
    display: flex;
    flex-direction: row !important;
    gap: 6px;
    align-items: center;
    padding-right: 10px;
    margin-right: 6px;
    border-right: 1px solid var(--line);
    position: relative;
}

.icon-control-bar .icon-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.control-icon {
    background: var(--paper-deep);
    border: 1px solid var(--line);
    font-size: 20px;
    padding: 7px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    color: var(--ink-soft);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.control-icon[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.control-icon:hover:not([disabled]) {
    background: rgba(61, 159, 148, 0.16);
    border-color: rgba(61, 159, 148, 0.45);
    color: var(--ink);
}

.control-icon:active:not([disabled]) {
    transform: translateY(1px);
}

.control-icon.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.control-icon::after {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.control-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--font-ui);
    border-radius: 2px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    opacity: 1;
    z-index: 1000;
}

.tempo-group {
    position: relative;
}

.tempo-popup {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-elevated);
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 2px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    width: 200px;
    z-index: 1001;
    color: var(--ink);
}

.tempo-popup.visible {
    display: block;
}

.tempo-popup[aria-hidden="true"] {
    display: none !important;
}

.tempo-popup input[type="range"] {
    width: 100%;
}

.tempo-value {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 6px;
}

/* —— Cookie banner (self-contained) —— */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    color: var(--ink);
    padding: 16px 20px;
    z-index: 10000;
    display: none;
    border-top: 1px solid var(--line);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 220px;
}

.cookie-text h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-family: var(--font-display);
}

.cookie-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-text a {
    color: #7ec9c0;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    border: none;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #fff;
}

.cookie-btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* —— What's new modal —— */
.whats-new-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.whats-new-modal.is-open {
    display: flex;
}

.whats-new-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: min(90vh, 720px);
    overflow: auto;
    padding: 28px 28px 24px;
    background: var(--surface-elevated);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

.whats-new-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.whats-new-close:hover {
    color: var(--ink);
    border-color: var(--line);
    background: var(--paper-deep);
}

.whats-new-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.whats-new-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.whats-new-date {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--muted);
}

.whats-new-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whats-new-list li {
    padding: 12px 14px;
    background: rgba(61, 159, 148, 0.08);
    border-left: 3px solid var(--primary-color);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.whats-new-list strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-weight: 700;
}

.whats-new-got-it {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.whats-new-got-it:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

body.whats-new-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .icon-control-bar {
        gap: 8px;
        padding: 6px 10px;
    }

    .control-icon {
        font-size: 18px;
        padding: 6px;
    }

    .icon-control-bar .icon-group {
        gap: 4px;
        padding-right: 6px;
        margin-right: 4px;
    }
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
}
