/* Shared visual system. Business action/data contracts stay in the existing engine. */
body.app-redesigned{--blue:#267cff;--blue-dark:#216ada;--pale:#edf5ff;--ink:#172944;--muted:#6f8098;--line:#e5edf5;--bg:#f6f9fc;background:var(--bg);color:var(--ink);font-size:14px}
.app-redesigned *{box-sizing:border-box}
.app-redesigned button,.app-redesigned a{ -webkit-tap-highlight-color:transparent }
.app-redesigned button{cursor:pointer}
.app-redesigned button:disabled{cursor:default;opacity:.55}
.app-redesigned button:focus-visible,.app-redesigned input:focus-visible,.app-redesigned textarea:focus-visible,.app-redesigned select:focus-visible,.app-redesigned a:focus-visible{outline:3px solid #83b5ff;outline-offset:3px}
.app-redesigned .sidebar{width:216px;padding:26px 16px 18px;background:#f0f6fc;border-right:1px solid #e1eaf5}
.app-redesigned main{margin-left:216px;min-width:0}
.app-redesigned .brand{font-size:19px;font-weight:700;color:#142b49;gap:9px;padding-bottom:30px}
.app-redesigned .workspace-label{display:none}
.app-redesigned .sidebar nav{gap:7px}
.app-redesigned .nav-item{min-height:48px;height:auto;font-size:14px;padding:11px 12px;color:#536b89;border-radius:9px}
.app-redesigned .nav-item img{width:19px;height:19px;opacity:.85}
.app-redesigned .nav-item.active{color:#267cff;background:#dfeeff;box-shadow:none;font-weight:600}
.app-redesigned .nav-item[data-nav=completed]{margin-top:20px;border-top:1px solid #dce7f4;padding-top:18px;border-radius:0 0 9px 9px}
.app-redesigned .topbar{height:64px;background:#fbfdff;padding:0 28px;border-bottom:1px solid var(--line);gap:16px}
.app-redesigned .topbar #pageTitle h1{font-size:13px;font-weight:500;color:#6d829c}
.app-redesigned .profile{color:#267cff;background:#e6efff;border:0;width:38px;height:38px;font-size:13px}
.app-redesigned .page:not(#home){padding:28px 28px 60px;max-width:1660px;min-width:0}
.app-redesigned .page .section-intro{margin-bottom:22px;gap:18px;align-items:center;min-width:0}
.app-redesigned .page .section-intro>div{min-width:0}
.app-redesigned .section-intro h1,.app-redesigned .day-cards-hero h1{font-size:30px;line-height:1.35;letter-spacing:-.6px;color:#172944;margin:0}
.app-redesigned .section-intro>div>p{display:none}
.app-redesigned .header-actions{gap:8px;flex-wrap:wrap}
.app-redesigned .primary-button,.app-redesigned .secondary-button{min-height:44px;border-radius:8px;padding:10px 14px;font-size:13px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-shadow:none}
.app-redesigned .primary-button{background:#267cff;border:1px solid #267cff;color:#fff}
.app-redesigned .primary-button:hover{background:#1768e4}
.app-redesigned .secondary-button{background:#fff;color:#46698f;border:1px solid #d9e6f5}
.app-redesigned .secondary-button:hover{background:#f2f7ff;border-color:#abcaff}
.app-redesigned .chip{min-height:40px;padding:8px 13px;border:1px solid #dde8f6;border-radius:8px;font-size:12px;background:#fff;color:#6b819c}
.app-redesigned .chip.active{background:#267cff;color:#fff;border-color:#267cff}
.app-redesigned .text-button{min-height:40px;color:#267cff}
.app-redesigned .panel{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 7px #23436803;padding:20px}
.app-redesigned input:not([type=checkbox]):not([type=radio]),.app-redesigned textarea,.app-redesigned select{border:1px solid #dce6f3;background:#fff;border-radius:8px;color:#2a4160;font-size:14px;max-width:100%;min-height:44px;padding:10px 12px}
.app-redesigned input[type=checkbox],.app-redesigned input[type=radio]{accent-color:#267cff}
.app-redesigned .empty{padding:30px 16px;border:1px dashed #dce7f5;background:#fbfdff;border-radius:10px;color:#71859c;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.app-redesigned .helper{font-size:12px;color:#8090a5;line-height:1.6;margin:10px 0}
.app-redesigned .badge{background:#edf3fa;color:#6682a3;border-radius:6px;padding:4px 7px}
.app-redesigned dialog{background:#fff;border:1px solid #dde8f5;border-radius:13px;box-shadow:0 22px 80px #193c682e;color:#254364;padding:24px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.app-redesigned dialog::backdrop{background:#132c4d4a;backdrop-filter:blur(3px)}
.app-redesigned dialog .dialog-head{gap:15px;margin-bottom:18px}
.app-redesigned dialog .dialog-head h2{font-size:22px;line-height:1.5;margin:0;color:#172944}
.app-redesigned dialog label{font-size:13px;line-height:1.6;color:#607892}
.app-redesigned dialog textarea{font-size:15px;line-height:1.8;min-height:140px;resize:vertical}
.app-redesigned dialog .dialog-actions{gap:10px;margin-top:24px}
.app-redesigned .icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:8px;color:#7187a2}
.app-redesigned #taskDetailDialog{padding:0;inset:0;margin:auto;width:min(940px,calc(100vw - 32px))}
.app-redesigned #taskDetailContent{padding:28px 32px}
.app-redesigned .wb-detail h2{font-size:25px;line-height:1.55}
.app-redesigned .wb-detail button{min-height:44px;border-radius:8px;font-size:13px;color:#35649b;border-color:#dbe6f4;padding:8px 13px}
.app-redesigned .wb-detail .wb-detail-head button{width:40px;min-height:40px}
.app-redesigned .wb-detail-history article{background:#f7faff;border:1px solid #e6edf6;border-left:3px solid #bcd6ff;border-radius:7px;padding:18px 20px}
.app-redesigned .wb-detail-history article p{font-size:17px;line-height:1.9;color:#364e69}
.app-redesigned .wb-status.done{color:#28945c;background:#e8f7ed}
.app-redesigned .wb-status.archived{color:#7186a0;background:#eef2f7}
@media(max-width:1100px) and (min-width:701px){.app-redesigned .sidebar{width:180px;padding-inline:12px}.app-redesigned main{margin-left:180px}.app-redesigned .page:not(#home){padding:24px 20px 50px}.app-redesigned .topbar{padding-inline:20px}.app-redesigned .header-actions button{padding-inline:10px;font-size:12px}.app-redesigned .section-intro{flex-wrap:wrap}}
@media(max-width:700px){.app-redesigned main{margin-left:0}.app-redesigned .sidebar{width:250px;inset:0 auto 66px 0;display:none}.app-redesigned .sidebar.open{display:flex}.app-redesigned .page:not(#home){padding:22px 16px 100px}.app-redesigned .topbar{height:54px;padding:0 16px;gap:10px}.app-redesigned .topbar #menuToggle{width:34px;height:40px}.app-redesigned .topbar h1{font-size:12px}.app-redesigned .section-intro h1{font-size:26px}.app-redesigned .header-actions{width:100%;display:flex;gap:7px}.app-redesigned .header-actions button{min-height:44px;flex:1;font-size:11px;padding:9px 8px}.app-redesigned .chip{min-height:40px;font-size:11px;padding:8px 10px}.app-redesigned .panel{padding:16px}.app-redesigned #taskDetailContent{padding:22px 18px}.app-redesigned .wb-detail h2{font-size:22px}.app-redesigned .wb-detail-history article p{font-size:16px}.app-redesigned dialog{padding:20px}.app-redesigned .wb-mobile-nav{background:#fff;border-top:1px solid var(--line)}.app-redesigned .wb-mobile-nav button{min-width:44px;min-height:44px;color:#557baf}}
