:root{font-family:Arial,Helvetica,sans-serif;color:#30343a;background:#f2f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}header{height:82px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 max(22px,calc((100vw - 1320px)/2));border-bottom:1px solid #e7edf3}.brand{font-size:44px;font-weight:900;letter-spacing:-3px;color:#083b9e}.brand em{color:#ffca00;font-style:normal}.header-actions{display:flex;gap:28px;font-size:29px;color:#111}.layout{max-width:1320px;margin:auto;display:grid;grid-template-columns:190px minmax(0,1fr);gap:30px;padding:36px 26px 120px}.desktop-nav{display:flex;flex-direction:column;gap:8px;padding-top:32px}.desktop-nav a{padding:14px;border-radius:12px;display:flex;gap:12px;align-items:center;font-weight:700}.desktop-nav a b{font-size:26px}.desktop-nav .active,.bottom-nav .active{background:#e9f0f7}main{min-width:0}h1{font-size:25px;letter-spacing:1.5px;margin:8px 0 26px;font-weight:900}h2{font-size:20px;letter-spacing:.5px;margin:0 0 16px}.card{background:white;border:1px solid #dfe7f0;border-radius:20px;padding:24px;margin-bottom:24px}.dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.dashboard .purple{grid-column:span 2}.metric{display:block;overflow:hidden;border-radius:24px;text-align:center}.metric-top{font-size:24px;line-height:1.35;font-weight:900;letter-spacing:4px;padding:16px 10px}.metric-bottom{padding:12px 10px 16px;color:#fff}.metric-bottom strong{font-size:clamp(32px,5vw,62px);display:block;font-weight:900;line-height:1.15}.metric-bottom small{display:block;letter-spacing:1px;font-size:15px;font-weight:700}.metric-bottom a{color:white}.teal .metric-top{background:#d7e5ea;color:#5d9ab0}.teal .metric-bottom{background:#5d9ab0}.blue .metric-top{background:#ffcb00;color:#07389c}.blue .metric-bottom{background:#07389c}.purple .metric-top{background:#e6d8ef;color:#8348ad}.purple .metric-bottom{background:#8148af}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.heading-row select,.year-nav{border:1px solid #87929e;border-radius:30px;background:#fff;padding:11px 14px}.year-nav{white-space:nowrap}.year-nav a{padding:8px;font-weight:bold}.actions{display:flex;gap:12px;margin-bottom:18px}.add,.primary{background:#ffb42d;border:2px solid #8d8d8d;border-radius:18px;padding:16px 20px;font-weight:900;letter-spacing:1px;text-align:center;color:#292d32;cursor:pointer}.add{flex:1}.actions input{min-width:0;max-width:260px}.contract-list{display:flex;flex-direction:column;gap:10px}.contract-card{background:white;border:2px solid #999;border-radius:16px;padding:11px 14px;display:flex;align-items:center;gap:12px;min-width:0}.company-logo{width:56px;height:56px;flex-shrink:0;border-radius:10px;background:#f3f5f7;display:grid;place-items:center;position:relative;font-weight:900;color:#07389c;font-size:21px;text-transform:uppercase}.company-logo img{width:100%;height:100%;object-fit:contain}.status{position:absolute;right:-7px;bottom:-3px;font-size:16px;border:2px solid #fff;border-radius:7px;background:#ffbc24;padding:2px}.status.done{background:#d5f7e7;color:#178c5e}.contract-text{flex:1;min-width:0}.contract-text b,.contract-amount b{font-size:20px;display:block;overflow-wrap:anywhere}.contract-text small,.contract-amount small{font-size:13px;display:block}.contract-amount{text-align:right;white-space:nowrap}.edit{background:#45484e;color:white;border:0;border-radius:10px;padding:10px 12px;font-weight:800;cursor:pointer}.empty{color:#657182}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:700;font-size:14px}.field input,.field select,.field textarea,.actions input{width:100%;border:1px solid #cbd6e5;border-radius:9px;padding:12px;background:#fff;color:#20242c}.wide{grid-column:span 2}.editor .primary,.card .primary{background:#073c9d;color:#fff;border:0;width:100%;margin-top:18px}.hint{font-size:13px;color:#66778c;line-height:1.5}.extras{border-top:1px solid #e5ebf2;margin-top:22px;padding-top:16px}.extras summary{font-weight:800;cursor:pointer;margin-bottom:15px}.danger-form{margin:12px 0}.danger{background:#bd443d;color:#fff;border:0;border-radius:9px;padding:10px 15px;cursor:pointer}.alert{background:#fff1cd;padding:15px;border-radius:12px;margin-bottom:15px}.auth{max-width:500px;margin:50px auto}.auth form{display:flex;flex-direction:column;gap:16px}.auth .primary{background:#073c9d;color:white;border:0}.savings-big{color:#7b39a9;font-size:clamp(34px,6vw,58px);font-weight:900}.savings-big span{font-size:.5em}.choose{cursor:pointer}.choose input{width:21px;height:21px;accent-color:#073c9d}.secondary{display:block;background:#ffb42d}.entry{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e1e8ef}.entry span{flex:1}.icon-button{background:transparent;border:0;font-size:25px;cursor:pointer}.bottom-nav{display:none}[hidden]{display:none!important}@media(max-width:850px){header{height:76px;padding:0 20px}.brand{font-size:38px}.layout{display:block;padding:26px 18px 110px}.desktop-nav{display:none}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;z-index:10;box-shadow:0 -3px 15px #0001;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav a{flex:1;text-align:center;min-width:0;padding:10px 2px 8px;display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}.bottom-nav b{font-size:29px}.dashboard{display:flex;flex-direction:column;gap:18px;max-width:600px;margin:auto}.metric-top{font-size:21px}.metric-bottom strong{font-size:clamp(36px,9vw,58px)}.heading-row h1{font-size:21px}.contract-card{gap:8px;padding:9px}.company-logo{width:48px;height:48px}.contract-text b,.contract-amount b{font-size:16px}.contract-text small,.contract-amount small{font-size:11px}.edit{padding:8px}.actions input{max-width:125px}.add{padding:14px 8px;font-size:14px}.card{padding:18px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}}

.mark-form{margin:0}.mark-button{border:1px solid #d0d7e0;border-radius:8px;padding:8px;background:#edf4fa;cursor:pointer}.mark-button:hover{background:#d9ebfa}


/* sparswitch V2.0.1 — Responsive layout for 16:9 desktop, tablet and mobile */
:root{--fc-page-width:1520px;--fc-header-height:82px}
html{min-width:320px}body{min-height:100vh;overflow-x:hidden}
header{padding-inline:max(24px,calc((100vw - var(--fc-page-width))/2 + 24px))}
.layout{width:min(100%,var(--fc-page-width));max-width:none;grid-template-columns:220px minmax(0,1fr);gap:32px;padding:34px 32px 90px}
.layout main{width:100%;min-width:0}.desktop-nav{padding-top:8px;position:sticky;top:22px;align-self:start}
.desktop-nav a{min-height:52px;white-space:nowrap}.desktop-nav a:hover,.bottom-nav a:hover{background:#e9f0f7}
.layout-auth{display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - var(--fc-header-height));padding:36px 24px 70px}
.layout-auth main{width:100%;max-width:500px;flex:0 1 500px}
.auth{width:100%;max-width:none;margin:0;padding:38px 40px;border-radius:20px;box-shadow:0 12px 34px rgba(22,43,72,.045)}
.auth h1{margin:0 0 28px;font-size:26px}.auth form{gap:18px}.auth .field{width:100%}
.auth .field input{width:100%;min-height:48px}.auth .primary{width:100%;min-height:50px;margin-top:6px}
.auth p{margin:20px 0 0;text-align:center}.auth p a{color:#073c9d;font-weight:700}
.dashboard{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:20px}
.dashboard .purple{grid-column:auto}.dashboard .metric{display:flex;flex-direction:column;min-width:0;min-height:260px}
.dashboard .metric-top{flex:0 0 auto;min-height:105px;display:flex;align-items:center;justify-content:center;font-size:clamp(15px,1.45vw,23px);letter-spacing:clamp(1px,.2vw,3px);padding:14px}
.dashboard .metric-bottom{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 10px}
.dashboard .metric-bottom strong{font-size:clamp(26px,3vw,52px);overflow-wrap:anywhere}
.dashboard .metric-bottom small{font-size:clamp(11px,1vw,15px);line-height:1.4}
.card{max-width:100%}.heading-row{flex-wrap:wrap}.heading-row h1{margin-bottom:18px}
.actions{align-items:stretch}.actions input{max-width:320px;flex:0 1 320px}
.contract-list{max-width:100%}.contract-card{min-height:82px;gap:16px;padding:12px 16px}
.contract-text{overflow:hidden}.contract-text b{overflow-wrap:anywhere}.contract-amount{flex-shrink:0}
.editor{max-width:1080px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field input,.field select,.field textarea{max-width:100%}
.entry{flex-wrap:wrap}.entry span{min-width:160px}.savings-big{font-size:clamp(34px,4vw,60px)}
@media(min-width:1200px){.layout-app:has(.dashboard){grid-template-columns:220px minmax(0,1fr)}.layout-app:has(.dashboard) main{max-width:none}}
@media(min-width:851px) and (max-width:1199px){.layout{grid-template-columns:170px minmax(0,1fr);gap:20px;padding:28px 22px 70px}.desktop-nav a{padding:12px 8px;font-size:14px}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .purple{grid-column:span 2}.dashboard .metric{min-height:215px}.dashboard .metric-top{min-height:80px}.contract-card{gap:10px}.contract-text b,.contract-amount b{font-size:17px}}
@media(max-width:850px){:root{--fc-header-height:76px}header{padding-inline:20px}.layout{display:block;width:100%;padding:26px 18px calc(110px + env(safe-area-inset-bottom))}.layout-auth{display:flex;min-height:calc(100dvh - var(--fc-header-height));padding:24px 18px 60px}.layout-auth main{max-width:500px;flex:1}.auth{padding:30px 26px}.dashboard{display:flex;flex-direction:column;gap:18px;max-width:600px}.dashboard .purple{grid-column:auto}.dashboard .metric{min-height:0}.dashboard .metric-top{min-height:0;font-size:21px}.dashboard .metric-bottom strong{font-size:clamp(34px,8vw,58px)}.contract-card{min-height:70px;gap:8px;padding:9px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}}
@media(max-width:480px){header{padding-inline:14px}.brand{font-size:clamp(29px,8vw,38px)}.header-actions{gap:14px;font-size:24px}.layout{padding-inline:12px}.layout-auth{padding:20px 14px 50px}.auth{padding:26px 22px}.auth h1{font-size:23px}.card{padding:16px}.contract-card{gap:7px}.company-logo{width:40px;height:40px}.contract-text b,.contract-amount b{font-size:14px}.contract-text small,.contract-amount small{font-size:10px}.mark-button,.edit{padding:7px}.actions{gap:8px}.actions input{max-width:120px}.add{padding:12px 8px;font-size:12px}.bottom-nav a{font-size:9px}.bottom-nav b{font-size:25px}.metric-top{letter-spacing:2px}}
@media(prefers-reduced-motion:no-preference){button,a,input,select{transition:background-color .15s ease,border-color .15s ease}}

/* V2.0.2 — compact UI and fixed mobile navigation */
:root{--fc-bottom-nav-height:68px}
.ui-icon{display:inline-block;vertical-align:middle;width:1.3em;height:1.3em;flex:0 0 auto;background-color:currentColor;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}
.ico-swap_countdown_datum{mask-image:url("icons/ico_swap_countdown_datum.svg");-webkit-mask-image:url("icons/ico_swap_countdown_datum.svg")}
.ico-aufgaben{mask-image:url("icons/ico_aufgaben.svg");-webkit-mask-image:url("icons/ico_aufgaben.svg")}
.ico-info{mask-image:url("icons/ico_info.svg");-webkit-mask-image:url("icons/ico_info.svg")}
.ico-gehalt{mask-image:url("icons/ico_gehalt.svg");-webkit-mask-image:url("icons/ico_gehalt.svg")}
.ico-sparplan{mask-image:url("icons/ico_sparplan.svg");-webkit-mask-image:url("icons/ico_sparplan.svg")}
.ico-hamburger_menu{mask-image:url("icons/ico_hamburger_menu.svg");-webkit-mask-image:url("icons/ico_hamburger_menu.svg")}
.ico-user{mask-image:url("icons/ico_user.svg");-webkit-mask-image:url("icons/ico_user.svg")}
.ico-go_to_open{mask-image:url("icons/ico_go_to_open.svg");-webkit-mask-image:url("icons/ico_go_to_open.svg")}
.ico-news{mask-image:url("icons/ico_news.svg");-webkit-mask-image:url("icons/ico_news.svg")}
.ico-abbuchung_vorm_gehalt{mask-image:url("icons/ico_abbuchung_vorm_gehalt.svg");-webkit-mask-image:url("icons/ico_abbuchung_vorm_gehalt.svg")}
.ico-sanduhr{mask-image:url("icons/ico_sanduhr.svg");-webkit-mask-image:url("icons/ico_sanduhr.svg")}
.ico-check{mask-image:url("icons/ico_check.svg");-webkit-mask-image:url("icons/ico_check.svg")}
.ico-vertraege{mask-image:url("icons/ico_vertraege.svg");-webkit-mask-image:url("icons/ico_vertraege.svg")}
.ico-ueberblick{mask-image:url("icons/ico_ueberblick.svg");-webkit-mask-image:url("icons/ico_ueberblick.svg")}
.ico-naechste_abbuchung{mask-image:url("icons/ico_naechste_abbuchung.svg");-webkit-mask-image:url("icons/ico_naechste_abbuchung.svg")}

.header-actions{align-items:center;gap:20px;font-size:25px}.header-actions .ui-icon{width:26px;height:26px}
.desktop-nav a{gap:11px}.desktop-nav .ui-icon{width:23px;height:23px}
.dashboard{gap:16px}.dashboard .metric{border-radius:19px;min-height:0;overflow:hidden}
.dashboard .metric-top{min-height:0;flex:0 0 auto;gap:12px;font-size:clamp(12px,1.08vw,17px);line-height:1.12;letter-spacing:2px;padding:13px 10px}
.dashboard .metric-top .ui-icon{width:36px;height:36px}
.dashboard .metric-bottom{min-height:0;gap:3px;padding:13px 10px}
.dashboard .metric-bottom>strong{font-size:clamp(23px,2.5vw,41px);line-height:1.02;white-space:nowrap;overflow-wrap:normal}
.dashboard .metric-bottom>small{font-size:clamp(10px,.8vw,12px);line-height:1.1;letter-spacing:.4px}
.dashboard .metric-bottom .salary-date{font-size:clamp(10px,.82vw,13px)}
.countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px;align-items:end}
.countdown-unit{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.countdown-unit strong{font-size:clamp(21px,2.55vw,40px);line-height:1.05;font-weight:900;white-space:nowrap}
.countdown-unit small{font-size:clamp(9px,.7vw,11px);font-weight:700;line-height:1.1;letter-spacing:.6px}
.contract-card .status{display:grid;place-items:center;width:26px;height:26px;padding:2px;bottom:-5px;right:-7px}
.status .ui-icon{width:18px;height:18px}.status.done{background:#d5f7e7;color:#169b67}.status.pending{background:#ffca4a;color:#805000}
@media(min-width:1200px){.dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){
 :root{--fc-bottom-nav-height:64px}
 .layout-app{padding:20px 14px calc(var(--fc-bottom-nav-height) + env(safe-area-inset-bottom) + 16px)}
 .dashboard{gap:13px}.dashboard .metric{border-radius:20px;min-height:0}
 .dashboard .metric-top{min-height:0;font-size:clamp(14px,3.5vw,19px);padding:12px 8px;line-height:1.12;letter-spacing:2px}
 .dashboard .metric-top .ui-icon{width:33px;height:33px}
 .dashboard .metric-bottom{padding:12px 8px 13px;gap:2px}
 .dashboard .metric-bottom>strong{font-size:clamp(27px,7vw,40px)}
 .dashboard .metric-bottom>small{font-size:clamp(10px,2.4vw,12px)}
 .countdown{gap:2px}.countdown-unit strong{font-size:clamp(24px,7.4vw,43px)}.countdown-unit small{font-size:clamp(9px,2.4vw,11px)}
 .bottom-nav{position:fixed!important;bottom:0!important;top:auto!important;left:0;right:0;height:calc(var(--fc-bottom-nav-height) + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);margin:0;display:flex;align-items:stretch;justify-content:space-around;box-sizing:border-box;z-index:1000;box-shadow:0 -2px 9px #00000012}
 .bottom-nav a{padding:7px 2px 5px;display:flex;align-items:center;justify-content:center;gap:3px;min-height:0;font-size:clamp(9px,2.2vw,11px)}
 .bottom-nav .ui-icon{width:25px;height:25px}
}
@media(max-width:380px){.countdown-unit strong{font-size:clamp(22px,7vw,29px)}.dashboard .metric-top{font-size:13px;letter-spacing:1.2px}.bottom-nav .ui-icon{width:22px;height:22px}}

/* V2.0.3: dashboard typography and updated icons */
.dashboard .metric-bottom{gap:5px}
.dashboard .metric-bottom>strong{margin-bottom:3px}
.dashboard .metric-bottom>small{line-height:1.3}
.countdown-unit strong{font-size:clamp(19px,2.1vw,34px);line-height:1.04}
.countdown-unit small{margin-top:3px}
@media(max-width:850px){.dashboard .metric-bottom{gap:5px}.dashboard .metric-bottom>strong{margin-bottom:3px}.countdown-unit strong{font-size:clamp(22px,6.5vw,36px)}}
@media(max-width:380px){.countdown-unit strong{font-size:clamp(20px,6vw,28px)}}
.ico-bearbeiten{mask-image:url("icons/ico_bearbeiten.svg");-webkit-mask-image:url("icons/ico_bearbeiten.svg")}

/* V2.0.4: unified 6px controls and contract toolbar */
:root{--fc-control-radius:6px}
button,input,select,textarea,.add,.primary,.secondary,.edit,.mark-button,.danger,.icon-button,.heading-row select,.year-nav,.field input,.field select,.field textarea,.actions input{border-radius:var(--fc-control-radius)}
.contract-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,220px);gap:12px;align-items:stretch;margin:0 0 12px}
.contract-toolbar .add{display:flex;align-items:center;justify-content:center;min-width:0;padding:12px 16px;border-radius:var(--fc-control-radius);font-size:15px}
.contract-sort{min-width:0;display:flex}.contract-sort select{width:100%;min-width:0;padding:10px 12px;background:#fff;border:1px solid #8d98a4;border-radius:var(--fc-control-radius);color:#292d32;font-weight:600}
.contract-search{position:relative;width:100%;margin-bottom:16px}.contract-search input{width:100%;min-width:0;height:46px;padding:10px 88px 10px 14px;border:1px solid #cbd6e5;border-radius:var(--fc-control-radius);background:#fff;outline-offset:2px;color:#20242c}.contract-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.contract-search input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.contract-search .search-icon,.contract-search .search-clear{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;color:#48505c}.contract-search .search-icon{right:9px;pointer-events:none}.contract-search .search-clear{right:44px;background:transparent;border:0;cursor:pointer;padding:6px}.contract-search .ui-icon{width:20px;height:20px}.contract-search .search-clear[hidden]{display:none!important}
@media(max-width:850px){.contract-toolbar{grid-template-columns:minmax(0,1fr) minmax(125px,39%);gap:8px}.contract-toolbar .add{font-size:clamp(11px,3vw,14px);padding:11px 6px;letter-spacing:0}.contract-sort select{font-size:clamp(12px,3.1vw,15px);padding:9px 5px}.contract-search input{height:44px}}

.ico-lupe{mask-image:url("icons/ico_lupe.svg");-webkit-mask-image:url("icons/ico_lupe.svg")}
.ico-cross_close_cancel{mask-image:url("icons/ico_cross_close_cancel.svg");-webkit-mask-image:url("icons/ico_cross_close_cancel.svg")}
/* Mobile navigation: no oversized empty white area */
@media(max-width:850px){
 :root{--fc-bottom-nav-height:54px}
 .bottom-nav{height:calc(54px + env(safe-area-inset-bottom))!important;min-height:0!important;padding:0 0 env(safe-area-inset-bottom)!important;align-items:center!important}
 .bottom-nav a{height:54px!important;min-height:0!important;padding:3px 2px!important;gap:2px!important;justify-content:center!important;line-height:1.1!important}
 .bottom-nav .ui-icon{width:21px!important;height:21px!important}
 .layout-app{padding-bottom:calc(54px + env(safe-area-inset-bottom) + 14px)!important}
}
/* Contract names get priority over amounts and controls on narrow screens */
@media(max-width:600px){
 .contract-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:'logo name name' 'logo amount amount' '. mark edit';gap:5px 10px;align-items:center}
 .contract-card .company-logo{grid-area:logo;align-self:start}
 .contract-card .contract-text{grid-area:name;min-width:0}
 .contract-card .contract-text b{overflow-wrap:normal;word-break:normal;font-size:16px}
 .contract-card .contract-amount{grid-area:amount;text-align:left;white-space:normal}
 .contract-card .mark-form{grid-area:mark;justify-self:end}
 .contract-card .edit{grid-area:edit;justify-self:end}
}

/* V2.0.5: mobile bottom navigation flush to the visible viewport edge.
   Previous versions reserved safe-area padding inside the nav, leaving a large
   blank white strip on some Android browsers. */
@media (max-width:850px) {
  :root { --fc-bottom-nav-height: 60px; }
  html, body { overflow-x:clip; }
  .bottom-nav {
    position:fixed !important;
    inset:auto 0 0 0 !important;
    bottom:0 !important;
    top:auto !important;
    width:100% !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    padding:0 !important;
    margin:0 !important;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch !important;
    background:#fff;
    z-index:9999;
    box-sizing:border-box;
    box-shadow:0 -2px 9px #00000012;
  }
  .bottom-nav a {
    height:60px !important;
    min-height:60px !important;
    width:100%;
    min-width:0;
    padding:5px 1px 4px !important;
    margin:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    line-height:1 !important;
    font-size:clamp(9px,2.3vw,11px) !important;
    white-space:nowrap;
  }
  .bottom-nav .ui-icon {
    display:block !important;
    flex:0 0 auto;
    width:23px !important;
    height:23px !important;
  }
  .layout-app { padding-bottom:calc(60px + 16px) !important; }
}

/* V2.0.6: automatic debit contracts have edit/delete controls, not paid toggles. */
.ico-loeschen{mask-image:url("icons/ico_loeschen.svg");-webkit-mask-image:url("icons/ico_loeschen.svg")}
.contract-controls{display:flex;flex:0 0 auto;align-items:center;gap:7px;margin-left:auto}
.contract-controls .delete-contract-form{margin:0;display:flex}
.contract-controls .contract-action{display:inline-grid;place-items:center;width:38px;height:38px;min-width:38px;min-height:38px;padding:8px;border:0;border-radius:6px;cursor:pointer;color:#fff;line-height:1}
.contract-controls .edit{background:#505258}
.contract-controls .contract-delete{background:#bd493f}
.contract-controls .contract-delete:hover{background:#a93831}
.contract-controls .edit:hover{background:#393c42}
.contract-controls .ui-icon{width:22px;height:22px}
@media(max-width:600px){
 .contract-card:not(.choose){grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:'logo name name' 'logo amount amount' '. controls controls';}
 .contract-card:not(.choose) .contract-controls{grid-area:controls;justify-self:end;margin-left:0}
}
/* V2.0.7: Katalogvorschläge */
.suggest-field{position:relative;min-width:0}.suggest-field>label{display:block;font-weight:700;margin-bottom:7px}.suggest-field>input{width:100%;box-sizing:border-box}.suggest-list{position:absolute;z-index:30;top:100%;left:0;right:0;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 8px 22px #0002;max-height:240px;overflow-y:auto}.suggest-option{display:block;width:100%;padding:11px 12px;border:0;border-bottom:1px solid #edf0f4;background:white;color:#172b4d;text-align:left;cursor:pointer;font:inherit}.suggest-option:hover,.suggest-option:focus{background:#eaf1fa}.admin-entry{padding:12px 0;border-top:1px solid #d9e1ea}.admin-entry summary{cursor:pointer;font-weight:700}.admin-entry form{margin:12px 0}

/* V2.0.8: compact contract cards, larger square logos and stacked actions */
.contract-card .company-logo,.contract-card .company-logo img{border-radius:4px;overflow:visible}
.contract-card .company-logo{border-radius:4px}
.contract-card .company-logo img{border-radius:4px;overflow:hidden}
@media(max-width:850px){
  header{height:61px!important}
  :root{--fc-header-height:61px}
  .layout-app{padding-top:21px!important}
  .contract-card:not(.choose){
    display:grid;
    grid-template-columns:60px minmax(0,1fr) 28px;
    grid-template-rows:auto auto;
    grid-template-areas:'logo name controls' 'logo amount controls';
    align-items:center;
    column-gap:11px;
    row-gap:2px;
    min-height:0;
    padding:7px 9px;
  }
  .contract-card:not(.choose) .company-logo{grid-area:logo;width:60px;height:60px;align-self:center}
  .contract-card:not(.choose) .contract-text{grid-area:name;min-width:0;align-self:end}
  .contract-card:not(.choose) .contract-text b{font-size:15px;line-height:1.15;overflow-wrap:normal;word-break:normal;hyphens:auto}
  .contract-card:not(.choose) .contract-text small{font-size:11px;line-height:1.15;margin-top:2px}
  .contract-card:not(.choose) .contract-amount{grid-area:amount;min-width:0;text-align:left;align-self:start;white-space:normal}
  .contract-card:not(.choose) .contract-amount b{font-size:15px;line-height:1.15}
  .contract-card:not(.choose) .contract-amount small{font-size:11px;line-height:1.15;margin-top:2px}
  .contract-card:not(.choose) .contract-controls{grid-area:controls;display:flex;flex-direction:column;align-self:center;justify-self:end;gap:4px;margin:0;width:28px}
  .contract-card:not(.choose) .contract-controls .contract-action{width:28px;height:28px;min-width:28px;min-height:28px;padding:5px}
  .contract-card:not(.choose) .contract-controls .ui-icon{width:17px;height:17px}
  .contract-card:not(.choose) .contract-controls .delete-contract-form{width:28px;height:28px}
}
/* V2.0.10 – compact savings controls and instant switches */
.savings-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.savings-action{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;min-height:100px;padding:13px 8px;border:1px solid #d4deea;border-radius:10px;background:#fff;color:#27313e;cursor:pointer;text-decoration:none}
.savings-action>span{font-size:27px;color:#073c9d;line-height:1.1}.savings-action strong{font-size:14px}.savings-action small{font-size:11px;color:#69778a}.savings-action:hover,.savings-action:focus-visible{border-color:#073c9d;background:#f1f5fb}
.savings-action.is-active {
  position: relative;
  border-color: #83b994;
  background: #e7f6eb;
}
.savings-action.is-active:hover, .savings-action.is-active:focus-visible {
  border-color: #247547;
  background: #d8f0df;
}
.savings-action.is-active small, .savings-confirmed-status {
  color: #21623b;
  font-weight: 700;
}
.savings-action > .savings-action-check {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #247547;
  font-size: 17px;
  font-weight: 700;
}

.savings-contract{cursor:default;gap:12px}.savings-contract .contract-text{flex:1}.savings-contract .contract-amount{margin-left:auto}.savings-switch{position:relative;flex:0 0 46px;width:46px;height:27px;display:block;cursor:pointer}.savings-switch input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}.savings-switch-track{position:absolute;inset:0;background:#c5c8cd;border-radius:30px;transition:background .15s}.savings-switch-track:before{content:"";position:absolute;left:3px;top:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}.savings-switch input:checked+.savings-switch-track{background:#073c9d}.savings-switch input:checked+.savings-switch-track:before{transform:translateX(19px)}.savings-switch input:focus-visible+.savings-switch-track{outline:3px solid #88b7ff;outline-offset:2px}.savings-switch input:disabled+.savings-switch-track{opacity:.5}.savings-list .company-logo{width:48px;height:48px}.savings-list .contract-text b,.savings-list .contract-amount b{font-size:15px}.savings-list .contract-text small,.savings-list .contract-amount small{font-size:11px}
.savings-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}.savings-modal-backdrop{position:absolute;inset:0;background:#121b2c9e}.savings-modal-panel{position:relative;width:min(100%,590px);max-height:min(85dvh,780px);overflow:auto;background:white;border-radius:14px;padding:22px;box-shadow:0 20px 80px #0004}.savings-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.savings-modal-head h2{margin:0}.savings-modal-close{border:0;background:#edf1f5;border-radius:6px;width:34px;height:34px;cursor:pointer;font-size:24px}.savings-modal .primary{background:#073c9d;color:white;border:0;border-radius:6px;padding:13px 16px;font-weight:800;margin-top:16px;width:100%;cursor:pointer}.small-action{border:1px solid #b9c6d6;background:#fff;border-radius:6px;padding:8px 12px;cursor:pointer}
@media(max-width:850px){.savings-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.savings-action{min-height:88px}.savings-contract{display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-areas:'logo name switch' 'logo amount switch';gap:2px 10px;padding:9px}.savings-contract .company-logo{grid-area:logo;width:42px;height:42px}.savings-contract .contract-text{grid-area:name}.savings-contract .contract-amount{grid-area:amount;text-align:left;margin:0;white-space:normal}.savings-contract .savings-switch{grid-area:switch}.savings-modal-panel{padding:17px}}

/* V2.0.11 – Benutzerverwaltung */
.admin-user-list{display:grid;gap:12px}.admin-user-card{display:grid;grid-template-columns:minmax(190px,1fr) minmax(130px,180px) minmax(130px,180px) auto;align-items:end;gap:12px;padding:14px;border:1px solid #d6e0eb;border-radius:8px;background:#fff}.admin-user-details{display:flex;flex-direction:column;gap:4px;min-width:0}.admin-user-details span{overflow-wrap:anywhere}.admin-user-details small{color:#65758c}.admin-user-card .field{margin:0}.admin-user-card .small-action{min-height:42px}@media(max-width:800px){.admin-user-card{grid-template-columns:1fr 1fr}.admin-user-details{grid-column:1/-1}.admin-user-card .small-action{grid-column:1/-1}}

/* V2.0.14: Gehalt – typography matches adjacent summary cards at all widths. */
.dashboard .metric.blue .countdown-unit strong{font-size:clamp(23px,2.5vw,41px);line-height:1.02}
.dashboard .metric.blue .countdown-unit small{font-size:clamp(10px,.8vw,12px);line-height:1.1;letter-spacing:.4px;margin-top:2px}
.dashboard .metric.blue .salary-date-row{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-width:0}
.dashboard .metric.blue .salary-date{font-size:clamp(10px,.82vw,13px);line-height:1.3;white-space:nowrap}
.dashboard .metric.blue .salary-date-edit,.dashboard .metric.blue .salary-swap{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:inherit;text-decoration:none;padding:2px;cursor:pointer}
.dashboard .metric.blue .salary-date-edit .ui-icon,.dashboard .metric.blue .salary-swap .ui-icon{width:18px;height:18px}
.dashboard .metric.blue .salary-date-edit:focus-visible,.dashboard .metric.blue .salary-swap:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.dashboard .metric.blue .metric-bottom{display:flex;flex-direction:column;align-items:center}
.dashboard .metric.blue.salary-swapped .salary-date-row{order:0;min-height:42px}
.dashboard .metric.blue.salary-swapped .salary-date{font-size:clamp(23px,2.5vw,41px);font-weight:900;line-height:1.02}
.dashboard .metric.blue.salary-swapped .countdown{order:1;width:min(100%,300px);margin-top:3px}
.dashboard .metric.blue.salary-swapped .countdown-unit strong{font-size:clamp(10px,.82vw,13px);font-weight:700;line-height:1.3}
.dashboard .metric.blue.salary-swapped .countdown-unit small{font-size:clamp(9px,.7vw,11px);margin-top:1px}
@media(max-width:850px){
 .dashboard .metric.blue .countdown-unit strong{font-size:clamp(23px,7vw,40px)}
 .dashboard .metric.blue .countdown-unit small{font-size:clamp(10px,2.4vw,12px)}
 .dashboard .metric.blue.salary-swapped .salary-date{font-size:clamp(23px,7vw,40px)}
 .dashboard .metric.blue.salary-swapped .countdown-unit strong{font-size:clamp(10px,2.4vw,12px)}
}
@media(max-width:380px){.dashboard .metric.blue .countdown-unit strong{font-size:clamp(21px,6.5vw,34px)}.dashboard .metric.blue.salary-swapped .salary-date{font-size:clamp(21px,6.5vw,34px)}}

/* V2.0.15: Keep salary time secondary, even when date is prominent. */
.dashboard .metric.blue .salary-date{display:inline-flex;align-items:baseline;justify-content:center;gap:5px;min-width:0}
.dashboard .metric.blue .salary-date-day{font-size:inherit;line-height:inherit}
.dashboard .metric.blue .salary-date-time{font-size:10px!important;font-weight:400;line-height:1;white-space:nowrap;letter-spacing:0}
.dashboard .metric.blue.salary-swapped .salary-date-time{font-size:10px!important}
@media(max-width:380px){.dashboard .metric.blue .salary-date-time{font-size:9px!important}}

/* V2.0.17: Raise the prominent salary date by ~25% of its 42px row height. */
.dashboard .metric.blue.salary-swapped .salary-date-row{transform:translateY(-10px)}

/* V2.0.17: On mobile, raise the prominent swapped salary date by 25% of its 42px row. */
@media(max-width:850px){
  .dashboard .metric.blue.salary-swapped .salary-date-row{transform:translateY(-10.5px)}
}

/* V2.0.18: Mobile salary typography uses the exact same scale as adjacent KPI cards. */
@media(max-width:850px){
  .dashboard .metric.blue .countdown-unit strong,
  .dashboard .metric.blue.salary-swapped .salary-date{
    font-size:clamp(27px,7vw,40px);
    line-height:1.02;
  }
  .dashboard .metric.blue .countdown-unit small,
  .dashboard .metric.blue.salary-swapped .countdown-unit strong,
  .dashboard .metric.blue.salary-swapped .countdown-unit small{
    font-size:clamp(10px,2.4vw,12px);
    line-height:1.1;
    letter-spacing:.4px;
  }
  .dashboard .metric.blue.salary-swapped .salary-date-time{
    font-size:10px!important;
    letter-spacing:0;
  }
}

/* V2.0.19: identical two-row geometry for both salary display modes.
   The swapped date no longer uses a visual transform that leaves phantom space. */
.dashboard .metric.blue .metric-bottom{
  display:grid;
  grid-template-rows:56px 28px;
  align-content:center;
  justify-items:center;
  row-gap:3px;
}
.dashboard .metric.blue .countdown,
.dashboard .metric.blue .salary-date-row{
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
  transform:none;
  align-self:center;
}
.dashboard .metric.blue .countdown{grid-row:1;align-items:center}
.dashboard .metric.blue .salary-date-row{grid-row:2;align-items:center}
.dashboard .metric.blue.salary-swapped .salary-date-row{
  grid-row:1;
  min-height:0;
  transform:none;
}
.dashboard .metric.blue.salary-swapped .countdown{
  grid-row:2;
  width:100%;
  margin:0;
  align-items:center;
}
.dashboard .metric.blue.salary-swapped .countdown-unit{gap:0}
.dashboard .metric.blue.salary-swapped .countdown-unit small{margin-top:0}
@media(max-width:850px){
  .dashboard .metric.blue .metric-bottom{grid-template-rows:56px 28px;row-gap:3px}
  .dashboard .metric.blue.salary-swapped .salary-date-row{transform:none}
}

/* V2.0.25: clear separation between the four large salary countdown units.
   Keep the fixed two-row geometry and compact swapped countdown unchanged. */
.dashboard .metric.blue:not(.salary-swapped) .countdown{
  width:min(100%,360px);
  grid-template-columns:repeat(4,minmax(0,1fr));
  column-gap:clamp(15px,5vw,28px);
  justify-self:center;
}
.dashboard .metric.blue:not(.salary-swapped) .countdown-unit{
  min-width:0;
  text-align:center;
  align-items:center;
}
@media(max-width:380px){
  .dashboard .metric.blue:not(.salary-swapped) .countdown{
    column-gap:15px;
  }
}

/* V2.0.26: savings status and desktop accrued amounts */
.contract-card .company-logo .savings-badge{position:absolute;left:-7px;bottom:-5px;width:26px;height:26px;display:grid;place-items:center;background:#8148af;color:#fff;border:2px solid #fff;border-radius:7px;z-index:2}
.contract-card .company-logo .savings-badge .ui-icon{width:17px;height:17px}
.contract-card .company-logo .status{z-index:2}
.saved-amount{display:block;color:#16844e;font-size:13px;font-weight:800;margin-bottom:3px}
.savings-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:15px;font-weight:700;line-height:1.4}
.savings-confirm input{width:20px;height:20px;flex-shrink:0;accent-color:#8148af}
@media(max-width:850px){.saved-amount{display:none}}

.savings-contract-progress progress { display: block; width: 100%; max-width: 12rem; accent-color: #8148af; }

.dashboard .metric.purple, .savings-summary {
  --savings-light: #ded1e9;
  --savings-dark: #58208c;
  --savings-track: #fff;
}
.dashboard .metric.purple { --savings-dark: #794ba9; }
.dashboard .metric.purple .metric-top {
  background: var(--savings-light);
  color: var(--savings-dark);
}
.dashboard .metric.purple .metric-bottom, .savings-summary-body {
  background: var(--savings-dark);
  color: white;
  text-align: center;
}
.dashboard .metric.purple .metric-bottom > strong { white-space: normal; overflow-wrap: anywhere; }
.savings-summary {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}
.savings-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px clamp(10px, 3vw, 24px);
  background: var(--savings-light);
  color: var(--savings-dark);
}
.savings-summary-top h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(13px, 3.5vw, 21px);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.savings-summary-top .ui-icon { width: 34px; height: 34px; flex: none; }
.savings-info {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.savings-info span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}
.savings-info:hover { background: #fff7; }
.savings-info:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.savings-summary-body { padding: 16px clamp(12px, 3vw, 28px); }
.savings-summary-body .savings-big {
  color: inherit;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.savings-summary-body .savings-big span { font-size: .52em; white-space: nowrap; }
.savings-summary-body p { margin: 4px 0; }
.savings-target { font-weight: 800; }
.savings-meter {
  display: block;
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 8px 0 4px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--savings-track);
}
.savings-meter::-webkit-progress-bar { background: var(--savings-track); }
.savings-meter::-webkit-progress-value { background: var(--savings-light); }
.savings-meter::-moz-progress-bar { background: var(--savings-light); }
.savings-summary .savings-meter { height: 18px; margin-top: 13px; }
.savings-progress-caption { text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.savings-forecast {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #fff5;
  font-size: 13px;
}
.savings-forecast strong { margin-left: 4px; }

.dashboard .savings-dashboard-body { text-transform: uppercase; }

.contract-salary-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  background: #083b9e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.contract-salary-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffca00;
  color: #083b9e;
  text-transform: uppercase;
}
.contract-salary-label .ui-icon { width: 19px; height: 19px; }

.page-modal {
 position: fixed;
 width: min(720px, calc(100% - 24px));
 max-height: calc(100dvh - 32px);
 padding: clamp(16px, 4vw, 28px);
 border: 0;
 border-radius: 16px;
 margin: auto;
 overflow: auto;
 color: #30343a;
 background: #fff;
}
.page-modal::backdrop { background: rgb(16 29 49 / 65%); }
.page-modal-close {
 float: right;
 display: grid;
 place-items: center;
 width: 44px;
 height: 44px;
 margin: -8px -8px 4px 8px;
 border-radius: 8px;
 background: #edf3fb;
 color: #083b9e;
 font-size: 25px;
}
.page-modal-body > h2 { margin: 0 46px 18px 0; }
.page-modal-body > .editor { clear: both; padding: 0; border: 0; box-shadow: none; }
body:has(.page-modal:modal) { overflow: hidden; }

.contract-form-row { display: contents; }

@media (min-width: 851px) {
  .page-modal .contract-form-row {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    align-items: end;
  }
  .page-modal .contract-payment-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-modal .contract-end-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-modal .contract-form-row > .field { min-width: 0; }
}

.contract-due-marker {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cbdff5;
  border-radius: 12px;
  background: #e7f2fe;
  color: #23496e;
  font-size: 14px;
  font-weight: 700;
}

.contract-clear-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  color: #fff;
  background: #237447;
}
.contract-clear-banner > .ui-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #fff;
}
.contract-clear-banner strong,
.contract-clear-banner span { display: block; }
.contract-clear-banner strong { font-size: 18px; margin-bottom: 3px; }
.contract-clear-banner span { line-height: 1.4; }

.dashboard-debits-clear .ui-icon {
  color: #c3f4d5;
  width: .85em;
  height: .85em;
}
.dashboard .metric-bottom > .dashboard-debits-message {
  text-transform: none;
  text-align: center;
}

.cancellation-actions { margin-top: 16px; }
.cancellation-panel { display: grid; gap: 14px; }
.cancellation-panel[hidden], .page-modal [hidden] { display: none; }
.cancellation-panel > .edit { justify-self: start; }
.cancellation-actions .cancellation-danger { background: #a92331; color: white; }
.cancellation-actions .primary { width: 100%; }
.cancellation-actions .primary:disabled { opacity: .55; cursor: not-allowed; }
.cancellation-addresses { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cancellation-addresses section, .cancellation-email, .cancellation-preview-box {
 background: #f1f5fa;
 padding: 14px;
 border-radius: 10px;
 overflow-wrap: anywhere;
}
.cancellation-addresses address { white-space: pre-wrap; font-style: normal; margin-top: 6px; }
.cancellation-email span { display: block; margin-top: 5px; }
.cancellation-preview-headers { white-space: pre-wrap; }
.cancellation-preview-box iframe {
 display: block;
 width: 100%;
 height: 470px;
 border: 1px solid #d2dded;
 background: #fff;
}
.cancellation-status { margin: 0; color: #a92331; }
.cancellation-status:empty { display: none; }
.cancellation-preview, [data-cancel-send] { margin-top: 8px; }
.contract-card.contract-cancelled { border: 1px solid #b52c3b; background: #fff0f2; }
.contract-cancelled-label { color: #922232; font-weight: 700; }
.contract-archive { margin-top: 28px; }
@media(max-width: 560px) {
 .cancellation-addresses { grid-template-columns: 1fr; }
}

.frontend-page .layout { padding-bottom: 70px; }
.contract-archive { margin-top: 38px; }
.contract-archive h2 { margin: 0 0 14px; }
.legal-page-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }

.mobile-legal-menu { display: none; position: relative; }
.mobile-legal-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}
.mobile-legal-menu summary::-webkit-details-marker { display: none; }
.mobile-legal-menu nav {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 170px;
  padding: 5px;
  border: 1px solid #d2dded;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #10274824;
  z-index: 1001;
}
.mobile-legal-menu nav a { display: block; padding: 12px; border-radius: 7px; font-size: 15px; }
.mobile-legal-menu nav a:hover, .mobile-legal-menu nav a:focus-visible { background: #e8f0fb; }

.desktop-footer { background: #083b9e; color: #fff; }
.desktop-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: var(--fc-page-width, 1320px);
  margin: auto;
  padding: 22px 32px;
}
.desktop-footer-brand { font-size: 22px; font-weight: 800; }
.desktop-footer-brand span { color: #ffca00; }
.desktop-footer nav { display: flex; gap: 24px; }
.desktop-footer nav a:hover, .desktop-footer nav a:focus-visible { text-decoration: underline; }

@media (min-width: 851px) {
  .frontend-page { min-height: 100dvh; display: flex; flex-direction: column; }
  .frontend-page .layout { flex: 1 0 auto; margin-block: 0; }
  .frontend-page .layout-auth { min-height: 0; }
}
@media (max-width: 850px) {
  .mobile-legal-menu { display: block; }
  .desktop-footer { display: none; }
  .frontend-page .layout-app {
    padding-bottom: calc(70px + 54px + env(safe-area-inset-bottom)) !important;
  }
}

.contract-field-caption { display:flex; align-items:center; gap:7px; }
.contract-field-help {
 width:25px; height:25px; padding:0; border:1px solid #cbd6e5; border-radius:50%;
 background:#edf3fb; color:#083b9e; cursor:pointer;
}
.contract-help-dialog { width:min(440px,calc(100% - 24px)); border:0; border-radius:14px; padding:24px; }
.contract-help-dialog::backdrop { background:#172c4b88; }
.contract-account-email > .edit { margin-top:8px; }
.contract-email-fields { margin-top:12px; }
.contract-email-status:empty { display:none; }
.contract-email-swatch { display:inline-block; width:12px; height:12px; border:1px solid #64748b; border-radius:50%; vertical-align:middle; }
.profile-email-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #dfe7f0; }
.profile-email-row span { flex:1; overflow-wrap:anywhere; }
.profile-email-add { margin-top:16px; }
#profile-emails input[type="color"], .contract-email-fields input[type="color"] { width:48px; height:40px; padding:4px; }
#profile-emails > .field { margin-bottom:16px; }

.contract-card.contract-savings {
  background: #f8edf8;
  border-color: #ad77bf;
  color: #4e206c;
}
.contract-savings .company-logo {
  background: #ead5ef;
  color: #68328c;
}
.contract-savings .company-logo .ui-icon {
  width: 65%;
  height: 65%;
}
.contract-savings .contract-text small,
.contract-savings .contract-amount small {
  color: #653d76;
}

.ico-history {
  mask-image: url("icons/ico_history.svg?v=2.0.58");
  -webkit-mask-image: url("icons/ico_history.svg?v=2.0.58");
}
.contract-card.contract-cancellation-pending {
  border-color: #d8a414;
  background: #fff5cb;
}
.cancellation-pending-label { color: #604600; font-weight: 700; }
.activity-log { display: grid; gap: 10px; margin-bottom: 16px; }
.activity-log p { margin: 8px 0 0; overflow-wrap: anywhere; }
.cancellation-response-page { max-width: 760px; margin: 24px auto; padding: 0 14px; }
.cancellation-response-page dd { margin: 4px 0 12px; overflow-wrap: anywhere; }
[data-response-fields] [hidden] { display: none; }
@media(max-width:850px) {
  .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav a { font-size: clamp(8px, 2vw, 10.5px); }
}

.profile-heading { flex-wrap: nowrap; margin-bottom: 18px; }
.profile-heading h1 { margin: 0; }
.profile-heading form { flex: 0 0 auto; margin: 0; }

.contract-payment-heading { grid-column: 1 / -1; margin: 4px 0 0; font-size: 1rem; color: #4d3700; }
.contract-payment-important { background: #ffec9f; border-radius: 8px; padding: 8px 10px; }
.contract-payment-important input, .contract-payment-important select { border-color: #ad7b16; }

.fc-log-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 150px),1fr)); gap: 10px; margin-bottom: 16px; }
.fc-log-filters > div { align-self: end; }
@media(max-width: 850px) {
 .contract-form-row.contract-payment-important > .field {
  background: #ffec9f;
  border-radius: 8px;
  padding: 8px 10px;
 }
}

.layout.layout-landing { display: block; max-width: 1240px; margin-inline: auto; }
.fc-landing { --landing-ink: #102d55; color: var(--landing-ink); }
.fc-landing h1, .fc-landing h2, .fc-landing h3 { margin: 0; color: inherit; }
.fc-landing p { line-height: 1.55; }
.fc-landing-hero, .fc-landing-feature {
 display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
 align-items: center; gap: clamp(20px,5vw,70px);
}
.fc-landing-hero { padding: clamp(12px,4vw,56px) 0 clamp(34px,7vw,90px); }
.fc-landing-hero h1 { font-size: clamp(39px,5.4vw,76px); line-height: .99; letter-spacing: -.055em; }
.fc-landing-hero h1 em { font-style: normal; background: linear-gradient(transparent 60%,#ffd65c 60% 94%,transparent 94%); }
.fc-landing-hero p { font-size: clamp(17px,2vw,22px); max-width: 32ch; }
.fc-landing-hero figure { margin: 0; }
.fc-landing-hero video { display: block; width: 100%; aspect-ratio: 16/9; background: #0a2b56; object-fit: contain; }
.fc-landing-hero figcaption { margin-top: 8px; font-size: .875rem; text-align: right; }
.fc-landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fc-landing-actions a { display: inline-flex; align-items: center; }
.fc-landing-section { padding: clamp(28px,5vw,68px) 0; border-top: 1px solid #c7d7e8; }
.fc-landing-section h2 { font-size: clamp(29px,4vw,54px); letter-spacing: -.04em; line-height: 1.06; }
.fc-landing-feature { margin-top: clamp(22px,4vw,48px); }
.fc-landing-copy { max-width: 36ch; font-size: 19px; }
.fc-landing-copy a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.fc-landing-dashboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fc-landing-dashboard .metric { border-radius: 13px; display: flex; flex-direction: column; }
.fc-landing-dashboard .metric-top { flex: 1; align-content: center; font-size: 15px; letter-spacing: .025em; }
.fc-landing-dashboard .metric-bottom strong { font-size: clamp(26px,4vw,48px); }
.fc-landing-dashboard .metric-bottom small { font-size: 12px; letter-spacing: 0; }
.fc-landing-workflow > div, .fc-landing-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 26px; }
.fc-landing-workflow article, .fc-landing-plans article { padding: 16px 0; border-top: 3px solid #9dc5d3; }
.fc-landing-workflow article:nth-child(2), .fc-landing-plans article:nth-child(2) { border-color: #f4c739; }
.fc-landing-workflow article:nth-child(3), .fc-landing-plans article:nth-child(3) { border-color: #a777c1; }
.fc-landing-plans article:nth-child(2) { background: #fff4c9; padding-inline: 14px; }
.fc-landing-plans strong { display: block; margin-top: 9px; font-size: clamp(26px,3.2vw,40px); letter-spacing: -.04em; }
.fc-landing-plans strong small { font-size: .45em; letter-spacing: normal; }
.fc-landing-roadmap { border-block: 1px solid #c7d7e8; padding: 14px 0; }
.fc-landing-roadmap summary { cursor: pointer; font-weight: 700; }
.fc-landing-roadmap li { margin-block: 8px; }
@media(max-width: 720px) {
 .fc-landing-hero, .fc-landing-feature, .fc-landing-workflow > div, .fc-landing-plans { grid-template-columns: 1fr; }
 .fc-landing-hero figure { order: -1; }
}

.fc-landing-pro {
 padding: clamp(24px, 5vw, 64px);
 background: #07389c;
 color: #fff;
}
.fc-landing-pro .fc-landing-pro-label {
 display: inline-block;
 margin: 0 0 16px;
 padding: 4px 10px;
 background: #ffcb00;
 color: #102d55;
 font-weight: 800;
}
.fc-landing-pro h2 {
 font-size: clamp(30px, 4vw, 56px);
 line-height: 1.05;
 letter-spacing: -.04em;
}
.fc-landing-pro-intro { max-width: 58ch; font-size: 1.15rem; }
.fc-landing-pro-steps {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 24px;
 margin: 26px 0;
 padding-left: 1.4em;
}
.fc-landing-pro-steps li { padding: 10px 0 0; border-top: 1px solid #ffffff65; }
.fc-landing-pro-steps li::marker { color: #ffcb00; font-weight: 800; }
.fc-landing-pro-steps p { margin: 8px 0 0; }
.fc-landing-pro a.primary { display: inline-block; max-width: 100%; white-space: normal; }
@media(max-width: 720px) {
 .fc-landing-pro-steps { grid-template-columns: 1fr; gap: 16px; }
}

.fc-landing-actions .fc-landing-signin {
 background: #07389c;
 border-color: #07389c;
 color: #fff;
}
.ico-download_export {
 mask-image: url("icons/ico_download_export.svg");
 -webkit-mask-image: url("icons/ico_download_export.svg");
}
.fc-export-heading { flex-wrap: nowrap; margin-bottom: 16px; }
.fc-export-heading h1 { margin: 0; min-width: 0; }
.fc-export { position: relative; margin-left: auto; flex: 0 0 auto; }
.fc-export[open] { z-index: 10020; }
.fc-export summary {
 display: flex; align-items: center; gap: 7px; padding: 8px 12px;
 list-style: none; margin: 0; border-radius: 8px; font-size: .875rem;
}
.fc-export summary::-webkit-details-marker { display: none; }
.fc-export summary .ui-icon { width: 18px; height: 18px; }
.fc-export-options {
 position: absolute; inset: calc(100% + 6px) 0 auto auto; min-width: 130px;
 background: #fff; color: #102d55; padding: 4px;
 border: 1px solid #cfdaea; border-radius: 8px; box-shadow: 0 5px 16px #102d5529;
}
.fc-export-options a { display: block; padding: 9px 12px; font-weight: 700; }
.fc-export-options a:hover, .fc-export-options a:focus-visible { background: #ebf2fa; }

.desktop-nav a { text-transform: none; }
.bottom-nav a, .mobile-legal-menu nav a { text-transform: uppercase; }
@media (max-width: 1199px) {
 .desktop-nav a { text-transform: uppercase; }
}

.fc-user-menu { position: relative; color: #07389c; }
.fc-user-menu[open] { z-index: 10021; }
.fc-user-menu summary {
 display: grid; place-items: center; width: 42px; height: 42px;
 cursor: pointer; list-style: none;
}
.fc-user-menu summary::-webkit-details-marker { display: none; }
.fc-user-menu summary .ui-icon { width: 25px; height: 25px; }
.fc-user-menu nav {
 position: absolute; top: calc(100% + 6px); right: 0; min-width: 155px;
 padding: 4px; border: 1px solid #cfdaea; border-radius: 8px;
 background: #fff; box-shadow: 0 5px 16px #102d5529;
}
.fc-user-menu nav a { display: block; padding: 10px; font-size: .9rem; font-weight: 700; }
.fc-user-menu nav a:hover, .fc-user-menu nav a:focus-visible, .fc-user-menu nav a[aria-current] { background: #ebf2fa; }
@media (max-width: 1199px) { .fc-user-menu nav a { text-transform: uppercase; } }
.fc-news-list { display: grid; gap: 16px; max-width: 740px; }
.fc-news-item time { display: block; color: #526477; font-size: .9rem; }
.fc-news-item img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; margin-top: 12px; }
.fc-news-item h2 { margin: 12px 0 0; font-size: 1.15rem; }
.fc-news-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.fc-news-coupon code { display: inline-block; background: #fff2bc; padding: 6px 9px; color: #102d55; user-select: all; overflow-wrap: anywhere; }

.fc-response-email-box {
 display: flex; align-items: center; gap: 10px;
 margin-top: 12px; padding: 12px; border: 1px solid #cfdaea;
 border-radius: 8px; background: #f1f5fa; cursor: pointer;
}
.fc-response-email-box input { flex: 0 0 auto; margin: 0; }

.fc-provider-response {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}
.fc-provider-response .fc-provider-header { justify-content: center; }
.fc-provider-response .cancellation-response-page { width: 100%; flex: 1 0 auto; }
.fc-provider-response .desktop-footer { display: block; }
.fc-provider-response .desktop-footer-inner,
.fc-provider-response .desktop-footer nav { flex-wrap: wrap; }

.fc-provider-legal {
 box-sizing: border-box; width: min(640px, calc(100% - 28px));
 max-height: calc(100dvh - 36px); overflow: auto;
 padding: clamp(16px, 4vw, 28px); border: 1px solid #cfdaea;
 border-radius: 12px; color: #182638;
}
.fc-provider-legal::backdrop { background: #17243899; }
.fc-provider-legal-heading {
 display: flex; justify-content: space-between; align-items: center; gap: 12px;
 margin-bottom: 16px;
}
.fc-provider-legal-heading h2, .fc-provider-legal-heading form { margin: 0; }
.fc-provider-legal .legal-page-text { overflow-wrap: anywhere; }

[hidden] { display: none !important; }
.fc-landing-actions .fc-landing-signin { background: transparent; padding: 8px; text-decoration: underline; }
.landing-benefits { display: flex; padding: 0; gap: 8px 14px; flex-wrap: wrap; list-style: none; }
.landing-frist-preview { background: #e4eefb; padding: clamp(18px, 5vw, 56px); border-radius: 20px; }
.landing-frist-preview .card { margin: 0; border-left: 5px solid #eabb42; }
.fc-landing-plans .landing-pro-plan { border: 2px solid #254b7b; }
.plan-highlight, .deadline-badge { background: #254b7b; color: white; padding: 3px 8px; border-radius: 12px; }
.deadline-badge { background: #a42536; padding: 2px 5px; font-size: 10px; }
.auth input, .editor input, .cancellation-panel input, .cancellation-panel textarea { font-size: 16px; }
.auth .password-field { display: flex; gap: 8px; align-items: center; }
.auth .password-field input { flex: 1; min-width: 0; }
.auth .auth-label, .contract-heading-actions, .deadline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auth .auth-label { justify-content: space-between; }
.auth .auth-label a, .text-button, .fc-log-filters a { text-decoration: underline; }
.text-button { border: 0; background: transparent; color: #234976; cursor: pointer; }
.contract-heading-actions .add { width: auto; margin: 0; }
.contract-heading-actions .fc-export summary { background: transparent; border: 1px solid #234976; color: #234976; }
.deadline-actions form { margin: 0; }
.deadline-table { overflow-x: auto; }
.deadline-table table, .evidence-table { width: 100%; border-collapse: collapse; text-align: left; }
.deadline-table th, .deadline-table td, .evidence-table th, .evidence-table td { padding: 10px; border-bottom: 1px solid #d3deeb; }
.deadline-label { color: #715200; background: #fff3cc; width: fit-content; padding: 3px 6px; border-radius: 4px; }
.deadline-label.is-urgent { color: #93253b; background: #fce4e8; }
.salary-summary { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 8px 12px; margin-block: 12px; background: #e7f0fb; border-radius: 8px; }
.contract-menu summary, .savings-optional summary { cursor: pointer; }
.contract-menu[open] { min-width: max-content; }
.contract-menu[open] > :not(summary) { display: inline-flex; vertical-align: middle; }
.contract-save { position: sticky; bottom: 0; z-index: 1; background: #fff; padding: 10px 0; }
.contract-save .primary { margin: 0; }
.cancellation-send { background: #153c68; color: white; }
.cancellation-send:disabled { opacity: .55; }
.savings-optional .savings-actions { margin-top: 12px; }
.fc-log-filters .log-refinements { grid-column: 1 / -1; }
.log-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.evidence-wrap { overflow-x: auto; }
@media (max-width: 760px) {
 .fc-landing-actions { flex-direction: column; align-items: stretch; text-align: center; }
 .fc-landing-actions > .primary { min-height: 52px; display: grid; place-items: center; }
 .fc-landing-plans .landing-pro-plan { order: -1; }
 .bottom-nav a { font-size: 11px !important; min-height: 48px !important; text-transform: none; }
}
.contract-save .remind-contract, .contract-save > small { display: block; margin-bottom: 6px; }
.contract-save .remind-contract input, .auth input[type="checkbox"] { width: auto; }
.fc-landing-actions .fc-landing-signin { color: #234976; border: 0; }
.contract-heading { flex-wrap: wrap; }
.contract-toolbar { display: flex; justify-content: flex-end; }
.contract-heading-actions .fc-export summary:hover { background: #e7f0fb; }
.contract-row-actions { gap: 6px; align-items: center; }
.contract-row-actions .edit { white-space: nowrap; }
.contract-menu summary { padding: 6px 8px; list-style: none; }
.cancellation-addresses section { min-width: 0; }
.cancellation-addresses .field { margin-top: 8px; }
.savings-intro a.primary, .onboarding a.primary { display: inline-block; width: auto; }
@media (max-width: 480px) {
 .contract-row-actions { flex-wrap: wrap; }
 .contract-heading-actions { width: 100%; justify-content: flex-end; }
 .contract-heading-actions .fc-export { margin-left: 0; }
}

.fixed-deadline {
 padding: 12px;
 border: 1px solid #dfe7f0;
 border-radius: 9px;
 background: #f2f6fa;
}

.savings-editor-link { text-decoration: underline; }

.support-banner {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 8px 16px;
 padding: 10px 20px;
 color: #271d09;
 background: #ffe4a0;
}
.support-banner form { margin: 0; }
