/* GLEISLOTSE design system v2. Shared geometry, semantic colour pairs.
   An explicit important layer wins over legacy unlayered !important rules.
   Only UI surfaces are themed; document/signal pixels remain untouched. */
@layer gleis-theme {
 :root {
  --page:#071525;--card:#10253a;--surface:#173249;--input:#0b1c2e;
  --text:#edf5fc;--muted:#afc6da;--border:#607f99;
  --accent:#34d1f1;--on-accent:#052434;--link:#6cddf5;
  --error:#ffadb5;--error-surface:#45232e;--success:#83e8af;--success-surface:#153b31;
  --focus:#7beaff;--hover:#22445d;--selected:#214b60;
  --admin:#ffadb5;--moderator:#91caff;--member:#83e8af;--vip:#ffe08a;
  --shadow:0 10px 30px #00000024;--page-image:linear-gradient(#071525f5,#071525fa);
  --radius-control:14px;--radius-card:22px;--space:16px;
  --brand-bg:var(--page);--brand-surface:var(--card);--brand-line:var(--border);--brand-text:var(--text);--brand-muted:var(--muted);--brand-cyan:var(--accent);
  --ui-muted:var(--muted);--ui-text:var(--text);--ui-surface:var(--card);
  background:var(--page)!important;color:var(--text)!important;color-scheme:dark!important;
 }
 :root[data-theme=day] {
  --page:#f4f7fa;--card:#ffffff;--surface:#eaf1f6;--input:#ffffff;
  --text:#142638;--muted:#425e73;--border:#71899b;
  --accent:#34d1f1;--on-accent:#052434;--link:#00647d;
  --error:#a82035;--error-surface:#fff0f2;--success:#16653b;--success-surface:#e9f7ee;
  --focus:#006b87;--hover:#d7e8f1;--selected:#c7eef5;
  --admin:#ab2034;--moderator:#145eaa;--member:#16653b;--vip:#765500;
  --shadow:0 8px 28px #17364b10;--page-image:none;color-scheme:light!important;
 }
 body,body.day,body.gleis-brand {background:var(--page)!important;color:var(--text)!important;font-family:Arial,Helvetica,sans-serif!important}
 body:not(.brand-login){background-image:var(--page-image),url('/konto/background-home.webp')!important;background-size:cover!important;background-attachment:fixed!important}
 :root[data-theme=day] body{background-image:none!important}
 body>header,.mast,#site-navigation,#quick-logout{background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important}
 body>header{min-height:88px!important;align-items:center!important;gap:16px!important;padding:12px max(28px,calc((100vw - 1324px)/2))!important}
 body>header>.mast{padding:0!important;width:100%!important;min-height:68px!important}
 :where(nav a){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
 .site-logo{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:200px!important;height:68px!important;min-width:0!important;flex:0 0 200px!important;background:#071525!important;border:1px solid #607f99!important;border-radius:12px!important;padding:6px!important;transform:none!important;filter:none!important}
 .site-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important;transform:none!important}
 #theme-toggle{white-space:normal!important;max-width:220px!important;font-size:14px!important;line-height:1.35!important}
 :where(.panel,.card,.rule-card,.rules-panel,.detail,.detail-body,.account-section,.account-overview,.profile-summary,.member-sidebar,.chat-drawer,.mail-preview,.info,.row,.rule-group,.training-mode-card,.training-page,.quiz-paper,.quiz-question,.quiz-option,.training-question,.training-choices,.training-tools,.memory-panel,.memory-score,.memory-results,.contact-part,.proposal,.searchbar,.rule-question,.rule-answer,.search-picker,.station-picker,.station-picker-dialog,.profile-completion,.gallery-lightbox,.chat-report,#own-profile-popup,#problem-report,dialog){background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:var(--shadow)!important}
 :where(.panel,.card,.rule-card,.rules-panel,.detail,.account-section,.account-overview,.profile-summary,.row,.searchbar,.rule-question,dialog){border-radius:var(--radius-card)!important}
 :where(.detail-head,.account-section>summary,.nearby-filters>summary,.chat-message,.chat-message.own,.recipient-selected,.member-avatar-placeholder,.profile-popup-avatar,.trust-strip,.quick-grid>a,.quick-grid>button,.rule-hit,.rule-document,.training-question>label,.quiz-option,.memory-card.open,.memory-card.found){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
 :where(h1,h2,h3,h4,h5,label,summary,legend,.name,.read-value,.control-title,.summary strong,.rule-question h2,.rule-question h3,.searchbar label,.profile-popup-person,.profile-popup-person strong,.profile-popup-person span,#own-profile-popup dd,.member-group>summary,.account-section[open]>summary){color:var(--text)!important}
 :where(p,li,dd,dt,.lead,.hint,small,.sub,.state,.status,.foot,.notice,.member-note,.member-meta,.profile-facts dt,.membership-since,.contact-legend,.contact-meta,.contact-scope,.contact-entry details,.plan-meta,.km-summary,.gsmr-scope,.chat-help,.chat-message time,.chat-compose small,.home-orientation p,.home-heading p,.tf-home-info,.tf-home-privacy,#own-profile-popup dt,#own-profile-popup h2){color:var(--muted)!important}
 :where(a),:where(.rule-link,.phone-number,.gsmr-line strong,.community,.eyebrow,.editorial-link,.visitor-counter strong,.foot a,.info strong,.info a){color:var(--link)!important}
 :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){background:var(--input)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:var(--radius-control)!important;min-height:48px!important;font:inherit!important;box-sizing:border-box!important;max-width:100%!important}
 input::placeholder,textarea::placeholder{color:var(--muted)!important;opacity:1!important}
 :where(input[type=radio],input[type=checkbox]){accent-color:var(--link)!important;width:20px!important;height:20px!important;flex:none!important}
 :where(button,.button,.upload,.rule-link,.plan-actions a,.source-links a,#navigation a,.tabs a,.primary-navigation>a,.section-jumps button){border-radius:var(--radius-control)!important;min-height:44px!important;border-color:var(--border)!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:none!important;text-decoration:none!important;line-height:1.4!important}
 :where(button.primary,button.open,a.open,.more,.quiz-button,button[type=submit],.profile-popup-edit,.chat-compose button,[data-action=primary]){background:var(--accent)!important;color:var(--on-accent)!important;border-color:var(--accent)!important;font-weight:700!important}
 :where(.tabs button,.directory-tabs button,.primary-navigation>a,#navigation a,.tabs a.account-nav,.favorites-nav,#site-navigation .favorites-nav){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important}
 :where(.tabs button.active,.directory-tabs button[aria-pressed=true],#navigation a[aria-current=page],.primary-navigation>a[aria-current=page]){background:var(--selected)!important;color:var(--text)!important;border-color:var(--link)!important;box-shadow:inset 0 -3px var(--link)!important}
 :where(button,.button,.upload,.rule-link,.plan-actions a,.source-links a,#navigation a,.primary-navigation>a):hover:not(:disabled){background:var(--hover)!important;color:var(--text)!important;filter:none!important}
 :where(.danger,.admin-danger,button[data-danger]){color:var(--error)!important;background:var(--error-surface)!important;border-color:var(--error)!important}
 :where(.text-action,button.text-action){background:transparent!important;border-color:transparent!important;color:var(--link)!important}
 :where(button,input,select,textarea):disabled{opacity:1!important;color:var(--muted)!important;background:var(--surface)!important;border-color:var(--border)!important;cursor:not-allowed!important}
 :focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px!important}
 :where(.notice,.message,#notice:not(:empty),[role=status],.empty,.explain-more){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;border-radius:var(--radius-control)!important}
 :where([role=alert],.error,.training-bg,.quiz-bg){color:var(--error)!important;background:var(--error-surface)!important;border-color:var(--error)!important}
 :where(.success,.rail-status,.rail-verified,.chat-verified){color:var(--success)!important}
 :where(details,.contact-entry,.km-table td,.km-table th,.profile-popup-facts,.fav,.member-group){border-color:var(--border)!important}
 details>summary{padding:16px!important;min-height:52px!important;line-height:1.4!important;cursor:pointer!important;background:var(--surface)!important;border-radius:var(--radius-control)!important}
 details[open]>summary{border-bottom:1px solid var(--border)!important;margin-bottom:16px!important}
 details>summary::marker{color:var(--link)!important}
 .code{background:var(--surface)!important;color:var(--link)!important;border:1px solid var(--border)!important;border-radius:10px!important}
 :where(.role-admin,.member-name.role-admin){color:var(--admin)!important}
 :where(.role-moderator,.member-name.role-moderator){color:var(--moderator)!important}
 :where(.role-member,.member-name.role-member){color:var(--member)!important}
 :where(.vip-name,.member-vip,.is-vip,.role-vip){color:var(--vip)!important;text-shadow:none!important}
 #quick-logout a{background:var(--surface)!important;border-color:var(--border)!important}
 #quick-logout .personal-name{color:var(--text)!important}
 #quick-logout .personal-name.role-admin{color:var(--admin)!important}
 #quick-logout .personal-name.role-moderator{color:var(--moderator)!important}
 #quick-logout .personal-name.role-member{color:var(--member)!important}
 #quick-logout .personal-name.vip-name{color:var(--vip)!important}
 .vip-crown,.photo-verified{color:var(--link)!important}
 .vip-crown{color:var(--vip)!important}
 .avatar-crown{background:var(--card)!important}
 .online-dot.online{color:var(--success)!important}
 .online-dot.offline{color:var(--error)!important}
 a.primary,.profile-edit-link{background:var(--accent)!important;color:var(--on-accent)!important}
 :where(.series-list li,.profile-series li,.series-saved,.series-chip){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
 .training-page{max-width:850px!important;border:1px solid var(--border)!important;border-radius:var(--radius-card)!important;padding:clamp(16px,3vw,32px)!important}
 .training-question{box-shadow:none!important;padding:20px 0!important;border-bottom:1px solid var(--border)!important}
 .training-question>label{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:14px!important;margin:10px 0!important;border:1px solid var(--border)!important;border-radius:var(--radius-control)!important}
 .training-question>label:has(input:checked){background:var(--selected)!important;border-color:var(--link)!important}
 .training-question label span{color:var(--text)!important}
 .training-question>label:has(.signal-name-input){flex-wrap:wrap!important}
 .training-question .signal-name-input{width:100%!important;flex-basis:100%!important}
 .training-hint{background:#123c52!important;color:#fff!important;padding:16px!important;border-left:4px solid var(--accent)!important}
 :where(.planframe,.signal-figure,.quiz-signal,.training-question>img){background:#fff!important;border-color:#71899b!important}
 .planempty,.planempty b,.planempty p{color:#123049!important}
 details>summary.open{color:var(--text)!important;background:var(--surface)!important}
 :where(.planframe img,.planframe canvas,.planframe iframe,.signal-figure img,.quiz-signal img,.training-question img,.memory-card img){filter:none!important;mix-blend-mode:normal!important}
 .training-page>img{background:#071525!important;border-radius:12px!important;padding:8px!important;object-fit:contain!important}
 /* Image banners and card backs deliberately keep a controlled dark palette. */
 .brand-banner-hero,.memory-card:not(.open):not(.found){background-color:#071525!important;color:#edf5fc!important}
 .brand-banner-hero :where(h1,p,.eyebrow){color:#edf5fc!important}
 #rules-panel>#rules-title{color:#edf5fc!important;background:linear-gradient(90deg,#071525f5,#071525cf),url('/konto/background-rules.webp') center/cover!important}
 .memory-card:not(.open):not(.found) *{color:#edf5fc!important}
 .memory-card{border-radius:var(--radius-control)!important}
 .tf-picture-label{background:#9d2035!important;color:#fff!important}
 #tf-reminder-button .tf-picture-label{background:#145678!important;color:#fff!important}
 .quick-icon,.quick-grid>*>span:last-child,.editorial-action>span:first-child,[data-quick]>span{color:var(--link)!important}
 .station-picker-list,.station-picker-option{background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important}
 .station-picker-option strong{color:var(--text)!important}.station-picker-option span{color:var(--muted)!important}
 .station-picker-option[aria-selected=true],.station-picker-option:hover{background:var(--selected)!important;border-color:var(--link)!important}
 time{color:var(--muted)!important}
 .member-identity{flex:1 1 0!important;min-width:0!important;display:block!important}
 .member-name-line{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;flex-wrap:nowrap!important}
 .member-name-text{min-width:0!important;flex:0 1 auto!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important;line-height:1.4!important}
 .member-name-line>.online-dot{flex:none!important;margin:0!important;font-size:12px!important;line-height:1!important}
 .member-name-line>:where(.rail-verified,.photo-verified,.vip-crown){flex:none!important}
 .service-account-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:16px!important}
 .service-account-actions a{padding:12px 16px!important;min-height:48px!important;display:inline-flex!important;align-items:center!important;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--radius-control)!important;color:var(--text)!important}
 .searchbar,.rule-question{padding:24px!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)!important}
 .searchbar label,.rule-question>h2,.rule-question>h3,.rule-question>label{font-size:18px!important;font-weight:750!important;letter-spacing:normal!important;text-transform:none!important;margin:0 0 12px!important}
 .searchbar input,.rule-question input{height:54px!important;font-size:16px!important;padding:14px 16px!important;border-width:2px!important}
 #changes-toggle{position:fixed;left:0;bottom:24px;z-index:131;padding:12px 16px!important;border:1px solid var(--border)!important;border-radius:0 14px 14px 0!important;box-shadow:var(--shadow)!important;font-weight:700!important}
 #changes-panel{position:fixed;left:16px;bottom:84px;z-index:132;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 160px);overflow:auto;box-sizing:border-box;padding:22px;background:var(--card)!important;color:var(--text)!important;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow)!important;line-height:1.6}
 #changes-panel[hidden]{display:none!important}
 #changes-panel .changes-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
 #changes-panel h2{margin:0;font-size:22px}#changes-panel h3{font-size:18px;margin:20px 0 12px}#changes-panel h4{font-size:15px;margin:16px 0 6px}#changes-panel ul{padding-left:20px;margin:6px 0}#changes-panel li{margin-bottom:10px}
 #changes-panel section+section{border-top:1px solid var(--border);margin-top:22px;padding-top:4px}
 @media(max-width:600px){
  body>header{flex-wrap:wrap!important;padding:12px 16px!important}
  .site-logo{width:168px!important;flex-basis:168px!important;height:58px!important}
  .mast{padding:0!important;flex-wrap:wrap!important;gap:12px!important}
  #theme-toggle{max-width:170px!important;font-size:12px!important;padding:9px 12px!important}
  .searchbar,.rule-question{padding:18px!important}
  #changes-toggle{bottom:calc(76px + env(safe-area-inset-bottom))!important;padding:9px 12px!important;font-size:13px!important}
  #changes-panel{bottom:calc(132px + env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 190px)!important;left:12px!important;width:calc(100vw - 24px)!important;padding:18px!important}
 }
 @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}

@layer gleis-theme {
 #overlay .detail{width:min(1120px,100%)!important}
 #overlay .detail-body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important}
 #overlay .detail-body>*{grid-column:1/-1;min-width:0}
 #overlay #amenities-panel{grid-column:1}#overlay #toilets-panel{grid-column:2}
 #overlay section.station-extra{padding:18px!important;margin:0!important;border:1px solid var(--border)!important;border-radius:var(--radius-card)!important;background:var(--card)!important}
 #overlay section.station-extra>h3{margin:0 0 14px!important;text-transform:none!important;font-style:normal!important;font-size:20px!important;color:var(--text)!important}
 #overlay .planframe{min-height:160px!important;max-height:400px!important;margin:0!important;border-radius:var(--radius-control)!important}
 #overlay .planframe :is(img,canvas){width:100%!important;height:auto!important;max-height:380px!important;object-fit:contain!important}
 #overlay .planframe.plan-expanded{max-height:none!important}#overlay .planframe.plan-expanded :is(img,canvas){max-height:none!important}
 #overlay .plan-actions{margin:0!important;display:flex;gap:10px;flex-wrap:wrap;align-items:start}
 #overlay .station-head-actions,.station-jumps{display:flex!important;flex-wrap:wrap;gap:10px;align-items:center}
 #overlay .station-head-actions{margin-top:14px}.station-jumps a{padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-control);color:var(--link)!important;text-decoration:none}
 #overlay .station-extra :is(.notice,.contact-meta,.hint){margin:8px 0!important}
 #overlay .contact-part{margin-bottom:16px}#overlay .contact-part>h4{font-size:15px;margin:8px 0;color:var(--muted)!important}
 #overlay .contact-entry{position:relative;padding:14px!important;margin:8px 0!important;border:1px solid var(--border)!important;border-radius:var(--radius-control)!important;background:var(--surface)!important}
 #overlay .phone-number{font-size:20px!important;font-variant-numeric:tabular-nums;font-weight:750!important;overflow-wrap:anywhere}
 #overlay .contact-copy{font-size:13px!important;padding:8px 12px!important;margin:8px 0!important;min-height:40px!important;width:auto!important}
 #overlay .amenity-card{padding:14px!important;margin:10px 0!important}#overlay .amenity-card h4{margin:0 0 8px;font-size:17px}#overlay .amenity-card p{margin:7px 0;font-size:14px;line-height:1.45}
 #overlay .amenity-card>a{display:inline-flex;padding:10px 12px;border-radius:var(--radius-control);border:1px solid var(--border);margin:8px 0;color:var(--link)!important}
 #overlay .km-table{width:100%;table-layout:fixed}#overlay .km-table :is(td,th){padding:10px!important;overflow-wrap:anywhere;font-size:14px}
 #overlay #parts-control{background:var(--selected)!important;border:1px solid var(--border)!important;border-radius:var(--radius-control)!important;padding:12px!important}
 #overlay .station-route-action{margin:0!important;padding:0!important}
 @media(max-width:700px){#overlay .detail-body{grid-template-columns:1fr!important;padding:14px!important;gap:14px!important}#overlay #amenities-panel,#overlay #toilets-panel{grid-column:1}#overlay .detail-head{padding:16px!important}#overlay .planframe :is(img,canvas){max-height:260px!important}.station-jumps{gap:6px!important}.station-jumps a{padding:8px!important;font-size:13px!important}}
}

@layer gleis-theme {.avatar-crown svg{display:block;width:28px;height:25px;filter:none}.avatar-crown{width:30px!important;height:27px!important;display:grid!important;place-items:center!important}}

@layer gleis-theme {#overlay .amenity-card{border-radius:var(--radius-control)!important}#overlay .km-table th{font-size:12px!important;word-break:normal!important}#overlay .km-table :is(td,th):nth-child(1){width:24%}#overlay .km-table :is(td,th):nth-child(2){width:46%}#overlay .km-table :is(td,th):nth-child(3){width:30%}@media(max-width:700px){#overlay .km-table :is(td,th){padding:8px 5px!important}}}

@layer gleis-theme {#overlay :is(#amenities-panel,#toilets-panel){align-self:start!important}#overlay .amenity-card details>summary{padding:8px!important;font-size:13px!important;min-height:36px!important}#overlay .km-table th{white-space:nowrap!important}}
@layer gleis-theme {
 body.has-changes-card #changes-card{box-sizing:border-box;margin:28px 0;padding:18px!important;border:1px solid var(--border)!important;border-top:3px solid var(--accent)!important;border-radius:22px!important;background:var(--card)!important;color:var(--text)!important;box-shadow:var(--shadow);overflow:hidden;line-height:1.5;text-align:left}
 #changes-card .changes-brand{display:block;width:100%;height:64px;object-fit:contain;background:#071b2e;border-radius:12px;padding:8px;box-sizing:border-box;filter:none!important;margin:0 0 16px}
 #changes-card .changes-eyebrow{font-size:10px!important;letter-spacing:.12em;font-weight:800;color:var(--muted)!important;margin:0 0 10px!important}
 #changes-card h2{font-size:22px!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;font-style:normal!important;color:var(--text)!important;margin:0 0 12px!important}
 #changes-card .changes-card-body{min-height:190px}
 #changes-card .changes-copy{font-size:14px!important;color:var(--muted)!important;margin:0 0 14px!important}
 #changes-card .changes-date{font-size:12px!important;color:var(--text)!important;font-weight:650;display:block}
 #changes-card [hidden]{display:none!important}
 #changes-card .changes-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding-top:14px}
 #changes-card .changes-controls button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:grid!important;place-items:center!important;font-size:22px!important;border-radius:50%!important;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important}
 #changes-card .changes-counter{font-size:12px;color:var(--muted)!important;font-variant-numeric:tabular-nums}
 @media(min-width:1100px){body.has-changes-card main{margin-left:max(316px,calc((100vw - 1120px)/2))!important;margin-right:32px!important;width:auto!important}body.has-changes-card #changes-card{position:fixed;left:60px;top:270px;width:220px;max-height:calc(100dvh - 294px);overflow:auto;margin:0;z-index:30}}
 @media(max-width:1099px){body.has-changes-card #changes-card{max-width:520px;margin:28px auto!important}#changes-card .changes-card-body{min-height:135px}#changes-card .changes-brand{max-width:230px;margin:0 0 16px}}
}
@layer gleis-theme {
 #overlay #plan-large-hint,#overlay #external-plan,#overlay .plan-links>h3{display:none!important}
 #overlay .plan-links{border:0!important;padding:0!important;background:transparent!important}
 #overlay .detail-body{gap:12px!important}#overlay section.station-extra{padding:12px!important;border-radius:16px!important}#overlay section.station-extra>h3{font-size:17px!important;margin-bottom:8px!important}
 #overlay .contact-entry{padding:10px!important;margin:6px 0!important}#overlay .contact-primary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}#overlay .contact-primary .contact-line{display:flex;gap:14px;flex-wrap:wrap;align-items:center}#overlay .contact-copy{margin:0!important}#overlay .contact-status{color:var(--muted)!important}
 #overlay .compact-more-contacts>summary{padding:8px!important;font-size:13px!important}#overlay .compact-more-contacts h4{font-size:13px!important;margin:12px 0 6px!important}
 #overlay #kilometers-section .km-table :is(td,th){padding:5px 8px!important;font-size:12px!important}#overlay #kilometers-section .contact-meta{display:none!important}
 #overlay .amenity-card{padding:10px!important;margin:8px 0!important;border-radius:12px!important}#overlay .amenity-card h4{font-size:15px!important;margin:0 0 5px!important}#overlay .amenity-card p{font-size:12px!important;margin:4px 0!important;line-height:1.4!important}#overlay .amenity-card>a,#overlay .address-report{font-size:12px!important;padding:7px 9px!important;margin:4px 4px 4px 0!important;min-height:34px!important}
 #overlay .venue-icon{float:left;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--surface)!important;color:var(--muted)!important;font-weight:700;font-size:14px;margin:0 9px 5px 0}#overlay .hotel-card{display:block!important;padding:12px!important;margin:7px 0!important;border-radius:12px!important;min-height:0!important;font-size:13px!important}#overlay .hotel-card strong{font-size:15px!important}#overlay .hotel-card span:not(.venue-icon){display:block!important;font-size:12px!important;margin:3px 0!important}#overlay #hotels-content>h4{display:none!important}
 #station-plan-popup{padding:0!important;width:96vw!important;max-width:96vw!important;height:90dvh!important;max-height:90dvh!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--card)!important;color:var(--text)!important;overflow:hidden!important}#station-plan-popup::backdrop{background:rgba(0,0,0,.75)}#station-plan-popup .plan-popup-close{position:absolute;right:12px;top:12px;z-index:2;width:44px!important;height:44px!important;padding:0!important;background:var(--card)!important;color:var(--text)!important;border:2px solid var(--border)!important;border-radius:50%!important;font-size:26px!important}#station-plan-popup .plan-popup-scroll{overflow:auto;width:100%;height:100%;padding:60px 16px 16px;box-sizing:border-box;background:#fff!important}#station-plan-popup canvas{display:block;max-width:none!important;width:auto!important;height:auto!important;filter:none!important}
}

@layer gleis-theme {
 @media(min-width:1100px){body.has-changes-card #changes-card{width:280px!important}body.has-changes-card main{margin-left:max(376px,calc((100vw - 1120px)/2))!important}}
 #changes-mobile-toggle,.changes-mobile-close{display:none!important}
 @media(max-width:700px){
  body.has-changes-card{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  body.has-changes-card :is(.member-toggle,.chat-toggle,#changes-mobile-toggle){display:block;position:fixed!important;top:auto!important;bottom:0!important;width:33.333333%!important;height:calc(58px + env(safe-area-inset-bottom))!important;min-height:58px!important;min-width:0!important;writing-mode:horizontal-tb!important;padding:12px 4px calc(12px + env(safe-area-inset-bottom))!important;border:1px solid var(--border)!important;border-radius:0!important;z-index:150!important;font:600 13px system-ui!important;background:var(--card)!important;color:var(--text)!important;box-sizing:border-box!important;box-shadow:0 -3px 14px #0002}
  body.has-changes-card .member-toggle{left:0!important;right:auto!important}
  body.has-changes-card .chat-toggle{right:0!important;left:auto!important}
  body.has-changes-card #changes-mobile-toggle{display:block!important;left:33.333333%!important;right:auto!important}
  body.has-changes-card :is(.member-toggle,.chat-toggle,#changes-mobile-toggle)[aria-expanded=true]{background:var(--accent)!important;color:#062337!important}
  body.has-changes-card #changes-card{display:none!important;position:fixed!important;z-index:149!important;left:10px!important;right:10px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 155px)!important;overflow:auto!important;margin:0!important;padding:18px!important}
  body.has-changes-card #changes-card.changes-mobile-open{display:block!important}
  #changes-card .changes-mobile-close{display:grid!important;place-items:center!important;position:absolute;top:10px;right:10px;min-width:44px!important;min-height:44px!important;padding:0!important;font-size:26px!important;background:var(--card)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:50%!important}
  #changes-card .changes-brand{max-width:calc(100% - 52px)!important}
 }
}

@layer gleis-theme {
 .training-controls,.training-choices label,.training-topic-group{background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important}
 .training-controls :is(select,input,textarea){background:var(--input)!important;color:var(--text)!important;border-color:var(--border)!important}
 .training-choices label:has(input:checked){background:var(--selected)!important;border-color:var(--link)!important}
 .training-choices label:has(input:focus-visible){outline:3px solid var(--focus)!important;outline-offset:2px}
 .training-controls :is(label,legend,span),.training-mode-card p{color:var(--text)!important}
 .training-bg{background:var(--error-surface)!important;color:var(--error)!important;padding:10px!important;border-radius:10px!important}
 .training-hint{background:#145678!important;color:#fff!important}
 .training-topic-group{border:1px solid var(--border);border-radius:14px;padding:14px;margin:12px 0;min-width:0}.training-topic-group legend{font-weight:750;padding:0 6px}
}

@layer gleis-theme {
 #maintenance-notice{position:fixed;top:220px;right:16px;z-index:140;pointer-events:none;width:min(260px,calc(100vw - 32px));box-sizing:border-box;padding:14px 16px;border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:14px;background:var(--card)!important;color:var(--text)!important;box-shadow:var(--shadow);font-size:13px;line-height:1.45}
 #maintenance-notice[hidden]{display:none!important}#maintenance-notice strong{font-size:15px;color:var(--text)!important}#maintenance-notice p{margin:5px 0 0;color:var(--muted)!important}
 @media(max-width:1299px){#maintenance-notice{position:relative;top:auto;right:auto;width:auto;margin:8px 12px;z-index:1}body:has(#maintenance-notice:not([hidden]))>header{margin-bottom:0}}
}

@layer gleis-theme {
 body.members-open,body.chat-open{padding-left:0!important;padding-right:0!important}
 @media(min-width:1100px){body.has-changes-card main{width:min(1120px,calc(100% - 752px))!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important}body.has-changes-card #changes-card{left:60px!important}}
}

@layer gleis-theme {
 @media(min-width:1100px) and (max-width:1299px){body.has-changes-card main{width:calc(100% - 64px)!important;max-width:1120px!important}body.has-changes-card #changes-card{position:static!important;width:280px!important;max-height:none!important;margin:28px 0!important}}
}

@layer gleis-theme {
 #overlay #station-destination>a {background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:12px!important;padding:10px 14px!important}
 #overlay #planframe:not(.has-image){min-height:90px!important;height:auto!important;padding:14px!important}
 #overlay #planframe:not(.has-image) .plan-empty{min-height:60px!important;padding:12px!important}
 #overlay #plan-zoom:disabled{display:none!important}
 #overlay #open-trassenfinder{display:inline-flex!important;border-radius:12px!important;padding:10px 14px!important}
}

@layer gleis-theme {
 .question-submission-form fieldset{min-width:0;border:1px solid var(--border);border-radius:14px;margin:12px 0;padding:12px}
 .question-submission-form fieldset[hidden]{display:none!important}
 .question-submission-form label{display:block;margin:10px 0;overflow-wrap:anywhere}
 .question-submission-form input[type=checkbox]{width:auto!important;min-width:0!important;display:inline-block;margin:0 8px}
 .training-controls textarea{width:100%;box-sizing:border-box;min-height:80px;resize:vertical}
 .question-upload-preview{max-width:100%;max-height:280px;object-fit:contain;background:#fff}
 #quiz-panel :is(button,p){overflow-wrap:anywhere}
}

@layer gleis-theme {#quiz-panel button{margin:4px 6px 4px 0}.training-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}}

@layer gleis-theme {
.community-question-card{padding:18px;margin:18px 0;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--card)!important;color:var(--text)!important;overflow-wrap:anywhere}
.community-question-card li{margin:10px 0}.question-vote-actions{display:flex;gap:8px}.question-vote-actions button{font-size:.9rem;min-height:40px;padding:8px 14px!important}.question-vote-actions button[aria-pressed=true]{outline:3px solid var(--focus)!important;outline-offset:2px}
.question-review-badge{font-weight:750;background:var(--surface)!important;color:var(--text)!important;padding:9px 12px;border-radius:10px}.question-review-badge[data-status=community_checked]{background:var(--success-surface)!important;color:var(--success)!important}
}

@layer gleis-theme {
 body[data-account-view] main>.eyebrow,body[data-account-view] main>.lead{display:none!important}
 body[data-account-view] main>h1{margin:8px 0 18px!important}
 .account-navigation-menu{margin:0 0 18px!important;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--card);color:var(--text);padding:12px 16px}
 .account-navigation-menu>summary{cursor:pointer;font-weight:700;min-height:24px}
 .account-navigation-menu[open]>summary{padding-bottom:12px;border-bottom:1px solid var(--border)}
 .account-navigation-menu #navigation{margin:12px 0 0!important;padding:0!important;border:0!important}
 body:is([data-account-view=profil],[data-account-view=profil-bearbeiten],[data-account-view=einstellungen],[data-account-view=hilfe]) .account-navigation-menu{display:none!important}
 @media(max-width:700px){
  body[data-account-view]>header{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;min-height:76px!important;padding:10px 15px!important;gap:12px!important}
  body[data-account-view]>header>a:not(.site-logo){display:none!important}
  body[data-account-view]>header #theme-toggle{width:144px!important;min-width:0!important;margin:0!important;padding:10px!important;font-size:12px!important}
  body[data-account-view]>main{padding-top:16px!important}
 }
}

@layer gleis-theme {.notification-kinds{margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:14px}.notification-kinds label{display:flex!important;align-items:center;gap:10px;margin:14px 0!important}.notification-kinds input{width:20px!important;min-width:20px!important;height:20px!important;margin:0!important}.notification-kinds p{font-size:.9rem;color:var(--muted)!important}}
@layer gleis-theme {
 .job-options label,.hobby-options label{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
 .job-options label:has(input:checked),.hobby-options label:has(input:checked){background:var(--selected)!important;border-color:var(--focus)!important}
 .job-options label:focus-within,.hobby-options label:focus-within{outline:3px solid var(--focus);outline-offset:2px}
}

/* Account-saved search density; detail dialogs retain all information. */
:root[data-results-density="compact"] #list .row .sub{display:none}
:root[data-results-density="compact"] #list .row{padding:12px 16px;gap:10px}
:root[data-results-density="compact"] #list .row .name{font-size:1rem}
body[data-account-view="ueber"] .account-navigation-menu{display:none} body[data-account-view="ueber"] #content .panel:last-child a{display:inline-block;margin:8px 18px 8px 0} body[data-account-view="einstellungen"] #content input[type="checkbox"]{width:20px;height:20px;min-height:20px;vertical-align:middle;margin-right:10px;}

/* Station popup reference, 01.10.2026: one layout, two semantic palettes. */
@layer gleis-theme {
 #overlay.station-reference{--page:#0B1624;--card:#122638;--input:#0D1E2D;--surface:#122638;--border:#304B60;--text:#F2F6FA;--muted:#A9BAC9;--accent:#39BFD6;--on-accent:#08202C;--link:#39BFD6;--button:#1B3549;--button-text:#F2F6FA;--button-border:#3B6078;--primary-hover:#63D0E1;z-index:20000!important;inset:0!important;padding:16px!important;background:#031425a6!important;backdrop-filter:blur(7px)}
 :root[data-theme="day"] #overlay.station-reference{--page:#F3F6F9;--card:#FFFFFF;--input:#F7FAFC;--surface:#EAF1F6;--border:#D4DFE7;--text:#172B3A;--muted:#526879;--accent:#087F98;--on-accent:#FFFFFF;--link:#087F98;--button:#EAF1F6;--button-text:#172B3A;--button-border:#C6D6E2;--primary-hover:#066A80}
 #overlay.station-reference .detail{position:relative;width:min(1180px,100%)!important;max-width:1180px!important;max-height:94dvh!important;overflow:auto!important;padding:12px!important;border:1px solid var(--border)!important;border-radius:13px!important;background:var(--page)!important;color:var(--text)!important;box-shadow:0 12px 40px #0004!important}
 #overlay.station-reference #close{position:absolute;right:5px;top:3px;z-index:3;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;font-size:24px!important;background:var(--page)!important;border:0!important;color:var(--text)!important}
 #overlay.station-reference .detail-body{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;padding:18px 0 0!important}
 #overlay.station-reference .station-plan-card,#overlay.station-reference .station-extra{padding:9px!important;margin:0!important;min-width:0!important;background:var(--card)!important;border:1px solid var(--border)!important;border-radius:7px!important;box-sizing:border-box;align-self:stretch!important}
 #overlay.station-reference .station-plan-card{grid-area:1/1!important;height:310px!important;display:flex;flex-direction:column}
 #overlay.station-reference #contacts-section{grid-area:1/2!important;height:310px!important;overflow:auto!important}
 #overlay.station-reference #amenities-panel{grid-area:2/1!important}
 #overlay.station-reference #toilets-panel{grid-area:2/2!important}
 #overlay.station-reference #hotels-panel{grid-area:3/1/4/3!important;position:relative}
 #overlay.station-reference h3{font-size:16px!important;line-height:1.25!important;margin:0 0 6px!important;color:var(--text)!important}
 #overlay.station-reference button,#overlay.station-reference .open{background:var(--button)!important;color:var(--button-text)!important;border:1px solid var(--button-border)!important;border-radius:5px!important;min-height:28px!important;padding:4px 9px!important;font-size:12px!important;line-height:1.3!important;box-shadow:none!important;text-transform:none!important}
 #overlay.station-reference input,#overlay.station-reference select{background:var(--input)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:5px!important;box-shadow:none!important}
 #overlay.station-reference a{color:var(--link)}
 #overlay.station-reference :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px}
 #overlay.station-reference .detail-head{display:flex!important;gap:8px!important;align-items:center!important;margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important}
 #overlay.station-reference .detail-head>div:first-child{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
 #overlay.station-reference #detail-code{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:3px!important;border-radius:6px!important;background:var(--accent)!important;color:var(--on-accent)!important;font-size:18px!important}
 #overlay.station-reference #detail-title{font-size:20px!important;line-height:1.15!important;font-style:normal!important;text-transform:none!important;margin:0!important;overflow-wrap:anywhere;color:var(--text)!important}
 #overlay.station-reference #parts-control{width:40%!important;min-width:110px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 #overlay.station-reference #parts-control label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
 #overlay.station-reference #part-select{width:100%!important;min-height:34px!important;font-size:11px!important;padding:5px!important}
 #overlay.station-reference #selected-part{display:none!important}
 #overlay.station-reference #planframe{flex:1;min-height:0!important;height:220px!important;width:100%!important;padding:7px!important;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;overflow:hidden!important;background:#fff!important;border:1px solid var(--border)!important;border-radius:5px!important;cursor:zoom-in}
 #overlay.station-reference #planframe :is(canvas,img){max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;filter:none!important;transform:none!important}
 #overlay.station-reference #planempty{color:#172B3A!important;background:white!important;font-size:12px!important;padding:8px!important}
 #overlay.station-reference .plan-links{margin:0!important;padding:3px 0 0!important;border:0!important;background:transparent!important;text-align:center}
 #overlay.station-reference .plan-actions{display:block!important}
 #overlay.station-reference #plan-zoom{background:transparent!important;color:var(--text)!important;border:0!important;min-height:23px!important;font-size:11px!important;padding:2px!important}
 #overlay.station-reference #contacts-list{padding:0!important;display:block!important}
 #overlay.station-reference .station-access-label{float:right;background:var(--input);color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:3px 6px;font-size:10px}
 #overlay.station-reference .contact-entry{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-height:45px!important;margin:4px 0!important;padding:2px 7px!important;border:1px solid var(--border)!important;border-radius:5px!important;background:var(--input)!important;box-sizing:border-box}
 #overlay.station-reference .station-agent{grid-column:1;width:35px!important;height:43px!important;object-fit:contain;filter:none!important}
 #overlay.station-reference .contact-line{grid-column:2;display:flex!important;align-items:center;justify-content:space-between;gap:8px!important;font-size:15px!important;line-height:1.2!important;color:var(--text)!important;min-width:0}
 #overlay.station-reference .phone-number{font-size:14px!important;font-family:inherit!important;color:var(--text)!important;overflow-wrap:anywhere}
 #overlay.station-reference .contact-entry:not(.contact-mobile) .phone-number{user-select:none;-webkit-user-select:none}
 #overlay.station-reference .contact-mobile{grid-template-columns:40px minmax(0,1fr) 32px!important}
 #overlay.station-reference .contact-copy{grid-column:3;width:30px!important;padding:0!important}
 #overlay.station-reference .correction{border:0!important;padding:0!important;margin:5px 0 0!important;background:transparent!important}
 #overlay.station-reference .correction>summary{font-size:12px!important;min-height:26px!important;padding:3px 6px!important;border:1px solid var(--accent)!important;border-radius:5px!important;color:var(--link)!important;text-align:center;background:transparent!important}
 #overlay.station-reference #correction-form{display:grid!important;grid-template-columns:minmax(90px,.7fr) minmax(0,1fr)!important;gap:4px 8px!important;padding:5px 0!important}
 #overlay.station-reference #new-contact-fields{display:contents!important}
 #overlay.station-reference #correction-form label{grid-column:1!important;align-self:center;margin:0!important;font-size:11px!important;line-height:1.2!important}
 #overlay.station-reference #correction-form :is(select,input){grid-column:2!important;min-height:27px!important;height:27px!important;padding:3px 6px!important;font-size:12px!important;margin:0!important;min-width:0!important}
 #overlay.station-reference #correction-form .hint,#overlay.station-reference #correction-result{grid-column:1/-1!important;font-size:10px!important;margin:0!important;padding:2px!important}
 #overlay.station-reference #correction-form .correction-honey{display:none!important}
 #overlay.station-reference #amenities-content,#overlay.station-reference #toilets-content,#overlay.station-reference #hotels-content{padding:0!important;margin:0!important}
 #overlay.station-reference .amenity-card{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:2px 9px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;min-width:0}
 #overlay.station-reference .amenity-card>:not(.venue-icon){grid-column:2;min-width:0;overflow-wrap:anywhere}
 #overlay.station-reference .amenity-card h4{font-size:13px!important;line-height:1.2!important;margin:0!important;color:var(--text)!important}
 #overlay.station-reference .amenity-card p{font-size:11px!important;line-height:1.25!important;margin:0!important;color:var(--muted)!important}
 #overlay.station-reference .venue-icon{display:flex!important;align-items:center;justify-content:center;grid-column:1;grid-row:1/span 6;width:90px!important;height:72px!important;border-radius:5px;background:var(--input)!important;font-size:30px;overflow:hidden;color:var(--muted)!important}
 #overlay.station-reference .venue-icon img{width:100%!important;height:100%!important;object-fit:contain;filter:none!important}
 #overlay.station-reference .venue-official-image.photo{object-fit:cover!important}
 #overlay.station-reference .venue-official-image.logo{object-fit:contain!important;padding:5px;box-sizing:border-box;background:#fff}
 #overlay.station-reference .amenity-card>a[href*="/maps/dir"],#overlay.station-reference .hotel-route{display:block!important;border-radius:5px!important;padding:5px 8px!important;background:var(--accent)!important;color:var(--on-accent)!important;text-decoration:none!important;text-align:center;font-size:12px!important;font-weight:600!important;line-height:1.25!important;margin-top:3px!important;white-space:nowrap}
 #overlay.station-reference .amenity-card>a[href*="/maps/dir"]:hover,#overlay.station-reference .hotel-card:hover .hotel-route{background:var(--primary-hover)!important}
 #overlay.station-reference #amenities-content>.open{display:block!important;margin:4px 0 0 auto!important;min-height:26px!important}
 #overlay.station-reference .notice,#overlay.station-reference .hint{font-size:12px!important;line-height:1.35!important;padding:5px!important;margin:3px 0!important;background:var(--input)!important;color:var(--muted)!important;border:0!important}
 #overlay.station-reference #hotels-content{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
 #overlay.station-reference #hotels-content>h4,#overlay.station-reference #hotels-content>.hotel-data-note{display:none!important}
 #overlay.station-reference .hotel-card{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:3px 8px!important;padding:4px!important;margin:0!important;min-width:0;background:var(--input)!important;border:1px solid var(--border)!important;border-radius:5px!important;text-decoration:none!important;color:var(--text)!important;align-content:start}
 #overlay.station-reference .hotel-card>:not(.venue-icon){grid-column:2;font-size:11px!important;line-height:1.2!important;margin:0!important;overflow-wrap:anywhere}
 #overlay.station-reference .hotel-card>strong{font-size:13px!important;color:var(--text)!important}
 #overlay.station-reference .hotel-card .venue-icon{grid-row:1/span 4!important;height:78px!important}
 #overlay.station-reference .hotel-more{padding:0!important;margin:0!important;border:0!important;background:transparent!important;grid-column:1/-1}
 #overlay.station-reference #hotels-content>.hotel-more>summary{position:absolute;right:9px;top:5px;font-size:11px!important;min-height:24px!important;padding:3px 7px!important;background:var(--button)!important;color:var(--button-text)!important;border:1px solid var(--button-border)!important;border-radius:4px}
 #overlay.station-reference .station-subdialog{width:min(900px,90vw);max-height:85dvh;overflow:auto;background:var(--page);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:22px;box-sizing:border-box}
 #overlay.station-reference .station-subdialog::backdrop{background:#00101ecc;backdrop-filter:blur(3px)}
 #overlay.station-reference .station-subclose{float:right}
 #overlay.station-reference .station-subdialog .amenity-card{padding:12px!important;border-bottom:1px solid var(--border)!important;margin-bottom:12px!important}
 #overlay.station-reference .station-subdialog .hotel-more>summary{display:none!important}
 #overlay.station-reference .station-subdialog .hotel-card{margin:8px 0!important}
 #overlay.station-reference [hidden]{display:none!important}
 .station-meta-details{margin:18px 0;font-size:13px}
 .station-meta-details details,.station-meta-details a{margin:8px 0}
 .station-meta-details .venue-image-sources a{display:block}
 #station-plan-popup{z-index:20001!important}
 @media(min-width:900px){#overlay.station-reference #amenities-panel .amenity-card{grid-template-columns:90px minmax(0,1fr) 140px!important}#overlay.station-reference #amenities-panel .amenity-card>a[href*="/maps/dir"]{grid-column:3!important;grid-row:1/span 3!important;align-self:start}}
 @media(max-width:700px){
  #overlay.station-reference{padding:6px!important}
  #overlay.station-reference .detail{padding:8px!important;max-height:97dvh!important}
  #overlay.station-reference .detail-body{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  #overlay.station-reference .station-plan-card,#overlay.station-reference #contacts-section,#overlay.station-reference #amenities-panel,#overlay.station-reference #toilets-panel,#overlay.station-reference #hotels-panel{grid-area:auto!important;grid-column:1!important}
  #overlay.station-reference .station-plan-card{height:315px!important}
  #overlay.station-reference #contacts-section{height:auto!important;max-height:none!important}
  #overlay.station-reference .detail-head{flex-wrap:wrap!important}
  #overlay.station-reference #detail-title{font-size:18px!important}
  #overlay.station-reference #parts-control{width:100%!important}
  #overlay.station-reference #hotels-content{grid-template-columns:minmax(0,1fr)}
  #overlay.station-reference #hotels-panel>h3{margin-bottom:34px!important}
  #overlay.station-reference #hotels-content>.hotel-more>summary{top:29px;left:9px;right:auto}
  #overlay.station-reference button,#overlay.station-reference .open,#overlay.station-reference .amenity-card>a[href*="/maps/dir"],#overlay.station-reference .hotel-route{min-height:40px!important;box-sizing:border-box;align-content:center}
 }
}

@layer gleis-theme {
 body.home-view main{max-width:1440px!important;width:calc(100% - 64px)!important;margin-left:auto!important;margin-right:auto!important}
 body.home-view.has-changes-card main{transform:none!important;padding-left:0!important;padding-right:0!important}
 .home-search-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin:24px 0}
 body:not(.home-view) .home-search-grid{display:none!important}
 .home-search-grid .searchbar,.home-search-grid .rule-question{margin:0!important;width:100%!important;box-sizing:border-box}
 .home-station-search{min-width:0}
 .home-search-grid label{font-size:20px!important;line-height:1.3!important;color:var(--text)!important}
 .home-search-grid input{min-height:58px!important}
 body.home-view .brand-banner-hero{min-height:270px!important;background:linear-gradient(90deg,#001426c9,#0014266b),url('/konto/background-stations.webp') center 50%/cover!important;border-radius:20px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;margin:20px 0!important}
 body.home-view .brand-banner-hero .banner-heading{background:#001324c9!important;padding:14px 26px!important;border-radius:16px!important}
 body.home-view .brand-banner-hero .banner-caption{color:#fff!important}
 @media(min-width:701px){body.home-view #changes-card{position:static!important;transform:none!important;width:100%!important;max-width:none!important;margin:24px 0!important;display:grid!important;grid-template-columns:1fr auto!important}body.home-view #changes-card .changes-brand{display:none!important}}
 @media(max-width:700px){body.home-view main{width:calc(100% - 24px)!important}.home-search-grid{grid-template-columns:minmax(0,1fr);gap:14px}.home-search-grid label{font-size:18px!important}body.home-view .brand-banner-hero{min-height:190px!important}}
}

@layer gleis-theme {#overlay.station-reference #hotels-content .hotel-distance{display:none!important}#overlay.station-reference .correction>summary{display:block!important;width:100%;box-sizing:border-box}#overlay.station-reference .correction>summary::after{float:none!important;margin-left:8px}.station-meta-details .contact-entry{display:flex;gap:10px;align-items:center;margin:8px 0}.station-meta-details .station-agent{width:32px;height:40px}.station-meta-details .contact-line{display:flex;gap:12px}.station-meta-details .contact-entry:not(.contact-mobile) .phone-number{user-select:none}}

@layer gleis-theme {#overlay.station-reference .station-extra{color:var(--text)!important}#overlay.station-reference .amenity-card>p{font-weight:400!important}}

@layer gleis-theme {#overlay.station-reference #contacts-list,#overlay.station-reference #correction-form{margin:0!important}#overlay.station-reference #correction-form button{margin:0!important}#overlay.station-reference #contacts-section>h3{margin-bottom:4px!important}#overlay.station-reference #vote-proposals:empty,#overlay.station-reference #correction-result:empty{display:none!important}}

@layer gleis-theme {#overlay.station-reference #hotels-content>.notice{grid-column:1/-1!important}}

@layer gleis-theme {
#overlay.station-reference .contact-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:6px!important}
#overlay.station-reference .contact-edit{background:#B32635!important;color:#fff!important;border-color:#B32635!important;font-size:10px!important;padding:3px 6px!important;white-space:nowrap;min-height:26px!important}
#overlay.station-reference .contact-line:not(:has(.contact-edit)){grid-template-columns:minmax(0,1fr) auto}
#overlay.station-reference .contact-edit-dialog{max-width:480px}
#overlay.station-reference .contact-edit-dialog label{display:block;margin:16px 0;color:var(--text)!important}
#overlay.station-reference .contact-edit-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px}
@media(max-width:700px){#overlay.station-reference .contact-line:has(.contact-edit){grid-template-columns:minmax(0,1fr) auto}#overlay.station-reference .contact-line:has(.contact-edit) .phone-number{grid-column:1/-1}#overlay.station-reference .contact-edit{min-height:36px!important}}
}

@layer gleis-theme {#station-plan-popup img{display:block;max-width:none!important;width:auto!important;height:auto!important;filter:none!important}}

@layer gleis-theme {#overlay.station-reference .contact-edit-dialog{max-width:480px!important}#overlay.station-reference .contact-edit-dialog .hint:empty{display:none!important}}

@layer gleis-theme {#overlay.station-reference .fdl-empty{display:grid;grid-template-columns:1fr 1fr;gap:6px;border:1px solid var(--border);border-radius:6px;padding:8px;margin:5px 0}#overlay.station-reference .fdl-empty strong{grid-column:1/-1}#overlay.station-reference .fdl-empty input{min-width:0;width:100%;padding:6px;font-size:13px}#overlay.station-reference .fdl-empty button{font-size:12px;padding:5px;min-height:32px}}

@layer gleis-theme {#overlay.station-reference .fdl-empty{grid-template-columns:40px minmax(0,1fr) auto;align-items:center}#overlay.station-reference .fdl-empty .station-agent{grid-column:1;grid-row:1 / span 2;width:36px;height:44px;object-fit:contain}#overlay.station-reference .fdl-empty strong{grid-column:2 / span 2}#overlay.station-reference .fdl-empty input{grid-column:2}body .member-sidebar,body .mail-drawer,body .md-content{touch-action:pan-y;-webkit-overflow-scrolling:touch}body .member-sidebar:focus-visible,body .md-content:focus-visible{outline:2px solid var(--accent,#39bfd6);outline-offset:-2px}}
