/* FT Manager 1.0.1 — shared visual system */
:root{--bg:#f5f5f3;--panel:#fff;--text:#191c20;--ink:#191c20;--muted:#696e75;--accent:#0866ff;--line:#e9ecef;--radius:22px;--shadow:0 4px 20px #151b2304;--danger:#bd3449}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5}h1,h2,h3,strong{color:inherit}h1{letter-spacing:-1.2px;font-weight:650}h2{font-size:21px;font-weight:600;letter-spacing:-.45px}h3{font-weight:600;letter-spacing:-.25px}.container{max-width:1120px;padding:28px 24px 40px}.page-head{margin-bottom:22px}.page-head h1{font-size:34px;line-height:1.18}.card{border:0;border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;background:#fff}.card h2:first-child{margin-top:0}.btn{background:var(--accent);color:#fff;border:0;border-radius:13px;min-height:44px;padding:11px 18px;box-shadow:none;font-weight:550;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.3;white-space:normal;text-align:center}.btn:hover{filter:brightness(.96);transform:none}.btn.secondary{background:#eaf1ff;color:#1259be}.btn.ghost{background:#f2f4f7;color:#3c4655;border:0}.btn.success{background:#207d57;color:#fff}.btn.danger{background:#fff0f2;color:#b52c44}.btn.small{font-size:12px;padding:9px 12px;min-height:38px}.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #80b5ff;outline-offset:3px}.badge{font-weight:550;font-size:11px;padding:5px 9px;background:#f0f2f5;color:#566070}.badge.p-high{background:#fff0d9;color:#8b5519}.badge.p-urgent{background:#ffe8ed;color:#a42843}.badge.s-done,.badge.done{background:#e5f4eb;color:#226743}.badge.in_progress,.badge.s-open{background:#e8f0ff;color:#155bc4}.badge.waiting{background:#f1eaff;color:#7450a6}.count-pill{background:#eef3ff;color:#2762ba;box-shadow:none;font-size:11px;font-weight:600}.eyebrow{font-size:10px;letter-spacing:1.3px;color:#727981;font-weight:600}label,.field-caption{font-size:13px;font-weight:500;color:#535d68}input,textarea,select{border:1px solid #e6e9ed;border-radius:12px;background:#f9fafb;font:inherit;color:#20252c;padding:12px;box-shadow:none}input:focus,textarea:focus,select:focus{outline:2px solid #afcfff;border-color:#609eff}textarea{resize:vertical}summary{cursor:pointer;min-height:42px;align-content:center;font-weight:550}details>summary::marker{color:#8d99a7}.soft-line{border-color:var(--line)}.empty{padding:20px;color:#737b85;font-size:13px}.section-title h2{font-size:19px}.topbar{box-shadow:none;padding:8px 28px}.brand-logo{width:56px;height:56px}.topbar nav a{font-weight:500;font-size:13px}.topbar nav a:hover{background:#242424;border-radius:10px}.userbox span{font-weight:550}.userbox small{font-size:11px}.menu-toggle{font-size:12px;border-radius:12px}.bottom-nav{box-shadow:none}.bottom-nav a{font-weight:500}.bottom-nav a[aria-current=page]{color:#0866ff}.nav-symbol svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hello h2{font-size:34px;letter-spacing:-1px;font-weight:650;margin:8px 0}.hello p{color:#777f88;font-size:14px}.hello{margin-bottom:25px}.ft-dashboard .page-head{display:none}.ft-dashboard .owner-planner-grid{display:flex;flex-direction:column;gap:16px}.ft-dashboard .planner-quick-card{background:#fff;border:0;order:2}.ft-dashboard .planner-today-card{order:1}.ft-dashboard .owner-ask-grid{align-items:start}.ft-dashboard .dm-dashboard{display:flex;align-items:center;padding:16px 20px;background:#edf2ff;color:#215ab0;margin:18px 0}.dm-dashboard span{font-size:12px;color:#5e759a}.ft-dashboard .hello{display:flex;align-items:center;justify-content:space-between;gap:16px}.ft-add{width:46px;height:46px;min-width:46px;border-radius:50%;padding:0;font-size:28px}.ft-fold>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.ft-fold>summary::after{content:'+';font-size:22px;color:#0866ff}.ft-fold[open]>summary::after{content:'−'}.ft-fold>summary::-webkit-details-marker{display:none}.ft-fold:not([open]){padding:12px 20px}.ft-fold>summary h2{font-size:16px;margin:0}.ft-fold>summary .eyebrow{display:none}.ft-fold[open]>summary{margin-bottom:16px}.planner-today-card .planner-row,.planner-done-list .planner-row{border-color:#f0f1f3}.planner-row{padding:16px 4px;gap:12px}.planner-row strong{font-weight:500;font-size:15px;line-height:1.4}.planner-row small{font-size:12px;color:#76808b;margin-top:4px}.planner-check{border-color:#98bafa}.planner-task-card{padding:28px}.planner-task-title h2{font-size:29px;line-height:1.2;letter-spacing:-.9px;font-weight:600}.ft-task .page-head{display:none}.planner-task-kv{display:flex;flex-direction:column;border:1px solid #edf0f3;border-radius:17px;gap:0;margin:22px 0}.planner-task-kv>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #edf0f3;border-radius:0;padding:14px 16px;background:#fff}.planner-task-kv>div:last-child{border-bottom:0}.planner-task-kv span{font-size:12px;font-weight:400}.planner-task-kv strong{font-size:13px;font-weight:500;text-align:right}.planner-notes{font-size:14px;color:#65707c;line-height:1.65}.planner-action-bar{display:block}.planner-action-bar>.ft-primary form,.planner-action-bar>.ft-primary .btn{width:100%}.ft-task-options{margin-top:14px}.ft-task-options>summary{font-size:13px;color:#576474}.ft-task-options>summary::marker{color:#8d99a7}.ft-task-options form{margin:10px 0}.ft-task-options .planner-postpone{flex-wrap:wrap}.ft-task-options .planner-postpone strong{width:100%}.ft-row-options{margin:0 0 12px 32px}.ft-row-options summary{font-size:12px;color:#5277a8;min-height:36px}.ft-row-options .calendar-filters{flex-wrap:wrap;margin:8px 0}.ft-task aside>.card:first-child{background:#eef2f7}.ft-task .timeline-item{font-size:12px}.ft-task .timeline-item strong{font-weight:500}.filter-chip{font-weight:500;border-radius:12px}.filter-chip.active{background:#e8f0ff;color:#155dc6}.calendar-filters{gap:8px}.next-step{background:#edf3ff;border:0;border-radius:16px;padding:18px}.next-step strong{font-size:21px;letter-spacing:-.4px}.owner-note-card{background:#fff5e6;border:0;box-shadow:none}.owner-note-label{background:#8e6023}.comment-card{background:#f5f6f8;border:0;border-left:3px solid #bbc7d5;border-radius:17px}.comment-card.comment-mine{background:#edf3ff;border-left-color:#5593ef}.comment-head strong{font-weight:600}.case-row{padding:16px 4px}.case-row strong{font-weight:500}.calendar-day{min-width:0}.calendar-event,.calendar-day a{overflow-wrap:anywhere}.dm-message,.group-message{overflow-wrap:anywhere}
/* Messenger-style direct conversations; the server still owns every action. */
.ft-messages .container{max-width:1250px}.ft-messages .page-head h1{font-size:32px}.dm-tabs{display:flex;gap:8px;margin-bottom:18px}.dm-new{margin-bottom:16px;max-width:430px}.dm-new>summary{color:#0866ff}.dm-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:0;border-radius:24px;background:#fff;overflow:hidden;min-height:620px}.dm-list.card{position:static;border:0;border-right:1px solid #edf0f4;border-radius:0;box-shadow:none;padding:18px 14px;background:#fff}.dm-list>details>summary{font-size:16px;margin:0 8px 12px}.dm-person{border:0;border-radius:14px;padding:13px 8px;margin:0;display:flex;align-items:center;gap:12px;background:transparent;color:#222831}.dm-person:hover,.dm-person.active{background:#eef4ff}.chat-avatar{width:50px;height:50px;flex:0 0 50px;background:#e9e2fa;color:#69529a;font-weight:600;font-size:16px}.dm-person:nth-of-type(3n+1) .chat-avatar{background:#f6e0ed;color:#955184}.dm-person:nth-of-type(3n+2) .chat-avatar{background:#fbe6d7;color:#98613c}.chat-preview{min-width:0;flex:1;gap:3px}.chat-preview strong{font-size:14px;font-weight:600}.chat-preview small{font-size:12px;color:#6e7783;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-person .badge{border-radius:50%;background:#0866ff;color:#fff;min-width:20px;text-align:center;padding:3px 5px;font-size:10px}.dm-person.unread .chat-preview small:first-of-type{color:#252c37;font-weight:600}.dm-conversation.card{border:0;border-radius:0;box-shadow:none;padding:20px 26px;background:#fff;min-width:0}.dm-conversation .chat-heading{border-bottom:1px solid #f0f2f5;padding-bottom:16px;gap:12px;margin-bottom:12px}.chat-heading h2{font-size:18px;margin:0;flex:1}.chat-heading .chat-avatar{width:42px;height:42px;flex-basis:42px;font-size:14px}.dm-back{color:#0866ff;font-size:25px;min-width:36px;text-align:center}.dm-settings{margin:8px 0 18px}.dm-settings>summary{font-size:12px;color:#627189;min-height:36px}.dm-settings>.stack{margin:12px 0}.dm-message{position:relative;max-width:79%;width:fit-content;margin:14px auto 14px 0;padding:12px 15px;border:0;border-radius:19px;background:#f0f2f5;box-shadow:none;color:#20252c}.dm-message.mine{margin:14px 0 14px auto;background:#0866ff;color:white;border:0}.dm-message>strong{display:block;font-size:11px;font-weight:550;color:#65718a;margin-bottom:4px}.dm-message.mine>strong{color:#e5eeff}.dm-message>small{font-size:10px;display:block;color:#758095;margin:4px 0;line-height:1.35}.dm-message.mine>small{color:#e2edff}.dm-message>div{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.dm-message blockquote{font-size:12px;line-height:1.4;border:0;border-left:2px solid #bfcce1;background:#ffffff65;padding:8px 10px;border-radius:7px;color:#3a4d67}.dm-message.mine blockquote{color:#fff;background:#ffffff20;border-left-color:#afcaff}.dm-message details{margin-top:5px}.dm-message details>summary{font-size:11px;min-height:30px;color:#556b8c}.dm-message.mine details>summary{color:#e7f0ff}.dm-message details[open]{background:#fff;color:#263349;border-radius:12px;padding:10px;margin-top:10px}.dm-message details[open]>summary{color:#53677f}.dm-message details .calendar-filters{justify-content:flex-start;gap:4px}.dm-message details .btn{min-height:36px}.dm-message .badge{background:#fff;color:#415c80;padding:3px 7px;border-radius:12px;margin-top:4px}.dm-message a{color:inherit;text-decoration:underline}.dm-message .btn{text-decoration:none}.dm-message .muted{color:inherit}.chat-compose{border-top:1px solid #edf0f4;margin-top:22px;padding:14px 0 0;position:static}.dm-conversation .chat-compose{position:sticky;bottom:0;background:#fff;z-index:8}.dm-compose-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.dm-compose-form>label{grid-column:1;font-size:0;margin:0}.dm-compose-form textarea{font-size:16px;background:#f0f2f5;border:0;border-radius:22px;padding:12px 16px;min-height:46px!important;height:46px;max-height:180px;resize:vertical;margin:0;line-height:1.4}.dm-compose-form>.btn{grid-column:2;border-radius:50%;width:46px;height:46px;min-height:46px;padding:0;font-size:21px;align-self:end}.dm-compose-form blockquote{grid-column:1/-1;font-size:12px;background:#f4f6f9;padding:10px;border-left:2px solid #92b9ef;margin:0 0 5px}.dm-compose-form label>.dictate{font-size:11px;margin:5px 0 0;padding:4px 10px;min-height:30px;background:none}.dm-compose-form label>.dictation-status{font-size:11px;line-height:1.35}.dm-conversation>.dm-read-form{margin:15px 0}.dm-read-form .btn{background:#f3f6fc;color:#5475a4;min-height:36px;font-size:11px}.dm-compose-form label>.dictation-status:empty{display:none}.dm-list-search{margin-bottom:13px}.dm-list-search input{border:0;border-radius:22px;background:#f0f2f5;font-size:14px}.dm-empty-thread{text-align:center;color:#748196;padding:80px 15px}.ft-messages .dm-message .chat-file-link{color:inherit}.ft-messages .dm-dashboard{display:none}
@media(min-width:901px){.ft-dashboard .owner-planner-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start}.ft-dashboard .planner-quick-card{grid-column:2;grid-row:1}.ft-dashboard .planner-today-card{grid-column:1;grid-row:1}.ft-task .detail-grid{grid-template-columns:minmax(0,1fr) 290px}.ft-task-options .planner-postpone{display:flex}}
@media(max-width:900px){.container{padding:22px 18px 32px}.topbar{padding:5px 18px}.brand-logo{width:44px;height:44px}.page-head h1{font-size:30px}.card{padding:20px;border-radius:20px}.hello h2{font-size:30px;line-height:1.15}.hello p{font-size:13px}.bottom-nav{background:#fffffff7;border-top:1px solid #edf0f3;padding-top:7px}.bottom-nav a{font-size:10px}.ft-dashboard .dm-dashboard{gap:8px;align-items:start}.dm-dashboard span{display:none}.owner-planner-grid{margin:16px 0}.planner-task-card{padding:23px 20px}.planner-task-title h2{font-size:27px}.planner-row strong{font-size:14px}.ft-task .detail-grid{display:block}.ft-task aside{margin-top:16px}.ft-task-options .planner-postpone{display:flex;flex-wrap:wrap}.dm-layout{display:block;border-radius:20px;min-height:0}.dm-list.card{padding:12px;border:0}.dm-person{padding:14px 8px}.chat-preview strong{font-size:16px}.chat-avatar{width:54px;height:54px;flex-basis:54px}.ft-messages .container{padding:18px 12px 12px}.ft-messages.has-dm-peer .dm-list,.ft-messages.has-dm-peer .dm-new,.ft-messages.has-dm-peer .page-head,.ft-messages.has-dm-peer .dm-tabs{display:none}.ft-messages:not(.has-dm-peer) .dm-conversation{display:none}.dm-conversation.card{padding:16px 12px}.dm-message{max-width:85%}.dm-conversation .chat-compose{bottom:calc(72px + env(safe-area-inset-bottom));padding-bottom:10px}.ft-messages .topbar{position:relative}.ft-messages.has-dm-peer .dm-layout{border-radius:0}.ft-messages.has-dm-peer .container{padding-top:0;background:#fff}.chat-heading h2{font-size:16px}.dm-compose-form textarea{min-height:46px!important}.ft-row-options{margin-left:0}.card-title-row h2{font-size:18px}.planner-task-kv strong{max-width:65%;overflow-wrap:anywhere}.case-meta{flex-wrap:wrap}.owner-question-item{padding:16px}.calendar-event{font-size:12px}}
@media(prefers-reduced-motion:no-preference){.btn,.dm-person{transition:background .15s ease,filter .15s ease}}
/* Intrinsic widths must never force forms beyond a narrow phone. */
.container{width:100%;margin:0 auto 35px}.grid>*{min-width:0}.card form,.card label,.form-grid>*{min-width:0}.card input,.card select{min-width:0;max-width:100%}.dm-person[hidden]{display:none!important}
.has-dm-peer .dm-conversation{display:flex;flex-direction:column;height:740px;min-height:460px}.dm-log{flex:1;min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:0 6px;scrollbar-width:thin}.has-dm-peer .dm-conversation .chat-compose{position:static;flex-shrink:0;margin-top:0;padding-top:12px}.has-dm-peer .dm-conversation>.dm-read-form{flex-shrink:0;margin:4px 0}.dm-settings[open]{max-height:280px;overflow:auto;flex-shrink:0}.dm-conversation>.chat-heading{flex-shrink:0}.dm-message>small:first-of-type{font-size:10px;opacity:.8}.dm-message>strong{font-size:10px}.dm-message details>summary{font-size:11px;min-height:32px}.dm-message{margin-top:9px;margin-bottom:9px;padding:10px 13px}.ft-messages .dm-compose-form label{display:block}.ft-messages .dm-compose-form textarea{font-size:16px}.ft-messages .dm-compose-form .dictate{display:none}.ft-messages .dm-compose-form .dictation-status{display:none}.ft-chat-tools{margin-top:4px}.ft-chat-tools summary{font-size:11px;color:#647d9d;min-height:36px}.ft-chat-tools .dictate,.ft-chat-tools .dictation-status{display:inline-block!important;font-size:11px!important}.ft-chat-tools .dictation-status:empty{display:none!important}.ft-chat-tools{grid-column:1/-1}
.ft-table-scroll{max-width:100%;overflow-x:auto}.ft-plan-tabs{display:flex;gap:4px;background:#e9edf3;border-radius:14px;padding:4px;margin-top:18px}.ft-plan-tabs button{flex:1;border:0;border-radius:10px;background:none;padding:10px;min-height:42px;color:#627084;font:inherit;font-size:13px;cursor:pointer}.ft-plan-tabs button[aria-pressed=true]{background:#fff;color:#0866ff;box-shadow:0 2px 6px #00000008}.ft-plan-section[hidden]{display:none!important}.ft-plan-section h2{font-size:18px}.ft-plan-section{box-shadow:none}.ft-plan-section .planner-row{padding:14px 0}
.ft-task-privacy{font-size:11px;color:#737e8b;margin:22px 0 0}.ft-task-back{display:inline-flex;align-items:center;min-height:42px;font-size:13px;color:#427aca;margin-bottom:10px}.ft-task aside>.card:has(.timeline){background:#fff}
@media(min-width:901px){.ft-messages .container{padding-top:20px}.ft-messages .page-head{margin-bottom:14px}.ft-messages .dm-new{padding:8px 18px;margin-bottom:12px}.ft-messages .dm-new>summary{min-height:36px}.has-dm-peer .dm-conversation{height:calc(100dvh - 290px);min-height:440px}.has-dm-peer .dm-layout{min-height:440px}.ft-messages .dm-tabs{margin-bottom:12px}}
@media(max-width:900px){.container{padding:22px 18px 30px;width:100%}.has-dm-peer .container{margin-bottom:0}.has-dm-peer .dm-conversation{height:calc(100dvh - 145px - env(safe-area-inset-bottom));min-height:380px;padding:10px 8px}.has-dm-peer .dm-layout{background:#fff}.has-dm-peer .topbar{height:60px}.has-dm-peer .dm-settings{margin:0 0 6px}.has-dm-peer .chat-compose{bottom:auto}.has-dm-peer .dm-conversation>.chat-heading{padding-bottom:9px;margin-bottom:6px}.dm-settings[open]{max-height:200px}.ft-messages.has-dm-peer .container{padding:0 8px}.ft-messages.has-dm-peer{background:#fff}.has-dm-peer .dm-conversation .dm-log{padding:0 4px}}

/* Keep the report caption, dictation and editor in one full-width column. */
.quick-case-card .quick-report{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}.quick-case-card .quick-report>*{grid-column:1;min-width:0}.quick-case-card .quick-report label{display:block;margin:0}.quick-case-card .quick-report textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:190px}.quick-case-card .quick-report .btn{width:100%;box-sizing:border-box}
