:root {
  color-scheme: light;
  --ink: #223b53; --muted: #6e8296; --paper: #f7f8fa; --panel: #fff;
  --line: #e5e7eb; --teal: #087cb9; --green: #087cb9; --mint: #edf2ff;
  --sky: #149ce1; --sky-dark: #087cb9; --sky-soft: #edf2ff;
  --gold: #f3ca79; --coral: #b9654c; --shadow: 0 4px 22px rgba(53,110,148,.035);
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size: 14px; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button,input,textarea,select { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button[aria-busy="true"] { cursor: wait; }
:focus-visible { outline: 3px solid #61bdf0; outline-offset: 4px; }
a { color: var(--sky-dark); overflow-wrap: anywhere; text-underline-offset: 3px; }
p { line-height: 1.65; }
img { max-width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.boot-state { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.75; }
.error { min-height: 18px; margin-top: 9px; color: #b44747; font-size: 12px; line-height: 1.65; }
.error:empty { min-height: 0; margin-top: 0; }
.button,.primary,.close,.top-actions button,.mobile-menu {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px;
  font-weight: 550; line-height: 1.4; text-decoration: none;
  transition: background .16s,border-color .16s,box-shadow .16s;
}
.button:hover:not(:disabled),.close:hover,.top-actions button:hover,.mobile-menu:hover { background: #f3f5f8; border-color: #c9e3f4; }
.primary { width: 100%; background: var(--sky); color: #fff; border-color: var(--sky); }
.primary:hover:not(:disabled),.button.primary:hover:not(:disabled) { background: var(--sky-dark); border-color: var(--sky-dark); }
.button.primary { width: auto; }
.button.success { color: #08739f; background: #e5f5ff; border-color: #c8e8fa; }
.button.success:hover:not(:disabled) { background: #d7effe; }
.button.warn { color: #a35442; }
.button.danger { color: #c64b4b; border-color: #f0cdcd; background: #fff6f6; }
.button.danger:hover:not(:disabled) { color: #ac3434; border-color: #e6b3b3; background: #ffebeb; }
.todo-owner-actions .button:disabled { color: #98a7b5; border-color: #e4ebf1; background: #f4f7fa; opacity: 1; }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button svg,.nav-icon svg,.close svg,.todo-check svg { width: 18px; height: 18px; flex: none; }
.field { display: grid; gap: 8px; margin: 18px 0; min-width: 0; }
.field label { font-size: 13px; color: #515866; font-weight: 550; }
.field input,.field textarea,.field select,.filters input,.filters select,#dashboardDate,.share-link {
  min-width: 0; min-height: 44px; width: 100%; padding: 11px 13px; color: var(--ink);
  border: 1px solid #dfe2e7; border-radius: 9px; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
input::placeholder,textarea::placeholder { color: #94a4b4; opacity: 1; }
.field input:focus,.field textarea:focus,.field select:focus { border-color: #7cc8f0; box-shadow: 0 0 0 3px #edf2ff; }
.calendar-picker { position: relative; }
.date-trigger { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 10px 13px; border: 1px solid #dfe2e7; border-radius: 12px; color: var(--ink); background: #fff; }
.date-trigger:hover,.date-trigger[aria-expanded="true"] { border-color: #7cc8f0; box-shadow: 0 0 0 3px #edf2ff; }
.calendar-menu { position: relative; z-index: 15; width: min(294px,100%); margin-top: 8px; padding: 10px; border: 1px solid #e2e5ea; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(42,91,124,.12); }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calendar-heading button,.calendar-day,.calendar-today { min-height: 34px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }
.calendar-heading button { width: 34px; font-size: 21px; }
.calendar-heading strong { font-size: 13px; }
.calendar-week,.calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; text-align: center; }
.calendar-week { padding-bottom: 6px; color: var(--muted); font-size: 11px; }
.calendar-day { padding: 4px 0; font-size: 12px; }
.calendar-day.outside-month { color: #a4b3be; }
.calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 1px #9dd6f5; }
.calendar-day:hover,.calendar-heading button:hover,.calendar-today:hover { background: var(--sky-soft); color: var(--sky-dark); }
.calendar-day.selected { background: var(--sky); color: #fff; }
.calendar-today { width: 100%; margin-top: 7px; color: var(--sky-dark); font-size: 12px; background: var(--sky-soft); }
.supervisor-picker { position: relative; }
.supervisor-trigger { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 6px 11px; border: 1px solid #dfe2e7; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; }
.supervisor-trigger:hover,.supervisor-trigger[aria-expanded="true"] { border-color: #7cc8f0; box-shadow: 0 0 0 3px #edf2ff; }
.supervisor-trigger .avatar,.supervisor-option .avatar { width: 30px; height: 30px; font-size: 13px; }
.supervisor-trigger>span:nth-last-of-type(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-chevron { margin-left: auto; color: #727986; font-size: 16px; }
.supervisor-menu { position: relative; z-index: 12; display: grid; gap: 4px; margin-top: 7px; max-height: 240px; overflow-y: auto; padding: 7px; border: 1px solid #e2e5ea; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(42,91,124,.16); }
.supervisor-menu[hidden] { display: none; }
.supervisor-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 6px 9px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.supervisor-option:hover,.supervisor-option.selected { background: #edf2ff; color: var(--sky-dark); }
.supervisor-option>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Application frame */
.shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0,1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex;
  flex-direction: column; padding: 28px 16px 18px; background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; padding: 0 10px 38px; flex-shrink: 0; }
.brand strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.nav { display: grid; gap: 7px; align-content: start; flex: 1; min-height: 80px; overflow-y: auto; padding-bottom: 20px; }
.nav button { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 11px 15px; color: #686f7b; background: transparent; border: 0; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 500; }
.nav button:hover { color: var(--sky-dark); background: #f7f8fa; }
.nav button.active { color: #3568e8; background: #edf2ff; font-weight: 650; }
.nav-icon { display: inline-grid; place-items: center; width: 21px; height: 22px; flex: none; font-size: 20px; font-weight: 400; }
.side-note { margin-top: 16px; padding: 12px 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: 100%; min-height: 68px; margin-top: 12px; padding: 13px 10px 0; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.sidebar-profile:hover .profile-label strong { color: var(--sky-dark); }
.profile-label { flex: 1; min-width: 0; }
.profile-label strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-label small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-arrow { font-size: 21px; color: #9babb9; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #e5f4ff; color: var(--sky-dark); font-size: 17px; font-weight: 600; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-large { width: 88px; height: 88px; font-size: 33px; }
.content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 38px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar>div:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb { font-size: 12px; color: #8c9dad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb strong { color: #4a637b; font-weight: 550; }
.top-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.top-actions button { padding: 8px 12px; color: var(--muted); border-color: transparent; background: transparent; font-size: 12px; }
.account-name { max-width: 150px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu { display: none; width: 44px; padding: 0; }
.main { width: min(1180px,calc(100% - 76px)); margin: 0 auto; padding: 36px 0 64px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.head h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.04em; line-height: 1.4; }
.head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.head .button { flex-shrink: 0; }
.eyebrow { font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.section-head>span { color: #8b9dad; font-size: 12px; }
#dashboardDate { width: auto; max-width: 100%; font-size: 12px; color: #656d79; }
.empty { padding: 40px 24px; color: var(--muted); background: #fff; border: 1px dashed #d5e6f3; border-radius: 13px; font-size: 13px; text-align: center; line-height: 1.8; }
.empty p { margin: 0 0 15px; }

/* Progress */
.metrics-grid,.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.metric { min-width: 0; padding: 23px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.metric-card { min-width: 0; padding: 23px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.metric h2,.metric h3,.metric>span,.metric>label { display: block; margin: 0; font-size: 13px; font-weight: 500; color: #73889b; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 18px; font-size: 34px; font-weight: 650; letter-spacing: -.045em; color: #263f55; font-variant-numeric: tabular-nums; }
.metric-value strong { font: inherit; }
.metric-value small,.metric-value span { color: #9caebc; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.metric-track { height: 5px; border-radius: 99px; background: #edf5fb; overflow: hidden; }
.metric-track i,.metric-track span,.metric-track div { display: block; height: 100%; background: #47b4ed; border-radius: inherit; }
.metric:nth-child(2) .metric-track>*,.metric:nth-child(2) .metric-track span { background: #74c7f2; }
.metric:nth-child(3) .metric-track>*,.metric:nth-child(3) .metric-track span { background: #9bd8f7; }
.metric-caption { display: flex; justify-content: space-between; gap: 8px; margin: 11px 0 0; font-size: 11px; color: #879bac; line-height: 1.6; }
.metric-card > span { display: block; margin: 0; font-size: 13px; font-weight: 500; color: #73889b; }
.metric-card > strong { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 18px; color: #263f55; font-size: 34px; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-card > strong small { color: #9caebc; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.metric-card > small { display: block; margin-top: 11px; color: #879bac; font-size: 11px; }
.metric-card .metric-track { height: 5px; }

/* Task lists */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { justify-content: flex-start; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; min-width: 120px; }
.filters input,.filters select { font-size: 12px; padding: 10px 12px; width: auto; max-width: 100%; }
.filters .button { font-size: 12px; }
.batch-review-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -7px 0 16px; padding: 12px 14px; border: 1px solid #d8edf9; border-radius: 12px; background: #f7f8fa; color: #5e7a8f; font-size: 12px; }
.batch-review-bar label { display: inline-flex; align-items: center; gap: 7px; }
.batch-review-bar input { width: 16px; height: 16px; accent-color: var(--sky); }
.batch-review-bar span { color: #7991a3; }
.batch-review-bar .button { margin-left: auto; min-height: 38px; }
.review-select { display: inline-flex; align-items: center; gap: 5px; grid-column: 1; min-height: 44px; color: #727986; font-size: 11px; }
.review-select input { width: 17px; height: 17px; accent-color: var(--sky); }
.day-group,.todo-section { margin-top: 24px; }
.day-group:first-child { margin-top: 0; }
.day-group>h2,.day-group>h3 { margin: 0 0 12px; font-size: 14px; color: #646c78; font-weight: 550; }
.day-group .section-head { margin-bottom: 12px; }
.day-group .section-head h2 { font-size: 14px; color: #646c78; }
.todo-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.todo-row,.todo-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 19px 22px 18px 14px; border-bottom: 1px solid #edf3f8; transition: background .16s; }
.todo-row:last-child,.todo-item:last-child { border-bottom: 0; }
.todo-row:hover,.todo-item:hover { background: #fcfeff; }
.todo-check { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; flex: none; border: 1px solid #d5e5f1; border-radius: 12px; background: #fff; color: #abc4d6; font-size: 20px; line-height: 1; }
.todo-check:hover:not(:disabled) { background: #eaf7ff; border-color: #70c4f1; color: #1398db; }
.todo-row.is-done .todo-check,.todo-item.is-done .todo-check,.todo-check[aria-checked="true"],.todo-check.is-done { color: #fff; background: #40ade5; border-color: #40ade5; }
.todo-main,.todo-body { min-width: 0; padding-top: 2px; }
.todo-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-title-button { min-height: 44px; max-width: 100%; padding: 7px 0; border: 0; background: transparent; color: #294358; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.todo-title-button:hover { color: var(--sky-dark); }
.todo-title { display: block; width: fit-content; max-width: 100%; margin: 0; border: 0; padding: 0; text-align: left; background: transparent; color: #294358; font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
button.todo-title:hover { color: var(--sky-dark); }
.todo-title h3,.todo-title strong { margin: 0; font: inherit; }
.todo-title .tag { margin-left: 9px; vertical-align: middle; }
.todo-row.is-done .todo-title,.todo-item.is-done .todo-title { color: #6c879c; }
.todo-targets { display: grid; gap: 5px; margin-top: 9px; font-size: 12px; color: #6d8598; line-height: 1.65; overflow-wrap: anywhere; }
.todo-targets p,.todo-targets div { margin: 0; }
.todo-targets strong,.todo-targets b,.todo-targets label { color: #4f819f; font-size: 11px; font-weight: 550; margin-right: 6px; }
.todo-targets .minimum,.todo-targets .mit { color: #4586a9; }
.todo-meta { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: #90a1b1; line-height: 1.6; }
.todo-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 230px; }
.todo-actions .button { min-height: 44px; font-size: 12px; padding: 9px 12px; }
.todo-actions.todo-owner-actions { flex-wrap: nowrap; max-width: none; width: max-content; }
.todo-owner-actions .button { white-space: nowrap; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #8197a8; font-size: 20px; line-height: 1; }
.icon-button:hover { color: var(--sky-dark); border-color: #c9e3f4; background: #f3f5f8; }
.todo-actions .tag { margin: 9px 0; }
.tag { display: inline-flex; align-items: center; flex: none; gap: 4px; width: fit-content; min-height: 25px; padding: 4px 8px; border: 1px solid #e1ebf3; border-radius: 6px; background: #f6f9fc; color: #8296a8; font-size: 10px; line-height: 1.45; font-weight: 500; white-space: nowrap; }
.tag.confirmed,.tag.standard { color: #087db0; background: #e8f7ff; border-color: #d0edfc; }
.tag.mit { color: #357daf; background: #edf6ff; border-color: #d7e9f9; }
.tag.pending { color: #978047; background: #fff9eb; border-color: #f4e7c4; }
.tag.more { color: #a56c57; background: #fff2ec; border-color: #f3ded3; }
.tag.not-completed { color: #c05050; background: #fff0f0; border-color: #f0caca; }
.todo-row.is-not-completed .todo-check { color: #c65c5c; border-color: #eabebe; background: #fff7f7; }
.plans { display: grid; gap: 12px; }
.plan { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.plan-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 16px; margin: 0; line-height: 1.6; }
.plan-description { color: var(--muted); font-size: 12px; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.plan .plan-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.targets>div { min-width: 0; padding: 15px 16px; border: 1px solid #e3edf6; border-radius: 10px; background: #f8fbfe; }
.targets span { color: #617c91; font-size: 11px; font-weight: 600; }
.targets p { margin: 7px 0 0; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.targets .minimum { background: #f0f9ff; border-color: #d6edf9; }
.targets .minimum span { color: var(--sky-dark); }
.targets.targets-standard-only { grid-template-columns: 1fr; }
.mit-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 2px 0; color: #5b7489; font-size: 13px; cursor: pointer; }
.mit-toggle input { width: 16px; height: 16px; accent-color: var(--sky); }
.submission-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.attachment-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.attachment-picker .hint { margin: 0; font-size: 11px; }
.attachment-picker-button { position: relative; overflow: hidden; cursor: pointer; }
.attachment-picker-button:focus-within { outline: 3px solid #61bdf0; outline-offset: 3px; }
.attachment-picker-button input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.selected-files { display: grid; gap: 7px; }
.selected-files:empty { display: none; }
.selected-file { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 10px 5px 13px; border: 1px solid #deedf7; border-radius: 9px; background: #f6fbff; font-size: 12px; }
.attachment-file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.selected-file small { color: #8198aa; font-size: 10px; flex-shrink: 0; }
.file-remove { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7891a5; font-size: 20px; }
.file-remove:hover { background: #e9f5fc; color: #087cb9; }
.selected-image { flex: none; width: 54px; height: 54px; border-radius: 7px; object-fit: cover; }
.attachment-previews { display: grid; gap: 12px; margin: 15px 0; }
.attachment-preview { margin: 0; overflow: hidden; border: 1px solid #deedf7; border-radius: 10px; background: #f6fbff; }
.attachment-preview img { display: block; width: 100%; max-height: 430px; object-fit: contain; background: #fff; }
.attachment-preview img[hidden],.selected-image[hidden] { display: none; }
.attachment-preview figcaption { display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: #557d96; font-size: 12px; }
.attachment-preview small { color: #8198aa; font-size: 10px; flex: none; }
.preview-unavailable::before { content: '图片暂无法预览'; display: block; padding: 18px 13px 0; color: #8198aa; font-size: 12px; }
.completion-details { margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.completion-details > summary { min-height: 44px; padding: 12px 15px; cursor: pointer; color: #698398; font-size: 12px; }
.completion-details > p { padding: 0 15px; font-size: 13px; }
.completion-details > .targets { margin: 0 12px 12px; }
.review-identity { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.review-identity .avatar { width: 58px; height: 58px; font-size: 23px; }
.review-identity > div { min-width: 0; }
.review-identity > div > span { display: block; font-size: 12px; color: #8398aa; }
.review-identity strong { display: block; margin-top: 4px; font-size: 19px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.review-identity small { display: block; font-size: 11px; color: #8398aa; margin-top: 5px; }
.review-result { margin-top: 20px; padding: 18px; background: #f0f9ff; border: 1px solid #d8edf9; border-radius: 12px; }
.review-result .review-identity { margin: 0 0 18px; }
.review-comment { padding: 16px; border-radius: 9px; background: #fff; }
.review-comment > span { color: #7390a5; font-size: 12px; }
.review-comment > p { font-size: 15px; color: #3c617b; line-height: 1.85; margin: 8px 0 0; }
.review-form { padding: 21px; border: 1px solid #d8edf9; border-radius: 13px; background: #f7f8fa; }
.review-form .review-identity { margin-top: 0; }
.review-form .field label { font-size: 14px; }
.review-form textarea { min-height: 160px; font-size: 15px; }
.nav-admin { display: flex; align-items: center; min-height: 46px; padding: 11px 15px; margin-top: 8px; border-top: 1px solid var(--line); color: #5e8dab; text-decoration: none; font-size: 13px; }
.nav-admin:hover { color: var(--sky-dark); background: #f7f8fa; }
.submission-upload-status { color: var(--sky-dark); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.submission-upload-status:empty { display: none; }
.submission-fields:disabled .attachment-picker-button { opacity: .5; cursor: wait; }
.mini { padding: 14px 16px; background: #f8fbfe; border: 1px solid var(--line); border-radius: 10px; }
.mini strong { font-size: 12px; font-weight: 550; }
.mini p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.notice { margin-top: 12px; padding: 12px 15px; color: #7f724e; border: 1px solid #f2ead7; background: #fffcf4; border-radius: 9px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.review-note { margin-top: 9px; padding: 9px 11px; color: #a56c57; border-left: 3px solid #efc8ba; background: #fff8f5; border-radius: 0 7px 7px 0; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.completion-options { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 17px; border: 0; }
.completion-options label { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: #5b7489; background: #fff; font-size: 12px; cursor: pointer; }
.completion-options label:has(input:checked) { color: var(--sky-dark); border-color: #a9daf5; background: #f0f9ff; }
.completion-options input { accent-color: var(--sky); }

/* Centered dialogs */
.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(35,63,84,.24); backdrop-filter: blur(3px); }
.drawer-panel { width: min(680px,100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; box-shadow: 0 20px 90px rgba(32,73,108,.17); }
.drawer-panel.review-modal,.review-modal .drawer-panel { max-width: 560px; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.drawer-head h2 { margin: 3px 0 0; font-size: 21px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.drawer-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-head p:empty { display: none; }
.close { flex: none; width: 44px; height: 44px; padding: 0; font-size: 25px; color: #8ba0b1; background: #f7fbfe; border: 0; border-radius: 50%; }
.drawer-panel .section { margin-top: 26px; }
.drawer-panel form>.primary { margin-top: 8px; }
.review-modal textarea { min-height: 125px; }
.modal-task-title { margin: 0 0 15px; font-size: 16px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.review-summary { padding: 15px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 11px; background: #f9fcff; }
.review-summary h3 { margin: 4px 0 9px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.review-summary .targets { margin: 13px 0; }
.review-person { display: block; color: var(--muted); font-size: 11px; }
.submission { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fcfdff; }
.submission-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.submission-head strong { font-size: 13px; font-weight: 600; }
.submission p { color: var(--muted); font-size: 12px; margin: 9px 0 0; line-height: 1.75; }
.submission details { margin-top: 12px; color: var(--muted); font-size: 12px; }
.submission summary { cursor: pointer; padding: 9px 0; }

/* Conversations */
.chat-layout { display: grid; grid-template-columns: 215px minmax(260px,1fr) 250px; gap: 16px; align-items: start; }
.thread-list,.chat-context { padding: 17px; min-width: 0; }
.thread-list .section-head h2,.chat-context .section-head h2 { font-size: 14px; }
.thread-list .section-head { gap: 6px; }
.thread-list .section-head .button { border-color: transparent; padding: 9px; }
.thread-item { display: block; width: 100%; min-height: 58px; padding: 12px; margin-bottom: 6px; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); }
.thread-item strong { display: block; font-size: 12px; line-height: 1.6; font-weight: 550; overflow-wrap: anywhere; }
.thread-item small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.thread-item.active { background: var(--sky-soft); border-color: #daedf9; }
.thread-item:hover { background: #f1f9ff; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 550px; overflow: hidden; }
.chat-head { padding: 20px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 600; }
.chat-head p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.messages { display: flex; flex: 1; flex-direction: column; gap: 13px; min-height: 300px; max-height: 55vh; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.message { align-self: flex-start; max-width: 91%; padding: 12px 14px; border-radius: 3px 13px 13px 13px; background: #f1f6fb; font-size: 13px; line-height: 1.75; }
.message.mine { align-self: flex-end; border-radius: 13px 3px 13px 13px; background: #e6f5ff; color: #27546f; }
.message.assistant { background: #f0f8ff; }
.message small { display: block; color: #8298aa; font-size: 10px; margin-bottom: 5px; }
.messages .empty { border: 0; padding: 70px 10px; }
.compose { display: flex; gap: 10px; align-items: end; padding: 14px; border-top: 1px solid var(--line); }
.compose textarea { flex: 1; min-width: 0; min-height: 62px; max-height: 180px; padding: 11px; resize: vertical; line-height: 1.65; font-size: 13px; border: 1px solid var(--line); border-radius: 9px; }
.compose .button { flex: none; }
.chat>.error { margin: 0; padding: 0 15px 12px; }
.chat>.error:empty { padding: 0; }
.chat-notice { margin: 0 14px 12px; }
.chat-context .targets { grid-template-columns: 1fr; }
.proposal { margin-top: 14px; padding: 14px; border: 1px solid #cfe9f9; background: #f7f8fa; border-radius: 10px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.proposal pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Settings and library */
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.setting { padding: 24px; min-width: 0; }
.setting h2 { margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.profile-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-editor { display: flex; align-items: center; gap: 20px; margin: 22px 0 26px; }
.profile-upload { flex: 1; min-width: 0; }
.profile-upload .button { position: relative; overflow: hidden; margin: 0 5px 7px 0; cursor: pointer; }
.profile-upload .button:focus-within { outline: 3px solid #61bdf0; outline-offset: 3px; }
.avatar-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-upload .hint { margin: 3px 0 0; font-size: 11px; }
.profile-account { overflow-wrap: anywhere; }
.profile-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.profile-save .hint { margin: 0; }
.profile-fields:disabled .profile-upload .button { opacity: .5; cursor: wait; }
.relationship { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.relationship:last-child { border-bottom: 0; }
.relationship>div { min-width: 0; }
.relationship strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.relationship small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; overflow-wrap: anywhere; }
.relationship .button { flex: none; }
.invite { margin: 18px 0 12px; padding: 16px; color: var(--sky-dark); background: #f0f9ff; border: 1px dashed #a7d9f5; border-radius: 10px; font-size: 16px; font-weight: 650; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; }
.share-link { margin-bottom: 12px; font-size: 12px; }
#inviteResult>.button { margin: 0 6px 6px 0; }
.resource { padding: 20px 22px; margin-bottom: 14px; }
.resource summary { cursor: pointer; min-height: 24px; font-weight: 550; font-size: 14px; line-height: 1.7; }
.resource[open] summary { margin-bottom: 18px; }
.resource-table { max-height: 65vh; overflow: auto; border-radius: 8px; }
.resource-table table { border-collapse: collapse; min-width: 100%; font-size: 12px; }
.resource-table td { min-width: 90px; max-width: 580px; padding: 12px; border: 1px solid var(--line); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.resource-table tr:nth-child(even) { background: #f7fbff; }

/* Login */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 14px; padding: 14px; background: #eceef1; }
.login-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px,4vw,52px); border-radius: 24px; color: #fff; background: radial-gradient(120% 80% at 100% 0%, rgba(53,104,232,.28), transparent 60%), #191a1e; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sky); }
.login-brand-mark .ico { width: 19px; height: 19px; }
.login-brand strong { display: grid; font-size: 15px; letter-spacing: .08em; line-height: 1.2; }
.login-brand small { color: #9a9ca5; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.login-pitch h1 { margin: 0; font-size: clamp(34px,3.6vw,48px); font-weight: 680; line-height: 1.2; letter-spacing: -.04em; }
.login-pitch p { max-width: 360px; margin: 16px 0 0; color: #b4b6bd; font-size: 15px; line-height: 1.8; }
.login-features { display: grid; gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.login-features li { display: flex; align-items: center; gap: 14px; }
.login-feature-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); color: #a9bdf5; }
.login-feature-icon .ico { width: 18px; height: 18px; }
.login-features strong { display: block; font-size: 14px; font-weight: 600; }
.login-features small { display: block; margin-top: 2px; color: #8d9099; font-size: 12px; }
.login-sample { width: min(340px,100%); padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.login-sample-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.login-sample-head small { color: #8d9099; font-size: 11px; font-weight: 500; }
.login-sample ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.login-sample li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 13px; color: #d9dbe0; }
.login-sample li>span:nth-child(2) { flex: 1; min-width: 0; }
.login-sample li em { color: #8d9099; font-size: 11px; font-style: normal; }
.login-sample li.done em { color: #8fd3a8; }
.login-sample-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #5c5f68; }
.login-sample li.done .login-sample-check { border-color: transparent; background: #2f9e62; }
.login-sample-check .ico { width: 12px; height: 12px; stroke-width: 3; }
.login-main { display: grid; place-items: center; padding: 40px 24px 64px; border-radius: 24px; background: #fff; }
.login-card { width: min(380px,100%); }
.login-card header h2 { margin: 0; color: var(--ink); font-size: 28px; font-weight: 680; letter-spacing: -.03em; line-height: 1.3; }
.login-card header p { margin: 8px 0 26px; color: var(--muted); font-size: 14px; }
.login-invite { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 12px 14px; border-radius: 11px; background: var(--sky-soft); color: var(--sky-dark); font-size: 13px; line-height: 1.6; }
.login-invite .ico { flex: none; width: 18px; height: 18px; }
.login-card .field { margin: 16px 0; }
.login-input { position: relative; display: flex; align-items: center; }
.login-input>.ico { position: absolute; left: 14px; width: 17px; height: 17px; color: #9aa1ad; pointer-events: none; transition: color .16s; }
.login-input input { min-height: 48px; padding-left: 42px; border-radius: 11px; transition: border-color .16s,box-shadow .16s; }
.login-input:focus-within>.ico { color: var(--sky); }
.login-input input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px #edf2ff; }
.login-input #authPassword { padding-right: 48px; }
.login-input.invalid input { border-color: #e0a3a3; }
.login-input.invalid input:focus { box-shadow: 0 0 0 3px #fbeaea; }
.login-reveal { position: absolute; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: #8a909b; }
.login-reveal:hover { background: #f3f5f8; color: var(--ink); }
.login-reveal .ico { width: 18px; height: 18px; }
.login-caps { color: #a8701c; font-size: 12px; }
.login-error { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 10px; background: #fdf1f1; color: #b03c3c; font-size: 13px; line-height: 1.5; }
.login-error[hidden],.login-caps[hidden] { display: none; }
.login-error .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.login-submit { min-height: 48px; margin-top: 22px; border-radius: 11px; font-size: 15px; }
.login-submit .ico { width: 18px; height: 18px; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
body:has(.login)>.site-filing { position: absolute; right: 14px; bottom: 14px; width: calc(48.8% - 21px); background: transparent; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-intro { justify-content: flex-start; gap: 22px; padding: 24px; border-radius: 20px; }
  .login-pitch h1 { font-size: 28px; }
  .login-pitch p { margin-top: 8px; font-size: 13px; }
  .login-features,.login-sample { display: none; }
  .login-main { place-items: start center; padding: 32px 20px; border-radius: 20px; }
  .login-input input { font-size: 16px; }
  body:has(.login)>.site-filing { position: static; width: auto; }
}
@media (max-width: 700px) { .login { gap: 10px; padding: 10px; } }

.toast { position: fixed; right: 26px; bottom: 26px; z-index: 100; max-width: min(420px,calc(100vw - 40px)); padding: 14px 19px; border-radius: 11px; background: #fff; border: 1px solid #cae5f5; color: #397492; box-shadow: 0 8px 30px rgba(34,98,132,.13); font-size: 12px; line-height: 1.65; opacity: 0; transform: translateY(9px); pointer-events: none; transition: opacity .18s,transform .18s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media(max-width:1200px) {
  .shell { grid-template-columns: 215px minmax(0,1fr); }
  .brand { padding-left: 4px; padding-right: 4px; gap: 9px; }
  .brand strong { font-size: 14px; }
  .main { width: calc(100% - 52px); }
  .topbar { padding: 0 26px; }
  .chat-layout { grid-template-columns: 200px minmax(250px,1fr); }
  .chat-context { grid-column: 1/-1; }
  .chat-context .targets { grid-template-columns: 1fr 1fr; }
  .metric { padding: 21px 20px; }
  .todo-actions { max-width: 165px; }
}
@media(max-width:950px) {
  .shell { grid-template-columns: 195px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 12px; }
  .metrics-grid,.metrics { gap: 10px; }
  .metric { padding: 18px 15px; }
  .metric-value { font-size: 29px; }
  .todo-row,.todo-item { grid-template-columns: 44px minmax(0,1fr); gap: 9px 12px; }
  .todo-actions { grid-column: 2; justify-content: flex-start; max-width: none; margin-top: 2px; }
  .todo-actions:empty { display: none; }
  .settings { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .thread-list { max-height: 230px; overflow-y: auto; }
  .chat-context { grid-column: auto; }
}
@media(max-width:700px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 45; width: 248px; padding: 25px 16px max(18px,env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 40px rgba(41,81,109,.13); }
  .sidebar.open { transform: translateX(0); }
  .brand { gap: 11px; }
  .brand strong { font-size: 15px; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 64px; padding: 0 14px; gap: 8px; }
  .topbar>div:first-child { gap: 8px; }
  .crumb { max-width: 200px; font-size: 11px; }
  .top-actions { gap: 0; }
  .top-actions .account-name { display: none; }
  .top-actions button { padding: 8px; font-size: 11px; }
  .main { width: calc(100% - 32px); padding-top: 26px; }
  .head { gap: 12px; margin-bottom: 22px; align-items: center; }
  .head h1 { font-size: 24px; }
  .head .button { padding: 10px 12px; font-size: 12px; }
  .section { margin-top: 26px; }
  .metrics-grid,.metrics { gap: 9px; }
  .metric { padding: 15px 12px; border-radius: 11px; }
  .metric h2,.metric h3,.metric>span,.metric>label { font-size: 11px; }
  .metric-value { margin: 12px 0 15px; font-size: 27px; gap: 3px; }
  .metric-value small,.metric-value span { font-size: 11px; }
  .metric-caption { flex-wrap: wrap; font-size: 10px; gap: 1px; }
  .todo-row,.todo-item { padding: 15px 13px 15px 10px; gap: 8px 10px; }
  .todo-title { font-size: 14px; }
  .todo-targets { font-size: 12px; margin-top: 7px; }
  .todo-meta { gap: 5px 10px; font-size: 10px; }
  .todo-actions .button { padding: 9px 10px; font-size: 11px; }
  .filters { padding: 13px; gap: 11px; }
  .filters label { flex: 1; min-width: 115px; }
  .filters input,.filters select { width: 100%; }
  .form-grid,.targets { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
  .drawer { padding: 12px; }
  .drawer-panel { padding: 22px 19px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 15px; }
  .drawer-head { gap: 12px; margin-bottom: 19px; }
  .drawer-head h2 { font-size: 19px; }
  .drawer-panel input,.drawer-panel textarea,.drawer-panel select{ font-size: 16px; }
  .targets { margin: 17px 0; }
  .targets>div { padding: 14px; }
  .plan { padding: 17px; }
  .plan-head { gap: 8px; }
  .submission-head { align-items: flex-start; }
  .submission-head strong { font-size: 12px; }
  .setting { padding: 20px; }
  .profile-editor { gap: 14px; }
  .profile-upload .button { font-size: 12px; }
  .profile-upload .hint { font-size: 10px; }
  .profile-save { gap: 10px; }
  .relationship { gap: 8px; }
  .relationship .button { padding: 9px; font-size: 11px; }
  .chat-context .targets { grid-template-columns: 1fr; }
  .messages { max-height: 52vh; padding: 15px; }
  .compose { padding: 12px; gap: 8px; }
  .compose textarea { font-size: 16px; }
  .chat { min-height: 470px; }

  .toast { right: 16px; bottom: 16px; }
}
@media(max-width:370px) {
  .main { width: calc(100% - 24px); }
  .metric { padding: 14px 9px; }
  .metric-value { font-size: 24px; }
  .metric-caption { font-size: 9px; }
  .crumb { max-width: 158px; }
}
@media(max-height:560px) {
  .sidebar { padding-top: 16px; padding-bottom: 13px; }
  .brand { padding-bottom: 20px; }
  .side-note { display: none; }
  .sidebar-profile { margin-top: 5px; min-height: 58px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.site-filing { position: relative; z-index: 2; padding: 16px 18px 20px; text-align: center; background: #f7f8fa; font-size: 12px; line-height: 1.6; }
.site-filing a { color: #6f8598; text-decoration: none; }
.site-filing a:hover { color: #2189c5; text-decoration: underline; }
body:has(.shell) .site-filing { margin-left: 236px; }
@media(max-width:950px) { body:has(.shell) .site-filing { margin-left: 195px; } }
@media(max-width:700px) { body:has(.shell) .site-filing { margin-left: 0; } }

/* Dashboard redesign */

:root{--ink:#202126;--muted:#787b85;--paper:#f3f4f6;--line:#e5e6e9;--sky:#3568e8;--sky-dark:#2454c8;--sky-soft:#edf2ff;--mint:#edf2ff;--shadow:none}
body{background:#eceef1;color:var(--ink)}.shell{grid-template-columns:218px minmax(0,1fr);padding:14px;gap:14px}.sidebar{height:calc(100dvh - 28px);top:14px;border:0;border-radius:24px;background:#191a1e;color:#fff;padding:24px 14px}.brand{padding:4px 12px 24px}.brand strong{font-size:22px;letter-spacing:.08em;color:#fff}.brand small{color:#a5a8b2;font-weight:400}.rail-toggle{align-self:flex-end;margin-bottom:20px;background:#292b31;color:#fff;border:0}.nav button{color:#aeb1bd;white-space:nowrap;overflow:hidden}.nav button:hover{background:#292b31;color:#fff}.nav button.active{background:#edf2ff;color:#2859cd}.nav-admin{color:#b3b8c8}.sidebar-profile{color:#fff;border-color:#36383e}.sidebar .profile-label small{color:#a6a9b4}.content{background:#fafafa;border-radius:24px;overflow:clip}.topbar{background:#fafafa;border-color:#e9eaed;height:64px;padding:0 30px}.main{width:calc(100% - 60px);max-width:1600px;padding:28px 0 42px}.head h1{font-size:28px;letter-spacing:-.04em}.panel,.todo-list,.metric,.filters,.setting{border-color:var(--line);border-radius:18px;box-shadow:none}.button,.primary{border-radius:12px;font-weight:600}.button:hover:not(:disabled){background:#edf0f5;border-color:#cfd3dc}.button.primary:hover:not(:disabled){background:var(--sky-dark)}.primary{background:var(--sky)}.field label,.filters label{color:#555963}.field input,.field textarea,.field select,.filters input,.filters select{border-color:#dfe1e6;background:#fff;color:#202126}.todo-row{border-left:5px solid var(--task-color,#dce8ff)}.todo-meta,.todo-targets,.todo-targets b{color:#686d77}.tag{background:#f0f1f4;color:#5c626e}
.schedule-head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:4px 0 26px}.schedule-head h1{font-size:40px;letter-spacing:-.05em;margin:8px 0}.schedule-head h1 span{font-weight:400;color:#999ca5}.schedule-head p{font-size:12px;color:var(--muted);margin:0}.eyebrow{font-size:10px;letter-spacing:.15em}.view-switch{display:flex;padding:5px;background:#202126;border-radius:30px;gap:4px}.view-switch button{border:0;border-radius:25px;padding:10px 24px;background:transparent;color:#c5c7ce;font-weight:600}.view-switch button.active{background:#fff;color:#202126}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 24px}.board-toolbar>div{display:flex;gap:6px}.board-date{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.board-date input{border:1px solid var(--line);padding:10px;border-radius:10px;background:#fff;color:var(--ink)}.board-scroll{overflow-x:auto;padding-bottom:18px;scrollbar-width:thin}.date-board{display:grid;grid-template-columns:repeat(7,minmax(210px,1fr));gap:14px;min-height:460px}.date-board.single-day{grid-template-columns:minmax(280px,1fr)}.single-day .board-column-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-content:start;gap:14px}
.board-column>header{display:flex;align-items:baseline;gap:8px;padding:10px 4px 22px;border-top:2px solid #e5e7eb;color:#a0a3ab}.board-column>header strong{font-size:36px;font-weight:500;letter-spacing:-.05em}.board-column>header span{font-size:12px}.board-column>header em{font-size:10px;font-style:normal;background:#e7eeff;color:#3568e8;padding:4px 8px;border-radius:8px;margin-left:auto}.board-column.is-today>header{color:#202126;border-color:#3568e8}.board-card{background:color-mix(in srgb,var(--task-color) 25%,white);border:1px solid color-mix(in srgb,var(--task-color) 80%,#d9dce4);border-radius:20px;padding:18px;margin-bottom:14px;min-width:0;color:#202126;transition:transform .16s,box-shadow .16s}.board-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #2021260a}.board-task-title{display:block;background:none;border:0;padding:0;text-align:left;font-size:16px;line-height:1.5;font-weight:650;color:#202126;overflow-wrap:anywhere}.board-card-top{margin-bottom:13px}.board-card .tag{background:#ffffffb8;color:#424650}.board-card p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.board-card>small{font-size:11px;line-height:1.7;display:block;overflow-wrap:anywhere}.board-card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:24px;border-top:1px solid #20212614;padding-top:12px}.board-card-bottom>span{font-size:10px}.board-card-bottom .button{font-size:11px;padding:6px 8px;min-height:34px;background:#ffffffb0;border:0}.board-empty{padding:32px 12px;text-align:center;border:1px dashed #dfe1e6;border-radius:18px;font-size:12px;color:#999da7;line-height:2}.board-empty small{font-size:10px}.board-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#26272d;color:#d4d6dd;padding:14px 18px;border-radius:13px;font-size:11px}.undated-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}#planColor{width:84px;height:44px;padding:5px;cursor:pointer}
.rail-collapsed{grid-template-columns:76px minmax(0,1fr)}.rail-collapsed .brand,.rail-collapsed .profile-label,.rail-collapsed .profile-arrow,.rail-collapsed .nav-admin{display:none}.rail-collapsed .sidebar{padding:20px 10px}.rail-collapsed .rail-toggle{align-self:center}.rail-collapsed .nav button{font-size:0;justify-content:center;padding:12px 0;gap:0}.rail-collapsed .sidebar-profile{justify-content:center;padding:12px 0}
@media(max-width:1100px){.main{width:calc(100% - 36px)}.topbar{padding:0 18px}.schedule-head{gap:16px}.schedule-head h1{font-size:34px}}
@media(max-width:700px){.shell,.shell.rail-collapsed{display:block;padding:8px}.content{border-radius:18px;min-height:calc(100dvh - 16px)}.sidebar,.rail-collapsed .sidebar{top:8px;height:calc(100dvh - 16px);padding:24px 14px;width:218px}.rail-collapsed .brand,.rail-collapsed .profile-label,.rail-collapsed .profile-arrow,.rail-collapsed .nav-admin{display:block}.rail-collapsed .nav button{font-size:13px;justify-content:flex-start;gap:11px;padding:11px 15px}.rail-collapsed .sidebar-profile{justify-content:flex-start;gap:10px}.main{width:calc(100% - 28px);padding-top:20px}.schedule-head{gap:16px}.schedule-head>div:first-child{width:100%}.schedule-head h1{font-size:34px}.view-switch button{padding:9px 16px}.board-date{font-size:0}.board-date input{font-size:12px;max-width:145px}.date-board{grid-template-columns:repeat(7,235px)}.topbar{padding:0 12px}.board-footer{line-height:1.7}.single-day .board-column-body{display:block}}
@media(prefers-reduced-motion:reduce){.board-card{transition:none}}

.message,.thread-item.active,.chat-notice,.notice{border-color:#e1e4eb}.thread-item.active{background:#edf2ff}.setting h2,.chat-head h2{color:#202126}

/* Responsive and color refinement */
html,body{min-width:320px}.shell{gap:10px;padding:10px;grid-template-columns:190px minmax(0,1fr)}.shell.rail-collapsed{grid-template-columns:68px minmax(0,1fr)}
.sidebar{top:10px;height:calc(100dvh - 20px);border-radius:18px;padding:20px 12px}.brand{padding-bottom:16px}.rail-toggle{margin-bottom:12px}
.content{border-radius:18px;min-width:0}.main{width:auto;max-width:none;margin:0;padding:24px clamp(14px,2vw,30px) 32px}.topbar{padding:0 clamp(14px,2vw,30px);height:58px}
.schedule-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;margin:0 0 22px}.schedule-head h1{font-size:clamp(26px,2.6vw,38px)}.schedule-head p{color:#626a77}.schedule-head .eyebrow{color:#69717d}
.view-switch button{padding:9px 16px}.board-toolbar{margin:0 0 18px}
.date-board{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;min-height:clamp(320px,55vh,680px)}.board-column{min-width:0}.board-column>header{flex-wrap:wrap;gap:5px;padding:10px 0 16px}.board-column>header strong{font-size:clamp(24px,2.4vw,34px)}.board-column>header em{padding:3px 5px;margin-left:0}
.board-card{padding:clamp(10px,1.1vw,16px);border-radius:14px;background:var(--task-color);color:var(--task-ink,#111318);border:1px solid #0000000d;margin-bottom:10px;box-shadow:none}.board-task-title{font-size:clamp(13px,1vw,16px);color:inherit}.board-card p,.board-card>small,.board-card-bottom>span{color:inherit;opacity:.85}.board-card p{margin:10px 0;font-size:12px}.board-card .tag{background:#ffffffd9;color:#303642;font-size:10px;max-width:100%;white-space:normal}.board-card-bottom{gap:6px;margin-top:18px;border-top-color:currentColor}.board-card-bottom .button{background:#fffffff0;color:#202126;min-height:36px}.board-empty{padding:24px 6px;color:#717987;font-size:11px}.board-empty small{display:none}
.date-board.single-day{grid-template-columns:minmax(0,1fr)}.single-day .board-column-body{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.board-scroll{overscroll-behavior-x:contain}.board-footer{background:#eff1f4;color:#555d6b;border:1px solid #e4e7eb}
body:has(.shell) .site-filing,body:has(.shell.rail-collapsed) .site-filing{margin-left:0;background:#eceef1}.site-filing a{color:#69717d}
.todo-list,.panel,.filters,.setting{background:#fff;border-color:#e3e6ec}.filters{gap:10px}.filters label{flex:1;min-width:130px}.filters input,.filters select{width:100%}.chat-layout>*{min-width:0}.chat-head p,.thread-item small,.targets span{color:#66707d}
.drawer-panel{max-width:100vw}.form-grid>*{min-width:0}.tag.confirmed{background:#e4f2eb;color:#256247}.tag.pending{background:#fff2d8;color:#77561e}.tag.more,.tag.not-completed{background:#fce9e9;color:#9b3434}
.boot-preview{display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px;padding:10px;min-height:100dvh}.boot-preview>aside{background:#191a1e;border-radius:18px}.boot-preview>main{background:#fafafa;border-radius:18px;padding:90px 24px}
.workspace-placeholder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:280px}.workspace-placeholder>div{background:#f0f1f4;border-radius:14px}.workspace-placeholder>div:nth-child(2){height:75%}.workspace-placeholder>div:nth-child(3){height:90%}
@media(min-width:701px) and (max-width:1100px){.date-board{grid-template-columns:repeat(7,minmax(156px,1fr))}.shell{grid-template-columns:164px minmax(0,1fr)}.brand strong{font-size:19px}.sidebar{padding-left:9px;padding-right:9px}.nav button{padding:10px}.schedule-head{grid-template-columns:1fr auto}.schedule-head>div:first-child{grid-column:1/-1}.schedule-head>.button{justify-self:end}}
@media(max-width:700px){.shell,.shell.rail-collapsed{padding:0;display:block}.content{border-radius:0;min-height:100dvh}.sidebar,.rail-collapsed .sidebar{top:8px;left:8px;height:calc(100dvh - 16px);border-radius:18px;width:min(260px,85vw)}.main{padding:18px 14px 28px}.topbar{height:56px;padding:0 14px}.schedule-head{grid-template-columns:1fr auto;gap:14px}.schedule-head>div:first-child{grid-column:1/-1}.schedule-head>.button{justify-self:end;padding:10px 12px}.schedule-head h1{font-size:30px}.schedule-head p{font-size:11px}.view-switch button{padding:9px 15px}.board-toolbar{gap:6px;flex-wrap:wrap}.board-toolbar .button{padding:8px 12px;min-height:40px}.board-date input{min-height:40px;padding:7px;max-width:135px}.date-board{grid-template-columns:repeat(7,minmax(240px,78vw));gap:12px;min-height:300px}.date-board.single-day{grid-template-columns:minmax(0,1fr)}.board-scroll{scroll-snap-type:x proximity}.board-column{scroll-snap-align:start}.board-column>header{padding-bottom:14px}.board-card{padding:18px;border-radius:16px}.board-task-title{font-size:16px}.board-card p{font-size:13px}.single-day .board-column-body{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.board-empty{padding:36px 12px}.filters label{min-width:calc(50% - 10px)}.filters .button{flex:1}.todo-actions{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.board-footer{font-size:10px}.boot-preview{display:block;padding:0}.boot-preview>aside{display:none}.boot-preview>main{min-height:100dvh;border-radius:0;padding:90px 14px}.workspace-placeholder{grid-template-columns:1fr}.workspace-placeholder>div:not(:first-child){display:none}}
