/* TASKDOCK palette; legacy layout, forms, semantic colors remain independent. */
:root{--td-paper:#fafaf9;--td-ink:#37352f;--td-muted:#787672;--td-border:#ebeae6;--td-soft:#f3f2ef;--td-nav-h:44px}
.td-switch{box-sizing:border-box;position:relative;z-index:19;display:flex;align-items:center;gap:10px;height:var(--td-nav-h);padding:0 12px;background:#fafaf9;color:#37352f;border-bottom:1px solid #ebeae6;font:500 13px/1.4 -apple-system,BlinkMacSystemFont,'Hiragino Sans','Noto Sans JP',sans-serif;isolation:isolate}
.td-switch *{box-sizing:border-box}.td-switch a{color:#37352f;text-decoration:none}.td-brand{display:flex;align-items:center;gap:7px;font-weight:750;font-size:12px;letter-spacing:.06em;white-space:nowrap}.td-mark{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;background:#37352f;color:white;font-size:13px}.td-section{color:#787672;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-menu{margin-left:auto;flex:none}.td-menu summary{list-style:none;cursor:pointer;padding:8px;border-radius:6px;background:#f3f2ef;font-size:12px}.td-menu summary::-webkit-details-marker{display:none}.td-links{position:absolute;right:12px;top:43px;background:white;border:1px solid #ebeae6;border-radius:9px;box-shadow:0 4px 16px #37352f15;padding:5px;width:175px}.td-links a{display:block;padding:10px 12px;border-radius:5px;min-height:40px}.td-links a:hover,.td-links a[aria-current]{background:#f3f2ef;font-weight:650}
html[data-td-module=finance]{--bg:#fafaf9;--text:#37352f;--muted:#787672;--line:#ebeae6;--blue:#37352f;--blue2:#ebeae6;--blue3:#f7f6f3}
html[data-td-module=shopping]{--paper:#fafaf9;--ink:#37352f;--muted:#787672;--line:#ebeae6;--accent:#37352f}
html[data-td-module=calendar]{--paper:#fafaf9;--surface-2:#f3f2ef;--ink:#37352f;--muted:#787672;--line:#ebeae6;--line-strong:#dcdad5;--accent:#37352f;--accent-soft:#ebeae6;--accent-wash:#f7f6f3;--accent-dark:#2f2d27}
html[data-td-module=calendar] .site-frame{height:calc(100% - var(--td-nav-h))}
html[data-td-module=calendar] .app{height:100%;min-height:0}
html[data-td-module=calendar] .td-switch{z-index:21}
html[data-td-module=health]{--bg:#fafaf9;--surface2:#f3f2ef;--text:#37352f;--text2:#5a5956;--text3:#787672;--shadow:0 1px 2px #37352f09;--r:10px;--r-lg:12px}
html[data-td-module=todo] body{background:#fafaf9;color:#37352f}html[data-td-module=todo] .sidebar{background:#f7f6f3}html[data-td-module=todo] .app{min-height:calc(100vh - var(--td-nav-h))}
@media(min-width:769px){html[data-td-module=planner] .nav{top:calc(10px + var(--td-nav-h))}}
html[data-td-module=planner] .td-switch{z-index:12}
