/* Purpose-specific page rhythm. Shared shell and composer live in their own sheets. */
#dashBody .kpis { gap:16px; margin-bottom:22px; }
#dashBody .kpi .kpi-body { padding-block:16px; }
#dashBody .kpi-value { font-size:32px; letter-spacing:-.045em; }
#dashBody .tasklist .row { gap:10px; min-height:54px; }
#dashBody .tasklist .grow { white-space:normal; line-height:1.5; }
#dashBody .tasklist .small { color:var(--text-3); }
#dashBody .agenda li { padding-block:14px; }
#dashBody .grid { gap:20px; }
.proj-grid { gap:20px; }
.proj-card { padding:22px; transition:border-color .15s, background .15s; }
.proj-card:hover { border-color:var(--text-4); }
.proj-card .proj-head { gap:14px; align-items:flex-start; }
.proj-card .proj-logo { border-radius:14px; flex-shrink:0; }
.proj-card .proj-name { line-height:1.45; font-size:16px; overflow-wrap:anywhere; }
.proj-card .proj-client { margin-top:5px; }
.proj-card .proj-foot { padding-top:16px; gap:10px; flex-wrap:wrap; }
.task-toolbar { gap:12px; margin-bottom:20px; }
.task-toolbar .search { flex:1 1 200px; max-width:340px; }
.task-count { font-variant-numeric:tabular-nums; }
#tb .kanban { gap:14px; padding-bottom:14px; scroll-snap-type:x proximity; }
#tb .kcol { min-width:245px; border-color:transparent; border-radius:16px; padding:12px; scroll-snap-align:start; }
#tb .kcol-head { padding:4px 4px 12px; }
#tb .kcard { padding:15px; border-radius:12px; box-shadow:0 1px 2px #00000008; }
#tb .kcard-title { font-size:14px; line-height:1.55; margin-block:7px 14px; }
#tb .kcard-top { gap:6px; font-size:11px; }
#tb .kcard-foot { padding-top:3px; }
#tb .kadd { min-height:42px; border-radius:10px; }
.kcol-empty { padding:28px 8px; text-align:center; font-size:12px; color:var(--text-4); }
.board-scroll-hint { display:none; font-size:12px; color:var(--text-3); margin-bottom:12px; line-height:1.5; }
#tdBody > h2 { font-size:24px; line-height:1.45; letter-spacing:-.03em; }
#tdBody .dl { padding:16px; background:var(--bg-sunken); border-radius:14px; row-gap:14px; }
#tdBody > .prose { padding:18px!important; }
.notes-layout { grid-template-columns:260px minmax(0,1fr); gap:0; min-height:600px; border-radius:20px; }
.notes-list { padding:18px 12px; background:var(--bg-sunken); }
.notes-list-heading { display:flex; align-items:center; justify-content:space-between; padding:0 8px 16px; font-size:13px; }
.notes-list .row > .search { margin-bottom:0; }
.notes-list li { margin-top:4px; padding:14px 12px; }
.notes-list li b { font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.notes-list li span { margin-top:4px; line-height:1.5; }
.notes-list li em { display:block; margin-top:7px; line-height:1.5; font-family:var(--font); }
.notes-list li.active { background:var(--bg); box-shadow:0 1px 3px #00000008; }
.notes-editor { padding:26px 30px; }
.notes-head { flex-direction:column; align-items:stretch; gap:16px; margin-bottom:20px; }
.notes-head .note-title { width:100%; font-size:25px; font-weight:600; letter-spacing:-.03em; line-height:1.45; padding:4px 0; }
.notes-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.notes-controls > .select { flex:1; width:auto; min-width:100px; max-width:260px; margin-left:auto; font-size:12px; }
.notes-editor .ne-toolbar { border-radius:12px; padding:6px; background:var(--bg-sunken); gap:2px; }
.notes-editor .ne-body, .notes-editor .ne-raw { padding:24px 4px; min-height:320px; font-size:15px; line-height:1.85; }
.notes-editor .notes-foot { border-top:1px solid var(--line); padding-block:14px; gap:10px; flex-wrap:wrap; }
.notes-foot #nStatus { flex:1 1 180px; line-height:1.5; }
.notes-foot #nMeta { flex-basis:100%; color:var(--text-4); }
.fin-summary { gap:14px; margin-bottom:22px; }
.fin-tile { border:1px solid var(--line); border-radius:16px; background:var(--bg); padding:20px; }
.fin-tile > span { font-size:12px; margin-bottom:12px; }
.fin-tile > b { display:block; font-size:24px; margin-bottom:8px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.fin-tile .small { line-height:1.6; }
.share-total { margin-top:12px; padding:12px 14px; background:var(--bg-sunken); border-radius:10px; color:var(--green); font-size:13px; }
.share-total.invalid { color:var(--orange); }
.share-row { padding:10px 0; border-bottom:1px solid var(--line); }
.chart-legend { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--text-3); }
.chart-legend i { width:7px; height:7px; border-radius:50%; background:var(--green); }
.chart-legend .expense { background:var(--red); margin-left:8px; }
.calendar-main { padding:22px; }
.cal-head { gap:8px; padding-bottom:18px; margin-bottom:0; }
.cal-head b { font-size:19px; font-weight:600; }
.cal-cell { border-color:var(--line); min-height:116px; padding:8px 5px; }
.cal-day { display:inline-flex; align-items:center; justify-content:center; min-width:26px; min-height:26px; margin-bottom:6px; }
.cal-cell.today .cal-day { background:var(--accent); color:var(--on-accent,#fff); border-radius:50%; }
.cal-cell.sel { box-shadow:inset 0 0 0 2px var(--accent); }
.cal-more { font-size:10px; color:var(--text-2); display:block; padding:4px; }
.calendar-legend > summary { cursor:pointer; padding-block:2px; }
.calendar-legend[open] > summary { margin-bottom:16px; }
.cal-layout #agenda li { padding-block:16px; }
.cal-layout #agenda b { line-height:1.55; overflow-wrap:anywhere; }
.cal-week-scroll { border-radius:12px; border:1px solid var(--line); }
.settings-layout { grid-template-columns:190px minmax(0,1fr); gap:28px; }
.settings-nav { gap:5px; background:transparent; border:0; padding:0; }
.settings-nav button { padding:12px 16px; border-radius:10px; text-align:left; line-height:1.45; }
.settings-body > .card { padding:24px; }
.settings-body .form { max-width:760px; }
.settings-body .form > label { gap:8px; }
.settings-body .automation-card { box-shadow:none; border-radius:12px; padding:18px; background:var(--bg-sunken); }
.settings-body details > summary { min-height:40px; padding-block:10px; cursor:pointer; }
.settings-body details pre { max-height:360px; overflow:auto; padding:16px; border-radius:10px; background:var(--bg); }
.changes-layout .commit-list li { padding:14px 10px; gap:12px; border-radius:10px; }
.changes-layout .commit-list b { font-size:13px; line-height:1.55; margin-bottom:5px; }
.changes-layout .file-tree li { padding-block:12px; overflow-wrap:anywhere; }
#dlog { padding:22px; border-radius:16px; line-height:1.7; }
#af.feed > li { padding-block:17px; }
@media(max-width:1100px) {
  .board-scroll-hint { display:block; }
  .settings-layout { grid-template-columns:1fr; gap:20px; }
  .settings-nav { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
  .settings-nav button { flex:none; white-space:nowrap; }
  .notes-layout { grid-template-columns:220px minmax(0,1fr); }
  .notes-editor { padding:22px; }
}
@media(max-width:700px) {
  #dashBody .grid { gap:14px; }
  #dashBody .tasklist .row { flex-wrap:wrap; padding-block:12px!important; }
  #dashBody .tasklist .grow { flex-basis:calc(100% - 30px); }
  .proj-card { padding:18px; }
  .task-toolbar .search { order:4; flex-basis:100%; max-width:none; }
  .task-toolbar .task-count { order:5; width:100%; }
  #tb .kcol { min-width:260px; }
  .notes-layout { display:flex; flex-direction:column; }
  .notes-list { max-height:240px; border-right:0!important; border-bottom:1px solid var(--line); overflow:auto; }
  .notes-list-heading { padding-bottom:10px; }
  .notes-list li { padding:10px; }
  .notes-list li em { margin-top:3px; }
  .notes-editor { padding:20px 16px; }
  .notes-head .note-title { font-size:22px; }
  .notes-controls { gap:6px; }
  .notes-controls > .select { flex-basis:100%; max-width:none; order:2; margin:4px 0 0; }
  .notes-controls > .segmented { margin-right:auto!important; }
  .notes-editor .ne-body, .notes-editor .ne-raw { font-size:16px; padding-top:20px; }
  .fin-summary { gap:10px; }
  .fin-tile { padding:16px 12px; border-radius:12px; }
  .fin-tile > b { font-size:19px; }
  .fin-tile > span { font-size:11px; line-height:1.6; min-height:18px; }
  .calendar-main { padding:12px; }
  .cal-head { padding-bottom:14px; gap:4px; }
  .cal-head b { font-size:16px; }
  .cal-cell { min-height:85px; padding:5px 2px; }
  .cal-day { min-width:24px; min-height:24px; font-size:12px; margin-bottom:3px; }
  .cal-ev { font-size:10px; line-height:1.6; }
  .cal-head .segmented { margin-top:10px; }
  .cal-more { padding:1px; font-size:9px; }
  .settings-body > .card { padding:18px; }
  .settings-nav button { padding:10px 12px; }
  #tdBody > h2 { font-size:21px; }
  #tdBody .dl { padding:14px; }
}
@media(max-width:360px) {
  .fin-summary { grid-template-columns:1fr; }
  .fin-tile > b { font-size:23px; }
  .cal-head b { min-width:90px; }
  .task-toolbar #newTask { padding-inline:12px; }
}
.notes-head { flex-wrap:nowrap; }
.notes-head .note-title { flex:none; max-width:100%; }
.notes-controls { width:100%; max-width:100%; min-width:0; }
.notes-controls .segmented { width:auto; max-width:100%; }
.notes-controls .select { min-width:0; }
.notes-list li em { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.notes-editor > .empty-state { border:0; box-shadow:none; background:transparent; }
.proj-card .proj-stats { background:transparent; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; padding:14px 0; }
.notes-list-toggle { display:none; }
@media(max-width:700px) {
  .notes-list-toggle { display:inline-flex; }
  .notes-list-heading { padding-bottom:0; }
  .notes-list-tools { margin-top:12px; }
  .notes-has-selection:not(.notes-list-open) .notes-list-tools,
  .notes-has-selection:not(.notes-list-open) #nl,
  .notes-list-closed .notes-list-tools,
  .notes-list-closed #nl { display:none; }
  .notes-has-selection:not(.notes-list-open) .notes-list { padding-block:10px; }
  .notes-editor .ne-toolbar { flex-wrap:nowrap; overflow-x:auto; padding-block:8px; }
  .notes-editor .ne-toolbar > * { flex-shrink:0; }
}
.settings-body { padding:0; }
.settings-body .color-swatches { gap:3px; }
.settings-body .color-swatches button { position:relative; width:40px; height:40px; background:transparent; border-color:transparent; }
.settings-body .color-swatches button::before { content:""; display:block; position:absolute; inset:9px; border-radius:6px; background:var(--c); }
.settings-body .color-swatches button.on::before { box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--text); }
@media(max-width:700px) {
  #af.feed > li, #dashFeed.feed > li { display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:10px; row-gap:6px; }
  #af.feed .ftime, #dashFeed.feed .ftime { grid-column:2; }
  #af.feed .ftext, #dashFeed.feed .ftext { line-height:1.7; overflow-wrap:anywhere; }
}
.project-overview-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.project-overview-kpis .kpi-value { flex-wrap:wrap; }
.project-overview-kpis .kpi-value small { line-height:1.5; }
.proj-card .proj-head { display:grid; grid-template-columns:44px minmax(0,1fr); }
.proj-card .proj-head > .pill { grid-column:2; justify-self:start; margin-top:-6px; }
.proj-card .proj-name { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media(max-width:700px) {
  #dashBody .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #dashBody .kpi { padding:14px 12px; }
  #dashBody .kpi .card-head { min-height:24px; }
  #dashBody .kpi .card-title { font-size:12px; gap:6px; }
  #dashBody .kpi .ico { display:none; }
  #dashBody .kpi .kpi-body { padding-block:10px; }
  #dashBody .kpi-value { font-size:26px; flex-wrap:wrap; gap:4px; }
  #dashBody .kpi-foot { flex-wrap:wrap; gap:4px; line-height:1.5; }
  .project-overview-kpis .kpi { padding:14px 12px; }
  .project-overview-kpis .kpi-value { font-size:24px; }
  .project-overview-kpis .kpi-foot { flex-wrap:wrap; line-height:1.6; }
}
@media(max-width:360px) {
  .project-overview-kpis { grid-template-columns:1fr; }
}
.notes-list-tools { min-width:0; }
.notes-list-tools .search { min-width:0; width:0; flex:1 1 0!important; }
.notes-list-tools .search input { min-width:0; width:100%; }
.notes-list-tools #newNote { flex:0 0 44px; }
.form-row.three.currency-krw { grid-template-columns:1fr 2fr; }
@media(max-width:700px) { .form-row.three.currency-krw { grid-template-columns:1fr; } }
@media(min-width:701px) { .notes-list { max-height:none; overflow:visible; } }
.infra-connection-note { border-left:3px solid var(--orange); }
.infra-connection-note > b { font-size:14px; }
.infra-connection-note > p { line-height:1.7; margin-block:8px; }
.infra-connection-note summary { padding-block:10px; cursor:pointer; }
.infra-connection-note pre { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:8px; }
#tdBody > .task-detail-meta { gap:8px; flex-wrap:nowrap; }
.task-detail-meta > .co { flex:1; min-width:0; font-size:12px; color:var(--text-3); }
.task-detail-meta > .co a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-detail-meta > .btn { flex:none; }
#tdBody > .task-detail-title { margin:2px 0 10px; font-size:27px; line-height:1.4; letter-spacing:-.035em; overflow-wrap:anywhere; }
.task-detail-state { margin-bottom:8px; }
.task-detail-state > .pill { margin-right:6px; }
@media(max-width:700px) { #tdBody > .task-detail-title { font-size:23px; } }
.task-assignee { min-width:0; gap:8px; }
.task-assignee > .select { flex:1; min-width:0; max-width:280px; width:100%; }
.task-assignee > .avatar, .task-assignee > .avatar-sm { flex:none; }
