
#jarvis-design { --j-bg:#121412; --j-rail:#090b09; --j-panel:#1d211e; --j-text:#f6f7f6; --j-muted:#a3aca5; --j-line:#323933; --j-accent:#a6ec78; --j-on-accent:#14210c; --j-focus:#283724; --j-overlay:#0009; color:var(--j-text); font-family:-apple-system,BlinkMacSystemFont,"Inter",sans-serif; font-size:15px; line-height:1.45; width:100%; margin:auto; }
#jarvis-design * { box-sizing:border-box; }
#jarvis-design button,#jarvis-design input,#jarvis-design select { font:inherit; }
#jarvis-design button { cursor:pointer; color:inherit; }
#jarvis-design button:focus-visible,#jarvis-design input:focus-visible,#jarvis-design select:focus-visible { outline:2px solid var(--j-accent); outline-offset:3px; }
#jarvis-design button { border:0; background:none; }
#jarvis-design [hidden] { display:none!important; }
#jarvis-design .j-window { background:var(--j-bg); border:1px solid var(--j-line); border-radius:18px; overflow:hidden; position:relative; }
#jarvis-design .j-titlebar { height:44px; padding:0 18px; display:flex; align-items:center; gap:7px; background:var(--j-rail); border-bottom:1px solid var(--j-line); }
#jarvis-design .j-dot { width:10px; height:10px; border-radius:50%; background:var(--j-muted); opacity:.45; }
#jarvis-design .j-caption { margin:auto; padding-right:42px; color:var(--j-muted); font-size:12px; letter-spacing:.03em; }
#jarvis-design .j-shell { display:grid; grid-template-columns:184px minmax(0,1fr); }
#jarvis-design .j-rail { padding:24px 14px; background:var(--j-rail); display:flex; flex-direction:column; gap:28px; }
#jarvis-design .j-brand { font-size:21px; font-weight:500; letter-spacing:-1px; padding:0 12px; }
#jarvis-design .j-brand span { color:var(--j-accent); }
#jarvis-design .j-nav { display:grid; gap:5px; }
#jarvis-design .j-nav button { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:9px; color:var(--j-muted); text-align:left; font-size:14px; min-height:44px; }
#jarvis-design .j-nav button.j-active { color:var(--j-text); background:var(--j-panel); }
#jarvis-design .j-nav button.j-active svg { color:var(--j-accent); }
#jarvis-design .j-rail-label { color:var(--j-muted); font-size:11px; letter-spacing:.07em; text-transform:uppercase; padding:0 12px; }
#jarvis-design .j-projectlink { display:flex; gap:9px; align-items:center; padding:10px 12px; text-align:left; width:100%; font-size:12px; }
#jarvis-design .j-project-dot { width:7px; height:7px; border-radius:3px; background:var(--j-accent); flex-shrink:0; }
#jarvis-design .j-profile { margin-top:auto; display:flex; align-items:center; gap:9px; padding:12px; font-size:13px; color:var(--j-muted); }
#jarvis-design .j-avatar { display:grid; place-items:center; background:var(--j-panel); color:var(--j-text); width:30px; height:30px; border-radius:50%; }
#jarvis-design .j-main { min-width:0; padding:28px 32px 18px; }
#jarvis-design .j-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
#jarvis-design .j-heading h1 { margin:0; font-size:32px; font-weight:500; letter-spacing:-1.25px; line-height:1.1; }
#jarvis-design .j-sub { margin-top:6px; color:var(--j-muted); font-size:13px; }
#jarvis-design .j-add { background:var(--j-accent); color:var(--j-on-accent); border-radius:50%; width:44px; height:44px; display:grid; place-items:center; flex-shrink:0; }
#jarvis-design .j-dates { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin:0 0 24px; }
#jarvis-design .j-dates button { min-height:52px; display:grid; justify-items:center; gap:2px; padding:6px 2px; border-radius:12px; }
#jarvis-design .j-dates small { font-size:11px; color:var(--j-muted); }
#jarvis-design .j-dates strong { font-size:16px; font-weight:500; }
#jarvis-design .j-dates button.j-active { background:var(--j-panel); }
#jarvis-design .j-dates button.j-active strong { color:var(--j-accent); }
#jarvis-design .j-section-head { display:flex; justify-content:space-between; align-items:center; margin:22px 0 10px; font-size:13px; font-weight:500; }
#jarvis-design .j-section-head span { color:var(--j-muted); font-size:12px; font-weight:400; }
#jarvis-design .j-upnext { display:grid; grid-template-columns:1fr 44px; column-gap:10px; padding:18px 20px; border-radius:14px; background:var(--j-focus); margin-bottom:10px; }
#jarvis-design .j-upnext .j-open { text-align:left; min-width:0; padding:0; }
#jarvis-design .j-next-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--j-accent); margin-bottom:12px; }
#jarvis-design .j-next-title { display:block; font-size:22px; font-weight:500; letter-spacing:-.55px; line-height:1.25; }
#jarvis-design .j-next-meta { display:block; color:var(--j-muted); font-size:12px; margin-top:7px; }
#jarvis-design .j-check { width:44px; min-height:44px; padding:0; display:grid; place-items:center; align-self:center; }
#jarvis-design .j-circle { width:22px; height:22px; border:1.5px solid var(--j-muted); border-radius:50%; display:grid; place-items:center; }
#jarvis-design .j-circle svg { width:13px; height:13px; }
#jarvis-design .j-row { display:grid; grid-template-columns:54px minmax(0,1fr) 44px; gap:8px; align-items:center; min-height:72px; }
#jarvis-design .j-time { font-size:13px; color:var(--j-muted); font-variant-numeric:tabular-nums; }
#jarvis-design .j-open { text-align:left; padding:10px 0; min-width:0; }
#jarvis-design .j-name { display:block; font-size:15px; font-weight:500; }
#jarvis-design .j-meta { display:block; font-size:12px; margin-top:4px; color:var(--j-muted); }
#jarvis-design .j-untimed .j-row { grid-template-columns:minmax(0,1fr) 44px; min-height:61px; }
#jarvis-design .j-completed { margin:16px 0 0; color:var(--j-muted); font-size:12px; }
#jarvis-design .j-completed summary { cursor:pointer; padding:10px 0; }
#jarvis-design .j-completed > button { display:block; font-size:13px; min-height:44px; }
#jarvis-design .j-command { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:13px 15px; border-radius:12px; background:var(--j-panel); color:var(--j-muted); margin-top:18px; min-height:48px; }
#jarvis-design .j-command span { flex:1; }
#jarvis-design .j-command kbd { color:var(--j-muted); font-size:11px; }
#jarvis-design .j-bottomnav { display:none; background:var(--j-rail); grid-template-columns:repeat(3,minmax(0,1fr)); padding:10px 6px 14px; }
#jarvis-design .j-bottomnav button { display:grid; justify-items:center; gap:5px; min-height:44px; font-size:11px; color:var(--j-muted); }
#jarvis-design .j-bottomnav button.j-active { color:var(--j-accent); }
#jarvis-design .j-feedback { margin-top:12px; font-size:12px; color:var(--j-muted); display:flex; justify-content:space-between; gap:12px; align-items:center; }
#jarvis-design .j-feedback button { color:var(--j-accent); min-height:36px; }
#jarvis-design .j-projectgrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#jarvis-design .j-projectcard { padding:18px; text-align:left; background:var(--j-panel); border-radius:14px; min-height:170px; }
#jarvis-design .j-cover { display:grid; place-items:center; height:76px; width:76px; border-radius:10px; color:var(--j-accent); background:var(--j-focus); font-size:24px; font-weight:500; margin-bottom:16px; }
#jarvis-design .j-empty { color:var(--j-muted); padding:50px 0; min-height:260px; }
#jarvis-design .j-sheet-wrap { position:absolute; inset:0; background:var(--j-overlay); display:flex; align-items:flex-end; justify-content:center; z-index:5; padding-top:24px; }
#jarvis-design .j-sheet { background:var(--j-panel); padding:24px; border-radius:22px 22px 0 0; width:100%; max-width:530px; color:var(--j-text); box-shadow:0 -15px 60px #0003; }
#jarvis-design .j-sheet-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
#jarvis-design .j-sheet h2 { font-size:22px; font-weight:500; margin:0; letter-spacing:-.5px; }
#jarvis-design .j-close { width:44px; height:44px; display:grid; place-items:center; }
#jarvis-design .j-sheet label { display:block; color:var(--j-muted); font-size:12px; margin-bottom:14px; }
#jarvis-design .j-sheet input,#jarvis-design .j-sheet select { display:block; width:100%; min-height:44px; padding:10px 12px; margin-top:6px; background:var(--j-bg); border:1px solid var(--j-line); border-radius:9px; color:var(--j-text); font-size:16px; }
#jarvis-design .j-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#jarvis-design .j-save { width:100%; min-height:46px; background:var(--j-accent); color:var(--j-on-accent); border-radius:24px; margin-top:6px; }
#jarvis-design[data-style="apple"] { --j-bg:light-dark(#f5f5f7,#171719); --j-rail:light-dark(#eaeaec,#202023); --j-panel:light-dark(#ffffff,#28282c); --j-text:light-dark(#171719,#f5f5f7); --j-muted:light-dark(#65656b,#ababaf); --j-line:light-dark(#d9d9df,#3a3a3e); --j-accent:light-dark(#0065d8,#6aafff); --j-on-accent:#ffffff; --j-focus:light-dark(#e6eefb,#203147); }
#jarvis-design[data-style="apple"] .j-upnext { border-radius:18px; }
#jarvis-design[data-style="apple"] .j-row { border-bottom:1px solid var(--j-line); }
#jarvis-design[data-style="apple"] .j-main { padding-top:28px; }
#jarvis-design[data-style="apple"] .j-heading h1 { letter-spacing:-.7px; }
#jarvis-design[data-style="linear"] { --j-bg:light-dark(#fcfcfd,#17181c); --j-rail:light-dark(#f4f4f7,#111216); --j-panel:light-dark(#ededf3,#24252c); --j-text:light-dark(#252635,#ededf2); --j-muted:light-dark(#6c6d7c,#9b9ca9); --j-line:light-dark(#e3e3e9,#30313a); --j-accent:light-dark(#5858c4,#a6a6f9); --j-on-accent:light-dark(#ffffff,#171736); --j-focus:light-dark(#f1f1fa,#252633); }
#jarvis-design[data-style="linear"] .j-upnext { background:var(--j-panel); border-left:3px solid var(--j-accent); border-radius:7px; padding:14px 16px; }
#jarvis-design[data-style="linear"] .j-next-label { margin-bottom:7px; }
#jarvis-design[data-style="linear"] .j-next-title { font-size:18px; }
#jarvis-design[data-style="linear"] .j-row { min-height:61px; border-bottom:1px solid var(--j-line); }
#jarvis-design[data-style="linear"] .j-untimed .j-row { min-height:51px; }
#jarvis-design[data-device="phone"] { max-width:390px; }
#jarvis-design[data-device="phone"] .j-shell { display:block; }
#jarvis-design[data-device="phone"] .j-rail,#jarvis-design[data-device="phone"] .j-titlebar { display:none; }
#jarvis-design[data-device="phone"] .j-main { padding:25px 21px 12px; }
#jarvis-design[data-device="phone"] .j-bottomnav { display:grid; }
#jarvis-design[data-device="phone"] .j-command kbd { display:none; }
@media (max-width:580px) {
 #jarvis-design .j-shell { display:block; }
 #jarvis-design .j-rail,#jarvis-design .j-titlebar { display:none; }
 #jarvis-design .j-main { padding:24px 18px 12px; }
 #jarvis-design .j-bottomnav { display:grid; }
 #jarvis-design .j-command kbd { display:none; }
 #jarvis-design .j-next-title { font-size:20px; }
 #jarvis-design .j-projectgrid { gap:10px; }
 #jarvis-design .j-projectcard { padding:14px; }
}
#jarvis-design .j-shell { display:block; }
#jarvis-design .j-main { padding:16px 28px 28px; min-height:540px; }
#jarvis-design .j-topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 28px 4px; }
#jarvis-design .j-tools { display:flex; gap:8px; }
#jarvis-design .j-round { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--j-panel); }
#jarvis-design .j-picker { position:relative; }
#jarvis-design .j-picker summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; margin-left:-12px; cursor:pointer; list-style:none; font-size:14px; font-weight:500; }
#jarvis-design .j-picker summary::-webkit-details-marker { display:none; }
#jarvis-design .j-picker summary svg:first-child { color:var(--j-accent); }
#jarvis-design .j-popup { position:absolute; top:48px; left:0; width:230px; padding:7px; border:1px solid var(--j-line); border-radius:14px; background:var(--j-panel); box-shadow:0 12px 35px #0005; z-index:4; }
#jarvis-design .j-popup button { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:10px 12px; text-align:left; border-radius:8px; font-size:14px; }
#jarvis-design .j-popup button[aria-current="page"] { background:var(--j-focus); color:var(--j-accent); }
#jarvis-design .j-heading { margin-bottom:18px; }
#jarvis-design .j-heading h1 { font-size:30px; }
#jarvis-design .j-calendar-tools { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:20px; }
#jarvis-design .j-segment { display:flex; padding:4px; background:var(--j-panel); border-radius:24px; }
#jarvis-design .j-segment button { border-radius:20px; padding:9px 18px; min-height:40px; font-size:13px; }
#jarvis-design .j-segment button[aria-pressed="true"] { background:var(--j-accent); color:var(--j-on-accent); }
#jarvis-design .j-period { display:flex; align-items:center; gap:3px; }
#jarvis-design .j-period button { display:grid; place-items:center; min-width:44px; min-height:44px; border-radius:50%; }
#jarvis-design .j-period .j-today { border-radius:20px; padding:0 12px; font-size:12px; color:var(--j-muted); }
#jarvis-design .j-week-day { display:grid; grid-template-columns:130px minmax(0,1fr); gap:20px; padding:14px 0; border-bottom:1px solid var(--j-line); }
#jarvis-design .j-week-label { align-self:start; text-align:left; padding:8px 0; min-height:44px; font-size:14px; }
#jarvis-design .j-week-label small { display:block; color:var(--j-muted); font-size:12px; margin-top:3px; }
#jarvis-design .j-week-label.j-now { color:var(--j-accent); }
#jarvis-design .j-week-day .j-row { min-height:57px; }
#jarvis-design .j-free { color:var(--j-muted); font-size:13px; padding:11px 0; }
#jarvis-design .j-month { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
#jarvis-design .j-month-label { text-align:center; font-size:11px; color:var(--j-muted); padding:8px 0; }
#jarvis-design .j-month button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:62px; border-radius:11px; font-size:14px; }
#jarvis-design .j-month button.j-other { color:var(--j-muted); }
#jarvis-design .j-month button[aria-pressed="true"] { background:var(--j-focus); color:var(--j-accent); }
#jarvis-design .j-month button[aria-current="date"] strong { text-decoration:underline; text-underline-offset:4px; }
#jarvis-design .j-month strong { font-weight:500; }
#jarvis-design .j-day-count { height:14px; font-size:11px; color:var(--j-muted); }
#jarvis-design .j-month-detail { margin-top:20px; border-top:1px solid var(--j-line); }
#jarvis-design .j-section-head button { display:inline-flex; align-items:center; gap:5px; color:var(--j-accent); min-height:44px; font-size:12px; }
#jarvis-design .j-searchbox { display:flex; align-items:center; gap:10px; background:var(--j-panel); border-radius:14px; padding:8px 14px; margin-bottom:20px; }
#jarvis-design .j-searchbox input { width:100%; min-width:0; min-height:40px; border:0; background:transparent; color:var(--j-text); font-size:16px; }
#jarvis-design .j-search-result { display:block; width:100%; text-align:left; padding:14px 0; border-bottom:1px solid var(--j-line); }
#jarvis-design .j-project-back { display:flex; align-items:center; gap:7px; min-height:44px; color:var(--j-muted); font-size:13px; margin-bottom:8px; }
#jarvis-design .j-sheet-wrap { align-items:flex-start; padding-top:80px; }
#jarvis-design .j-sheet { border-radius:20px; }
#jarvis-design[data-device="phone"] .j-topbar { padding:14px 18px 2px; }
#jarvis-design[data-device="phone"] .j-main { padding:16px 18px 22px; }
#jarvis-design[data-device="phone"] .j-calendar-tools { gap:8px; }
#jarvis-design[data-device="phone"] .j-segment { width:100%; }
#jarvis-design[data-device="phone"] .j-segment button { flex:1; padding:8px 10px; }
#jarvis-design[data-device="phone"] .j-period { width:100%; justify-content:space-between; }
#jarvis-design[data-device="phone"] .j-week-day { grid-template-columns:1fr; gap:0; }
#jarvis-design[data-device="phone"] .j-week-label { display:flex; align-items:center; gap:8px; }
#jarvis-design[data-device="phone"] .j-week-label small { margin:0; }
@media (max-width:580px) {
 #jarvis-design .j-topbar { padding:14px 18px 2px; }
 #jarvis-design .j-main { padding:16px 18px 22px; }
 #jarvis-design .j-calendar-tools { gap:6px; margin-bottom:10px; }
 #jarvis-design .j-segment { width:100%; }
 #jarvis-design .j-segment button { flex:1; padding:8px 10px; }
 #jarvis-design .j-period { width:100%; justify-content:space-between; }
 #jarvis-design .j-week-day { grid-template-columns:1fr; gap:0; }
 #jarvis-design .j-week-label { display:flex; align-items:center; gap:8px; }
 #jarvis-design .j-week-label small { margin:0; }
 #jarvis-design .j-month { gap:2px; }
 #jarvis-design .j-month button { min-height:51px; }
 #jarvis-design .j-day-count { font-size:11px; }
 #jarvis-design .j-sheet-wrap { padding-top:64px; }
 #jarvis-design .j-sheet { padding:20px; }
}
#jarvis-design .j-week-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin:4px 0 20px; }
#jarvis-design .j-week-pick { min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 2px; border-radius:14px; background:var(--j-panel); }
#jarvis-design .j-week-pick[aria-pressed="true"] { background:var(--j-focus); }
#jarvis-design .j-week-pick small { font-size:12px; color:var(--j-muted); }
#jarvis-design .j-week-pick strong { font-size:22px; font-weight:500; line-height:1.2; }
#jarvis-design .j-week-pick[aria-pressed="true"] strong { color:var(--j-accent); }
#jarvis-design .j-week-pick[aria-current="date"] strong { text-decoration:underline; text-underline-offset:5px; }
#jarvis-design .j-week-count { font-size:12px; margin-top:5px; }
#jarvis-design .j-week-duration { color:var(--j-muted); font-size:11px; }
#jarvis-design .j-week-detail { border-top:1px solid var(--j-line); }
#jarvis-design .j-week-detail .j-section-head { margin:8px 0; }
#jarvis-design .j-week-detail .j-row { min-height:56px; }
#jarvis-design .j-week-detail .j-untimed .j-row { min-height:52px; }
#jarvis-design .j-week-detail .j-free { padding:24px 0; }
#jarvis-design[data-device="phone"] .j-week-strip { gap:4px; }
#jarvis-design[data-device="phone"] .j-week-pick { border-radius:11px; }
#jarvis-design[data-device="phone"] .j-week-count { font-size:11px; }
@media (max-width:580px) {
 #jarvis-design .j-week-strip { gap:4px; }
 #jarvis-design .j-week-pick { border-radius:11px; }
 #jarvis-design .j-week-count { font-size:11px; }
}
#jarvis-design[data-style="light"] { color-scheme:light; --j-bg:#ffffff; --j-rail:#f6f8fb; --j-panel:#f0f4f8; --j-text:#1c2d43; --j-muted:#627187; --j-line:#dfe7ef; --j-accent:#1765d1; --j-on-accent:#ffffff; --j-focus:#e2f1ff; --j-overlay:#243c6050; }
#jarvis-design[data-style="light"] .j-window { border-color:#dce5ee; }
#jarvis-design[data-style="light"] .j-week-pick[aria-pressed="true"] { background:#deefff; }
#jarvis-design[data-style="light"] .j-week-pick[aria-pressed="true"] small,
#jarvis-design[data-style="light"] .j-week-pick[aria-pressed="true"] .j-week-duration { color:#426b96; }
#jarvis-design[data-style="light"] .j-round { color:#36628f; background:#eef5fc; }
#jarvis-design[data-style="light"] .j-circle { border-color:#8496ac; }
#jarvis-design[data-style="light"] .j-popup,
#jarvis-design[data-style="light"] .j-sheet { background:#ffffff; box-shadow:0 12px 40px #1c467025; }
#jarvis-design[data-style="light"] .j-sheet input,
#jarvis-design[data-style="light"] .j-sheet select { background:#f6f8fb; }
#jarvis-design .j-comment { margin:0 0 14px; }
#jarvis-design .j-comment-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
#jarvis-design .j-comment-heading label { margin:0; }
#jarvis-design .j-comment-heading output { color:var(--j-muted); font-size:11px; font-variant-numeric:tabular-nums; }
#jarvis-design .j-comment textarea { display:block; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--j-line); border-radius:9px; background:var(--j-bg); color:var(--j-text); font-family:inherit; font-size:16px; line-height:22px; resize:none; overflow:hidden; }
#jarvis-design .j-comment textarea::placeholder { color:var(--j-muted); }
#jarvis-design[data-style="light"] .j-comment textarea { background:#f6f8fb; }
#jarvis-design .j-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
#jarvis-design .j-filters button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 14px; border-radius:24px; background:var(--j-panel); font-size:13px; }
#jarvis-design .j-filters button[aria-pressed="true"] { background:var(--j-accent); color:var(--j-on-accent); }
#jarvis-design .j-filter-count { font-size:11px; font-variant-numeric:tabular-nums; }
#jarvis-design .j-date-meta { display:block; font-size:12px; margin-top:4px; color:var(--j-muted); }
#jarvis-design .j-date-meta.j-overdue { color:var(--j-accent); }
#jarvis-design[data-device="phone"] .j-filters { display:grid; grid-template-columns:auto 1fr; }
@media(max-width:580px) { #jarvis-design .j-filters { display:grid; grid-template-columns:auto 1fr; } }
html { color-scheme:light; background:#f6f8fb; }
body { margin:0; padding:20px; }
#jarvis-design { max-width:1040px; }
#jarvis-design .j-main { min-height:480px; }
#jarvis-design .j-name { overflow-wrap:anywhere; }
#jarvis-design .j-sheet-wrap { position:fixed; inset:0; margin:auto; width:min(560px,100%); max-width:100%; max-height:calc(100dvh - 32px); height:fit-content; padding:0; border:0; border-radius:22px; overflow-y:auto; background:var(--j-bg); color:var(--j-text); }
#jarvis-design .j-sheet-wrap:not([open]) { display:none; }
#jarvis-design .j-sheet-wrap[open] { display:block; }
#jarvis-design .j-sheet-wrap::backdrop { background:#243c6070; backdrop-filter:blur(3px); }
#jarvis-design .j-sheet { max-width:none; box-shadow:none!important; }
#jarvis-design .j-window,#jarvis-design .j-main { min-height:0; }
#jarvis-design .j-sheet details { margin-bottom:14px; }
#jarvis-design .j-sheet details summary { cursor:pointer; color:var(--j-muted); padding:10px 0; font-size:13px; }
#jarvis-design .j-inline-choice { display:flex; align-items:center; gap:10px; min-height:44px; }
#jarvis-design .j-inline-choice input { width:18px; min-height:18px; margin:0; }
#jarvis-design .j-secondary { background:var(--j-panel); padding:12px 16px; border-radius:22px; min-height:44px; }
#jarvis-design .j-error { color:#a12626; padding:12px 0; font-size:13px; }
#jarvis-design .j-choice-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
#jarvis-design .j-toast { position:fixed; z-index:10; bottom:24px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); padding:14px 20px; border-radius:16px; background:#1c2d43; color:white; box-shadow:0 8px 30px #17263830; display:flex; align-items:center; gap:16px; font-size:14px; }
#jarvis-design .j-toast button { color:#b6dcff; white-space:nowrap; min-height:32px; }
#jarvis-design .j-scope-controls { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
#jarvis-design .j-scope-controls select { min-height:40px; max-width:100%; border:1px solid var(--j-line); border-radius:12px; padding:8px 10px; background:var(--j-bg); color:var(--j-text); font-size:13px; }
#jarvis-design .j-notice { background:var(--j-focus); padding:12px 16px; border-radius:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; margin-bottom:16px; }
#jarvis-design .j-notice button { color:var(--j-accent); min-height:44px; }
#jarvis-design .j-review-row { padding:12px 0; border-bottom:1px solid var(--j-line); }
#jarvis-design .j-review-row select { width:100%; }
#jarvis-design .j-month-onsite { font-size:10px; line-height:12px; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; color:var(--j-accent); }
#jarvis-design .j-button-line { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
#jarvis-design button:disabled { opacity:.5; cursor:wait; }
#jarvis-design .j-legacy { margin:12px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; color:var(--j-muted); }
@media(max-width:580px) { body { padding:0; background:#fff; } #jarvis-design .j-window { border:0; border-radius:0; } #jarvis-design .j-sheet-wrap { margin: auto auto 0; max-height:calc(100dvh - 12px); border-radius:22px 22px 0 0; } #jarvis-design .j-main { padding-bottom:calc(24px + env(safe-area-inset-bottom)); } }

#jarvis-design .j-project-filter { flex:1; min-width:160px; max-width:100%; }
#jarvis-design .j-project-filter summary { margin:0; padding:8px 10px; min-height:40px; border:1px solid var(--j-line); border-radius:12px; background:var(--j-bg); font-size:13px; }
#jarvis-design .j-project-filter summary span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#jarvis-design .j-project-filter svg { flex-shrink:0; }
#jarvis-design .j-project-filter .j-popup { left:auto; right:0; width:min(340px,calc(100vw - 36px)); max-height:min(360px,50dvh); overflow-y:auto; }
#jarvis-design .j-project-filter .j-popup button { justify-content:space-between; }
#jarvis-design .j-project-filter .j-popup button span { overflow-wrap:anywhere; }
#jarvis-design .j-project-filter .j-popup button[aria-pressed="true"] { background:var(--j-focus); color:var(--j-accent); }

/* Shared Apple-style selection menus, rendered above cards and sheets. */
#jarvis-design .j-native-select { display:none!important; }
#jarvis-design .j-select-button { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; min-height:44px; width:100%; margin-top:6px; padding:10px 12px; border:1px solid var(--j-line); border-radius:11px; background:#f6f8fb; color:var(--j-text); text-align:left; font-size:16px; font-weight:400; }
#jarvis-design .j-select-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#jarvis-design .j-select-button svg { flex:none; color:#7b8798; }
#jarvis-design .j-select-button:focus-visible { outline:2px solid #007aff; outline-offset:3px; }
#jarvis-design .j-scope-controls > .j-select-button { width:auto; max-width:100%; margin:0; min-height:40px; padding:8px 12px; font-size:13px; background:#fafbfd; }
#jarvis-design .j-apple-menu { position:fixed; inset:auto; margin:0; padding:6px; z-index:100; overflow:auto; overscroll-behavior:contain; border:1px solid rgba(255,255,255,.85); border-radius:17px; background:rgba(249,250,252,.94); color:#1d2531; box-shadow:0 0 0 1px rgba(30,45,65,.07),0 12px 36px rgba(24,39,61,.19),0 2px 8px rgba(24,39,61,.06); backdrop-filter:blur(26px) saturate(170%); -webkit-backdrop-filter:blur(26px) saturate(170%); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
#jarvis-design .j-apple-menu::backdrop { background:transparent; }
#jarvis-design .j-apple-menu button { position:relative; display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:11px 36px 11px 12px; border:0; border-radius:10px; background:transparent; color:inherit; font-size:15px; font-weight:400; line-height:1.3; text-align:left; overflow-wrap:anywhere; }
#jarvis-design .j-apple-menu button+button { border-top:1px solid rgba(60,60,67,.07); }
#jarvis-design .j-apple-menu button[aria-checked="true"] { color:#007aff; }
#jarvis-design .j-apple-menu button[aria-checked="true"]::after { content:""; position:absolute; right:17px; top:17px; width:6px; height:11px; border:solid currentColor; border-width:0 1.8px 1.8px 0; transform:rotate(45deg); }
#jarvis-design .j-apple-menu button[data-warehouse-project] > svg { display:none; }
#jarvis-design .j-apple-menu button:focus-visible { outline:none; background:rgba(0,122,255,.1); }
#jarvis-design .j-apple-menu button:disabled { opacity:.4; }
@media(hover:hover) { #jarvis-design .j-apple-menu button:hover { background:rgba(0,122,255,.08); } }

/* Search is a focused screen: one title, one field, results directly below. */
#jarvis-design .j-search-mode { min-height:min(640px,calc(100dvh - 40px)); }
#jarvis-design .j-search-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 28px 0; }
#jarvis-design .j-search-nav h1 { margin:0; font-size:28px; line-height:1.2; font-weight:600; letter-spacing:-.7px; }
#jarvis-design .j-search-cancel { min-height:44px; padding:8px 0 8px 12px; color:#007aff; font-size:16px; }
#jarvis-design .j-search-mode .j-main { padding-top:8px; }
#jarvis-design .j-searchbox { gap:8px; padding:0 10px; min-height:44px; border:0; border-radius:11px; background:#f0f1f4; margin-bottom:12px; color:#85858b; }
#jarvis-design .j-searchbox > svg { width:18px; height:18px; flex:none; }
#jarvis-design .j-searchbox input { min-height:44px; padding:8px 0; border:0; border-radius:0; background:transparent; appearance:none; -webkit-appearance:none; font-size:16px; line-height:1.3; caret-color:#007aff; }
#jarvis-design .j-searchbox input:focus,#jarvis-design .j-searchbox input:focus-visible { outline:none; box-shadow:none; }
#jarvis-design .j-searchbox:focus-within { background:#e9ebef; }
#jarvis-design .j-searchbox input::placeholder { color:#85858b; opacity:1; }
#jarvis-design .j-searchbox input::-webkit-search-cancel-button,#jarvis-design .j-searchbox input::-webkit-search-decoration { -webkit-appearance:none; }
#jarvis-design .j-search-clear { display:grid; place-items:center; flex:none; width:36px; height:44px; margin-right:-6px; padding:0; color:#8d9098; }
#jarvis-design .j-search-clear svg { width:18px; height:18px; }
#jarvis-design .j-search-mode .j-section-head { margin:16px 0 4px; font-size:13px; color:#777d86; }
#jarvis-design .j-search-result { padding:12px 0; }
#jarvis-design .j-search-mode .j-free { padding:18px 0; text-align:center; color:#85858b; }
@media(max-width:580px) { #jarvis-design .j-search-mode { min-height:100dvh; } #jarvis-design .j-search-nav { padding:12px 18px 0; } }

/* Date and time share the same compact fields and iPhone-style wheels. */
#jarvis-design .j-native-date { display:none!important; }
#jarvis-design .j-date-button { gap:6px; font-size:15px; padding:10px; }
#jarvis-design .j-wheel-dialog { position:fixed; inset:0; margin:auto; padding:0; width:min(420px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); overflow:auto; border:1px solid rgba(255,255,255,.85); border-radius:22px; background:#fafafb; color:#1d2531; box-shadow:0 18px 64px #15253d35; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
#jarvis-design .j-wheel-dialog::backdrop { background:rgba(25,35,50,.2); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
#jarvis-design .j-wheel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px; border-bottom:1px solid #3c3c4312; }
#jarvis-design .j-wheel-toolbar h2 { margin:0; font-size:16px; font-weight:600; line-height:1.2; text-align:center; }
#jarvis-design .j-wheel-toolbar button,#jarvis-design .j-wheel-footer button { min-height:44px; padding:8px 4px; font-size:15px; color:#007aff; flex-shrink:0; }
#jarvis-design .j-wheel-toolbar [data-wheel-done] { font-weight:600; }
#jarvis-design .j-wheel-columns { position:relative; display:grid; grid-template-columns:.7fr 1.5fr 1fr; gap:0; margin:12px 14px 4px; isolation:isolate; }
#jarvis-design .j-wheel-columns::before { content:""; position:absolute; top:110px; left:0; right:0; height:44px; border-radius:10px; background:rgba(118,118,128,.1); z-index:-1; }
#jarvis-design .j-wheel-time { grid-template-columns:1fr 1fr; padding:0 28px; }
#jarvis-design .j-wheel-caption { height:22px; font-size:11px; line-height:22px; text-align:center; color:#85858b; }
#jarvis-design .j-wheel { height:220px; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; scrollbar-width:none; padding:88px 0; touch-action:pan-y; -webkit-overflow-scrolling:touch; mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent); -webkit-mask-image:linear-gradient(transparent,#000 32%,#000 68%,transparent); }
#jarvis-design .j-wheel::-webkit-scrollbar { display:none; }
#jarvis-design .j-wheel:focus-visible { outline:none; background:rgba(0,0,0,.025); border-radius:10px; }
#jarvis-design .j-wheel-option { display:flex; align-items:center; justify-content:center; height:44px; flex-shrink:0; scroll-snap-align:center; font-size:20px; line-height:1; font-variant-numeric:tabular-nums; color:#74747b; cursor:pointer; user-select:none; }
#jarvis-design .j-wheel-option.is-selected { color:#1c1c1e; font-weight:500; }
#jarvis-design .j-wheel-time .j-wheel-option { font-size:25px; }
#jarvis-design .j-wheel-footer { display:flex; justify-content:space-between; gap:12px; padding:0 18px 10px; border-top:1px solid #3c3c4312; }
#jarvis-design .j-wheel-footer [data-wheel-clear] { color:#7c7c84; }
#jarvis-design .j-wheel-footer button:disabled { opacity:.4; }
@media(max-width:580px) { #jarvis-design .j-wheel-dialog { inset:auto 0 0; margin:0; width:100%; max-height:calc(100dvh - 12px); border-radius:22px 22px 0 0; padding-bottom:env(safe-area-inset-bottom); } }

#jarvis-design .j-onsite-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin-bottom:14px; }
#jarvis-design .j-sheet label.j-inline-choice { display:flex; align-items:center; gap:9px; flex-shrink:0; margin:0; color:var(--j-text); font-size:15px; cursor:pointer; }
#jarvis-design .j-sheet .j-inline-choice input { width:20px; height:20px; min-height:20px; margin:0; padding:0; accent-color:#007aff; }
#jarvis-design .j-travel-link { padding:8px 0; min-height:44px; color:#007aff; font-size:13px; text-align:right; }
#jarvis-design .j-travel-form { padding:20px 20px 10px; }
#jarvis-design .j-travel-form label { display:block; margin-bottom:14px; font-size:13px; color:#7b818b; }
#jarvis-design .j-travel-form input { display:block; width:100%; min-height:44px; margin-top:7px; padding:10px 12px; border:0; border-radius:11px; background:#eeeef1; font-size:17px; color:#1c1c1e; }
#jarvis-design .j-travel-form input:focus-visible { outline:1px solid #9da8b6; outline-offset:1px; }
#jarvis-design .j-sheet input:not([type="checkbox"]):focus-visible,#jarvis-design .j-sheet textarea:focus-visible { outline:none; box-shadow:inset 0 0 0 1px #aeb9c7; caret-color:#007aff; }
/* Project identity is pastel; urgency always overrides the project fill. */
#jarvis-design .j-row[data-task-color]:not([data-tone="neutral"]),#jarvis-design .j-search-result[data-task-color]:not([data-tone="neutral"]),#jarvis-design .j-review-row[data-task-color]:not([data-tone="neutral"]) { background:var(--j-task-color); border:0; border-radius:12px; padding:10px 12px; margin:6px 0; }
#jarvis-design .j-upnext[data-task-color] { background:var(--j-task-color,var(--j-panel)); }
#jarvis-design .j-completed button[data-task-color]:not([data-tone="neutral"]) { background:var(--j-task-color); border-radius:10px; padding:10px 12px; margin:5px 0; }
#jarvis-design .j-task-status { display:block; margin-top:4px; font-size:11px; line-height:1.35; font-weight:500; }
#jarvis-design [data-tone="overdue"] .j-task-status,#jarvis-design [data-tone="overdue"] .j-overdue { color:#9f2630; }
#jarvis-design [data-tone="soon"] .j-task-status { color:#795600; }
#jarvis-design .j-projectcard { background:var(--j-project-color,var(--j-panel)); }
#jarvis-design .j-projectcard .j-cover { background:rgba(255,255,255,.5); color:#33465a; }
#jarvis-design .j-project-result { border-left:4px solid var(--j-project-color); padding-left:12px; }

/* The day view gives most of the viewport to tasks. */
#jarvis-design .j-day-mode .j-main { padding-top:8px; }
#jarvis-design .j-day-mode .j-heading { margin-bottom:8px; gap:8px; }
#jarvis-design .j-day-mode .j-heading h1 { font-size:26px; line-height:1.1; }
#jarvis-design .j-day-mode .j-sub { margin-top:3px; font-size:12px; }
#jarvis-design .j-overdue-count { width:36px; height:36px; border-radius:50%; background:#fce3e3; color:#a12632; font-size:14px; font-weight:600; flex-shrink:0; }
#jarvis-design .j-day-mode .j-calendar-tools { flex-wrap:nowrap; gap:8px; margin-bottom:8px; }
#jarvis-design .j-day-mode .j-segment { width:auto; flex:1; max-width:320px; padding:3px; }
#jarvis-design .j-day-mode .j-segment button { flex:1; min-height:34px; padding:5px 8px; font-size:12px; }
#jarvis-design .j-day-mode .j-period { width:auto; gap:0; }
#jarvis-design .j-day-mode .j-period .j-today { display:none; }
#jarvis-design .j-day-mode .j-period button { min-width:36px; min-height:40px; }
#jarvis-design .j-day-mode .j-row.j-day-row { grid-template-columns:minmax(0,1fr) 40px; gap:4px; min-height:64px; padding:8px 10px; margin:0 0 6px; border:0; border-radius:12px; background:var(--j-task-color,var(--j-panel)); }
#jarvis-design .j-day-row .j-open { padding:0; min-height:44px; }
#jarvis-design .j-day-row .j-name { font-size:14px; line-height:18px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
#jarvis-design .j-day-info { display:flex; align-items:baseline; gap:6px; margin-top:3px; min-width:0; line-height:15px; }
#jarvis-design .j-day-info .j-meta { font-size:11px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#jarvis-design .j-day-info .j-task-status { font-size:10px; margin:0; flex-shrink:0; }
#jarvis-design .j-day-row .j-check { width:40px; }
#jarvis-design .j-day-row .j-circle { width:20px; height:20px; }
#jarvis-design .j-day-mode .j-completed { margin-top:6px; }
#jarvis-design .j-day-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
#jarvis-design .j-day-footer .j-secondary { font-size:12px; min-height:40px; padding:8px 12px; white-space:nowrap; }
#jarvis-design .j-completed-list { margin-top:12px; }
#jarvis-design .j-completed-item { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:10px 12px; margin:6px 0; background:var(--j-task-color,var(--j-panel)); border-radius:12px; }
#jarvis-design .j-completed-item > div { min-width:0; }
#jarvis-design .j-completed-item .j-name { overflow-wrap:anywhere; }
#jarvis-design .j-completed-item .j-secondary { flex-shrink:0; font-size:12px; padding:8px; }
@media(max-width:350px) { #jarvis-design .j-day-footer .j-secondary { padding:8px; font-size:11px; } }
#jarvis-design .j-nav-back,#jarvis-design .j-home { display:grid; place-items:center; width:36px; height:44px; padding:0; flex-shrink:0; color:var(--j-accent); border-radius:12px; }
#jarvis-design .j-home { width:44px; height:44px; border-radius:50%; background:#eef5fc; }
#jarvis-design .j-nav-back:disabled { color:var(--j-muted); opacity:.3; cursor:default; }
#jarvis-design .j-home[aria-current="page"] { background:var(--j-focus); }
#jarvis-design .j-topbar { gap:6px; }
#jarvis-design .j-topbar > .j-picker { min-width:0; flex:0 1 auto; margin-right:0; }
#jarvis-design .j-topbar > .j-picker summary { min-width:0; }
#jarvis-design .j-topbar > .j-picker summary span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#jarvis-design .j-search-nav { gap:8px; }
#jarvis-design .j-search-nav h1 { margin-right:auto; }
#jarvis-design .j-sheet-top .j-sheet-back { margin-right:4px; flex-shrink:0; }
#jarvis-design .j-sheet-top h2 { flex:1; }
@media(max-width:580px) {
 #jarvis-design .j-topbar .j-tools { gap:4px; }
 #jarvis-design .j-topbar .j-add,#jarvis-design .j-topbar .j-round { width:36px; height:36px; }
 #jarvis-design .j-topbar > .j-picker summary { gap:4px; font-size:14px; }
 #jarvis-design .j-topbar > .j-picker summary > svg:first-child { display:none; }
 #jarvis-design .j-nav-back { width:32px; }
 #jarvis-design .j-home { width:36px; height:36px; }
}

/* Short task previews keep the full list in the selected day's detail. */
#jarvis-design .j-week-strip { grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; padding:2px 0 8px; position:relative; }
#jarvis-design .j-week-pick { min-height:132px; padding:12px 6px; gap:5px; justify-content:flex-start; }
#jarvis-design .j-calendar-tasks { display:flex; flex-direction:column; width:100%; min-width:0; gap:4px; text-align:left; }
#jarvis-design .j-week-pick .j-calendar-tasks { margin-top:6px; }
#jarvis-design .j-week-metrics { display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:2px 6px; }
#jarvis-design .j-week-metrics .j-week-count { margin:0; }
#jarvis-design .j-calendar-task { display:flex; flex-direction:column; min-width:0; padding:5px 6px; border-radius:6px; background:var(--j-task-color,#e7edf4); color:#203249; font-size:12px; line-height:1.3; font-weight:400; }
#jarvis-design .j-calendar-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
#jarvis-design .j-calendar-time { font-size:10px; color:#536479; font-variant-numeric:tabular-nums; margin-bottom:2px; }
#jarvis-design .j-calendar-more,#jarvis-design .j-calendar-empty { color:var(--j-muted); font-size:11px; line-height:1.4; padding:4px 2px; }
#jarvis-design .j-calendar-empty { margin-top:6px; }
#jarvis-design .j-month button { justify-content:flex-start; padding:6px 3px; min-height:112px; background:var(--j-panel); gap:6px; }
#jarvis-design .j-month .j-calendar-task { padding:3px 4px; font-size:11px; }
#jarvis-design .j-month .j-calendar-time { font-size:9px; margin:0; }
#jarvis-design .j-month .j-calendar-more { font-size:10px; padding:0 2px; }
@media(max-width:580px) {
 #jarvis-design .j-month button { padding:5px 1px; border-radius:8px; min-height:76px; }
 #jarvis-design .j-month .j-calendar-task { padding:3px 2px; font-size:10px; }
 #jarvis-design .j-month .j-calendar-more { font-size:9px; }
}

/* One compact calendar header across day, week and month. */
#jarvis-design .j-calendar-mode .j-main { padding-top:8px; }
#jarvis-design .j-calendar-mode .j-heading { margin-bottom:8px; gap:8px; }
#jarvis-design .j-calendar-mode .j-heading h1 { font-size:24px; line-height:1.15; letter-spacing:-.6px; }
#jarvis-design .j-calendar-mode .j-calendar-tools { flex-wrap:nowrap; gap:8px; margin-bottom:8px; }
#jarvis-design .j-calendar-mode .j-segment { width:auto; flex:1; max-width:320px; padding:3px; }
#jarvis-design .j-calendar-mode .j-segment button { flex:1; min-width:0; min-height:38px; padding:5px 6px; font-size:12px; }
#jarvis-design .j-calendar-mode .j-period { width:auto; flex-shrink:0; gap:0; }
#jarvis-design .j-calendar-mode .j-period .j-today { display:none; }
#jarvis-design .j-calendar-mode .j-period button { min-width:44px; min-height:44px; }

/* Shared readable components for phone and desktop. */
#jarvis-design[data-style="light"] { --j-muted:#4c5d73; }
#jarvis-design .j-row.j-day-row { grid-template-columns:minmax(0,1fr) 44px; gap:6px; min-height:64px; padding:8px 10px; margin:0 0 6px; border:0; border-radius:12px; background:var(--j-task-color,var(--j-panel)); }
#jarvis-design .j-day-info .j-meta { font-size:12px; line-height:16px; }
#jarvis-design .j-day-info .j-task-status { font-size:11px; line-height:16px; }
#jarvis-design .j-day-row .j-check { width:44px; }
#jarvis-design .j-day-mode .j-row.j-day-row { grid-template-columns:minmax(0,1fr) 44px; }
#jarvis-design .j-calendar-more,#jarvis-design .j-calendar-empty { font-size:12px; }
#jarvis-design .j-text-button { display:block; color:var(--j-accent); font-size:13px; min-height:44px; padding:8px 0; text-align:left; }
#jarvis-design .j-topbar .j-tools { gap:8px; align-items:center; flex-shrink:0; margin-left:auto; }
#jarvis-design .j-topbar .j-add,#jarvis-design .j-topbar .j-round,#jarvis-design .j-home,#jarvis-design .j-nav-back { width:44px; height:44px; }
#jarvis-design .j-topbar .j-round { flex-shrink:0; }
#jarvis-design .j-topbar { gap:8px; padding-left:14px; padding-right:14px; }
#jarvis-design .j-overdue-count { width:44px; height:44px; }
#jarvis-design .j-day-mode .j-period button { min-width:44px; min-height:44px; }
#jarvis-design .j-topbar > .j-picker summary { padding:0; margin:0; }
#jarvis-design .j-topbar > .j-picker summary > svg { flex-shrink:0; }
#jarvis-design .j-scope-controls { gap:8px; margin-bottom:10px; }
#jarvis-design .j-filters { gap:6px; margin-bottom:12px; }
#jarvis-design .j-filters button { min-height:40px; padding:7px 10px; font-size:12px; }
#jarvis-design .j-month-layout { min-width:0; }
#jarvis-design .j-month button { min-height:80px; }
#jarvis-design .j-month .j-calendar-task { font-size:12px; }
#jarvis-design .j-month .j-calendar-more { font-size:11px; }
#jarvis-design .j-calendar-day-sheet .j-completed { margin-top:10px; }
#jarvis-design .j-calendar-day-sheet .j-secondary { margin-top:12px; }
#jarvis-design .j-projectgrid { gap:10px; }
#jarvis-design .j-projectcard { min-height:0; padding:14px; }
#jarvis-design .j-projectcard .j-cover { width:34px; height:34px; font-size:14px; border-radius:9px; margin-bottom:10px; }
#jarvis-design .j-project-next { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:13px; line-height:18px; margin-top:12px; }
#jarvis-design .j-muted { color:var(--j-muted); }
#jarvis-design .j-project-extra { margin:4px 0 12px; }
#jarvis-design .j-editor-dialog { overflow:hidden; }
#jarvis-design .j-editor-dialog .j-sheet { display:flex; flex-direction:column; max-height:calc(100dvh - 32px); padding:20px 20px 0; }
#jarvis-design .j-editor-dialog .j-sheet-top { flex-shrink:0; margin-bottom:8px; }
#jarvis-design .j-task-form { display:flex; flex-direction:column; min-height:0; }
#jarvis-design .j-form-fields { overflow-y:auto; min-height:0; padding:2px 3px 12px; scroll-padding:16px; overscroll-behavior:contain; }
#jarvis-design .j-savebar { flex-shrink:0; padding:12px 0 max(16px,env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--j-line); }
#jarvis-design .j-savebar .j-save { width:100%; margin:0; }
#jarvis-design .j-draft-banner { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#eef5fc; border-radius:10px; padding:8px 12px; margin-bottom:8px; color:#33465a; font-size:12px; }
#jarvis-design .j-draft-banner button { min-height:36px; color:var(--j-accent); padding:4px; }
#jarvis-design .j-review-progress { color:var(--j-muted); font-size:13px; margin-bottom:14px; }
#jarvis-design .j-review-current { padding:16px; border-radius:14px; background:var(--j-task-color,var(--j-panel)); }
#jarvis-design .j-review-current h3 { margin:0 0 8px; font-size:18px; line-height:1.35; }
#jarvis-design .j-review-hint { font-size:13px; color:var(--j-muted); margin:14px 0; }
#jarvis-design .j-review-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#jarvis-design .j-review-actions .j-secondary { padding:8px 4px; min-height:44px; font-size:12px; }
#jarvis-design .j-desktop-nav { display:none; }
@media(max-width:700px) {
 #jarvis-design .j-month button { min-height:56px; }
 #jarvis-design .j-month .j-calendar-time { display:none; }
 #jarvis-design .j-month .j-calendar-title { display:block; white-space:nowrap; text-overflow:ellipsis; }
 #jarvis-design .j-month-detail { display:none; }
 #jarvis-design .j-editor-dialog .j-sheet { max-height:calc(100dvh - 12px); padding:12px 16px 0; }
 #jarvis-design .j-editor-dialog { max-height:calc(100dvh - 12px); }
 #jarvis-design .j-topbar > .j-picker summary > svg:first-child { display:none; }
 #jarvis-design .j-topbar > .j-picker summary { font-size:13px; gap:3px; }
 #jarvis-design .j-main { padding-top:10px; }
 #jarvis-design .j-heading { margin-bottom:12px; }
}
@media(min-width:1000px) {
 #jarvis-design { max-width:1320px; }
 #jarvis-design .j-window { display:grid; grid-template-columns:176px minmax(0,1fr); }
 #jarvis-design .j-topbar,#jarvis-design .j-search-nav { grid-column:1 / -1; padding:14px 24px; }
 #jarvis-design .j-topbar { position:relative; }
 #jarvis-design .j-topbar .j-tools { gap:18px; }
 #jarvis-design .j-topbar .j-tools > .j-round,
 #jarvis-design .j-topbar .j-tools > .j-add { width:52px; height:52px; }
 #jarvis-design .j-desktop-nav { display:flex; flex-direction:column; align-items:stretch; gap:6px; padding:16px 10px; border-right:1px solid var(--j-line); }
 #jarvis-design .j-desktop-nav button { display:flex; gap:10px; align-items:center; padding:12px; min-height:44px; text-align:left; border-radius:12px; font-size:14px; }
 #jarvis-design .j-desktop-nav button[aria-current="page"] { background:var(--j-focus); color:var(--j-accent); }
 #jarvis-design .j-main { grid-column:2; width:100%; max-width:840px; margin:0 auto; padding:16px 24px 28px; }
 #jarvis-design[data-page="schedule"][data-view="week"] .j-main,#jarvis-design[data-page="schedule"][data-view="month"] .j-main { max-width:none; }
 #jarvis-design .j-day-row .j-name { font-size:16px; line-height:21px; }
 #jarvis-design .j-day-info .j-meta { font-size:13px; line-height:18px; }
 #jarvis-design .j-row.j-day-row { min-height:74px; padding:10px 14px; }
 #jarvis-design .j-day-mode .j-row.j-day-row { min-height:74px; padding:10px 14px; }
 #jarvis-design .j-month-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:16px; align-items:start; }
 #jarvis-design .j-month-detail { margin:0; padding-left:16px; border-top:0; border-left:1px solid var(--j-line); }
 #jarvis-design .j-month-detail .j-section-head { margin:0 0 12px; flex-wrap:wrap; }
 #jarvis-design .j-month-detail .j-row.j-day-row { padding:8px; }
 #jarvis-design .j-month-detail .j-day-row .j-name { font-size:14px; line-height:18px; }
 #jarvis-design .j-month-detail .j-day-info .j-meta { font-size:12px; }
 #jarvis-design .j-projectgrid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
#jarvis-design .j-form-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
#jarvis-design .j-form-row > label { min-width:0; }
#jarvis-design .j-form-fields { overflow-x:hidden; }
#jarvis-design .j-projectcard { display:grid; grid-template-columns:34px minmax(0,1fr); column-gap:10px; align-content:start; }
#jarvis-design .j-projectcard .j-cover { grid-column:1; grid-row:1 / 3; margin:0; }
#jarvis-design .j-projectcard > .j-name,#jarvis-design .j-projectcard > .j-meta { grid-column:2; }
#jarvis-design .j-projectcard > .j-name { overflow-wrap:anywhere; }
#jarvis-design .j-project-next,#jarvis-design .j-project-next + .j-meta { grid-column:1 / -1; }

/* Calendar extras use the same compact controls as the daily footer. */
#jarvis-design .j-calendar-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0; }
#jarvis-design .j-calendar-actions .j-secondary { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:8px 12px; font-size:12px; white-space:nowrap; }
#jarvis-design .j-calendar-actions svg { width:16px; height:16px; flex-shrink:0; }
#jarvis-design .j-week-detail-head { margin:8px 0 12px; }
#jarvis-design .j-week-detail-head .j-section-head { margin:0; }
#jarvis-design .j-deadline-list { margin-top:12px; }
#jarvis-design .j-project-calendar-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
#jarvis-design .j-project-calendar-top .j-project-back,#jarvis-design .j-project-calendar-top .j-text-button { margin:0; padding:6px 0; min-height:36px; }
#jarvis-design .j-project-calendar-mode .j-heading { margin-bottom:4px; }
#jarvis-design .j-heading-text { min-width:0; max-width:100%; }
#jarvis-design .j-title-row { display:flex; align-items:center; gap:12px; }
#jarvis-design .j-title-row h1 { min-width:0; overflow-wrap:anywhere; }
#jarvis-design .j-project-calendar-mode .j-heading-text { width:100%; }
#jarvis-design .j-project-calendar-mode .j-title-row { gap:10px; min-height:32px; }
#jarvis-design .j-project-calendar-mode .j-title-row h1 { font-size:20px; line-height:24px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#jarvis-design .j-project-period { flex-shrink:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--j-muted); font-size:12px; line-height:18px; }
#jarvis-design .j-project-calendar-mode .j-sub { margin-top:4px; }
#jarvis-design .j-project-calendar-footer { margin-top:12px; }

@media(min-width:1000px) {
 #jarvis-design .j-project-calendar-mode .j-main { max-width:none; }
 #jarvis-design .j-week-strip { grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin:0 0 12px; padding:0; align-items:stretch; }
 #jarvis-design .j-week-pick { padding:10px 7px; min-height:120px; gap:3px; }
 #jarvis-design .j-week-pick strong { font-size:20px; }
 #jarvis-design .j-week-pick .j-calendar-tasks { margin-top:4px; gap:4px; }
 #jarvis-design .j-week-pick .j-calendar-task { padding:4px 5px; font-size:11px; line-height:14px; }
 #jarvis-design .j-week-pick .j-calendar-time { font-size:10px; margin:0; }
 #jarvis-design .j-week-pick .j-calendar-more { padding:2px 0; font-size:11px; }
 #jarvis-design .j-week-detail-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; margin:8px 0; }
 #jarvis-design .j-week-detail-head .j-section-head { gap:12px; }
 #jarvis-design .j-week-detail-head .j-calendar-actions { margin:0; }
 #jarvis-design .j-week-detail .j-day-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 #jarvis-design .j-week-detail .j-row.j-day-row { margin:0; min-height:62px; padding:7px 10px; }
 #jarvis-design .j-week-detail .j-day-row .j-name { font-size:14px; line-height:18px; }
 #jarvis-design .j-week-detail .j-day-info .j-meta { font-size:12px; line-height:16px; }
}
@media(max-width:700px) {
 #jarvis-design .j-editor-dialog { inset:auto 0 calc(100dvh - var(--j-visual-top,0px) - var(--j-visual-height,100dvh)); margin:0 auto; max-height:calc(var(--j-visual-height,100dvh) - 12px); }
 #jarvis-design .j-editor-dialog .j-sheet { max-height:calc(var(--j-visual-height,100dvh) - 12px); }
}

/* Shoot days retain the selected-day background and keyboard focus outline. */
#jarvis-design .j-week-pick.j-shoot-day,
#jarvis-design .j-month button.j-shoot-day { box-shadow:inset 0 0 0 1px #1765d1; }

/* Project sharing and local Google Calendar connection. */
#jarvis-design .j-project-share { display:flex; flex-shrink:0; align-items:center; gap:6px; padding:0; margin:0; }
#jarvis-design .j-project-share strong { display:block; color:var(--j-muted); font-size:11px; line-height:16px; font-weight:400; }
#jarvis-design .j-project-share .j-meta { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#jarvis-design .j-google-status .j-meta { display:block; margin-top:3px; }
#jarvis-design .j-share-switch { position:relative; flex-shrink:0; width:28px; height:18px; border-radius:12px; padding:2px; background:#d5d9df; transition:background .15s; }
#jarvis-design .j-share-switch::before { content:""; position:absolute; inset:-13px -8px; }
#jarvis-design .j-share-switch span { display:block; width:14px; height:14px; border-radius:50%; background:white; box-shadow:0 1px 3px #0002; transition:transform .15s; }
#jarvis-design .j-share-switch[aria-checked="true"] { background:#1765d1; }
#jarvis-design .j-share-switch[aria-checked="true"] span { transform:translateX(10px); }
#jarvis-design .j-share-switch:disabled { opacity:.5; cursor:wait; }
#jarvis-design .j-google-button { position:relative; }

/* Keep navigation in the same slots on every page, including search. */
#jarvis-design .j-window { overflow:clip; align-content:start; grid-template-rows:auto 1fr; }
#jarvis-design .j-topbar { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:176px 96px minmax(0,1fr); gap:8px; align-items:center; background:var(--j-bg); border-bottom:1px solid var(--j-line); padding:12px 24px; }
#jarvis-design .j-nav-actions { display:flex; gap:8px; }
#jarvis-design .j-topbar > .j-picker { min-width:0; }
#jarvis-design .j-topbar > .j-picker summary { min-height:44px; }
#jarvis-design .j-topbar > .j-picker summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#jarvis-design .j-search-mode .j-main { padding-top:16px; align-self:start; max-width:840px; }
#jarvis-design .j-sheet-top { position:sticky; top:0; z-index:2; background:var(--j-bg); justify-content:flex-start; gap:8px; }
#jarvis-design .j-sheet-top > .j-sheet-back { flex:none; width:44px; height:44px; }
#jarvis-design .j-sheet-top > h2 { flex:1; min-width:0; margin:0; overflow-wrap:anywhere; }
@media(max-width:999px) {
 #jarvis-design .j-topbar { grid-template-columns:minmax(44px,176px) 96px minmax(140px,1fr); padding:10px 14px; }
}
@media(max-width:700px) {
 #jarvis-design .j-topbar { grid-template-columns:44px 92px minmax(0,1fr); gap:4px; padding:10px 12px; }
 #jarvis-design .j-nav-actions,#jarvis-design .j-topbar .j-tools { gap:4px; }
 #jarvis-design .j-topbar > .j-picker summary { justify-content:center; }
 #jarvis-design .j-topbar > .j-picker summary span,#jarvis-design .j-topbar > .j-picker summary > svg:last-child { display:none; }
 #jarvis-design .j-topbar > .j-picker summary > svg:first-child { display:block; }
 #jarvis-design .j-search-mode .j-main { padding-top:10px; }
 #jarvis-design .j-sheet-top > h2 { font-size:17px; }
}

/* A stretched day button covers blank space; task controls sit above it. */
#jarvis-design .j-week-pick { position:relative; isolation:isolate; }
#jarvis-design .j-week-pick[data-selected="true"] { background:#deefff; }
#jarvis-design .j-week-day { display:flex; flex-direction:column; align-items:center; width:100%; gap:4px; padding:0; min-height:64px; }
#jarvis-design .j-week-day::after { content:""; position:absolute; inset:0; border-radius:inherit; cursor:pointer; }
#jarvis-design .j-week-day:focus-visible { outline:none; }
#jarvis-design .j-week-day:focus-visible::after { outline:2px solid var(--j-accent); outline-offset:2px; }
#jarvis-design .j-week-pick[data-selected="true"] strong { color:var(--j-accent); }
#jarvis-design .j-week-pick .j-calendar-task-actions { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:0; padding:0; }
#jarvis-design .j-calendar-task-actions > button { position:relative; z-index:1; }
#jarvis-design .j-calendar-open { min-width:0; min-height:44px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:6px; text-align:left; font-size:inherit; line-height:inherit; font-weight:400; border-radius:6px; }
#jarvis-design .j-calendar-task-actions .j-check { width:44px; min-width:44px; min-height:44px; height:100%; align-self:stretch; border-radius:6px; }
#jarvis-design .j-calendar-task-actions .j-circle { width:18px; height:18px; }
#jarvis-design .j-calendar-task-actions button:focus-visible { outline:2px solid var(--j-accent); outline-offset:-2px; }
#jarvis-design .j-calendar-task-actions button:hover { background:#ffffff40; }
#jarvis-design .j-calendar-task-actions button:disabled { opacity:.5; cursor:wait; }
@media(max-width:700px) {
 #jarvis-design .j-week-strip { grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; padding:4px 0 10px; }
 #jarvis-design .j-week-pick { min-height:90px; padding:10px 1px; gap:0; border-radius:11px; }
 #jarvis-design .j-week-day { min-height:68px; gap:5px; }
 #jarvis-design .j-week-pick small { font-size:11px; }
 #jarvis-design .j-week-pick strong { font-size:20px; }
 #jarvis-design .j-week-metrics { display:block; max-width:100%; }
 #jarvis-design .j-week-count { font-size:10px; }
 #jarvis-design .j-week-duration,
 #jarvis-design .j-week-pick .j-calendar-tasks,
 #jarvis-design .j-week-pick .j-calendar-empty { display:none; }
}

/* Overdue tasks open beside their counter without changing the page. */
#jarvis-design .j-overdue-cloud { position:fixed; inset:auto; margin:0; padding:12px; z-index:100; overflow:auto; overscroll-behavior:contain; border:1px solid var(--j-line); border-radius:20px; background:var(--j-bg); color:var(--j-text); box-shadow:0 14px 44px #243c6033; }
#jarvis-design .j-overdue-cloud::backdrop { background:transparent; }
#jarvis-design .j-cloud-heading { position:sticky; top:-12px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--j-bg); padding:0 0 8px; z-index:1; }
#jarvis-design .j-cloud-heading h2 { margin:0; font-size:18px; }
#jarvis-design .j-cloud-heading button { display:grid; place-items:center; width:44px; height:44px; flex:none; border-radius:50%; }
#jarvis-design .j-overdue-cloud .j-row.j-day-row { padding:8px; min-height:64px; }
#jarvis-design .j-overdue-cloud .j-name { font-size:14px; line-height:19px; }
#jarvis-design .j-unread-dot { position:absolute; top:5px; right:5px; width:8px; height:8px; border-radius:50%; background:#c44134; }
#jarvis-design .j-google-panel { padding:0 4px 24px; overflow-wrap:anywhere; }
#jarvis-design .j-google-panel a { color:inherit; text-decoration:underline; }
#jarvis-design .j-google-panel .j-button-line { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
#jarvis-design .j-google-panel .j-save { padding:12px 18px; }
#jarvis-design .j-google-upload { display:grid; gap:12px; margin:18px 0; }
#jarvis-design .j-google-upload input { max-width:100%; }
#jarvis-design .j-google-notice { border-top:1px solid var(--j-line); padding:14px 0; }
#jarvis-design .j-google-notice p { margin:6px 0; white-space:pre-wrap; }
#jarvis-design .j-google-notice[data-read] { opacity:.65; }
#jarvis-design .j-google-panel details { margin:16px 0; }
#jarvis-design .j-google-panel li { margin-bottom:10px; }
#jarvis-design .j-calendar-change { display:inline-block; color:#27623b; background:#e5f1e9; font-size:11px; border-radius:5px; padding:2px 6px; white-space:normal; }

/* One entry point for voice and chat, shared by the calendar and task sheets. */
#jarvis-design .j-assistant-launcher{position:fixed;right:16px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:115;display:flex;align-items:center;gap:10px}
#jarvis-design .j-assistant-launcher button{width:52px;height:52px;min-width:52px;min-height:52px;padding:0;display:grid;place-items:center;border-radius:50%;box-shadow:0 6px 22px #1c2d4324;transition:transform 160ms ease,box-shadow 160ms ease}
#jarvis-design .j-assistant-launcher button:hover{transform:translateY(-2px);box-shadow:0 8px 24px #1c2d432d}
#jarvis-design .j-assistant-launcher button:active{transform:scale(.96)}
#jarvis-design .j-assistant-launcher svg{width:22px;height:22px;stroke-width:1.8}
#jarvis-design .j-assistant-chat{background:#fff;color:#1765d1;border:1px solid #dfe7ef}
#jarvis-design .j-assistant-mic{background:#1765d1;color:#fff;border:1px solid #1765d1}
body:has(.va-panel[open]) #jarvis-design .j-assistant-launcher,
#jarvis-design:has(.j-sheet-wrap[open]) .j-window>.j-assistant-launcher{display:none}
#jarvis-design .j-window .j-main,#jarvis-design .j-sheet{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
@media(min-width:1000px){#jarvis-design .j-assistant-launcher{right:24px}}
@media(prefers-reduced-motion:reduce){#jarvis-design .j-assistant-launcher button{transition:none}}

#jarvis-design .j-device-push-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
#jarvis-design [data-device-status]:empty{display:none}

#jarvis-design .j-device-push-row .j-share-switch{width:52px;height:32px;min-height:32px;padding:3px;border:0;border-radius:20px}
#jarvis-design .j-device-push-row .j-share-switch::before{inset:-6px 0}
#jarvis-design .j-device-push-row .j-share-switch span{width:26px;height:26px}
#jarvis-design .j-device-push-row .j-share-switch[aria-checked="true"] span{transform:translateX(20px)}
#jarvis-design .j-device-push-row .j-share-switch:focus-visible{outline:2px solid #1765d1;outline-offset:4px}
