
:root {
  --bg:#060606;
  --panel:#222225;
  --panel-2:#2b2b31;
  --panel-3:#101114;
  --text:#f2f2f3;
  --muted:#b4b4bc;
  --border:rgba(255,255,255,.08);
  --calendar:#ff6a57;
  --tasks:#74c83d;
  --rewards:#f2b10c;
  --lists:#d3ad09;
  --meals:#db8408;
  --recipes:#6fa8bb;
  --photos:#11a7ea;
  --profiles:#8c8c92;
  --sidekick:#bb74de;
  --card-shadow:0 10px 30px rgba(0,0,0,.28);
  --radius:28px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
a{text-decoration:none;color:inherit}
body{display:flex;justify-content:center}
.mobile-shell{width:min(100%, 920px);min-height:100vh;background:var(--bg)}
.app-topbar{display:flex;justify-content:space-between;align-items:center;padding:28px 22px 10px;position:sticky;top:0;background:linear-gradient(180deg,rgba(6,6,6,.98),rgba(6,6,6,.88),rgba(6,6,6,0));z-index:5}
.brand-wordmark,.screen-title{font-family:Georgia, 'Times New Roman', serif;font-size:54px;line-height:.95;letter-spacing:-.04em;font-weight:500}
.brand-subtitle{color:var(--muted);margin-top:8px;font-size:15px}
.avatar-chip{display:inline-flex;align-items:center;justify-content:center}
.avatar-circle{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#2b2b31;color:#fff;font-weight:700;font-size:20px;border:1px solid var(--border)}
.app-screen{padding:10px 18px 100px}
.flash{margin:8px 0 16px;padding:14px 16px;border-radius:18px;background:#1f1f24;border:1px solid var(--border)}
.flash.success{color:#b5f7ae}.flash.error{color:#ffb0b0}
.screen-header{padding:8px 4px 16px}
.screen-title.small{font-size:34px}
.screen-subtitle{color:var(--muted);margin-top:10px;font-size:17px;line-height:1.45}
.quick-actions,.module-grid{display:grid;gap:26px}
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 34px}
.module-card{text-align:center}
.module-icon{width:126px;height:126px;border-radius:50%;margin:0 auto 14px;display:grid;place-items:center;font-size:54px;position:relative;box-shadow:var(--card-shadow)}
.module-icon .plus{position:absolute;right:-2px;top:-2px;background:#ffc568;color:#111;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:34px;font-weight:700;border:4px solid var(--bg)}
.module-name{font-size:26px;font-weight:700;letter-spacing:-.03em}
.bg-calendar{background:rgba(255,106,87,.45);color:var(--calendar)}
.bg-tasks{background:rgba(116,200,61,.35);color:var(--tasks)}
.bg-rewards{background:rgba(242,177,12,.35);color:var(--rewards)}
.bg-lists{background:rgba(211,173,9,.35);color:var(--lists)}
.bg-meals{background:rgba(219,132,8,.35);color:var(--meals)}
.bg-recipes{background:rgba(111,168,187,.35);color:var(--recipes)}
.bg-photos{background:rgba(17,167,234,.35);color:var(--photos)}
.bg-profiles{background:rgba(140,140,146,.35);color:var(--profiles)}
.bg-sidekick{background:rgba(187,116,222,.35);color:var(--sidekick)}
.info-card,.list-card,.form-card,.menu-card,.calendar-card{background:linear-gradient(180deg,#303035,#252529);border:1px solid rgba(255,255,255,.12);border-radius:38px;padding:28px;box-shadow:var(--card-shadow)}
.info-card.blue{background:linear-gradient(180deg,#093149,#0a2a3d)}
.info-card h2,.card-title{font-family:Georgia, 'Times New Roman', serif;font-size:34px;line-height:1.02;margin:0 0 12px;font-weight:500;letter-spacing:-.03em}
.info-card p{font-size:20px;line-height:1.5;color:#d0d0d6;margin:0 0 26px}
.button-row{display:flex;gap:16px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:18px 28px;border-radius:999px;border:2px solid rgba(255,255,255,.14);background:#060606;color:#fff;font-size:22px;font-weight:700;min-width:220px}
.btn.primary{background:#0e0e11}
.btn.soft{background:#2d2d31}
.btn.warn{background:#f2b10c;color:#111}
.kicker{color:var(--muted);font-size:18px;margin-bottom:10px}
.row{display:grid;gap:18px}.two-col{grid-template-columns:1.2fr .8fr}
.stack{display:grid;gap:18px}
.simple-list{display:grid;gap:14px}
.simple-item{padding:18px 20px;border-radius:24px;background:#1f1f24;border:1px solid var(--border);display:flex;justify-content:space-between;gap:14px;align-items:center}
.simple-item .meta{color:var(--muted);font-size:15px;margin-top:6px}
.badge{padding:9px 14px;border-radius:999px;background:#101114;border:1px solid var(--border);font-size:13px;font-weight:700}
.form-card input,.form-card textarea,.form-card select,.form-card button{width:100%;padding:16px 18px;border-radius:18px;border:1px solid var(--border);background:#141417;color:#fff;font:inherit}
.form-card button{background:#f3f3f3;color:#111;font-weight:700;cursor:pointer}
.form-grid{display:grid;gap:12px}
.helper{color:var(--muted);font-size:14px}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}
.auth-card{width:min(100%,540px);padding:30px;border-radius:34px;background:linear-gradient(180deg,#18181c,#121216);border:1px solid var(--border);box-shadow:var(--card-shadow)}
.auth-title{font-family:Georgia, 'Times New Roman', serif;font-size:54px;line-height:.95;margin:0 0 8px}
.auth-subtitle{color:var(--muted);font-size:18px;line-height:1.5;margin:0 0 22px}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:12px;width:min(calc(100% - 20px), 720px);display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:rgba(20,20,23,.96);border:1px solid var(--border);border-radius:28px;padding:10px 12px;backdrop-filter:blur(16px);z-index:6}
.bottom-nav a{display:grid;justify-items:center;gap:6px;padding:10px 6px;border-radius:20px;color:#d0d0d7}
.bottom-nav a span{font-size:20px}
.bottom-nav a small{font-size:12px}
.bottom-nav a.is-active{background:#2b2b31;color:#fff}
.table-wrap{overflow:auto;border-radius:26px;background:#1a1a1f;border:1px solid var(--border)}
table{width:100%;border-collapse:collapse}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid rgba(255,255,255,.06)}th{color:var(--muted);font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.menu-grid{display:grid;gap:16px}
.menu-card{display:flex;align-items:center;gap:18px;padding:22px 24px}
.menu-icon{width:44px;text-align:center;font-size:28px;color:#efefef}
.menu-label{font-size:22px}
.split-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
.join-code{font-weight:700;color:#8dc8ff}
.center-empty{padding:22px;color:var(--muted)}
@media (max-width:700px){
  .brand-wordmark,.screen-title{font-size:42px}
  .module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
  .module-icon{width:98px;height:98px;font-size:42px}
  .module-name{font-size:20px}
  .info-card h2,.card-title{font-size:28px}
  .info-card p{font-size:18px}
  .btn{min-width:unset;flex:1;font-size:18px;padding:16px 20px}
  .two-col{grid-template-columns:1fr}
}
@media (max-width:480px){
  .app-topbar{padding:22px 16px 8px}.app-screen{padding:8px 14px 100px}
  .module-grid{gap:18px}
  .module-icon{width:82px;height:82px;font-size:34px}
  .module-icon .plus{width:34px;height:34px;font-size:26px;border-width:3px}
  .module-name{font-size:16px}
  .info-card,.list-card,.form-card,.menu-card,.calendar-card{padding:22px;border-radius:30px}
  .menu-label{font-size:18px}
}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:linear-gradient(180deg,#222225,#18181b);border:1px solid var(--border);border-radius:28px;padding:24px;box-shadow:var(--card-shadow)}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.mini-card{padding:16px;border-radius:18px;background:#17171a;border:1px solid var(--border);margin-top:12px}
.empty-state{color:var(--muted);padding:10px 0}
.pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#17171a;border:1px solid var(--border);color:#fff}
.actions,.inline-form,.inline-stack{display:grid;gap:8px}
.reset-box{padding:12px 14px;border-radius:14px;background:#0f1013;border:1px solid var(--border);word-break:break-all;margin-top:8px}
.footer{display:none}
@media (max-width:700px){.grid-2{grid-template-columns:1fr}}

/* Upgraded app screens */
.feature-panel{background:linear-gradient(180deg,#303035,#252529);border:1px solid rgba(255,255,255,.12);border-radius:38px;padding:28px;box-shadow:var(--card-shadow)}
.feature-panel.green{background:linear-gradient(180deg,rgba(116,200,61,.18),rgba(24,36,19,.95))}
.feature-panel.gold{background:linear-gradient(180deg,rgba(211,173,9,.18),rgba(43,32,7,.95))}
.feature-panel.teal{background:linear-gradient(180deg,rgba(111,168,187,.18),rgba(17,31,37,.95))}
.feature-panel.amber{background:linear-gradient(180deg,rgba(219,132,8,.18),rgba(39,23,7,.95))}
.feature-panel.purple,.feature-panel.violet{background:linear-gradient(180deg,rgba(187,116,222,.18),rgba(30,19,37,.95))}
.feature-panel.blue{background:linear-gradient(180deg,rgba(17,167,234,.18),rgba(10,24,35,.95))}
.feature-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.section-title{font-size:24px;font-weight:800;letter-spacing:-.03em;margin-bottom:16px}
.mobile-form input,.mobile-form select,.mobile-form textarea,.compact-form input,.compact-form select,.compact-form textarea{width:100%;background:#111216;border:1px solid rgba(255,255,255,.08);color:#fff;border-radius:18px;padding:16px 18px;font-size:17px}
.mobile-form button,.compact-form button,.auth-card button, .card button, button[type=submit]{background:#fff;color:#111;border:none;border-radius:18px;padding:16px 18px;font-weight:800;font-size:17px;cursor:pointer}
.compact-form{margin-top:18px}
.settings-stack{display:grid;gap:12px;margin-bottom:10px}
.stat-pill{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#15161a;border:1px solid rgba(255,255,255,.08);padding:14px 16px;border-radius:18px}
.stat-pill .stat-label{color:var(--muted);font-size:14px}
.simple-list{display:grid;gap:14px}
.simple-item{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#191a1f;border:1px solid rgba(255,255,255,.08);padding:16px 18px;border-radius:22px}
.simple-item strong{font-size:18px}
.simple-item .meta{color:var(--muted);margin-top:6px;font-size:14px;line-height:1.4}
.action-stack{display:grid;gap:8px;justify-items:end}
.mini-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mini-btn{background:#0e0f12;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:10px 14px;font-weight:700;cursor:pointer}
.mini-btn.danger{border-color:rgba(255,120,120,.24);color:#ffb2b2}
.empty-state{color:var(--muted);background:#15161a;border:1px dashed rgba(255,255,255,.1);padding:22px;border-radius:20px}
.menu-section{margin-bottom:22px}
.meal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.meal-card{background:#191a1f;border:1px solid rgba(255,255,255,.08);padding:22px;border-radius:26px}
.meal-day{color:#ffcf7c;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.meal-title{margin-top:12px;font-size:24px;font-weight:800;letter-spacing:-.03em}
.meal-meta{margin-top:8px;color:var(--muted);font-size:15px;line-height:1.4}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#111216;border:1px solid rgba(255,255,255,.08);color:#ddd;font-size:13px;font-weight:700}
.badge.pending{color:#ffe39d}
.badge.done{color:#baf5a9}
.badge.overdue{color:#ffb0b0}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(circle at top,#11141d, #060606 45%)}
.auth-card{width:min(100%,540px);background:linear-gradient(180deg,#151821,#0c0e15);padding:34px;border-radius:34px;border:1px solid rgba(255,255,255,.08);box-shadow:var(--card-shadow)}
.auth-title{font-family:Georgia, "Times New Roman", serif;font-size:58px;line-height:.92;letter-spacing:-.05em}
.auth-subtitle{color:var(--muted);font-size:17px;line-height:1.6;margin:14px 0 20px}
.form-grid{display:grid;gap:14px}
.helper a{color:#d5dae3}
.branding-line{margin-top:16px;color:#8f95a2;font-size:12px;text-align:center}
@media (max-width: 760px){
  .brand-wordmark,.screen-title{font-size:40px}
  .module-grid{gap:18px}
  .module-icon{width:96px;height:96px;font-size:42px}
  .module-name{font-size:19px}
  .btn{min-width:0;width:100%;font-size:18px;padding:16px 20px}
  .row.two-col,.meal-grid{grid-template-columns:1fr}
  .simple-item{align-items:flex-start;flex-direction:column}
  .action-stack{justify-items:start}
}


.content-stack{margin-top:24px}
.stack-list{display:grid;gap:16px}
.list-card,.stat-card,.empty-state{background:linear-gradient(180deg,#202026,#1a1a1f);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:var(--card-shadow)}
.list-card{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.list-card p{color:var(--muted);line-height:1.5;margin:10px 0 0}
.meta{color:var(--muted);font-size:14px;margin-top:6px}
.empty-state{color:var(--muted)}
.mobile-form textarea,.mobile-form input,.mobile-form select{width:100%}
.mobile-form textarea{min-height:110px;resize:vertical}
.form-grid{display:grid;gap:14px}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.16)}
.btn.danger{background:#3a1616;border-color:#6b2323}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.photo-card{background:linear-gradient(180deg,#202026,#19191d);border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:var(--card-shadow)}
.photo-card img{display:block;width:100%;height:220px;object-fit:cover;background:#111}
.photo-body{padding:14px}
.photo-body p{color:var(--muted)}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stat-card span{display:block;color:var(--muted);font-size:14px;margin-bottom:8px}
.stat-card strong{font-size:28px}
@media (max-width:700px){
  .photo-grid,.stats-grid{grid-template-columns:1fr}
  .list-card{flex-direction:column}
}


/* Calendar board redesign */
.board-wallpaper{
  background-image:url('../img/calendar-shell-bg.png');
  background-size:cover;
  background-position:center;
  border-radius:42px;
  padding:18px;
  min-height:calc(100vh - 170px);
}
.bg-board{
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(248,250,255,.84));
  backdrop-filter:blur(10px);
  border:1px solid rgba(177,191,235,.45);
  box-shadow:0 28px 50px rgba(91,110,173,.18);
}
.calendar-stage{margin-top:8px}
.calendar-board-shell{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:start}
.board-sidebar{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:28px;background:rgba(255,255,255,.55);backdrop-filter:blur(8px);border:1px solid rgba(172,186,230,.35);position:sticky;top:92px}
.board-side-icon{display:grid;justify-items:center;gap:7px;padding:12px 6px;border-radius:20px;color:#5c6592;font-weight:700;font-size:12px;background:rgba(255,255,255,.55);border:1px solid rgba(177,191,235,.22)}
.board-side-icon span{font-size:20px;line-height:1}
.board-side-icon.is-active{background:linear-gradient(180deg,#7fb1ff,#a78dff);color:#fff;box-shadow:0 12px 24px rgba(108,127,196,.22)}
.calendar-board-card{border-radius:36px;padding:24px 24px 30px;position:relative;overflow:hidden}
.board-topline{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.board-family{font-size:44px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#2b3150}
.board-subline{margin-top:6px;color:#7480a9;font-size:15px}
.board-user-chip{padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(177,191,235,.36);color:#535d87;font-weight:700}
.board-member-strips{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.member-strip{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:22px;background:rgba(255,255,255,.72);border:1px solid rgba(177,191,235,.28)}
.member-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;flex:none}
.member-copy strong{display:block;color:#384164;font-size:16px}
.member-progress{width:100%;height:8px;border-radius:999px;background:rgba(130,145,192,.18);overflow:hidden;margin-top:6px}
.member-progress span{display:block;height:100%;border-radius:999px}
.member-count{font-size:13px;color:#6f7aa7;font-weight:800;margin-left:auto}
.member-mint .member-avatar,.member-mint .member-progress span{background:#66cbbf}
.member-rose .member-avatar,.member-rose .member-progress span{background:#ef8eb1}
.member-violet .member-avatar,.member-violet .member-progress span{background:#a78bdd}
.member-peach .member-avatar,.member-peach .member-progress span{background:#f2b56d}
.member-sky .member-avatar,.member-sky .member-progress span{background:#84b8ff}
.member-lilac .member-avatar,.member-lilac .member-progress span{background:#c59bff}
.member-amber .member-avatar,.member-amber .member-progress span{background:#f3c45f}
.member-sage .member-avatar,.member-sage .member-progress span{background:#8fc59b}
.board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}
.board-nav-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.board-nav-btn,.board-week-label{padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid rgba(177,191,235,.35);color:#525c86;font-weight:700}
.board-week-label{min-width:220px;text-align:center}
.board-legend{display:flex;gap:14px;flex-wrap:wrap;color:#7280aa;font-size:13px;font-weight:700}
.board-legend span{display:inline-flex;align-items:center;gap:8px}
.legend-swatch{width:14px;height:14px;border-radius:4px;display:inline-block}
.legend-swatch.task{background:#f7c2ce}
.legend-swatch.event{background:#c5f0ea}
.legend-swatch.drag{background:linear-gradient(135deg,#8aaeff,#b39cff)}
.week-board-wrap{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:start}
.time-column{display:grid;grid-template-rows:54px repeat(9, 66px);gap:0;color:#6a749e;font-weight:700}
.time-head{border-bottom:1px solid rgba(177,191,235,.25)}
.time-slot-label{display:flex;align-items:flex-start;justify-content:center;padding-top:10px;font-size:14px;border-top:1px solid rgba(177,191,235,.2)}
.week-columns{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px}
.day-column{display:flex;flex-direction:column;gap:10px}
.day-column-head{height:54px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:18px;background:rgba(255,255,255,.68);border:1px solid rgba(177,191,235,.28);color:#3d4668}
.day-name{font-size:18px;font-weight:800}
.day-date{font-size:24px;font-weight:800;line-height:1}
.day-grid{position:relative;display:grid;grid-template-rows:repeat(var(--rows), 33px);gap:0;padding:6px;border-radius:24px;background:rgba(255,255,255,.48);border:1px solid rgba(177,191,235,.22);min-height:calc(33px * var(--rows) + 12px)}
.grid-row-line{border-top:1px solid rgba(177,191,235,.18)}
.event-block{position:relative;border-radius:18px;padding:18px 14px 12px;box-shadow:0 12px 22px rgba(117,130,187,.12);border:1px solid rgba(255,255,255,.65);cursor:grab;overflow:hidden;z-index:2}
.event-block:active{cursor:grabbing}
.event-tab{position:absolute;left:10px;right:10px;top:8px;height:7px;border-radius:999px;background:rgba(255,255,255,.65)}
.event-pill{position:absolute;right:10px;top:16px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:rgba(80,95,148,.7)}
.event-title{display:block;margin-top:8px;font-size:18px;line-height:1.08;color:#364062;letter-spacing:-.02em;padding-right:28px}
.event-time{margin-top:6px;color:#55618b;font-size:14px;font-weight:700}
.event-meta{margin-top:6px;color:#7480aa;font-size:13px;line-height:1.35}
.event-mint{background:linear-gradient(180deg,#d9f7f2,#c3ece6)}
.event-rose{background:linear-gradient(180deg,#ffd9e6,#f9c2d3)}
.event-violet{background:linear-gradient(180deg,#eadbff,#dac7fa)}
.event-peach{background:linear-gradient(180deg,#ffe8cb,#f8d7ad)}
.event-sky{background:linear-gradient(180deg,#dcedff,#c8ddff)}
.event-lilac{background:linear-gradient(180deg,#f0e6ff,#e4d7ff)}
.event-amber{background:linear-gradient(180deg,#fff0ca,#f5df9d)}
.event-sage{background:linear-gradient(180deg,#dff3de,#cce8cb)}
.event-block.is-task .event-tab{background:linear-gradient(90deg,#ff7ca3,#ffb8ca)}
.event-block:not(.is-task) .event-tab{background:linear-gradient(90deg,#6ad5c2,#84b8ff)}
.day-empty{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.72);border:1px dashed rgba(177,191,235,.35);text-align:center;color:#8993b6;font-size:13px;font-weight:700}
.floating-add-btn{position:fixed;right:max(24px, calc((100vw - min(100vw, 920px))/2 + 18px));bottom:96px;width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#8a74ff,#b98eff);color:#fff;font-size:40px;box-shadow:0 18px 28px rgba(123,101,219,.34);z-index:8}
@media (max-width: 980px){
  .calendar-board-shell{grid-template-columns:1fr}
  .board-sidebar{position:static;flex-direction:row;overflow:auto}
  .week-board-wrap{grid-template-columns:64px minmax(0,1fr)}
  .week-columns{overflow:auto;padding-bottom:6px}
  .week-columns{grid-template-columns:repeat(7, minmax(160px,1fr))}
}
@media (max-width: 700px){
  .board-wallpaper{padding:10px;border-radius:28px}
  .calendar-board-card{padding:18px 16px 22px;border-radius:24px}
  .board-family{font-size:30px}
  .board-topline,.board-toolbar{align-items:flex-start}
  .board-user-chip,.board-nav-btn,.board-week-label{width:100%;text-align:center}
  .floating-add-btn{right:18px;bottom:90px;width:58px;height:58px;font-size:34px}
  .day-name{font-size:16px}.day-date{font-size:20px}
  .event-title{font-size:16px}
}


/* ===== Sitewide pastel shell background and responsive rebuild ===== */
html,body{min-height:100%}
body.app-theme-shell{
  position:relative;
  justify-content:center;
  background:#edf0fb;
  color:#2f3655;
}
body.app-theme-shell::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(238,242,255,.82)),
    url('../img/app-shell-bg.png') center/cover no-repeat;
  z-index:-2;
}
body.app-theme-shell::after{
  content:"";
  position:fixed;
  inset:0;
  background:radial-gradient(circle at top left, rgba(124,170,255,.18), transparent 24%), radial-gradient(circle at bottom right, rgba(140,167,255,.22), transparent 26%);
  z-index:-1;
  pointer-events:none;
}
.mobile-shell{
  width:min(100%, 1520px);
  min-height:100vh;
  background:transparent;
  padding:20px clamp(12px,2vw,28px) 110px;
}
.app-topbar{
  position:sticky;
  top:0;
  padding:20px 24px 14px;
  border-radius:28px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(179,192,235,.36);
  backdrop-filter:blur(12px);
  box-shadow:0 18px 36px rgba(95,112,170,.12);
}
.brand-wordmark,.screen-title,.auth-title{color:#4d60b0;text-shadow:0 2px 0 rgba(255,255,255,.8)}
.brand-subtitle,.screen-subtitle,.kicker,.helper,.meta,.empty-state,.center-empty,.list-card p,.info-card p,.board-subline{color:#6e7aa6}
.avatar-circle{background:linear-gradient(180deg,#89b2ff,#a697ff);border-color:rgba(255,255,255,.9)}
.app-screen{padding:18px 6px 120px}
.info-card,.list-card,.form-card,.menu-card,.calendar-card,.feature-panel,.card,.auth-card,.table-wrap,.simple-item,.mini-card{
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(245,248,255,.88));
  color:#344062;
  border:1px solid rgba(179,192,235,.32);
  box-shadow:0 16px 38px rgba(95,112,170,.12);
  backdrop-filter:blur(12px);
}
.auth-wrap{padding:24px}
.form-card input,.form-card textarea,.form-card select,.form-card button,
.mobile-form textarea,.mobile-form input,.mobile-form select,
.btn,.pill,.badge,.board-nav-btn,.board-week-label,.board-user-chip{
  border-color:rgba(179,192,235,.34);
}
.form-card input,.form-card textarea,.form-card select,
.mobile-form textarea,.mobile-form input,.mobile-form select{
  background:rgba(255,255,255,.9);
  color:#33405f;
}
.form-card button,.btn.primary{background:linear-gradient(180deg,#8aaeff,#9e92ff);color:#fff;border:none}
.btn.soft,.btn.ghost,.btn{background:rgba(255,255,255,.85);color:#41507c}
.btn.warn{background:linear-gradient(180deg,#ffd67d,#ffbf5a);color:#6b4600;border:none}
.simple-item,.mini-card,.table-wrap{background:rgba(255,255,255,.72)}
.table-wrap table{background:transparent}
th{color:#7682ab}
td{color:#3c476d}
.bottom-nav{
  width:min(calc(100% - 24px), 860px);
  background:rgba(255,255,255,.76);
  border:1px solid rgba(179,192,235,.3);
  box-shadow:0 16px 32px rgba(95,112,170,.14);
}
.bottom-nav a{color:#7380aa}
.bottom-nav a.is-active{background:linear-gradient(180deg,#8aaeff,#a792ff);color:#fff}
.module-icon .plus{border-color:#fff}
.menu-icon{color:#7380aa}
.flash{background:rgba(255,255,255,.76);color:#44527e;border-color:rgba(179,192,235,.32)}
.flash.success{color:#2f8f57}.flash.error{color:#bb4d66}

/* Desktop/tablet layout polish */
@media (min-width: 981px){
  .bottom-nav{display:none}
  .app-screen{padding-bottom:40px}
  .grid-2,.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width: 1280px){
  .module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width: 1600px){
  .mobile-shell{width:min(100%, 1800px)}
  .app-topbar{padding:26px 32px 18px}
  .brand-wordmark,.screen-title{font-size:64px}
  .app-screen{padding:24px 10px 48px}
  .calendar-board-shell{grid-template-columns:96px minmax(0,1fr)}
  .week-columns{grid-template-columns:repeat(7,minmax(180px,1fr))}
  .time-column{grid-template-rows:60px repeat(9, 78px)}
  .day-grid{grid-template-rows:repeat(var(--rows), 39px)}
  .day-grid{min-height:calc(39px * var(--rows) + 12px)}
}

/* Tablet/mobile */
@media (max-width: 980px){
  .mobile-shell{padding:14px 10px 112px}
  .app-topbar{padding:16px 18px 12px;border-radius:22px}
  .brand-wordmark,.screen-title,.auth-title{font-size:38px}
  .calendar-stage.board-wallpaper{min-height:auto}
}
@media (max-width: 700px){
  .mobile-shell{padding:10px 8px 110px}
  .app-topbar{padding:14px 14px 10px}
  .brand-wordmark,.screen-title,.auth-title{font-size:30px}
  .brand-subtitle,.screen-subtitle{font-size:14px}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .button-row{flex-direction:column}
  .btn{min-width:unset;width:100%}
  .photo-card img{height:180px}
  .stats-grid{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .module-grid{grid-template-columns:1fr 1fr;gap:14px}
  .module-icon{width:78px;height:78px}
  .module-name{font-size:15px}
  .grid-2,.two-col,.photo-grid{grid-template-columns:1fr}
}

/* Touch / kiosk / TV-friendly sizing */
@media (pointer: coarse){
  .btn,.bottom-nav a,.board-side-icon,.floating-add-btn,.board-nav-btn{min-height:48px}
}
@media (min-width: 1900px){
  body.app-theme-shell{font-size:18px}
  .bottom-nav a small{font-size:14px}
  .board-side-icon{padding:16px 10px}
  .floating-add-btn{width:84px;height:84px;font-size:46px}
}

/* Calendar specific shell improvements */
.board-wallpaper{background:transparent}
.calendar-stage{margin-top:10px}
.calendar-board-shell{align-items:start}
.floating-add-btn{right:24px;bottom:28px;position:fixed}
@media (max-width:980px){
  .floating-add-btn{bottom:98px;right:18px}
}

/* Safe shared shell upgrade */
body.app-theme-shell{justify-content:center;background:linear-gradient(180deg,#090b11,#060606)}
.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:0;width:min(100%,1440px);min-height:100vh}
.sidebar-nav{position:sticky;top:0;height:100vh;padding:24px 18px;background:linear-gradient(180deg,#10131b,#0b0d13);border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:18px}
.sidebar-brand{padding:8px 10px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-wordmark{font-size:36px;line-height:.9}
.sidebar-subtitle{font-size:14px;color:var(--muted);letter-spacing:.14em;text-transform:uppercase;margin-top:8px}
.sidebar-links{display:grid;gap:10px}
.sidebar-link{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;color:#d4d7df;border:1px solid transparent;transition:.2s ease}
.sidebar-link:hover{background:#161922;border-color:rgba(255,255,255,.06)}
.sidebar-link.is-active{background:linear-gradient(180deg,#202633,#171b24);border-color:rgba(255,255,255,.08);color:#fff}
.sidebar-link img{width:22px;height:22px;object-fit:contain;filter:brightness(0) invert(1);opacity:.9}
.install-app-btn{margin-top:auto;border:none;border-radius:16px;padding:14px 16px;background:#fff;color:#111;font-weight:800;cursor:pointer}
.app-main{min-width:0;display:flex;flex-direction:column}
.app-topbar{padding-left:24px;padding-right:24px}
.app-screen{padding:14px 24px 110px}
.app-footer-branding{padding:10px 24px 90px;color:#9197a7;font-size:13px;text-align:center}
.bottom-nav{display:none}

@media (max-width: 980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar-nav{display:none}
  .bottom-nav{display:grid}
  .app-footer-branding{padding-bottom:92px}
}

.mobile-shell:not(.app-shell) .app-footer-branding{padding:18px 24px 24px}



.app-status-banner{position:fixed;right:18px;bottom:18px;z-index:1200;padding:12px 16px;border-radius:16px;background:#1d2330;color:#fff;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.25);max-width:min(92vw,380px);font-weight:700}
.app-status-banner.warning{background:#533b0f}
.app-status-banner.success{background:#173d28}
.session-expired-overlay{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;background:rgba(6,10,18,.6);backdrop-filter:blur(8px);padding:20px}
.session-expired-card{width:min(100%,420px);background:linear-gradient(180deg,#151821,#0c0e15);padding:28px;border-radius:28px;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px rgba(0,0,0,.35);text-align:center}
.session-expired-card h3{margin:0 0 10px;font-size:28px}
.session-expired-card p{margin:0;color:var(--muted);line-height:1.6}
.session-expired-actions{display:flex;justify-content:center;margin-top:18px}
@media (max-width:700px){.app-status-banner{left:14px;right:14px;bottom:90px;max-width:none}}


.current-household-row td{background:rgba(116,200,61,.06)}
.sidebar-subtitle{max-width:180px;white-space:normal;line-height:1.3;text-align:center;margin:8px auto 0;color:var(--muted);font-size:13px}


.clean-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px}.clean-list li{padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.03)}.admin-stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.sidebar-subtitle{word-break:break-word}.section-title .pill{white-space:nowrap}


.workspace-switch-inline {
    margin-top: 10px;
}
.workspace-switch-inline select {
    width: 100%;
    max-width: 260px;
}


.btn-ghost.danger, .danger {
    border-color: rgba(255, 98, 98, .45);
    color: #ffd2d2;
}


/* ===== UI polish and overflow safety upgrade ===== */
html{scroll-behavior:smooth}
body, .app-main, .app-screen, .grid, .grid-2, .row, .two-col, .stack, .content-stack,
.info-card, .list-card, .form-card, .menu-card, .calendar-card, .feature-panel, .card,
.table-wrap, .simple-item, .mini-card, .split-head, .section-title, .actions, .inline-form,
.inline-stack, .button-row, .sidebar-links, .sidebar-link, table, td, th {min-width:0}

body.app-theme-shell{overflow-x:hidden}
.app-main{overflow-x:hidden}
.app-screen{overflow-x:auto;overflow-y:visible}
.sidebar-nav{overflow-y:auto;scrollbar-gutter:stable}
.sidebar-links{padding-right:4px}
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:720px}

::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:rgba(126,140,193,.10);border-radius:999px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(125,167,255,.78),rgba(160,137,255,.78));border-radius:999px;border:2px solid rgba(255,255,255,.55)}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(125,167,255,.95),rgba(160,137,255,.95))}

.btn,
button,
input[type=submit],
input[type=button],
.mobile-form button,
.compact-form button,
.auth-card button,
.card button,
button[type=submit],
.install-app-btn,
.mini-btn,
.btn-ghost{
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.btn,
.mobile-form button,
.compact-form button,
.auth-card button,
.card button,
button[type=submit],
.install-app-btn{
  min-height:48px;
  box-shadow:0 10px 24px rgba(93,111,171,.16);
}

.btn:hover,
.mobile-form button:hover,
.compact-form button:hover,
.auth-card button:hover,
.card button:hover,
button[type=submit]:hover,
.install-app-btn:hover,
.mini-btn:hover,
.btn-ghost:hover,
.sidebar-link:hover,
.bottom-nav a:hover,
.avatar-chip:hover,
.module-card:hover{
  transform:translateY(-1px);
}

.btn:active,
.mobile-form button:active,
.compact-form button:active,
.auth-card button:active,
.card button:active,
button[type=submit]:active,
.install-app-btn:active,
.mini-btn:active,
.btn-ghost:active,
.sidebar-link:active,
.bottom-nav a:active,
.module-card:active{
  transform:translateY(0);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(255,255,255,.72),0 0 0 6px rgba(142,150,255,.42);
}

.btn,
.mobile-form button,
.compact-form button,
.auth-card button,
.card button,
button[type=submit]{
  font-weight:800;
  letter-spacing:.01em;
}

.btn.soft,
.btn.ghost,
.btn-ghost,
.mini-btn,
.board-nav-btn,
.board-week-label,
.board-user-chip,
.workspace-switch-inline select{
  background:rgba(255,255,255,.88);
  color:#42517d;
  border:1px solid rgba(179,192,235,.42);
}

.btn.primary,
.mobile-form button,
.compact-form button,
.auth-card button,
.card button,
button[type=submit],
.install-app-btn{
  background:linear-gradient(180deg,#7faeff,#998dff);
  color:#fff;
  border:none;
}

.btn.primary:hover,
.mobile-form button:hover,
.compact-form button:hover,
.auth-card button:hover,
.card button:hover,
button[type=submit]:hover,
.install-app-btn:hover{
  box-shadow:0 16px 32px rgba(102,119,201,.26);
}

.btn.warn,
.mini-btn.danger,
.btn-ghost.danger,
.danger{
  background:linear-gradient(180deg,#ffb0a4,#ff8d86);
  color:#5f1717;
  border-color:rgba(255,120,120,.25);
}

.module-card{
  padding:14px 10px 16px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.40),rgba(255,255,255,.18));
  border:1px solid rgba(179,192,235,.20);
}
.module-card:hover{box-shadow:0 18px 36px rgba(95,112,170,.12)}
.module-name{line-height:1.15}

.sidebar-link{position:relative;font-weight:700}
.sidebar-link::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:8px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#8ab2ff,#af98ff);
  opacity:0;
  transform:scaleX(.35);
  transition:opacity .18s ease, transform .18s ease;
}
.sidebar-link:hover::after,
.sidebar-link.is-active::after{opacity:1;transform:scaleX(1)}

.bottom-nav{
  grid-template-columns:repeat(4,minmax(84px,1fr));
  overflow-x:auto;
  padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a{
  min-height:64px;
  font-weight:700;
}

.app-topbar{gap:16px}
.brand-wordmark,.screen-title,.auth-title{overflow-wrap:anywhere}
.workspace-switch-inline select{border-radius:14px;padding:12px 14px}

.card,
.info-card,
.list-card,
.form-card,
.menu-card,
.calendar-card,
.feature-panel,
.auth-card{
  overflow:hidden;
}

@media (max-width: 980px){
  .app-topbar{flex-wrap:wrap;align-items:flex-start}
  .avatar-chip{align-self:flex-start}
  .sidebar-nav{max-height:none}
}

@media (max-width: 760px){
  .table-wrap table{min-width:640px}
  .section-title,.split-head{flex-wrap:wrap;align-items:flex-start}
  .button-row{display:grid;grid-template-columns:1fr;gap:12px}
  .btn,
  .mobile-form button,
  .compact-form button,
  .auth-card button,
  .card button,
  button[type=submit]{width:100%}
}

@media (max-width: 520px){
  .mobile-shell{padding-left:8px;padding-right:8px}
  .app-topbar{padding:14px 12px 10px}
  .app-screen{padding:14px 2px 118px}
  .table-wrap{border-radius:20px}
  .table-wrap table{min-width:560px}
  .bottom-nav{gap:8px}
  .bottom-nav a small{font-size:11px}
}


/* ===== Skylight-style upgrade layer ===== */
:root{
  --sky-bg:#eef3ff;
  --sky-panel:#ffffff;
  --sky-panel-2:#f7f9ff;
  --sky-line:rgba(102,126,194,.16);
  --sky-text:#25304f;
  --sky-muted:#6f7b9d;
  --sky-primary:#6f8cff;
  --sky-primary-2:#8fc1ff;
  --sky-warm:#ffd978;
  --sky-green:#7bd3b2;
  --sky-shadow:0 18px 45px rgba(83,104,168,.16);
}
body.app-theme-shell .mobile-shell{
  width:min(100%, 1440px);
  padding:18px;
}
body.app-theme-shell .app-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.sidebar-nav{
  position:sticky;
  top:18px;
  min-height:calc(100vh - 36px);
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(244,247,255,.9));
  backdrop-filter:blur(18px);
  border:1px solid var(--sky-line);
  box-shadow:var(--sky-shadow);
  border-radius:32px;
  padding:22px 18px;
}
.sidebar-brand{
  padding:8px 10px 18px;
  border-bottom:1px solid rgba(102,126,194,.12);
  margin-bottom:14px;
}
.sidebar-wordmark,.brand-wordmark{font-family:Inter,Segoe UI,Arial,sans-serif;font-weight:800;letter-spacing:-.04em;color:#24304d}
.sidebar-wordmark{font-size:28px}
.sidebar-subtitle,.brand-subtitle{color:var(--sky-muted)}
.sidebar-links{display:grid;gap:10px}
.sidebar-link{
  display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;
  color:#44506f;border:1px solid transparent;transition:.2s ease;
}
.sidebar-link img{width:20px;height:20px;opacity:.82}
.sidebar-link:hover,.sidebar-link.is-active{
  background:linear-gradient(180deg,#ffffff,#f4f7ff);
  border-color:var(--sky-line);
  box-shadow:0 10px 24px rgba(111,140,255,.10);
  color:#24304d;
  transform:translateY(-1px);
}
.install-app-btn{
  margin-top:auto;border:none;border-radius:16px;padding:14px 16px;font-weight:800;
  background:linear-gradient(135deg,var(--sky-primary),var(--sky-primary-2));color:#fff;box-shadow:var(--sky-shadow)
}
.app-main{min-width:0}
.app-topbar{
  top:18px;padding:24px 26px;margin-bottom:16px;border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(247,249,255,.86));
  border:1px solid var(--sky-line);box-shadow:var(--sky-shadow);backdrop-filter:blur(14px)
}
.brand-kicker{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#edf3ff;color:#6173a7;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
.topbar-meta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.role-pill{display:inline-flex;align-items:center;padding:9px 12px;border-radius:999px;background:#eef3ff;color:#596b9c;font-size:12px;font-weight:800;border:1px solid rgba(102,126,194,.12)}
.role-pill.soft{background:#fff9ea;color:#90723a}
.avatar-chip{padding:8px;border-radius:22px;background:rgba(255,255,255,.65);border:1px solid var(--sky-line)}
.avatar-circle{
  width:56px;height:56px;background:linear-gradient(135deg,var(--sky-primary),#9eb0ff);border:none;
  box-shadow:0 12px 24px rgba(111,140,255,.24)
}
.workspace-switch-inline{margin-top:12px}
.workspace-switch-inline select{
  min-width:240px;border-radius:16px;border:1px solid var(--sky-line);background:#fff;color:#394666;
  padding:12px 14px;font-weight:700;box-shadow:0 8px 18px rgba(83,104,168,.07)
}
.app-screen{padding:0 4px 110px;color:var(--sky-text)}
.flash{background:#fff;border:1px solid var(--sky-line);box-shadow:0 12px 22px rgba(83,104,168,.08);color:#3d4c73}
.screen-title,.screen-title.small,.info-card h2,.card-title{font-family:Inter,Segoe UI,Arial,sans-serif;color:#24304d;font-weight:800}
.screen-subtitle,.kicker,.simple-item .meta,.helper,.subtitle{color:var(--sky-muted)}
.info-card,.list-card,.form-card,.menu-card,.calendar-card,.section-card,.stat-card,.photo-card,.simple-item,.auth-card{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,255,.94));
  border:1px solid var(--sky-line);box-shadow:var(--sky-shadow);color:var(--sky-text)
}
.info-card.blue,.soft-surface{background:linear-gradient(180deg,#f4f8ff,#edf2ff)}
.btn,button,.form-card button,.auth-card button{
  border:none;border-radius:16px;padding:14px 20px;font-size:16px;font-weight:800;min-width:auto;
  background:linear-gradient(135deg,var(--sky-primary),var(--sky-primary-2));color:#fff;box-shadow:0 14px 24px rgba(111,140,255,.20);transition:.2s ease
}
.btn:hover,button:hover,.form-card button:hover,.auth-card button:hover{transform:translateY(-1px);box-shadow:0 16px 28px rgba(111,140,255,.24)}
.btn.soft,.btn-ghost,.btn.ghost{background:#fff;color:#41517d;border:1px solid var(--sky-line);box-shadow:0 10px 22px rgba(83,104,168,.08)}
.btn.warn,.btn.danger,.btn-ghost.danger{background:linear-gradient(135deg,#ff8e95,#ffb0a5);color:#fff}
.form-card input,.form-card textarea,.form-card select,.auth-card input,.auth-card textarea,.auth-card select{
  background:#fff;border:1px solid rgba(102,126,194,.18);color:#24304d;border-radius:16px;padding:14px 16px
}
.menu-card,.module-card{transition:.2s ease}
.menu-card:hover,.module-card:hover{transform:translateY(-3px)}
.module-grid.skylight-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.module-card{
  padding:22px;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(247,249,255,.94));
  border:1px solid var(--sky-line);box-shadow:var(--sky-shadow)
}
.module-icon{width:96px;height:96px;font-size:40px;box-shadow:none}
.module-name{font-size:20px;color:#2d395c;margin-top:6px}
.sky-hero-card{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:18px;
  padding:28px;border-radius:36px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(237,244,255,.96));
  border:1px solid var(--sky-line);box-shadow:var(--sky-shadow);margin-bottom:20px;overflow:hidden;position:relative
}
.sky-hero-card::after{
  content:"";position:absolute;right:-60px;top:-70px;width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,#d9e4ff 0%, rgba(217,228,255,0) 70%);pointer-events:none
}
.eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#edf3ff;color:#6071a4;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px}
.sky-hero-title{font-size:42px;line-height:1.02;margin:0;color:#24304d;letter-spacing:-.04em}
.sky-hero-text{max-width:700px;color:#64739b;font-size:18px;line-height:1.6;margin:14px 0 0}
.hero-action-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.sky-hero-side{display:flex;align-items:stretch}
.sky-metric-stack{display:grid;gap:12px;width:100%}
.sky-mini-card,.sky-stat-card{
  background:rgba(255,255,255,.76);border:1px solid rgba(102,126,194,.12);border-radius:24px;padding:18px;box-shadow:0 14px 24px rgba(83,104,168,.08)
}
.sky-mini-card span,.stat-kicker{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a87a8;font-weight:800;margin-bottom:10px}
.sky-mini-card strong{display:block;font-size:34px;color:#24304d;line-height:1}
.sky-mini-card small,.sky-stat-card p{color:#6f7b9d;font-size:14px}
.sky-mini-card.warm{background:linear-gradient(180deg,#fff6de,#fff1c8)}
.sky-mini-card.accent{background:linear-gradient(180deg,#e8f7f0,#ddf4ee)}
.sky-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.sky-stat-card h3{font-size:28px;color:#24304d;line-height:1.1;margin:0 0 8px}
.sky-stat-card.soft-blue{background:linear-gradient(180deg,#edf3ff,#e7efff)}
.sky-stat-card.soft-gold{background:linear-gradient(180deg,#fff8e6,#fff1cf)}
.sky-section,.sky-layout-gap{margin-top:6px}
.skylight-head{margin-bottom:12px}
.skylight-list-card{padding:24px}
.section-card{border-radius:30px;padding:26px}
.settings-stack{display:grid;gap:14px}
.stat-pill{background:#fff;border:1px solid var(--sky-line);border-radius:20px;padding:16px 18px;box-shadow:0 10px 18px rgba(83,104,168,.06)}
.stat-label{display:block;color:#6f7b9d;font-size:12px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;margin-bottom:6px}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.inline-form{display:inline}
.bottom-nav{
  position:fixed;left:50%;transform:translateX(-50%);bottom:18px;width:min(calc(100% - 30px), 640px);
  display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border-radius:24px;
  background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border:1px solid var(--sky-line);box-shadow:var(--sky-shadow);z-index:20
}
.bottom-nav a{display:grid;justify-items:center;gap:4px;padding:10px;border-radius:16px;color:#5e6c92;font-weight:800}
.bottom-nav a.is-active,.bottom-nav a:hover{background:#edf3ff;color:#2c395d}
.app-footer-branding{padding:24px 8px 96px;color:#8090b7;text-align:center;font-weight:700}
.auth-wrap{
  min-height:100vh;display:grid;place-items:center;padding:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(238,242,255,.84)),url('../img/family-board-bg.png') center/cover no-repeat
}
.auth-card{width:min(100%,560px);padding:36px;border-radius:34px;backdrop-filter:blur(14px)}
.auth-title{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:48px;line-height:.96;font-weight:900;color:#24304d;letter-spacing:-.05em}
.auth-subtitle{color:#69789f;font-size:17px;line-height:1.6;margin:14px 0 20px}
.form-grid{display:grid;gap:14px}
.table-responsive{width:100%;overflow:auto;border-radius:22px}
@media (max-width: 1140px){
  body.app-theme-shell .app-shell{grid-template-columns:1fr}
  .sidebar-nav{position:static;min-height:auto}
}
@media (max-width: 900px){
  .sky-hero-card,.sky-stat-grid,.module-grid.skylight-grid,.row.two-col{grid-template-columns:1fr}
  .module-grid.skylight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-topbar{padding:20px}
}
@media (max-width: 760px){
  body.app-theme-shell .mobile-shell{padding:10px}
  .sidebar-nav{display:none}
  .app-topbar{top:10px;border-radius:22px}
  .sky-hero-title{font-size:32px}
  .module-grid.skylight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .module-card{padding:18px;border-radius:24px}
  .module-icon{width:82px;height:82px;font-size:34px}
  .bottom-nav{display:grid}
}
@media (max-width: 520px){
  .module-grid.skylight-grid{grid-template-columns:1fr 1fr}
  .hero-action-row,.button-row,.topbar-meta-row{flex-direction:column;align-items:stretch}
  .workspace-switch-inline select,.btn,.btn.soft,.btn.ghost{width:100%}
  .sky-stat-grid{gap:12px}
}


/* Skylight enhancements: theme toggle, icons, reward celebration, empty states */
:root{
  --surface:#101114;
  --surface-2:#1a1c23;
  --surface-3:#242733;
  --sky-bg:#f4f7ff;
  --sky-surface:#ffffff;
  --sky-surface-2:#eef3ff;
  --sky-text:#1d2340;
  --sky-muted:#6e7a9f;
  --sky-border:rgba(123,143,201,.22);
  --sky-shadow:0 16px 38px rgba(89,108,165,.16);
}
body[data-theme="light"]{
  --bg:var(--sky-bg);
  --panel:var(--sky-surface);
  --panel-2:var(--sky-surface-2);
  --panel-3:#dde6ff;
  --text:var(--sky-text);
  --muted:var(--sky-muted);
  --border:var(--sky-border);
  --card-shadow:var(--sky-shadow);
}
body[data-theme="light"] .app-topbar{background:linear-gradient(180deg,rgba(244,247,255,.98),rgba(244,247,255,.9),rgba(244,247,255,0))}
body[data-theme="light"] .info-card,
body[data-theme="light"] .list-card,
body[data-theme="light"] .form-card,
body[data-theme="light"] .menu-card,
body[data-theme="light"] .calendar-card,
body[data-theme="light"] .feature-panel,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .sky-stat-card,
body[data-theme="light"] .sky-hero-card,
body[data-theme="light"] .simple-item,
body[data-theme="light"] .sky-mini-card,
body[data-theme="light"] .meal-card,
body[data-theme="light"] .auth-card,
body[data-theme="light"] .sidebar-nav,
body[data-theme="light"] .app-status-banner,
body[data-theme="light"] .bottom-nav,
body[data-theme="light"] .board-sidebar,
body[data-theme="light"] .member-strip,
body[data-theme="light"] .board-side-icon,
body[data-theme="light"] .board-nav-btn,
body[data-theme="light"] .board-week-label,
body[data-theme="light"] .day-column-head,
body[data-theme="light"] .avatar-circle,
body[data-theme="light"] .role-pill,
body[data-theme="light"] .workspace-switch-inline select,
body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea{
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(246,249,255,.92));
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--card-shadow);
}
body[data-theme="light"] .btn,
body[data-theme="light"] button,
body[data-theme="light"] .mini-btn{color:var(--text)}
body[data-theme="light"] .btn{background:#fff;border-color:var(--border)}
body[data-theme="light"] .btn.primary{background:linear-gradient(135deg,#6da2ff,#8e88ff);color:#fff;border-color:transparent}
body[data-theme="light"] .btn.soft{background:#edf3ff}
body[data-theme="light"] .btn.warn{background:#ffd774;color:#523600}
body[data-theme="light"] .btn.ghost{background:transparent}
body[data-theme="dark"]{
  --bg:#06070b;
  --panel:#12141b;
  --panel-2:#1a1d26;
  --panel-3:#202431;
  --text:#eef2ff;
  --muted:#a3accb;
  --border:rgba(255,255,255,.09);
  --card-shadow:0 18px 40px rgba(0,0,0,.34);
}
body[data-theme="dark"] .sidebar-nav,
body[data-theme="dark"] .app-topbar,
body[data-theme="dark"] .info-card,
body[data-theme="dark"] .list-card,
body[data-theme="dark"] .calendar-card,
body[data-theme="dark"] .feature-panel,
body[data-theme="dark"] .sky-stat-card,
body[data-theme="dark"] .sky-hero-card,
body[data-theme="dark"] .simple-item,
body[data-theme="dark"] .meal-card,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .bottom-nav,
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea{background:linear-gradient(180deg,rgba(20,24,33,.96),rgba(13,16,23,.94));color:var(--text)}
body[data-theme="dark"] .app-topbar{background:linear-gradient(180deg,rgba(6,7,11,.98),rgba(6,7,11,.9),rgba(6,7,11,0))}
body[data-theme="dark"] .btn{background:#10131b;color:#eef2ff;border-color:rgba(255,255,255,.1)}
body[data-theme="dark"] .btn.primary{background:linear-gradient(135deg,#4a74e6,#7662ff);color:#fff}
body[data-theme="dark"] .btn.soft{background:#1c2230}
body[data-theme="dark"] .btn.ghost{background:transparent}
body[data-theme="dark"] .screen-subtitle,
body[data-theme="dark"] .brand-subtitle,
body[data-theme="dark"] .meta,
body[data-theme="dark"] .empty-state,
body[data-theme="dark"] .simple-item .meta,
body[data-theme="dark"] .meal-meta,
body[data-theme="dark"] .board-subline,
body[data-theme="dark"] .member-copy strong + *{color:var(--muted)}

.topbar-actions{display:flex;align-items:center;gap:12px}
.theme-toggle{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.72);cursor:pointer;color:var(--text);font-weight:700}
.theme-toggle-track{width:46px;height:28px;border-radius:999px;background:linear-gradient(135deg,#93b5ff,#c8b8ff);padding:3px;display:inline-flex;align-items:center}
.theme-toggle-thumb{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.18);transform:translateX(0);transition:transform .24s ease}
body[data-theme="dark"] .theme-toggle-track{background:linear-gradient(135deg,#29395f,#4f4c7c)}
body[data-theme="dark"] .theme-toggle-thumb{transform:translateX(18px);background:#dbe3ff}
.theme-toggle-label{font-size:14px;white-space:nowrap}

.sidebar-link img,.bottom-nav img,.module-icon img{width:22px;height:22px;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.08))}
.module-icon img{width:56px;height:56px;opacity:.96}
.bottom-nav a{gap:7px}
.bottom-nav img{width:20px;height:20px}

.empty-state{position:relative;overflow:hidden;display:grid;gap:10px;padding:24px 22px 22px 104px;min-height:112px;align-content:center;background:linear-gradient(180deg,rgba(245,248,255,.96),rgba(236,242,255,.9));border:1px dashed rgba(127,148,213,.35);color:var(--muted)}
.empty-state::before{content:"";position:absolute;left:22px;top:22px;width:60px;height:60px;border-radius:22px;background:radial-gradient(circle at 30% 30%,#fff,rgba(255,255,255,.7) 35%,rgba(160,188,255,.6) 36%,rgba(150,124,255,.55) 100%);box-shadow:0 10px 24px rgba(130,149,211,.25)}
.empty-state::after{content:"";position:absolute;left:39px;top:38px;width:26px;height:26px;background:rgba(255,255,255,.95);clip-path:path("M13 0 L16 9 L26 13 L16 17 L13 26 L10 17 L0 13 L10 9 Z");opacity:.9}
body[data-theme="dark"] .empty-state{background:linear-gradient(180deg,rgba(18,22,31,.96),rgba(13,16,24,.92));border-color:rgba(124,145,208,.24)}

.reward-popup{position:fixed;right:20px;bottom:96px;z-index:50;display:flex;align-items:center;gap:14px;min-width:min(380px,calc(100vw - 32px));max-width:430px;padding:16px 18px;border-radius:24px;background:linear-gradient(135deg,#7da7ff,#a488ff 58%,#f7c76f);color:#fff;box-shadow:0 22px 50px rgba(86,89,182,.3);border:1px solid rgba(255,255,255,.24);transform:translateY(18px) scale(.94);opacity:0;animation:rewardSlideIn .55s cubic-bezier(.2,.7,.2,1) forwards}
.reward-popup-badge{width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:24px;font-weight:900;flex:none}
.reward-popup-copy{display:grid;gap:4px;min-width:0}
.reward-popup-copy strong{font-size:17px}
.reward-popup-copy span{font-size:14px;line-height:1.4;color:rgba(255,255,255,.88)}
.reward-popup-points{margin-left:auto;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.18);font-weight:800;font-size:14px}
.reward-confetti{position:fixed;inset:0;pointer-events:none;z-index:49;overflow:hidden}
.reward-confetti-piece{position:absolute;top:-12px;width:10px;height:18px;border-radius:999px;opacity:.95;animation:confettiFall 1.8s linear forwards}
@keyframes rewardSlideIn{from{transform:translateY(18px) scale(.94);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes rewardSlideOut{to{transform:translateY(16px) scale(.96);opacity:0}}
@keyframes confettiFall{0%{transform:translate3d(0,0,0) rotate(0deg)}100%{transform:translate3d(var(--x-shift),110vh,0) rotate(520deg)}}

@media (max-width:760px){
  .topbar-actions{gap:8px}
  .theme-toggle{padding:8px 10px}
  .theme-toggle-label{display:none}
  .reward-popup{right:12px;left:12px;bottom:88px;min-width:auto}
  .empty-state{padding-left:92px}
}


body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder{color:rgba(29,35,64,.55)}
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] option{
  background:#141821;
  color:#eef2ff;
  border-color:rgba(255,255,255,.09);
}
body[data-theme="dark"] select{
  color-scheme:dark;
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder{color:rgba(238,242,255,.58)}
body[data-theme="dark"] select option,
body[data-theme="dark"] optgroup{
  background:#141821;
  color:#eef2ff;
}
body[data-theme="dark"] .theme-toggle{
  background:rgba(18,22,31,.92);
  color:#eef2ff;
  border-color:rgba(255,255,255,.12);
}
body[data-theme="light"] .theme-toggle{
  background:rgba(255,255,255,.88);
}

/* === Skylight shell rebuild === */
body.app-theme-shell {
  display:block;
  background:
    radial-gradient(circle at top left, rgba(177,217,255,.55), transparent 24%),
    radial-gradient(circle at top right, rgba(213,236,255,.70), transparent 28%),
    linear-gradient(180deg,#f6fbff 0%,#edf7ff 46%,#e7f2ff 100%);
  color:#28425c;
}
body.app-theme-shell[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(53,108,173,.28), transparent 24%),
    radial-gradient(circle at top right, rgba(76,126,184,.24), transparent 28%),
    linear-gradient(180deg,#0d1b2a 0%,#10263d 46%,#0f2236 100%);
  color:#e8f2ff;
}
body.app-theme-shell .mobile-shell.app-shell{
  width:100%;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(280px,320px) minmax(0,1fr);
  background:transparent;
}
body.app-theme-shell .app-main{min-width:0;display:flex;flex-direction:column}
body.app-theme-shell .app-screen{padding:24px 24px 110px}
body.app-theme-shell .shell-backdrop{position:fixed;inset:0;background:rgba(54,83,109,.24);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:.2s ease;z-index:18}
body.app-theme-shell .shell-backdrop.is-visible{opacity:1;pointer-events:auto}
body.app-theme-shell .skylight-sidebar{
  position:sticky;top:0;height:100vh;padding:20px 16px 22px;
  background:rgba(255,255,255,.82);backdrop-filter:blur(18px);border-right:1px solid rgba(181,210,235,.7);
  box-shadow:20px 0 40px rgba(111,150,188,.12);overflow:auto;z-index:20
}
body.app-theme-shell[data-theme="dark"] .skylight-sidebar{
  background:rgba(12,27,43,.94);border-right-color:rgba(90,119,149,.25);box-shadow:20px 0 40px rgba(0,0,0,.18)
}
body.app-theme-shell .sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 6px 16px;margin-bottom:8px;border-bottom:1px solid rgba(181,210,235,.65)}
body.app-theme-shell[data-theme="dark"] .sidebar-brand{border-bottom-color:rgba(90,119,149,.25)}
body.app-theme-shell .sidebar-brand-mark{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#ffffff,#dceeff);color:#4b78a3;font-weight:800;box-shadow:0 10px 22px rgba(130,174,214,.2)}
body.app-theme-shell[data-theme="dark"] .sidebar-brand-mark{background:linear-gradient(145deg,#18314d,#25486d);color:#d8ebff}
body.app-theme-shell .sidebar-wordmark{font-family:inherit;font-size:1.1rem;line-height:1.1;letter-spacing:0;font-weight:700;color:#35506d}
body.app-theme-shell[data-theme="dark"] .sidebar-wordmark{color:#e2efff}
body.app-theme-shell .sidebar-subtitle{color:#7b97b4;font-size:.85rem;margin-top:2px}
body.app-theme-shell[data-theme="dark"] .sidebar-subtitle{color:#8ea9c4}
body.app-theme-shell .sidebar-section-label{color:#7b97b4;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;padding:2px 8px 10px}
body.app-theme-shell[data-theme="dark"] .sidebar-section-label{color:#8ea9c4}
body.app-theme-shell .sidebar-groups{display:grid;gap:10px}
body.app-theme-shell .sidebar-link,
body.app-theme-shell .sidebar-group-toggle{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-width:0;
  border:1px solid rgba(186,214,236,.78);background:rgba(255,255,255,.78);color:#35526f;border-radius:18px;padding:14px 15px;
  box-shadow:0 10px 24px rgba(107,152,196,.12);transition:.18s ease;cursor:pointer
}
body.app-theme-shell[data-theme="dark"] .sidebar-link,
body.app-theme-shell[data-theme="dark"] .sidebar-group-toggle{
  border-color:rgba(85,114,143,.28);background:rgba(23,39,57,.92);color:#e2efff
}
body.app-theme-shell .sidebar-link:hover,
body.app-theme-shell .sidebar-group-toggle:hover,
body.app-theme-shell .sidebar-link.is-active,
body.app-theme-shell .sidebar-group.is-open > .sidebar-group-toggle{
  transform:translateY(-1px);
  background:linear-gradient(135deg,rgba(126,184,255,.18),rgba(200,227,255,.28));border-color:rgba(126,184,255,.45)
}
body.app-theme-shell .link-icon-wrap{width:34px;height:34px;min-width:34px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(141,192,255,.28),rgba(200,227,255,.65));box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
body.app-theme-shell[data-theme="dark"] .link-icon-wrap{background:linear-gradient(135deg,rgba(93,152,221,.35),rgba(140,184,234,.24));box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
body.app-theme-shell .link-icon-wrap img{width:18px;height:18px;opacity:.88}
body.app-theme-shell .link-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
body.app-theme-shell .link-copy strong{font-size:.98rem;line-height:1.15}
body.app-theme-shell .link-copy small{font-size:.78rem;color:#6f8aa5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.app-theme-shell[data-theme="dark"] .link-copy small{color:#9fb3c8}
body.app-theme-shell .link-chevron{opacity:.72;font-size:.95rem}
body.app-theme-shell .sidebar-sublinks{display:none;gap:8px;padding:8px 0 0 10px}
body.app-theme-shell .sidebar-group.is-open .sidebar-sublinks{display:grid}
body.app-theme-shell .sidebar-sub-link{min-height:44px;display:flex;align-items:center;border-radius:14px;background:rgba(255,255,255,.8);border:1px solid rgba(190,218,239,.75);padding:11px 12px;color:#466786;gap:10px}
body.app-theme-shell[data-theme="dark"] .sidebar-sub-link{background:rgba(19,35,52,.96);border-color:rgba(82,111,141,.3);color:#c7daef}
body.app-theme-shell .sidebar-sub-link::before{content:'•';color:#7eb8ff;font-size:1rem}
body.app-theme-shell .sidebar-sub-link.is-active{background:linear-gradient(135deg,rgba(126,184,255,.18),rgba(200,227,255,.28));border-color:rgba(126,184,255,.45)}
body.app-theme-shell .install-app-btn-skylight{margin-top:14px;width:100%;border-radius:16px;border:1px solid rgba(191,218,238,.82);background:linear-gradient(135deg,#8dc0ff,#c8e3ff);color:#315170;font-size:.95rem;min-height:46px}
body.app-theme-shell .skylight-topbar{
  padding:18px 24px 12px;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
  position:sticky;top:0;z-index:12;background:rgba(255,255,255,.48);backdrop-filter:blur(16px);border-bottom:1px solid rgba(183,211,236,.7)
}
body.app-theme-shell[data-theme="dark"] .skylight-topbar{background:rgba(14,28,44,.78);border-bottom-color:rgba(96,124,154,.28)}
body.app-theme-shell .topbar-start,
body.app-theme-shell .topbar-end{display:flex;align-items:center;gap:12px;min-width:0}
body.app-theme-shell .topbar-start{flex:1 1 auto}
body.app-theme-shell .topbar-end{flex:0 0 auto;justify-content:flex-end;flex-wrap:wrap}
body.app-theme-shell .topbar-copy{min-width:0;display:grid;gap:4px}
body.app-theme-shell .brand-kicker{color:#7b97b4;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px}
body.app-theme-shell[data-theme="dark"] .brand-kicker{color:#8ea9c4}
body.app-theme-shell .brand-wordmark{font-family:inherit;font-size:2rem;line-height:1.02;letter-spacing:-.03em;font-weight:700;color:#34516d;word-break:break-word}
body.app-theme-shell[data-theme="dark"] .brand-wordmark{color:#e7f2ff}
body.app-theme-shell .brand-subtitle{color:#6f8aa5;margin-top:8px;font-size:.98rem}
body.app-theme-shell[data-theme="dark"] .brand-subtitle{color:#9fb3c8}
body.app-theme-shell .topbar-meta-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
body.app-theme-shell .role-pill{border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.8);border:1px solid rgba(180,209,235,.8);color:#44617e;font-size:.82rem;font-weight:700}
body.app-theme-shell[data-theme="dark"] .role-pill{background:rgba(26,43,62,.92);border-color:rgba(90,119,149,.32);color:#d6e7fa}
body.app-theme-shell .role-pill.soft{font-weight:600}
body.app-theme-shell .topbar-control,
body.app-theme-shell .avatar-chip.skylight-avatar-chip{
  width:48px;height:48px;min-width:48px;flex:0 0 48px;border-radius:16px;border:1px solid rgba(180,209,235,.8);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(220,235,255,.72));color:#44617e;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(107,152,196,.12);cursor:pointer;transition:.18s ease;position:relative;padding:0;line-height:1;overflow:hidden
}
body.app-theme-shell[data-theme="dark"] .topbar-control,
body.app-theme-shell[data-theme="dark"] .avatar-chip.skylight-avatar-chip{background:linear-gradient(135deg,rgba(35,55,75,.95),rgba(25,45,65,.85));border-color:rgba(90,119,149,.35);color:#d6e7fa}
body.app-theme-shell .topbar-control:hover,
body.app-theme-shell .avatar-chip.skylight-avatar-chip:hover{transform:translateY(-1px) scale(1.03);box-shadow:0 10px 28px rgba(141,192,255,.25)}
body.app-theme-shell .topbar-control > *,
body.app-theme-shell .avatar-chip.skylight-avatar-chip > *{display:inline-flex;align-items:center;justify-content:center;line-height:1}
body.app-theme-shell .topbar-control .theme-icon{width:100%;height:100%}
body.app-theme-shell .avatar-chip.skylight-avatar-chip .avatar-circle{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;background:rgba(255,255,255,.38)}
body.app-theme-shell[data-theme="dark"] .avatar-chip.skylight-avatar-chip .avatar-circle{background:rgba(255,255,255,.08)}
body.app-theme-shell .theme-toggle-icon-btn{background:linear-gradient(135deg,#8dc0ff,#c8e3ff);color:#2f4d6a;font-size:1.1rem;font-weight:700;box-shadow:0 0 0 1px rgba(141,192,255,.2),0 0 18px rgba(141,192,255,.35)}
body.app-theme-shell[data-theme="dark"] .theme-toggle-icon-btn{background:linear-gradient(135deg,#5d98dd,#8cb8ea);color:#fff}
body.app-theme-shell .profile-shell{position:relative}
body.app-theme-shell .profile-menu-shell{position:absolute;top:calc(100% + 10px);right:0;width:min(280px,calc(100vw - 24px));display:none;background:rgba(248,248,248,.98);border:1px solid #ddd;border-radius:14px;box-shadow:var(--card-shadow);overflow:hidden}
body.app-theme-shell[data-theme="dark"] .profile-menu-shell{background:rgba(17,25,35,.98);border-color:rgba(88,111,136,.34)}
body.app-theme-shell .profile-menu-shell.is-open{display:block}
body.app-theme-shell .profile-menu-head{padding:16px;border-bottom:1px solid #ddd;background:#f5f5f5;display:grid;gap:4px}
body.app-theme-shell[data-theme="dark"] .profile-menu-head{background:rgba(28,38,50,.98);border-bottom-color:rgba(88,111,136,.34)}
body.app-theme-shell .profile-menu-head strong{color:#262626}.profile-menu-head span{color:#717171;font-size:.86rem}
body.app-theme-shell[data-theme="dark"] .profile-menu-head strong{color:#edf4fb}.profile-menu-head span{color:#afc0d2}
body.app-theme-shell .profile-menu-shell a{display:flex;align-items:center;min-height:44px;padding:12px 16px;color:#262626}
body.app-theme-shell[data-theme="dark"] .profile-menu-shell a{color:#edf4fb}
body.app-theme-shell .profile-menu-shell a:hover{background:#ececec}
body.app-theme-shell[data-theme="dark"] .profile-menu-shell a:hover{background:rgba(255,255,255,.06)}

body.app-theme-shell .menu-button{font-size:1.12rem;font-weight:800}
body.app-theme-shell .menu-button{display:none}
body.app-theme-shell .sidebar-group-toggle, body.app-theme-shell .sidebar-link{min-height:66px}
body.app-theme-shell .sidebar-sub-link{min-height:46px}
body.app-theme-shell .link-icon-wrap{flex:0 0 34px}
body.app-theme-shell .topbar-end{align-items:center}
body.app-theme-shell .theme-toggle-icon-btn{outline:none;position:relative}
body.app-theme-shell .theme-toggle-icon-btn::after{content:"";position:absolute;inset:0;border-radius:14px;box-shadow:0 0 0 1px rgba(141,192,255,.2),0 0 18px rgba(141,192,255,.35);pointer-events:none}
body.app-theme-shell .topbar-control[title],
body.app-theme-shell .avatar-chip.skylight-avatar-chip[title]{overflow:visible}
body.app-theme-shell .topbar-control[title]::before,
body.app-theme-shell .avatar-chip.skylight-avatar-chip[title]::before{content:attr(title);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%) translateY(4px);padding:7px 10px;border-radius:10px;background:rgba(30,47,68,.92);color:#fff;font-size:.78rem;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;box-shadow:0 10px 24px rgba(0,0,0,.18);z-index:7}
body.app-theme-shell .topbar-control[title]:hover::before,
body.app-theme-shell .topbar-control[title]:focus-visible::before,
body.app-theme-shell .avatar-chip.skylight-avatar-chip[title]:hover::before,
body.app-theme-shell .avatar-chip.skylight-avatar-chip[title]:focus-visible::before{opacity:1;transform:translateX(-50%) translateY(0)}
body.app-theme-shell .topbar-control:focus-visible,
body.app-theme-shell .avatar-chip.skylight-avatar-chip:focus-visible,
body.app-theme-shell .sidebar-link:focus-visible,
body.app-theme-shell .sidebar-group-toggle:focus-visible,
body.app-theme-shell .sidebar-sub-link:focus-visible{box-shadow:0 0 0 3px rgba(141,192,255,.45), var(--shadow-soft)}
body.app-theme-shell .sidebar-sub-link{min-width:0}
body.app-theme-shell .profile-shell{display:flex;align-items:center}
body.app-theme-shell .profile-menu-shell a{justify-content:flex-start}

body.app-theme-shell .workspace-switch-inline.skylight-switch-inline select{border-radius:14px;border:1px solid rgba(191,218,238,.82);background:rgba(248,252,255,.95);padding:10px 12px;color:#476785}
body.app-theme-shell[data-theme="dark"] .workspace-switch-inline.skylight-switch-inline select{background:rgba(24,40,58,.96);border-color:rgba(84,112,141,.3);color:#d8e8f8}
body.app-theme-shell .app-screen > .flash{border-radius:18px;background:rgba(255,255,255,.72);color:#35506d;border:1px solid rgba(182,211,236,.75)}
body.app-theme-shell[data-theme="dark"] .app-screen > .flash{background:rgba(16,31,46,.92);color:#e8f2ff;border-color:rgba(86,114,143,.28)}
body.app-theme-shell .skylight-bottom-nav{display:none}
body.app-theme-shell .app-footer-branding{padding:0 24px 24px;color:#7b97b4;text-align:center}
body.app-theme-shell[data-theme="dark"] .app-footer-branding{color:#8ea9c4}
body.app-theme-shell .screen-title,
body.app-theme-shell .info-card h2,
body.app-theme-shell .card-title{font-family:inherit;font-weight:700;letter-spacing:-.03em;color:#34516d}
body.app-theme-shell[data-theme="dark"] .screen-title,
body.app-theme-shell[data-theme="dark"] .info-card h2,
body.app-theme-shell[data-theme="dark"] .card-title{color:#e7f2ff}
body.app-theme-shell .screen-subtitle,
body.app-theme-shell .info-card p,
body.app-theme-shell .meta{color:#6f8aa5}
body.app-theme-shell[data-theme="dark"] .screen-subtitle,
body.app-theme-shell[data-theme="dark"] .info-card p,
body.app-theme-shell[data-theme="dark"] .meta{color:#9fb3c8}
body.app-theme-shell .info-card,.list-card,.form-card,.menu-card,.calendar-card,.stat-card,.photo-card,.check-card,.reward-popup{background:rgba(255,255,255,.84);backdrop-filter:blur(16px);border:1px solid rgba(182,211,236,.75);box-shadow:0 18px 45px rgba(94,132,173,.16);color:#27435e}
body.app-theme-shell[data-theme="dark"] .info-card,
body.app-theme-shell[data-theme="dark"] .list-card,
body.app-theme-shell[data-theme="dark"] .form-card,
body.app-theme-shell[data-theme="dark"] .menu-card,
body.app-theme-shell[data-theme="dark"] .calendar-card,
body.app-theme-shell[data-theme="dark"] .stat-card,
body.app-theme-shell[data-theme="dark"] .photo-card,
body.app-theme-shell[data-theme="dark"] .check-card,
body.app-theme-shell[data-theme="dark"] .reward-popup{background:rgba(16,31,46,.92);border-color:rgba(86,114,143,.28);color:#e8f2ff;box-shadow:0 18px 45px rgba(0,0,0,.28)}
body.app-theme-shell .btn{min-width:0;font-size:1rem;border-radius:16px;padding:14px 20px}
body.app-theme-shell .btn.primary{background:linear-gradient(135deg,#8dc0ff,#c8e3ff);color:#315170;border:none}
body.app-theme-shell[data-theme="dark"] .btn.primary{background:linear-gradient(135deg,#5d98dd,#8cb8ea);color:#f4fbff}
body.app-theme-shell .btn.soft,
body.app-theme-shell .btn.ghost{background:rgba(248,252,255,.95);color:#476785;border:1px solid rgba(191,218,238,.82)}
body.app-theme-shell[data-theme="dark"] .btn.soft,
body.app-theme-shell[data-theme="dark"] .btn.ghost{background:rgba(24,40,58,.96);color:#d8e8f8;border-color:rgba(84,112,141,.3)}
body.app-theme-shell .module-grid{gap:18px}
body.app-theme-shell .module-card{text-align:left}
body.app-theme-shell .module-icon{width:84px;height:84px;border-radius:26px;margin:0 0 12px;box-shadow:none}
body.app-theme-shell .module-name{font-size:1.2rem}
body.app-theme-shell .module-icon .plus{right:-6px;top:-6px;width:32px;height:32px;font-size:24px;border-width:3px}
body.app-theme-shell [data-live-region] a:focus-visible,
body.app-theme-shell [data-live-region] button:focus-visible,
body.app-theme-shell [data-live-region] input:focus-visible,
body.app-theme-shell [data-live-region] select:focus-visible,
body.app-theme-shell [data-live-region] textarea:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(141,192,255,.45)}
@media (max-width: 1100px){
  body.app-theme-shell .mobile-shell.app-shell{grid-template-columns:1fr}
  body.app-theme-shell .skylight-sidebar{position:fixed;top:0;left:0;width:min(320px,92vw);transform:translateX(-100%);height:100vh;z-index:25}
  body.app-theme-shell .skylight-sidebar.is-open{transform:translateX(0)}
  body.app-theme-shell .menu-button{display:inline-flex}
  body.app-theme-shell .skylight-topbar{padding:16px 16px 12px}
  body.app-theme-shell .app-screen{padding:20px 16px 110px}
}
@media (max-width: 720px){
  body.app-theme-shell .topbar-start{align-items:center}
  body.app-theme-shell .topbar-copy .brand-kicker,
  body.app-theme-shell .topbar-copy .brand-subtitle,
  body.app-theme-shell .topbar-copy .topbar-meta-row,
  body.app-theme-shell .skylight-switch-inline{display:none}
  body.app-theme-shell .brand-wordmark{font-size:1.45rem}
  body.app-theme-shell .skylight-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;position:fixed;left:12px;right:12px;bottom:12px;padding:10px;background:rgba(255,255,255,.86);border:1px solid rgba(181,210,235,.7);border-radius:22px;backdrop-filter:blur(16px);box-shadow:0 18px 35px rgba(94,132,173,.18);z-index:19}
  body.app-theme-shell[data-theme="dark"] .skylight-bottom-nav{background:rgba(12,27,43,.94);border-color:rgba(90,119,149,.25);box-shadow:0 18px 35px rgba(0,0,0,.24)}
  body.app-theme-shell .skylight-bottom-nav a{display:grid;place-items:center;gap:4px;padding:8px 4px;border-radius:16px;color:#6f8aa5}
  body.app-theme-shell[data-theme="dark"] .skylight-bottom-nav a{color:#9fb3c8}
  body.app-theme-shell .skylight-bottom-nav a.active{background:linear-gradient(135deg,rgba(126,184,255,.18),rgba(200,227,255,.28));color:#315170}
  body.app-theme-shell[data-theme="dark"] .skylight-bottom-nav a.active{color:#f4fbff}
  body.app-theme-shell .skylight-bottom-nav img{width:18px;height:18px}
  body.app-theme-shell .skylight-bottom-nav small{font-size:.7rem}
}


@media (max-width: 920px){
body.app-theme-shell .topbar-copy{max-width:min(52vw, 420px)}
}
@media (max-width: 640px){
body.app-theme-shell .skylight-topbar{padding:14px 14px 10px;gap:12px}
body.app-theme-shell .topbar-copy .brand-kicker, body.app-theme-shell .topbar-copy .brand-subtitle, body.app-theme-shell .topbar-meta-row, body.app-theme-shell .workspace-switch-inline{display:none}
body.app-theme-shell .brand-wordmark{font-size:1.25rem}
body.app-theme-shell .topbar-control, body.app-theme-shell .avatar-chip.skylight-avatar-chip{width:44px;height:44px;min-width:44px;flex-basis:44px;border-radius:14px}
body.app-theme-shell .topbar-end{gap:8px}
}


/* ===== Adaptive device shell rebuild v4 ===== */
body.app-theme-shell{--control-size:48px;--control-radius:16px;--sidebar-width:320px}
body.app-theme-shell[data-device-mode="tablet"]{--control-size:46px;--control-radius:15px;--sidebar-width:300px}
body.app-theme-shell[data-device-mode="mobile"]{--control-size:44px;--control-radius:14px;--sidebar-width:100vw}
body.app-theme-shell[data-device-mode="tv"],
body.app-theme-shell[data-device-mode="launcher"]{--control-size:56px;--control-radius:18px;--sidebar-width:360px}

body.app-theme-shell .topbar-control,
body.app-theme-shell .avatar-chip.skylight-avatar-chip{
  width:var(--control-size)!important;
  height:var(--control-size)!important;
  min-width:var(--control-size)!important;
  flex-basis:var(--control-size)!important;
  border-radius:var(--control-radius)!important;
}
body.app-theme-shell .topbar-control .theme-icon{font-size:1.15rem}
body.app-theme-shell .topbar-control .theme-icon,
body.app-theme-shell .topbar-control > span,
body.app-theme-shell .topbar-control > img{display:flex;align-items:center;justify-content:center}
body.app-theme-shell .topbar-end{align-items:center;gap:10px}
body.app-theme-shell .topbar-start{min-width:0;align-items:center;gap:12px}
body.app-theme-shell .topbar-copy{min-width:0;max-width:min(54vw,520px)}
body.app-theme-shell .brand-wordmark{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.app-theme-shell .brand-subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.app-theme-shell .skylight-sidebar{width:min(var(--sidebar-width),92vw)}
body.app-theme-shell[data-device-mode="mobile"] .skylight-sidebar{width:100vw;max-width:100vw}
body.app-theme-shell .sidebar-link,
body.app-theme-shell .sidebar-group-toggle{
  align-items:center;
  padding:14px 15px;
  border-radius:18px;
}
body.app-theme-shell .sidebar-sub-link{border-radius:14px;padding:11px 12px}
body.app-theme-shell .link-icon-wrap{
  width:38px;height:38px;min-width:38px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(141,192,255,.28),rgba(200,227,255,.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
body.app-theme-shell[data-theme="dark"] .link-icon-wrap{
  background:linear-gradient(135deg,rgba(93,152,221,.35),rgba(140,184,234,.24));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body.app-theme-shell .link-icon-wrap img{width:20px;height:20px;display:block}
body.app-theme-shell .link-copy{min-width:0}
body.app-theme-shell .link-copy strong,
body.app-theme-shell .link-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.app-theme-shell .link-copy small{margin-top:2px}
body.app-theme-shell .link-chevron{min-width:16px;text-align:center;opacity:.8}
body.app-theme-shell .sidebar-group.is-open > .sidebar-group-toggle,
body.app-theme-shell .sidebar-link.is-active{
  background:linear-gradient(135deg,rgba(126,184,255,.18),rgba(200,227,255,.28));
  border-color:rgba(126,184,255,.45);
}
body.app-theme-shell .shell-backdrop{z-index:24}
body.app-theme-shell .skylight-sidebar{z-index:25}
body.app-theme-shell .skylight-topbar{z-index:23}

body.app-theme-shell[data-device-mode="tv"] .app-screen,
body.app-theme-shell[data-device-mode="launcher"] .app-screen{padding-inline:24px}
body.app-theme-shell[data-device-mode="tv"] .sidebar-link,
body.app-theme-shell[data-device-mode="tv"] .sidebar-group-toggle,
body.app-theme-shell[data-device-mode="tv"] .sidebar-sub-link,
body.app-theme-shell[data-device-mode="launcher"] .sidebar-link,
body.app-theme-shell[data-device-mode="launcher"] .sidebar-group-toggle,
body.app-theme-shell[data-device-mode="launcher"] .sidebar-sub-link{min-height:56px;font-size:1rem}
body.app-theme-shell[data-device-mode="tv"] .brand-wordmark,
body.app-theme-shell[data-device-mode="launcher"] .brand-wordmark{font-size:2.15rem}
body.app-theme-shell[data-device-mode="tv"] .topbar-control[title]::before,
body.app-theme-shell[data-device-mode="launcher"] .topbar-control[title]::before,
body.app-theme-shell[data-device-mode="tv"] .avatar-chip.skylight-avatar-chip[title]::before,
body.app-theme-shell[data-device-mode="launcher"] .avatar-chip.skylight-avatar-chip[title]::before{font-size:.86rem;padding:8px 12px}
body.app-theme-shell[data-device-mode="tv"] :focus-visible,
body.app-theme-shell[data-device-mode="launcher"] :focus-visible{outline:none;box-shadow:0 0 0 3px rgba(141,192,255,.55),0 0 0 6px rgba(255,255,255,.75)!important}
body.app-theme-shell[data-theme="dark"][data-device-mode="tv"] :focus-visible,
body.app-theme-shell[data-theme="dark"][data-device-mode="launcher"] :focus-visible{box-shadow:0 0 0 3px rgba(140,184,234,.65),0 0 0 6px rgba(15,34,54,.95)!important}

body.app-theme-shell[data-device-mode="tablet"] .mobile-shell.app-shell{grid-template-columns:280px 1fr}
body.app-theme-shell[data-device-mode="tablet"] .menu-button{display:none}
body.app-theme-shell[data-device-mode="tablet"] .shell-backdrop{display:none}
body.app-theme-shell[data-device-mode="tablet"] .skylight-sidebar{position:sticky;top:0;transform:none;height:100vh}

@media (max-width:1100px){
  body.app-theme-shell[data-device-mode="tablet"] .mobile-shell.app-shell{grid-template-columns:280px 1fr}
  body.app-theme-shell[data-device-mode="tablet"] .menu-button{display:none}
  body.app-theme-shell[data-device-mode="tablet"] .skylight-sidebar{position:sticky;top:0;transform:none;height:100vh}
  body.app-theme-shell[data-device-mode="tablet"] .shell-backdrop{display:none!important}
}
@media (max-width:900px){
  body.app-theme-shell .topbar-copy{max-width:min(50vw,360px)}
}
@media (max-width:720px){
  body.app-theme-shell[data-device-mode="mobile"] .topbar-copy .brand-kicker,
  body.app-theme-shell[data-device-mode="mobile"] .topbar-copy .brand-subtitle,
  body.app-theme-shell[data-device-mode="mobile"] .topbar-copy .topbar-meta-row,
  body.app-theme-shell[data-device-mode="mobile"] .workspace-switch-inline{display:none}
  body.app-theme-shell[data-device-mode="mobile"] .brand-wordmark{font-size:1.3rem}
  body.app-theme-shell[data-device-mode="mobile"] .topbar-end{gap:8px}
}
@media (max-width:480px){
  body.app-theme-shell[data-device-mode="mobile"] .topbar-copy{display:none}
  body.app-theme-shell[data-device-mode="mobile"] .skylight-topbar{padding:12px 12px 10px}
  body.app-theme-shell[data-device-mode="mobile"] .topbar-control,
  body.app-theme-shell[data-device-mode="mobile"] .avatar-chip.skylight-avatar-chip{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important}
}
@media (max-width:320px){
  body.app-theme-shell[data-device-mode="mobile"] .topbar-end{gap:6px}
}


/* ===== menu fix v6: off-canvas menu on all devices ===== */
body.app-theme-shell .mobile-shell.app-shell{grid-template-columns:1fr !important;}
body.app-theme-shell .menu-button{display:inline-flex !important;}
body.app-theme-shell .shell-backdrop{display:block !important;}
body.app-theme-shell .skylight-sidebar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  width:min(320px,92vw) !important;
  max-width:92vw;
  height:100vh !important;
  min-height:100vh !important;
  transform:translateX(-100%) !important;
  transition:transform .22s ease !important;
  z-index:26 !important;
}
body.app-theme-shell[data-device-mode="mobile"] .skylight-sidebar{width:100vw !important;max-width:100vw !important;}
body.app-theme-shell .skylight-sidebar.is-open{transform:translateX(0) !important;}
body.app-theme-shell .sidebar-brand-shell{display:flex;align-items:center;justify-content:space-between;gap:12px;}
body.app-theme-shell .sidebar-brand-left{display:flex;align-items:center;gap:12px;min-width:0;}
body.app-theme-shell .menu-close-button{display:inline-flex !important;}
body.app-theme-shell .app-main{width:100%;min-width:0;}
body.app-theme-shell[data-device-mode="tablet"] .menu-button{display:inline-flex !important;}
body.app-theme-shell[data-device-mode="tablet"] .shell-backdrop{display:block !important;}
body.app-theme-shell[data-device-mode="tablet"] .skylight-sidebar{position:fixed !important;top:0 !important;transform:translateX(-100%) !important;height:100vh !important;}
body.app-theme-shell[data-device-mode="tablet"] .skylight-sidebar.is-open{transform:translateX(0) !important;}
@media (max-width:1100px){
  body.app-theme-shell[data-device-mode="tablet"] .mobile-shell.app-shell{grid-template-columns:1fr !important;}
  body.app-theme-shell[data-device-mode="tablet"] .menu-button{display:inline-flex !important;}
  body.app-theme-shell[data-device-mode="tablet"] .shell-backdrop{display:block !important;}
}


body.app-theme-shell .sidebar-head{position:sticky;top:0;background:inherit;z-index:2;}
body.app-theme-shell .sidebar-close-button{display:inline-flex !important;}
@media (min-width:1101px){body.app-theme-shell .sidebar-close-button{display:none !important;}}
