:root{--bg:#eef1f5;--paper:#fff;--ink:#23303b;--text:#36434f;--muted:#818c98;--line:#e2e8f0;--green:#24634e;--green-soft:#e8edf3;--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:#eef1f5;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}/* 客户文件：占用空间汇总 */.client-file-report .card-head{align-items:flex-start;gap:14px;flex-wrap:wrap}.report-share{min-width:170px}.report-share progress{width:120px;display:inline-block;vertical-align:middle}.report-share small{margin-left:8px;font-size:10px;color:var(--muted)}.brandmark svg{width:24px;height:24px}.brandmark.logo{background:transparent;box-shadow:none;overflow:hidden;border-radius:10px}.brandmark.logo img{width:100%;height:100%;object-fit:cover;display:block}.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:#e8edf3}.nav a.active{background:#e2e8f0;color:#255c46;font-weight:650}.nav .count{margin-left:auto;background:#d9e0ea;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:#d9e0ea;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 #d9e0ea;border-radius:6px;color:#637459;background:#e8edf3}.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:#e8edf3;border-color:#c4cedb}.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:#e2e8f0;border:1px solid #d9e0ea;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:#e8edf3;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:#eef1f5;border-bottom:1px solid #d9e0ea;font-size:12px;letter-spacing:.2px;font-weight:600;color:#405346;padding:13px 19px}td{border-bottom:1px solid #e2e8f0;padding:17px 19px;font-size:13px;line-height:1.6;color:#34483c}tr:last-child td{border-bottom:0}tbody tr:hover{background:#eef1f5}.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 #e2e8f0;display:flex;gap:12px}.due-item:last-child{border:0;padding-bottom:0}.date-tile{border:1px solid #e2e8f0;border-radius:7px;padding:8px 11px;text-align:center;background:#eef1f5;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:#e8edf3;display:block;overflow:hidden}progress::-webkit-progress-bar{background:#e8edf3}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 #e2e8f0;align-items:start}.ticket-preview .icon-box{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#e8edf3;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:#e2e8f0;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 #e2e8f0}.file-row:first-child{border:0}.file-icon{background:#e8edf3;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 #e8edf3}.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:#eef1f5;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 #d9e0ea;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:#eef1f5;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:#eef1f5}.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 #cfd8e4;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:#e2e8f0;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 #d9e0ea;border-radius:9px;padding:20px;margin-top:15px;background:#eef1f5}.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 #c4cedb;padding:17px;border-radius:8px;background:#eef1f5}.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:#eef1f5}.login-left{padding:55px 65px;background:#e2e8f0;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 #b7c3d2;border-radius:8px;background:#e8edf3}.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-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:#eef1f5}.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:#eef1f5;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:#e8edf3;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-date-controls{display:flex;align-items:center;gap:8px;min-width:0}.list-date-controls label{font-size:11px;white-space:nowrap}.list-date-controls .filter-select{width:135px;min-width:0;max-width:100%;padding:9px 6px;flex:none}.list-date-controls .btn{flex:none}.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}.list-date-controls{grid-column:1/-1;flex-wrap:wrap}}@media(max-width:650px){.list-date-controls{display:grid;grid-template-columns:auto minmax(0,1fr)}.list-date-controls .filter-select{width:100%;min-height:38px}.list-date-controls .btn{grid-column:1/-1}}
.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 #cfd8e4;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:#eef1f5;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}
.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 #a9b7c9;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}


.toolbar.list-search-toolbar.delivered-search-toolbar{grid-template-columns:minmax(150px,1fr) auto}
.delivered-search-toolbar>.list-date-controls{grid-column:auto}
@media(max-width:650px){.toolbar.list-search-toolbar.delivered-search-toolbar{grid-template-columns:minmax(0,1fr)}.delivered-search-toolbar>.list-date-controls{grid-column:1/-1}}

/* Shared attachment picker for all roles. */
.attachment-picker{min-width:0;width:100%;margin-top:8px}.attachment-drop{border:1px dashed #a9b7c9;border-radius:10px;padding:18px;background:#eef1f5;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:#e2e8f0;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 #cfd8e4!important;border-radius:6px!important;color:#617552;cursor:pointer}.attachment-drop input::file-selector-button{padding:6px 10px;border:0;border-radius:4px;background:#e2e8f0;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 #d9e0ea;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:#d9e0ea;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:#d9e0ea;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:#e2e8f0;color:#145b3f;border:1px solid #a9b7c9;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 #e2e8f0;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 #d9e0ea;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 #d9e0ea;border-radius:7px;font:inherit;color:var(--ink)}.page-apply{height:32px;padding:0 10px;border:0;border-radius:7px;background:#e8edf3;color:#24634e;font:inherit;cursor:pointer}.page-apply:hover{background:#d9e0ea}
.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:#e8edf3;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:#c4cedb;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,#d9e0ea);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:#eef1f5;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 #d9e0ea;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:#e8edf3;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 #e2e8f0;border-radius:7px;background:#eef1f5}.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: #eef1f5; }
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 #e2e8f0; 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 #d9e0ea; 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; }
.return-stats { margin:0 0 20px; }

/* Operational overview: role priorities, then exceptions and historical totals. */
.return-dashboard { margin:0 0 20px; }
.dashboard-history, .stats-links { display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 20px; padding:10px 12px; background:#e8edf3; border-radius:9px; }
.attention-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.attention-metrics .metric { padding:18px 20px; }
.attention-metrics .metric-value { font-size:28px; }
.stats-current-title { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:24px 0 14px; }
.stats-current-title h2 { font-size:15px; color:#294b36; }
.stats-current-title span { font-size:12px; color:#5d6e62; }
.stats-toolbar .filters { flex-wrap:wrap; gap:10px; }
.stats-toolbar label { color:#405346; font-size:12px; font-weight:600; }
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 #e2e8f0; border-radius:8px; }
#metric-detail-results .table-pagination { padding-left:4px; padding-right:4px; }
@media(max-width:700px){.attention-metrics { grid-template-columns:1fr; }.dashboard-history,.stats-links { gap:4px; }.stats-toolbar .filter-select { max-width:100%; }}

.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}

/* Active company urgency: consistent text emphasis across the complete writer row. */
table tbody tr.writer-urgent-row,table tbody tr.writer-urgent-row :is(td,a,small,span,strong,b,div),.writer-work-row.writer-urgent-row,.writer-work-row.writer-urgent-row :is(h3,a,small,span,strong,p){color:#ac2731}
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-row .delivery-project-tag,.writer-urgent-row .badge,.writer-urgent-row .tag{background:#fce9e7}
.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:#e8edf3;border-color:#d9e0ea}
.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 #d9e0ea;border-radius:14px;background:#eef1f5}
.message-date-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.message-date-tabs button{padding:8px 16px;border:1px solid #d9e0ea;border-radius:20px;background:#fff;color:#344b3c;font:inherit;font-size:13px;cursor:pointer}.message-date-tabs button:hover{background:#e2e8f0}.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 #cfd8e4;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 #d9e0ea;border-radius:10px;background:#eef1f5}
.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{display:flex;align-items:center;gap:12px;max-width:460px}.message-toast>span{overflow-wrap:anywhere}.message-toast .btn{flex-shrink:0;color:#294b36}
.message-arrival{background:#e8edf3;border-radius:8px;outline:1px solid #c4cedb;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:#eef1f5;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:#eef1f5}.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:#e8edf3}.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:#eef1f5;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:#eef1f5;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 #e2e8f0;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}
.order-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.order-status-button{--status-accent:#567968;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:49px;padding:11px 13px;border:1px solid #d9e0ea;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:7px;white-space:nowrap;font-size:12px;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:#e8edf3;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:#eef1f5;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:#c4cedb}.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(min-width:1600px){.order-status-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.order-status-button{padding:11px 10px;gap:6px}.order-status-label{font-size:11px;gap:6px}}
@media(max-width:800px){.order-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.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}.order-list-card .list-date-controls{grid-column:auto}
@media(max-width:1050px){.order-list-card .toolbar.list-search-toolbar{grid-template-columns:minmax(0,1fr)}.order-list-card .list-date-controls{grid-column:1/-1}}

.delivery-custom-add{width:auto;border:1px dashed #9cb9a7;background:#eef1f5;color:#24634e;cursor:pointer}.delivery-custom-add:hover{border-color:#4d8a6e;background:#e8edf3}.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:#e8edf3;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 #d9e0ea;border-radius:9px;background:#eef1f5;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 #cfd8e4;border-radius:5px;background:#e8edf3;color:#326f76;font-size:10px;font-weight:600;padding:3px 7px}

/* Writing work-order date filter and private writer notes. */
.writing-search-toolbar{grid-template-columns:minmax(180px,1fr) auto;align-items:center}
.writing-search-toolbar .list-date-controls{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:2px}
.writing-search-toolbar .list-date-controls label{font-size:12px;color:#526657;font-weight:600}
.writing-search-toolbar .list-date-controls input{height:34px}
.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,#eef1f5,#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:#e8edf3;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 #e2e8f0;padding:16px 20px;background:#fff}.chat-card .message-form textarea{min-height:76px;border-radius:10px}
@media(max-width:700px){.writing-search-toolbar{grid-template-columns:1fr}.writing-search-toolbar .list-date-controls{grid-column:1}.writing-search-toolbar .list-date-controls input{flex:1;min-width:125px}.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-grid{grid-template-columns:minmax(180px,260px)}
.writer-order-status-panel .order-status-button{cursor:pointer}
.quick-date-presets{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.quick-date-label{font-size:12px;color:#526657;font-weight:600;margin-right:2px}
.quick-date-button{height:32px;padding:0 13px;border:1px solid #d9e0ea;border-radius:8px;background:#fff;color:#416152;font-size:12px;cursor:pointer;transition:all .15s ease}
.quick-date-button:hover{border-color:#8fb8a0;background:#eef1f5;color:#24634e}
.quick-date-button.is-active{border-color:#24634e;background:#24634e;color:#fff;box-shadow:0 2px 6px rgba(36,99,78,.16)}
@media(max-width:700px){.writer-order-status-panel .order-status-grid{grid-template-columns:1fr}.quick-date-presets{gap:6px}.quick-date-button{padding:0 10px}}
.writer-order-status-panel .order-status-grid{grid-template-columns:minmax(150px,1fr) repeat(4,minmax(105px,1fr));align-items:stretch}
.writer-order-status-panel .writer-date-button{--status-accent:#4c8a6b}
.writer-order-status-panel .writer-date-button.is-active{background:#24634e;border-color:#24634e;color:#fff}
.writer-order-status-panel .writer-date-button .order-status-count{background:#e8edf3;color:#24634e}
.writer-order-status-panel .writer-date-button.is-active .order-status-count{background:#ffffff28;color:#fff}
.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:#a9b7c9}
@media(max-width:1000px){.writer-order-status-panel .order-status-grid{grid-template-columns:repeat(3,minmax(110px,1fr))}.writer-order-status-panel .order-status-button.all{grid-column:1/-1}}
@media(max-width:600px){.writer-order-status-panel .order-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.writer-order-status-panel .order-status-button.all{grid-column:1/-1}}
.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:#eef1f5!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 #cfd8e4;border-radius:12px;overflow:hidden;background:#e8edf3;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:#e8edf3;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)}

.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 #cfd8e4;border-radius:999px;background:#e8edf3;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-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}

.ai-order-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #d9e0ea;border-radius:10px;background:linear-gradient(110deg,#eef1f5,#eef1f5)}.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:#c4cedb;color:#286246;background:#fff}.ai-order-tools-actions .btn:hover{background:#e8edf3;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 #d9e0ea;border-radius:9px;background:#fbfdfb;cursor:pointer}.generated-topic-choice:hover{border-color:#83ae8d;background:#eef1f5}.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 #d9e0ea;border-radius:18px;background:linear-gradient(120deg,#e8edf3 0%,#eef1f5 58%,#e8edf3 100%);overflow:hidden}.thesis-tools-head:after{content:'';position:absolute;z-index:-1;right:-42px;top:-72px;width:245px;height:245px;border:1px solid #cfd8e4;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:#d9e0ea;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:#e8edf3;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:#cfd8e4;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 #e8edf3}.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 #e2e8f0;margin-top:0;padding:20px 27px 25px;background:linear-gradient(180deg,#fbfdfb,#eef1f5)}.thesis-outline-card .thesis-tool-results{background:linear-gradient(180deg,#eef1f5,#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:#c4cedb;background:#fff;color:#347052;border-radius:8px}.thesis-next-button:hover{border-color:#76a989;background:#e8edf3}.thesis-topic-result{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #e2e8f0}.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:#c4cedb;background:#fff;color:#347052;border-radius:8px}.thesis-topic-result .btn:hover{border-color:#76a989;background:#e8edf3}.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%}}
/* Time groups shared by writing and delivered worklists. */
.work-date-panel{padding:22px 22px 16px;background:linear-gradient(135deg,#eef1f5,#fcfdfb);border-bottom:1px solid var(--line)}
.work-date-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.work-date-heading>div{display:flex;align-items:center;gap:8px;color:var(--green)}.work-date-heading strong{font-size:13px;font-weight:650}.work-date-heading>.icon,.work-date-heading .icon{width:17px;height:17px}.work-date-heading>span{font-size:11px;color:#84928a;line-height:1.6}
.work-date-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.work-date-card{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-width:0;padding:16px 18px;border:1px solid #d9e0ea;border-radius:11px;background:#fff;color:#365a48;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.work-date-card:hover{border-color:#91b49f;background:#e8edf3}.work-date-card:focus-visible{outline:2px solid #528b70;outline-offset:3px}.work-date-card.is-active{background:#24634e;border-color:#24634e;color:#fff;box-shadow:0 4px 12px #24634e20}.work-date-copy{display:grid;gap:7px}.work-date-copy>strong{font-size:14px;font-weight:650}.work-date-copy>small{font-size:10px;color:#8b9b90;white-space:nowrap}.work-date-card.is-active .work-date-copy>small{color:#c4cedb}.work-date-total{display:flex;align-items:baseline;gap:5px}.work-date-total>b{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}.work-date-total>small{font-size:10px;opacity:.7}.work-date-summary{font-size:11px;color:#7d8e82;margin-top:13px}
.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 .toolbar .list-date-controls{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:0}.worklist-card .list-date-controls label{font-size:11px;color:#7d8e82;font-weight:400}.worklist-card .list-date-controls input{height:36px;background:#fff}.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:#c4cedb #eef1f5}.worklist-card .table-wrap::-webkit-scrollbar{height:6px}.worklist-card .table-wrap::-webkit-scrollbar-thumb{background:#c4cedb;border-radius:6px}.worklist-card .table-wrap::-webkit-scrollbar-track{background:#eef1f5}
@media(max-width:900px){.work-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-date-heading{align-items:flex-start;flex-direction:column;gap:7px}.worklist-card .toolbar{grid-template-columns:minmax(0,1fr)}.worklist-card .toolbar .filters{justify-content:flex-start}}
@media(max-width:520px){.work-date-panel{padding:18px 14px 14px}.work-date-grid{gap:8px}.work-date-card{padding:13px 12px;gap:8px}.work-date-copy>strong{font-size:13px}.work-date-copy>small{font-size:9px}.work-date-total>b{font-size:22px}.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}.worklist-card .list-date-controls{gap:8px}.worklist-card .list-date-controls input{min-width:0;width:calc(100% - 70px)}.worklist-card .list-date-controls label{width:56px}}

.company-order-status-panel .order-status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:1200px){.company-order-status-panel .order-status-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:800px){.company-order-status-panel .order-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.company-order-status-panel .order-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 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 #d9e0ea;border-radius:13px;background:#e8edf3}.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 #cfd8e4;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:#b7c3d2}
.thesis-tools-head h1{color:#fff;font-size:31px;letter-spacing:-.5px}
.thesis-tools-head p{max-width:610px;color:#e2e8f0;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:#eef1f5;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:#d9e0ea;border-radius:15px;background:#e8edf3}
.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:#e2e8f0;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:#d9e0ea;color:#3c7757}
.thesis-tool-tabs button[aria-selected=true] .thesis-tab-icon{background:#e2e8f0;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:#d9e0ea;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 #e2e8f0;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 #e2e8f0}
.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:#cfd8e4;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:#eef1f5}
.thesis-workspace .thesis-analysis-card .thesis-tool-results{background:#eef1f5}
.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 #c4cedb;border-radius:14px;background:linear-gradient(145deg,#fff,#eef1f5)}
.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 #e2e8f0}.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:#e8edf3;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 #d9e0ea}.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:#eef1f5;color:#305f49;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}.thesis-file-drop:hover,.thesis-file-drop.drag-over{background:#e2e8f0;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}
