:root{--bg:#f5f6f3;--paper:#fff;--ink:#213830;--text:#35453f;--muted:#85918a;--line:#e5e9e3;--green:#24634e;--green-soft:#eaf2ec;--amber:#ad7927;--red:#bd5554;--shadow:0 8px 32px #193d3010;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);font-size:14px;background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #8abea2;outline-offset:3px}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.7px;font-weight:650;color:var(--ink)}h2{font-size:17px;font-weight:650;color:var(--ink)}h3{font-size:14px;color:var(--ink)}small,.muted{color:var(--muted)}.boot{display:grid;min-height:100vh;place-items:center;color:var(--green)}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fbfcf9;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20;padding:32px 18px 20px}.brand{display:flex;align-items:center;gap:12px;padding:0 13px 32px}.brandmark{display:grid;place-items:center;width:39px;height:43px;background:var(--green);color:#fff;border-radius:11px 11px 11px 3px;box-shadow:0 4px 9px #24634e18}.brandmark svg{width:24px;height:24px}.brand strong{font-size:23px;font-weight:700;letter-spacing:3px;color:var(--ink)}.brand small{display:block;font-size:9px;letter-spacing:2.4px;margin-top:4px}.workspace-label{font-size:10px;letter-spacing:1.3px;color:#96a197;padding:8px 16px 13px}.nav{display:grid;gap:6px}.nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:8px;color:#6a7a70;font-size:13px}.nav a:hover{background:#f0f3ed}.nav a.active{background:#e6eee5;color:#255c46;font-weight:650}.nav .count{margin-left:auto;background:#d7e6d9;font-size:11px;padding:1px 7px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:0 8px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:19px}.avatar{width:34px;height:34px;border-radius:50%;background:#e5e9df;color:#67775e;display:grid;place-items:center;font-weight:650;font-size:12px;flex-shrink:0}.profile .profile-name{font-size:12px;line-height:1.6;max-width:114px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{font-size:10px}.profile button{margin-left:auto}.main{grid-column:2;min-width:0}.topbar{height:73px;display:flex;align-items:center;justify-content:space-between;padding:0 39px;border-bottom:1px solid var(--line);background:#fbfcf9b8}.breadcrumb{display:flex;align-items:center;gap:11px;color:#889188;font-size:12px}.breadcrumb b{font-weight:500;color:#526051}.top-actions{display:flex;align-items:center;gap:19px;font-size:11px;color:#8a9388}.role-pill{padding:5px 10px;border:1px solid #dfe6db;border-radius:6px;color:#637459;background:#f4f7f0}.icon-btn{padding:7px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;position:relative}.icon-btn:hover{background:var(--green-soft)}.dot{position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:#c39256;border:1px solid white}.content{max-width:1570px;margin:auto;padding:34px 39px 50px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.page-head p{font-size:12px;color:#899186;margin-top:9px;line-height:1.8}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:#8d9a88;margin-bottom:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid var(--line);border-radius:7px;background:white;white-space:nowrap;font-size:12px;font-weight:550;min-height:37px}.btn:hover{background:#f4f7f0;border-color:#ccd9cc}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 5px #1e493410}.btn.primary:hover{background:#184e3b}.btn.danger{color:var(--red);border-color:#f0d4d2}.btn.small{padding:6px 10px;font-size:11px;min-height:30px}.btn.ghost{border-color:transparent;background:transparent;color:var(--green)}.btn svg{width:16px;height:16px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hero{background:#e8eee2;border:1px solid #e0e7d9;border-radius:var(--radius);padding:28px 30px;display:flex;justify-content:space-between;position:relative;overflow:hidden;margin-bottom:23px;min-height:159px}.hero h2{font-size:24px;font-weight:600;line-height:1.5}.hero p{font-size:12px;line-height:1.9;color:#7a8970;margin-top:9px;max-width:550px}.hero .eyebrow{color:#829575}.hero-art{width:170px;align-self:center;margin-right:22px;flex-shrink:0}.hero-art svg{width:100%;height:115px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.metric{padding:20px 22px;border:1px solid var(--line);background:white;border-radius:11px;position:relative}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#7e897d;font-size:12px}.metric-icon{display:grid;place-items:center;background:#f2f5ee;color:#7c9270;padding:7px;border-radius:8px}.metric-value{font-size:33px;line-height:1.5;color:#2d4335;font-weight:600;font-variant-numeric:tabular-nums}.metric small{font-size:10px}.metric-value span{font-size:11px;margin-left:9px;font-weight:400;color:#9aa091}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.stack{display:grid;gap:22px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-pad{padding:22px}.card-head{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-head h2{font-size:15px}.card-head p{font-size:11px;color:var(--muted);margin-top:6px}.card-footer{padding:14px 23px;border-top:1px solid var(--line);font-size:11px;color:#8a9488}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;font-size:10px;line-height:1.4;white-space:nowrap;background:#f0f2ee;color:#7b8679;font-weight:500}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.working,.badge.revising{background:#eaf1ed;color:#52846b}.badge.pending,.badge.assigned,.badge.unassigned{background:#fbf2e2;color:#ae873b}.badge.delivered,.badge.confirmation{background:#edf1f9;color:#6987ad}.badge.completed,.badge.resolved{background:#e8f0e2;color:#63854b}.badge.waiting{background:#f5ebdf;color:#a97d4a}.badge.danger{background:#faebea;color:#b6605d}.tag{display:inline-block;font-size:10px;border-radius:4px;background:#f3f4f1;padding:4px 7px;color:#7c8777;margin:2px 3px 2px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f3f6f2;border-bottom:1px solid #dce4dc;font-size:12px;letter-spacing:.2px;font-weight:600;color:#405346;padding:13px 19px}td{border-bottom:1px solid #e5ebe4;padding:17px 19px;font-size:13px;line-height:1.6;color:#34483c}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf8}.title-cell{min-width:190px;max-width:300px}.title-cell a{display:block;color:#354b38;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px}.title-cell small{font-size:10px}.mono{font-variant-numeric:tabular-nums;font-size:11px;color:#83907d}.link{color:var(--green);font-size:12px}.due-item{padding:15px 0;border-bottom:1px solid #edf0e8;display:flex;gap:12px}.due-item:last-child{border:0;padding-bottom:0}.date-tile{border:1px solid #e9ede3;border-radius:7px;padding:8px 11px;text-align:center;background:#fafcf6;align-self:start;min-width:47px}.date-tile strong{display:block;color:#57714b;font-size:19px;font-weight:550}.date-tile small{font-size:9px}.due-text{min-width:0}.due-text h3{font-size:12px;line-height:1.6;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.due-text p{font-size:10px;color:#899780;margin:5px 0 8px}.progress-row{margin-bottom:20px}.progress-row:last-child{margin-bottom:0}.progress-label{display:flex;justify-content:space-between;font-size:11px;color:#798673;margin-bottom:8px}progress{width:100%;height:6px;border:0;border-radius:5px;background:#f1f4ed;display:block;overflow:hidden}progress::-webkit-progress-bar{background:#f1f4ed}progress::-webkit-progress-value{background:#9bb592;border-radius:5px}progress::-moz-progress-bar{background:#9bb592}.ticket-preview{display:flex;gap:13px;padding:16px 22px;border-top:1px solid #edf0e8;align-items:start}.ticket-preview .icon-box{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#f3f5ec;color:#839572}.ticket-preview h3{font-size:12px;margin-bottom:6px;font-weight:550}.ticket-preview p{font-size:10px;color:#8a9682}.ticket-preview .badge{margin-left:auto}.empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:12px;line-height:2}.empty svg{display:block;margin:0 auto 10px;color:#acb9a3;width:30px;height:30px}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 21px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filters{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:7px;padding:8px 11px;background:#fff}.search svg{color:#98a38f;width:15px;height:15px}.search input{border:0;outline:0;min-width:210px;background:transparent;font-size:12px}.filter-select{padding:9px 27px 9px 10px;border:1px solid var(--line);border-radius:7px;background:white;font-size:11px;color:#728268;max-width:180px}.detail-head{margin-bottom:23px}.detail-head h1{font-size:23px;line-height:1.5;margin-top:9px}.detail-meta{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:12px;color:#8b9783;font-size:11px}.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.tab{white-space:nowrap;padding:0 2px 14px;font-size:12px;color:#86917e;border-bottom:2px solid transparent}.tab.active{color:var(--green);font-weight:600;border-color:var(--green)}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 20px}.field-view label{display:block;font-size:10px;color:#98a08f;margin-bottom:8px}.field-view .value{font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.field-view.full{grid-column:1/-1}.divider{height:1px;background:var(--line);margin:22px 0}.task-card{padding:22px;border-bottom:1px solid var(--line)}.task-card:last-child{border:0}.task-top{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:20px}.task-title{display:flex;align-items:center;gap:10px}.task-number{background:#edf2e7;color:#758866;border-radius:7px;font-size:11px;padding:8px}.task-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px dashed var(--line);padding-top:16px;margin-top:20px;font-size:11px;color:#899681;flex-wrap:wrap}.notice{padding:13px 15px;border:1px solid #e4e9dc;border-radius:8px;background:#f6f8f0;font-size:12px;line-height:1.8;color:#7b8b6d}.notice.warn{background:#fcf6e9;border-color:#f1e3c4;color:#a28349}.notice.danger{background:#fbefed;border-color:#efd8d2;color:#ae6356}.file-row{display:flex;align-items:center;gap:12px;padding:16px 21px;border-top:1px solid #edf0e8}.file-row:first-child{border:0}.file-icon{background:#f1f4ec;border-radius:7px;padding:10px;color:#8a9c7b}.file-info{flex:1;min-width:0}.file-info a{font-size:12px;font-weight:550;overflow-wrap:anywhere}.file-info p{font-size:10px;color:#92a087;margin-top:5px}.file-info .file-note{font-size:11px;color:#687c5a;white-space:pre-wrap;line-height:1.8}.message-list{padding:4px 22px;max-height:620px;overflow:auto}.message{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid #eff2eb}.message:last-child{border-bottom:0}.message-body{flex:1;min-width:0}.message-meta{font-size:11px;display:flex;align-items:center;gap:9px;color:#6b7d5f;margin:2px 0 9px}.message-meta time{margin-left:auto;font-size:10px;color:#a0aa94}.message-content{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.message-form{padding:18px 22px;background:#fafcf7;border-top:1px solid var(--line)}.message-form textarea{min-height:83px}.message-form .actions{justify-content:space-between;margin-top:10px}.message-form small{font-size:10px}.timeline{padding:0 23px 20px}.event{border-left:1px solid #e3e8db;padding:0 0 24px 20px;margin-left:4px;position:relative}.event:before{content:'';position:absolute;left:-4px;top:5px;width:7px;height:7px;border:2px solid white;background:#a9ba99;border-radius:50%}.event p{font-size:11px;line-height:1.8;color:#758768}.event small{font-size:10px;display:block;margin-top:5px}.event:last-child{padding-bottom:0}.ticket-body{font-size:13px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 23px 23px}.status-flow{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:18px 22px;background:#fafbf8;border-bottom:1px solid var(--line);font-size:11px;color:#9aa68e}.status-flow .current{color:var(--green);font-weight:650}.status-flow svg{width:13px;height:13px}.user-name{display:flex;align-items:center;gap:10px}.user-name strong{font-size:12px;font-weight:550;color:var(--ink)}.user-name small{display:block;margin-top:3px}.stats-note{font-size:11px;color:#86957a;margin:14px 0;line-height:1.8}.report-grid{display:grid;gap:22px}.notification-item{display:flex;gap:12px;align-items:start;padding:20px 23px;border-bottom:1px solid var(--line)}.notification-item:last-child{border:0}.notification-item.unread{background:#f7faf3}.notification-item p{font-size:12px;line-height:1.8}.notification-item small{display:block;font-size:10px;margin-top:6px}.notification-item .icon-box{color:#86a076}.notification-item a{flex:1}.notification-item .unread-mark{width:6px;height:6px;background:#8ba375;border-radius:50%;margin-top:7px}
input:not([type=checkbox]),textarea,select{max-width:100%}form .field input:not([type=checkbox]),form .field textarea,form .field select,.message-form textarea{width:100%;padding:10px 11px;border:1px solid #dde5d5;border-radius:7px;background:white;color:#3b5032;outline:none;font-size:12px;line-height:1.6}form input:focus,form textarea:focus,form select:focus,.message-form textarea:focus{border-color:#7a9d65;box-shadow:0 0 0 3px #90ae7915}textarea{resize:vertical;min-height:90px}.field label{display:block;font-size:11px;font-weight:550;color:#687c58;margin-bottom:7px}.field .hint{display:block;font-size:10px;color:#98a48d;margin-top:5px;line-height:1.6}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field.full{grid-column:1/-1}.required{color:#b58751;margin-left:3px}.form-section{padding:23px;border:1px solid var(--line);background:white;border-radius:12px;margin-bottom:18px}.form-section-head{display:flex;gap:12px;align-items:center;margin-bottom:22px}.section-index{width:29px;height:29px;border-radius:7px;background:#edf2e6;display:grid;place-items:center;color:#7b9466;font-size:11px}.form-section-head h2{font-size:14px}.form-section-head p{font-size:10px;color:#93a184;margin-top:4px}.service-form{border:1px solid #e2e8d9;border-radius:9px;padding:20px;margin-top:15px;background:#fdfefb}.service-form-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.service-form-header strong{font-size:13px;color:#6b8559}.form-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 0;gap:15px}.form-footer small{font-size:11px}.form-error{color:#ae5550;font-size:12px;line-height:1.8;margin-top:10px}.form-error:empty{display:none}.upload-hint{border:1px dashed #cdd9c0;padding:17px;border-radius:8px;background:#f9fbf5}.upload-hint input{font-size:11px;color:#81916f;width:100%}.upload-hint p{font-size:10px;color:#91a07f;margin-top:9px}.submit-strip{position:sticky;bottom:0;background:#f5f6f3eb;backdrop-filter:blur(10px);padding:14px 0;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);z-index:5}
dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:560px;max-width:calc(100vw - 30px);max-height:calc(100vh - 60px);box-shadow:0 30px 100px #1e3a2840;color:var(--text)}dialog.wide{width:730px}dialog::backdrop{background:#152c2460;backdrop-filter:blur(3px)}.modal-head{padding:23px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modal-head h2{font-size:17px}.modal-body{padding:23px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.modal-body .notice{margin-bottom:18px}#toasts{position:fixed;right:25px;bottom:25px;z-index:100;display:grid;gap:10px;max-width:calc(100vw - 50px)}.toast{padding:14px 20px;background:#284d36;color:#fff;border-radius:9px;box-shadow:var(--shadow);font-size:12px;line-height:1.8}.toast.error{background:#934a44}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:#fbfcf8}.login-left{padding:55px 65px;background:#e8eee1;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-left .brand{padding:0}.login-copy{margin:auto 0;max-width:490px}.login-copy h1{font-size:43px;font-weight:550;line-height:1.5;letter-spacing:0}.login-copy p{font-size:14px;line-height:2.1;color:#849377;margin-top:20px;max-width:400px}.login-flow{display:flex;gap:17px;align-items:center;margin-top:38px;font-size:12px;color:#678453;flex-wrap:wrap}.login-flow span{padding:12px;border:1px solid #ccd8bf;border-radius:8px;background:#eff3e9}.login-left footer{color:#8c9b80;font-size:10px;letter-spacing:1px}.login-right{display:grid;place-items:center;padding:40px}.login-card{max-width:350px;width:100%}.login-card h2{font-size:25px;margin-bottom:10px}.login-card>p{font-size:12px;line-height:1.8;color:#8e9c83;margin-bottom:32px}.login-card .field{margin-bottom:20px}.login-remember{display:flex;align-items:center;gap:7px;margin:-4px 0 12px;color:#6f8069;font-size:11px;cursor:pointer}.login-remember input{width:15px;height:15px;margin:0;accent-color:var(--green)}.login-remember small{margin-left:auto;color:#a0ab98;font-size:10px}.login-card .btn{width:100%;margin-top:7px;min-height:43px}.login-card .login-bottom{font-size:10px;text-align:center;color:#a2ad98;margin-top:26px;line-height:1.9}.mobile-menu{display:none}.nowrap{white-space:nowrap}.spaced{margin-top:20px}
.live-update{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.assignment-date{color:#54665b;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-tag-list{display:flex;flex-wrap:wrap;gap:7px;min-width:180px;max-width:300px}.delivery-project-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;border:1px solid var(--project-border);background:var(--project-bg);color:var(--project-color);font-size:11px;font-weight:600;line-height:1.45;white-space:nowrap}.delivery-project-tag:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.delivery-project-green{--project-bg:#e8f4ed;--project-color:#246545;--project-border:#badbc8}.delivery-project-blue{--project-bg:#ebf2fd;--project-color:#315d98;--project-border:#c2d5ef}.delivery-project-amber{--project-bg:#fcf3dd;--project-color:#815c14;--project-border:#ead39b}.delivery-project-violet{--project-bg:#f1edfb;--project-color:#685096;--project-border:#d8ccef}.delivery-project-teal{--project-bg:#e7f4f3;--project-color:#246b68;--project-border:#b9dcda}.delivery-project-orange{--project-bg:#fff0e5;--project-color:#965124;--project-border:#edceb5}.delivery-project-rose{--project-bg:#fbeef2;--project-color:#99536b;--project-border:#ebc9d5}
.today-remaining-count{font-size:13px;color:#64735f}.today-remaining-count.urgent{color:#c13939}.today-remaining-orders{margin-top:5px;white-space:normal;line-height:1.6;max-width:220px}.today-remaining-orders a{color:#527753;font-size:11px}.today-remaining-orders a:hover{text-decoration:underline}
.metric-action{text-align:left;width:100%;font:inherit;cursor:pointer}.metric-action:hover{border-color:#a9bba1;background:#fbfdf9}.metric-action:focus-visible{outline:2px solid var(--green);outline-offset:3px}.metric-urgent .metric-value,.metric-urgent .metric-value span{color:#c43d3d}.metric-urgent .metric-icon{background:#fff0ee;color:#c43d3d}.writer-select-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;padding:0 0 14px;border-bottom:1px solid var(--line)}.writer-select-bar label{display:flex;align-items:center;gap:8px}.writer-worklist{max-height:55vh;overflow:auto}.writer-work-row{padding:16px 0;border-bottom:1px solid var(--line)}.writer-work-row:last-child{border-bottom:0}.writer-order-choice{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.writer-order-choice input,.writer-select-bar input{width:17px;height:17px;flex-shrink:0;accent-color:var(--green)}.writer-order-choice>span{min-width:0}.writer-work-row strong,.writer-work-row h3{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.writer-work-row small{display:block;font-size:11px;margin-top:5px;line-height:1.6;overflow-wrap:anywhere}.writer-projects{display:grid;gap:6px;font-size:11px;line-height:1.8;margin:10px 0 4px 29px;color:var(--muted)}.writer-deadlines{display:grid;margin-top:10px}.writer-deadline{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px dashed var(--line)}.writer-deadline>span:first-child{flex:1;min-width:0}.writer-deadline .badge,.writer-deadline>svg{flex-shrink:0}.writer-due-summary{font-size:12px;color:#b43737;margin-bottom:10px;line-height:1.8}
.batch-assignment{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 21px;border-bottom:1px solid var(--line);background:#f8faf5;font-size:12px}.batch-assignment small{color:var(--muted);font-size:11px}.btn:disabled{opacity:.45;cursor:not-allowed}.order-select-cell{width:40px;text-align:center}.order-select-cell input{width:17px;height:17px;accent-color:var(--green);cursor:pointer}.assignment-orders{max-height:180px;overflow:auto;font-size:12px;line-height:1.8;margin:12px 0 20px}.assignment-orders p{margin:5px 0}
.school-selector{display:flex;gap:10px;align-items:center;min-width:0}.school-selector select{flex:1;min-width:0}.school-selector .btn{flex:none}.school-attached-files{display:grid;gap:7px;margin-top:8px}.school-attached-files:empty{display:none}.school-attached-file{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:8px}.school-attached-file a{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}.school-attached-file small{white-space:nowrap}.school-attached-file button{flex:none}.school-list-toolbar{padding-left:0;padding-right:0}.school-list-toolbar .search{flex:1;max-width:420px}.school-list-toolbar input{width:100%}#new-school-name[hidden]{display:none}form select:disabled{background:#f4f6f1;color:#62715b}@media(max-width:650px){.school-selector{align-items:stretch;flex-wrap:wrap}.school-selector select{flex-basis:100%}.school-attached-file{flex-wrap:wrap}.school-attached-file a{flex-basis:65%}}
.toolbar.list-search-toolbar{display:grid;grid-template-columns:minmax(150px,1fr) 115px auto;gap:10px}.list-search-toolbar .search{min-width:0;width:auto}.list-search-toolbar .search input{min-width:0;width:100%}.list-search-toolbar>.filters{width:auto}.list-search-toolbar>.filters select{width:100%;max-width:100%}.list-search-feedback{padding:0 21px 12px;border-bottom:1px solid var(--line)}.list-date-count{font-size:12px;color:var(--green);font-weight:600;margin-top:10px;line-height:1.8;overflow-wrap:anywhere}@media(max-width:1100px){.toolbar.list-search-toolbar{grid-template-columns:minmax(150px,1fr) 115px}}
.delivery-time,.delivery-time label,.delivery-time input{cursor:pointer}.delivery-time-input{position:relative;min-width:0}.delivery-time-input input{min-width:0;padding-right:42px!important;min-height:44px}.delivery-time-input>svg{position:absolute;right:13px;top:14px;width:17px;height:17px;pointer-events:none;color:var(--green)}.delivery-time-input input::-webkit-calendar-picker-indicator{opacity:0}.requirement-editor{border:1px solid #dde5d5;border-radius:8px;overflow:hidden;background:white}.requirement-editor:focus-within{border-color:#7a9d65}.requirement-editor textarea{border:0!important;border-radius:0!important;min-height:100px;display:block;box-shadow:none!important}.requirement-attachments{border-top:1px solid var(--line);padding:12px;background:#f8faf6;min-width:0}.requirement-attachments label{display:flex;align-items:center;gap:7px;line-height:1.6;flex-wrap:wrap}.requirement-attachments input[type=file]{display:block;width:100%;min-width:0;max-width:100%;font-size:12px;color:var(--text)}.requirement-attachments input::file-selector-button{padding:7px 10px;background:white;border:1px solid var(--line);border-radius:5px;color:var(--green);cursor:pointer;margin-right:10px}.task-reference-files{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.task-reference-files h4{font-size:12px;margin-bottom:8px}.task-reference-files .file-row{padding-left:0;padding-right:0}
.ticket-due-control{display:grid;gap:9px}.ticket-due-control input{min-height:44px}.ticket-due-presets{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ticket-due-preset{padding:6px 10px;border:1px solid #dce7dc;border-radius:6px;background:#f8fbf7;color:#4c7057;font-size:11px;line-height:1.4}.ticket-due-preset:hover{border-color:#82ad8d;background:#edf7ef;color:#24634e}.ticket-due-preset.is-clear{color:#8b6d62;background:#fffaf7;border-color:#eadfd8}.ticket-due-preset.is-clear:hover{border-color:#c99d8b;background:#fff3ed;color:#9c5a46}
.service-form{min-width:0;margin-inline:0}.delivery-section>summary{cursor:pointer;list-style:none;margin-bottom:0;flex-wrap:wrap}.delivery-section>summary::-webkit-details-marker{display:none}.delivery-section>summary:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:5px}.delivery-section>summary>svg{transition:transform .15s}.delivery-section[open]>summary{margin-bottom:22px}.delivery-section[open]>summary>svg{transform:rotate(90deg)}.delivery-count{margin-left:auto;font-size:11px;color:var(--muted)}.delivery-options{border:0;padding:0;margin:0;min-width:0}.delivery-options legend{font-size:12px;font-weight:600;margin-bottom:12px}.delivery-choices{display:flex;flex-wrap:wrap;gap:10px}.delivery-choice{position:relative;cursor:pointer}.delivery-choice input{position:absolute;opacity:0;width:1px;height:1px}.delivery-choice span{display:flex;align-items:center;gap:8px;padding:11px 15px;border:1px solid var(--line);border-radius:8px;font-size:12px;background:white;color:#687c58}.delivery-choice span:before{content:'';width:15px;height:15px;border:1px solid #bdcbb4;border-radius:4px;background:white;display:grid;place-items:center;font-size:11px}.delivery-choice:hover span{border-color:#8ca87a}.delivery-choice input:checked+span{background:var(--green-soft);color:var(--green);border-color:var(--green);font-weight:600}.delivery-choice input:checked+span:before{content:'✓';background:var(--green);color:white;border-color:var(--green)}.delivery-choice input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}.service-form[hidden]{display:none}
@media(min-width:1600px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 320px}.content{padding-top:42px}.hero{min-height:174px}}
@media(max-width:1150px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding-left:12px;padding-right:12px}.content{padding:28px 25px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.metric{padding:17px}.metrics{gap:12px}.detail-grid{grid-template-columns:minmax(0,1fr) 265px;gap:15px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{margin-right:0;width:135px}.login-left{padding:40px}.login-copy h1{font-size:35px}}
@media(max-width:920px){.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.stack:last-child{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{width:130px}.login-left{display:none}.login{grid-template-columns:1fr}.login-right{min-height:100vh}.page-head{align-items:flex-start}.profile-name{max-width:95px!important}}
@media(max-width:650px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .18s;width:224px;box-shadow:8px 0 50px #1c332220}.shell.menu-open .sidebar{transform:translateX(0)}.main{width:100%}.mobile-menu{display:inline-flex}.topbar{height:59px;padding:0 15px}.top-actions{gap:9px}.top-actions .today{display:none}.content{padding:22px 15px 35px}.page-head{margin-bottom:20px;gap:10px}h1{font-size:23px}.page-head .btn{padding:9px 11px}.hero{padding:21px;min-height:auto}.hero h2{font-size:21px}.hero p{font-size:11px}.hero-art{display:none}.metrics{gap:10px;margin-bottom:17px}.metric{padding:15px}.metric-value{font-size:28px}.dashboard-grid>.stack:last-child{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.fields{gap:18px 14px}.form-section{padding:18px}.service-form{padding:15px}.detail-head h1{font-size:21px}.toolbar{padding:14px}.search{width:100%}.search input{min-width:0;flex:1}.filters{width:100%}.filter-select{flex:1;max-width:none}.tabs{gap:22px}.top-actions .role-pill{font-size:10px}.task-top{flex-wrap:wrap}.task-card{padding:18px}.card-head{padding:18px}.message-list{padding:0 17px}.message-meta{flex-wrap:wrap}.message-meta time{width:100%;margin-left:0}.file-row{padding:14px;gap:9px}.form-footer{align-items:flex-start}.detail-meta{gap:9px}dialog{max-height:calc(100dvh - 30px)}.modal-body{padding:18px}.modal-head{padding:18px}}
.btn.danger{background:#c13939;color:#fff;border:1px solid #b03434}.btn.danger:hover{background:#a52f2f}.customer-name{white-space:nowrap}
.school-name{min-width:120px;max-width:220px;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
#ai-model-settings>.card-head{flex-wrap:wrap;align-items:flex-start}#ai-model-settings>.card-head>.tag{white-space:nowrap}

.toolbar.list-search-toolbar.delivered-search-toolbar{grid-template-columns:minmax(150px,1fr) auto}
@media(max-width:650px){.toolbar.list-search-toolbar.delivered-search-toolbar{grid-template-columns:minmax(0,1fr)}}

/* Shared attachment picker for all roles. */
.attachment-picker{min-width:0;width:100%;margin-top:8px}.attachment-drop{border:1px dashed #b9cdae;border-radius:10px;padding:18px;background:#f8fbf5;display:flex;align-items:center;flex-direction:column;gap:7px;transition:background .15s,border-color .15s}.attachment-drop>svg{width:24px;height:24px;color:#789765}.attachment-drop>strong{font-size:12px;font-weight:550;color:#506b42;text-align:center}.attachment-drop>span{font-size:11px;color:#819176;line-height:1.7;text-align:center}.attachment-drop.drag-over{background:#eaf3e2;border-color:#62844e;box-shadow:0 0 0 3px #7d9c661c}.attachment-drop:focus-within{border-color:#62844e}.attachment-drop input[type=file]{display:block;width:100%;max-width:360px;padding:6px!important;background:white;font-size:11px;border:1px solid #dde5d5!important;border-radius:6px!important;color:#617552;cursor:pointer}.attachment-drop input::file-selector-button{padding:6px 10px;border:0;border-radius:4px;background:#eaf1e3;color:#486139;margin-right:10px;cursor:pointer}.attachment-list:empty{display:none}.attachment-list{display:grid;gap:6px;margin-top:9px}.attachment-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid #e0e8d9;border-radius:7px;background:white;min-width:0}.attachment-item>svg{width:17px;height:17px;color:#799164;flex-shrink:0}.attachment-name{font-size:12px;flex:1;min-width:0;overflow-wrap:anywhere;color:#4d633e}.attachment-item small{font-size:10px;color:#89977c;white-space:nowrap}.attachment-item .icon-btn{width:28px;height:28px;flex-shrink:0}.attachment-error{white-space:pre-line;color:#ae5550;font-size:11px;line-height:1.7;margin-top:7px}.attachment-error:empty{display:none}

.attachment-drop{cursor:pointer}.attachment-drop:focus-visible{outline:2px solid #62844e;outline-offset:3px}

.attachment-picker input[data-image-input]{display:none!important}.attachment-image-button{margin-top:3px;gap:6px}

#delivered-results .customer-name{font-size:14px;font-weight:700;color:#244b38}#delivered-results .delivered-school{min-width:130px;max-width:240px;white-space:normal;overflow-wrap:anywhere;line-height:1.6}

.writer-reminded-row .customer-name{color:#ac2731;font-size:14px;font-weight:700}
.delivery-version-label{display:inline-flex;align-items:center;margin-top:6px;padding:4px 8px;border:1px solid #8fcbaa;border-radius:5px;background:#d9f1e2;color:#145b3f;font-size:11px;font-weight:700;line-height:1.5;box-shadow:0 1px 2px rgba(20,91,63,.08)}.delivery-version-label a{color:#145b3f;font-weight:700}
.file-version-tag{background:#d9f1e2;color:#145b3f;border:1px solid #8fcbaa;font-size:11px;font-weight:700;letter-spacing:.2px;box-shadow:0 1px 2px rgba(20,91,63,.08)}
.file-version-count{background:#e0f2e6;color:#145b3f;border:1px solid #a5d3b5;font-weight:700}
.table-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 20px;border-top:1px solid var(--line);background:#fff;font-size:12px;color:#586c5f;min-height:66px}
.page-summary{white-space:nowrap;font-variant-numeric:tabular-nums}.page-summary strong{font-weight:600;color:#435a4f}.page-range{margin-left:14px;padding-left:14px;border-left:1px solid #e7ece8;color:#627268}.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:22px;margin-left:auto}.page-size-controls{display:flex;align-items:center;gap:8px}.page-size-controls select{width:112px;height:32px;padding:0 28px 0 11px;border:1px solid #e2e8e3;border-radius:7px;background-color:#fff;font:inherit;color:#405a4b;cursor:pointer}.page-size-controls select:focus-visible,.page-custom-editor input:focus-visible,.page-number:focus-visible,.page-arrow:focus-visible,.page-apply:focus-visible{outline:2px solid #78a18b;outline-offset:2px}
.page-custom-editor{display:flex;align-items:center;gap:6px}.page-custom-editor[hidden],.page-navigation[hidden]{display:none}.page-custom-editor input{width:66px;height:32px;padding:0 8px;border:1px solid #dce5df;border-radius:7px;font:inherit;color:var(--ink)}.page-apply{height:32px;padding:0 10px;border:0;border-radius:7px;background:#eaf3ed;color:#24634e;font:inherit;cursor:pointer}.page-apply:hover{background:#dcece2}
.page-navigation{display:flex;align-items:center;gap:5px}.page-number,.page-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 7px;border:1px solid transparent;border-radius:7px;background:transparent;font:inherit;color:#4f6558;cursor:pointer;transition:background .15s,color .15s}.page-number:hover,.page-arrow:not(:disabled):hover{background:#f0f5f1;color:#24634e}.page-number.is-current{background:#24634e;color:#fff;font-weight:600;border-color:#24634e}.page-arrow svg{width:15px;height:15px}.page-arrow:disabled{color:#cbd4ce;cursor:default}.page-ellipsis{width:22px;text-align:center;color:#65766a}.page-error{flex-basis:100%;margin:0;text-align:right}.page-error:empty{display:none}.server-address-notice{margin:16px 30px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:700px){.table-pagination{padding:12px 14px;gap:10px}.page-actions{gap:12px;flex-wrap:wrap}.page-size-controls select{width:104px}.page-range{display:none}.page-navigation{gap:3px}.page-number,.page-arrow{min-width:28px;height:30px;padding:0 5px}.page-custom-editor input{width:55px}.server-address-notice{margin:12px 16px 0}}
.school-row-actions{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.school-row-actions .btn{flex-shrink:0}
.school-sync-results{max-height:42vh;overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:9px}.school-sync-results table{width:100%;min-width:650px}.school-sync-results th,.school-sync-results td{padding:10px;text-align:left;font-size:11px}.school-sync-results tbody tr+tr{border-top:1px solid var(--line)}.school-sync-results input[type=checkbox]{accent-color:#547f50}
.order-task-edit{margin:12px 0;padding:0;overflow:hidden}.order-task-edit-summary{display:flex;align-items:center;gap:12px;min-height:62px;padding:16px 18px;cursor:pointer;list-style:none}.order-task-edit-summary::-webkit-details-marker{display:none}.order-task-edit-summary strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--ink)}.order-task-edit-summary .tag{white-space:nowrap}.order-task-edit-hint{font-size:11px;color:var(--muted);white-space:nowrap}.order-task-edit-summary>.icon{width:16px;color:var(--muted);transition:transform .16s}.order-task-edit[open]>.order-task-edit-summary>.icon{transform:rotate(90deg)}.order-task-edit[open] .order-task-edit-hint{display:none}.order-task-edit-summary:focus-visible{outline:2px solid var(--green);outline-offset:-4px}.order-task-edit-fields{padding:0 18px 18px}@media(max-width:650px){.order-task-edit-hint{display:none}}
.task-edit-attachments{border-top:1px solid var(--line);padding-top:16px}.task-edit-attachments>.hint{margin:4px 0 12px}.task-edit-existing{display:grid;gap:7px;margin:12px 0}.task-edit-existing>strong{font-size:12px}.task-edit-file{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.task-edit-file>span{display:flex;flex:1;min-width:0;gap:3px;flex-direction:column;overflow-wrap:anywhere}.task-edit-file a{font-size:12px}.task-edit-file small,.task-edit-file em{font-size:11px;color:var(--muted);font-style:normal}.task-edit-file:has(input:checked){border-color:#c98978;background:#fff7f4}.task-edit-file:has(input:checked) em{color:#a44937}.task-edit-upload{margin-top:10px}
.order-task-options{margin:4px 0 18px;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb}.order-task-options .delivery-count{display:block;margin:12px 0 0}.order-task-choice input:disabled+span{cursor:default}.order-task-custom-entry{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-top:14px}.order-task-custom-entry[hidden]{display:none}.order-task-custom-entry label{width:100%;font-size:11px;font-weight:600;color:var(--muted)}.order-task-custom-entry input{flex:1;min-width:180px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
dialog.order-task-dialog{width:940px}
#school-table{border:1px solid var(--line,#dce5dc);border-radius:12px;overflow:hidden;background:#fff}#school-table .school-format-table{table-layout:fixed;min-width:960px;width:100%}#school-table th,#school-table td{text-align:center;vertical-align:middle;padding:18px 12px}#school-table th{background:#f3f7f3;font-weight:600}#school-table td:first-child{font-weight:600;overflow-wrap:anywhere}#school-table .school-col-name{width:17%}#school-table .school-col-education{width:9%}#school-table .school-col-projects{width:29%}#school-table .school-col-files{width:7%}#school-table .school-col-updated{width:16%}#school-table .school-col-actions{width:22%}.school-project-tags{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px}#school-table .school-project-tags .tag{margin:0}#school-table .school-file-count{font-variant-numeric:tabular-nums}.archived-projects>summary{cursor:pointer}.archived-projects section+section{border-top:1px solid #e0e8df;padding-top:16px;margin-top:16px}

.delivery-downloads{display:grid;justify-items:start;gap:8px;min-width:130px}.delivery-file-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:4px;background:#eaf2ec;color:#24634e;font-size:10px}.delivery-file-list{max-width:280px;font-size:11px;color:#7b8d81}.delivery-file-list summary{cursor:pointer;user-select:none}.delivery-file-list[open] summary{color:#24634e;margin-bottom:9px}.delivery-file-list>div{display:grid;gap:8px;padding:10px;border:1px solid #e5ebe6;border-radius:7px;background:#fafcf9}.delivery-file-list a{display:flex;align-items:center;gap:6px;font-size:11px;color:#526d5b}.delivery-file-list a:hover{color:#24634e}.delivery-file-list a span{overflow-wrap:anywhere;flex:1}.delivery-file-list svg{width:13px;height:13px;flex-shrink:0}
/* Shared table readability across company, administrator and writer views. */
table tbody tr:hover { background-color: #f7faf6; }
table td small, table td .muted { color: #5d6e62; }
table .title-cell a { color: #294b36; font-weight: 600; }
table .title-cell small, table .mono { font-size: 12px; color: #5d6e62; }
table .user-name strong { font-size: 13px; font-weight: 600; }
table .customer-name { font-weight: 600; }
table .tag { color: #50614f; font-size: 11px; }
table .badge { color: #50604e; font-size: 11px; font-weight: 600; }
table .badge.working, table .badge.revising { color: #306347; }
table .badge.pending, table .badge.assigned, table .badge.unassigned { color: #805b19; }
table .badge.delivered, table .badge.confirmation { color: #3d608c; }
table .badge.completed, table .badge.resolved { color: #42652d; }
table .badge.waiting { color: #7e562b; }
table .badge.danger { color: #a43235; }
table .today-remaining-count:not(.urgent) { color: #4d624e; }
table .today-remaining-orders a { color: #3b633e; }
table .delivery-version-label, table .delivery-file-list { color: #596e5e; }

/* Return workflow: warm review state and restrained closed state. */
.badge.return_pending, table .badge.return_pending { background:#fff1d6; color:#805516; }
.badge.returned, table .badge.returned { background:#f1e8e7; color:#864343; }
.badge.partial_return, table .badge.partial_return { background:#f3ecdf; color:#765523; }
.return-project { font-weight:600; white-space:normal; }
.return-project.return-paused, table .return-project.return-paused { background:#fff1d6; color:#805516; }
.return-project.return-closed, table .return-project.return-closed { background:#f1e8e7; color:#864343; }
.return-dashboard { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:22px; margin-top:22px; }
.return-dashboard h2 { font-size:15px; color:#294b36; }
.return-dashboard p { margin-top:7px; font-size:12px; color:#5d6e62; }
.return-totals { display:flex; gap:20px; flex-wrap:wrap; color:#5d6e62; font-size:12px; }
.return-totals strong { font-size:22px; color:#294b36; margin-right:5px; }
.return-record { padding:22px; border-top:1px solid #e5ebe4; display:grid; gap:12px; font-size:13px; }
.return-record-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.return-record-head strong { margin-right:12px; color:#294b36; }
.return-reason { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; color:#34483c; }
.return-files { display:flex; flex-wrap:wrap; gap:8px; }
.return-files .btn { white-space:normal; overflow-wrap:anywhere; }
.return-record .delivery-tag-list { max-width:none; }
.return-project-options { border:1px solid #dce4dc; border-radius:9px; padding:14px; margin:18px 0; display:grid; gap:10px; }
.return-project-options legend { padding:0 6px; color:#405346; font-size:12px; font-weight:600; }
.return-project-options label { display:flex; align-items:center; gap:10px; font-size:13px; padding:6px; }
.return-project-options input { width:16px; height:16px; accent-color:#24634e; }
.return-project-options .badge { margin-left:8px; }

/* Operational overview: the dashboard is for current actions; statistics is for period review. */
.return-dashboard { margin:0 0 20px; }
.return-dashboard.is-empty { padding:15px 20px; margin-bottom:14px; background:#f7faf6; border-color:#e3ebe0; }
.return-dashboard.is-empty p { margin-top:4px; }
.dashboard-context-links { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:-4px 0 20px; padding:11px 14px; border:1px solid #e0e9df; border-radius:9px; background:#f7faf6; color:#5d6e62; font-size:12px; }
.dashboard-context-links a { display:inline-flex; align-items:center; gap:5px; color:#2b6a4d; font-weight:650; }
.dashboard-context-links a svg { width:13px; height:13px; }
.dashboard-exceptions { margin:0 0 20px; }
.dashboard-exceptions .section-kicker { margin:0 0 9px; color:#6c7d70; font-size:11px; font-weight:700; letter-spacing:.08em; }
.dashboard-clear-state { margin:-4px 0 20px; padding:12px 14px; border:1px solid #e0e9df; border-radius:9px; background:#f7faf6; color:#607266; font-size:12px; }
.attention-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dashboard-priorities.admin-priorities { grid-template-columns:repeat(3,minmax(0,1fr)); }
.attention-metrics .metric { padding:18px 20px; }
.attention-metrics .metric-value { font-size:28px; }
.stats-toolbar .filters { flex-wrap:wrap; gap:10px; }
.stats-toolbar label { color:#405346; font-size:12px; font-weight:600; }
.stats-filter-hint { color:#6a7b6e; font-size:11px; }
.stats-period-metrics { margin-bottom:20px; }
.stats-filter-body{padding:16px 21px}.stats-main-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.stats-field{display:grid;gap:6px;font-size:11px;color:#4b6354}.stats-field select,.stats-field input{min-height:37px;max-width:180px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:8px 10px;color:#344e3d}.stats-query{flex:1;min-width:180px}.stats-query input{max-width:none;width:100%}.stats-advanced{margin-top:15px}.stats-advanced summary,.stats-definitions summary,.stats-chart-data summary{cursor:pointer;font-size:12px;color:#3e6b51;padding:8px 0}.stats-advanced p,.stats-definitions p{font-size:11px;line-height:1.9;color:#697c6d;margin:10px 0}.stats-advanced .stats-main-filters{padding-top:10px}.stats-cell-sub{display:block;white-space:normal;max-width:300px;font-size:10px;color:#78897c;line-height:1.7}.stats-live-heading{cursor:pointer;list-style:none}.stats-live-heading::-webkit-details-marker{display:none}.stats-live-summary:not([open]) .stats-live-heading{margin-bottom:0}.stats-live-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-current-column{border-left:2px solid #dce9db}.stats-group-table .btn{padding:5px;font-variant-numeric:tabular-nums}.stats-visuals{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px;margin-bottom:22px}.stats-chart-scroll{overflow:auto}.stats-chart-scroll svg{width:100%;height:210px;display:block}.stats-chart-scroll text{font-size:10px;fill:#758775}.stats-chart-legend{display:flex;gap:16px;align-items:center;font-size:11px;margin-bottom:12px}.stats-chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;background:#397b61;margin-right:5px}.stats-chart-legend span:nth-child(2):before{background:#9ab68b}.stats-chart-legend small{margin-left:auto}.stats-chart-data .table-wrap{max-height:250px}.stats-distribution-row{display:grid;grid-template-columns:minmax(70px,1fr) minmax(50px,1.5fr) auto;gap:12px;align-items:center;margin-bottom:15px;font-size:11px}.stats-distribution-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats-distribution-row strong{font-size:11px;font-weight:500}.stats-record-card{margin-top:22px}.stats-detail-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 16px}.stats-detail-tabs button{padding:7px 10px;border:1px solid var(--line);border-radius:6px;color:#627763;font-size:11px}.stats-detail-tabs button[aria-selected=true]{background:#eaf2e7;color:#255b43;border-color:#b8ceb8}.stats-definitions{margin-top:20px;padding:12px 18px;border:1px solid var(--line);border-radius:10px}.stats-field input:focus-visible,.stats-field select:focus-visible,.stats-detail-tabs button:focus-visible,.stats-live-heading:focus-visible{outline:2px solid var(--green);outline-offset:2px}.writer-period-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1000px){.stats-visuals{grid-template-columns:1fr}.writer-period-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.stats-main-filters{align-items:stretch}.stats-field{flex:1;min-width:140px}.stats-field input,.stats-field select{max-width:100%;width:100%}.stats-live-metrics,.writer-period-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-filter-body{padding:14px}.stats-visuals{gap:16px}.stats-detail-tabs{padding:0 14px 12px}}@media(max-width:420px){.stats-period-metrics,.stats-live-metrics{grid-template-columns:1fr}.stats-chart-legend{flex-wrap:wrap}}
.stats-live-summary { margin:0 0 24px; padding:17px 20px 15px; border:1px solid #e0e9df; border-radius:12px; background:#f7faf6; }
.stats-live-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:13px; }
.stats-live-heading > div { display:grid; gap:4px; }
.stats-live-heading strong { color:#294b36; font-size:14px; }
.stats-live-heading span { color:#6a7b6e; font-size:11px; }
.stats-live-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.stats-live-metrics .metric { min-height:0; padding:12px 14px; border-color:#e0e9df; box-shadow:none; background:#fff; }
.stats-live-metrics .metric:hover { transform:none; box-shadow:0 4px 12px rgba(31,76,52,.07); }
.stats-live-metrics .metric-top { font-size:11px; }
.stats-live-metrics .metric-value { font-size:22px; }
.stats-live-metrics .metric small { font-size:10px; }
.stats-live-footer { display:flex; gap:10px 18px; flex-wrap:wrap; margin-top:12px; color:#6a7b6e; font-size:11px; }
table td.stat-overdue { color:#b33232; font-weight:700; }
#metric-detail-results .stats-note { margin:0 0 16px; color:#526657; }
#metric-detail-results .table-wrap { border:1px solid #e5ebe4; border-radius:8px; }
#metric-detail-results .table-pagination { padding-left:4px; padding-right:4px; }
@media(max-width:900px){.stats-live-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard-priorities.admin-priorities { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:700px){.attention-metrics { grid-template-columns:1fr; }.stats-toolbar .filter-select { max-width:100%; }.stats-live-metrics { grid-template-columns:1fr; }.dashboard-priorities.admin-priorities { grid-template-columns:1fr; }}

.dashboard-writer-load { margin-bottom:24px; }

.session-notice{grid-template-columns:1fr}.session-notice .login-card{max-width:420px}.session-notice .login-card>p{color:#526657}
.accept-submission{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.accept-submission input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--green)}.accept-submission strong{display:block;color:#294b36}.accept-submission small{display:block;margin-top:4px;color:#526657}

/* Urgent rows use a subtle background; individual urgent projects carry badges. */
table tbody tr.writer-urgent-row{background:#fff8f7}table tbody tr.writer-urgent-row:hover{background:#fff1ef}
.order-table-row,.ticket-table-row{cursor:pointer}.order-table-row:focus-visible,.ticket-table-row:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.writer-urgent-message{margin:12px 0;padding:12px 14px;border:1px solid #f0cfca;border-radius:8px;background:#fff6f4}
.writer-urgent-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;margin:6px 0}

.message-alert-entry{position:relative;gap:7px;color:#294b36;background:#f2f6ef;border-color:#dbe6d8}
.message-alert-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#b33939;color:white;font-size:11px;line-height:1}
.message-alert-summary{font-size:13px;color:#526657;margin-bottom:15px}.message-alert-list{display:grid;gap:12px}
.message-search{padding:18px;margin-bottom:18px;border:1px solid #dbe6d8;border-radius:14px;background:#f5f8f2}
.message-date-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.message-date-tabs button{padding:8px 16px;border:1px solid #dbe6d8;border-radius:20px;background:#fff;color:#344b3c;font:inherit;font-size:13px;cursor:pointer}.message-date-tabs button:hover{background:#e9f0e4}.message-date-tabs button.is-active{background:#365b40;border-color:#365b40;color:#fff;box-shadow:0 3px 8px #365b4020}
.message-search-fields{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.message-search-fields label{display:grid;gap:7px;color:#344b3c;font-size:12px;font-weight:600}.message-query{flex:1;min-width:220px}.message-search-fields input{width:100%;min-width:0;background:#fff}.message-custom-dates{display:flex;align-items:flex-end;gap:9px}.message-custom-dates[hidden]{display:none}.message-custom-dates>span{padding-bottom:11px;color:#60705e}.message-search-hint{margin:12px 0 0;font-size:12px;color:#526657;line-height:1.6}
.message-alert-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.message-search-fields input{height:40px;padding:9px 12px;border:1px solid #d5dfd2;border-radius:8px;color:#263e30;font-weight:400;outline:none}.message-search-fields input:focus{border-color:#7b9e81;box-shadow:0 0 0 3px #365b4010}.message-search-fields input::placeholder{color:#71816f}.message-search-fields>.btn{min-height:40px}
@media(max-width:650px){.message-search{padding:12px}.message-query{flex-basis:100%}.message-custom-dates{width:100%}.message-custom-dates label{flex:1;min-width:0}.message-date-tabs button{padding:7px 12px}}
.message-alert-card{padding:17px;border:1px solid #dde6da;border-radius:10px;background:#fbfdf9}
.message-alert-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:9px}.message-alert-heading>strong{color:#294b36;font-size:15px}.message-alert-heading>span{color:#526657;font-size:12px}.message-alert-heading>.message-alert-count{margin-left:auto}
.message-alert-card h3{line-height:1.6;overflow-wrap:anywhere}.message-alert-card>small{display:block;font-size:11px;color:#5d6e62;margin-top:6px}.message-alert-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;color:#34483c;margin:12px 0}.message-alert-card>.actions{justify-content:flex-end}
.message-toast,.business-toast{display:flex;align-items:center;gap:12px;max-width:460px}.message-toast>span,.business-toast>span{overflow-wrap:anywhere}.message-toast .btn,.business-toast .btn{flex-shrink:0;color:#294b36}
.top-actions a[href="#/notifications"] .message-alert-count,.notification-health .message-alert-count{position:absolute;top:-3px;right:-9px;min-width:18px;height:18px;font-size:10px}
.notification-health{color:#b33939}
.notification-item a{min-width:0;overflow-wrap:anywhere}.notification-item>.btn{flex-shrink:0;white-space:nowrap}
@media(max-width:650px){.business-toast{flex-wrap:wrap}.notification-item{gap:8px;padding:15px 12px;flex-wrap:wrap}.notification-item>.btn{margin-left:44px}.notification-item a{flex-basis:calc(100% - 48px)}.topbar .breadcrumb>span,.topbar .breadcrumb>svg,.topbar .role-pill{display:none}.topbar .breadcrumb{min-width:0}.topbar .breadcrumb>b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .top-actions{gap:8px;flex-shrink:0}}
.message-arrival{background:#f0f6e9;border-radius:8px;outline:1px solid #d5e3c8;outline-offset:5px}
.worktool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.worktool-form{padding:18px;border-bottom:1px solid var(--line);display:grid;gap:14px}.worktool-form .form-grid{gap:14px}.worktool-form .btn{justify-self:start}.worktool-grid .card-head p,.worktool-grid+.card .card-head p{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.6}.worktool-form small.muted,.worktool-grid table small{display:block;margin-top:4px;font-size:11px}.worktool-grid table td,.worktool-grid table th{vertical-align:middle}.worktool-grid .badge{white-space:nowrap}.worktool-binding-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fbfcf9;flex-wrap:wrap}.worktool-binding-list-head h3{font-size:13px;color:var(--ink);font-weight:650}.worktool-binding-list-head p{margin-top:4px;color:var(--muted);font-size:11px}.worktool-binding-list-head .actions{justify-content:flex-end;flex-wrap:wrap}.worktool-binding-list[hidden]{display:none}
.thesis-history-card{margin-top:18px}.thesis-history-tabs{gap:4px;align-items:center}.thesis-history-tabs .tab{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;font-size:12px}.thesis-history-tabs .tab span{color:var(--muted);font-size:11px}.thesis-history-item{border-top:1px solid var(--line);background:#fff}.thesis-history-item summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px 18px;cursor:pointer;list-style:none}.thesis-history-item summary::-webkit-details-marker{display:none}.thesis-history-item summary:hover{background:#fafcf8}.thesis-history-kind{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.thesis-history-kind.topics{color:#267156;background:#eaf6ef}.thesis-history-kind.outline{color:#356aa0;background:#edf4ff}.thesis-history-main{min-width:0;display:grid;gap:4px}.thesis-history-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:13px}.thesis-history-main small{color:var(--muted);font-size:11px}.thesis-history-item time{color:var(--muted);font-size:11px;white-space:nowrap}.thesis-history-chevron{color:var(--muted);transition:transform .2s}.thesis-history-item[open] .thesis-history-chevron{transform:rotate(90deg)}.thesis-history-chevron .icon{width:15px;height:15px}.thesis-history-body{padding:0 18px 18px 83px}.thesis-history-topics{display:grid;gap:8px}.thesis-history-topics>div{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fbfdf9;display:grid;gap:3px}.thesis-history-topics strong{font-size:12px;color:var(--ink)}.thesis-history-topics small{font-size:11px;color:var(--muted)}.thesis-history-outline{margin:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fbfdf9;color:var(--ink);font:12px/1.8 inherit;white-space:pre-wrap;max-height:360px;overflow:auto}
@media(max-width:900px){.worktool-grid{grid-template-columns:1fr}}
@media(max-width:650px){.top-actions{gap:5px}.message-alert-entry{padding:7px}.message-alert-entry>span{font-size:11px}.message-alert-card{padding:13px}.message-toast{flex-wrap:wrap}}

.writer-handoff .handoff-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 10px}.handoff-toolbar label{display:flex;align-items:center;gap:8px;color:#26354b;font-weight:600}.writer-handoff input[type=checkbox]{width:16px;height:16px;accent-color:#315b9c}.writer-handoff #handoff-summary{color:#41516a;margin-bottom:14px;font-size:13px}.writer-handoff .form-grid{margin-top:22px}.writer-handoff table td{vertical-align:top}.writer-handoff table small{color:#526078}.writer-handoff .table-wrap{border:1px solid #e1e6ee;border-radius:10px}
dialog.table-modal{width:min(1280px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
dialog.table-modal .table-wrap{overflow-x:visible}
dialog.table-modal table{table-layout:fixed;white-space:normal}
dialog.table-modal th,dialog.table-modal td{padding:13px 11px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
dialog.table-modal .title-cell{min-width:0;max-width:none}
dialog.table-modal .title-cell a{white-space:normal;overflow:visible;text-overflow:clip}
dialog.table-modal td .btn{white-space:normal;text-align:center;margin:2px 0}
dialog.table-modal .mono{white-space:normal}
dialog.table-modal #metric-detail-results th:nth-child(1){width:12%}
dialog.table-modal #metric-detail-results th:nth-child(2){width:14%}
dialog.table-modal #metric-detail-results th:nth-child(3){width:27%}
dialog.table-modal #metric-detail-results th:nth-child(4){width:18%}
dialog.table-modal #metric-detail-results th:nth-child(5){width:15%}
dialog.table-modal #metric-detail-results th:nth-child(6){width:14%}
dialog.table-modal #handoff-table th:nth-child(1){width:6%}
dialog.table-modal #handoff-table th:nth-child(2){width:13%}
dialog.table-modal #handoff-table th:nth-child(3){width:13%}
dialog.table-modal #handoff-table th:nth-child(4){width:21%}
dialog.table-modal #handoff-table th:nth-child(5){width:18%}
dialog.table-modal #handoff-table th:nth-child(6){width:10%}
dialog.table-modal #handoff-table th:nth-child(7){width:19%}
@media(max-width:760px){dialog.table-modal .table-wrap{border:0!important}dialog.table-modal table,dialog.table-modal tbody,dialog.table-modal tr,dialog.table-modal td{display:block;width:100%}dialog.table-modal thead{display:none}dialog.table-modal tbody{display:grid;gap:12px}dialog.table-modal tbody tr{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}dialog.table-modal tbody td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}dialog.table-modal tbody td:last-child{border-bottom:0}dialog.table-modal tbody td::before{content:attr(data-label);font-size:11px;font-weight:650;color:#4c6252}dialog.table-modal .writer-handoff .handoff-toolbar{align-items:flex-start;flex-wrap:wrap}}

.service-requirements>summary{cursor:pointer;list-style:none;margin:0;gap:12px;min-height:24px}.service-requirements>summary::-webkit-details-marker{display:none}.service-requirements>summary strong{color:#345447;font-size:14px}.service-collapse-hint{margin-left:auto;font-size:11px;color:#63776b}.service-requirements>summary>.icon{flex-shrink:0;transition:transform .16s;color:#57725f}.service-requirements[open]>summary{margin-bottom:20px}.service-requirements[open]>summary>.icon{transform:rotate(90deg)}.service-requirements[open]>summary .service-collapse-hint{visibility:hidden}.service-requirements>summary:focus-visible{outline:2px solid var(--green);outline-offset:7px;border-radius:4px}.paper-only-fields{display:contents}.paper-only-fields[hidden]{display:none}.service-requirements .form-grid>.full{grid-column:1/-1}@media(max-width:650px){.service-collapse-hint{font-size:10px}}

/* Order state filters share the list's search scope and keep readable counts. */
.order-status-panel{padding:20px 21px 18px;border-bottom:1px solid #e4ebe7;background:linear-gradient(180deg,#fbfdfb 0%,#fff 100%);border-radius:12px 12px 0 0}
.order-status-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.order-status-heading>strong{font-size:13px;color:#203d34;font-weight:650}.order-status-heading>span{font-size:11px;color:#60786d}
/* auto-fill reserves unused columns so fewer role-specific states keep the same compact width. */
.order-status-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:9px}
.order-status-groups{display:grid;gap:12px}
.order-delivery-filters{grid-template-columns:repeat(5,minmax(0,1fr));padding-top:12px;border-top:1px solid #e4ebe7}
@media(max-width:1100px){.order-delivery-filters{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
.order-status-button{--status-accent:#567968;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:49px;padding:11px 10px;border:1px solid #e0e8e3;border-radius:9px;background:#fff;color:#365347;cursor:pointer;text-align:left;transition:background .15s,border-color .15s,box-shadow .15s}
.order-status-label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;font-weight:550}.order-status-dot{width:6px;height:6px;border-radius:50%;background:var(--status-accent);flex-shrink:0}
.order-status-count{display:flex;align-items:center;justify-content:center;min-width:28px;padding:2px 7px;border-radius:6px;background:#f0f5f2;color:#284e3e;font-size:16px;line-height:1.35;font-weight:650;font-variant-numeric:tabular-nums}
.order-status-button.unassigned,.order-status-button.assigned{--status-accent:#ba8730}.order-status-button.working{--status-accent:#28755c}.order-status-button.revising{--status-accent:#8263ae}.order-status-button.delivered,.order-status-button.completed{--status-accent:#4f79a8}.order-status-button.return_pending,.order-status-button.returned,.order-status-button.partial_return{--status-accent:#b76a59}
.order-status-button:hover{border-color:#90b4a3;background:#f5faf7;box-shadow:0 2px 6px #1f574008}.order-status-button.is-active{background:#23644f;border-color:#23644f;color:#fff;box-shadow:0 3px 9px #2058401c}.order-status-button.is-active .order-status-dot{background:#bce5d0}.order-status-button.is-active .order-status-count{background:#ffffff22;color:#fff}.order-status-button:focus-visible{outline:3px solid #8dbca6;outline-offset:3px}
.order-list-card .order-list-filters:not(:has(select)){display:none}.order-list-card .toolbar>.search{flex:1}.order-list-card .search input{width:100%;min-width:120px}.order-status-panel .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:800px){.order-status-heading{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:440px){.order-status-panel{padding:16px 14px}.order-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-status-button{min-height:45px}}

.order-list-card .toolbar.list-search-toolbar{grid-template-columns:minmax(180px,1fr) auto}
@media(max-width:1050px){.order-list-card .toolbar.list-search-toolbar{grid-template-columns:minmax(0,1fr)}}

.delivery-custom-add{width:auto;border:1px dashed #9cb9a7;background:#f8fbf8;color:#24634e;cursor:pointer}.delivery-custom-add:hover{border-color:#4d8a6e;background:#edf7f0}.delivery-custom-add svg{width:14px;height:14px}.custom-service-hint{margin-top:8px;color:#728379;font-size:11px}.custom-delivery-choice span{font-weight:600}
.custom-delivery-choice em{font-size:10px;font-style:normal;font-weight:600;color:#557568;background:#edf5ef;padding:2px 6px;border-radius:4px}.custom-sync-option{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:13px 14px;border:1px solid #d8e6dd;border-radius:9px;background:#f6faf7;cursor:pointer}.custom-sync-option input{margin-top:3px;accent-color:#24634e}.custom-sync-option span{display:grid;gap:5px}.custom-sync-option strong{font-size:12px;color:#254f3f}.custom-sync-option small{font-size:11px;line-height:1.6;color:#62786b}.order-only-mark{display:inline-flex;align-items:center;border:1px solid #d4e4e1;border-radius:5px;background:#eef6f5;color:#326f76;font-size:10px;font-weight:600;padding:3px 7px}
.list-search-feedback{display:flex;justify-content:space-between;gap:10px;min-height:22px;padding:0 20px 10px}
.list-date-count{font-size:12px;color:#607568}
.writer-private-note{border:1px solid #ead9a7;background:linear-gradient(145deg,#fffdf3,#fff9e8);box-shadow:0 4px 16px rgba(173,133,43,.08)}
.writer-private-note .card-head{align-items:flex-start}.writer-private-note h2{color:#805e1c;display:flex;align-items:center;gap:7px}.writer-private-note h2 .icon{width:16px;height:16px}.writer-private-note p{margin-top:4px;color:#8a7547}.private-note-lock{padding:5px 9px;border-radius:999px;background:#fff1bd;color:#7d5c1b;font-size:11px;white-space:nowrap}.writer-private-note textarea{width:100%;min-height:100px;resize:vertical;border:1px solid #e8d49a;border-radius:9px;background:#fffef8;padding:12px 14px;color:#4c4127;line-height:1.7}.private-note-actions{justify-content:space-between;margin-top:10px}.private-note-actions small{color:#8e7a50}
/* Conversational layout: own messages sit on the right, incoming on the left. */
.chat-list{display:flex;flex-direction:column;gap:14px;padding:20px;background:linear-gradient(180deg,#f7faf7,#fbfdfb);max-height:560px;overflow:auto}
.chat-list .message{display:flex;align-items:flex-end;gap:9px;width:100%}.chat-list .message-self{flex-direction:row-reverse}.chat-list .message-body{max-width:min(78%,620px);display:flex;flex-direction:column;align-items:flex-start}.chat-list .message-self .message-body{align-items:flex-end}.chat-list .message-content{padding:10px 14px;border-radius:5px 16px 16px 16px;background:#f0f5f1;color:#294438;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 1px 2px rgba(31,67,48,.06)}.chat-list .message-self .message-content{background:#24634e;color:#fff;border-radius:16px 5px 16px 16px}.chat-list .message-meta{display:flex;align-items:center;gap:7px;margin:0 5px 4px;font-size:11px;color:#718177}.chat-list .message-self .message-meta{flex-direction:row-reverse}.chat-list .message-meta .tag{font-size:10px}.chat-list .avatar{flex:0 0 32px;width:32px;height:32px;font-size:13px}.chat-card .message-form{border-top:1px solid #e4ebe6;padding:16px 20px;background:#fff}.chat-card .message-form textarea{min-height:76px;border-radius:10px}
@media(max-width:700px){.list-search-feedback{padding-left:14px;padding-right:14px}.chat-list{padding:14px 10px}.chat-list .message-body{max-width:82%}.chat-card .message-form{padding:14px}.private-note-lock{font-size:10px}}

/* Writer order date controls: calm green chips aligned with the workspace palette. */

.writer-order-status-panel .order-status-button{cursor:pointer}

.writer-note-heading{color:#805e1c}.writer-note-cell{min-width:96px}.writer-note-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #e6cf8d;border-radius:999px;background:#fff6d8;color:#795919;font-size:11px;font-weight:650;white-space:nowrap;box-shadow:0 2px 5px rgba(128,94,28,.08)}.writer-note-badge:hover{background:#ffefb9;color:#654912;border-color:#d7b86a}.writer-note-badge .icon{width:13px;height:13px}.writer-note-empty{color:#b7c1b9}

.chat-card .card-head h2{font-size:17px;color:#203d34;font-weight:700}.chat-card .card-head p{font-size:12px;color:#5e7465}.chat-list .message-meta strong{font-size:13px;color:#274c3a;font-weight:750}.chat-list .message-self .message-meta strong{color:#1d573f}.chat-list .message-content{font-size:14px;line-height:1.8;padding:12px 16px}
.message-form textarea.chat-drop-active{border-color:#4d9672!important;background:#f1faf3!important;box-shadow:0 0 0 4px #8fc5a033!important}
.chat-card .message-form textarea{font-size:14px;line-height:1.8;padding:13px 15px;border-radius:11px}

.chat-composer .attachment-list:empty,.chat-composer .attachment-error:empty{display:none}.chat-composer .attachment-list:not(:empty){margin-top:10px}.chat-composer textarea{width:100%}.chat-composer input[hidden]{display:none}

.chat-image-attachment{max-width:100%;width:260px;margin-top:5px}.chat-image-button{display:block;max-width:100%;padding:0;border:1px solid #d5e4db;border-radius:12px;overflow:hidden;background:#eef4ef;cursor:zoom-in;box-shadow:0 2px 8px #203d3410}.chat-image-button:hover{border-color:#6d9b81}.chat-image-button:focus-visible{outline:3px solid #80ad93;outline-offset:3px}.chat-image-button .chat-image{display:block;max-width:100%;max-height:280px;object-fit:contain}.chat-image-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#526c5f;font-size:11px;padding:3px 2px}.chat-image-caption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-image-caption .icon-btn{flex-shrink:0}.chat-image-fallback{padding:20px;line-height:1.7;color:#526c5f}.chat-image[hidden],.chat-image-fallback[hidden]{display:none}.image-preview-modal{width:min(960px,94vw)}.chat-image-viewer{display:flex;justify-content:center;align-items:center;min-height:160px;background:#f1f5f2;border-radius:12px;overflow:auto}.chat-image-viewer img{display:block;max-width:100%;max-height:68vh;object-fit:contain}.chat-image-viewer-name{color:#526c5f;font-size:12px;overflow-wrap:anywhere;margin:10px 0}.chat-image-viewer+.chat-image-viewer-name~.modal-foot{margin-top:14px}
.chat-image-button{width:100%}.chat-image-fallback:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:110px;text-align:center;font-size:12px}

.message-pagination{margin-top:14px}.message-pagination .page-summary{color:#526657}.message-pagination .page-navigation{margin-left:auto}
.detail-meta .revision-order-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #a8c4eb;border-radius:8px;background:#eaf3ff;color:#2458a6;font-size:13px;font-weight:700;line-height:1.4}.revision-order-badge .icon{width:16px;height:16px}
.brand strong{font-size:19px;letter-spacing:1.2px;white-space:nowrap}.brand small{font-size:11px;letter-spacing:.8px;color:#60766b;white-space:nowrap;margin-top:2px}

/* Collapsed delivery task cards */
.task-summary{display:flex;justify-content:space-between;align-items:start;gap:10px;cursor:pointer;list-style:none;margin-bottom:0}.task-summary::-webkit-details-marker{display:none}.task-summary:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:5px}.task-card[open]>.task-summary{margin-bottom:20px}.task-toggle{display:inline-flex;color:#7b8c7c;transition:transform .16s}.task-card[open] .task-toggle{transform:rotate(90deg)}

.writing-access-switch{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce4d8;border-radius:999px;background:#f7f9f5;color:#788573;padding:4px 8px 4px 5px;font-size:10px;line-height:1.4;white-space:nowrap}.writing-access-switch:hover{border-color:#b8cab3;background:#f1f6ee}.writing-access-switch.is-open{border-color:#b8d0b8;background:#edf6eb;color:#376e4c}.writing-access-track{position:relative;width:25px;height:15px;border-radius:999px;background:#c4ccc0;transition:background .16s}.writing-access-knob{position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:white;box-shadow:0 1px 3px #263d2930;transition:transform .16s}.writing-access-switch.is-open .writing-access-track{background:#5f9873}.writing-access-switch.is-open .writing-access-knob{transform:translateX(10px)}.writing-access-switch:focus-visible{outline:2px solid var(--green);outline-offset:2px}.writing-access-status{display:inline-flex;border-radius:4px;padding:4px 7px;background:#f2f4ef;color:#7b8678;font-size:10px;white-space:nowrap}.writing-access-status.is-open{background:#eaf3e8;color:#4c7d59}.writing-access-notice{margin-bottom:16px}.writing-lock-label{font-size:10px;color:#9a854f}.badge.writing_closed{background:#f3f1e9;color:#8b7b50}.badge.writing_paused{background:#fbefe7;color:#a26548}.badge.accepted_waiting{background:#eef3e8;color:#6f8052}
.badge.held{background:#fff4db;color:#977228}.badge.cancelled{background:#f1f2ef;color:#899084}.order-launch-actions{flex-wrap:nowrap}.order-launch-submit{flex-wrap:wrap;gap:12px}.order-launch-copy{display:grid;gap:6px;margin-right:auto;min-width:220px}.order-launch-copy strong{font-size:13px;color:var(--ink)}.order-launch-copy small{font-size:11px;line-height:1.7}.launch-notice{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;border-color:#eadab6;background:#fffbf1;color:#8a703d}.launch-notice strong{font-size:13px}.launch-notice p{font-size:12px;margin-top:5px;line-height:1.8}.launch-notice>.icon{margin-top:3px}.order-status-button[data-status="held"] .order-status-dot{background:#c59b48}
@media(max-width:650px){.order-launch-copy{flex-basis:100%;order:-1}.order-launch-submit>button{flex:1;min-width:150px}.order-launch-actions{flex-wrap:wrap}}
/* Shared order labels */
.order-tag-list{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.order-tag{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #cfe0d5;border-radius:999px;background:#f0f7f2;color:#35624b;font-size:10px;line-height:1.5;white-space:nowrap}.order-tag-empty{color:#a0aaa1;font-size:11px}.order-tags-cell{min-width:120px;max-width:220px}.order-list-tags{display:grid;gap:5px;min-width:108px}.order-list-personal-tags{display:flex;align-items:center}.order-list-personal-tags .btn{max-width:100%;padding:3px 6px;min-height:26px}.order-tags-detail{grid-column:1/-1;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.order-tags-detail label{display:block;margin-bottom:9px;color:#98a08f;font-size:10px}.order-tags-detail .order-tag{font-size:11px}.order-list-filters{align-items:center}.order-list-filters #order-tag{min-width:130px}.writer-tags-heading{color:#5c7f68}.writer-order-tag{border-color:#e5d39a;background:#fff8df;color:#7b631c}.writer-order-tag-list{gap:6px}.writer-tags-detail{border-top-color:#e8dfc2}.writer-tags-detail .writer-tags-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.writer-tags-heading label{margin:0}.writer-tags-heading .btn{padding:4px 8px;min-height:27px}
.resizable-table-wrap{overflow-x:auto}.resizable-table{position:relative}.resizable-table thead th{position:relative;white-space:nowrap}.column-resizer{position:absolute;z-index:2;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;touch-action:none}.column-resizer::after{content:'';position:absolute;top:25%;bottom:25%;left:4px;width:1px;background:transparent;transition:background .12s}.resizable-column-head:hover .column-resizer::after,.resizable-table.is-resizing .column-resizer::after{background:#83a88e}.resizable-table.is-resizing,.resizable-table.is-resizing *{cursor:col-resize!important;user-select:none}.resizable-table .column-resizer:focus-visible{outline:2px solid #5f9a73;outline-offset:-2px}
.order-list-card{overflow:visible}.order-advanced-filters{position:relative;z-index:4;display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid #dfe6df;border-radius:10px;background:#f8faf7}.order-advanced-filters .filter-select,.order-advanced-filters .order-code-filter{min-width:145px;height:37px;background:#fff}.order-advanced-filters .order-code-filter{width:190px}.order-date-control{position:relative}.order-date-trigger{display:inline-flex;align-items:center;gap:7px;min-width:205px;height:37px;padding:0 12px;border:1px solid #d9e2d8;border-radius:7px;background:#fff;color:#4e6255;font:inherit;font-size:12px;cursor:pointer}.order-date-trigger:hover,.order-date-trigger.is-active{border-color:#6eaa82;color:#286447;box-shadow:0 0 0 3px #6eaa8218}.order-date-trigger .icon{width:16px;height:16px}.order-date-popover{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:600px;max-height:calc(100vh - 110px);padding:0;border:1px solid #d9e2da;border-radius:9px;background:#fff;box-shadow:0 15px 35px #253a2b22;overflow:auto}.order-date-popover[hidden]{display:none}.order-date-quick{display:flex;gap:5px;padding:12px 14px;border-bottom:1px solid #e6ece6}.order-date-quick button{padding:7px 14px;border:1px solid transparent;border-radius:5px;background:transparent;color:#506659;font:inherit;font-size:12px;cursor:pointer}.order-date-quick button:hover{border-color:#5c91d9;color:#2869bc;background:#f5f8ff}.order-calendar-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;color:#4a5b4f;font-size:12px}.order-calendar-head .icon-btn{width:27px;height:27px;padding:0;border:0;background:transparent;color:#66756a;font-size:20px}.order-calendars{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:0 16px 14px}.order-calendar-month{min-width:0}.order-calendar-title{display:flex;justify-content:space-between;align-items:center;margin:2px 0 9px;color:#34493a;font-size:12px}.order-calendar-title span{color:#81a08a;font-size:10px}.order-calendar-weekdays,.order-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.order-calendar-weekdays{margin-bottom:4px;color:#829087;font-size:10px}.order-calendar-day{height:29px;border:0;border-radius:50%;background:transparent;color:#425248;font:inherit;font-size:11px;cursor:pointer}.order-calendar-day:hover{background:#e9f2ff;color:#1e68c5}.order-calendar-day.is-outside{color:#b7beb9}.order-calendar-day.is-in-range{border-radius:0;background:#e8f0fc;color:#315f9f}.order-calendar-day.is-selected{background:#1264d6;color:#fff}.order-date-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid #e6ece6;color:#66756a;font-size:11px}.order-date-footer .actions{gap:7px}.order-date-footer .btn{min-height:29px}.order-advanced-filters+.toolbar{margin-top:0}
@media(min-width:761px){.order-date-popover{max-width:calc(100vw - 24px)}}
@media(max-width:760px){.order-date-popover{position:fixed;left:12px;right:12px;top:110px;width:auto;max-width:none;max-height:calc(100vh - 130px);overflow:auto}.order-calendars{gap:8px;padding-left:9px;padding-right:9px}.order-advanced-filters{align-items:stretch}.order-advanced-filters .order-date-control,.order-advanced-filters .order-date-trigger,.order-advanced-filters .filter-select,.order-advanced-filters .order-code-filter{width:100%;min-width:0}.order-advanced-filters .btn{flex:1}}

.ai-order-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #d8e7dc;border-radius:10px;background:linear-gradient(110deg,#f4faf5,#f8fbf7)}.ai-order-tools-copy{display:grid;gap:4px}.ai-order-tools-copy strong{display:flex;align-items:center;gap:7px;color:#24563f;font-size:12px}.ai-order-tools-copy strong svg{width:16px;height:16px;color:#4b9671}.ai-order-tools-copy span{font-size:10px;color:#789080}.ai-order-tools-actions{display:flex;gap:8px;flex-wrap:wrap}.ai-order-tools-actions .btn{border-color:#c8dfcf;color:#286246;background:#fff}.ai-order-tools-actions .btn:hover{background:#edf8f0;border-color:#77ae8a}.generated-topic-list{display:grid;gap:10px;max-height:50vh;overflow:auto}.generated-topic-choice{display:flex;gap:10px;padding:13px 14px;border:1px solid #dfe9df;border-radius:9px;background:#fbfdfb;cursor:pointer}.generated-topic-choice:hover{border-color:#83ae8d;background:#f6fbf6}.generated-topic-choice input{margin-top:4px;accent-color:#286246}.generated-topic-choice span{display:grid;gap:4px;min-width:0}.generated-topic-choice strong{font-size:12px;color:#294b38;line-height:1.6}.generated-topic-choice small,.generated-topic-choice em{font-size:10px;color:#77907d;line-height:1.65;font-style:normal}.generated-topic-choice em{color:#9a8661}.modal-body textarea[name="generated_outline"]{min-height:360px;font-size:12px;line-height:1.8}
.thesis-tools-head{position:relative;isolation:isolate;padding:28px 32px;margin-bottom:26px;border:1px solid #dbe9df;border-radius:18px;background:linear-gradient(120deg,#edf7f0 0%,#f8faf4 58%,#f2f6ed 100%);overflow:hidden}.thesis-tools-head:after{content:'';position:absolute;z-index:-1;right:-42px;top:-72px;width:245px;height:245px;border:1px solid #cfe4d5;border-radius:50%;box-shadow:0 0 0 25px #ffffff20,0 0 0 52px #ffffff18}.thesis-tools-head .eyebrow{color:#508166;font-weight:650}.thesis-tools-head h1{font-size:30px;letter-spacing:-.8px}.thesis-tools-head p{max-width:620px;color:#647b6b;font-size:12px}.thesis-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.thesis-tool-card{position:relative;min-width:0;border-color:#dce8df;border-radius:18px;box-shadow:0 10px 28px rgba(31,76,52,.07);background:#fff}.thesis-tool-card:before{content:'';display:block;height:4px;background:#4d9672}.thesis-tool-card.thesis-outline-card:before{background:#5d87b6}.thesis-tool-card .card-head{align-items:flex-start;padding:25px 27px 20px;background:linear-gradient(180deg,#fbfdfb,#fff)}.thesis-tool-card .card-head h2{display:flex;align-items:center;gap:9px;margin-top:7px;font-size:18px;letter-spacing:-.2px}.thesis-tool-card .card-head h2 svg{width:19px;height:19px;color:#4b9671}.thesis-outline-card .card-head h2 svg{color:#5d87b6}.thesis-tool-card .card-head p{max-width:380px;font-size:11px;line-height:1.8;color:#74877a}.thesis-card-kicker{font-size:10px;letter-spacing:1.2px;color:#6a9b7c;font-weight:700}.thesis-outline-card .thesis-card-kicker{color:#7292b6}.thesis-card-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eaf5ed;color:#448061;font-size:12px;font-weight:750}.thesis-outline-card .thesis-card-mark{background:#edf3fa;color:#5e83aa}.thesis-tool-card>form{padding:0 27px 24px}.thesis-tool-card .form-grid{gap:17px 16px}.thesis-tool-card .field label{font-size:11px;color:#4f6b5a;margin-bottom:8px}.thesis-tool-card .field input:not([type=checkbox]),.thesis-tool-card .field textarea,.thesis-tool-card .field select{min-height:43px;padding:11px 13px;border-color:#d7e4da;border-radius:10px;color:#314e3d;background:#fbfdfb;transition:border-color .16s,box-shadow .16s,background .16s}.thesis-tool-card .field textarea{min-height:96px}.thesis-tool-card .field input:focus,.thesis-tool-card .field textarea:focus,.thesis-tool-card .field select:focus{background:#fff;border-color:#65a07a;box-shadow:0 0 0 4px #65a07a18}.thesis-outline-card .field input:focus,.thesis-outline-card .field textarea:focus,.thesis-outline-card .field select:focus{border-color:#7198c1;box-shadow:0 0 0 4px #7198c118}.tool-submit-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:23px;padding-top:18px;border-top:1px solid #edf2ed}.tool-submit-row .stats-note{max-width:230px;margin:0;font-size:10px;line-height:1.7}.tool-submit-row .btn{min-height:42px;padding:0 17px;border-radius:10px;box-shadow:0 5px 12px rgba(31,83,55,.13)}.thesis-tool-results{border-top:1px solid #e6eee7;margin-top:0;padding:20px 27px 25px;background:linear-gradient(180deg,#fbfdfb,#f7faf7)}.thesis-outline-card .thesis-tool-results{background:linear-gradient(180deg,#fbfcfe,#f7f9fc)}.thesis-results-head{display:flex;justify-content:flex-start;align-items:center;gap:10px;margin-bottom:11px;color:#365e48;font-size:12px}.thesis-results-head strong{font-size:13px}.thesis-results-head span{font-size:10px;color:#7b9785}.thesis-next-button{margin-left:auto;border-color:#cbded1;background:#fff;color:#347052;border-radius:8px}.thesis-next-button:hover{border-color:#76a989;background:#edf8f0}.thesis-topic-result{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #e9f0ea}.thesis-topic-result>div{display:grid;gap:4px;min-width:0}.thesis-topic-result strong{font-size:12px;color:#294b38;line-height:1.65}.thesis-topic-result small,.thesis-topic-result em{font-size:10px;color:#77907d;line-height:1.65;font-style:normal}.thesis-topic-result em{color:#9a8661}.thesis-topic-result .btn{flex-shrink:0;border-color:#cbded1;background:#fff;color:#347052;border-radius:8px}.thesis-topic-result .btn:hover{border-color:#76a989;background:#edf8f0}.thesis-outline-result{width:100%;min-height:330px;resize:vertical;padding:13px 14px;border:1px solid #d6e0eb;border-radius:10px;background:#fff;color:#354f68;font-size:12px;line-height:1.8;white-space:pre-wrap}.thesis-outline-actions{justify-content:flex-end;margin-top:11px}.thesis-outline-actions .btn{border-radius:8px}.thesis-outline-actions .btn.ghost{color:#527aa5}
.thesis-tool-card .btn.is-loading{cursor:wait;opacity:.88}.thesis-tool-card .btn.is-loading .icon{animation:thesis-spin 1.1s linear infinite}@keyframes thesis-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.thesis-tools-grid{grid-template-columns:1fr}.thesis-tools-head{padding:24px}.thesis-tool-card>form,.thesis-tool-results{padding-left:22px;padding-right:22px}}
@media(max-width:520px){.thesis-tools-head{padding:22px 18px;border-radius:14px}.thesis-tools-head h1{font-size:25px}.thesis-tool-card .card-head{padding:22px 20px 18px}.thesis-tool-card>form,.thesis-tool-results{padding-left:20px;padding-right:20px}.tool-submit-row{align-items:stretch;flex-direction:column}.tool-submit-row .stats-note{max-width:none}.tool-submit-row .btn{width:100%}.thesis-topic-result{flex-direction:column}.thesis-topic-result .btn{width:100%}}
.worklist-card .toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px 18px;align-items:center;padding:20px 22px 16px}.worklist-card .toolbar .search{width:100%;max-width:none;min-width:0}.worklist-card .toolbar .search input{width:100%;min-width:0}.worklist-card .toolbar .filters{justify-content:flex-end;gap:10px}.worklist-card .list-search-feedback{padding:0 22px 16px;border-bottom:1px solid var(--line)}.worklist-card .list-date-count{font-size:11px}.worklist-card th{padding:14px 12px;font-size:11px}.worklist-card td{padding:18px 12px;font-size:12px}.worklist-card .title-cell{min-width:180px;max-width:260px}.worklist-card .card-head{padding:18px 22px}.worklist-card .card-footer{line-height:1.8}.worklist-card .table-wrap{scrollbar-width:thin;scrollbar-color:#c9d8cd #f5f8f4}.worklist-card .table-wrap::-webkit-scrollbar{height:6px}.worklist-card .table-wrap::-webkit-scrollbar-thumb{background:#c9d8cd;border-radius:6px}.worklist-card .table-wrap::-webkit-scrollbar-track{background:#f5f8f4}
@media(max-width:900px){.worklist-card .toolbar{grid-template-columns:minmax(0,1fr)}.worklist-card .toolbar .filters{justify-content:flex-start}}
@media(max-width:520px){.worklist-card .toolbar{padding:16px 14px;gap:12px}.worklist-card .toolbar .filters{display:flex;flex-wrap:wrap}.worklist-card .toolbar .filters select{flex:1;min-width:120px}.worklist-card .list-search-feedback{padding:0 14px 14px}}

/* Three thesis tools share one workspace and retain entered values. */
.thesis-tool-tabs{display:flex;gap:7px;width:fit-content;max-width:100%;padding:6px;margin-bottom:20px;border:1px solid #dce8df;border-radius:13px;background:#eef4ef}.thesis-tool-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 23px;border:0;border-radius:9px;background:transparent;color:#627b6a;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.thesis-tool-tabs button[aria-selected=true]{color:#215f4b;background:#fff;box-shadow:0 3px 10px #24553b12}.thesis-tool-tabs button:focus-visible{outline:2px solid #26715a;outline-offset:2px}.thesis-workspace{grid-template-columns:minmax(0,1fr);max-width:1120px}.thesis-workspace [data-thesis-panel][hidden]{display:none}.thesis-workspace .thesis-tool-card .card-head p{max-width:680px}.thesis-workspace .thesis-tool-card>form .form-grid{max-width:850px}.thesis-analysis-card:before{background:#977952}.thesis-analysis-card .thesis-card-mark{background:#f5efdf;color:#927349}.thesis-analysis-card .thesis-card-kicker,.thesis-analysis-card .card-head h2 svg{color:#977952}.thesis-analysis-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.thesis-analysis-result{padding:18px;border:1px solid #e4e5d9;border-radius:12px;background:#fff}.thesis-analysis-result textarea{display:block;width:100%;min-height:115px;padding:11px 13px;border:1px solid #d7e4da;border-radius:10px;background:#fbfdfb;color:#314e3d;font-size:12px;line-height:1.7;resize:vertical}.thesis-analysis-result .btn{margin-top:12px}.thesis-topic-actions{flex-wrap:wrap;justify-content:flex-end}.thesis-history-kind.analysis{background:#f5efdf;color:#927349}.thesis-history-analysis{display:grid;gap:12px;overflow-wrap:anywhere}.thesis-history-analysis p{margin:0;white-space:pre-wrap}.thesis-history-analysis strong{display:block;margin-bottom:5px;color:#667c6b}.thesis-tool-tabs+.thesis-workspace+.thesis-history-card{max-width:1120px}
@media(max-width:600px){.thesis-tool-tabs{width:100%;gap:3px}.thesis-tool-tabs button{flex:1;padding:11px 6px;font-size:12px;white-space:nowrap}.thesis-tool-tabs .icon{width:15px;height:15px}.thesis-analysis-result-grid{grid-template-columns:1fr}.thesis-topic-actions{width:100%}.thesis-topic-actions .btn{flex:1}.thesis-results-head{flex-wrap:wrap}}

/* The writing tools share one calm workspace: inputs on the left, results on the right. */
.thesis-tools-head{min-height:182px;padding:30px 36px;margin-bottom:22px;align-items:center;border-color:#245b45;background:linear-gradient(115deg,#174737 0%,#236248 64%,#407c5a 100%);box-shadow:0 16px 38px rgba(25,76,51,.13)}
.thesis-tools-head:after{content:none}
.thesis-tools-head .eyebrow{color:#b9dec8}
.thesis-tools-head h1{color:#fff;font-size:31px;letter-spacing:-.5px}
.thesis-tools-head p{max-width:610px;color:#e4f1e9;font-size:13px;line-height:1.85}
.thesis-hero-flow{display:grid;gap:9px;min-width:205px;padding:16px 19px;border:1px solid #ffffff36;border-radius:13px;background:#ffffff14}
.thesis-hero-flow span{color:#f1faf3;font-size:11px;font-weight:600;letter-spacing:.3px}
.thesis-hero-flow span+span{padding-top:9px;border-top:1px solid #ffffff25}
.thesis-tool-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;padding:5px;margin-bottom:20px;gap:5px;border-color:#d9e6dc;border-radius:15px;background:#eaf1eb}
.thesis-tool-tabs button{display:flex;justify-content:flex-start;gap:13px;min-width:0;padding:13px 16px;text-align:left;border:1px solid transparent;border-radius:11px;color:#5d7364;transition:background .16s,color .16s,box-shadow .16s}
.thesis-tool-tabs button:hover{background:#ffffffa8;color:#255a42}
.thesis-tool-tabs button[aria-selected=true]{border-color:#e2ebe3;color:#174f39;background:#fff;box-shadow:0 4px 15px rgba(30,77,48,.09)}
.thesis-tab-icon{display:grid;place-items:center;flex-shrink:0;width:37px;height:37px;border-radius:10px;background:#dce9df;color:#3c7757}
.thesis-tool-tabs button[aria-selected=true] .thesis-tab-icon{background:#e6f4e9;color:#206b48}
.thesis-tab-icon .icon{width:18px;height:18px}
.thesis-tab-copy{display:grid;gap:2px;min-width:0}
.thesis-tab-copy strong{font-size:13px;line-height:1.35;white-space:normal}
.thesis-tab-copy small{font-size:10px;line-height:1.4;color:#8b9d8f}
.thesis-workspace{display:block;max-width:none}
.thesis-workspace .thesis-tool-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);max-width:none;border-color:#dae7dd;border-radius:17px;box-shadow:0 16px 40px rgba(27,69,45,.07)}
.thesis-workspace .thesis-tool-card:before{grid-column:1/-1}
.thesis-workspace .thesis-tool-card .card-head{grid-column:1/-1;padding:24px 30px 22px;border-bottom:1px solid #e8efe9;background:#fff}
.thesis-workspace .thesis-tool-card .card-head h2{font-size:19px;margin-top:6px}
.thesis-workspace .thesis-tool-card .card-head p{max-width:710px;font-size:12px;color:#718777}
.thesis-workspace .thesis-card-mark{width:41px;height:41px;border-radius:12px;font-size:13px}
.thesis-workspace .thesis-tool-card>form{grid-column:1;padding:26px 30px 28px;border-right:1px solid #e8efe9}
.thesis-workspace .thesis-tool-card>form .form-grid{max-width:none;gap:17px 18px}
.thesis-workspace .thesis-tool-card .field label{font-size:12px;color:#3f624d;font-weight:650}
.thesis-workspace .thesis-tool-card .field input:not([type=checkbox]),.thesis-workspace .thesis-tool-card .field textarea,.thesis-workspace .thesis-tool-card .field select{min-height:46px;padding:11px 14px;border-color:#d7e3d9;background:#fff;font-size:13px}
.thesis-workspace .thesis-tool-card .field textarea{min-height:105px}
.thesis-workspace .tool-submit-row{margin-top:24px;padding-top:21px}
.thesis-workspace .tool-submit-row .btn{min-height:45px;padding:0 19px;font-size:12px}
.thesis-workspace .thesis-tool-results{grid-column:2;min-width:0;min-height:430px;padding:27px 28px;border-top:0;background:#f8fbf8}
.thesis-workspace .thesis-analysis-card .thesis-tool-results{background:#fafbf8}
.thesis-workspace .thesis-outline-card .thesis-tool-results{background:#f8fafd}
.thesis-workspace .thesis-analysis-result-grid{grid-template-columns:1fr}
.thesis-waiting{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:325px;padding:30px;border:1px dashed #c9ddce;border-radius:14px;background:linear-gradient(145deg,#fff,#f2f8f2)}
.thesis-waiting>.icon{width:30px;height:30px;margin-bottom:25px;color:#4b9470}
.thesis-waiting span{margin-bottom:9px;color:#6d9a7c;font-size:10px;font-weight:750;letter-spacing:1.2px}
.thesis-waiting strong{color:#244c36;font-size:19px;line-height:1.5}
.thesis-waiting p{max-width:300px;margin-top:8px;color:#7c9181;font-size:12px;line-height:1.8}
.thesis-outline-card .thesis-waiting{border-color:#d0dce9;background:linear-gradient(145deg,#fff,#f2f6fb)}
.thesis-outline-card .thesis-waiting>.icon{color:#5d87b6}
.thesis-analysis-card .thesis-waiting{border-color:#e3dccb;background:linear-gradient(145deg,#fff,#faf7ef)}
.thesis-analysis-card .thesis-waiting>.icon{color:#977952}
.thesis-workspace .thesis-results-head{flex-wrap:wrap}
.thesis-workspace .thesis-topic-result{padding:17px 0}
.thesis-workspace .thesis-topic-result strong{font-size:13px}
.thesis-workspace .thesis-topic-actions{justify-content:flex-end}
.thesis-tool-tabs+.thesis-workspace+.thesis-history-card{max-width:none}
@media(max-width:1100px){.thesis-workspace .thesis-tool-card{grid-template-columns:minmax(0,1fr)}.thesis-workspace .thesis-tool-card>form{border-right:0}.thesis-workspace .thesis-tool-results{grid-column:1;min-height:0;border-top:1px solid #e8efe9}.thesis-waiting{min-height:180px}}
@media(max-width:700px){.thesis-tools-head{padding:25px 21px;align-items:flex-start;flex-direction:column}.thesis-tools-head h1{font-size:27px}.thesis-tools-head .actions{width:100%}.thesis-hero-flow{display:flex;flex-wrap:wrap;gap:9px;min-width:0;width:100%;padding:11px 13px}.thesis-hero-flow span{font-size:10px}.thesis-hero-flow span+span{padding:0 0 0 9px;border-top:0;border-left:1px solid #ffffff35}.thesis-tool-tabs{gap:2px;padding:4px}.thesis-tool-tabs button{justify-content:center;gap:5px;padding:10px 4px}.thesis-tab-icon{width:28px;height:28px}.thesis-tab-icon .icon{width:15px;height:15px}.thesis-tab-copy strong{font-size:10px}.thesis-tab-copy small{display:none}.thesis-workspace .thesis-tool-card .card-head{padding:22px 19px}.thesis-workspace .thesis-tool-card>form,.thesis-workspace .thesis-tool-results{padding:22px 19px}.thesis-workspace .thesis-tool-card>form .form-grid{grid-template-columns:1fr}.thesis-waiting{padding:22px}}
@media(max-width:700px){
  .thesis-history-card .card-head{align-items:stretch;flex-direction:column;gap:12px}
  .thesis-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;overflow:visible}
  .thesis-history-tabs .tab{justify-content:center;min-width:0}
}

/* Tool navigation and transient manuscript analysis. */
.sidebar .nav{overflow-y:auto;min-height:0}.nav-tool-group{margin-top:5px}.nav-tool-group summary{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:8px;color:#6a7a70;font-size:13px;cursor:pointer;list-style:none}.nav-tool-group summary::-webkit-details-marker{display:none}.nav-tool-group summary:hover,.nav-tool-group summary.active{background:#f0f3ed;color:#255c46}.nav-tool-group summary>svg:last-child{margin-left:auto;width:13px;transition:transform .15s}.nav-tool-group[open] summary>svg:last-child{transform:rotate(90deg)}.nav-tool-children{display:grid;gap:3px;margin:4px 0 4px 24px;padding-left:10px;border-left:1px solid #dce5da}.nav .nav-tool-children a{gap:9px;padding:10px 12px;font-size:12px}.nav-tool-group summary:focus-visible,.nav-tool-children a:focus-visible{outline:2px solid #26715a;outline-offset:2px}.thesis-file-upload{margin-bottom:23px}.thesis-file-drop{display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 19px;border:1px dashed #9cb7a7;border-radius:10px;background:#f6faf7;color:#305f49;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}.thesis-file-drop:hover,.thesis-file-drop.drag-over{background:#e5f2e9;border-color:#305f49}.thesis-file-drop:focus-visible{outline:2px solid #305f49;outline-offset:3px}.thesis-file-drop.drag-over{border-style:solid}.thesis-file-drop>strong{font-size:14px}.thesis-file-drop>span,.thesis-selected-file,.thesis-source-note{font-size:12px;line-height:1.8;color:#748575;overflow-wrap:anywhere}.thesis-selected-file{display:flex;align-items:center;gap:12px;margin-top:8px}.thesis-selected-file span{flex:1;min-width:0}.thesis-selected-file [hidden]{display:none}.thesis-source-note{margin:0 0 16px}.thesis-analysis-card .tool-submit-row .stats-note{max-width:410px}
.workspace-tabs{display:flex;align-items:flex-end;gap:4px;min-height:43px;padding:0 39px;border-bottom:1px solid var(--line);background:#f5f7f3;overflow-x:auto;scrollbar-width:thin}.workspace-tab{display:inline-flex;align-items:center;gap:8px;min-width:118px;max-width:230px;padding:10px 12px;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;color:#718075;font-size:12px;white-space:nowrap;cursor:pointer;flex:0 0 auto}.workspace-tab:hover{background:#edf2ec;color:#3c614d}.workspace-tab.active{color:var(--green);background:#fff;border-color:var(--line);font-weight:600}.workspace-tab-title{overflow:hidden;text-overflow:ellipsis}.workspace-tab-close{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:2px;border-radius:4px;color:#9aa59b;flex:0 0 auto}.workspace-tab-close:hover{background:#e6eee5;color:var(--green)}.workspace-tab-close .icon{width:13px;height:13px}.workspace-tab:focus-visible{outline:2px solid #8abea2;outline-offset:-2px}
@media(max-width:650px){.workspace-tabs{padding:0 15px;min-height:40px}.workspace-tab{min-width:105px;max-width:190px;padding:9px 10px;font-size:11px}}
:root {
  --announcement-bg: #fff8e8;
  --announcement-border: #e6b84a;
}

.message-center-tabs { margin: 0 0 16px; }
.message-center-filters, .message-center-selection, .message-center-compose, .broadcast-history > section { margin-bottom: 16px; }
.broadcast-history > .card-head { padding: 2px 0 14px; margin-bottom: 15px; border-bottom: 1px solid var(--line, #e6e9e4); }
.broadcast-history > .card-head h2 { font-size: 16px; }
.broadcast-history > .card-head > .tag { margin: 0; }
.message-center-history-filters { padding: 15px 17px 13px; margin-bottom: 16px; border: 1px solid var(--line, #e6e9e4); border-radius: 11px; background: #fbfcf9; }
.message-center-history-filters .form-grid { display: grid; grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(135px, 1fr)); gap: 12px 14px; align-items: end; margin: 0; }
.message-center-history-filters .field { min-width: 0; }
.message-center-history-filters .field input, .message-center-history-filters .field select { width: 100%; box-sizing: border-box; min-height: 37px; }
.message-center-history-filters > .actions { justify-content: flex-end; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e7ece5; }
.message-center-filters { padding: 18px; border: 1px solid var(--line, #e6e9e4); border-radius: 12px; background: var(--surface, #fff); }
.message-center-filters .form-grid { margin-bottom: 12px; }
.message-center-order-table td small, .message-center-order-table td .muted { display: block; margin-top: 4px; }
.message-center-compose { padding: 18px; border: 1px solid var(--line, #e6e9e4); border-radius: 12px; background: var(--surface, #fff); }
.message-center-compose textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px; border: 1px solid var(--line, #d9ded7); border-radius: 8px; font: inherit; box-sizing: border-box; }
.message-center-note { display: block; margin-top: 14px; color: #657466; font-size: 12px; }
.message-center-note > span { display: block; margin-bottom: 7px; }
.message-center-note textarea { min-height: 78px; }
.message-center-note-value { padding: 10px 12px; border: 1px solid var(--line, #d9ded7); border-radius: 8px; background: #f5f6f4; color: #59615a; white-space: pre-wrap; line-height: 1.55; }
.message-center-compose-actions { justify-content: space-between; margin-top: 12px; }
.order-announcement-banner { margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--announcement-border); border-left: 5px solid #c98b18; border-radius: 10px; background: var(--announcement-bg); box-shadow: 0 5px 18px rgba(113, 78, 9, .08); }
.order-announcement-banner-label { display: flex; align-items: center; gap: 7px; color: #8b5a08; font-weight: 700; }
.order-announcement-banner-label > span { display: inline-flex; align-items: center; gap: 7px; }
.order-announcement-banner-label > .btn { margin-left: auto; color: #8b5a08; }
.order-announcement-banner-list { margin-top: 10px; }
.order-announcement-empty { margin: 11px 0 0; color: #8a8069; font-size: 12px; }
.order-announcement-banner .order-announcement-history { padding: 12px 14px; background: rgba(255,255,255,.72); }
.order-announcement-banner .order-announcement-history.is-void { background: rgba(243,244,241,.88); }
.order-announcement-voids { margin-bottom: 10px; border: 1px solid #d9ddd8; border-radius: 9px; background: rgba(243,244,241,.72); overflow: hidden; }
.order-announcement-empty-state { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.order-announcement-empty-state .order-announcement-voids { flex: 1; margin: 0; }
.order-announcement-voids-standalone { width: 100%; }
.order-announcement-voids summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; color: #59615a; cursor: pointer; list-style: none; font-size: 13px; }
.order-announcement-voids summary::-webkit-details-marker { display: none; }
.order-announcement-voids summary::before { content: '›'; display: inline-block; margin-right: 7px; color: #737a74; font-size: 18px; line-height: 12px; transform: rotate(0deg); transition: transform .15s ease; }
.order-announcement-voids[open] summary::before { transform: rotate(90deg); }
.order-announcement-voids summary > span:first-child { margin-right: auto; }
.order-announcement-voids > .order-announcement-history-list { padding: 0 10px 10px; }
.order-announcement-banner-body { margin-top: 8px; color: #3c321d; white-space: pre-wrap; line-height: 1.65; font-size: 16px; }
.order-announcement-banner-note, .order-announcement-history-note { margin-top: 9px; color: #6b5d3c; white-space: pre-wrap; line-height: 1.6; font-size: 12px; }
.order-announcement-banner-meta { margin-top: 8px; color: #8a8069; font-size: 12px; }
.order-announcement-previous { margin-top: 16px; padding-top: 13px; border-top: 1px solid #eadfbd; }
.order-announcement-previous > strong { display: block; color: #655d49; font-size: 12px; }
.order-announcement-previous .order-announcement-history { margin-top: 9px; background: #f3f3f0; }
.order-announcement-history-list, .broadcast-history { display: grid; gap: 12px; }
.order-announcement-history, .broadcast-history-item { position: relative; padding: 15px 17px; border: 1px solid var(--line, #e6e9e4); border-radius: 10px; background: #fff; overflow: hidden; }
.order-announcement-history.is-void, .broadcast-history-item.is-void { color: #686d68; background: #f6f7f5; }
.order-announcement-history.is-void::after, .broadcast-history-item.is-void::after { display: none; }
.order-announcement-history-head, .broadcast-history-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.order-announcement-history-head > div, .broadcast-history-head > div { display: flex; align-items: center; gap: 8px; }
.order-announcement-history-head time, .broadcast-history-head time { color: #7b817b; font-size: 12px; }
.order-announcement-history-body, .broadcast-history-item p { margin: 11px 0 7px; white-space: pre-wrap; line-height: 1.65; }
.order-announcement-history > small, .broadcast-history-item > small { color: #7b817b; }
.announcement-active { color: #8b5a08; background: #fff0bd; border-color: #e6b84a; }
.announcement-void { color: #535853; background: #e5e8e4; border-color: #b5bbb4; }
.broadcast-history-item .actions { margin-top: 10px; position: relative; z-index: 1; }
.broadcast-history > section { padding: 18px; border: 1px solid var(--line, #e6e9e4); border-radius: 12px; background: var(--surface, #fff); }
.broadcast-history-thread { display: grid; gap: 8px; }
.broadcast-delete-preview { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line, #e6e9e4); border-radius: 8px; background: #fafbf9; }
.broadcast-delete-preview p { margin: 8px 0; white-space: pre-wrap; line-height: 1.6; }
.broadcast-delete-preview small { color: #727a73; }
.broadcast-history-archived { margin-top: 12px; border: 1px solid #d9ddd8; border-radius: 10px; background: #f5f6f4; overflow: hidden; }
.broadcast-history-archived summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; color: #59615a; cursor: pointer; list-style: none; font-size: 13px; }
.broadcast-history-archived summary::-webkit-details-marker { display: none; }
.broadcast-history-archived summary::before { content: '›'; display: inline-block; margin-right: 7px; color: #737a74; font-size: 18px; line-height: 12px; transition: transform .15s ease; }
.broadcast-history-archived[open] summary::before { transform: rotate(90deg); }
.broadcast-history-archived summary > span:first-child { margin-right: auto; }
.broadcast-history-archived > .broadcast-history { padding: 0 12px 12px; }
.broadcast-history-archived.is-inline-history > summary { display: none; }
.broadcast-history-archived.is-inline-history { margin-top: 0; border: 0; border-radius: 0; background: transparent; }
.broadcast-history-archived.is-inline-history > .broadcast-history { padding: 0; }
@media (max-width: 760px) {
  .message-center-filters .form-grid { grid-template-columns: 1fr; }
  .message-center-history-filters .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-announcement-history-head, .broadcast-history-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .message-center-history-filters .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .message-center-history-filters .field:first-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .message-center-history-filters .form-grid { grid-template-columns: 1fr; }
  .message-center-history-filters .field:first-child { grid-column: auto; }
  .message-center-history-filters > .actions { justify-content: stretch; }
  .message-center-history-filters > .actions .btn { flex: 1; }
}
@media (max-width: 650px) {
  .order-announcement-empty-state { align-items: stretch; flex-direction: column; }
  .order-announcement-empty-state > .btn { align-self: flex-start; }
}

/* Isolated MiniMax research assistant board. */
.thesis-chat-board{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:680px;overflow:hidden;padding:0}
.thesis-chat-sidebar{border-right:1px solid var(--line);background:#f8fbf8;display:flex;flex-direction:column;min-width:0}
.thesis-chat-sidebar-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px;border-bottom:1px solid var(--line)}
.thesis-chat-sidebar-head strong,.thesis-chat-sidebar-head small{display:block}.thesis-chat-sidebar-head strong{color:var(--ink);font-size:14px}.thesis-chat-sidebar-head small{margin-top:4px;color:var(--muted);font-size:11px}
.thesis-chat-conversations{padding:10px;display:grid;gap:6px;overflow:auto}
.thesis-chat-conversation{display:grid;gap:5px;width:100%;padding:12px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;color:var(--ink);cursor:pointer}
.thesis-chat-conversation:hover{background:#eef6ef}.thesis-chat-conversation.active{border-color:#b8d4bf;background:#e9f3eb}.thesis-chat-conversation strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.thesis-chat-conversation small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.thesis-chat-main{display:flex;min-width:0;flex-direction:column;background:#fff}.thesis-chat-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:16px 22px;border-bottom:1px solid var(--line)}
 .thesis-chat-header strong,.thesis-chat-header small{display:block}.thesis-chat-header strong{color:var(--ink);font-size:15px}.thesis-chat-header small{margin-top:5px;color:var(--muted);font-size:11px}.thesis-chat-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.thesis-chat-header-actions select{width:190px;max-width:100%;height:32px;padding:0 24px 0 9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}
.thesis-chat-messages{display:grid;align-content:start;gap:16px;flex:1;min-height:360px;max-height:500px;overflow:auto;padding:24px;background:#fbfdfb}
.thesis-chat-message{max-width:86%;display:grid;gap:6px}.thesis-chat-message.user{justify-self:end;justify-items:end}.thesis-chat-message-role{font-size:11px;color:var(--muted)}.thesis-chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#30453a;font-size:13px}.thesis-chat-message.user .thesis-chat-message-body{background:#e5f2e8;border-color:#c7dfcc}
.thesis-chat-welcome{max-width:700px;margin:auto;padding:24px 8px}.thesis-chat-welcome-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e5f2e8;color:#26714b}.thesis-chat-welcome-mark .icon{width:25px;height:25px}.thesis-chat-welcome h2{margin:18px 0 8px;color:var(--ink);font-size:22px}.thesis-chat-welcome>p{max-width:560px;margin:0;color:var(--muted);font-size:13px;line-height:1.75}.thesis-chat-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}.thesis-chat-mode-options button{display:grid;gap:7px;padding:15px;border:1px solid #d4e5d6;border-radius:11px;background:#fff;text-align:left;color:var(--ink);cursor:pointer;transition:.15s ease}.thesis-chat-mode-options button:hover{border-color:#8fbea0;background:#f5faf5;transform:translateY(-1px)}.thesis-chat-mode-options strong{display:flex;align-items:center;gap:7px;font-size:13px}.thesis-chat-mode-options strong .icon{width:16px;height:16px;color:#2d7950}.thesis-chat-mode-options span{color:var(--muted);font-size:11px;line-height:1.5}.thesis-chat-intake-hint{display:grid;gap:7px;max-width:650px;margin:2px auto 0;padding:14px 16px;border-left:3px solid #63a878;border-radius:0 9px 9px 0;background:#f2f8f3;color:#41634b}.thesis-chat-intake-hint span{color:#669275;font-size:10px}.thesis-chat-intake-hint strong{font-size:13px;font-weight:600;line-height:1.6}
 .thesis-chat-artifacts{display:grid;gap:8px;width:min(620px,100%)}.thesis-chat-artifact{padding:12px 14px;border:1px solid #cfe0d2;border-radius:9px;background:#f5faf5}.thesis-chat-artifact>span{display:block;color:#5d7966;font-size:10px}.thesis-chat-artifact>strong{display:block;margin-top:4px;color:#244b32;font-size:13px}.thesis-chat-artifact p{margin:6px 0 0;white-space:pre-wrap;color:#566b5c;font-size:11px;line-height:1.6}.thesis-chat-artifact-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.thesis-chat-quick-list{display:flex;flex-wrap:wrap;gap:6px}.thesis-chat-composer{padding:16px 22px;border-top:1px solid var(--line);background:#fff}.thesis-chat-composer textarea{width:100%;min-height:78px;resize:vertical}.thesis-chat-mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;color:var(--muted);font-size:11px}.thesis-chat-mode-row label{display:flex;align-items:center;gap:8px}.thesis-chat-mode-row select{height:30px;padding:0 26px 0 9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}.thesis-chat-attachment-row{display:flex;align-items:center;gap:9px;margin-top:9px}.thesis-chat-attachment-row .icon{width:14px;height:14px}.thesis-chat-attachment-hint{color:var(--muted);font-size:10px}.thesis-chat-attachment-preview{min-height:0;margin-top:7px}.thesis-chat-attachment-preview:empty{display:none}.thesis-chat-attachment-preview>span{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 9px;border:1px solid #cfe1d2;border-radius:7px;background:#f5faf5;color:#355a40;font-size:11px}.thesis-chat-attachment-preview>span .icon{width:15px;height:15px;flex:none}.thesis-chat-attachment-preview strong{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thesis-chat-attachment-preview small{color:var(--muted);white-space:nowrap}.thesis-chat-attachment-preview>button{margin-left:7px}.thesis-chat-hint{color:var(--muted);font-size:11px}.thesis-chat-composer.is-dragging{background:#f2faf3;box-shadow:inset 0 0 0 2px #78ad83}.thesis-chat-composer.is-dragging .thesis-chat-attachment-row{color:#26714b}
@media(max-width:760px){.thesis-chat-board{grid-template-columns:1fr;min-height:0}.thesis-chat-sidebar{border-right:0;border-bottom:1px solid var(--line)}.thesis-chat-conversations{max-height:150px;grid-template-columns:repeat(2,minmax(0,1fr))}.thesis-chat-messages{max-height:none;min-height:360px;padding:16px}.thesis-chat-message{max-width:96%}.thesis-chat-composer{padding:14px}.thesis-chat-mode-row{align-items:flex-start;flex-direction:column}.thesis-chat-header{align-items:flex-start;padding:14px}.thesis-chat-header-actions{width:100%;justify-content:flex-start}.thesis-chat-header-actions select{flex:1;width:auto}.thesis-chat-attachment-row{align-items:flex-start;flex-wrap:wrap}.thesis-chat-attachment-hint{flex:1;min-width:180px}}

.detail-title-block { flex: 1; min-width: 0; }
.detail-title-tags { display: flex; justify-content: flex-start; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.detail-title-tags .order-tag-list { justify-content: flex-start; }
.order-tag-editable { gap: 5px; }
.order-tag-remove { display: inline-grid; place-items: center; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b8a76; font-size: 14px; line-height: 1; cursor: pointer; }
.order-tag-remove:hover { background: #d7e9dc; color: #245a40; }
.btn.order-complete-button { background: #3EFF00; border-color: #3EFF00; color: #12320b; box-shadow: none; }
.btn.order-complete-button:hover { background: #35e600; border-color: #35e600; color: #0d2808; }
.btn.order-action-edit { background: #3478c9; border-color: #3478c9; color: #fff; }
.btn.order-action-edit:hover { background: #2865ad; border-color: #2865ad; color: #fff; }
.btn.order-action-urgent { background: #ed9b3b; border-color: #ed9b3b; color: #fff; }
.btn.order-action-urgent:hover { background: #d98425; border-color: #d98425; color: #fff; }
.btn.order-action-return { background: #d45c63; border-color: #d45c63; color: #fff; }
.btn.order-action-return:hover { background: #bb454d; border-color: #bb454d; color: #fff; }
.inline-order-edit-fields { margin-top: 20px; }
.inline-order-edit-actions { justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-status-column, .order-status-cell { min-width: 185px; }
.order-status-cell { white-space: normal; vertical-align: top; }
.order-status-summary { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.order-status-cell > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.order-status-delivered-list { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.order-status-delivered-tag { margin: 0; background: #edf1f9; color: #5e79a1; }
.badge.partial-delivered { background: #eaf1ed; color: #3f7b5b; }
.badge.review_pending,.badge.junior { background:#fff1d8; color:#8b6421; }
.badge.review_approved { background:#e6f1e7; color:#3f7650; }
.badge.review_rejected { background:#fae8e6; color:#a84943; }
.badge.mid { background:#e8f0e7; color:#4b7557; }
.badge.senior { background:#e7edf7; color:#486687; }
.review-status-note { display:block; margin-top:7px; color:#9a6b22; }
.task-card.review-focus{box-shadow:inset 3px 0 0 #c66d64;background:#fffaf8}
.review-metric-button{text-align:left;font:inherit;color:inherit;cursor:pointer}.review-metric-button:hover{border-color:#c9d7c7;background:#fafcf8}.review-view-tabs{margin-top:-8px}.review-view-tabs .count{display:inline-block;margin-left:5px;padding:1px 6px;border-radius:8px;background:#d7e6d9;font-size:10px}.review-status-detail{display:block;margin-top:6px;color:#89917f;white-space:nowrap}.review-reject-reason{max-width:240px;margin-top:5px;color:#a54d45;font-size:10px;line-height:1.6;white-space:normal}.review-history{margin:14px 0;padding:12px 14px;border:1px solid #e7e2d5;border-radius:8px;background:#fbf8f0}.review-history summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;font-size:11px;color:#74654d}.review-history-row{display:flex;align-items:flex-start;gap:10px;padding-top:12px;margin-top:11px;border-top:1px dashed #e5dece}.review-history-row>div{min-width:0}.review-history-row p{font-size:11px;line-height:1.7;color:#675f52;white-space:pre-wrap;overflow-wrap:anywhere}.review-history-row small{display:block;margin-top:5px;color:#9b9385}.review-result-alerts{display:grid;gap:10px}.review-result-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:15px;border:1px solid #efd8d2;border-radius:8px;background:#fcf6f4}.review-result-alert>div{min-width:0}.review-result-alert p{margin-top:7px;font-size:12px;line-height:1.7;color:#7b5f5b;white-space:pre-wrap}.review-result-alert small{display:block;margin-top:6px;color:#a08d88}.notification-item.review-rejected-notice{background:#fdf7f5;border-left:3px solid #c66d64}.notification-item.review-rejected-notice .icon-box{color:#b65d55;background:#faebe8}
.order-project-column{min-width:150px}.order-project-cell{vertical-align:top;min-width:150px}.order-project-cell .delivery-tag-list{min-width:140px;max-width:260px}.order-project-pending .muted,.order-project-delivered .muted{font-size:12px}
.order-advanced-filters .order-main-search{width:320px;min-width:260px;max-width:none;flex:1 1 320px}
@media(max-width:760px){.order-advanced-filters .order-main-search{width:100%;min-width:0}}
.order-index-heading,.order-index-cell{width:58px;min-width:58px;text-align:center}.order-index-cell{color:#829087;font-variant-numeric:tabular-nums}
.order-list-card th.order-index-heading{text-align:center!important;padding-left:0;padding-right:0}.order-list-shared-tags>.btn{margin-left:-10px}
.list-search-summary{min-width:0;flex:0 1 auto}.list-search-feedback{align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:18px}.order-column-picker{position:relative;flex:none;margin-top:10px;color:var(--green);font-size:12px}.order-column-picker>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:7px;padding:7px 12px;background:#fff;font-weight:600}.order-column-picker>summary::-webkit-details-marker{display:none}.order-column-picker>summary:hover,.order-column-picker[open]>summary{background:#edf4ee;border-color:#adc6b4}.order-column-picker>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}.order-column-panel{position:absolute;z-index:30;left:0;top:calc(100% + 8px);width:300px;max-width:calc(100vw - 40px);padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #173c3526}.order-column-panel>strong{display:block;margin-bottom:12px}.order-column-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;max-height:55vh;overflow:auto}.order-column-options label{display:flex;align-items:center;gap:8px;padding:7px 4px;cursor:pointer;color:var(--text)}.order-column-options input{width:15px;height:15px;margin:0;accent-color:var(--green)}.order-column-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.order-column-footer>span{font-size:11px;color:#829087}.order-code-cell{min-width:155px;white-space:nowrap}.order-major-cell{min-width:100px}
.worklist-card{overflow:visible}.delivered-search-actions{display:flex;align-items:center;gap:10px}.delivered-date-control{position:relative}.delivered-date-trigger{min-width:205px}
.ticket-list-card{overflow:visible}.stats-filter-card{overflow:visible}.ticket-date-control,.stats-date-control{position:relative}.ticket-date-trigger,.stats-date-trigger{min-width:205px}
@media (min-width:761px) and (max-width:1100px){.delivered-date-control .order-date-popover,.ticket-date-control .order-date-popover{left:auto;right:0}}
@media(max-width:650px){.delivered-search-actions{grid-column:1/-1;justify-content:stretch;flex-wrap:wrap}.delivered-date-control,.delivered-date-trigger{width:100%;min-width:0}.delivered-search-actions>.btn{flex:1}}
@media(max-width:650px){.ticket-date-control,.ticket-date-trigger{width:100%;min-width:0}}

.thesis-chat-intake-card{justify-self:start;width:min(620px,calc(100% - 24px));margin:4px 0 0;padding:16px 18px;border:1px solid #cfe1d2;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(33,78,48,.05)}.thesis-chat-intake-card-head{display:grid;gap:5px;margin-bottom:14px}.thesis-chat-intake-card-head span{color:#5f9570;font-size:10px}.thesis-chat-intake-card-head strong{color:var(--ink);font-size:14px}.thesis-chat-intake-card-head small{color:var(--muted);font-size:11px}.thesis-chat-intake-card .actions{align-items:center;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.thesis-chat-intake-actions{display:flex;align-items:center;gap:7px}
.thesis-chat-file-field{display:grid;gap:8px;margin-top:16px}.thesis-chat-file-field>label:first-child{color:var(--ink);font-size:12px}.thesis-chat-file-drop{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 13px;border:1px dashed #a9cdb2;border-radius:9px;background:#f8fcf8;color:#2d6844;cursor:pointer}.thesis-chat-file-drop:hover{border-color:#57966c;background:#f0f8f1}.thesis-chat-file-drop>.icon{width:20px;height:20px}.thesis-chat-file-drop span{display:grid;gap:3px}.thesis-chat-file-drop strong{font-size:12px}.thesis-chat-file-drop small{color:var(--muted);font-size:10px}.thesis-chat-file-name{color:#4d7a5a;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thesis-chat-intake-card .form-grid{grid-template-columns:1fr}
@media(max-width:760px){.thesis-chat-intake-card{width:calc(100% - 8px);padding:15px}}

/* The composer is the single visible input surface for the topic intake. */
.thesis-chat-message.pending .thesis-chat-message-body{display:flex;align-items:center;color:var(--muted);background:#f5faf5;border-color:#d6e8d8}
.thesis-chat-thinking-dot{display:inline-block;width:7px;height:7px;margin:0 8px 0 1px;border-radius:50%;background:#4f9b6d;animation:thesis-chat-pulse 1.2s infinite ease-in-out}
@keyframes thesis-chat-pulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.thesis-chat-wait{width:100%;min-width:0;max-width:440px;padding:3px 0;animation:thesis-wait-enter .25s ease-out}
.thesis-chat-wait-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#426b50;font-size:13px}
.thesis-chat-wait-dots{display:inline-flex;align-items:center;gap:4px;height:16px}
.thesis-chat-wait-dots i{width:5px;height:5px;background:#609d76;border-radius:50%;animation:thesis-chat-pulse 1.4s ease-in-out infinite}
.thesis-chat-wait-dots i:nth-child(2){animation-delay:.18s}.thesis-chat-wait-dots i:nth-child(3){animation-delay:.36s}
.thesis-chat-wait-time{margin-left:auto;color:#728677;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.thesis-chat-message-body .thesis-chat-wait p{margin:7px 0 0;font-size:12px;line-height:1.7;color:#738278}
.thesis-chat-wait-lines{display:grid;gap:8px;margin-top:15px;width:min(320px,100%)}
.thesis-chat-wait-lines i{display:block;height:7px;border-radius:6px;background:linear-gradient(100deg,#e2eee4 25%,#f1f8f2 45%,#e2eee4 65%);background-size:240% 100%;animation:thesis-wait-shimmer 2.4s ease-in-out infinite}
.thesis-chat-wait-lines i:nth-child(2){width:84%;animation-delay:.15s}.thesis-chat-wait-lines i:nth-child(3){width:58%;animation-delay:.3s}
.thesis-chat-wait.is-compact{max-width:none;animation:none}.thesis-chat-wait.is-compact p{display:none}
@keyframes thesis-wait-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@keyframes thesis-wait-enter{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.thesis-chat-wait,.thesis-chat-wait-dots i,.thesis-chat-wait-lines i{animation:none}}
.thesis-chat-composer{position:sticky;bottom:0;z-index:2;box-shadow:0 -5px 18px rgba(31,72,45,.04)}
.thesis-chat-composer textarea:focus{border-color:#78ad83;box-shadow:0 0 0 3px rgba(120,173,131,.14)}
.thesis-chat-mode-row [data-thesis-chat-compose-hint]{font-weight:600;color:#4f8060}
.thesis-chat-intake-shortcuts{align-items:center;margin-top:4px}
.thesis-chat-board [hidden]{display:none!important}
.thesis-chat-outline-chapter{margin-top:12px;padding-top:10px;border-top:1px solid #dce8df}
.thesis-chat-outline-chapter h4{margin:0;color:#244b32;font-size:13px;line-height:1.7}
.thesis-chat-outline-sections{margin:8px 0 0;padding-left:20px;color:#566b5c;font-size:12px;line-height:1.8;overflow-wrap:anywhere}

/* Inline pending-order acceptance on the writer order list. */
.pending-order-list .writer-select-bar{padding:14px 18px;flex-wrap:wrap}
.pending-order-list>.stats-note,.pending-order-list>.form-error{margin:12px 18px}
.pending-order-list td:first-child input{width:17px;height:17px;accent-color:var(--green)}

@media(max-width:650px){.order-column-panel{left:auto;right:0}.list-search-summary{flex-basis:100%}.order-column-picker{margin-top:0;margin-left:auto}}
.writer-note-cell{min-width:150px}.personal-note-preview{display:inline-flex;align-items:center;gap:6px;width:100%;max-width:210px;padding:7px 9px;border:1px solid #e6cf8d;border-radius:7px;background:#fff8e4;color:#795919;font-size:12px;text-align:left}.personal-note-preview>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.personal-note-preview .icon,.personal-note-add .icon{width:14px;height:14px;flex:none}.personal-note-preview:hover{background:#ffefb9;border-color:#d7b86a}.personal-note-add{color:#805e1c}.personal-note-draft-badge{margin-left:5px;color:#a77521;font-size:10px}.personal-note-content{padding-top:0}.writer-private-note .personal-note-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#4c4127;font-size:13px;line-height:1.8;margin:0;max-height:240px;overflow:auto}.writer-private-note .personal-note-placeholder{margin:0;color:#8e7a50;font-size:12px}.writer-private-note .private-note-actions{margin-top:14px}.personal-note-modal{width:560px;max-width:calc(100vw - 28px)}.personal-note-context{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;background:#fff9e8;border:1px solid #ead9a7;border-radius:8px;font-size:12px;color:#795919}.personal-note-context .private-note-lock{margin-left:auto}.personal-note-editor-hint{font-size:12px;line-height:1.8;margin:12px 0;color:#85918a}.personal-note-label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.personal-note-modal textarea{width:100%;min-height:170px;max-height:50vh;resize:vertical;padding:12px 14px;border:1px solid #e8d49a;border-radius:8px;background:#fffef8;color:#4c4127;line-height:1.8;font-size:13px}.personal-note-editor-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.personal-note-editor-status small{font-size:11px}.personal-note-editor-status .is-unsaved{color:#a77521}.personal-note-draft-actions{margin-top:8px}.personal-note-modal .modal-foot{margin-top:14px}.personal-note-modal textarea:focus-visible{outline:2px solid #ad9250;outline-offset:2px}@media(max-width:650px){.personal-note-modal .modal-body{padding:16px}.personal-note-modal .modal-head{padding:16px}.personal-note-context .private-note-lock{margin-left:0}.personal-note-editor-status{align-items:flex-start}.personal-note-modal textarea{min-height:150px}}
.personal-note-draft-actions [hidden]{display:none!important}
.order-next-due-cell{min-width:148px;white-space:nowrap}
.order-status-button.due_week .order-status-label{white-space:normal}
.order-status-button.due_three .order-status-label{white-space:normal}
.dashboard-delivery-summary{margin:0 0 20px}
.dashboard-delivery-summary .section-kicker{margin:0 0 9px;color:#6c7d70;font-size:11px;font-weight:700;letter-spacing:.08em}
.dashboard-delivery-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}
@media(max-width:650px){.dashboard-delivery-metrics{grid-template-columns:1fr}}
.writer-private-note .personal-note-title{font-size:14px;line-height:1.6;color:#795919;margin:0 0 8px}.personal-note-modal{width:620px}.personal-note-label{margin-top:14px}.personal-note-label small{margin-left:8px;font-weight:400;color:#8e7a50}.personal-note-modal input[data-note-title]{width:100%;padding:10px 12px;border:1px solid #e8d49a;border-radius:8px;background:#fffef8;color:#4c4127;font-size:13px}.personal-note-modal input[data-note-title]:focus-visible{outline:2px solid #ad9250;outline-offset:2px}.personal-note-attachments{margin-top:18px}.personal-note-attachments h3{font-size:12px;margin:0 0 8px}.personal-note-files{display:grid;gap:8px;margin:12px 0}.personal-note-file{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #ead9a7;border-radius:8px;background:#fffdf6;min-width:0}.personal-note-file-open{display:flex;align-items:center;gap:8px;min-width:0;flex:1;color:#795919;text-decoration:none;font-size:12px}.personal-note-file-open>span{min-width:0;overflow-wrap:anywhere}.personal-note-file-open>small{white-space:nowrap;color:#8e7a50;font-size:10px}.personal-note-file-open>img{width:60px;height:48px;object-fit:cover;flex:none;border-radius:4px}.personal-note-file-open>svg{width:22px;height:22px;flex:none}.personal-note-file-actions{display:flex;gap:4px;flex:none}.personal-note-files [hidden]{display:none!important}.personal-note-draft-actions{display:flex;gap:6px;flex-wrap:wrap}.personal-note-draft-actions button[hidden]{display:none!important}.personal-note-modal .attachment-drop{padding:12px}.personal-note-modal .attachment-drop>svg{display:none}@media(max-width:650px){.personal-note-editor-status{flex-wrap:wrap;gap:5px}.personal-note-file{flex-wrap:wrap}.personal-note-file-open{flex-basis:100%}.personal-note-file-actions{margin-left:auto}.personal-note-modal textarea{min-height:120px}.personal-note-modal .modal-foot{position:sticky;bottom:-16px;margin:16px -16px -16px;padding:12px 16px;border-top:1px solid var(--line);background:#fff}}
.personal-note-modal[open]{display:flex;flex-direction:column;overflow:hidden}.personal-note-modal .modal-head{flex:none}.personal-note-modal .modal-body{overflow:auto;min-height:0}.personal-note-modal .modal-foot{position:sticky;bottom:-23px;margin:16px -23px -23px;padding:12px 23px;border-top:1px solid var(--line);background:#fff;z-index:2}@media(max-width:650px){.personal-note-modal .modal-foot{bottom:-16px;margin:16px -16px -16px;padding:12px 16px}}
/* Urgency is a project requirement; expose it consistently in every role. */
.urgency-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;background:#fff0ed;border:1px solid #efb6a9;color:#aa3425;font-size:12px;font-weight:700;white-space:nowrap}
.urgency-badge svg{width:14px;height:14px}
.urgency-banner{margin:0 0 20px;border:1px solid #e9a78e;border-left:5px solid #cb603c;border-radius:12px;background:#fffaf5;overflow:hidden}
.urgency-banner-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 20px;background:#fff0df}
.urgency-banner-head>svg{width:22px;height:22px;color:#b44724}
.urgency-banner-head h2{font-size:17px;margin:0;flex:1}
.urgency-item{padding:16px 20px;border-top:1px solid #efdccc}
.urgency-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.urgency-process-state{color:#aa3425;background:#fff0ed;font-size:12px;padding:4px 8px;border-radius:6px}
.urgency-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7;color:#342d28;margin:10px 0}
.urgency-times{display:flex;gap:8px 20px;flex-wrap:wrap;font-size:13px}
.urgency-item-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}
.urgency-item-foot small{color:#7d7068;line-height:1.6;overflow-wrap:anywhere}
.urgency-history{padding:12px 20px;border-top:1px solid #efdccc;font-size:13px}
.urgency-history summary{cursor:pointer;font-weight:600}
.urgency-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.urgency-history small{display:block;color:#7d7068;margin-top:4px}
.urgency-list-summary{display:grid;justify-items:start;gap:5px;margin-top:8px;max-width:300px}
.urgency-list-summary small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9b402b}
.task-card.is-urgent{border-left:4px solid #cb603c;background:#fffaf5}
.task-card.is-urgent .task-summary{background:#fff3e5}
.task-card .task-title{flex-wrap:wrap}
.task-card [data-urgency-task-content] .urgency-item{border:1px solid #efdccc;background:#fff;border-radius:8px;margin-bottom:16px}
.dashboard-priorities.writer-priorities{grid-template-columns:repeat(5,minmax(0,1fr))}
.order-status-button.urgent{border-color:#e9a78e}
.order-status-button.urgent.is-active{background:#fff0df;border-color:#c35c39;color:#9e3a22}
.order-status-button.urgent.is-active .order-status-count{background:#f9dac6;color:#9e3a22}
.order-status-button.urgent.is-active .order-status-dot{background:#c35c39}
@media(max-width:1100px){.dashboard-priorities.writer-priorities{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.dashboard-priorities.writer-priorities{grid-template-columns:repeat(2,minmax(0,1fr))}.urgency-banner-head,.urgency-item{padding:14px}.urgency-banner-head h2{font-size:15px}.urgency-item-foot .actions{width:100%}.urgency-list-summary{max-width:230px}}
/* Research assistant: conversation and persistent result reading panes. */
.thesis-chat-workspace{padding:0!important;height:calc(100dvh - 112px);min-height:620px;max-width:none!important}
.thesis-chat-workspace .thesis-chat-board{display:grid;grid-template-columns:220px minmax(320px,1.1fr) minmax(360px,1fr);height:100%;min-height:0;border:0;border-radius:0;background:#fff;overflow:hidden}
.thesis-chat-workspace .thesis-chat-sidebar{background:#f7f9f7;border-right:1px solid #e5e9e3;min-height:0}
.thesis-chat-workspace .thesis-chat-sidebar-head{padding:26px 20px;border:0;min-height:96px}
.thesis-chat-brand{display:flex;align-items:center;gap:12px}.thesis-chat-brand>.thesis-chat-icon{width:28px;height:28px}.thesis-chat-workspace .thesis-chat-brand strong{font-size:20px;letter-spacing:-.4px}.thesis-chat-workspace .thesis-chat-brand small{font-size:12px;line-height:1.5;color:#687b71}
.thesis-chat-icon{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle}
.thesis-chat-history-label{padding:14px 20px 8px;font-size:12px;color:#6b7d73}
.thesis-chat-workspace .thesis-chat-conversations{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0;padding:8px 12px;overflow:auto}
.thesis-chat-workspace .thesis-chat-conversation{display:flex;align-items:flex-start;gap:12px;padding:15px 12px;border:0;border-left:3px solid transparent;border-radius:6px;min-height:74px}
.thesis-chat-workspace .thesis-chat-conversation>span{display:grid;gap:6px;min-width:0}.thesis-chat-workspace .thesis-chat-conversation strong{font-size:14px;font-weight:600;line-height:1.5}.thesis-chat-workspace .thesis-chat-conversation small{font-size:12px;color:#708077}.thesis-chat-workspace .thesis-chat-conversation.active{background:#eaf2ec;border-left-color:#24634e}.thesis-chat-conversation>.thesis-chat-icon{margin-top:2px}
.thesis-chat-history-empty{padding:15px 10px;font-size:13px;color:#708077;line-height:1.9}
.thesis-chat-sidebar-footer{padding:20px 16px;display:grid;gap:15px;text-align:center}.thesis-chat-sidebar-footer>.btn{width:100%;min-height:44px;justify-content:center;font-size:14px;gap:8px}.thesis-chat-sidebar-footer>small{font-size:11px;color:#708077}.thesis-chat-workspace .btn.primary .thesis-chat-icon{filter:brightness(0) invert(1)}
.thesis-chat-workspace .thesis-chat-main{min-height:0;overflow:hidden}
.thesis-chat-workspace .thesis-chat-header{min-height:96px;padding:22px 24px;gap:16px;flex-wrap:wrap;align-items:center}
.thesis-chat-workspace .thesis-chat-header-title{flex:1;min-width:0}.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:20px;line-height:1.45;overflow-wrap:anywhere;letter-spacing:-.3px}.thesis-chat-workspace .thesis-chat-header-title>small{font-size:12px;color:#607267;margin-top:7px}.thesis-chat-header-title small>span{color:#24634e;font-weight:600;background:#eaf2ec;padding:3px 7px;border-radius:4px}
.thesis-chat-workspace .thesis-chat-header-actions select{width:126px;min-height:36px;font-size:12px;color:#24634e;border-color:#d9e3dd}
.thesis-chat-context{display:flex;gap:12px;padding:18px 24px 0;align-items:flex-start;color:#6b7d73;font-size:12px}.thesis-chat-context[hidden]{display:none}.thesis-chat-context>span{display:grid;gap:5px}.thesis-chat-context strong{font-size:14px;color:#24634e;font-weight:600;overflow-wrap:anywhere}
.thesis-chat-workspace .thesis-chat-messages{display:flex;flex-direction:column;align-items:stretch;gap:28px;flex:1;min-height:0;max-height:none;overflow:auto;padding:28px 24px;background:#fff;scrollbar-gutter:stable}
.thesis-chat-workspace .thesis-chat-message{display:flex;align-items:flex-start;gap:12px;width:100%;max-width:100%;min-width:0}.thesis-chat-workspace .thesis-chat-message.user{flex-direction:row-reverse}.thesis-chat-avatar{display:grid;place-items:center;width:34px;height:34px;background:#24634e;border-radius:50%;flex:none}.thesis-chat-avatar .thesis-chat-icon{width:22px;height:22px;filter:brightness(0) invert(1)}.user .thesis-chat-avatar{background:#eaf2ec}.user .thesis-chat-avatar .thesis-chat-icon{filter:none;width:20px;height:20px}
.thesis-chat-message-content{display:grid;gap:8px;min-width:0;max-width:calc(100% - 46px)}.user .thesis-chat-message-content{justify-items:end}.thesis-chat-workspace .thesis-chat-message-role{color:#607267;font-size:12px;line-height:1.5}.thesis-chat-workspace .thesis-chat-message-body{border:0;border-radius:12px;background:#f6f7f8;padding:13px 16px;font-size:15px;line-height:1.85;color:#213830}.thesis-chat-workspace .user .thesis-chat-message-body{background:#eaf2ec;max-width:100%}.thesis-chat-message-content>time{font-size:11px;color:#708077}
.thesis-chat-result-link{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:10px 0;color:#24634e;border:0;background:transparent;max-width:100%;border-radius:6px}.thesis-chat-result-link>span{display:grid;gap:5px;min-width:0}.thesis-chat-result-link strong{font-size:13px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}.thesis-chat-result-link small{font-size:12px;color:#607267}.thesis-chat-result-link:hover{background:#f3f8f4}.thesis-chat-result-link:focus-visible{outline:2px solid #24634e;outline-offset:4px}
.thesis-chat-workspace .thesis-chat-quick-list{gap:8px}.thesis-chat-workspace .thesis-chat-quick-list .btn{font-size:12px;line-height:1.6;white-space:normal;text-align:left;border:1px solid #dce6de;padding:7px 10px;min-height:34px;border-radius:7px;background:#fff;color:#24634e}
.thesis-chat-workspace .thesis-chat-composer{padding:16px 24px 18px;border:0;background:#fff;margin-top:auto}.thesis-chat-compose-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.thesis-chat-input-shell{border:1px solid #d4dfd8;border-radius:10px;background:#fff;padding:12px 12px 10px}.thesis-chat-input-shell:focus-within{border-color:#5d9779;box-shadow:0 0 0 3px #24634e12}
.thesis-chat-workspace .thesis-chat-composer textarea{display:block;border:0!important;box-shadow:none!important;outline:0!important;border-radius:0;min-height:70px;max-height:180px;resize:vertical;padding:4px 4px 10px;font-size:15px;line-height:1.7;color:#213830;background:transparent}
.thesis-chat-workspace .thesis-chat-composer textarea::placeholder{color:#7b8982}.thesis-chat-compose-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}.thesis-chat-workspace .thesis-chat-attachment-row{margin:0;min-width:0}.thesis-chat-compose-toolbar .btn{gap:7px;min-height:40px}.thesis-chat-compose-toolbar .btn.ghost{padding:6px 2px;font-size:12px;color:#52695c}.thesis-chat-compose-toolbar .btn.primary{padding:9px 15px;font-size:14px;white-space:nowrap}.thesis-chat-composer-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:11px;color:#708077}.thesis-chat-composer-foot small{font-size:11px;line-height:1.5}.thesis-chat-workspace .thesis-chat-attachment-preview strong{max-width:180px}
.thesis-chat-result-pane{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid #e5e9e3;background:#fff;overflow:hidden}.thesis-chat-result-header{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:96px;padding:22px 24px 18px}.thesis-chat-result-header h2{font-size:20px;font-weight:650;color:#213830;margin:0;line-height:1.5}.thesis-chat-result-header .btn{display:flex;align-items:center;gap:6px;min-height:36px;border:1px solid #d9e3dd;font-size:12px;border-radius:6px;padding:7px 10px}
.thesis-chat-result-meta{display:flex;align-items:center;gap:12px;padding:0 24px;color:#607267;font-size:12px;min-height:0}.thesis-chat-result-meta:not(:empty){padding-bottom:14px;border-bottom:1px solid #e5e9e3}.thesis-chat-result-meta>.btn{margin-left:auto;font-size:12px;min-height:30px}
.thesis-chat-results{flex:1;min-height:0;overflow:auto;padding:22px 24px 30px;scrollbar-gutter:stable}.thesis-chat-result-empty{display:grid;align-content:center;justify-items:start;gap:12px;min-height:300px;padding:28px 4px;color:#607267}.thesis-chat-result-empty>.thesis-chat-icon{width:30px;height:30px;opacity:.65}.thesis-chat-result-empty h3{font-size:17px;color:#35453f;margin:0;font-weight:600}.thesis-chat-result-empty p{font-size:14px;line-height:1.9;margin:0;max-width:320px}
.thesis-chat-results .thesis-chat-artifact{padding:0 0 24px;margin-bottom:24px;border:0;border-bottom:1px solid #e5e9e3;border-radius:0;background:#fff}.thesis-chat-results .thesis-chat-artifact:last-child{border-bottom:0;margin-bottom:0}.thesis-chat-results .thesis-chat-artifact>span{display:none}.thesis-chat-results .thesis-chat-artifact>strong{font-size:20px;color:#213830;font-weight:650;line-height:1.65;margin:0 0 14px;overflow-wrap:anywhere}.thesis-chat-results .thesis-chat-artifact p{font-size:14px;line-height:1.85;color:#52665a;margin-top:8px}.thesis-chat-results .thesis-chat-artifact-actions{margin-top:16px;gap:8px}.thesis-chat-results .thesis-chat-artifact-actions .btn{font-size:12px;min-height:36px;padding:7px 10px;border:1px solid #dce6de}
.thesis-chat-results .thesis-chat-outline-chapter{position:relative;padding:18px 0;border-top:1px solid #e5e9e3;margin:0}.thesis-chat-results .thesis-chat-outline-chapter h4{font-size:16px;font-weight:650;color:#213830;margin:0 0 10px;line-height:1.6;padding-right:38px}.thesis-chat-results .thesis-chat-outline-sections{margin:0;padding-left:20px;list-style:none}.thesis-chat-results .thesis-chat-outline-sections>li{font-size:14px;line-height:1.8;margin:5px 0;color:#405549}.thesis-chat-results .thesis-chat-outline-sections strong{font-weight:400}.thesis-chat-results .thesis-chat-outline-chapter.is-updated{padding:16px 14px;margin:6px -14px;border-radius:6px;border-top-color:transparent;background:#eaf2ec}.thesis-chat-updated{position:absolute;right:12px;top:19px;color:#24634e;font-size:11px}
.thesis-chat-view-tabs{display:none}.thesis-chat-workspace .thesis-chat-welcome{padding:10px 0;margin:auto 0}.thesis-chat-workspace .thesis-chat-welcome h2{font-size:22px;line-height:1.5}.thesis-chat-workspace .thesis-chat-welcome>p{font-size:14px}.thesis-chat-workspace .thesis-chat-mode-options{grid-template-columns:1fr;gap:10px;margin-top:20px}.thesis-chat-workspace .thesis-chat-mode-options button{padding:12px 14px}.thesis-chat-workspace .thesis-chat-mode-options strong{font-size:14px}.thesis-chat-workspace .thesis-chat-mode-options span{font-size:12px}
@media(min-width:1000px) and (max-width:1190px){.thesis-chat-workspace .thesis-chat-board{grid-template-columns:175px minmax(290px,1fr) minmax(310px,1fr)}.thesis-chat-workspace .thesis-chat-header,.thesis-chat-workspace .thesis-chat-messages,.thesis-chat-workspace .thesis-chat-composer,.thesis-chat-results,.thesis-chat-result-header{padding-left:18px;padding-right:18px}.thesis-chat-workspace .thesis-chat-header-actions select{width:112px}.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:17px}}
@media(max-width:999px){.thesis-chat-workspace{height:calc(100dvh - 112px);min-height:550px}.thesis-chat-workspace .thesis-chat-board{grid-template-columns:180px minmax(0,1fr);position:relative}.thesis-chat-workspace .thesis-chat-header{min-height:110px;padding:16px 18px}.thesis-chat-workspace .thesis-chat-sidebar{border-bottom:0;grid-row:1;grid-column:1}.thesis-chat-workspace .thesis-chat-conversations{max-height:none;display:flex}.thesis-chat-workspace .thesis-chat-main{grid-column:2;grid-row:1}.thesis-chat-view-tabs{display:flex;gap:8px;width:100%}.thesis-chat-view-tabs button{flex:1;padding:8px 12px;border:1px solid #dce6de;border-radius:6px;font-size:13px}.thesis-chat-board[data-view="conversation"] [data-view="conversation"],.thesis-chat-board[data-view="results"] [data-view="results"]{background:#eaf2ec;color:#24634e;font-weight:600}.thesis-chat-result-pane{display:none;position:absolute;top:110px;bottom:0;left:180px;right:0;z-index:2;border-left:0}.thesis-chat-board[data-view="results"] .thesis-chat-result-pane{display:flex}.thesis-chat-workspace .thesis-chat-message{max-width:100%}.thesis-chat-workspace .thesis-chat-header-actions{width:auto;flex:none}.thesis-chat-workspace .thesis-chat-header-actions select{width:112px}.thesis-chat-workspace .thesis-chat-results .thesis-chat-artifact>strong{font-size:18px}}
@media(max-width:600px){.thesis-chat-workspace .thesis-chat-board{grid-template-columns:1fr}.thesis-chat-workspace .thesis-chat-sidebar{display:none}.thesis-chat-workspace .thesis-chat-main{grid-column:1}.thesis-chat-result-pane{left:0;top:132px}.thesis-chat-workspace .thesis-chat-header{min-height:132px;padding:14px 16px}.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:17px}.thesis-chat-workspace .thesis-chat-header-title>small{font-size:11px}.thesis-chat-workspace .thesis-chat-messages{padding:20px 16px;gap:24px}.thesis-chat-workspace .thesis-chat-composer{padding:12px 16px 16px}.thesis-chat-context{padding:14px 16px 0}.thesis-chat-workspace .thesis-chat-message-body{font-size:14px;padding:12px}.thesis-chat-avatar{width:30px;height:30px}.thesis-chat-message-content{max-width:calc(100% - 42px)}.thesis-chat-workspace .thesis-chat-composer textarea{font-size:14px}.thesis-chat-results{padding:18px 20px}.thesis-chat-compose-toolbar .btn.ghost{font-size:11px}.thesis-chat-workspace .thesis-chat-input-shell{padding:10px}.thesis-chat-workspace .thesis-chat-composer-foot small{font-size:10px}.thesis-chat-workspace .thesis-chat-attachment-preview strong{max-width:140px}}
@media(prefers-reduced-motion:reduce){.thesis-chat-workspace .thesis-chat-thinking-dot{animation:none}}

.thesis-chat-mobile-history,.thesis-chat-mobile-new{display:none}.thesis-chat-workspace .thesis-chat-header-actions{display:flex;align-items:center;gap:6px}
@media(max-width:600px){.thesis-chat-mobile-history,.thesis-chat-mobile-new{display:inline-flex;width:32px;height:34px;align-items:center;justify-content:center;padding:5px}.thesis-chat-workspace .thesis-chat-header-actions select{width:100px}.thesis-chat-board[data-history-open="true"] .thesis-chat-sidebar{display:flex;position:absolute;left:0;top:132px;bottom:0;width:240px;z-index:5;box-shadow:12px 0 28px #21383018}.thesis-chat-workspace .thesis-chat-header-title{flex-basis:100%;}.thesis-chat-workspace .thesis-chat-header{gap:8px}.thesis-chat-workspace .thesis-chat-header-actions{position:absolute;right:16px;top:63px}.thesis-chat-view-tabs{padding-right:180px}.thesis-chat-workspace{height:calc(100dvh - 59px);min-height:0}.thesis-chat-workspace .thesis-chat-results{overscroll-behavior:contain}}

/* Fidelity refinements after comparison with the selected design. */
@media(min-width:1191px){.thesis-chat-workspace .thesis-chat-board{grid-template-columns:minmax(220px,.45fr) minmax(320px,1.075fr) minmax(360px,1fr)}}
@media(min-width:651px){.thesis-chat-workspace{height:calc(100dvh - 116px);min-height:0}}
.thesis-chat-workspace .thesis-chat-history-label{display:none}.thesis-chat-workspace .thesis-chat-sidebar-head{min-height:106px}.thesis-chat-workspace .thesis-chat-conversations{padding-top:12px}.thesis-chat-workspace .thesis-chat-header{min-height:106px}.thesis-chat-workspace .thesis-chat-brand strong{font-size:23px}.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:24px}.thesis-chat-workspace .thesis-chat-conversation strong{font-size:16px}.thesis-chat-workspace .thesis-chat-conversation small{font-size:13px}
.thesis-chat-workspace .thesis-chat-message-body{font-size:16px;line-height:1.65}.thesis-chat-workspace .thesis-chat-message-role{font-size:13px}.thesis-chat-workspace .thesis-chat-messages{gap:24px}.thesis-chat-avatar{width:42px;height:42px}.thesis-chat-avatar .thesis-chat-icon{width:25px;height:25px}.thesis-chat-message-content{max-width:calc(100% - 54px)}
.thesis-chat-result-link{font-size:12px;padding:0;line-height:1.5;min-height:24px;gap:5px;color:#657a6e}.thesis-chat-result-link>.thesis-chat-icon{width:14px;height:14px}.thesis-chat-workspace .thesis-chat-message-content>time{font-size:11px;line-height:1.2}
.thesis-chat-result-header{min-height:78px;padding-bottom:12px}.thesis-chat-result-header h2{font-size:24px}.thesis-chat-results{padding-top:14px}.thesis-chat-results .thesis-chat-artifact>strong{font-size:24px;margin-bottom:8px;line-height:1.5}.thesis-chat-result-meta,.thesis-chat-result-meta:not(:empty){padding:0 0 16px;border:0;font-size:14px;line-height:1.5}.thesis-chat-results .thesis-chat-outline-chapter{padding:13px 0}.thesis-chat-results .thesis-chat-outline-chapter h4{font-size:18px;line-height:1.5;margin-bottom:8px}.thesis-chat-results .thesis-chat-outline-sections>li{font-size:16px;line-height:1.65;margin:0}.thesis-chat-results .thesis-chat-outline-chapter.is-updated{padding:13px 14px;margin:6px -14px}.thesis-chat-results .thesis-chat-outline-chapter p{font-size:14px;line-height:1.65;margin:0 0 8px}.thesis-chat-updated{top:17px;font-size:12px}
@media(max-width:1190px){.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:18px}.thesis-chat-workspace .thesis-chat-brand strong{font-size:18px}.thesis-chat-workspace .thesis-chat-conversation strong{font-size:14px}.thesis-chat-results .thesis-chat-artifact>strong{font-size:20px}.thesis-chat-result-header h2{font-size:20px}}
@media(max-width:600px){.thesis-chat-workspace .thesis-chat-header{min-height:132px}.thesis-chat-workspace .thesis-chat-message-body{font-size:14px}.thesis-chat-avatar{width:30px;height:30px}.thesis-chat-message-content{max-width:calc(100% - 42px)}.thesis-chat-results .thesis-chat-outline-sections>li{font-size:14px}.thesis-chat-results .thesis-chat-outline-chapter h4{font-size:16px}}

.thesis-chat-sidebar-footer{min-height:192px;padding:20px 18px 38px;gap:34px;align-content:start}.thesis-chat-sidebar-footer>.btn{min-height:52px;font-size:16px}.thesis-chat-message-content{position:relative;gap:6px}.thesis-chat-workspace .thesis-chat-message-content>time{position:absolute;right:0;bottom:-18px}.thesis-chat-workspace .thesis-chat-messages{gap:32px}.thesis-chat-workspace .thesis-chat-message-role{line-height:1.5}.thesis-chat-workspace .thesis-chat-message-body{line-height:1.65}.thesis-chat-result-link{justify-self:start;min-height:20px}.thesis-chat-results .is-updated h4{color:#24634e}.thesis-chat-results .is-updated>p{padding-left:20px}.thesis-chat-results .thesis-chat-outline-sections{padding-left:40px}
@media(max-width:600px){.thesis-chat-sidebar-footer{min-height:130px;padding:16px;gap:16px}.thesis-chat-sidebar-footer>.btn{min-height:44px;font-size:14px}.thesis-chat-workspace .thesis-chat-messages{gap:28px}.thesis-chat-results .thesis-chat-outline-sections{padding-left:16px}.thesis-chat-results .is-updated>p{padding-left:0}}

@media(max-width:999px){.thesis-chat-result-pane{top:var(--thesis-chat-header-height,140px)}}
@media(max-width:600px){.thesis-chat-board[data-history-open="true"] .thesis-chat-sidebar{top:var(--thesis-chat-header-height,132px)}}

@media(max-width:650px){.thesis-chat-workspace{height:calc(100dvh - 99px);min-height:0}body:has(.thesis-chat-workspace) .topbar .role-pill,body:has(.thesis-chat-workspace) .breadcrumb>span,body:has(.thesis-chat-workspace) .breadcrumb>svg{display:none}body:has(.thesis-chat-workspace) .breadcrumb{gap:8px;min-width:0}body:has(.thesis-chat-workspace) .breadcrumb>b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}body:has(.thesis-chat-workspace) .top-actions{flex:none}}

@media(max-width:600px){.thesis-chat-workspace .thesis-chat-header{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:10px 8px}.thesis-chat-workspace .thesis-chat-header-title{grid-column:1/-1}.thesis-chat-workspace .thesis-chat-header-actions{position:static;grid-column:2;grid-row:2;right:auto;top:auto}.thesis-chat-view-tabs{grid-column:1;grid-row:2;padding:0;width:auto}.thesis-chat-view-tabs button{padding:8px;font-size:12px}.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:17px}}

.thesis-chat-sent-attachment{margin:12px 0 0;max-width:280px;overflow:hidden;border:1px solid #c9dfd3;border-radius:10px;background:#fff;color:#294e40;white-space:normal}
.thesis-chat-sent-attachment>.thesis-chat-image-preview{display:block;width:100%;max-height:240px;object-fit:contain;background:#f7faf8}
.thesis-chat-sent-attachment>.thesis-chat-icon{margin:12px 12px 0;width:24px;height:24px}
.thesis-chat-sent-attachment figcaption{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:12px;line-height:1.5}
.thesis-chat-sent-attachment figcaption span{min-width:0;overflow-wrap:anywhere}
.thesis-chat-sent-attachment figcaption small{flex:none;color:#74877e;font-size:10px}

/* Compact assistant typography and per-item actions. */
.thesis-chat-workspace .thesis-chat-brand strong,.thesis-chat-workspace .thesis-chat-header-title>strong,.thesis-chat-workspace .thesis-chat-result-header h2{font-size:18px}
.thesis-chat-workspace .thesis-chat-conversation strong{font-size:13px}.thesis-chat-workspace .thesis-chat-conversation small{font-size:11px}
.thesis-chat-workspace .thesis-chat-message-body,.thesis-chat-workspace .thesis-chat-composer textarea,.thesis-chat-workspace .thesis-chat-context strong{font-size:14px;line-height:1.75}
.thesis-chat-workspace .thesis-chat-message-role{font-size:11px}.thesis-chat-workspace .thesis-chat-welcome h2{font-size:18px}.thesis-chat-workspace .thesis-chat-welcome>p{font-size:13px}
.thesis-chat-workspace .thesis-chat-results .thesis-chat-artifact>strong{font-size:18px;line-height:1.6;overflow-wrap:anywhere}.thesis-chat-workspace .thesis-chat-results .thesis-chat-artifact>p,.thesis-chat-workspace .thesis-chat-result-meta{font-size:13px;line-height:1.75}
.thesis-chat-workspace .thesis-chat-results .thesis-chat-outline-chapter h4{font-size:15px}.thesis-chat-workspace .thesis-chat-results .thesis-chat-outline-sections>li{font-size:13px;line-height:1.75}.thesis-chat-workspace .thesis-chat-results .thesis-chat-outline-chapter p{font-size:12px}
.thesis-chat-workspace .thesis-chat-sidebar-footer>.btn{font-size:13px;min-height:44px}.thesis-chat-workspace .thesis-chat-compose-toolbar .btn,.thesis-chat-workspace .thesis-chat-quick-list .btn{font-size:12px}
.thesis-chat-conversation-row{position:relative;min-width:0}.thesis-chat-workspace .thesis-chat-conversation-row>.thesis-chat-conversation{width:100%;padding-right:38px;min-height:66px}.thesis-chat-conversation-row .thesis-chat-delete{position:absolute;right:5px;top:13px;padding:5px;min-height:32px;width:30px;color:#74877e;border:0;background:transparent}.thesis-chat-delete .icon{width:16px;height:16px}.thesis-chat-conversation-row .thesis-chat-delete:hover{color:#a33c37;background:#f9eae8}.thesis-chat-conversation-row .thesis-chat-delete:focus-visible{outline:2px solid #24634e;outline-offset:1px}
.thesis-chat-results .thesis-chat-artifact:has(.thesis-chat-copy-topic){position:relative}.thesis-chat-results .thesis-chat-artifact:has(.thesis-chat-copy-topic)>strong{padding-right:68px}.thesis-chat-results .thesis-chat-copy-topic{position:absolute;right:0;top:0;gap:4px;padding:5px 7px;min-height:32px;font-size:11px;white-space:nowrap;color:#24634e}.thesis-chat-copy-topic .thesis-chat-icon{width:15px;height:15px}
.thesis-chat-workspace .thesis-chat-topic-shortcuts{display:flex;flex-wrap:wrap;gap:6px}.thesis-chat-workspace .thesis-chat-topic-shortcuts .btn{font-size:11px;min-height:32px;padding:6px 9px;background:#f5faf7}
@media(max-width:600px){.thesis-chat-workspace .thesis-chat-header-title>strong{font-size:16px}.thesis-chat-workspace .thesis-chat-message-body,.thesis-chat-workspace .thesis-chat-composer textarea{font-size:13px}.thesis-chat-workspace .thesis-chat-results .thesis-chat-artifact>strong{font-size:17px}.thesis-chat-conversation-row .thesis-chat-delete{width:36px;min-height:36px;right:2px;top:12px}}

/* Sources are separate from model prose and do not imply data access. */
.thesis-chat-evidence{font-size:12px;line-height:1.7;color:#496659;border:1px solid #dce6de;border-radius:6px;padding:8px 10px;white-space:normal}.thesis-chat-evidence summary{cursor:pointer;font-weight:600}.thesis-chat-evidence ol{margin:8px 0;padding-left:20px}.thesis-chat-evidence a{color:#24634e;overflow-wrap:anywhere;text-decoration:underline}.thesis-chat-evidence li small{display:block;color:#687b70}.thesis-chat-evidence-status{font-size:12px;color:#687b70;margin:0}.thesis-chat-results .thesis-chat-artifact .thesis-chat-data-condition{font-size:12px;color:#687b70;padding:8px 10px;background:#f6f8f5;border-radius:5px}

/* Empty assistant conversations use all available conversation space. */
.thesis-chat-result-pane[hidden],.thesis-chat-view-tabs[hidden]{display:none!important}
.thesis-chat-result-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}
.thesis-chat-result-controls [data-act="thesis-chat-close-pane"]{font-size:23px;padding:3px 9px;line-height:1}
.thesis-chat-result-version-row{padding:0 24px}.thesis-chat-result-version-row select{width:100%;max-width:100%;font-size:12px;margin-bottom:12px}
.thesis-chat-result-updating{font-size:12px;color:#487363;background:#f1f7f3;padding:10px 12px;border-radius:6px;margin:0 0 18px}
.thesis-chat-resize-handle{display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;background:#fff;z-index:3}
.thesis-chat-resize-handle span{height:44px;width:3px;background:#d7e4dd;border-radius:3px}
.thesis-chat-resize-handle:hover,.thesis-chat-resize-handle:focus-visible{background:#eaf2ec;outline:0}.thesis-chat-resize-handle:focus-visible span,.thesis-chat-resize-handle:hover span{background:#24634e}
.thesis-chat-board.is-resizing{user-select:none;cursor:col-resize}.thesis-chat-board.is-resizing *{cursor:col-resize!important}
@media(min-width:1000px){
 .thesis-chat-workspace .thesis-chat-board[data-pane-open="true"]{grid-template-columns:220px minmax(0,1fr) 8px minmax(0,var(--thesis-chat-pane-width,440px))}
 .thesis-chat-workspace .thesis-chat-board[data-pane-open="false"]{grid-template-columns:220px minmax(0,1fr)}
 .thesis-chat-workspace .thesis-chat-main{grid-column:2;grid-row:1}
 .thesis-chat-resize-handle{grid-column:3;grid-row:1}.thesis-chat-result-pane{grid-column:4;grid-row:1}
 .thesis-chat-result-header{min-height:76px;padding:18px 24px 14px}
}
@media(min-width:1000px) and (max-width:1190px){.thesis-chat-workspace .thesis-chat-board[data-pane-open="true"]{grid-template-columns:175px minmax(0,1fr) 8px minmax(0,var(--thesis-chat-pane-width,360px))}.thesis-chat-workspace .thesis-chat-board[data-pane-open="false"]{grid-template-columns:175px minmax(0,1fr)}}
@media(max-width:999px){.thesis-chat-resize-handle{display:none!important}.thesis-chat-result-header{min-height:64px;padding:12px 20px}.thesis-chat-result-version-row{padding:0 20px}.thesis-chat-open-pane{display:none}}
@media(min-width:1191px){.thesis-chat-workspace .thesis-chat-board[data-has-results="false"]{grid-template-columns:240px minmax(0,1fr)}}
@media(min-width:1000px) and (max-width:1190px){.thesis-chat-workspace .thesis-chat-board[data-has-results="false"]{grid-template-columns:175px minmax(0,1fr)}}
.thesis-chat-sent-attachment{position:relative}.thesis-chat-image-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:9px}.thesis-chat-image-open:hover{box-shadow:inset 0 0 0 2px #5d9779}.thesis-chat-image-open:focus-visible{outline:3px solid #24634e;outline-offset:-3px}

/* Match the announcement action to the urgency banner header. */
.btn[data-act="order-announcement-editor"]{background:#fff0df;border-color:#e9a78e;color:#213830;box-shadow:none}
.btn[data-act="order-announcement-editor"]:hover{background:#ffe5c9;border-color:#cb603c;color:#213830}

/* Conversation-first research results; no persistent results column. */
.thesis-chat-workspace .thesis-chat-board[data-layout="conversation"]{grid-template-columns:220px minmax(0,1fr)}
.thesis-chat-workspace .thesis-chat-messages{padding:28px max(24px,calc((100% - 920px)/2));gap:26px}
.thesis-chat-workspace .thesis-chat-composer{padding:14px max(24px,calc((100% - 920px)/2)) 18px}
.thesis-chat-workspace .thesis-chat-main{grid-column:2;grid-row:1;min-width:0}
.thesis-chat-workspace .assistant .thesis-chat-message-content{width:calc(100% - 54px)}
.thesis-chat-workspace .assistant .thesis-chat-message-body{background:transparent;padding:2px 0;border-radius:0;white-space:normal}
.thesis-chat-message-body p{margin:0 0 12px}.thesis-chat-message-body p:last-child{margin-bottom:0}
.thesis-chat-message-body h3{font-size:16px;line-height:1.6;margin:16px 0 8px;color:#213830}
.thesis-chat-message-body ul,.thesis-chat-message-body ol{padding-left:22px;margin:8px 0 14px}.thesis-chat-message-body li{margin:5px 0}
.thesis-chat-message-body code{font-size:.92em;background:#f1f4f2;border-radius:4px;padding:2px 4px}.thesis-chat-message-body pre{white-space:pre-wrap;background:#f5f7f6;padding:12px;border-radius:8px;overflow-wrap:anywhere}
.thesis-chat-table-wrap{max-width:100%;overflow:auto}.thesis-chat-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.thesis-chat-table-wrap th,.thesis-chat-table-wrap td{border:1px solid #e2e9e4;padding:9px 12px;text-align:left;min-width:100px}.thesis-chat-table-wrap th{background:#f5f8f6;font-weight:600}
.thesis-chat-inline-results{min-width:0;width:100%;border-top:1px solid #e4ebe6;margin-top:8px;padding-top:12px}
.thesis-chat-inline-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:12px;color:#687b70}
.thesis-chat-inline-toolbar>div{display:flex;align-items:center;gap:8px;flex-shrink:0}.thesis-chat-inline-toolbar .btn{font-size:11px;min-height:32px;padding:5px 8px;gap:5px;color:#24634e}.thesis-chat-inline-toolbar .thesis-chat-icon{width:15px;height:15px}
.thesis-chat-inline-item{position:relative;padding:18px 0;border-bottom:1px solid #e4ebe6;min-width:0}.thesis-chat-inline-item:last-child{border-bottom:0;padding-bottom:8px}
.thesis-chat-inline-results .thesis-chat-artifact,.thesis-chat-reader .thesis-chat-artifact{position:relative;padding:0;border:0;background:transparent;border-radius:0;min-width:0;color:#334c40;font-size:13px;line-height:1.85}
.thesis-chat-inline-item[data-result-type="topic"]{padding-left:32px}.thesis-chat-topic-number{position:absolute;left:0;top:19px;border-radius:6px;background:#edf4ef;color:#24634e;min-width:23px;height:23px;display:grid;place-items:center;font-size:11px;font-weight:600}
.thesis-chat-inline-results .thesis-chat-artifact h3,.thesis-chat-reader .thesis-chat-artifact h3{font-size:16px;line-height:1.65;margin:0 0 12px;font-weight:650;color:#213830;overflow-wrap:anywhere}
.thesis-chat-inline-item[data-result-type="topic"] h3{padding-right:64px}
.thesis-chat-inline-results .thesis-chat-copy-topic{position:absolute;right:0;top:0;padding:3px 6px;min-height:30px;font-size:11px;gap:4px;color:#24634e;white-space:nowrap}
.thesis-chat-inline-results .thesis-chat-artifact p,.thesis-chat-reader .thesis-chat-artifact p{margin:0 0 9px;font-size:13px;line-height:1.85;color:#52665a;white-space:normal}
.thesis-chat-result-field{margin:8px 0}.thesis-chat-result-field>strong{font-weight:600;font-size:12px;color:#385748}.thesis-chat-result-field ul,.thesis-chat-result-field ol{padding-left:20px;margin:5px 0}.thesis-chat-result-field li{margin:4px 0}
.thesis-chat-result-kind{font-size:11px;font-weight:600;color:#687b70;margin-bottom:8px}
.thesis-chat-related-result{margin-top:14px;border:1px solid #e1e9e3;border-radius:7px;background:#fafcfb;font-size:12px;min-width:0}
.thesis-chat-related-result>summary{cursor:pointer;padding:9px 12px;color:#385748;font-weight:600;overflow-wrap:anywhere}
.thesis-chat-related-result>summary>span{margin-left:10px;font-size:11px;font-weight:400;color:#687b70}
.thesis-chat-related-result[open]>summary>span{display:none}
.thesis-chat-related-result>div{border-top:1px solid #e1e9e3;padding:10px 12px;min-width:0}
.thesis-chat-related-result .thesis-chat-keywords{margin:6px 0}
.thesis-chat-inline-results .thesis-chat-artifact-actions{margin-top:12px;gap:6px}.thesis-chat-inline-results .thesis-chat-artifact-actions .btn{font-size:11px;min-height:30px;padding:4px 8px;border:1px solid #dce6de;border-radius:6px;color:#24634e}
.thesis-chat-keywords{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.thesis-chat-keywords span{background:#edf4ef;border-radius:5px;padding:3px 9px;color:#24634e;font-size:12px}
.thesis-chat-inline-results .thesis-chat-data-condition{background:#f6f8f6;padding:8px 10px;border-radius:6px;font-size:12px!important}
.thesis-chat-inline-results .thesis-chat-outline-chapter,.thesis-chat-reader .thesis-chat-outline-chapter{position:relative;margin:0;padding:16px 0;border-top:1px solid #e5ebe7}
.thesis-chat-outline-chapter h4{font-size:14px;line-height:1.6;margin:0 0 8px;padding-right:48px;color:#264638}
.thesis-chat-outline-sections{list-style:none;padding-left:18px;margin:6px 0}.thesis-chat-outline-sections li{margin:6px 0;font-size:13px;line-height:1.8}.thesis-chat-outline-sections ul{list-style:none;padding-left:20px}.thesis-chat-outline-sections strong{font-weight:500}.thesis-chat-outline-chapter.is-updated{background:#f5f9f6;border-radius:6px;padding:14px 12px!important}.thesis-chat-updated{top:16px;right:10px;font-size:10px}
#modal.thesis-chat-reader{width:min(900px,calc(100vw - 40px));max-width:900px;height:min(860px,90dvh);max-height:90dvh;padding:0}
.thesis-chat-reader .modal-body{overflow:auto;padding:22px 32px}.thesis-chat-reader .modal-head{padding:18px 24px}.thesis-chat-reader .modal-foot{position:sticky;bottom:-22px;background:#fff;padding:16px 0;margin-top:20px;border-top:1px solid #e4ebe6}.thesis-chat-reader-content{max-width:740px;margin:auto}.thesis-chat-reader .thesis-chat-artifact h3{font-size:19px}.thesis-chat-reader .thesis-chat-artifact p,.thesis-chat-reader .thesis-chat-outline-sections li{font-size:14px}.thesis-chat-reader .thesis-chat-outline-chapter h4{font-size:16px}
@media(max-width:999px){.thesis-chat-workspace .thesis-chat-board[data-layout="conversation"]{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:600px){.thesis-chat-workspace .thesis-chat-board[data-layout="conversation"]{grid-template-columns:1fr}.thesis-chat-workspace .thesis-chat-main{grid-column:1}.thesis-chat-workspace .thesis-chat-header{min-height:100px}.thesis-chat-workspace .thesis-chat-header-actions{grid-column:1/-1;justify-content:flex-end}.thesis-chat-workspace .thesis-chat-messages{padding:20px 14px}.thesis-chat-workspace .thesis-chat-composer{padding:12px 14px 16px}.thesis-chat-workspace .assistant .thesis-chat-message-content{width:calc(100% - 42px)}.thesis-chat-inline-toolbar{flex-wrap:wrap}.thesis-chat-inline-item[data-result-type="topic"]{padding-left:0;padding-top:42px}.thesis-chat-topic-number{top:12px}.thesis-chat-inline-results .thesis-chat-artifact h3{font-size:15px}.thesis-chat-inline-results .thesis-chat-copy-topic{top:-32px}.thesis-chat-inline-item[data-result-type="topic"] h3{padding-right:0}.thesis-chat-inline-results .thesis-chat-artifact p{font-size:12px}#modal.thesis-chat-reader{width:calc(100vw - 16px);height:94dvh;max-height:94dvh}.thesis-chat-reader .modal-body{padding:18px 18px}.thesis-chat-reader .modal-foot{bottom:-18px}}

.thesis-chat-reader[open]{display:flex;flex-direction:column}.thesis-chat-reader .modal-body{flex:1;min-height:0}.thesis-chat-reader .modal-head{flex:none}

.thesis-chat-workspace .thesis-chat-header{min-height:76px;padding-top:16px;padding-bottom:16px}
.thesis-chat-workspace .thesis-chat-context{padding-top:10px;padding-bottom:10px;gap:8px;border-bottom:1px solid #f0f3f1}.thesis-chat-context>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}.thesis-chat-workspace .thesis-chat-context strong{font-size:12px}
.thesis-chat-workspace .thesis-chat-composer textarea{min-height:54px;font-size:13px}
@media(max-width:600px){.thesis-chat-workspace .thesis-chat-header{min-height:96px}.thesis-chat-workspace .thesis-chat-context{padding-left:14px;padding-right:14px}.thesis-chat-workspace .thesis-chat-messages{gap:24px}}

.thesis-chat-common-condition{font-size:12px;line-height:1.7;color:#687b70;background:#f6f8f6;border-radius:6px;padding:10px 12px;margin:12px 0 0}
/* Real model deltas share the final reply layout, without provisional actions. */
.thesis-chat-workspace .pending .thesis-chat-message-body.is-streaming{display:block;white-space:normal;background:transparent;padding:2px 0;color:var(--text)}
.thesis-chat-stream-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-top:14px}
.thesis-chat-stream-results{margin-top:12px}
/* Project delivery and linked revision history keep the existing worklist style. */
.delivered-view-bar{display:flex;gap:8px;flex-wrap:wrap;padding:18px 21px 0}
.delivered-filter-bar{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr)) auto;gap:14px;align-items:end;padding:18px 21px;border-bottom:1px solid var(--line);background:#fafcf8}
.delivered-project-card>.delivered-filter-bar{grid-template-columns:repeat(6,minmax(110px,160px));gap:12px;justify-content:start}
.admin-delivery-card>.delivered-filter-bar{grid-template-columns:repeat(7,minmax(100px,160px))}
.delivered-filter-field{display:grid;gap:7px;min-width:0;color:#526657;font-size:11px}
.delivered-filter-field .filter-select,.delivered-filter-field input{width:100%;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;padding:9px 10px;background:white;color:#405346;font:inherit;min-height:37px}
.delivered-filter-feedback{padding:0 23px 16px;font-size:11px;line-height:1.8;color:#526657;overflow-wrap:anywhere}
.delivered-filter-feedback>div{margin-top:8px}
.delivered-results-head{flex-wrap:wrap;gap:10px}
.delivered-project-table{min-width:1050px}
.delivered-project-table .delivery-version-label,.revision-delivery-table .delivery-version-label{display:inline-grid;justify-items:start;min-width:0;width:max-content;max-width:260px;white-space:normal;overflow-wrap:anywhere;padding:6px 8px}
.delivered-project-table th,.delivered-project-table td{padding-left:12px;padding-right:12px}
.delivered-project-table .title-cell{min-width:160px;max-width:220px}
.delivered-project-table .delivered-note-cell{min-width:140px;max-width:240px;white-space:normal}
.delivered-note-cell>.delivery-submission-note{margin:0;max-width:220px}
.delivery-attachment-count{display:block;margin-top:6px;white-space:nowrap;color:var(--muted);font-size:10px}
.delivery-undownloaded{display:flex;align-items:center;gap:4px;width:fit-content;margin:6px 0;padding:3px 6px;border-radius:5px;background:#fff0cc;color:#805413;font-size:10px;white-space:nowrap}
.delivery-undownloaded .icon{width:12px;height:12px}
.delivery-download-action{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.delivery-download-action>.delivery-undownloaded{margin:0}
.delivery-dismiss-reminder.btn{padding:3px 7px;min-height:26px;font-size:10px;white-space:nowrap;color:var(--muted)}
.delivered-project-table tr.is-undownloaded>td{background:#fffcf4}
.delivery-downloads .is-downloading,a[data-delivery-download].is-downloading{opacity:.6;cursor:wait}
.delivery-order-detail{display:flex;width:fit-content;margin-top:8px}
.delivery-history-access{display:block;max-width:180px;margin-top:8px;white-space:normal;line-height:1.7;color:var(--muted)}
.delivered-time-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0 21px 18px}
.delivered-time-label{color:#526657;font-size:11px;white-space:nowrap}
.delivered-time-presets{display:flex;flex-wrap:wrap;gap:5px}
.delivered-time-presets>.btn{font-size:11px;padding:7px 9px;min-height:33px}
.delivered-time-filter .delivered-date-trigger{min-width:125px;min-height:33px;padding:7px 10px;font-size:11px}
@media(max-width:600px){.delivered-time-filter{padding:0 15px 15px;gap:9px}.delivered-time-label{width:100%}.delivered-time-presets{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.delivered-time-presets>.btn{padding:7px 4px}.delivered-time-filter .delivered-date-control{width:100%}}
.delivery-version-label small{display:block;color:#7b8679;font-size:10px;margin-top:4px}
.delivery-ticket-link{display:block;margin-top:5px;color:var(--green);font-size:11px}
.delivered-revision{display:grid;gap:5px;justify-items:start}
.delivered-revision small{color:#7b8679;font-size:10px}
.delivered-history{margin-top:10px;min-width:170px;max-width:380px;font-size:11px;white-space:normal}
.delivered-history>summary,.delivery-note>summary{cursor:pointer;color:var(--green);padding:5px 0}
.delivered-history ol{list-style:none;padding:0;margin:8px 0 0;max-height:460px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:#f9fbf7;min-width:290px}
.delivered-history li{padding:12px;border-bottom:1px solid var(--line)}
.delivered-history li:last-child{border-bottom:0}
.delivery-history-heading{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:7px;color:#526657}
.delivered-history .delivery-downloads,.delivered-history li>.btn{margin-top:8px}
.delivery-submission-note{max-width:380px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:11px;color:#526657;margin:8px 0}
.delivery-note{margin-top:6px;font-size:11px}
.ticket-requirement-preview{max-width:260px;font-size:11px;color:#6a7a70;margin-top:7px;white-space:normal;overflow-wrap:anywhere;line-height:1.7}
.ticket-list-tabs{margin-bottom:20px}
.ticket-list-tabs .tab{min-height:40px;border-radius:0;background:transparent;border-top:0;border-left:0;border-right:0}
.revision-delivery-card .toolbar .search{flex:1;min-width:0}
.revision-delivery-card .search input{width:100%;min-width:0}
.revision-delivery-filters{grid-template-columns:repeat(5,minmax(0,1fr))}
.revision-delivery-card>.form-error{padding:0 21px}
.revision-delivery-table{min-width:1180px}
.revision-requirement-cell>.badge{display:table;margin-top:6px}
.delivered-filter-field :focus-visible,.delivered-history>summary:focus-visible,.delivery-note>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:900px){.delivered-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.revision-delivery-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.delivered-view-bar{padding:16px 15px 0}.delivered-view-bar>.btn{flex:1;font-size:11px;padding:8px}.delivered-filter-bar{padding:15px;gap:12px}.delivered-filter-feedback{padding:0 15px 15px}.delivered-results-head{padding:18px 15px}.delivered-results-head>.tag{white-space:normal;line-height:1.7}.revision-delivery-card .toolbar{padding:15px}.revision-delivery-card .toolbar .search{flex-basis:100%}.revision-delivery-card .toolbar .actions{width:100%}.revision-delivery-card .toolbar .actions>.btn{flex:1}.ticket-list-tabs{gap:18px}}

@media(max-width:1000px){.delivered-project-card>.delivered-filter-bar{grid-template-columns:repeat(3,minmax(0,170px))}}
@media(max-width:600px){.delivered-project-card>.delivered-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}
.nav-reminder-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#cf3f3f;flex:none;vertical-align:middle}
.nav a>.nav-reminder-dot{margin-left:auto;box-shadow:0 0 0 2px #fff}
.nav a>.count+.nav-reminder-dot{margin-left:0}
.ticket-list-tabs .nav-reminder-dot{margin-left:7px}
.sidebar-reminder-panel{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;margin-bottom:18px;border:1px solid #efd9cf;border-radius:8px;background:#fffaf5}
.sidebar-reminder-panel[hidden]{display:none}
.sidebar-reminder-panel .btn.ghost{color:#985337;white-space:normal;text-align:left}

/* Operational summaries and shared ECharts for company and writer statistics. */
.stats-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;margin:0 0 20px;max-width:560px;border:1px solid #dfe8dd;border-radius:10px;background:#edf2eb}
.stats-view-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 14px;border:1px solid transparent;border-radius:7px;color:#617369;font:inherit;font-size:13px;cursor:pointer}
.stats-view-tabs button>svg{width:16px;height:16px}
.stats-view-tabs button[aria-selected=true]{color:#255b43;background:#fff;border-color:#d4e2d2;box-shadow:0 2px 5px #243e2510;font-weight:600}
.stats-view-tabs button:focus-visible,.stats-tab-panel:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.stats-tab-panel[hidden],#stats-period-controls[hidden],.page-head [data-act^=stats-][hidden]{display:none}
.stats-record-actions{display:flex;justify-content:flex-end;margin:12px 0 22px}
.stats-tab-panel>.stats-section-heading{margin-top:0}
.stats-tab-panel>.stats-record-card{margin-top:0}
@media(max-width:650px){.stats-view-tabs{max-width:none;margin-bottom:16px;gap:3px}.stats-view-tabs button{padding:11px 6px;font-size:12px;gap:5px}.stats-view-tabs button>svg{width:14px;height:14px}}
.stats-live-summary .stats-live-heading{cursor:default;margin-bottom:13px}
.stats-live-summary .stats-live-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.stats-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}
.stats-section-heading h2{font-size:16px;color:var(--ink)}
.stats-section-heading span{font-size:11px;color:#65776b}
.stats-personal-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.stats-period-metrics .metric{min-width:0}
.stats-period-metrics .metric-top{align-items:flex-start;line-height:1.6}
.stats-echarts-visuals{grid-template-columns:repeat(2,minmax(0,1fr))}
.stats-echarts-visuals>.card{min-width:0}
.stats-echarts-visuals .stats-trend-card{grid-column:1/-1}
.stats-echart{width:100%;min-width:0;height:280px}
.stats-trend-card .stats-echart{height:300px}
.stats-punctuality-summary{display:flex;align-items:center;gap:16px;text-align:left;color:var(--green);padding:8px 0;cursor:pointer}
.stats-punctuality-summary strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
.stats-punctuality-summary span{font-size:12px;color:#5e7466;line-height:1.7}
.stats-punctuality-summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.stats-chart-fallback{padding:24px 10px;color:#65776b;font-size:12px;line-height:1.8}
@media(max-width:1200px){.stats-personal-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.stats-echarts-visuals{grid-template-columns:1fr}.stats-live-summary .stats-live-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .stats-live-summary{padding:14px;margin-bottom:20px}
 .stats-live-summary .stats-live-metrics,.stats-period-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .stats-live-metrics .metric{padding:11px;min-width:0}
 .stats-live-metrics .metric-top{line-height:1.6;align-items:flex-start}
 .stats-live-metrics .metric-icon{display:none}
 .stats-period-metrics .metric{padding:14px}
 .stats-personal-metrics>.metric:first-child{grid-column:1/-1;background:#f3f8f1;border-color:#b9d1ba}
 .stats-period-metrics .metric-value{font-size:26px}
 .stats-echarts-visuals .card-head{gap:10px;align-items:flex-start;flex-wrap:wrap}
 .stats-echarts-visuals .card-head .filter-select{width:auto}
 .stats-echart,.stats-trend-card .stats-echart{height:280px}
 .stats-section-heading{align-items:flex-start;flex-wrap:wrap}
}

/* Shared order conversations: desktop workspace and mobile conversation view. */
.business-chat-workspace{padding-top:22px}
.business-chat-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.business-chat-page-heading h1{font-size:25px;letter-spacing:-.5px;color:#203d34}
.business-chat-page-heading p{font-size:12px;color:#7b8b80;margin-top:6px}
.business-chat-summary{display:flex;align-items:center;gap:7px;font-size:11px;color:#718678;flex-wrap:wrap}
.business-chat-summary i{width:6px;height:6px;background:#54896d;border-radius:50%}
.business-chat-summary .btn{margin-left:12px}
.business-chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr) 240px;height:max(520px,calc(100dvh - 224px));max-height:1100px;border:1px solid #dce6df;border-radius:14px;background:#fff;overflow:hidden;position:relative;box-shadow:0 6px 24px #244a3605}
.business-chat-sidebar{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fafcf9;border-right:1px solid #e4ebe4}
.business-chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:22px 18px 17px;font-size:14px;color:#294d3e}
#business-chat-unread-total{font-size:11px;background:#e6eee6;color:#416a52;border-radius:6px;padding:3px 7px}
.business-chat-search{display:flex;align-items:center;gap:8px;margin:0 14px;background:white;border:1px solid #e1e8df;border-radius:8px;padding:10px;color:#8a9d8c}
.business-chat-search .icon{width:15px;height:15px;flex-shrink:0}
.business-chat-search input{min-width:0;width:100%;border:0;outline:none;font-size:12px;background:transparent;color:#345444}
.business-chat-search:focus-within{border-color:#62937b;box-shadow:0 0 0 2px #62937b12}
.business-chat-filter{display:flex;gap:6px;padding:14px}
.business-chat-company-filter{display:flex;align-items:center;gap:7px;padding:12px 14px 0;color:#819078;font-size:10px}
.business-chat-company-filter select{flex:1;min-width:0;max-width:100%;padding:7px;border:1px solid #e1e8df;border-radius:6px;background:#fff;color:#345444;font-size:11px}
.business-chat-filter{flex-wrap:wrap}
.business-chat-filter button{border:0;border-radius:6px;padding:7px 10px;font-size:11px;background:transparent;color:#7a8a7c;cursor:pointer}
.business-chat-filter button.is-active{background:#e6eee4;color:#365e43;font-weight:650}
.business-chat-conversations{flex:1;min-height:0;overflow-y:auto;padding:0 8px 14px}
.business-chat-conversation{display:flex;align-items:center;position:relative;gap:10px;padding:14px 10px;border-radius:9px;margin-bottom:3px;border:1px solid transparent;transition:background .15s}
.business-chat-conversation:hover{background:#edf3eb}
.business-chat-conversation.is-selected{background:#e8f0e5;border-color:#dce8d6}
.business-chat-avatar{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:11px;background:#e2eade;color:#4d7154;font-weight:600;font-size:14px}
.is-selected .business-chat-avatar{background:#31654c;color:white}
.business-chat-preview{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.business-chat-conversation-top{display:flex;justify-content:space-between;align-items:center;gap:6px}
.business-chat-conversation-top strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#294634}
.business-chat-conversation-top time{font-size:9px;color:#8b9a89;white-space:nowrap}
.business-chat-subject,.business-chat-last{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#6e806e;line-height:1.5}
.business-chat-last{color:#8b9887;font-size:10px}
.business-chat-collaborators{font-size:10px;line-height:1.5;color:#678367;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.business-chat-pin-label{color:#4b7959}
.business-chat-unread{position:absolute;right:10px;bottom:14px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:#b45f4d;color:white;border-radius:9px;font-size:10px}
.business-chat-conversation:has(.business-chat-unread) .business-chat-last{padding-right:24px}
.business-chat-list-empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:45px 12px;color:#8a9983;font-size:11px;line-height:1.8}
.business-chat-list-empty .icon{width:28px;height:28px;color:#9cb191}
.business-chat-list-empty strong{color:#64775b;font-size:12px}
.business-chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff}
.business-chat-thread-head{display:flex;align-items:center;gap:10px;padding:20px 22px 15px;border-bottom:1px solid #edf1eb;flex-shrink:0}
.business-chat-thread-head>div:first-of-type{flex:1;min-width:0}
.business-chat-thread-head h2{font-size:17px;color:#244a36;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.business-chat-thread-head h2 span{font-size:10px;font-weight:400;color:#94a18d;letter-spacing:.4px}
.business-chat-thread-head p{font-size:11px;line-height:1.7;color:#7c8f73;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.business-chat-thread-head .actions{gap:3px;flex-shrink:0}
.business-chat-back{display:none}
.business-chat-channels{display:flex;gap:6px;overflow-x:auto;padding:12px 16px 9px;flex-shrink:0;max-height:70px}
.business-chat-channel{display:flex;align-items:center;gap:6px;flex:0 0 auto;max-width:220px;padding:8px 10px;border-radius:7px;color:#7b8b70;font-size:11px;border:1px solid transparent;white-space:nowrap}
.business-chat-channel .icon{width:14px;height:14px;flex-shrink:0}
.business-chat-channel span{overflow:hidden;text-overflow:ellipsis}
.business-chat-channel small{font-size:9px;color:#8e9f81}
.business-chat-channel b{font-size:9px;background:#b65f4e;color:white;padding:1px 5px;border-radius:8px}
.business-chat-channel.is-active{background:#eaf1e6;color:#315d41;border-color:#dce7d3;font-weight:650}
.business-chat-scope{display:flex;align-items:center;gap:6px;padding:0 22px 12px;font-size:10px;color:#91a184;flex-shrink:0}
.business-chat-scope .icon{width:13px;height:13px;flex-shrink:0}
.business-chat-connection{padding:8px 18px;background:#fff5e7;color:#a07834;font-size:11px;line-height:1.6}
.business-chat-connection .btn{margin-left:8px;font-size:10px}
.business-chat-connection[hidden]{display:none}
.business-chat-history-control{padding:5px 12px;text-align:center;background:#f6faf3;color:#9baa8e;font-size:10px;flex-shrink:0}
.business-chat-history-control .btn{font-size:10px;min-height:24px;padding:3px 8px}
.business-chat-thread{flex:1;min-height:0;display:flex}
.business-chat-thread:has(.business-chat-readonly){flex-direction:column}
.business-chat-readonly{padding:16px 20px;font-size:11px;line-height:1.8;background:#f7faf3;border-top:1px solid #e0e9db;color:#839374;flex-shrink:0}
.business-chat-thread>.chat-card{flex:1;min-width:0;display:flex;flex-direction:column;border:0;border-radius:0;min-height:0}
.business-chat-thread .chat-card>.card-head{display:none}
.business-chat-new-messages{flex-shrink:0;border:0;border-top:1px solid #dce9d6;background:#eaf3e4;color:#386143;padding:8px 12px;font-size:11px;cursor:pointer}
.business-chat-new-messages[hidden]{display:none}
.business-chat-new-messages:hover{background:#e1eddb}
.business-chat-window-control{flex-shrink:0;text-align:center;padding:5px 12px;background:#f6faf3}
.business-chat-window-control[hidden]{display:none}
.business-chat-thread .chat-list{flex:1;min-height:0;max-height:none;padding:22px;gap:18px;background:#f6faf3}
.business-chat-thread .message{border:0;padding:0}
.business-chat-thread .message-content{font-size:13px;padding:10px 14px}
.business-chat-thread .message-meta strong{font-size:11px}
.business-chat-thread .message-meta time{font-size:9px}
.business-chat-thread .message-meta .tag{font-size:9px}
.business-chat-thread .message-body{max-width:85%}
.business-chat-thread .message-form{flex-shrink:0;padding:14px 18px;border-top:1px solid #e0e9db}
.business-chat-thread .message-form textarea{min-height:70px;height:76px;max-height:180px;font-size:13px}
.business-chat-thread .message-form .actions{gap:8px}
.business-chat-thread .message-form .actions small{display:none}
.business-chat-thread .attachment-list{max-height:100px;overflow-y:auto}
.business-chat-info{overflow-y:auto;min-height:0;min-width:0;padding:22px 18px;background:#fff;border-left:1px solid #e4ebe0}
.business-chat-info-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.business-chat-info-head h2{font-size:13px;color:#4b6741}
.business-chat-info-close{display:none}
.business-chat-order-code{display:block;font-size:10px;color:#91a083;letter-spacing:.5px;margin-bottom:8px}
.business-chat-info h3{font-size:20px;color:#294a34;margin-bottom:8px}
.business-chat-info-title{font-size:12px;line-height:1.8;color:#6e835f;overflow-wrap:anywhere}
.business-chat-info dl{display:grid;gap:13px;margin:22px 0}
.business-chat-info dl>div{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;font-size:11px;line-height:1.7}
.business-chat-info dt{color:#92a184;flex-shrink:0}
.business-chat-info dd{color:#4e6c42;text-align:right;overflow-wrap:anywhere}
.business-chat-detail-link{display:flex;justify-content:center;font-size:11px;min-height:33px;margin-top:7px;background:#f7faf3}
.business-chat-info-section{border-top:1px solid #e8eee1;padding-top:20px;margin-top:22px}
.business-chat-info-section h4{font-size:12px;color:#4e6c42;margin-bottom:13px}
.business-chat-info-section>.muted{font-size:11px}
.business-chat-project{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:13px}
.business-chat-project strong{font-size:11px;flex:1;color:#4e6b40}
.business-chat-project small{width:100%;font-size:10px;color:#94a281;margin-top:3px}
.business-chat-project .business-chat-submit{font-size:10px;margin-top:5px}
.business-chat-ticket-context>strong{font-size:11px;line-height:1.8;color:#476642;display:block;overflow-wrap:anywhere}
.business-chat-ticket-state{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}
.business-chat-ticket-context dl{margin:15px 0}
.business-chat-ticket-context details{font-size:11px;line-height:1.8;margin-bottom:12px;color:#687f5c}
.business-chat-ticket-context summary{cursor:pointer}
.business-chat-ticket-context details p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}
.business-chat-ticket-link{display:block;padding:9px 10px;background:#f7faf3;border-radius:6px;margin-bottom:7px;color:#5b7750}
.business-chat-ticket-link strong{display:block;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.business-chat-ticket-link small{display:block;font-size:10px;margin-top:4px;color:#8b9e7d}
.business-chat-ticket-link.is-escalated{background:#fff5e8}
.business-chat-ticket-link.is-escalated small{color:#ad7639}
.business-chat-file{display:flex;align-items:center;gap:8px;font-size:11px;color:#5b7750;margin-bottom:14px;line-height:1.7}
.business-chat-file>.icon{width:15px;height:15px;flex-shrink:0;color:#819970}
.business-chat-file>span{flex:1;min-width:0;overflow-wrap:anywhere}
.business-chat-file small{display:block;font-size:9px;color:#9aaa8c}
.business-chat-welcome{grid-column:2/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;gap:17px;background:#fbfdf8;color:#8b9b7d}
.business-chat-welcome>.icon{width:48px;height:48px;color:#a4b996;margin-bottom:8px}
.business-chat-welcome h2{font-size:19px;color:#456337;font-weight:550;line-height:1.7}
.business-chat-welcome p{font-size:12px;line-height:1.9;max-width:340px}
@media(max-width:1250px){
 .business-chat-layout{grid-template-columns:240px minmax(0,1fr)}
 .business-chat-info{display:none;position:absolute;right:0;top:0;bottom:0;width:270px;max-width:90%;z-index:20;box-shadow:-8px 0 35px #2745361a}
 .business-chat-info.is-open{display:block}
 .business-chat-info-close{display:inline-flex}
}
@media(max-width:700px){
 .business-chat-workspace{padding:16px 12px}
 .business-chat-page-heading{margin-bottom:14px;align-items:flex-start}
 .business-chat-page-heading h1{font-size:22px}
 .business-chat-summary{font-size:0;gap:0}
 .business-chat-summary i{display:none}
 .business-chat-summary .btn{margin:0;font-size:11px}
 .business-chat-layout{display:flex;height:max(540px,calc(100dvh - 200px));min-height:0;border-radius:10px}
 .business-chat-sidebar{flex:1;border:0;width:100%}
 .business-chat-main,.business-chat-welcome{display:none}
 .business-chat-layout.has-conversation .business-chat-sidebar{display:none}
 .business-chat-layout.has-conversation .business-chat-main{display:flex;flex:1;width:100%}
 .business-chat-back{display:inline-flex}
 .business-chat-thread-head{padding:15px 10px;gap:6px}
 .business-chat-thread-head h2{font-size:16px;gap:5px}
 .business-chat-thread-head h2 span{font-size:9px}
 .business-chat-thread-head .actions .btn{padding:5px 6px;font-size:10px}
 .business-chat-channels{padding:10px 9px 8px}
 .business-chat-scope{padding:0 13px 10px;font-size:9px}
 .business-chat-thread .chat-list{padding:18px 10px}
 .business-chat-thread .message-body{max-width:82%}
 .business-chat-thread .message-meta{gap:4px}
 .business-chat-thread .message-form{padding:12px}
 .business-chat-thread .message-form textarea{min-height:64px;height:72px}
 .business-chat-conversation{padding:16px 12px}
}

/* Keep assignment age visible beside the order number in pending lists. */
.thesis-defense-options{padding:8px 12px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:#f8fbf9;font-size:12px}
.thesis-defense-settings{display:flex;flex-wrap:wrap;gap:10px 24px;margin-bottom:6px}
.thesis-defense-settings label{display:flex;align-items:center;gap:8px}
.thesis-defense-settings input{width:76px;padding:5px 8px;background:white;border:1px solid var(--line);border-radius:6px}
.thesis-defense-settings select{width:76px;padding:5px 8px;background:white;border:1px solid var(--line);border-radius:6px}
.thesis-defense-questions{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.thesis-defense-questions h4{margin:0 0 8px}
.thesis-defense-question{margin:18px 0}
.thesis-defense-question>strong{display:block;line-height:1.7}
.thesis-defense-answer p{text-indent:2em;line-height:1.8;margin:8px 0}
.thesis-defense-extra{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.thesis-defense-extra label{display:grid;gap:4px}
.thesis-defense-extra label:last-child{grid-column:1/-1}
.thesis-defense-extra input,.thesis-defense-extra textarea{width:100%;padding:7px;border:1px solid var(--line);border-radius:6px;background:white}
.thesis-defense-source{margin:7px 0 0;color:#687d71;overflow-wrap:anywhere;line-height:1.5}
.thesis-defense-timing{font-size:12px;color:#456454;padding:8px 0;border-bottom:1px solid var(--line)}
.thesis-defense-timing span{display:block;margin-top:4px;color:#718078}
.thesis-defense-evidence{margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}
.thesis-defense-evidence summary{cursor:pointer;font-size:12px;overflow-wrap:anywhere}
.thesis-defense-evidence blockquote{margin:12px 0;padding-left:12px;border-left:2px solid #cadbd0;font-size:12px;line-height:1.7}
.thesis-defense-evidence small{color:#687d71}
.thesis-defense-document{padding:16px 0}
.thesis-defense-file{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #c8dacf;border-radius:12px;background:#f4f9f6;color:var(--text);text-decoration:none}
.thesis-defense-file:hover{border-color:#39785f;background:#eef6f1}
.thesis-defense-file:focus-visible{outline:2px solid #276b51;outline-offset:3px}
.thesis-defense-word-icon{display:grid;place-items:center;width:46px;height:54px;flex-shrink:0;border-radius:7px;background:#245a93;color:white;font-size:25px;font-weight:700}
.thesis-defense-file-info{display:grid;gap:7px;flex:1;min-width:0;overflow-wrap:anywhere}
.thesis-defense-file-info strong{font-size:16px;color:#254e3c}
.thesis-defense-file-info small{font-size:12px;color:#66796c}
.thesis-defense-file-download{font-size:13px;color:#276b51;white-space:nowrap;font-weight:600}
.thesis-defense-paper-title{font-size:13px;line-height:1.7;color:#536d5e;overflow-wrap:anywhere;margin:12px 0}
.thesis-defense-preview>summary{font-size:12px;color:#426c57;cursor:pointer;padding:6px 0}
@media(max-width:760px){.thesis-defense-file{gap:10px;padding:14px;flex-wrap:wrap}.thesis-defense-file-info{flex-basis:calc(100% - 56px)}.thesis-defense-file-download{margin-left:56px}.thesis-defense-file-info strong{font-size:14px}.thesis-defense-file-info small{line-height:1.6}}
@media(max-width:760px){.thesis-defense-settings{gap:8px}.thesis-defense-settings label{font-size:11px}.thesis-defense-options{padding:8px}.thesis-defense-extra{grid-template-columns:1fr}.thesis-defense-extra label:last-child{grid-column:auto}}
.pending-wait-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:13px 20px;border-bottom:1px solid var(--line);background:#fbfdfb}
.pending-wait-controls[hidden]{display:none}
.pending-wait-controls label{font-size:11px;font-weight:600;color:#4c6b59}
.pending-wait-control{display:flex;align-items:center;gap:9px;white-space:nowrap}
.pending-wait-controls .filter-select{min-width:145px;max-width:190px}
.pending-wait-controls>span{font-size:10px;line-height:1.6;color:#78897e;margin-left:6px}
.order-pending-wait-cell{min-width:205px;white-space:normal;vertical-align:middle}
.pending-wait-list{display:grid;gap:10px}
.pending-wait-item{display:grid;justify-items:start;gap:4px;line-height:1.5;overflow-wrap:anywhere}
.pending-wait-item+.pending-wait-item{padding-top:9px;border-top:1px solid #e7eee8}
.pending-wait-owner{font-size:11px;color:#4c6857}
.pending-wait-value{font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:#285b45}
.pending-wait-value.is-long{color:#96600b;background:#fff5db;padding:2px 7px;border-radius:5px}
.pending-wait-value.is-stale{color:#b13e32;background:#fff0ed;padding:2px 7px;border-radius:5px}
.pending-wait-value.is-unknown{color:#869086;font-size:11px;font-weight:400}
.pending-wait-item small{font-size:10px;color:#7b897f;white-space:nowrap}
@media(max-width:760px){
 .pending-wait-controls{padding:12px;gap:8px}
 .pending-wait-control{width:100%}
 .pending-wait-controls .filter-select{flex:1;min-width:130px;max-width:none}
 .pending-wait-controls>span{flex-basis:100%;margin-left:0}
}
.timeline .event p{white-space:pre-wrap;overflow-wrap:anywhere}

.thesis-chat-input-shell{position:relative}
.thesis-chat-drop-hint{margin:0 0 8px;color:var(--muted);font-size:11px;line-height:1.6}
.thesis-chat-drop-overlay{display:none;position:absolute;inset:0;z-index:2;align-items:center;justify-content:center;padding:16px;border:2px dashed var(--green);border-radius:10px;background:rgba(240,248,244,.96);color:var(--green);font-size:15px;font-weight:600;pointer-events:none;text-align:center}
.thesis-chat-composer.is-dragging .thesis-chat-input-shell{border-color:var(--green)}
.thesis-chat-composer.is-dragging .thesis-chat-drop-overlay{display:flex}
.thesis-chat-header select[hidden]{display:none}
.thesis-defense-body p{text-indent:2em}
.thesis-chat-job-state{display:inline-block;margin-left:7px;font-size:10px;color:var(--muted)}
.thesis-chat-job-state.running{color:var(--green);font-weight:600}
.thesis-chat-job-state.failed{color:var(--red)}

/* Compact assistant composer with a persisted generation-mode switch. */
.thesis-chat-workspace .thesis-chat-composer{padding:10px max(24px,calc((100% - 920px)/2)) 12px}
.thesis-chat-input-shell{padding:8px 10px 7px}
.thesis-chat-workspace .thesis-chat-composer textarea{min-height:38px;max-height:144px;resize:none;padding:4px 4px 7px;line-height:1.55;overflow-y:hidden}
.thesis-chat-compose-toolbar{display:flex;align-items:center;gap:10px;margin-top:4px;min-width:0}
.thesis-chat-workspace .thesis-chat-attachment-row{flex:none;margin:0;min-width:0}
.thesis-chat-drop-hint{flex:1;min-width:0;margin:0;color:var(--muted);font-size:10px;line-height:1.5;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thesis-chat-compose-toolbar .btn{min-height:36px}
.thesis-chat-compose-toolbar .btn.ghost{padding:6px 2px;font-size:12px}
.thesis-chat-compose-toolbar .btn.primary{padding:8px 14px;font-size:13px;white-space:nowrap;flex:none}
.thesis-chat-composer-foot{margin-top:6px;font-size:10px}
.thesis-chat-composer-foot small{font-size:10px;line-height:1.4}
.thesis-chat-answer-mode{display:inline-flex;align-items:center;padding:2px;border:1px solid #d8e5dc;border-radius:8px;background:#f4f8f5;flex:none}
.thesis-chat-answer-mode button{min-height:30px;padding:4px 9px;border:0;border-radius:6px;background:transparent;color:#62776b;font:inherit;font-size:11px;line-height:1;cursor:pointer;white-space:nowrap}
.thesis-chat-answer-mode button:hover{color:#24634e;background:#e9f3ec}
.thesis-chat-answer-mode button.active{background:#fff;color:#1f5a43;box-shadow:0 1px 4px #264c3c1c;font-weight:600}
.thesis-chat-answer-mode button:disabled{cursor:not-allowed;opacity:.55}
.thesis-chat-answer-mode[hidden]{display:none}
@media(max-width:600px){
 .thesis-chat-workspace .thesis-chat-composer{padding:10px 14px 12px}
 .thesis-chat-workspace .thesis-chat-composer textarea{min-height:38px;font-size:13px}
 .thesis-chat-compose-toolbar{flex-wrap:wrap}
 .thesis-chat-drop-hint{order:5;flex-basis:100%;text-align:right;white-space:normal}
 .thesis-chat-answer-mode{margin-left:auto}
}
