/* AlltagsPilot V11 · Studio Midnight: focused, accessible design layer.
   This file deliberately changes the presentation only. Existing beta features stay intact. */
:root{
  --v11-bg:#080f1d;
  --v11-surface:#101e30;
  --v11-raised:#15283c;
  --v11-stroke:#2b4056;
  --v11-text:#f4f7fb;
  --v11-secondary:#bbcad9;
  --v11-accent:#8ae3d1;
  --v11-blue:#aac9f2;
}
html:not([data-v8-theme="light"]){
  color-scheme:dark;
  --bg:var(--v11-bg);--panel:var(--v11-surface);--panel2:var(--v11-raised);
  --line:var(--v11-stroke);--text:var(--v11-text);--muted:var(--v11-secondary);
  --mint:var(--v11-accent);--blue:var(--v11-blue);
}
html:not([data-v8-theme="light"]) body{
  background:radial-gradient(ellipse 80% 350px at 10% -130px,rgba(68,113,142,.18),transparent 85%),
    radial-gradient(ellipse 75% 340px at 110% 0,rgba(69,87,132,.11),transparent 70%),var(--v11-bg);
  color:var(--v11-text);
}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.v11-skip{position:absolute;top:-120px;left:16px;z-index:300;background:#e6fff8;color:#092a30;padding:11px 16px;border-radius:12px}
.v11-skip:focus{top:16px}
.app{max-width:1140px}
.bar{height:78px;border-color:rgba(157,188,215,.14);gap:14px}
.brand-mark{box-shadow:0 7px 20px rgba(69,167,177,.16);background:linear-gradient(135deg,#9ee8dc,#82b9ec)}
.brand-name{letter-spacing:-.65px;font-weight:780}
.brand-name small{font-weight:660;letter-spacing:1.65px}
.badge{border-color:rgba(136,205,199,.32);background:rgba(21,43,54,.60);color:#a1e8da;letter-spacing:.78px}
.hero h1{letter-spacing:-1.75px;font-weight:800}
.hero .lead{line-height:1.65;color:#b9c8d9}
.hero{padding:28px 0 23px}
.hero-art{box-shadow:0 10px 29px rgba(0,0,0,.15)}
.v11-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 17px}
.v11-quick button{display:flex;align-items:center;gap:12px;justify-content:flex-start;min-width:0;
  border:1px solid #314a5c;border-radius:15px;background:linear-gradient(160deg,#152b3c,#122235);color:#e2edf6;
  padding:13px 17px;min-height:58px;font-size:13px;font-weight:700;transition:border-color .18s,background .18s,transform .18s}
.v11-quick-icon{display:grid;place-items:center;border-radius:11px;width:32px;height:32px;flex-shrink:0;
  background:rgba(125,216,203,.11);color:#9de6d9;font-size:24px;font-weight:400}
.v11-quick button:hover{border-color:#507e82;background:#1b3443;transform:translateY(-1px)}
.v11-quick button:active{transform:scale(.985)}
html:not([data-v8-theme="light"]) .card{
  background:linear-gradient(150deg,#152337,#101c2d 94%);border:1px solid #2b3f55;
  box-shadow:0 11px 27px rgba(0,0,0,.10);border-radius:19px}
html:not([data-v8-theme="light"]) .v8-stat,
html:not([data-v8-theme="light"]) .kpi,
html:not([data-v8-theme="light"]) .route-stats>div,
html:not([data-v8-theme="light"]) .weather-fact,
html:not([data-v8-theme="light"]) .shop-stat{background:#14263a;border:1px solid #2c4056;box-shadow:none}
html:not([data-v8-theme="light"]) .v8-stat.highlight{background:#17353d;border-color:#3a6363}
html:not([data-v8-theme="light"]) .day-hello{
  background:linear-gradient(115deg,#17353f,#16263e 75%);border:1px solid #365967;
  box-shadow:0 13px 32px rgba(0,0,0,.10);border-radius:20px}
.day-hello:after{opacity:.32}
.day-hello h2{font-weight:780}
.day-hello .v8-kicker,.v8-kicker,.v11-quick-icon{letter-spacing:.04em}
.day-hello p{max-width:36em;line-height:1.5}
.v10-cloud-strip{box-shadow:none;background:linear-gradient(118deg,rgba(28,58,64,.55),rgba(20,39,62,.76));border-color:#355462}
.v10-cloud-kicker{font-size:11px;letter-spacing:1.2px}
.v10-cloud-copy p{font-size:13px}
.primary,.v10-cloud-button{font-weight:780;letter-spacing:.01em;background:#8de4d6;color:#0b2932;border:1px solid #a7f1e5;border-radius:12px;box-shadow:none}
.primary:hover,.v10-cloud-button:hover{background:#a1eee1}
.secondary{background:#1b3046;border-color:#3a5269;color:#e1edf6;font-size:13px;font-weight:700}
.secondary:hover{background:#25415b}
html:not([data-v8-theme="light"]) .input-box,
html:not([data-v8-theme="light"]) .v8-field,
html:not([data-v8-theme="light"]) .ki-input,
html:not([data-v8-theme="light"]) .route-field,
html:not([data-v8-theme="light"]) .weather-field,
html:not([data-v8-theme="light"]) .shop-field,
html:not([data-v8-theme="light"]) .cal-form input,
html:not([data-v8-theme="light"]) .cal-form select,
html:not([data-v8-theme="light"]) .cal-form textarea{
  background:#0c1a2c;border-color:#354d64;color:#f3f8fe;border-radius:13px}
html:not([data-v8-theme="light"]) .subtitle,
html:not([data-v8-theme="light"]) .v8-soft,
html:not([data-v8-theme="light"]) .micro,
html:not([data-v8-theme="light"]) .hint,
html:not([data-v8-theme="light"]) .task-meta{color:#b1c2d4}
html:not([data-v8-theme="light"]) .day-item,
html:not([data-v8-theme="light"]) .task,
html:not([data-v8-theme="light"]) .rem-item,
html:not([data-v8-theme="light"]) .fin-item,
html:not([data-v8-theme="light"]) .cal-item,
html:not([data-v8-theme="light"]) .shop-item{background:#112239;border:1px solid #2c445d}
html:not([data-v8-theme="light"]) .v8-action{background:#182d43;border-color:#344c64}
html:not([data-v8-theme="light"]) .v8-note{background:#112b32;border:1px solid #31555a}
.tabs{margin-bottom:21px}
.tab{font-weight:690}
.section-top h2,.v8-section-header h2,.card h2{font-weight:760;letter-spacing:-.45px}
footer,.foot{color:#a6b9c8}
/* Correctly surfaced primary controls and comfortable touch targets */
button,.tab,.v9-dock-item,.v9-more-grid button{touch-action:manipulation}
.primary,.secondary,.v10-cloud-button{min-height:44px}
:where(button,a,input,textarea,select):focus-visible{outline:3px solid #b5f6e7!important;outline-offset:3px}
#day.active{display:flex;flex-direction:column}
#day .day-hello{order:1}
#day .v11-quick{order:2}
#day .v8-stats{order:3}
#day .v8-layout{order:4}
#day .v10-cloud-strip{order:5;margin-top:18px}
#day .v8-note{order:6}
#day .install-banner{order:7;margin-top:17px}
/* The accessible light mode remains optional, rather than mixing dark cards into it. */
html[data-v8-theme="light"] .v11-quick button{background:#f4f9fc;border:1px solid #ccdfe7;color:#1a3d55}
html[data-v8-theme="light"] .v11-quick-icon{background:#d9eee9;color:#217c6a}
@media(max-width:900px){.v11-quick{gap:9px}.v11-quick button{padding:10px 12px;gap:8px}}
@media(max-width:780px){
  .app{padding-left:16px;padding-right:16px;padding-bottom:calc(115px + env(safe-area-inset-bottom,0px));
    padding-top:max(16px,calc(env(safe-area-inset-top,0px) + 12px))}
  .bar{height:66px;gap:8px;margin-bottom:17px;padding-bottom:8px}
  .brand{gap:9px;min-width:0}
  .brand-mark{width:39px;height:39px;border-radius:12px;font-size:22px}
  .brand-name{font-size:19px;letter-spacing:-.7px}
  .brand-name small{font-size:8px;letter-spacing:.75px;color:#a7bbd1;margin-top:5px;white-space:nowrap}
  .badge{min-width:0;font-size:10px;letter-spacing:.5px;padding:7px 10px;white-space:nowrap}
  .bar-right{gap:0}
  .hero{display:none}
  #day .day-hello{padding:23px 21px;margin-bottom:14px;border-radius:19px}
  #day .day-hello:after{font-size:133px;top:-11px;right:8px}
  .day-hello .v8-kicker{font-size:10px;letter-spacing:1.55px}
  #day .day-hello h2{font-size:clamp(26px,6.6vw,32px);margin:8px 0;line-height:1.15}
  #day .day-hello p{font-size:12.5px;line-height:1.6}
  .v11-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 15px}
  .v11-quick button{flex-direction:column;gap:6px;justify-content:center;padding:11px 3px 9px;min-height:71px;border-radius:14px;font-size:11px;line-height:1.15}
  .v11-quick-icon{width:29px;height:29px;border-radius:9px;font-size:22px}
  .v8-stats{margin-bottom:16px;gap:9px}
  .v8-stat{border-radius:14px;padding:14px 10px;min-width:0}
  .v8-stat .label{font-size:11px;line-height:1.35}
  .v8-stat strong{font-size:clamp(23px,6vw,29px);line-height:1.35}
  .v8-stat small{font-size:10px;line-height:1.45}
  .card{padding:17px;border-radius:17px}
  .card h2{font-size:18px}
  .subtitle{font-size:13px}
  .v8-section-header h2{font-size:25px}
  .v10-cloud-strip{padding:17px;border-radius:16px}
  .v10-cloud-copy strong{font-size:15px}
  .v10-cloud-button{width:100%;min-height:45px}
  .v9-dock{border-radius:22px;background:rgba(15,30,47,.95);border:1px solid rgba(144,190,213,.28);
    box-shadow:0 12px 38px rgba(0,0,0,.5),inset 0 1px 0 rgba(220,242,255,.07);height:68px}
  .v9-dock-item{color:#b0c2d7;font-size:10.5px;font-weight:680}
  .v9-dock-item.is-active{color:#a5f1de;background:#1b4047;border-color:#2e6368}
  .v9-more:not([hidden]){background:linear-gradient(145deg,#17293e,#0e1c30);border-color:#3e566d}
  .v9-more-grid button{font-size:13px;min-height:52px}
  .foot{font-size:12px}
}
@media(max-width:380px){
  .brand-name{font-size:17px}.brand-name small{display:none}
  .badge{padding:7px 8px;font-size:9px}
  .v11-badge-detail{display:none}
  .v8-stat small{font-size:9px}
  .v8-stat .label{font-size:10px}
}
@media(max-width:780px) and (display-mode:standalone){
  .app{padding-top:max(64px,calc(env(safe-area-inset-top,0px) + 12px))}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .v11-quick button,.primary,.secondary{transition:none}
}

/* V11.1 Studio polishing from real iPhone QA (visual only). */
.v11-quick-icon svg{width:22px;height:22px;display:block}
.day-refresh{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;white-space:nowrap}
#day .v8-card-title{align-items:center;gap:10px}
#day .v8-card-title h2{min-width:0;text-wrap:balance}
@media(max-width:780px){
  .app{padding-bottom:calc(145px + env(safe-area-inset-bottom,0px));}
  #day .day-hello{padding:21px 20px;margin-bottom:14px}
  .day-hello .v8-kicker{letter-spacing:1.2px}
  #day .day-hello h2{font-size:clamp(25px,6.3vw,30px);line-height:1.2}
  .v11-quick{gap:8px}
  .v11-quick-icon{width:30px;height:30px}
  #day .v8-card-title{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px}
  #day .v8-card-title h2{font-size:clamp(16px,4.5vw,19px);letter-spacing:-.4px;line-height:1.3;margin:0}
  #day .day-refresh{min-width:43px;width:43px;height:43px;padding:0;font-size:25px;border-radius:12px}
  #day .day-refresh-text{display:none}
  .v9-dock{height:65px;padding:5px}
  .v9-dock-item{min-height:53px}
}
@media(max-width:780px) and (display-mode:standalone){
  .app{padding-top:max(55px,calc(env(safe-area-inset-top,0px) + 10px))}
}
@media(max-width:345px){
  .v11-quick button{font-size:10px;gap:5px}
  #day .v8-card-title h2{font-size:16px}
}

/* V11.2 mobile finishing: the bottom navigation is quieter and page content
   can be scrolled well clear of it in both Safari and standalone mode. */
@media (max-width:780px) {
  html {scroll-padding-bottom:calc(150px + env(safe-area-inset-bottom,0px));}
  .app {padding-bottom:calc(180px + env(safe-area-inset-bottom,0px));}
  .v9-dock {
    bottom:max(12px, env(safe-area-inset-bottom,0px));
    width:min(540px,calc(100% - 32px));
    height:62px;
    border-radius:20px;
    background:rgba(14,27,44,.97);
    box-shadow:0 9px 29px rgba(0,0,0,.35),inset 0 1px 0 rgba(220,242,255,.05);
  }
  .v9-dock-item {min-height:50px;border-radius:15px;font-size:10px;}
  .v9-dock-ico {width:23px;height:23px;}
  .v9-dock-ico svg {width:20px;height:20px;}
  .v9-more:not([hidden]) {bottom:calc(max(12px, env(safe-area-inset-bottom,0px)) + 70px);}
  .view .empty {line-height:1.55;}
  #day .v8-layout .card {scroll-margin-bottom:calc(155px + env(safe-area-inset-bottom,0px));}
}
@media (max-width:345px){
  .v9-dock {width:calc(100% - 20px);}
  .v9-dock-item {font-size:9px;}
}
