:root{--ink:#222c40;--muted:#637084;--red:#c61c3d;--line:#e6e9ed;--paper:#f8f9fb;--free:#e7f5ee;--partial:#e5effc;--full:#fae8ed}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:14px;padding:11px 16px;min-height:44px;font-weight:650}button:hover{filter:brightness(.97)}button:disabled{opacity:.35;cursor:default}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #216097;outline-offset:3px}svg{width:24px;height:24px;flex:none}h1{font-size:48px;letter-spacing:-2px;line-height:1.1;margin:5px 0 12px;font-weight:780}h2{font-size:20px;letter-spacing:-.5px;margin:0}h3{margin:0;font-size:19px}p{margin:8px 0 16px}.red{color:var(--red)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--muted)}.muted{color:var(--muted)}.small{font-size:12px}.demo{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.8px;color:#5c6575;background:#edf0f4;padding:4px max(24px,calc((100% - 1120px)/2));gap:10px}.demo b{padding:0 6px}.demo button{font-size:11px;min-height:28px;padding:2px 8px;border:0;background:transparent;font-weight:500}header{height:86px;max-width:1168px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:15px}.brand{display:flex;align-items:center;font-size:27px;letter-spacing:-1px;font-weight:800}.brand span{color:var(--red)}.brand svg{width:29px;height:32px;margin-right:9px}.header-note{font-size:12px;color:var(--muted);margin-left:15px}.profile{margin-left:auto;border:3px solid white;box-shadow:0 0 0 1px #dce1e8;background:#eee5e7;color:#7d3346;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;font-size:12px;font-weight:750}nav{position:absolute;top:52px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:4px;border-radius:18px;background:#e9edf2}nav a{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 20px;min-height:44px;border-radius:13px;font-weight:650;font-size:13px;color:var(--muted)}nav svg{width:19px;height:19px}nav a[aria-current]{background:white;box-shadow:0 3px 8px #22334b0a;color:var(--red)}main{max-width:1040px;margin:35px auto 0;padding:0 24px 40px}main:focus{outline:none}.greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.greeting p:last-child{color:var(--muted);margin-bottom:0}.hello{color:var(--red);font-size:58px;line-height:1;transform:rotate(-15deg);margin-right:20px}.home-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:45px}.section-head{display:flex;align-items:center;gap:10px;margin-bottom:15px}.count{font-size:11px;color:#616e80;background:#e9edf2;border-radius:20px;min-width:23px;text-align:center;padding:2px 6px}.ticket{text-align:left;width:100%;background:linear-gradient(120deg,#b61636,#d62948);border:0;color:white;padding:24px 27px;border-radius:24px;box-shadow:0 12px 25px #bc193024;position:relative;overflow:hidden}.ticket:after{content:'';position:absolute;width:210px;height:210px;border:1px solid #ffffff18;border-radius:50%;top:-100px;right:-60px;pointer-events:none}.ticket-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;letter-spacing:1px}.ticket-top>span:last-child{letter-spacing:0;background:#ffffff20;border:1px solid #ffffff40;border-radius:20px;padding:5px 8px;font-size:10px}.ticket-body{display:flex;gap:22px;align-items:center;padding:24px 0}.date-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;border-radius:13px;width:66px;height:75px;background:#ffffff18;border:1px solid #ffffff35}.date-tile b{font-size:30px;line-height:1.1;letter-spacing:-1px}.date-tile>span{font-size:11px;font-weight:500}.ticket h3{font-size:24px;letter-spacing:-.6px}.ticket p{font-size:16px;margin:3px 0 0;color:#fff}.ticket-bottom{display:flex;align-items:center;gap:10px;padding-top:18px;border-top:1px dashed #ffffff60;font-size:12px;font-weight:600}.ticket-bottom small{display:block;font-size:10px;font-weight:400;color:#fff;margin-top:2px}.ticket-bottom svg{margin-left:auto;width:20px}.team-avatar{border:2px solid white;width:32px;height:32px;border-radius:50%;background:#f0d8d2;color:#6c343b;display:grid;place-items:center;font-size:11px}.next-line{display:flex;align-items:center;text-align:left;gap:15px;width:100%;padding:16px 18px;margin-top:14px;border-radius:18px}.next-line .date-tile{background:#f2f4f7;color:var(--ink);border:0;width:46px;height:54px}.next-line .date-tile b{font-size:22px}.next-line strong{font-size:13px}.next-line small{font-size:11px;color:var(--muted);display:block;font-weight:400}.next-line svg{margin-left:auto;width:18px}.text-link{border:0;background:transparent;display:flex;align-items:center;gap:9px;font-size:12px;padding:12px 0;color:var(--muted);font-weight:600}.text-link svg{width:16px}.actions-block{padding-top:40px;display:flex;flex-direction:column;gap:14px}.request-cta{display:flex;align-items:center;text-align:left;gap:15px;padding:22px;border:1px solid #efc7cf;border-radius:22px;background:#fff0f2;color:#9e1730}.request-cta>svg{margin-left:auto;width:20px}.cta-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--red);color:white;flex:none}.request-cta strong{display:block;font-size:19px;letter-spacing:-.5px}.request-cta small{font-size:12px;font-weight:450;display:block;margin-top:3px}.inbox-link,.calendar-link{display:flex;align-items:center;text-align:left;gap:15px;padding:21px;border-radius:20px}.inbox-number{font-size:23px;background:#fff1d5;color:#775210;width:45px;height:45px;display:grid;place-items:center;border-radius:14px;flex:none}.inbox-link strong,.calendar-link strong{display:block;font-size:14px}.inbox-link small,.calendar-link small{display:block;color:var(--muted);font-size:11px;font-weight:450;margin-top:4px}.inbox-link>svg,.calendar-link>svg:last-child{margin-left:auto;width:18px}.calendar-link>svg:first-child{width:26px;margin:0 9px;color:#657792}.stock-link{display:flex;align-items:center;gap:12px;padding:12px 10px;font-size:12px;border:0;background:transparent;color:var(--muted);margin-top:0}.stock-link svg{width:20px}.stock-link span:last-child{margin-left:auto}.captain-link{background:#24354d;color:white;text-align:left;border:0;padding:20px;display:grid;gap:5px}.cap-label{font-size:9px;letter-spacing:1.6px;color:#e0e7f1}.captain-link strong{font-size:16px}.captain-link>span:last-child{font-size:12px}.endnote{margin-top:45px;border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--muted)}.endnote span{color:var(--red);float:right;font-size:19px}.foot{font-size:10px;color:var(--muted);margin-top:24px}.plan-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.plan-title h1{font-size:36px}.round{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;padding:0}.planner-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:start}.calendar-panel{padding:24px;background:white;border:1px solid var(--line);border-radius:24px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.calendar-head h2{font-size:21px}.calendar-head h2 span{font-weight:400;color:var(--muted);font-size:16px;margin-left:3px}.calendar-head button{border:0;font-size:25px;padding:0;width:35px;min-height:44px;background:transparent}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.weekday{font-size:11px;color:var(--muted);text-align:center;padding-bottom:10px}.day{position:relative;min-width:0;min-height:58px;padding:7px 0 5px;border:1px solid transparent;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:14px;font-weight:650}.free{background:var(--free);color:#205e45}.partial{background:var(--partial);color:#245e91}.full{background:var(--full);color:#922b43}.slots{display:flex;gap:3px}.slots i{border:1px solid currentColor;width:5px;height:5px;border-radius:50%}.slots i.filled{background:currentColor}.day.selected{outline:2px solid var(--red);outline-offset:2px}.day .own-mark{position:absolute;right:-2px;top:-6px;font-size:10px;width:17px;height:17px;display:grid;place-items:center;border:2px solid white;border-radius:50%;line-height:1}.approved{background:#e5effc;color:#245e91}.pending{background:#fff0c9;color:#805400}.waitlisted{background:#f1e9f8;color:#6d4587}.cancelled,.rejected{background:#fae8ed;color:#922b43}.legend{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-top:22px;color:#526074}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:11px;height:11px;border:1px solid currentColor;border-radius:4px}.own-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:9px;color:#596679;margin-top:14px}.rules{border-top:1px solid var(--line);margin-top:17px;padding-top:13px;color:#596679;font-size:11px}.rules p{line-height:1.65}.rules summary{cursor:pointer;min-height:28px}.day-panel{scroll-margin-top:20px}.choose{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:390px;color:var(--muted);padding:30px}.choose>span{display:grid;place-items:center;width:70px;height:70px;border-radius:22px;background:#eef1f5;margin-bottom:22px}.choose svg{width:30px;height:30px}.choose h2{color:var(--ink)}.choose p{font-size:14px;max-width:260px}.detail-heading{padding:15px 0}.detail-heading h2{font-size:25px;margin:5px 0 13px}.capacity{display:inline-block;font-size:11px;border-radius:20px;padding:6px 10px}.request{padding:17px;border:1px solid var(--line);border-radius:18px;background:white;margin:12px 0}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.person{display:flex;align-items:center;gap:10px}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#eef1f5;border-radius:50%;font-size:12px;font-weight:700;flex:none}.person strong{font-size:13px}.person small{font-size:11px;color:var(--muted)}.chip{display:inline-block;font-size:10px;border-radius:6px;padding:4px 7px;font-weight:650}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.actions button{font-size:11px;padding:8px 11px;border-radius:10px;flex:1}.primary{background:var(--red);color:white;border-color:var(--red)}.wide{display:flex;align-items:center;justify-content:center;width:100%;gap:8px;min-height:50px;font-size:14px;margin-top:17px}.wide svg{width:19px}.empty{border:1px dashed #cbd1d9;border-radius:16px;padding:25px;font-size:13px;color:var(--muted)}.wait-link{margin-top:20px}dialog{border:0;border-radius:24px;padding:27px;color:var(--ink);max-height:90dvh;overflow:auto;width:min(520px,calc(100% - 28px));box-shadow:0 20px 100px #17283d33}dialog::backdrop{background:#14253c66}dialog h2{font-size:23px}dialog h3{margin-top:24px;font-size:16px}dialog p{font-size:13px;color:#566277}dialog .row>button{border:0;font-size:25px;padding:0;width:44px}dialog label{display:block;font-size:13px;font-weight:650;margin-top:18px}dialog input,dialog select{display:block;width:100%;min-width:0;border:1px solid #c3cad4;border-radius:12px;padding:13px;margin-top:7px;background:white;font-size:15px}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.callout{padding:14px;background:#f1f3f7;border-radius:12px;margin-top:18px}.link-button{display:block;text-align:center;border-radius:12px;padding:12px;font-size:13px}.icon{border:0;font-size:25px}#formError{color:#a51a36}#form>.primary{margin-right:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#22324a;color:white;padding:13px 19px;border-radius:14px;max-width:90%;width:max-content;font-size:12px;z-index:20;box-shadow:0 8px 20px #0002}#toast:empty{display:none}
@media(max-width:950px){.header-note{display:none}.home-grid{gap:25px}nav{left:auto;right:85px;transform:none}.planner-grid{gap:20px}.calendar-panel{padding:20px}.day{min-height:53px}}
@media(max-width:719px){.demo{padding:4px 20px;font-size:9px}header{height:72px;padding:0 22px}.brand{font-size:25px}.brand svg{width:26px}.profile{width:36px;height:36px;font-size:10px}nav{position:fixed;bottom:0;top:auto;left:0;right:0;transform:none;border-radius:0;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:8px 22px calc(8px + env(safe-area-inset-bottom));z-index:10;gap:12px;justify-content:center}nav a{flex:1;max-width:220px;padding:8px 12px;font-size:12px;gap:8px;min-height:46px}nav a[aria-current]{box-shadow:none;background:#fff0f3}main{margin:16px auto 0;padding:0 22px 100px;max-width:480px}h1{font-size:35px;letter-spacing:-1.3px}.greeting{margin-bottom:25px}.greeting .eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:7px}.greeting p:last-child{font-size:13px}.hello{font-size:41px;margin-right:5px}.home-grid{display:flex;flex-direction:column;gap:13px}.section-head{margin-bottom:12px}.section-head h2{font-size:16px}.ticket{padding:19px 21px;border-radius:22px}.ticket-top{font-size:8px;letter-spacing:.7px}.ticket-body{padding:19px 0;gap:18px}.ticket h3{font-size:22px}.ticket p{font-size:14px}.date-tile{width:57px;height:65px}.date-tile b{font-size:29px}.ticket-bottom{padding-top:14px;font-size:11px}.ticket-bottom small{font-size:9px}.next-line{padding:12px 14px;margin-top:10px}.next-line .date-tile{height:44px;width:41px}.next-line .date-tile b{font-size:20px}.next-line strong{font-size:12px}.next-line small{font-size:10px}.text-link{font-size:11px;min-height:44px}.actions-block{padding-top:0;gap:12px}.request-cta{padding:17px;border-radius:18px;gap:13px}.request-cta strong{font-size:18px}.request-cta small{font-size:11px}.cta-icon{height:40px;width:40px;border-radius:12px}.inbox-link,.calendar-link{padding:16px;border-radius:18px;gap:12px}.inbox-number{width:40px;height:40px;font-size:21px;border-radius:12px}.inbox-link strong,.calendar-link strong{font-size:13px}.inbox-link small,.calendar-link small{font-size:10px}.stock-link{padding:8px 4px}.endnote{margin-top:23px;font-size:10px;padding-top:16px}.foot{font-size:9px;margin-top:18px}.plan-title{margin:5px 0 22px}.plan-title .eyebrow{font-size:8px;letter-spacing:1.2px}.plan-title h1{font-size:32px;margin:7px 0 0}.round{width:41px;height:41px}.planner-grid{display:flex;flex-direction:column;gap:16px}.calendar-panel{padding:18px 15px;width:100%;border-radius:22px}.calendar-head{margin-bottom:18px}.calendar-head h2{font-size:20px}.calendar-head h2 span{font-size:14px}.calendar{gap:5px}.day{min-height:48px;border-radius:10px;font-size:13px;padding:7px 0 5px}.weekday{font-size:10px;padding-bottom:7px}.slots i{width:4px;height:4px}.day .own-mark{width:15px;height:15px;font-size:9px;top:-5px;right:-1px}.legend{font-size:9px;margin-top:18px;gap:4px}.own-legend{font-size:8px;gap:4px;margin-top:12px}.rules{font-size:10px;margin-top:14px;padding-top:10px}.day-panel{width:100%}.choose{min-height:140px;padding:12px 20px}.choose>span{display:none}.choose h2{font-size:17px}.choose p{font-size:12px;margin-bottom:0}.detail-heading h2{font-size:23px}.detail-heading{padding:6px 0}.request{padding:15px}.request .row{align-items:flex-start}.wide{font-size:13px}.wait-link{font-size:11px;margin-top:12px}#toast{bottom:83px;font-size:11px}dialog{padding:23px;max-height:85dvh}#sheet{margin-bottom:12px;border-radius:24px 24px 15px 15px}dialog .two{gap:10px}dialog input{font-size:16px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .12s,box-shadow .12s}}
/* Kapitäns- und Teamergänzung; Grundgestaltung von Entwurf 02 bleibt bestehen. */
.role-badge{margin-left:auto;color:#815000;background:#fff0d4;border:1px solid #f2ddb5;padding:7px 12px;border-radius:16px;font-size:11px;font-weight:700}.role-badge:empty{display:none}.role-badge+.profile{margin-left:0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:26px 0}.metric{display:flex;align-items:center;gap:15px;text-align:left;padding:22px;border:0;border-radius:20px}.metric b{font-size:30px}.metric span{font-size:12px;font-weight:550}.rose{background:#fce9ee;color:#9e1934}.mint{background:#e5f3ed;color:#205e45}.sand{background:#fff0d4;color:#805400}.mist{background:#eaf0f7;color:#344a67}.dashboard-section{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;margin-bottom:22px}.dashboard-section .section-head{justify-content:space-between;gap:12px}.dashboard-section .section-head p{margin:5px 0 0}.request-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.request-grid .request{margin:0}.request-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.portrait{width:60px;height:60px;flex:none;border-radius:50%;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 0 0 1px #dbe1e9;background:#eef0f7;color:#34405a;font-size:19px;font-weight:700}.person-1{background:#f7e6ed;color:#8a324c}.person-2{background:#e1eef7;color:#285674}.person-3{background:#eee7f9;color:#634780}.person-4{background:#e5f0e8;color:#356345}.person-5{background:#fff0d4;color:#805400}.person small{display:block;font-size:12px;margin-top:2px}.person strong{font-size:14px}.assessment{margin-top:14px;border-radius:12px;padding:11px 13px;font-size:12px}.assessment p{font-size:11px;line-height:1.5;margin:5px 0 0}.assessment.clear{background:#e7f5ee;color:#205e45}.assessment.info{background:#edf2fa;color:#345775}.assessment.risk{background:#fff0d4;color:#805400}.approve{background:#216449;color:white;border-color:#216449}.approve:disabled{background:#e8ebef;color:#576477;border-color:#e8ebef;opacity:1;cursor:not-allowed}.request-details{margin-top:13px;border-top:1px solid var(--line);padding-top:8px;font-size:11px;color:#566277}.request-details summary{cursor:pointer;padding:6px 0;min-height:32px}.request .actions{margin-top:12px}.queue-rank{font-size:11px;color:#566277;margin:12px 0 0}.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.team-day{border:1px solid var(--line);border-radius:16px;padding:16px;margin:14px 0;background:#fff}.team-day h3{font-size:14px}.team-day .section-head{justify-content:space-between}.team-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.team-person{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:12px 5px;background:#f8f9fb;border-radius:14px}.team-person strong{font-size:12px}.team-person small{font-size:11px;color:var(--muted)}.team-person.vacant{background:#f1f7f4;color:#356345}.vacant .portrait{box-shadow:none;background:#e4efe8;color:#356345}.planned-note{background:#f5f6f8;border-radius:14px;padding:14px}.planned-note p{font-size:11px;color:#566277;margin:8px 0 0}.captain-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.captain-shortcuts button{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px}.diagnostic-example{margin-top:20px;font-size:12px}.diagnostic-example summary{padding:10px 0;cursor:pointer}.day-panel .request-top .chip{margin-left:70px}.dashboard-section .next-line{max-width:460px}
@media(min-width:951px){header nav{position:static}body:has(.role-badge:not(:empty)) .header-note{display:none}}
@media(max-width:719px){.role-badge{font-size:9px;padding:6px 8px;margin-left:auto}.profile{padding:0;min-height:36px}.brand{font-size:23px}header{gap:8px}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.metric{padding:15px 13px;gap:10px;min-height:82px;border-radius:16px}.metric b{font-size:27px}.metric span{font-size:10px}.dashboard-section{padding:16px;margin-bottom:16px;border-radius:19px}.dashboard-section h2{font-size:17px}.request-grid,.dashboard-columns{grid-template-columns:1fr;gap:12px}.dashboard-columns{gap:0}.request{padding:13px}.portrait{width:60px;height:60px}.person{gap:10px}.person strong{font-size:13px}.person small{font-size:11px}.request-top>.chip{margin-left:70px}.assessment{padding:10px;font-size:11px}.assessment p{font-size:10px}.dashboard-section .section-head{align-items:flex-start;flex-wrap:wrap}.team-day{padding:12px}.team-day h3{font-size:12px}.team-person{padding:10px 4px}.team-person strong{font-size:11px}.captain-shortcuts{grid-template-columns:1fr 1fr}.captain-shortcuts button{font-size:10px;min-height:54px}.day-panel .request-top .chip{margin-left:70px}.greeting p:last-child{max-width:270px}.greeting .hello{font-size:32px}}

.team-actions{padding:12px 0;border-bottom:1px solid var(--line)}.team-actions:last-child{border-bottom:0}.team-actions>strong{font-size:12px}

/* STORE-13: one responsive UI, width-based layouts, unchanged business rules. */
header,main,.demo{--page-width:1600px}
header{max-width:var(--page-width);height:auto;min-height:92px;padding:18px 36px;flex-wrap:wrap}
.header-note{display:none}
.demo{padding:5px max(28px,calc((100% - 1528px)/2))}
.demo button{min-height:44px;font-size:13px}
#nav{position:static;transform:none;margin:0 auto 24px;width:max-content;max-width:calc(100% - 48px);gap:12px}
#nav a{min-height:48px;font-size:16px;padding:12px 30px}
main{max-width:var(--page-width);width:100%;margin:24px auto 0;padding:0 36px 60px}
.planner-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;align-items:start}
.planner-grid>*{min-width:0}
.calendar-panel{padding:30px}
.calendar{gap:12px}
.calendar-head h2{font-size:30px}
.calendar-head h2 span{font-size:20px}
.calendar-head button{min-width:48px;min-height:48px;font-size:24px}
.day{min-height:88px;font-size:23px;gap:10px;border-radius:16px}
.weekday{font-size:15px;padding-bottom:14px}
.slots{gap:6px}.slots i{width:7px;height:7px}
.day .own-mark{width:25px;height:25px;font-size:15px;top:-7px;right:-3px}
.legend{font-size:14px;margin-top:28px}.own-legend{font-size:13px;gap:12px}
.rules{font-size:13px}.rules summary,.request-details summary{min-height:44px;padding:11px 0}
.capacity,.chip{font-size:13px}.person strong{font-size:16px}.person small{font-size:14px}
.assessment,.assessment p,.queue-rank,.planned-note p{font-size:13px}
.actions button{min-height:48px;font-size:14px}
.team-person strong{font-size:15px}.team-person small{font-size:13px}
.team-day h3{font-size:17px}.portrait{width:64px;height:64px}
.dashboard-section .next-line{max-width:none}.next-line strong{font-size:16px}.next-line small{font-size:14px}
.dashboard-section .section-head{flex-wrap:wrap}
.request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric span{font-size:14px}.captain-shortcuts button{font-size:14px;min-height:56px}
.small{font-size:13px}.foot{font-size:12px}
button,a,summary,input,select{-webkit-tap-highlight-color:transparent}
.person,.person>div,.request-top,.team-person,.metric{min-width:0}
.person strong,.team-person strong,.next-line strong{overflow-wrap:anywhere}
@media(min-width:1400px){.request-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.day{min-height:100px;font-size:25px}.greeting h1{font-size:58px}}
@media(min-width:1000px) and (max-width:1199px){
 main{padding:0 24px 50px}.planner-grid{gap:20px;grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
 .calendar-panel{padding:22px}.calendar{gap:8px}.day{min-height:68px;font-size:20px}
 .legend{font-size:12px}.own-legend{font-size:11px}.calendar-head h2{font-size:26px}
 .dashboard-section{padding:20px}.portrait{width:60px;height:60px}
}
@media(min-width:720px) and (max-width:999px){
 main{max-width:920px;padding:0 28px 50px}.planner-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .calendar-panel{padding:28px}.day{min-height:80px;font-size:22px}.calendar{gap:10px}
 .day-panel{scroll-margin-top:20px}.home-grid{gap:24px}.dashboard-columns{grid-template-columns:1fr}
 .request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:16px;gap:10px}.metric span{font-size:12px}
 .captain-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:719px){
 header{min-height:76px;padding:12px 18px;flex-wrap:nowrap;gap:8px}.brand{font-size:23px}
 .demo{padding:2px 16px;font-size:9px}.demo button{font-size:12px}
 .role-badge{font-size:10px;padding:7px 9px}.profile{width:44px;height:44px;min-width:44px;min-height:44px}
 #nav{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;transform:none;border-radius:0;gap:10px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));z-index:10}
 #nav a{min-height:48px;max-width:none;font-size:13px;padding:10px 12px}
 main{max-width:650px;margin:18px auto 0;padding:0 18px calc(110px + env(safe-area-inset-bottom))}
 .planner-grid{display:flex;flex-direction:column;gap:20px}.calendar-panel{padding:20px 13px}
 .calendar{gap:5px}.day{min-height:48px;font-size:16px;border-radius:10px;gap:6px}
 .calendar-head h2{font-size:24px}.calendar-head h2 span{font-size:16px}.weekday{font-size:11px;padding-bottom:8px}
 .slots{gap:3px}.slots i{width:5px;height:5px}.day .own-mark{width:20px;height:20px;font-size:12px;top:-6px;right:-2px}
 .legend{font-size:11px;gap:4px;margin-top:22px}.own-legend{font-size:10px;gap:6px}.rules{font-size:12px}
 .request-grid,.dashboard-columns{grid-template-columns:1fr}.person strong{font-size:14px}.person small{font-size:12px}
 .portrait{width:60px;height:60px}.team-person strong{font-size:13px}.team-person small{font-size:12px}
 .team-day h3{font-size:14px}.chip,.capacity{font-size:11px}.actions button{font-size:13px}
 .metric span{font-size:12px}.captain-shortcuts{grid-template-columns:1fr 1fr}.captain-shortcuts button{font-size:12px}
 .assessment p,.queue-rank,.planned-note p{font-size:12px}.small{font-size:12px}.foot{font-size:11px}
 .next-line strong{font-size:14px}.next-line small{font-size:12px}dialog{padding:20px;max-height:90dvh}
 #toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:12px}
}
@media(max-height:500px) and (min-width:720px) and (max-width:999px){
 #nav{margin-bottom:12px}header{min-height:64px;padding:10px 24px}main{margin-top:12px}
 .calendar-panel{padding:18px}.day{min-height:52px}.calendar{gap:7px}dialog{max-height:94dvh}
}
@media(max-width:430px){
 main{padding-left:10px;padding-right:10px}.calendar-panel{padding-left:4px;padding-right:4px}
 .calendar{gap:1px}.day{min-height:50px}.day .own-mark{top:1px;right:1px;width:18px;height:18px;font-size:11px}
 .calendar-head,.legend,.own-legend,.rules{margin-left:8px;margin-right:8px}
}
@media(max-height:500px) and (min-width:720px) and (max-width:999px){
 #nav{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;transform:none;z-index:10;border-radius:0;background:#fffffff5;border-top:1px solid var(--line);padding:5px 16px;justify-content:center}
 #nav a{min-height:44px;padding:7px 28px;font-size:14px}
 main{padding-bottom:90px}#toast{bottom:70px}
}

/* STORE-13 Team-Demo: bounded time fields, shared sync status */
#syncStatus{max-width:1600px;margin:8px auto;padding:8px 24px;font-size:.82rem;color:#43566a;background:#edf5f1;border-radius:10px}
#syncStatus.offline{background:#fff1d5;color:#684400}
#editor .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
#editor label{min-width:0}#editor input{box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:48px}
.own-status{margin:16px 0;padding:16px;background:#f3f6f9;border-radius:14px}
@media(max-width:430px){#editor{padding:18px}#editor .two{gap:18px}#editor input{padding:10px 6px}#syncStatus{padding:8px 12px}}

/* STORE-14A: calendar and configurable opening hours only */
.view-switch{display:flex;gap:10px;margin:12px 0 24px}.view-switch [aria-pressed=true]{background:#c71939;color:white}.day.closed{background:#edf0f4;color:#58616e;border-color:#c7cdd5}.closed-mark,.holiday-dot{font-size:11px!important}.holiday-dot{color:#94213a}.week-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.week-calendar .day{width:100%;height:auto;min-height:150px;display:flex;flex-direction:column;gap:8px;padding:14px}.week-day small{font-size:13px;line-height:1.4}.sunday-note{margin-top:18px}.sunday-note .day{width:100%;min-height:100px}.opening-info{padding:12px;background:#f1f4f7;border-radius:10px;font-weight:650}.opening-warning{color:#87350b;background:#fff0dc;padding:8px;border-radius:8px;font-size:13px}.opening-rule{display:grid;grid-template-columns:minmax(100px,1fr) 1fr 1fr 1fr;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #dce1e8}.opening-rule label{min-width:0}.opening-rule input,.opening-rule select{width:100%;min-width:0;min-height:46px}.opening-rule button,.opening-rule label:has([data-field=note]){grid-column:1/-1}#openingDialog{width:min(850px,95vw);max-width:95vw}#openingWarnings{margin:16px 0;overflow-wrap:anywhere}#openingWarnings ul{padding-left:20px}.plan-title{gap:12px;flex-wrap:wrap}.calendar-head h2{min-width:0}.day:disabled{cursor:not-allowed}.day-panel .primary:disabled{opacity:.65;cursor:not-allowed}@media(min-width:1500px){.week-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.week-calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.week-calendar .day{min-height:130px;padding:10px}.opening-rule{grid-template-columns:1fr 1fr}.opening-rule strong,.opening-state{grid-column:1/-1}.calendar-head{flex-wrap:wrap}.calendar-head h2{font-size:20px}.plan-title>button{width:100%}}

/* STORE-14A: targeted desktop team overview and explicit calendar symbols. */
.legend{flex-wrap:wrap;row-gap:10px}
.calendar-symbols{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#435166;margin:12px 0;line-height:1.5}
.calendar-symbols span{display:flex;align-items:baseline;gap:8px}.calendar-symbols b{min-width:22px;text-align:center;color:#222c40;flex:none}
#sheet[data-panel="team"]{width:min(1320px,calc(100vw - 48px));max-width:calc(100vw - 48px);padding:24px}
#sheet[data-panel="team"]>#sheetBody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-top:18px}
#sheet[data-panel="team"] .team-day{margin:0;min-width:0;padding:18px}
#sheet[data-panel="team"] .team-person{min-width:0;overflow-wrap:anywhere}
#sheet[data-panel="team"]>.row{position:sticky;top:-24px;background:white;z-index:1;padding:12px 0;border-bottom:1px solid var(--line)}
#sheet[data-panel="team"]>.row>button{flex-shrink:0}
@media(min-width:1250px){#sheet[data-panel="team"]>#sheetBody{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:719px){#sheet[data-panel="team"]{width:calc(100vw - 28px);max-width:calc(100vw - 28px);padding:18px}#sheet[data-panel="team"]>#sheetBody{grid-template-columns:minmax(0,1fr);gap:14px}#sheet[data-panel="team"]>.row{top:-18px}#sheet[data-panel="team"] .team-day{padding:14px}.calendar-symbols{font-size:12px}}

/* Compact native date/time controls; explicit German date, ISO value unchanged. */
#editor .entry-date-label{display:block;width:220px;max-width:100%}
#editor .entry-date-control{position:relative;display:flex;align-items:center;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;box-sizing:border-box;background:white}
#editor .entry-date-control:focus-within{outline:2px solid #245e94;outline-offset:2px}
#editor .entry-date-control input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#editor .two{grid-template-columns:repeat(2,minmax(0,150px));gap:18px;max-width:100%}
#editor .two input{width:100%;min-width:0;max-width:100%;padding:10px;box-sizing:border-box}
#editor input::-webkit-date-and-time-value{min-width:0;text-align:left}
@media(max-width:380px){#editor .two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Safari time inputs must stay inside each field, including native decorations. */
#editor .two{display:flex;flex-wrap:wrap;column-gap:24px;row-gap:0;justify-content:flex-start}
#editor .two>label{flex:0 1 140px;width:140px;max-width:calc((100% - 24px)/2);min-width:0;overflow:hidden;padding:3px;margin-left:0;margin-right:0}
#editor .two input[type="time"]{-webkit-appearance:none;appearance:none;display:block;width:100%;inline-size:100%;min-inline-size:0;max-inline-size:100%;box-sizing:border-box;margin-left:0;margin-right:0;padding:10px 8px}
#editor .two input[type="time"]::-webkit-date-and-time-value{min-width:0;white-space:nowrap;text-align:left}

/* Presentation month: Monday to Saturday, six aligned columns. */
.calendar{grid-template-columns:repeat(6,minmax(0,1fr))}

/* Compact opening-hours editor: bounded native Safari inputs, clear touch spacing. */
#openingDialog{width:min(700px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:20px}
#openingDialog .opening-rule{grid-template-columns:minmax(100px,1fr) 140px 104px 104px;gap:12px;align-items:end;padding:12px 0}
#openingDialog .opening-rule>strong{align-self:center;font-size:15px}
#openingDialog label{margin-top:0;min-width:0;font-size:13px}
#openingDialog input,#openingDialog select{box-sizing:border-box;min-width:0;min-inline-size:0;max-width:100%;width:100%;min-height:44px;padding:9px 8px;margin-top:5px;font-size:16px}
#openingDialog input[type=time]{-webkit-appearance:none;appearance:none;display:block;inline-size:100%;max-inline-size:100%}
#openingDialog input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left;white-space:nowrap}
#openingDialog .actions{gap:12px;align-items:end}
#openingDialog .actions>label{flex:0 1 190px;max-width:100%}
#openingDialog .actions>button{flex:0 1 auto;min-height:44px}
#openingDialog h3{margin-top:18px}
#openingDialog .opening-rule button{justify-self:start}
@media(max-width:650px){
 #openingDialog .opening-rule{grid-template-columns:repeat(2,minmax(0,112px));column-gap:18px;row-gap:10px}
 #openingDialog .opening-rule>strong,#openingDialog .opening-state{grid-column:1/-1}
 #openingDialog .opening-rule>strong{font-size:16px}
 #openingDialog .opening-state{max-width:242px}
 #openingDialog .actions>button{max-width:100%;white-space:normal}
}

/* Holiday indication does not participate in the date layout. */
.day.holiday-day::after{content:"";position:absolute;inset:4px;border:2px solid #986b1d;border-radius:8px;pointer-events:none}
html[data-appearance="dark"] .day.holiday-day::after{border-color:#dfb65f}

/* Readable calendar key in both appearances, including narrow screens. */
.calendar-key{margin-top:22px;padding:18px;border:1px solid #bdcbdc;border-radius:16px;background:#edf2f8;color:#283b53}
.calendar-key h3{font-size:16px;margin:0 0 14px;letter-spacing:0}
.calendar-key .legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0;font-size:15px;color:inherit;line-height:1.45}
.calendar-key .legend span{gap:9px;align-items:center;min-width:0}
.calendar-key .legend i{width:18px;height:18px;flex:0 0 18px;border-width:2px}
.calendar-key .calendar-symbols{font-size:14px;line-height:1.6;gap:10px;margin:16px 0;color:inherit}
.calendar-key .calendar-symbols b{color:inherit}
.calendar-key .small{font-size:14px;line-height:1.6;color:inherit;margin:12px 0}
.calendar-key .own-legend{font-size:14px;display:flex;flex-wrap:wrap;gap:10px 18px;margin:14px 0 0;color:inherit}
html[data-appearance="dark"] .calendar-key{background:#29394e;border-color:#657c98;color:#f0f5fc}
html[data-appearance="dark"] .calendar-key :is(.legend,.calendar-symbols,.calendar-symbols b,.small,.own-legend){color:#f0f5fc}
.calendar-key .legend .free{background:#64b992;border-color:#2e7054}
.calendar-key .legend .partial{background:#79aee9;border-color:#3f6f9c}
.calendar-key .legend .full{background:#df8099;border-color:#9a415a}
.calendar-key .legend .closed{background:#9aa6b5;border-color:#586779}
@media(max-width:430px){.calendar-key{padding:15px}.calendar-key .legend{grid-template-columns:minmax(0,1fr);gap:10px}}

/* Compact confirmed roster before the existing day details. */
.compact-schedule{min-width:0}.compact-schedule h2{font-size:23px;margin:6px 0}
.compact-schedule .schedule-period{font-size:15px;color:var(--muted);margin:8px 0 18px}
.schedule-list{display:flex;flex-direction:column;gap:10px}
.schedule-row{border:1px solid #c6d0de;background:#edf2f8;border-radius:14px;padding:14px;min-width:0}
.schedule-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.schedule-row-head h3{font-size:16px;margin:0;min-width:0}
.schedule-row-head button{font-size:13px;min-height:44px;padding:8px 10px;flex-shrink:0}
.schedule-person{display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;font-size:14px;padding:4px 0}
.schedule-person strong{overflow-wrap:anywhere}.schedule-person span{white-space:nowrap}
.schedule-back{margin-bottom:18px;font-size:14px;min-height:44px}
.schedule-empty{padding:18px;border:1px dashed #7b8a9f;border-radius:14px}
html[data-appearance="dark"] .schedule-row{background:#26364c;border-color:#566d8a;color:#eef4fc}
html[data-appearance="dark"] .compact-schedule .schedule-period{color:#c5d3e5}
@media(max-width:430px){.schedule-row{padding:12px}.schedule-row-head h3{font-size:15px}.schedule-person{font-size:14px}}

/* Short roster lines: first name, explicit date and individual hours. */
.schedule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}
.schedule-lines{min-width:0;flex:1}.schedule-person{justify-content:flex-start;gap:3px 5px;padding:3px 0;line-height:1.5}
.schedule-row>button{flex:none;font-size:13px;min-height:44px;padding:8px 10px}
@media(max-width:430px){.schedule-row{flex-wrap:wrap}.schedule-row>button{margin-left:auto}.schedule-lines{flex-basis:100%}}

.portrait.portrait-photo{overflow:hidden;padding:0}.portrait.portrait-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-position,50% 20%);border-radius:50%}

/* Match the day/overview panel to the surrounding rounded cards. */
#dayPanel{border:1px solid var(--line);border-radius:22px;padding:20px;min-width:0;background:#fff;align-self:start}
@media(max-width:430px){#dayPanel{border-radius:18px;padding:14px}}

/* Equal profile-photo and initials footprint, centered without button padding. */
header #profile{width:56px;height:56px;min-width:56px;min-height:56px;flex:0 0 56px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;line-height:1;font-weight:750;text-align:center;overflow:hidden}
header #profile img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-position,50% 20%)}

/* Equal team-card heights; open details remain fully visible. */
#sheet[data-panel="team"]>#sheetBody{align-items:stretch;grid-auto-rows:1fr}
#sheet[data-panel="team"] .team-day{height:100%;display:flex;flex-direction:column}
#sheet[data-panel="team"] .team-day>.request-details{margin-top:auto}

/* Preserve actual banner transparency in light and dark appearance. */
.approved-full-banner .banner-art,html[data-appearance="dark"] .approved-full-banner .banner-art{background:transparent}

/* Appearance control belongs to navigation; quiet sync status with visible errors. */
body #syncStatus{background:transparent;color:var(--muted);font-size:12px;margin:0 auto;padding:5px 24px;border-radius:0}
html[data-appearance="dark"] body #syncStatus{background:transparent;color:#b6c2d3}
body #syncStatus.offline,html[data-appearance="dark"] body #syncStatus.offline{background:#fff1d5;color:#684400;border-radius:10px}
#nav .appearance-choice{display:flex;align-items:center;gap:8px;margin:0 0 0 8px;padding:0 10px;font-size:14px;line-height:1.2;color:inherit}
#nav .appearance-choice select{min-height:44px;max-width:100%;font:inherit;padding:8px;border:1px solid var(--line);border-radius:12px}
@media(max-width:719px){#nav{grid-template-columns:repeat(5,minmax(0,1fr))}#nav .appearance-choice{flex-direction:column;gap:2px;padding:0;margin:0;min-width:0;font-size:10px;justify-content:center}#nav .appearance-choice select{width:100%;min-width:0;min-height:44px;font-size:11px;padding:4px 1px;border-radius:9px}}

/* Profile circle: approximately 20 percent larger, inset from the right edge. */
header #profile{width:80px;height:80px;min-width:80px;min-height:80px;flex-basis:80px;font-size:26px;margin-right:24px}
@media(max-width:719px){header #profile{margin-right:8px}}

/* Leave breathing room around the larger profile circle. */
body header{min-height:96px}
/* D01 scoped forms: touch-sized controls, no fixed-width form columns. */
.community-form {display:grid;gap:12px;max-width:100%;min-width:0;margin-block:12px;}
.community-form label {display:grid;gap:6px;min-width:0;}
.community-form input,.community-form select,.community-form textarea {box-sizing:border-box;min-width:0;width:100%;max-width:100%;font:inherit;}
.community-form textarea {min-height:96px;resize:vertical;border-radius:12px;padding:12px;}
.community-form button {min-height:44px;white-space:normal;overflow-wrap:anywhere;justify-self:start;max-width:100%;}
.community-form textarea {color:var(--ink);background:var(--paper);border:1px solid var(--line);}
.community-form textarea:focus-visible {outline:3px solid #216097;outline-offset:3px;}
