/* === ВАШ СЕКУНДОМЕР И МАГИЯ (БЕЗ ИЗМЕНЕНИЙ) === */
* { margin: 0; padding: 0; box-sizing: border-box; }
 :root {
            --bg-color: #000000;
            --text-color: #ffffff;
            --orange: #ff9500;
            --blue: #0a84ff;
            --btn-dark: #333333;
            --btn-green-bg: #1c3016;
            --btn-green-text: #34c759;
            --btn-red-bg: #331111;
            --btn-red-text: #ff3b30;
            --tab-bg: #1c1c1e;
            --tab-active-bg: #3a3a3c;
            --tab-inactive: #8e8e93;
            --border-color: #2c2c2e;
            
            --tick-white: #ffffff;
            --tick-gray: #555555;
            
            --clock-size: 320px;
        }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: pan-x pinch-zoom; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",  "SF Pro", "Helvetica Neue", sans-serif; background-color: #000; color: #fff; min-height: 100vh; display: flex; justify-content: center; }
.app { width: 100%; max-width: 414px; height: 100vh; display: flex; flex-direction: column; padding: 0 20px; position: relative; overflow: hidden; }
body.guest-mode-hidden .remote-panel, body.guest-mode-hidden .secret-gate, body.guest-mode-hidden .licensed-header, body.guest-mode-hidden .templates-section, body.guest-mode-hidden .section:not(.stopwatch-only) { display: none !important; }
body.guest-mode-hidden .tab-bar .tab { opacity: 1 !important; pointer-events: auto !important; }
body.guest-mode-hidden .tab#tabAlarms, body.guest-mode-hidden .tab#tabTimers { opacity: 1; pointer-events: auto; }
body.guest-mode-hidden .stopwatch-tab { opacity: 1; pointer-events: auto; }
.order-panel { margin-top: 15px; padding: 15px; background-color: #2c2c2e; border-radius: 10px; display: none; }
.order-panel.visible { display: block; }
.order-header { color: #f5a623; font-size: 14px; margin-bottom: 10px; }
.order-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 13px; color: #fff; }
.order-content div { background-color: #1c1c1e; padding: 6px; border-radius: 5px; text-align: center; }
.timer-display { display: flex; justify-content: center; align-items: center; padding-top: 150px; padding-bottom: 90px; position: relative; cursor: default; user-select: none; }
.time { font-size: 90px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.controls { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; margin-bottom: 15px; z-index: 10; border-bottom: 0.5px solid #333; padding-bottom: 15px; }
.btn { 
    width: 80px !important; 
    height: 80px !important; 
    flex-shrink: 0; 
    border-radius: 50%; 
    border: none; 
    font-weight: 400; 
    cursor: pointer; 
    transition: opacity 0.2s, transform 0.1s; 
    -webkit-tap-highlight-color: transparent; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Вернули оригинальный iOS размер */
    font-size: 17px !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    overflow: hidden;
    padding: 0 !important;
}
.btn:active { transform: scale(0.95); opacity: 0.8; }
.btn-lap { background: #191919; color: #808080; }
.btn-reset.active-reset {
    background: #3a3a3c;
    color: #ffffff;
}
.btn-lap.active-lap {
    color: #ffffff;
    background: #3a3a3c;
}
.btn-reset { background: #191919; color: #ffffff;}
.btn-start { background: rgba(52, 199, 89, 0.2); color: #34C759;  }
.btn-stop { background: rgba(255, 59, 48, 0.2); color: #ff6b6b; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: #555; }
.dot.active { background-color: #fff; }
.laps-wrapper { flex: 1 1 auto; overflow-y: auto; touch-action: pan-y; margin-top: -35px; margin-bottom: 100px; min-height: 0; scrollbar-width: thin; scrollbar-color: #555 #1c1c1e; }
.laps-wrapper::-webkit-scrollbar { width: 4px; }
.laps-wrapper::-webkit-scrollbar-track { background: #1c1c1e; }
.laps-wrapper::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }
.laps-container { display: flex; flex-direction: column; width: 100%; }
.lap-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 0.5px solid #333; font-size: 17px; }
.lap-name, .lap-time { color: #fff; }
.lap-time { font-variant-numeric: tabular-nums; }
.lap-row.fastest .lap-name, .lap-row.fastest .lap-time { color: #4ade80; }
.lap-row.slowest .lap-name, .lap-row.slowest .lap-time { color: #f87171; }
.tab-bar { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: calc(100% - 5px); max-width: 374px; background-color: #181818; border-radius: 80px; display: flex; justify-content: space-around; align-items: center; padding: 2px 0; z-index: 100; }
.tab { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 8px 0; border-radius: 90px; -webkit-tap-highlight-color: transparent; position: relative; }
.tab.stopwatch-tab { background-color: #3a3a3c; }
.tab.stopwatch-tab .custom-icon { filter: brightness(1) invert(0.3) sepia(1) hue-rotate(344deg) saturate(5); }
.tab.stopwatch-tab .tab-label { color: #fbb051; }
.custom-icon { background-size: contain; background-repeat: no-repeat; background-position: center; transition: none; }
.world-icon { width: 20px; height: 20px; filter: drop-shadow(0 0 0.1px white) drop-shadow(0 0 0.1px white); background-image: url('world.png'); }
.alarms-icon { width: 20px; height: 20px; filter: drop-shadow(0 0 0.1px white) drop-shadow(0 0 0.1px white); background-image: url('alarms.png'); }
.stopwatch-icon { width: 20px; height: 20px; filter: drop-shadow(0 0 0.1px white) drop-shadow(0 0 0.1px white); background-image: url('stopwatch.png'); }
.timers-icon { width: 20px; height: 20px; filter: drop-shadow(0 0 0.1px white) drop-shadow(0 0 0.1px white); background-image: url('timers.png'); }
.tab-label { font-size: 9px; color: #ffffff; text-shadow: 0 0 0.1px white, 0 0 0.1px white;}
.remote-panel { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; z-index: 200; overflow-y: auto; touch-action: pan-y; padding: 20px; box-sizing: border-box; }
.remote-panel.visible { display: block; }
.close-button {
    position: sticky;
    top: 15px;
    float: right;
    width: 40px;
    height: 40px;
    background-color: #2c2c2e;
    color: #f5a623;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 250;
    border: 1px solid #3a3a3c;
    margin-bottom: 10px;
}
.close-button:active { background-color: #3a3a3c; }
.section { background-color: #1c1c1e; border-radius: 15px; padding: 20px; margin-bottom: 20px; border: 1px solid #38383a; }
h2 { font-size: clamp(18px, 4vw, 22px); margin: 0px 0 10px; color: #fff; }
.option-group, .checkbox-group, .save-template { display: flex; flex-wrap: wrap; }
.option-group { gap: 30px; margin-bottom: 20px; }
.checkbox-group { gap: 20px; margin: 15px 0; }
.save-template { gap: 10px; margin-top: 12px; }
.option-group label, .checkbox-group label, .random-option label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: clamp(14px, 3vw, 16px); }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.random-option { margin-top: 15px; padding-top: 15px; border-top: 1px solid #38383a; }
.random-count { display: flex; align-items: center; gap: 10px; margin-left: 26px; }
.random-count label { font-size: clamp(12px, 2.5vw, 14px); color: #8e8e93; margin-bottom: 0; }
.random-count input, .input-group input, .input-group select, #templateNameInput { background-color: #2c2c2e; border: 1px solid #3a3a3c; border-radius: 10px; padding: 8px 12px; color: white; font-size: 14px; outline: none; }
.random-count input { width: 80px; }
.input-group input, .input-group select { width: 100%; padding: 12px; font-size: clamp(14px, 3vw, 16px); }
.random-count input:focus, .input-group input:focus, .input-group select:focus, .language-selector select:focus { border-color: #f5a623; }
.mode-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mode-btn { padding: 12px 8px; background-color: #2c2c2e; border: 1px solid #3a3a3c; border-radius: 10px; color: #fff; text-align: center; cursor: pointer; transition: 0.2s; font-size: clamp(12px, 2.5vw, 14px); }
.mode-btn.active { background-color: #f5a623; color: #000; border-color: #f5a623; }
.card-panel, .search-panel { display: none; margin-top: 20px; }
.card-panel.visible, .search-panel.visible { display: block; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; color: #8e8e93; margin-bottom: 5px; font-size: clamp(12px, 2.5vw, 14px); }
.short-numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.short-numbers-grid .input-group { margin-bottom: 0; }
.info-text { margin-top: 10px; padding: 10px; background-color: #2c2c2e; border-radius: 8px; color: #f5a623; font-size: clamp(13px, 2.8vw, 15px); text-align: center; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.templates-section { margin-bottom: 20px; padding: 10px 16px; }
.templates-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.templates-header h2 { margin: 0; font-size: 18px; font-weight: 600; flex-shrink: 0; }
#toggleTemplatesBtn { background: #ff9f0a; border: none; padding: 6px 16px; border-radius: 20px; color: #000; font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; margin-left: auto; }
.templates-list { display: none; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 200px; overflow-y: auto; }
.templates-list.visible { display: flex; }
.template-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.1); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.template-name { font-size: 14px; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-delete { color: #ff3b30; font-size: 18px; cursor: pointer; padding: 0 8px; }
#templateNameInput { flex: 2; min-width: 0; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
#saveTemplateBtn { flex: 1; background: #ff9f0a; border: none; border-radius: 8px; padding: 10px 16px; color: #000; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.language-selector { margin: 20px 0; padding: 15px; background-color: #1c1c1e; border-radius: 15px; border: 1px solid #38383a; }
.language-selector select { width: 100%; padding: 12px; background-color: #2c2c2e; border: 1px solid #3a3a3c; border-radius: 10px; color: white; font-size: 16px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.language-selector label { display: block; color: #8e8e93; margin-bottom: 8px; font-size: 14px; }
.status-bar { position: fixed; top: 0; left: 0; width: 100%; background-color: #000; color: #fff; font-size: 14px; font-weight: 500; z-index: 200; display: none; padding: 6px 15px; justify-content: space-between; align-items: center; }
.status-bar.visible { display: flex; }
.statusbar-icon { width: 68px; height: 20px; background-image: url('statusbarwh.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.app.with-status-bar { padding-top: 40px; }
.voice-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; z-index: 300; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.voice-screen.visible { pointer-events: auto; opacity: 1; }
.voice-info { color: rgba(255,255,255,0.1); font-size: 36px; margin-bottom: 20px; }
.voice-subinfo { color: rgba(255,255,255,0.1); font-size: 20px; }
.dots { position: relative; }
.guest-typing-hint { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); min-height: 16px; font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.85); white-space: nowrap; pointer-events: none; text-align: center; letter-spacing: .2px; }
.secret-gate { display: none; padding: 16px 0 8px; }
.secret-gate.visible, .secret-page.active { display: block; }
.secret-page { display: none; }
.secret-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; opacity: .7; margin-bottom: 10px; text-align: center; }
.secret-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.secret-subtitle { font-size: 14px; line-height: 1.45; color: #c7c7cc; text-align: center; margin-bottom: 16px; }
.secret-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.auth-main-btn, .auth-main-btn-outline, .auth-back-btn, .copy-row button, .logout-mini-btn, .text-link-btn { border: 0; border-radius: 12px; cursor: pointer; }
.auth-main-btn, .auth-main-btn-outline, .auth-back-btn { width: 100%; min-height: 46px; font-size: 15px; font-weight: 600; }
.auth-main-btn { background: #ffffff; color: #000000; }
.auth-main-btn-outline { background: #1c1c1e; color: #ffffff; border: 1px solid #3a3a3c; }
.auth-back-btn { margin-top: 10px; background: transparent; color: #8e8e93; border: 1px solid #2c2c2e; }
.secret-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; text-align: center; }
.secret-contacts a { color: #7fc8ff; text-decoration: none; font-size: 14px; }
.stack-form { display: flex; flex-direction: column; gap: 12px; }
.stack-form input, .copy-row input { width: 100%; box-sizing: border-box; min-height: 40px; border-radius: 12px; border: 1px solid #2c2c2e; background: #111113; color: #fff; padding: 0 14px; font-size: 14px; }
.check-line { display: flex; gap: 10px; align-items: center; color: #c7c7cc; font-size: 13px; line-height: 1.45; }
.text-link-btn { background: transparent; color: #7fc8ff; padding: 0; font-size: inherit; text-decoration: underline; }
.guest-hint-container { display: flex; justify-content: center; margin-top: 8px; margin-bottom: 16px; }
.pay-price { text-align: center; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.pay-qr-wrap { display: flex; justify-content: center; margin: 16px 0; }
.pay-qr-wrap img { width: 220px; height: 220px; border-radius: 16px; background: #fff; padding: 8px; }
.secret-note { margin: 10px 0 14px; color: #b3b3b8; font-size: 13px; text-align: center; }
.secret-message { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; background: #1f2a38; color: #d9ecff; }
.secret-message.visible { display: block; }
.telegram-widget-box { display: flex; justify-content: center; margin: 16px 0 8px; }
.licensed-header { display: none; padding: 10px 0 16px; border-bottom: 1px solid #2c2c2e; margin-bottom: 16px; }
.licensed-header.visible { display: block; }
#licensedPanel.hidden { display: none; }
.hidden { display: none !important; }
.license-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.license-caption { font-size: 13px; color: #c7c7cc; }
.logout-mini-btn { background: transparent; color: #8e8e93; border: 1px solid #2c2c2e; min-height: 28px; font-size: 12px; padding: 0 10px; }
.mini-label { display: block; margin: 12px 0 6px; color: #8e8e93; font-size: 12px; }
.copy-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.copy-row button { min-height: 44px; padding: 0 12px; background: #2c2c2e; color: #fff; font-size: 13px; }
.doc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.doc-modal.visible { display: flex; }
.doc-modal-card { width: min(680px, 100%); max-height: 85vh; overflow: auto; background: #111113; border: 1px solid #2c2c2e; border-radius: 18px; padding: 20px; color: #fff; position: relative; }
.doc-close { position: absolute; right: 14px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: #2c2c2e; color: #fff; font-size: 20px; }
.doc-modal-card h3 { margin: 0 0 12px; }
.doc-modal-card p { color: #d1d1d6; line-height: 1.55; margin: 0 0 10px; }
.cryptotext-hint { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 10px; background-color: #2c2c2e; border-radius: 12px; }
.cryptotext-hint-img { max-width: 100%; height: auto; border-radius: 8px; background: #fff; padding: 8px; }
.cryptotext-images { margin-top: 10px; text-align: center; }
.cryptotext-img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; }
.cryptotext-img:last-child { margin-bottom: 0; }
.biometry-setup-btn { margin-left: 12px; padding: 6px 12px; border-radius: 8px; background-color: #007aff; color: white; border: none; cursor: pointer; font-size: 14px; }
.biometry-prompt { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.trust-device-row { display: flex; gap: 12px; margin: 15px 0; flex-wrap: wrap; }
.trust-device-btn { flex: 1; background-color: #007aff; border: none; padding: 12px 16px; border-radius: 12px; color: white; font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; }
.trust-device-btn:active { opacity: 0.7; transform: scale(0.98); }
.license-top { display: none; margin-bottom: 20px; padding: 0 0 8px; border-bottom: 1px solid #2c2c2e; }
.license-top.visible { display: block; }
.instruction-link-wrapper { margin-top: 12px; text-align: center; }
.instruction-link { font-size: 14px; color: #f5a623; text-decoration: underline; cursor: pointer; display: inline-block; padding: 4px 8px; }
.viewer-links { display: none; margin-top: 20px; padding: 10px 0 0; border-top: 1px solid #2c2c2e; }
.viewer-links.visible { display: block; }
.instruction-wrapper { display: flex; justify-content: center; gap: 16px; margin: 20px 0 10px; }
.instruction-btn { background-color: #2c2c2e; border: 1px solid #3a3a3c; border-radius: 30px; color: #fff; font-size: 16px; font-weight: 500; padding: 12px 24px; cursor: pointer; transition: background-color 0.2s, transform 0.1s; width: auto; display: inline-block; }
.check-line { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.check-line input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.check-line span { flex: 1; }
.instruction-btn:active { background-color: #3a3a3c; transform: scale(0.96); }

/* ========================================================= */
/* СТИЛИ ДЛЯ ИНТЕРФЕЙСА НОВЫХ ВКЛАДОК (ОРИГИНАЛ IOS CLOCK)   */
/* ========================================================= */

/* Логика активной вкладки (Оранжевый цвет iOS) */
#app .tab.stopwatch-tab:not(.ios-active-tab) { background-color: transparent !important; }
#app .tab.stopwatch-tab:not(.ios-active-tab) .tab-label { color: #ffffff !important; }
#app .tab.stopwatch-tab:not(.ios-active-tab) .custom-icon { filter: none !important; }
#app .tab.ios-active-tab { background-color: #3a3a3c !important; }
#app .tab.ios-active-tab .tab-label { color: #FF9F0A !important; }
#app .tab.ios-active-tab .custom-icon { filter: brightness(1) invert(0.3) sepia(1) hue-rotate(344deg) saturate(5) drop-shadow(0 0 0.1px white) drop-shadow(0 0 0.1px white) !important; }

/* Переопределяем отступы для аналоговых часов, чтобы они помещались на экране */
.timer-display.analog-mode {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    height: 100%;
    align-items: center; 
}


/* ОВЕРЛЕИ, ПЕРЕКРЫВАЮЩИЕ СЕКУНДОМЕР (Слои) */
.ios-overlay {
    --ios-px: calc(min(100vw, 414px) / 375); /* МАГИЯ МАСШТАБИРОВАНИЯ ДЛЯ ЛЮБЫХ ЭКРАНОВ */
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 50; display: none; flex-direction: column; box-sizing: border-box;
}
.ios-overlay.active { display: flex; }

/* Контейнер для скроллинга с эффектом плавного затемнения (Fade-out) снизу */
.ios-scroll-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
    display: block; /* ВАЖНО: возвращаем обычный блок, чтобы ничего не плющило */
}

/* Шапка */
.ios-header { display: flex; justify-content: space-between; padding: 0 calc(16 * var(--ios-px)); min-height: calc(65 * var(--ios-px)); align-items: center; flex-shrink: 0; }

/* Кнопки "Edit" и "+" - Серый фон (овалы и кружки) как на фото */
.ios-header-btn { background: #1b1b1c; color: #FFFFFF; border: none; border-radius: calc(18 * var(--ios-px)); font-size: calc(15 * var(--ios-px)); font-weight: 500; padding: calc(11 * var(--ios-px)) calc(12 * var(--ios-px)); cursor: pointer; }
.ios-header-btn.add { width: calc(40 * var(--ios-px)); height: calc(40 * var(--ios-px)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(30 * var(--ios-px)); font-weight: 300; line-height: 0; padding: 0; padding-bottom: calc(2 * var(--ios-px)); }

/* Уменьшенные главные заголовки */
.ios-title { font-size: calc(30 * var(--ios-px)); font-weight: 700; padding: calc(6 * var(--ios-px)) calc(16 * var(--ios-px)) calc(8 * var(--ios-px)); letter-spacing: calc(0.5 * var(--ios-px)); margin: 0; flex-shrink: 0; }

/* Разделительные полосы (тонкие 0.5px) */
.ios-separator { height: 0.5px; margin-bottom: 10px; background-color: #38383A; margin-left: calc(16 * var(--ios-px)); margin-right: calc(16 * var(--ios-px)); flex-shrink: 0; }
.ios-separator-full { height: 0.5px; background-color: #38383A; margin-left: calc(16 * var(--ios-px)); margin-right: calc(16 * var(--ios-px)); flex-shrink: 0; margin-bottom: 10px; }



/* Убираем заголовок (он не используется, но если есть – скрываем) */
#quickInputModal .modal-header {
    display: none;
}

/* Стили для кнопок: без фона, без обводки, полупрозрачные */
.quick-modal-menu-btn,
.quick-modal-apply-btn,
.quick-modal-close-custom {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 1px 1px;
    transition: color 0.2s, opacity 0.2s;
    letter-spacing: 0.5px;
}
.quick-modal-menu-btn:hover,
.quick-modal-apply-btn:hover,
.quick-modal-close-custom:hover {
    color: rgba(255,255,255,0.9);
}
.quick-modal-close-custom {
    font-size: 20px;
    line-height: 1;
    padding: 1px 1px;
}

/* Поля ввода – полупрозрачные */
.quick-input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: background 0.2s;
    box-sizing: border-box;
}
.quick-input-field:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}
.quick-input-field::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Для select */
select.quick-input-field {
    appearance: none;
    background: rgba(255,255,255,0.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
    background-size: 16px;
}

/* Для voice и dateTime – текст */
.voice-hint {
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
}

.quick-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-modal-content {
    background: #1c1c1e;
    border-radius: 20px;
    width: 90%;
    max-width: 340px;
    padding: 20px;
    position: relative;
    border: 1px solid #3a3a3c;
}
.quick-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
}
.quick-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff9f0a;
}
.quick-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}
.quick-modal-body {
    margin-bottom: 20px;
}
.quick-modal-body .input-group {
    margin-bottom: 12px;
}
.quick-modal-body .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #8e8e93;
    font-size: 14px;
}
.quick-modal-body .input-group input, 
.quick-modal-body .input-group select {
    width: 100%;
    padding: 10px;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
}
.quick-modal-footer {
    text-align: center;
}
.quick-modal-footer button {
    background: #ff9f0a;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}


/* Новые стили для модального окна (без рамок, полупрозрачные) */
#quickInputModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Скрываем старый заголовок, если он есть */
#quickInputModal .modal-header {
    display: none;
}
/* Кнопки без заливки */
.quick-modal-menu-btn,
.quick-modal-apply-btn,
.quick-modal-close-custom {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
}
.quick-modal-close-custom {
    font-size: 20px;
    padding: 6px 6px;
}
.quick-modal-menu-btn:hover,
.quick-modal-apply-btn:hover,
.quick-modal-close-custom:hover {
    color: rgba(255,255,255,0.9);
}
/* Поля ввода полупрозрачные */
.quick-input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}
.quick-input-field:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    outline: none;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0; 
    padding-bottom: 0;
}
.modal-close {
    font-size: 28px;
    cursor: pointer;
}
.modal-body input, .modal-body select {
    width: 100%;
    padding: 10px;
    margin: 0px 0;
    border-radius: 10px;
    border: none;
}
.modal-footer {
    margin-top: 20px;
    text-align: right;
}
.btn-primary {
    background: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

/* ======================== */
/* ВКЛАДКА: МИРОВЫЕ ЧАСЫ    */
/* ======================== */

.ios-wc-row { display: flex; justify-content: space-between; align-items: center;  min-height: calc(65 * var(--ios-px)); max-height: calc(85 * var(--ios-px)); padding: 0 calc(16 * var(--ios-px)); flex-shrink: 0; }
.ios-wc-left { display: flex; flex-direction: column; justify-content: center; }
.ios-wc-offset { color: #8E8E93; font-size: calc(12 * var(--ios-px)); margin-bottom: calc(4 * var(--ios-px)); font-weight: 400; }
.ios-wc-city { font-size: calc(24 * var(--ios-px)); font-weight: 400; color: #FFF; letter-spacing: calc(0.2 * var(--ios-px)); }

/* Огромный тонкий шрифт для времени iOS */
.ios-wc-time { 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: calc(56 * var(--ios-px)); font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: calc(-1 * var(--ios-px)); margin: 0; color: #FFF; 
}

/* ======================== */
/* ВКЛАДКА: БУДИЛЬНИКИ      */
/* ======================== */
.ios-section-title { font-size: calc(17 * var(--ios-px)); font-weight: 600; padding: calc(25 * var(--ios-px)) calc(16 * var(--ios-px)) calc(8 * var(--ios-px)); display: flex; align-items: center; gap: calc(6 * var(--ios-px)); margin: 0; flex-shrink: 0; color: #FFF; }
.ios-alarm-row { display: flex; justify-content: space-between; align-items: center; height: auto; min-height: calc(75 * var(--ios-px)); max-height: calc(200 * var(--ios-px)); padding: 0 calc(16 * var(--ios-px)); flex-shrink: 0; margin-top: -5px; margin-bottom: -5px }
.ios-alarm-left { display: flex; flex-direction: column; justify-content: center; }


.ios-alarm-time { 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: calc(56 * var(--ios-px)); font-weight: 200; line-height: 1; color: #8E8E93; font-variant-numeric: tabular-nums; letter-spacing: calc(-1 * var(--ios-px)); margin: 0; 
}
.ios-alarm-time.active-alarm { color: #FFFFFF; }

/* Специальный класс для "No Alarm" */
.ios-no-alarm-time { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; font-size: calc(39 * var(--ios-px)); font-weight: 400; color: #8E8E93; line-height: 1; margin-top: 12px; letter-spacing: calc(-0.5 * var(--ios-px)); }
.ios-alarm-label { font-size: calc(13 * var(--ios-px)); font-weight: 400; color: #8E8E93; margin-bottom: 12px; margin-top: calc(4 * var(--ios-px)); }

/* Идеальный горизонтальный слайдер iOS */
.ios-switch {
    -webkit-appearance: none; appearance: none;
    width: calc(51 * var(--ios-px)) !important; min-width: calc(51 * var(--ios-px)) !important; height: calc(31 * var(--ios-px)) !important;
    background: #39393D; border-radius: calc(31 * var(--ios-px)); position: relative; outline: none; cursor: pointer; margin: 0; transition: background 0.3s ease-in-out; border: none;
}
.ios-switch::after {
    content: ''; position: absolute; top: calc(2 * var(--ios-px)); left: calc(2 * var(--ios-px)); width: calc(27 * var(--ios-px)); height: calc(27 * var(--ios-px));
    background: #FFF; border-radius: 50%; transition: transform 0.3s ease-in-out; box-shadow: 0 calc(3 * var(--ios-px)) calc(8 * var(--ios-px)) rgba(0,0,0,0.15), 0 calc(3 * var(--ios-px)) calc(1 * var(--ios-px)) rgba(0,0,0,0.06);
}
.ios-switch:checked { background: #34C759; }
.ios-switch:checked::after { transform: translateX(calc(20 * var(--ios-px))); }
.ios-change-btn { background: #2C2C2E; color: #FF9F0A; border: none; padding: calc(6 * var(--ios-px)) calc(14 * var(--ios-px)); border-radius: calc(16 * var(--ios-px)); font-weight: 600; font-size: calc(13 * var(--ios-px)); cursor: pointer; }

/* Режим редактирования */
.ios-delete { display: none; color: #FF3B30; margin-right: calc(15 * var(--ios-px)); font-size: calc(24 * var(--ios-px)); cursor: pointer; }
.ios-editing .ios-delete { display: block; }
.ios-editing .ios-right-side { display: none; }
.ios-editing .ios-list-item-target { transform: translateX(calc(10 * var(--ios-px))); }

/* ======================== */
/* ВКЛАДКА: ТАЙМЕРЫ         */
/* ======================== */


.picker-label-text {
    font-size: calc(23 * var(--ios-px));
    color: #FFFFFF;
    font-weight: 500;
    position: absolute;
    /* ИЗМЕНЕНО: Точное позиционирование подписей */
    transform: none; /* Убираем translateY */
}
/* ЧАСЫ - позиция */
.label-hours { left: calc(50% - (68 * var(--ios-px))); }
/* МИНУТЫ - позиция */
.label-minutes { left: calc(50% + (2 * var(--ios-px))); }
.ios-timer-options { background: #1C1C1E; border-radius: calc(25 * var(--ios-px)); margin: calc(20 * var(--ios-px)); flex-shrink: 0; }
.ios-timer-option { display: flex; justify-content: space-between; padding: calc(15 * var(--ios-px)); border-bottom: 1px solid #2C2C2E; font-size: calc(17 * var(--ios-px)); cursor: pointer; }
.ios-timer-option:last-child { border: none; }
.ios-timer-option span:last-child { color: #8E8E93; }
.ios-timer-option input { background: transparent; border: none; color: #8E8E93; text-align: right; font-size: calc(17 * var(--ios-px)); outline: none; }

.ios-timer-active-view { display: none; flex-shrink: 0; }
.ios-timer-running .ios-timer-picker { display: none; }
.ios-timer-running .ios-timer-active-view { display: block; }
.ios-timer-circle-container { display: flex; justify-content: center; align-items: center; margin: calc(30 * var(--ios-px)) 0 calc(20 * var(--ios-px)); }
.ios-timer-circle { width: calc(280 * var(--ios-px)); height: calc(280 * var(--ios-px)); border-radius: 50%; border: calc(4 * var(--ios-px)) solid #FF9F0A; display: flex; justify-content: center; align-items: center; }
.ios-timer-display-text { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", sans-serif; margin: 0; font-size: calc(80 * var(--ios-px)); font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -0.03em;}

.ios-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    margin-bottom: 30px; 
}
.ios-circle-btn { 
    width: 80px !important; 
    height: 80px !important; 
    flex-shrink: 0; 
    border-radius: 50%; 
    border: none; 
    font-weight: 400; 
    cursor: pointer; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    -webkit-tap-highlight-color: transparent;
    
    /* Вернули оригинальный iOS размер */
    font-size: 17px !important;         
    letter-spacing: normal !important;  
    white-space: nowrap !important;     
    overflow: hidden;                   
    padding: 0 !important;              
}
.ios-circle-btn::before { content: ''; position: absolute; top: calc(-3 * var(--ios-px)); left: calc(-3 * var(--ios-px)); right: calc(-3 * var(--ios-px)); bottom: calc(-3 * var(--ios-px)); border: calc(2 * var(--ios-px)) solid #000; border-radius: 50%; z-index: 1; }
.ios-btn-gray { background: #333333; color: #808080; }
.ios-btn-green { background: rgba(52, 199, 89, 0.2); color: #34C759; }
.ios-btn-red { background: rgba(255, 59, 48, 0.2); color: #FF9F0A; }
/* ПЕРЕОПРЕДЕЛЕНИЕ для модального окна быстрого ввода — убираем фиолетовый фон */
#quickInputModal.modal {
    background: rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(4px) !important;
}
#quickInputModal .modal-content {
    background: rgba(30,30,47,0.1) !important;
    border: none !important;
    box-shadow: none !important;
}
/* Скрываем заголовок "Быстрый ввод" */
#quickInputModal .modal-header {
    display: none !important;
}

/* Убираем лишние отступы в модальном окне */
#quickInputModal .modal-content {
    padding: 12px !important;
}

/* Убираем отступы у тела модального окна */
#quickInputModal .modal-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Прижимаем кнопки к полям ввода (убираем отступы) */
#quickInputModal .quick-input-area {
    margin-top: 0 !important;
}


/* Стили для кнопок (если хотите их сделать едва заметными) */
#quickInputMenuBtn,
.quick-modal-close-custom,
#quickInputApplyBtn {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 6px 8px !important;
    margin: 0 !important;
}
#quickInputMenuBtn:hover,
#quickInputApplyBtn:hover,
.quick-modal-close-custom:hover {
    color: rgba(255,255,255,0.9) !important;
}
/* Крестик чуть крупнее */
.quick-modal-close-custom {
    font-size: 20px !important;
    padding: 6px 4px !important;
}
/* Контейнер с кнопками Меню и крестик – без отступов */
#quickInputMenuContainer {
    margin-bottom: 4px !important;
}
/* --- Аналоговые часы --- */
        .clock-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 20px;
        }

        .analog-clock {
            position: relative;
            width: var(--clock-size);
            height: var(--clock-size);
            border-radius: 50%;
            background-color: var(--bg-color);
        }

        .ticks-container {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .numbers-container {
            position: absolute;
            width: 100%;
            height: 100%;
            font-size: 24px;
            font-weight: 300;
        }

        .number {
            position: absolute;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            left: 50%;
            top: 50%;
            margin-left: -15px;
            margin-top: -15px;
        }

        /* Малый циферблат (уменьшен) */
        .inner-clock {
            position: absolute;
            width: 80px; /* Было 100px */
            height: 80px; /* Было 100px */
            top: 55px; /* Скорректировано, чтобы оставить зазор снизу до центра */
            left: 50%;
            transform: translateX(-50%);
            border-radius: 50%;
        }
        
        .inner-numbers-container {
            position: absolute;
            width: 100%;
            height: 100%;
            font-size: 14px;
        }

        /* Стрелки */
        .hand {
            position: absolute;
            z-index: 10;
        }

        /* Главная секундная стрелка с хвостиком */
        .hand-main {
            width: 1.5px;
            height: 190px;
            background-color: var(--orange);
            bottom: calc(50% - 30px);
            left: 50%;
            margin-left: -0.75px;
            transform-origin: center 160px;
            transform: rotate(0deg);
        }
        
        /* Центральный кружок */
        .hand-main::after {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: var(--bg-color);
            border: 1.5px solid var(--orange);
            border-radius: 50%;
            top: 160px;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* Синяя стрелка круга с хвостиком */
        .hand-lap {
            width: 1.5px;
            height: 190px;
            background-color: var(--blue);
            bottom: calc(50% - 30px);
            left: 50%;
            margin-left: -0.75px;
            transform-origin: center 160px;
            transform: rotate(0deg);
            z-index: 9;
            display: none;
        }
        
        .hand-lap::after {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: var(--bg-color);
            border: 1.5px solid var(--blue);
            border-radius: 50%;
            top: 160px;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* Минутная стрелка (уменьшена пропорционально циферблату) */
        .hand-inner {
            width: 1.2px;
            height: 40px; /* Было 50px */
            background-color: var(--orange);
            bottom: 50%;
            left: 50%;
            margin-left: -0.6px;
            transform-origin: bottom center;
        }
        
        .hand-inner::after {
            content: '';
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--orange);
            bottom: -2.5px;
            left: 50%;
            transform: translateX(-50%);
        }

        /* --- Цифровые часы --- */
        .digital-clock {
            font-size: 22px;
            font-variant-numeric: tabular-nums;
            font-weight: 300;
            position: absolute;
            bottom: 80px; 
            left: 50%;
            transform: translateX(-50%);
        }


/* === ЕДИНОЕ ПРОСТРАНСТВО ДЛЯ ТАЙМЕРОВ (БЕЗ ПРЫЖКОВ КНОПОК) === */

/* Объединяем стили для обоих таймеров */
#timerDisplay, #analogTimer {
    /* 44vh выделяет одинаковый блок высоты (пропорционально растет на больших экранах) */
    height: 40vh !important; 
    width: 100% !important;
    
    /* Центрируем содержимое (и цифры, и циферблат) ровно посередине этого блока */
    justify-content: center !important;
    align-items: center !important;
    
    /* Задаем аккуратные внешние отступы и убиваем любые старые padding/margin */
    margin: 2vh auto !important; 
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Ваш выбор для аналоговых часов */
#analogTimer {
    transform: scale(1) /* Оставляем масштаб, который вам подошел */
    translateY(30px) !important;
    zoom: normal !important;
}

/* === ВАРИАНТ БЕЗ КЛАССОВ (по порядку элементов) === */

/* 30 */
.inner-numbers-container div:nth-child(6) {
    top: 16px !important;
    left: 50% !important;
}
/* 5 */
.inner-numbers-container div:nth-child(1) {
    left: calc(50% + 20.5167px) !important;
    top: calc(50% - 12px) !important;
}
/* 10 */
.inner-numbers-container div:nth-child(2) {
    left: calc(50% + 20.5167px) !important;
    top: calc(50% + 13px) !important;
}
/* 15 */
.inner-numbers-container div:nth-child(3) {
    top: calc(50% + 24px) !important;
    left: calc(50% + 1.59204e-15px) !important;
}
/* 20 */
.inner-numbers-container div:nth-child(4) {
    left: calc(50% - 20.5167px) !important;
    top: calc(50% + 13px) !important;
}
/* 25 */
.inner-numbers-container div:nth-child(5) {
    left: calc(50% - 20.5167px) !important;
    top: calc(50% - 12px) !important;
}
/* =========================================
   LIQUID GLASS THEME (iOS 26 Concept)
   ========================================= */

/* 4. Нижняя панель навигации */
body.liquid-glass .tab-bar {
    background: rgba(20, 20, 25, 0.4) !important;
    backdrop-filter: blur(35px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 5. Панель управления (remote-panel) и секретное меню */
body.liquid-glass .remote-panel,
body.liquid-glass .secret-gate {
    background: rgba(20, 20, 25, 0.5) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 6. Стеклянные поля ввода (инпуты и селекты) */
body.liquid-glass input[type="text"],
body.liquid-glass input[type="number"],
body.liquid-glass input[type="email"],





/* Дополнительно скрываем старый заголовок, если он где-то всплывает */
#quickInputModal .modal-header {
    display: none !important;
}


/* ======================== */
/* ВКЛАДКА: ТАЙМЕРЫ (3D БАРАБАН) */
/* ======================== */

.ios-timer-picker {
    position: relative;
    height: 240px;
    margin: -14px 40px 0 40px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 25px; /* закруглённые углы */
}

.ios-picker-highlight {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 0;
    height: 25px;
    transform: translateY(-50%);
    background-color: #1C1C1E;
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.ios-picker-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.ios-picker-section {
    flex: 1;
    position: relative;
    height: 100%;
    perspective: 500px; /* для 3D */
}

.ios-picker-column {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 85px;
    padding-bottom: 85px;
    touch-action: pan-y;
    scroll-behavior: smooth;
}

.ios-picker-column::-webkit-scrollbar {
    display: none;
}

.ios-picker-item {
   height: 23px;              /* ← основной регулятор расстояния */
    line-height: 25px;         /* для вертикального выравнивания текста */
    margin: 0;                 /* убираем внешние отступы */
    padding: 0;                /* убираем внутренние */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 18px;
    color: #8E8E93;
    transition: all 0.1s ease-out;
    transform-origin: center center;
    flex-shrink: 0;
}

/* Активный элемент (выбранный) */
.ios-picker-item.active {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    transform: scale(1.1);
	font-size: 20px !important;
    transform: scale(1.05) !important;
	margin-top: +25px;
}

/* Элементы выше/ниже активного – уменьшаем и наклоняем через JS, 
   но для базового стиля зададим opacity */
.ios-picker-item:not(.active) {
    opacity: 0.5;
    /* transform: scale(0.85); - лучше делать через JS, чтобы управлять наклоном */
}

/* Подписи "ч", "мин", "с" – позиционируем абсолютно справа от каждой колонки */
.ios-picker-label {
    position: absolute;
    top: 50%;
    left: 100%;           /* привязываем к правому краю колонки */
    transform: translateY(-50%);
    margin-left: -35px;     /* отступ от цифр */
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    pointer-events: none;
    z-index: 2;
}
.ampm-text {
    font-size: calc(28 * var(--ios-px)) !important; /* Уменьшаем размер букв */
    font-weight: 500;
    margin-left: 0;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: baseline;
}
/* --- Делаем строки Мировых часов компактными, как в iOS --- */
.ios-wc-row {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 60px !important; /* Ограничиваем минимальную высоту */
}
/* --- Сдвигаем вниз ТОЛЬКО заголовок во вкладке Таймеры --- */
#ios-view-timers h1,
#ios-view-timers .ios-large-title,
#ios-view-timers .ios-title {
    margin-top: 10px !important; /* Увеличь или уменьши это число, чтобы поставить заголовок идеально */
}

.toggle-btn {
   background: #ff9f0a; border: none; padding: 6px 16px; border-radius: 20px; color: #000; font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; margin-left: auto; 
}

.clickable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clickable:active {
    background: rgba(255, 255, 255, 0.05); /* Легкий отклик при нажатии */
}

.chevron {
    transition: transform 0.3s;
    color: #8e8e93;
    font-size: 12px;
}

/* ===================================== */
/* СТИЛИ ДЛЯ СПИСКА ШАБЛОНОВ             */
/* ===================================== */

.templates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;          /* Отступ между шаблонами */
    margin-top: 15px;   /* Отступ от кнопки "Сохранить" */
    width: 100%;
}

.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #1c1c1e; /* Темно-серый фон плашки */
    border-radius: 10px;       /* Скругленные углы */
    color: #ffffff;            /* Белый цвет текста! (возможно, раньше был черный на черном) */
}

.template-name {
    font-size: 16px;
    font-weight: 500;
}

.template-delete {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: transform 0.2s;
}

.template-delete:active {
    transform: scale(0.8); /* Красивое нажатие на корзину */
}