.account{position:relative}.account-toggle{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:inherit;padding:6px;text-align:left;cursor:pointer;font:inherit}.account-toggle small{display:block}.account-toggle:focus-visible{outline:2px solid #187cff;outline-offset:3px;border-radius:8px}.account-options{position:absolute;top:calc(100% + 10px);right:0;width:260px;max-width:calc(100vw - 24px);padding:8px;background:#fff;border:1px solid #dbe5f1;border-radius:14px;box-shadow:0 12px 32px #172a4629;z-index:1000}.account-options[hidden]{display:none}.account-options button{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border:0;border-radius:8px;background:transparent;text-align:left;color:#142744;font:inherit;cursor:pointer}.account-options button:hover,.account-options button:focus-visible{background:#edf5ff;outline:2px solid #d6e8ff}.account-options button:first-child{color:#be2340}.account-options svg{width:18px;height:18px}
.modal-head .notice-add{font-size:13px;font-weight:600;line-height:1.4;padding:12px 18px;min-height:44px;flex:none}
.attention-v13-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #e6edf6}.attention-v13-row>div{min-width:0;flex:1}.attention-v13-row small{display:block;color:#7185a6;margin:5px 0}.attention-v13-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.as-alerts .attention-v13-actions button{width:auto;display:inline-flex;border:1px solid #dbe5f1;padding:8px 12px;font-size:12px}
.notice-v13-actions{display:flex;gap:6px;flex-shrink:0}.notice-v13-actions button{padding:10px;min-width:40px;min-height:40px}.notice-v13-actions svg{width:17px;height:17px}

.sales-v13-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.sales-v13-heading h1{margin:0}.sales-v13-heading button{font-size:13px;padding:10px 14px}.sales-notes-filters[hidden]{display:none}.sale-notebook-page-number{text-align:center;color:#75869b;font-size:12px;margin:0 0 20px;line-height:1.5}
.v9-card-tools .completed-v13-check{color:#08773e;background:#e3f6eb;font-size:20px;font-weight:700}.v9-card-tools .completed-v13-check:hover{background:#c4ebd4}

.worker-status .presence.v13-pause-label{color:#805000;background:#fff0bc;font-size:13px;font-weight:600;line-height:1.5;padding:3px 8px;border-radius:6px;display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.v13-pause-clock{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px;font-weight:700;color:#684000}

.worker-head .v12-low-load{color:#e5484d;flex:0 0 30px;width:30px;height:40px;margin-right:0;justify-content:center;align-self:flex-start}.worker-head .v12-low-load svg{width:28px;height:28px;filter:drop-shadow(0 2px 2px #e5484d20)}

#task-form .task-total-time{font-size:13px}#task-form .task-total-time b{font-size:inherit}

.project-overview .pb-card-actions.v9-card-tools{display:flex;align-items:center;gap:3px;flex-shrink:0}.project-overview .pb-card-actions .v9-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:#476484;cursor:pointer;flex-shrink:0}.project-overview .pb-card-actions .v9-icon svg{width:18px;height:18px}.project-overview .pb-card-actions .pb-delete{color:#ec4663}.project-overview .pb-card-actions .v9-expand{background:#eef3f8;color:#355b83;font-size:24px;line-height:1}.project-overview .pb-card-actions .v9-icon:hover{background:#e5eef8}.project-overview .pb-task-counts{display:inline-flex;justify-content:center;align-items:center;min-width:34px;min-height:28px;padding:3px 7px;border-radius:7px;background:#eef3f8;color:#355b83;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}

.project-overview .pb-card:has(.pb-task-list:not([hidden])){border-color:#abc4df;box-shadow:0 3px 10px #24476b12;margin-bottom:14px}
.project-overview .pb-task-list{margin:3px 7px 8px;padding:10px;border:1px solid #dfe6ed;border-radius:10px;background:#f3f5f7}
.project-overview .pb-task-list>header{padding:0 2px 9px;background:transparent;color:#42566c;font-size:12px}
.project-overview .pb-task-rows{padding:0;display:grid;gap:8px}
.project-overview .pb-task-card{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;padding:12px;text-align:left;background:#fff;border:1px solid #dce3ea;border-radius:9px;box-shadow:0 2px 0 #22364c0c;cursor:pointer;color:#213c57;font-family:inherit}
.project-overview .pb-task-card:hover{border-color:#8aafd3;background:#fbfdff}.project-overview .pb-task-card:focus-visible{outline:2px solid #2377f4;outline-offset:2px}.project-overview .pb-task-card:disabled{cursor:default}
.project-overview .pb-task-card-title{font-size:13px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.project-overview .pb-task-card-meta{display:flex;align-items:center;gap:7px;width:100%;min-width:0;font-size:11px;color:#667b91;flex-wrap:wrap}.project-overview .pb-task-card-meta time{display:inline-flex;align-items:center;gap:5px;margin-right:auto;white-space:nowrap}.project-overview .pb-task-card-meta time svg{width:14px;height:14px}.project-overview .pb-task-card-status{font-size:10px;padding:3px 6px;border-radius:5px;background:#edf5fc;color:#3e6992}.project-overview .pb-task-card .pb-assignee{background:#e9edf2;color:#53667b}
.project-overview .pb-task-list footer{margin-top:10px;padding:9px 2px 0;border-top:1px solid #dce3ea;background:transparent;color:#61778d;font-size:11px}
#modal.project-detail-v13{width:min(1320px,96vw);max-width:1320px}.pd13-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.pd13-main{min-width:0}.pd13-sidebar{padding:20px;background:#f8fafc;border:1px solid #e1e7ee;border-radius:12px;min-width:0}.pd13-sidebar h3{margin:0 0 18px;font-size:15px}.pd13-basics{display:grid;gap:14px}.pd13-basics label{margin:0;font-size:12px}.pd13-basics input,.pd13-basics select{margin-top:6px;background:#fff}.pd13-value{display:grid;gap:6px}.pd13-value small{color:#71829a;font-size:12px}.pd13-value strong{font-size:13px;overflow-wrap:anywhere}.pd13-sidebar .project-details{margin-top:20px;border-top:1px solid #dfe6ee;padding-top:14px}.pd13-sidebar .project-details summary{font-size:13px}.pd13-sidebar .form-row{display:flex;flex-direction:column;gap:12px}.pd13-sidebar .form-row:empty{display:none}.pd13-sidebar .project-save{margin-top:16px;padding-top:16px}.pd13-sidebar .project-save button{width:100%;font-size:13px;padding:12px}.pd13-activity{margin-top:28px;padding-top:22px;border-top:1px solid #dfe6ee}.pd13-activity h2{font-size:18px;margin:0 0 14px}.pd13-activity .project-tabs{margin-bottom:18px;gap:7px;flex-wrap:wrap}.pd13-activity .project-tabs button{font-size:12px}.pd13-main #project-tasks{padding:4px 0}.pd13-main .project-task-heading{margin-top:0}.pd13-main #project-tasks h3{font-size:15px}.pd13-sidebar .v12-url-row{flex-wrap:wrap}.pd13-sidebar input,.pd13-sidebar select{min-width:0;width:100%;box-sizing:border-box}@media(max-width:850px){.pd13-layout{grid-template-columns:1fr}.pd13-sidebar{grid-row:1}.pd13-basics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.pd13-basics{grid-template-columns:1fr}}
.pd13-table-wrap{overflow-x:auto;border:1px solid #dfe5eb;border-radius:8px}.pd13-task-table{width:100%;border-collapse:collapse;min-width:640px;font-size:12px}.pd13-task-table th{background:#f6f7f9;text-align:left;font-size:11px;color:#596b7e;padding:10px}.pd13-task-table td{padding:10px;border-top:1px solid #e3e8ee;vertical-align:middle}.pd13-task-table td:first-child{width:44%}.pd13-task-name{display:flex;align-items:center;gap:10px}.pd13-task-name time{font-size:11px;color:#68819d;white-space:nowrap}.pd13-task-name button{font-size:13px;line-height:1.4;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.pd13-task-table .task-status-select{width:125px;font-size:11px;padding:6px}.pd13-row-actions{display:flex;gap:3px}.pd13-row-actions .danger{color:#e44560}

.pd13-estimate{display:inline-flex;align-items:center;gap:5px;color:#526d8a;font-size:11px;margin-top:6px;white-space:nowrap}.pd13-estimate svg{width:13px;height:13px}
.pd13-task-table [data-pd13-row]{cursor:grab}.pd13-task-table .pd13-dragging{opacity:.45;background:#eaf3ff;cursor:grabbing}.pd13-task-table .pd13-before td{box-shadow:inset 0 3px #2377f4}.pd13-task-table .pd13-after td{box-shadow:inset 0 -3px #2377f4}.pd13-grip{color:#97a8ba;font-size:18px;flex-shrink:0}.pd13-task-table select,.pd13-task-table button{cursor:pointer}
.task-project-link-v13{margin:0 0 12px;color:#526f90;font-size:13px}.task-project-link-v13 button{display:inline-flex;align-items:center;gap:7px;max-width:100%;text-align:left;font-size:13px;font-weight:600;color:#416a98}.task-project-link-v13 span{overflow-wrap:anywhere}.task-project-link-v13 svg{width:16px;height:16px;flex-shrink:0}.task-project-link-v13 button:hover{text-decoration:underline}.task-project-link-v13 button:focus-visible{outline:2px solid #2377f4;outline-offset:3px;border-radius:3px}

/* V13: project overview toolbar and persistent column choices. */
.project-overview{font-family:inherit;color:#183153}
.project-overview .project-view-controls{flex-wrap:nowrap;gap:18px;margin-bottom:24px}
.project-overview .pb-new{order:0;margin:0;min-height:50px;padding:14px 22px;flex-shrink:0}
.project-overview .project-mode{flex:1;min-width:0;width:auto;gap:10px}
.project-overview .project-mode-tile{min-height:74px;padding:12px 14px 24px;gap:8px;border-radius:9px}
.project-overview .project-mode-symbol{flex-basis:33px;width:33px;height:33px}
.project-overview .project-mode-symbol svg{width:20px;height:20px}
.project-overview .project-mode-copy{gap:4px}
.project-overview .project-mode-copy>span{font-size:11px;font-weight:400;color:#7389a9}
.project-overview .project-mode-copy strong{font-size:14px}
.project-overview .project-mode-copy small{font-size:11px}
.project-overview .project-mode-tile progress{height:6px;bottom:11px;left:14px;width:calc(100% - 28px)}
.project-overview .pb-filter-toggle{display:inline-flex;gap:12px;align-items:center;min-height:44px;margin-bottom:16px;color:#183153}
.project-overview .pb-filter-toggle b{color:#ff6800;font-size:20px}
#pb-filter-panel[hidden]{display:none}
#pb-filter-panel{margin-bottom:20px;padding:16px;background:#fff;border:1px solid #dbe6f2;border-radius:12px}
.project-overview .pb-extra-options{border-top:1px solid #e4ebf4;margin-top:16px;padding-top:14px}
.pb-extra-options h3{font-size:13px;margin:0 0 12px}
.pb-extra-row{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px}
.pb-extra-options .check{font-size:12px;display:inline-flex;align-items:center;gap:7px;margin:0}
.pb-status-options{display:flex;flex-wrap:wrap;gap:12px 18px;padding:0;border:0;margin:0}
.pb-status-options legend{font-size:11px;color:#7389a9;margin-bottom:9px}
.pb-project-scope{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}
@media(max-width:1000px){.project-overview .project-view-controls{flex-wrap:wrap}.project-overview .project-mode{flex-basis:100%}}
@media(max-width:600px){.project-overview .project-mode{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-extra-row{align-items:flex-start;flex-direction:column}}

/* Keep the live session timer and estimate in flowing, non-overlapping groups. */
.v13-card-times{display:flex;align-items:center;justify-content:flex-end;gap:8px 12px;flex-wrap:wrap;min-width:0;max-width:100%;margin-left:auto}
.v13-card-times .v12-current{margin-left:0;white-space:nowrap}
.v13-card-times .v9-estimate{flex-wrap:wrap;justify-content:flex-end;max-width:100%;gap:5px}
.v13-time-ratio{display:inline-block;padding:3px 6px;border-radius:5px;background:#edf2f7;color:#425a78;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums}
.v13-time-ratio.warning{color:#a84800;background:#fff0dc}
.v13-time-ratio.danger{color:#c81e3a;background:#ffe8ed}
.v13-time-ratio.unknown{color:#73849a}

/* V13: keep navigation available while scrolling every page. */
body > .topbar{position:sticky;top:0;z-index:100;flex-shrink:0;background:#fff;box-shadow:0 3px 12px #1831530a}

/* Sales note authors and edit action belong beneath their date. */
.sale-note-author-tools{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:8px;line-height:1.5}
.sale-note-author-tools small{font-size:10px;font-weight:400;color:#7b8c96;overflow-wrap:anywhere;max-width:100%}
.sale-note-author-tools button{font-size:11px;font-weight:400;line-height:1.5;text-align:left;background:#fffef9;padding:3px 0;white-space:normal}

/* Anchor notebook rules to each text block so earlier blocks cannot shift them. */
.sale-notebook-writing{--notebook-line-height:32px;background:none;line-height:var(--notebook-line-height)}
.sale-notebook-writing h3,.sale-notebook-initial,.sale-notebook-timeline article{background:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#cbd6d96b 31px,#cbd6d96b 32px)}
.sale-notebook-initial,.sale-note-body p{line-height:var(--notebook-line-height);padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0}
.sale-notebook-timeline article{align-items:start}
.sale-note-author-tools small{background:#fffef9}

.knowledge-tags-editor{margin-bottom:18px}.knowledge-tags-editor>label{margin-bottom:8px}.knowledge-tag-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.knowledge-tag-chip{display:inline-flex;align-items:center;gap:8px;background:#eaf3ff;color:#244e7e;border:1px solid #d2e2f5;border-radius:6px;padding:4px 7px 4px 10px;font-size:12px;overflow-wrap:anywhere;max-width:100%}.knowledge-tag-chip button{flex-shrink:0;width:25px;height:25px;border-radius:4px;font-size:19px;padding:0;color:#395b80}.knowledge-tag-chip button:hover{background:#d5e5fa}.knowledge-tags-editor>small{display:block;margin-top:7px}
