/* Public shell only: audio, timers and library tools retain their owners. */
body { background: #050a12; }
.site-header {
  position: fixed; inset: 0 auto 0 0; width: 236px;
  padding: 34px 20px; display: flex; flex-direction: column; align-items: stretch;
  gap: 42px; border-right: 1px solid #8fc7ff26; border-bottom: 0;
  background: linear-gradient(165deg, #132135e8, #060b13f5 65%);
  backdrop-filter: blur(22px);
}
.site-header .brand { gap: 10px; }
.site-header .logo { flex-shrink: 0; color: #bfe6ff; border-color: #83c6ff65; box-shadow: inset 0 0 18px #4a9eff16; }
.site-header .brand strong { font-size: 11px; letter-spacing: .075em; }
.brand-caption { display: block; color: #8195ad; font-size: 9px; letter-spacing: .13em; margin-top: 7px; }
.site-header nav { display: flex; flex-direction: column; gap: 10px; }
.site-header nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px; border: 1px solid transparent; border-radius: 12px; color: #afc0d4; font-size: 14px; letter-spacing: 0; }
.site-header nav a > span { font-size: 21px; width: 24px; text-align: center; color: #acd6ff; }
.site-header nav a:hover { background: #8abfff0c; color: #fff; }
.site-header nav a[aria-current] { color: #eef8ff; border-color: #8ccaff70; background: linear-gradient(110deg, #2b6cb752, #8dbdff0d); box-shadow: inset 3px 0 0 #97dbff, 0 0 24px #3988ff15; }
.site-header nav .telegram-link { margin-top: 22px; border-top-color: #9fc8ff20; border-radius: 0; }
.sidebar-note { margin-top: auto; color: #a6b8ca; font-size: 14px; line-height: 1.65; }
.sidebar-note { padding-bottom: 40px; }
.sidebar-note > span { font-size: 9px; letter-spacing: .15em; color: #71889f; }
.sidebar-note b { color: #91b4d7; font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.menu-toggle { display: none; }
.site-main { margin-left: 236px; min-width: 0; padding-bottom: 20px; }
@media (min-width: 951px) {
  body > .player { width: calc(100% - 268px); margin-left: 252px; margin-right: 16px; }
  body > footer { margin-left: 236px; }
}
.site-main .shell { width: min(1240px, calc(100% - 64px)); }
.site-topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #94a9c0; font-size: 10px; letter-spacing: .13em; }
.site-topbar i { padding: 0 12px; color: #4e6c8c; }
.site-topbar a { font-size: 12px; letter-spacing: 0; color: #c9ddf1; padding: 12px 16px; border: 1px solid #9ccaff27; border-radius: 30px; background: #a3caff06; }
.cyber-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 550px;
  grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; padding: 64px 42px;
  border: 1px solid #9acaff42; border-radius: 24px;
  background: radial-gradient(ellipse at 86% 32%, #917ba452, transparent 45%), radial-gradient(ellipse at 90% 80%, #2b77b957, transparent 52%), linear-gradient(110deg, #09131ff5 20%, #152941e3 100%);
  box-shadow: inset 0 1px 0 #e1f2ff1a, 0 24px 80px #0005;
}
.cyber-hero > div:not(.hero-skyline) { position: relative; z-index: 1; }
.hero-eyebrow { color: #9bb9d5; font-size: 10px; letter-spacing: .25em; margin-bottom: 24px; }
.cyber-hero h1 { font-family: Arial, sans-serif; font-weight: 700; font-size: clamp(32px, 4.5vw, 70px); letter-spacing: -.055em; line-height: 1.02; overflow-wrap: normal; }
.cyber-hero h1 span { color: #98cefa; }
.cyber-hero p { max-width: 470px; color: #b7c9db; font-size: 16px; line-height: 1.75; margin: 26px 0; }
.cyber-hero .actions { flex-wrap: wrap; align-items: center; gap: 16px; }
.cyber-hero .primary { color: #f6fbff; background: linear-gradient(120deg, #2560a9, #153c6a); border: 1px solid #9bd8ff9c; box-shadow: inset 0 1px 0 #d6eeff55, 0 0 28px #398fff2b; border-radius: 30px; padding: 15px 24px; }
.hero-community { font-size: 14px; color: #c2d8ea; padding: 14px 4px; }
.hero-signature { margin-top: 48px; font-size: 9px; letter-spacing: .18em; color: #9bb5cf; }
.hero-signature span { display: block; margin-top: 9px; font-size: 12px; letter-spacing: 0; color: #7e98af; }
.cyber-hero .reactor-card { opacity: .7; }
.cyber-hero .core { color: #c8eaff; border-color: #8ad5ff77; }
.hero-skyline { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mask-image: linear-gradient(90deg, transparent 20%, black 85%); }
.hero-skyline i { position: absolute; bottom: -2px; width: 9%; height: 55%; right: 2%; background: repeating-linear-gradient(0deg, transparent 0 19px, #6ea6d233 20px 22px), linear-gradient(90deg, #08121f, #142b40); border: 1px solid #8dc6f333; box-shadow: -4px 0 30px #72c5ff10; }
.hero-skyline i:nth-child(2) { right: 13%; height: 76%; width: 8%; }
.hero-skyline i:nth-child(3) { right: 24%; height: 38%; width: 12%; }
.hero-skyline i:nth-child(4) { right: 38%; height: 63%; width: 7%; }
.hero-skyline i:nth-child(5) { right: 48%; height: 30%; width: 13%; }
.hero-skyline i:nth-child(6) { right: 65%; height: 48%; width: 8%; }
.hero-skyline i:nth-child(7) { right: 77%; height: 23%; width: 10%; }
.site-header a:focus-visible, .site-main a:focus-visible, .menu-toggle:focus-visible { outline: 2px solid #b0e4ff; outline-offset: 4px; }
#home, #listen, #frankFilesystemLibrary { scroll-margin-top: 24px; }
@media (max-width: 1200px) {
  .cyber-hero { grid-template-columns: minmax(0, 1fr); }
  .cyber-hero .reactor-card { display: none; }
}
@media (max-width: 950px) {
  .site-header { position: sticky; inset: auto; top: 0; width: 100%; padding: 14px 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #9acaff30; }
  .site-header .brand strong { font-size: 12px; }
  .sidebar-note { display: none; }
  .menu-toggle { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 10px 14px; background: #91c4ff10; color: #d9ebff; border: 1px solid #8eb9e340; border-radius: 12px; font: inherit; font-size: 13px; cursor: pointer; }
  .site-header nav { display: none; width: 100%; padding-top: 10px; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { flex-wrap: wrap; }
  .site-header .menu-toggle[aria-expanded="true"] + nav { display: flex; }
  .site-header nav .telegram-link { margin-top: 4px; }
  .site-main { margin-left: 0; }
  .site-main .shell { width: calc(100% - 32px); }
  .site-topbar { min-height: 70px; }
  .site-topbar > span { font-size: 9px; letter-spacing: .04em; }
  .cyber-hero { padding: 42px 28px; min-height: 470px; }
  .cyber-hero h1 { font-size: clamp(28px, 7.1vw, 62px); }
  #home, #listen, #frankFilesystemLibrary { scroll-margin-top: 100px; }
}
@media (max-width: 480px) {
  .site-header { padding: 12px; }
  .site-header .brand strong { font-size: 10px; }
  .brand-caption { font-size: 8px; }
  .site-topbar > span { display: none; }
  .site-topbar { justify-content: flex-end; min-height: 60px; }
  .cyber-hero { padding: 36px 20px; min-height: 440px; border-radius: 18px; }
  .cyber-hero h1 { font-size: clamp(24px, 6.8vw, 33px); }
  .cyber-hero p { font-size: 14px; }
  .hero-signature { margin-top: 32px; }
  .site-main .precision h2 { font-size: clamp(28px, 8vw, 38px); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cyber-hero .ring { animation: none; } }

/* One listening surface backed by FRANKAudio. */
.glass-player { border-color: #93cfff45; background: #091421ed; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; box-shadow: 0 -12px 50px #0005; }
.playing-summary { display: flex; gap: 14px; align-items: center; min-width: 0; }
.playing-art { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #83c8fc45; background: radial-gradient(ellipse at top right, #5f438560, transparent), #102b40; color: #b3dcff; font: 20px Georgia, serif; }
.playing-copy { min-width: 0; }
.glass-player small { color: #a0bbd5; font-size: 9px; letter-spacing: .14em; margin-bottom: 6px; }
#playerTrackLabel { display: block; color: #e7f2ff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#playerPlaybackStatus { display: block; font-size: 11px; color: #93a8bb; margin-top: 5px; }
.glass-player button { min-width: 44px; min-height: 44px; padding: 8px; color: #d9eeff; background: #b1dcff09; border: 1px solid #9bceff30; border-radius: 12px; cursor: pointer; }
.glass-player button:disabled { opacity: .4; cursor: default; }
.glass-player button:focus-visible, .glass-player input:focus-visible { outline: 2px solid #b0e4ff; outline-offset: 3px; }
.glass-player .player-main-button { border-radius: 50%; background: #285e8d; border-color: #a1d9ff80; }
.mode-section { padding: 50px 0 20px; }
.mode-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.mode-heading h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin: 12px 0 0; color: #e0efff; }
.mode-heading p { font-size: 13px; color: #8fa9c1; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mode-card { --mode-color: #75bfff; position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 22px; min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-family: inherit; color: #edf5ff; border: 1px solid #93c3ec30; border-radius: 18px; background: #0b1827; cursor: pointer; transition: border-color .2s, background .2s; }
.mode-card:hover { border-color: #a5d6ff8a; }
.mode-card { font-weight: 400; letter-spacing: 0; }
.mode-card[aria-pressed="true"] { border-color: var(--mode-color); box-shadow: inset 0 0 0 1px var(--mode-color); }
.mode-card:focus-visible { outline: 2px solid #d7efff; outline-offset: 4px; }
.mode-number { position: relative; font-size: 9px; letter-spacing: .13em; color: #d2e3f5; margin-bottom: 68px; }
.mode-card strong { font-size: 21px; margin-bottom: 10px; }
.mode-description { font-size: 13px; line-height: 1.6; color: #b5c7da; }
.mode-action { margin-top: auto; padding-top: 24px; font-size: 11px; color: #c6e5ff; }
.mode-art { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.mode-drive { --mode-color: #a596ef; }
.mode-drive .mode-art { background: linear-gradient(0deg,#0b1325 22%,transparent), repeating-linear-gradient(110deg,transparent 0 48px,#9585c326 49px 50px), radial-gradient(ellipse at 70% 0%,#754b9eaa,transparent 70%); }
.mode-focus .mode-art { background: linear-gradient(0deg,#0c1826 24%,transparent), repeating-linear-gradient(90deg,transparent 0 44px,#95d1ff1c 45px 46px), radial-gradient(circle at 20% 0%,#356b84c9,transparent 70%); }
.mode-emotional { --mode-color: #d8a5bd; }
.mode-emotional .mode-art { background: linear-gradient(0deg,#1a1626 24%,transparent), radial-gradient(ellipse at 75% -20%,#c2939b,transparent 60%), linear-gradient(135deg,#483653,#192b42); }
.mode-lab { --mode-color: #88ced4; }
.mode-lab .mode-art { background: linear-gradient(0deg,#0b1821 24%,transparent), repeating-linear-gradient(0deg,transparent 0 22px,#84d3cf14 23px 24px), radial-gradient(ellipse at 90% 0%,#276f79,transparent 70%); }
.mode-selection { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; padding: 20px 22px; border: 1px solid #8dcaff25; border-radius: 16px; background: #94bbef06; }
.mode-selection p { margin: 0 0 8px; font-size: 14px; color: #d5e9ff; }
.mode-selection div > span { color: #8fa7bf; font-size: 12px; line-height: 1.6; }
.mode-selection a { flex-shrink: 0; font-size: 13px; color: #c5e1fa; padding: 12px 0; }
#sessionSettings, #listeningModes { scroll-margin-top: 110px; }
@media (max-width: 1200px) { .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mode-heading, .mode-selection { align-items: flex-start; flex-direction: column; gap: 10px; } .mode-card { padding: 18px; min-height: 250px; } .mode-card strong { font-size: 19px; } .mode-grid { gap: 10px; } }
@media (max-width: 370px) { .mode-grid { grid-template-columns: 1fr; } .mode-card { min-height: 230px; } .mode-number { margin-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .mode-card { transition: none; } }
.journal-section { padding: 42px 0; scroll-margin-top: 110px; }
.board-section { padding: 42px 0; scroll-margin-top: 110px; }
.board-privacy { color: #9eb5c9; font-size: 13px; line-height: 1.7; max-width: 720px; }
.board-form { padding: 24px; border: 1px solid #9acfff30; border-radius: 18px; background: linear-gradient(120deg, #142436b8, #172032aa); }
.board-form label { display: block; color: #d2e5f7; font-size: 14px; margin-bottom: 12px; }
.board-form textarea { box-sizing: border-box; width: 100%; resize: vertical; min-height: 100px; max-height: 500px; padding: 14px; border: 1px solid #a3cfff35; border-radius: 12px; background: #050d1699; color: #e2efff; font: inherit; font-size: 15px; line-height: 1.65; }
.board-form textarea::placeholder { color: #8da4ba; }
.board-form > span { display: block; margin: 8px 0 14px; font-size: 11px; color: #91a8bd; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.board-section button { min-height: 44px; padding: 10px 14px; border: 1px solid #91bdec42; border-radius: 10px; background: #83bfff0b; color: #cbe3fa; font: inherit; font-size: 12px; cursor: pointer; }
.board-section button[hidden] { display: none; }
.board-section #boardSubmit { background: #215078; color: #edf8ff; }
.board-status { color: #adcce8; font-size: 13px; line-height: 1.7; }
.board-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.board-note { padding: 24px; border: 1px solid #b3cfff2e; border-radius: 16px; background: linear-gradient(135deg,#192633,#121c28); }
.board-note p { color: #d0dfed; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 20px; }
.board-note > div { display: flex; gap: 10px; flex-wrap: wrap; }
.board-empty { grid-column: 1 / -1; padding: 28px; color: #93acc2; border: 1px dashed #92c6ec30; border-radius: 16px; font-size: 14px; line-height: 1.7; }
.board-section :is(button,textarea):focus-visible { outline: 2px solid #b0e4ff; outline-offset: 3px; }
@media(max-width:620px) { .board-notes { grid-template-columns: 1fr; } .board-form { padding: 18px; } }
.journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.journal-article { min-width: 0; border: 1px solid #91c2ed30; border-radius: 20px; background: #0c1825da; overflow: hidden; }
.journal-article summary { cursor: pointer; list-style: none; }
.journal-article summary::-webkit-details-marker { display: none; }
.journal-article summary:focus-visible { outline: 2px solid #b0e4ff; outline-offset: -4px; border-radius: 18px; }
.journal-art { display: flex; align-items: center; min-height: 190px; padding: 30px; overflow: hidden; }
.journal-art > span { font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; color: #d6eaffc9; }
.journal-art-space { background: repeating-linear-gradient(120deg, transparent 0 75px, #95cfff1c 76px 78px), radial-gradient(ellipse at 90% 10%, #627a8c80, transparent 70%), #102b40; }
.journal-art-rhythm { background: repeating-radial-gradient(ellipse at 100% 50%, transparent 0 30px, #b9abd32b 32px 33px, transparent 35px 60px), linear-gradient(120deg, #172037, #44354c); }
.journal-preview { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.journal-category { color: #8fb8dc; font-size: 10px; letter-spacing: .12em; }
.journal-preview strong { color: #e2effb; font-size: 23px; font-weight: 500; line-height: 1.25; }
.journal-excerpt { color: #a5b8cb; font-size: 14px; line-height: 1.7; }
.journal-read { color: #b5daf6; font-size: 12px; margin-top: 4px; }
.journal-article[open] .journal-read { font-size: 0; }
.journal-article[open] .journal-read::before { content: 'Свернуть заметку ↑'; font-size: 12px; }
.journal-article[open] .journal-read > span { display: none; }
.journal-article[open] { grid-column: 1 / -1; }
.journal-body { max-width: 760px; padding: 8px 32px 36px; margin: auto; color: #c0d0df; font-size: 16px; line-height: 1.85; }
.journal-body h3 { color: #e6f1fc; font-size: 21px; line-height: 1.35; margin-top: 28px; font-weight: 500; }
.journal-body .journal-byline { color: #8ba7bf; font-size: 12px; padding-top: 20px; border-top: 1px solid #94c6ed26; }
.journal-body a, .journal-telegram { display: inline-block; padding: 12px 0; font-size: 14px; color: #acd7fb; }
.journal-telegram { margin-top: 18px; }
@media (max-width: 700px) {
  .journal-grid { grid-template-columns: 1fr; }
  .journal-preview { padding: 22px; }
  .journal-body { padding: 0 22px 24px; font-size: 15px; }
  .journal-art { min-height: 160px; }
}
.site-main .frank-filesystem-library { margin: 40px auto; background: linear-gradient(135deg, #142238cc, #07121be8); border-color: #86c4ff30; }
.library-search-bar label { display: block; font-size: 12px; color: #a6bfd6; margin: 20px 0 10px; }
.library-search-input { display: flex; gap: 10px; }
.library-search-input input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid #9bcfff40; background: #050d19aa; color: #e0efff; font: inherit; font-size: 14px; }
.library-search-input input::placeholder { color: #8da4ba; }
.library-search-input button { padding: 10px 14px; background: #9fcaff0b; border: 1px solid #9acaff30; border-radius: 12px; color: #cbe1f5; cursor: pointer; }
.library-result { color: #abc3d9; font-size: 13px; min-height: 20px; }
.frank-filesystem-track[hidden] { display: none; }
.frank-filesystem-track-main { min-width: 0; }
.frank-filesystem-library .frank-filesystem-empty { opacity: 1; color: #b1c7db; background: #0a162380; }
.frank-filesystem-library input:focus-visible, .frank-filesystem-library button:focus-visible { outline: 2px solid #b0e4ff; outline-offset: 3px; }
@media (max-width: 480px) {
  .frank-filesystem-head { align-items: flex-start; flex-wrap: wrap; }
  .frank-filesystem-head h2 { font-size: 22px; }
  .library-search-input { flex-wrap: wrap; }
  .library-search-input input { flex-basis: 100%; }
}
.glass-player .player-controls { gap: 8px; }
.player-details { grid-column: 1 / -1; min-width: 0; }
.player-timeline { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #9fc0dd; font-variant-numeric: tabular-nums; }
.glass-player input[type="range"] { min-width: 0; accent-color: #8acfff; height: 24px; cursor: pointer; }
#playerSeek { flex: 1; width: 100%; }
.player-options { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
#playerVolume { width: 120px; }
.glass-player .player-state { display: block; font-size: 10px; color: #8fa9c1; margin-left: auto; }
#playerExpand { display: none; }
@media (max-width: 620px) {
  .glass-player { width: calc(100% - 16px); grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
  .playing-art { display: none; }
  .playing-summary { gap: 6px; }
  .playing-copy { flex: 1; }
  #playerTrackLabel { font-size: 12px; }
  .glass-player small { font-size: 8px; }
  .glass-player .player-controls { gap: 4px; }
  .glass-player .player-controls button { min-width: 36px; padding: 5px; }
  #playerExpand { display: block; min-width: 32px; padding: 4px; }
  .player-details { display: none; }
  .glass-player.is-expanded .player-details { display: block; }
  .glass-player.is-expanded #playerTrackLabel { white-space: normal; overflow-wrap: anywhere; }
  .glass-player .player-state { display: none; }
  .player-options { gap: 8px; }
  #playerVolume { flex: 1; }
}

/* Secondary listening controls retain their original contents and handlers. */
.advanced-panel {
  margin-top: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(151, 183, 226, .22);
  border-radius: 18px;
  background: rgba(10, 18, 30, .86);
  scroll-margin-top: 110px;
}
.advanced-panel > summary {
  cursor: pointer;
  padding: 22px;
  color: #e5edf9;
}
.advanced-panel > summary span { display: inline-grid; gap: 7px; vertical-align: middle; max-width: calc(100% - 26px); }
.advanced-panel > summary strong { font-size: 18px; font-weight: 500; }
.advanced-panel > summary small { color: #a8b8cf; font-size: 13px; line-height: 1.6; }
.advanced-panel > summary:focus-visible { outline: 2px solid #89baff; outline-offset: 4px; border-radius: 18px; }
.advanced-panel[open] > summary { border-bottom: 1px solid rgba(151, 183, 226, .18); }
.advanced-panel > .section { padding: 24px; margin: 0; }
@media (max-width: 600px) {
  .advanced-panel > summary, .advanced-panel > .section { padding: 16px; }
}

.session-section h2 { font-family: inherit; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.session-section .session {
  background: radial-gradient(ellipse at 50% 0%, rgba(68, 126, 219, .16), transparent 70%), rgba(9, 17, 29, .9);
  border-color: rgba(151, 183, 226, .24);
  box-shadow: inset 0 1px rgba(215, 231, 255, .06);
  grid-template-columns: 1fr 1fr;
}
.session-section .config label { font-size: 13px; letter-spacing: 0; color: #b8c7dc; }
.session-section select { font-size: 15px; min-height: 46px; border-color: rgba(151, 183, 226, .25); }
.session-section .timer { min-width: 0; }
.session-section .timer span { display: block; font-size: 13px; letter-spacing: .02em; line-height: 1.5; }
.session-section .timer strong { font-family: inherit; font-variant-numeric: tabular-nums; font-size: clamp(44px, 7vw, 76px); letter-spacing: -.04em; }
.session-section .session > .actions { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
.session-section .actions button { min-height: 44px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.session-section .actions .primary { color: #f3f7ff; background: linear-gradient(135deg, #275caa, #263b72); border: 1px solid #719cd8; }
.session-section :is(button, select):focus-visible { outline: 2px solid #a6ccff; outline-offset: 4px; }
@media(max-width: 600px) {
 .session-section .session { grid-template-columns: 1fr; padding: 22px 16px; gap: 20px; }
 .session-section .timer { grid-row: 1; }
}

/* Native state buttons keep focus when their selection changes. */
#stateGrid .state {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: #e5edf9;
  letter-spacing: normal;
  text-transform: none;
  border-radius: 18px;
}
#stateGrid .state-title { display: block; margin: 28px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 500; }
#stateGrid .state-description { display: block; min-height: 42px; color: #b8c7dc; font-size: 13px; line-height: 1.6; }
#stateGrid .state-num { display: block; font-size: 11px; }
#stateGrid .stats span { font-size: 10px; letter-spacing: .02em; }
#stateGrid .state:focus-visible { outline: 2px solid #a6ccff; outline-offset: 4px; }
#stateGrid .state[aria-pressed="true"] { border-color: #8bbaff; box-shadow: inset 0 0 0 1px #8bbaff, 0 0 24px rgba(84, 144, 235, .12); }
#stateGrid .state[aria-pressed="true"] .state-num::after { content: " / ВЫБРАН"; color: #b8d6ff; }

#frankAtmospherePanel { padding: 24px; margin-bottom: 28px; border-color: rgba(151,183,226,.22); background: rgba(10,18,30,.86); flex-wrap: wrap; }
#frankAtmospherePanel .frank-atmosphere-title strong { font-family: inherit; font-size: 22px; color: #e5edf9; }
#frankAtmospherePanel .frank-atmosphere-title > span { color: #a8b8cf; font-size: 10px; letter-spacing: .12em; }
#frankAtmospherePanel p { margin: 8px 0 0; max-width: 360px; font-size: 13px; line-height: 1.6; color: #a8b8cf; }
#frankAtmospherePanel .frank-atmo { min-height: 44px; padding: 10px 16px; font-size: 14px; letter-spacing: 0; color: #c4d3e8; text-transform: none; }
#frankAtmospherePanel .frank-atmo[aria-pressed="true"] { background: #203c65; border-color: #8bbaff; color: #fff; box-shadow: inset 0 0 0 1px #8bbaff; }
#frankAtmospherePanel .frank-atmo:focus-visible { outline: 2px solid #a6ccff; outline-offset: 4px; }
@media(max-width:600px) { #frankAtmospherePanel { padding: 18px; } }
