:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.65);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* 테마 정의: 각 테마는 body에 클래스로 적용됨 */
body.theme-github {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.75);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #1f6feb;
    --accent-hover: #388bfd;
}

body.theme-dracula {
    --bg-color: #282a36;
    --card-bg: rgba(33, 34, 44, 0.7);
    --text-primary: #f8f8f2;
    --text-secondary: #9aa0c9;
    --accent-color: #bd93f9;
    --accent-hover: #a679f2;
}

body.theme-nord {
    --bg-color: #2e3440;
    --card-bg: rgba(59, 66, 82, 0.7);
    --text-primary: #eceff4;
    --text-secondary: #aeb6c3;
    --accent-color: #88c0d0;
    --accent-hover: #81a1c1;
}

body.theme-catppuccin {
    --bg-color: #1e1e2e;
    --card-bg: rgba(49, 50, 68, 0.7);
    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --accent-color: #89b4fa;
    --accent-hover: #74c7ec;
}

body.theme-light {
    --bg-color: #eef2f7;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* 밝은 강조색 테마의 버튼/체크 텍스트 대비 보정 */
body.theme-nord .btn-primary,
body.theme-catppuccin .btn-primary {
    color: #111827;
}
body.theme-nord .checkbox-label input:checked + .custom-checkbox::after,
body.theme-catppuccin .checkbox-label input:checked + .custom-checkbox::after {
    border-color: #1e1e2e;
}

/* 라이트 테마 가독성 보정 */
body.theme-light .glass-card {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.theme-light .display-section {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.06);
}
body.theme-light .time-display {
    color: var(--text-primary);
    text-shadow: none;
}
body.theme-light input[type="number"],
body.theme-light select,
body.theme-light .volume-control {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}
body.theme-light select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
body.theme-light .btn-secondary {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
}
body.theme-light .btn-secondary:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.14);
}
body.theme-light .btn-preset {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}
body.theme-light input[type="file"] {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 23, 42, 0.2);
}
body.theme-light .visitor-badge {
    border-color: rgba(15, 23, 42, 0.08);
}
body.theme-light .visitor-value {
    color: var(--text-primary);
}
body.theme-light .custom-checkbox {
    border-color: rgba(15, 23, 42, 0.3);
}
body.theme-light .pulse-anim {
    animation: textPulseLight 1s infinite alternate;
}
@keyframes textPulseLight {
    from { color: #0f172a; text-shadow: none; }
    to { color: #d97706; text-shadow: 0 0 20px rgba(217, 119, 6, 0.4); }
}

/* 테마 선택 UI */
.theme-picker-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
body.theme-light .theme-picker-btn {
    border-color: rgba(15, 23, 42, 0.08);
}
.theme-picker-btn:hover {
    transform: scale(1.08);
}

.theme-panel {
    position: fixed;
    top: 4.2rem;
    left: 1rem;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.7rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.25s ease-out;
}
body.theme-light .theme-panel {
    border-color: rgba(15, 23, 42, 0.08);
}
.theme-panel.open {
    display: flex;
}
.theme-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 120px;
}
.theme-option:hover {
    background: rgba(128, 128, 128, 0.15);
}
.theme-option.active {
    border-color: var(--accent-color);
}
.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    flex-shrink: 0;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 0; /* Add padding for smaller screens */
}

body::before,
body::after {
    content: '';
    flex: 1;
}

/* Background animated orbs */
.background-orbs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    flex-shrink: 0;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.glow-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.display-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px inset rgba(255, 255, 255, 0.05);
}

.time-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -2px;
}

.status-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-inputs, .repeat-inputs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-preview {
    margin-left: auto;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-preview:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

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

body.theme-light .btn-preview {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1e293b;
}

.preset-buttons {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.stepper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: stretch;
}

.btn-step {
    width: 40px;
    flex: 1;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.55rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-step:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

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

body.theme-light .btn-step {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}

.btn-preset {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preset:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-color);
}

input[type="number"], select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input[type="number"] {
    width: 80px;
    text-align: center;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

select {
    flex: 1;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

input:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

input:disabled, select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File Upload Styles */
.file-upload-wrapper {
    margin-top: 0.8rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

input[type="file"] {
    background: rgba(15, 23, 42, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

input[type="file"]::file-selector-button {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    margin-right: 1rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: background 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: var(--accent-hover);
}

.saved-audio-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.saved-audio-row.visible {
    display: flex;
}

.saved-audio-name {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.btn-clear-audio {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
}

.btn-clear-audio:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

body.theme-light .btn-clear-audio {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
}

/* Volume Control Styles */
.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-icon {
    font-size: 1.2rem;
    user-select: none;
}

input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    margin-top: -7px;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"]:focus {
    outline: none;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-left: 1rem;
}

.checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .custom-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

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

.pulse-anim {
    animation: textPulse 1s infinite alternate;
}

@keyframes textPulse {
    from { color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    to { color: #fbbf24; text-shadow: 0 0 30px rgba(251, 191, 36, 0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Visitor Badge */
.visitor-badge {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.visitor-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.visitor-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.visitor-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.visitor-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 600px) {
    .visitor-badge {
        top: 0.6rem;
        right: 0.6rem;
        padding: 0.5rem 0.7rem;
        border-radius: 12px;
    }
    .visitor-label {
        font-size: 0.65rem;
    }
    .visitor-value {
        font-size: 0.8rem;
    }
    .glow-text {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .time-display {
        font-size: 3.5rem;
    }
    .input-group label {
        font-size: 0.8rem;
    }
    input[type="number"], select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    .btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .glow-text {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .time-display {
        font-size: 2.8rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    input[type="number"] {
        width: 65px;
    }
    .time-inputs, .repeat-inputs {
        flex-wrap: wrap;
    }
    .action-buttons {
        flex-direction: column;
    }
}

.popup-toolbar {
    display: none;
}

.btn-popup-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup-open:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

body.theme-light .btn-popup-open {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.03);
}

.pip-placeholder {
    display: none;
    text-align: center;
    padding: 2.5rem 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.pip-placeholder.visible {
    display: block;
}

/* Compact timer window: no address bar (Picture-in-Picture) */
html.popup-mode {
    background: var(--bg-color);
}

body.popup-mode {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color);
}

body.popup-mode::before,
body.popup-mode::after {
    display: none;
}

body.popup-mode .background-orbs,
body.popup-mode .visitor-badge,
body.popup-mode header,
body.popup-mode .btn-popup-open,
body.popup-mode .theme-picker-btn,
body.popup-mode .theme-panel {
    display: none !important;
}

body.popup-mode .container {
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0;
    animation: none;
}

body.popup-mode .glass-card {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0.7rem 0.9rem 0.85rem;
    background: var(--bg-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
}

body.popup-mode .popup-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.35rem;
}

body.popup-mode .btn-popup-settings {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
}

body.popup-mode .btn-popup-settings:hover,
body.popup-mode .btn-popup-settings.active {
    background: rgba(59, 130, 246, 0.28);
    border-color: var(--accent-color);
}

body.popup-mode .display-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
    background: transparent;
    border: none;
}

body.popup-mode .time-display {
    font-size: clamp(3.2rem, 22vw, 5.4rem);
}

body.popup-mode .status-text {
    margin-top: 0.4rem;
    font-size: 0.88rem;
}

body.popup-mode.popup-settings-hidden .controls-grid {
    display: none;
}

body.popup-mode .controls-grid {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

body.popup-mode .action-buttons {
    gap: 0.6rem;
}

body.popup-mode .btn {
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

body.theme-light.popup-mode .btn-popup-settings {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.06);
}
