:root{--navy:#192e5b;--muted:#738098;--line:#e6eaf0;--accent:#006698;--bg:#f5f7fa;--white:#fff;--soft:#edf2f8;--green:#377b67}*{box-sizing:border-box}body{margin:0;color:var(--navy);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;background:var(--bg);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #009ee3;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #7188ac;outline-offset:1px}h1,h2,h3,h4,p{margin:0}h1{font-size:36px;letter-spacing:-1.2px;font-weight:600;line-height:1.25}h2{font-size:20px;letter-spacing:-.4px;font-weight:600}h3{font-size:15px;font-weight:600}.muted{color:var(--muted)}.accent{color:var(--accent)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:var(--muted);margin-bottom:10px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none}.brand-symbol{display:inline-flex;width:42px;height:42px;background:var(--navy);border-radius:14px;color:white;align-items:center;justify-content:center;font-size:38px;font-family:Georgia,serif;line-height:1;padding-bottom:6px;position:relative}.brand-symbol>span{color:var(--accent);font-family:Arial;font-size:24px;position:absolute;right:4px;top:1px}.brand-name{font-size:25px;font-weight:650;letter-spacing:-.8px;line-height:1}.brand-name small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:8px;font-weight:500}.workspace{display:flex;min-height:100vh}.sidebar{width:230px;position:fixed;left:0;top:0;bottom:0;background:white;border-right:1px solid var(--line);padding:33px 20px 20px;display:flex;flex-direction:column;z-index:2}.sidebar .brand{padding:0 9px}.workspace-label{font-size:9px;letter-spacing:1.5px;color:#8792a6;margin:51px 12px 13px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 13px;text-align:left;font-size:13px;border-radius:9px;color:#62718c}.sidebar nav button>span{font-size:19px;width:20px;line-height:1}.sidebar nav button.active{background:#edf1f7;color:var(--navy);font-weight:600}.sidebar nav button b{font-size:11px;background:white;padding:0 7px;border-radius:5px;margin-left:auto}.sidebar nav button:hover{background:#f5f7fa}.sidebar-guide{margin-top:auto;background:#f5f7fb;padding:19px 15px;border-radius:13px}.guide-icon{display:block;font-size:27px;line-height:1;margin-bottom:18px}.sidebar-guide strong{font-size:13px}.sidebar-guide p{font-size:11px;color:var(--muted);line-height:1.7;margin:8px 0}.text-button{font-size:11px;padding:6px 0;font-weight:600}.sidebar-bottom{margin-top:23px;font-size:10px;color:#64748b;padding:0 10px}.sidebar-bottom small{display:block;font-size:9px;color:#8c96a8;margin:4px 0 0 13px}.local-dot,.pulse-dot{display:inline-block;width:5px;height:5px;background:var(--accent);border-radius:50%;margin-right:5px}.main-wrap{margin-left:230px;flex:1;min-width:0}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fff}.breadcrumb{font-size:12px;color:#738098}.breadcrumb span{margin:0 14px;color:#c6cdd8}.account{display:flex;gap:10px;align-items:center;font-size:12px}.account small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.avatar{display:grid;place-items:center;width:34px;height:34px;background:#edf1f6;border-radius:50%;font-size:12px}.icon-button{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:8px;font-size:21px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--soft)}main{max-width:1700px;margin:auto;padding:36px 40px 20px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.heading p{color:var(--muted);margin-top:10px;font-size:12px}.primary{background:var(--accent);color:#ffffff;min-height:42px;border-radius:9px;padding:11px 18px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid transparent}.primary:hover{background:#005480}.secondary{background:#fff;border:1px solid #dce2ec;border-radius:8px;padding:10px 15px;font-size:12px;min-height:40px}.secondary:hover{background:var(--soft)}.wide{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:34px}.stat{text-align:left;border:1px solid var(--line);border-radius:13px;background:white;padding:19px 21px;min-height:142px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:#65718a;font-size:12px}.stat-label>span{font-size:18px;color:#95a1b4}.stat strong{font-size:35px;font-weight:500;letter-spacing:-1px;display:block;line-height:1.2;margin:12px 0 8px;font-variant-numeric:tabular-nums}.stat small{color:#8a94a5;font-size:10px}.stat.attention{background:#edf7fb;border-color:#c9e4ef}.stat.attention .stat-label>span{color:#006698}.stat:hover{border-color:#b7c1d1}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-title>div{display:flex;align-items:center;gap:10px}.section-title h2{font-size:19px}.count{background:#e9edf3;color:#718098;min-width:24px;display:inline-block;text-align:center;padding:2px 7px;border-radius:6px;font-size:11px;vertical-align:middle}.view-controls{gap:10px!important}.export{font-size:11px;color:#6a7891;margin-right:6px}.segmented{background:#e9edf3;padding:3px;display:flex;border-radius:8px;gap:2px}.segmented button{padding:6px 10px;border-radius:6px;font-size:12px;color:#778399;display:flex;gap:7px;align-items:center}.segmented button.active{background:white;color:var(--navy);box-shadow:0 1px 4px #2739520d}.filters{display:flex;gap:10px;margin-bottom:16px}.filters select{font-size:11px;padding:9px 28px 9px 12px;width:auto;max-width:190px;min-width:0}.search-wrap{position:relative;flex:1;min-width:170px}.search-wrap>span{position:absolute;left:12px;top:2px;color:#8795a9;font-size:25px}.search-wrap input{padding:10px 10px 10px 39px;width:100%;font-size:11px}input,select,textarea{width:100%;border:1px solid #dfe5ee;border-radius:8px;padding:10px 12px;background:white;color:var(--navy);min-height:40px}input::placeholder,textarea::placeholder{color:#98a2b2}select{cursor:pointer}textarea{resize:vertical;line-height:1.6;max-height:350px}.table-wrap{background:white;border:1px solid var(--line);border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:8px;letter-spacing:.8px;font-weight:600;color:#8994a7;background:#fafbfd;padding:15px 16px;white-space:nowrap;border-bottom:1px solid var(--line)}th:first-child{padding-left:21px}td{padding:17px 16px;border-bottom:1px solid #edf0f4;font-size:11px}tr:last-child td{border:0}tr:hover td{background:#fcfdfe}td:first-child{width:32%;min-width:215px;padding-left:21px}td:nth-child(2){min-width:135px}td:nth-child(5){min-width:125px}td small{display:block;color:#8a95a8;font-size:10px;margin-top:4px}.ticket-link{display:block;text-align:left;padding:0;width:100%}.ticket-number{font-size:10px;color:#8994a6;font-variant-numeric:tabular-nums}.ticket-number>span{margin-left:5px;font-size:9px;color:#99a3b3}.ticket-link strong{display:block;font-size:12px;line-height:1.65;font-weight:550;margin-top:5px}.ticket-link:hover strong{color:#006698}.clinic-name{font-weight:500}.badge{font-size:10px;padding:4px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.badge i,.status-dot{display:inline-block;border-radius:50%;height:5px;width:5px;background:currentColor}.badge.new{background:#eef2f7;color:#6e7f99}.badge.progress{background:#edf2ff;color:#526da0}.badge.waiting{background:#f2eafa;color:#8054aa}.badge.done{background:#eaf4ee;color:var(--green)}.priority{font-size:10px;white-space:nowrap}.priority>span{font-size:14px;margin-right:3px}.p0{color:#919bad}.p1{color:#52698c}.p2{color:#006698}.owner{display:flex;gap:6px;align-items:center;font-size:10px}.mini-avatar{border-radius:50%;background:#edf1f7;display:inline-grid;place-items:center;width:23px;height:23px;font-size:9px;flex-shrink:0}.unassigned{color:#a2aaba;font-size:10px}.due{white-space:nowrap;color:#718098;font-size:10px}.row-arrow{font-size:17px;color:#8e9aae;padding:4px}.main-footer{display:flex;justify-content:space-between;color:#9aa4b4;font-size:9px;letter-spacing:.3px;margin-top:26px}.footer-dot{margin:0 8px;color:#b7bfcb}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.board-column{background:#edf1f6;border-radius:12px;padding:12px;min-height:300px}.board-column h3{font-size:11px;display:flex;gap:7px;align-items:center;margin:3px 2px 17px}.board-column h3 b{margin-left:auto;color:#8d99ad;font-size:10px;font-weight:400}.status-dot.new{color:#8392aa}.status-dot.progress{color:#6b85b3}.status-dot.waiting{color:#8054aa}.status-dot.done{color:#72a28d}.ticket-card{background:white;border:1px solid #e3e8ef;border-radius:9px;padding:14px;text-align:left;width:100%;margin-bottom:10px}.ticket-card:hover{border-color:#b8c4d4}.card-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:9px;color:#9ba5b4}.card-top .priority{font-size:8px}.ticket-card h4{font-size:12px;font-weight:550;line-height:1.6;margin:10px 0}.ticket-card p{font-size:10px;line-height:1.8;color:#8793a7}.card-bottom{border-top:1px solid #eff2f6;display:flex;justify-content:space-between;gap:5px;font-size:9px;margin-top:13px;padding-top:10px;color:#8090a7}.column-empty{text-align:center;font-size:10px;color:#9aa5b6;border:1px dashed #d6dee9;border-radius:8px;padding:25px 6px}.empty{padding:65px 20px;text-align:center;border:1px dashed #d8dfe9;border-radius:12px}.empty>span{font-size:30px;color:#91a699}.empty h3{margin:12px 0 6px}.empty p{color:var(--muted);font-size:12px;margin-bottom:19px}dialog{border:0;padding:30px;color:var(--navy);box-shadow:0 20px 100px #192b4b26;max-height:94dvh;width:min(600px,calc(100% - 24px));border-radius:19px;overflow-y:auto;background:white}dialog::backdrop{background:#1c2b4e63;backdrop-filter:blur(3px)}dialog.detail-modal{margin:0 0 0 auto;top:0;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;width:min(570px,100%);padding:28px 30px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.modal-head h2{font-size:25px}.modal-head .eyebrow{font-size:9px;margin-bottom:4px}.modal-head+p{font-size:12px;margin-bottom:24px}label{display:block;font-size:11px;color:#5d6f89;font-weight:500;margin-bottom:15px}label>input,label>select,label>textarea{display:block;margin-top:7px;font-weight:400;font-size:12px}label>span:not(#file-label){color:var(--accent)}label>span.optional{color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.field-hint{font-size:10px;color:#8693a7;margin:-5px 0 16px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px;border-top:1px solid var(--line);margin-top:20px}.upload{border:1px dashed #cbd5e3;border-radius:9px;padding:16px;font-size:15px;text-align:center;position:relative}.upload strong{font-size:11px}.upload small{display:block;font-size:10px;color:#8c98aa;margin:3px 0 8px}.upload input{font-size:10px;border:0;background:#f5f7fa;min-height:0;padding:7px}.upload #file-label{font-size:10px;color:var(--muted);display:block;overflow-wrap:anywhere}.detail-title h2{font-size:26px;line-height:1.4;margin:18px 0 20px;overflow-wrap:anywhere}.detail-title .priority{margin-left:10px}.location-box{background:#f2f5f9;border:1px solid #e9edf3;padding:15px;border-radius:10px;display:flex;gap:13px;align-items:center}.location-box>span{font-size:25px;color:#8d9bb2}.location-box strong{font-size:12px}.location-box small{font-size:10px;display:block;color:#8793a6;margin-top:4px}.detail-block{padding:25px 0;border-bottom:1px solid var(--line)}.detail-block h3{margin-bottom:13px;font-size:13px}.detail-block>p{font-size:12px;line-height:1.9}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.contact-line{margin-top:14px;color:#8b98aa;font-size:10px!important}.contact-line strong{font-weight:500;color:#657690}.management{background:#f7f9fc;padding:18px;border-radius:12px;margin-top:22px}.management h3{margin-bottom:18px;font-size:13px}.management small{font-size:10px;display:block;margin:8px 0 15px}.management label{margin-bottom:13px}.timeline{margin-top:18px}.timeline article{position:relative;display:flex;gap:12px;padding:0 0 22px 0}.timeline article:not(:last-child):before{content:"";position:absolute;left:4px;top:10px;width:1px;height:100%;background:var(--line)}.timeline-dot{width:9px;height:9px;border-radius:50%;background:#c1ccdb;border:2px solid #f2f5f8;flex-shrink:0;margin-top:5px;z-index:1}.timeline article>div{flex:1;min-width:0}.timeline strong{font-size:10px;font-weight:600}.timeline time{color:#9aa4b4;font-size:9px;margin-left:10px}.timeline p{font-size:11px;color:#70809a;line-height:1.8;margin-top:5px}#comment-form button{margin-top:10px;float:right}.result{background:#edf5f0;padding:12px;border-radius:8px}.attachment{max-width:100%;max-height:260px;border-radius:9px;margin-top:18px;object-fit:contain}.login{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#edf2f8;padding:45px 60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-copy{margin:65px 0}.login-copy h1{font-size:58px;letter-spacing:-2px;line-height:1.15;font-weight:500;margin:28px 0}.login-copy em{font-style:normal;color:#006698}.login-copy>p{color:#74839b;font-size:14px;line-height:1.9}.login-art>small{font-size:10px;color:#8a97aa}.login-decoration{margin-top:50px;max-width:320px}.login-decoration>div{border-top:1px solid #d6dfeb;padding:15px 0;color:#94a1b6;font-size:10px}.login-decoration span{color:#64738e;font-size:12px;margin-left:30px}.login-side{display:grid;place-items:center;padding:40px}.login-form{max-width:340px;width:100%}.tag{font-size:9px;color:#006698;letter-spacing:1.3px;background:#edf7fb;padding:6px 9px;border-radius:5px}.login-form h2{font-size:28px;margin:22px 0 10px}.login-form>p{font-size:12px;margin-bottom:30px}.login-form label{margin-bottom:18px}.login-form input{min-height:45px}.login-form .primary{justify-content:space-between}.demo-login{border-top:1px solid var(--line);margin-top:30px;padding-top:24px}.demo-login>small{font-size:8px;letter-spacing:1.5px;color:#96a0b1}.demo-login>button{display:flex;justify-content:space-between;border:1px solid #e4e9f1;border-radius:8px;margin-top:10px;padding:11px 14px;width:100%;font-size:12px;text-align:left}.demo-login>button:hover{background:#f3f6fb}.demo-login>p{font-size:10px;line-height:1.7;color:#95a0b2;margin-top:12px}.error{font-size:11px;color:#bc5949;margin-bottom:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--navy);color:white;padding:13px 22px;border-radius:10px;box-shadow:0 6px 20px #16264530;max-width:calc(100vw - 30px);z-index:100;opacity:0;pointer-events:none;font-size:12px;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.connection-error{padding:60px}
@media(min-width:1500px){td{padding-top:21px;padding-bottom:21px}main{padding-top:42px}.stats{margin-top:35px}.stat{min-height:155px}}
@media(max-width:1200px){.sidebar{width:205px;padding:30px 14px 20px}.main-wrap{margin-left:205px}main{padding:28px 25px}.topbar{padding:0 25px}.stats{gap:10px}.stat{padding:17px 15px}.filters{flex-wrap:wrap}.filters .search-wrap{flex-basis:100%}.filters select{flex:1;max-width:none}.board{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-number>span{display:none}h1{font-size:32px}.heading .primary{white-space:nowrap}}
@media(max-width:800px){.sidebar{position:static;width:auto;padding:20px 22px 0;border-right:0;border-bottom:1px solid var(--line)}.workspace{display:block}.sidebar .brand{padding:0}.sidebar .brand-symbol{width:32px;height:32px;font-size:31px;border-radius:10px}.sidebar .brand-name{font-size:22px}.sidebar .brand-name small{font-size:7px;margin-top:5px}.workspace-label,.sidebar-guide,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:8px;margin-top:20px;overflow-x:auto}.sidebar nav button{white-space:nowrap;width:auto;padding:10px;font-size:11px;border-radius:7px 7px 0 0;gap:7px}.sidebar nav button>span{font-size:14px;width:12px}.sidebar nav button b{display:none}.main-wrap{margin-left:0}.topbar{height:65px;padding:0 22px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 7px}.account{font-size:10px;gap:7px}.account small{font-size:8px}.account .avatar{width:27px;height:27px}.account .icon-button{width:24px}main{padding:26px 22px}.heading{align-items:flex-start;margin-bottom:24px}.heading h1{font-size:29px}.heading p{font-size:11px;max-width:240px}.heading .primary{font-size:11px;padding:10px 12px;margin-top:24px}.stats{margin-bottom:26px}.stat{min-height:120px;padding:14px 12px}.stat-label{font-size:10px}.stat-label>span{display:none}.stat strong{font-size:29px}.stat small{font-size:8px}.section-title h2{font-size:17px}.view-controls{gap:6px!important}.export{font-size:10px}.segmented button{padding:5px 8px}.segmented button>span{display:none}.main-footer{font-size:8px}.main-footer>span:last-child{display:none}.login-art{padding:35px}.login-copy h1{font-size:46px}.login-side{padding:35px}.login-copy>p{font-size:12px}}
@media(max-width:520px){.topbar .breadcrumb{display:none}.topbar{justify-content:flex-end;height:55px}.heading{flex-wrap:wrap;gap:17px}.heading .primary{margin:0;width:100%}.heading h1{font-size:30px}.heading p{max-width:none}.eyebrow{font-size:8px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{min-height:119px}.stat-label{font-size:11px}.stat strong{font-size:30px;margin:8px 0}.stat small{font-size:9px}.section-title{gap:7px}.section-title h2{font-size:16px}.section-title>div{gap:6px}.view-controls .icon-button{width:24px;font-size:18px}.export{font-size:0;margin:0}.export:first-letter{font-size:18px}.filters{gap:8px}.filters .search-wrap{min-width:0}.filters select{font-size:10px;padding:9px 5px;width:calc(50% - 8px);flex:auto;max-width:calc(50% - 8px)}.filters select#category-filter{flex:1;max-width:none}.filters .icon-button{border:1px solid #dfe5ee;background:white;height:40px}.board{grid-template-columns:1fr}.board-column{min-height:140px}.form-grid{grid-template-columns:1fr}.form-modal{padding:24px 20px}dialog.detail-modal{padding:23px 20px;border-radius:0}.detail-title h2{font-size:23px}.login{display:block}.login-art{padding:22px}.login-copy{margin:30px 0 0}.login-copy h1{font-size:33px;margin:15px 0}.login-copy h1 br{display:none}.login-copy h1 em{display:block}.login-copy>p,.login-decoration,.login-art>small,.login-copy .eyebrow{display:none}.login-side{padding:32px 24px}.login-form{max-width:none}.login-form h2{font-size:25px}.sidebar{padding-left:17px;padding-right:17px}.sidebar nav{gap:0}.sidebar nav button{font-size:10px;padding:10px 8px}main{padding-left:17px;padding-right:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep the task readable on a phone without horizontal table scrolling. */
@media(max-width:520px){dialog.detail-modal{max-width:100vw;width:100vw}.table-wrap{border:0;background:none;overflow:visible}table,tbody{display:block}thead{display:none}tbody{display:grid;gap:12px}tr{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid var(--line);border-radius:12px;padding:15px;gap:12px}td,td:first-child,td:nth-child(2),td:nth-child(5){display:block;border:0;padding:0;min-width:0;width:auto}td:first-child{grid-column:1/-1;padding-bottom:11px;border-bottom:1px solid var(--line)}td:nth-child(2){grid-column:1/-1}td:nth-child(2) small{display:inline;margin-left:7px}td:nth-child(5):before{content:'Ответственный';display:block;font-size:9px;color:#9ba5b4;margin-bottom:5px}td:nth-child(6):before{content:'Срок';display:block;font-size:9px;color:#9ba5b4;margin-bottom:5px}td:last-child{display:none}.ticket-link strong{font-size:13px}.ticket-number>span{display:inline;font-size:8px}.badge{font-size:10px}.owner{font-size:11px}.due{font-size:11px}.priority{font-size:11px}.clinic-name{font-size:11px}tr:hover td{background:none}.sidebar nav{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:16px;overflow:visible;padding-bottom:10px}.sidebar nav button{width:100%;border-radius:7px;min-height:35px;font-size:11px;padding:8px 10px}.sidebar nav button b{display:inline}.sidebar{padding-top:17px}.topbar{height:48px}}
/* GitHub Projects reference: full-width board, fixed columns, compact metadata. */
#board-scope{display:none}.column-add[hidden]{display:none}

.board-mode .section-title{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #d0d7de;min-height:38px}.board-mode .section-title h2{font-size:13px;letter-spacing:0}.board-mode .section-title .count{background:#d0d7de;color:#57606a;font-size:10px;min-width:20px;padding:0 6px;border-radius:12px}.board-mode .segmented{background:#ffffff;border:1px solid #d0d7de;padding:2px;border-radius:6px}.board-mode .segmented button{padding:4px 10px;font-size:11px;color:#656d76}.board-mode .segmented button.active{background:#d0d7de;color:#1f2328;box-shadow:none}.board-mode .export{color:#656d76}.board-mode .icon-button{color:#656d76}.board-mode .icon-button:hover{background:#eaeef2}.board-mode .filters{flex-wrap:nowrap;margin-bottom:10px;gap:8px}.board-mode #board-scope{display:block;width:148px;flex:none}.board-mode input,.board-mode select,.board-mode textarea{background:#f6f8fa;color:#384354;border-color:#d0d7de;border-radius:6px}.board-mode .filters select,.board-mode .filters input{font-size:11px;min-height:34px;padding-top:7px;padding-bottom:7px}.board-mode .filters select{max-width:185px}.board-mode .search-wrap{min-width:180px;flex:1;flex-basis:auto}.board-mode .search-wrap>span{top:0;color:#8c959f}.board-mode .filters .icon-button{height:34px;background:#ffffff;border:1px solid #d0d7de;border-radius:6px}.board-help{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#6e7781;line-height:1.5;margin-bottom:12px}.board-mode .board{display:grid;grid-template-columns:repeat(4,minmax(280px,1fr));gap:12px;overflow-x:auto;align-items:stretch;height:calc(100dvh - 265px);min-height:380px;max-width:100%;padding-bottom:12px;scroll-snap-type:x proximity;scrollbar-color:#d0d7de #f6f8fa;overscroll-behavior-x:contain}.board-mode .board-column{background:#ffffff;border:1px solid #d0d7de;border-radius:7px;padding:14px 10px 8px;min-height:0;min-width:0;display:flex;flex-direction:column;scroll-snap-align:start;transition:border-color .12s,background .12s}.column-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:25px;margin:0 4px}.board-mode .column-header h3{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;line-height:1.5;margin:0}.board-mode .column-header h3 b{margin:0 0 0 1px;background:#eaeef2;border-radius:10px;min-width:19px;line-height:16px;text-align:center;font-size:10px;color:#656d76;font-weight:500}.status-ring{height:13px;width:13px;flex-shrink:0;border:2px solid currentColor;border-radius:50%;display:inline-block}.status-ring.new{color:#656d76}.status-ring.progress{color:#006698}.status-ring.waiting{color:#9468bd}.status-ring.done{color:#2d9a53}.column-add{font-size:20px;line-height:1;color:#6e7781;padding:0 4px;min-width:26px;height:26px;border-radius:5px}.column-add:hover{background:#eaeef2;color:#1f2328}.column-hint{font-size:11px;color:#6e7781;margin:10px 4px 16px;min-height:32px;line-height:1.6}.column-cards{flex:1;min-height:90px;overflow-y:auto;overflow-x:hidden;padding:1px 2px 4px;scrollbar-width:thin;scrollbar-color:#d0d7de transparent;overscroll-behavior-y:contain}.board-mode .ticket-card{display:block;position:relative;background:#f6f8fa;border:1px solid #d0d7de;border-radius:7px;padding:12px;margin:0 0 9px;text-align:left;width:100%;cursor:default;transition:border-color .12s,opacity .12s}.board-mode .ticket-card[draggable=true]{cursor:grab}.board-mode .ticket-card:hover{border-color:#8c9eb4}.board-mode .ticket-card.dragging{opacity:.4;border-style:dashed}.board-mode .board-column.drop-target{border-color:#316dca;background:#edf5ff;box-shadow:inset 0 0 0 1px #54a0ef55}.board-mode .card-top{display:flex;justify-content:space-between;gap:8px;color:#6e7781;font-size:10px}.card-reference{display:flex;align-items:center;gap:6px}.card-reference .status-ring{height:11px;width:11px;border-width:1.5px}.card-open{font-size:13px;font-weight:550;line-height:1.55;display:block;text-align:left;width:100%;padding:0;color:#1f2328;overflow-wrap:anywhere;margin:9px 0 12px}.card-open:hover{color:#316dca}.card-labels{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.card-chip{display:inline-block;max-width:100%;border:1px solid #d0d7de;border-radius:20px;padding:1px 7px;line-height:1.6;color:#656d76;font-size:9px;overflow-wrap:anywhere}.card-chip.clinic-chip{background:#eaf2fb;color:#376695;border-color:#c4d8ef}.card-chip.category-chip{color:#74628c;border-color:#d8cee5;background:#f2eef8}.card-chip.priority-chip{padding:0 7px}.card-chip.priority-chip.p2{background:#edf7fb;border-color:#b6d9eb}.card-chip.priority-chip.p1{background:#edf2f8;border-color:#c7d3e5}.board-mode .priority{font-size:9px}.board-mode .priority>span{font-size:11px}.board-mode .p0{color:#656d76}.board-mode .p1{color:#52698c}.board-mode .p2{color:#006698}.board-mode .card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eaeef2;color:#6e7781;margin-top:12px;padding-top:9px;font-size:9px}.card-assignee{display:flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}.board-mode .mini-avatar{width:19px;height:19px;background:#e9eef5;color:#526b8a;font-size:8px}.card-status-label{margin:10px 0 0}.board-mode select.card-status{font-size:10px;padding:4px 7px;min-height:27px;background:#ffffff;color:#656d76;border-color:#eaeef2;margin:0}.board-mode select.card-status:hover{border-color:#8c9eb4;color:#384354}.column-create{width:100%;text-align:left;color:#6e7781;font-size:11px;padding:10px 5px;border-radius:5px;margin-top:6px;flex-shrink:0}.column-create:hover{color:#1f2328;background:#ffffff}.board-mode .column-empty{border:1px dashed #eaeef2;color:#8c959f;margin:0 1px;font-size:10px}.board-mode .dragging-ticket .column-empty{color:#316dca}.board-mode dialog{background:#ffffff;color:#1f2328;border:1px solid #d0d7de}.board-mode dialog label{color:#64748b}.board-mode dialog .primary{background:#006698;color:#ffffff}.board-mode dialog .secondary{background:#eaeef2;color:#384354;border-color:#d0d7de}.board-mode dialog .location-box,.board-mode dialog .management{background:#f6f8fa;border-color:#d0d7de}.board-mode dialog .management small{color:#656d76}.board-mode dialog .location-box strong{color:#384354}.board-mode dialog .detail-block{border-color:#d0d7de}.board-mode dialog .timeline p{color:#64748b}.board-mode dialog .timeline-dot{background:#656d76;border-color:#d0d7de}.board-mode dialog .count{background:#d0d7de;color:#64748b}.board-mode dialog .badge.new{background:#d0d7de;color:#384354}.board-mode dialog .badge.progress{background:#e7f3fa;color:#52698c}.board-mode dialog .badge.waiting{background:#f2eafa;color:#8054aa}.board-mode dialog .badge.done{background:#e8f5ec;color:#287b42}.board-mode .upload{border-color:#d0d7de}.board-mode .form-actions{border-color:#d0d7de}.board-mode #toast{background:#e6edf5;color:#1f2328;border:1px solid #c6d1de}.create-status{padding:9px 12px;background:#eaeef2;border:1px solid #d0d7de;border-radius:6px;color:#64748b;font-size:11px;margin-bottom:18px}
@media(min-width:1700px){.board-mode .board{grid-template-columns:repeat(4,minmax(320px,1fr))}.board-mode .card-open{font-size:14px}.board-mode .card-chip{font-size:10px}}
@media(max-width:1000px){.board-mode .filters{flex-wrap:wrap}.board-mode .filters .search-wrap{flex-basis:calc(100% - 170px)}.board-mode .filters select:not(#board-scope){flex:1;max-width:none;width:auto}.board-mode .board{height:calc(100dvh - 310px)}.board-help>span:last-child{display:none}}
@media(max-width:520px){.board-mode .section-title{margin-bottom:12px}.board-mode .section-title h2{font-size:12px}.board-mode .export{font-size:0}.board-mode .segmented button{padding:4px 7px}.board-mode .filters{gap:7px}.board-mode #board-scope{width:126px;max-width:126px;font-size:10px}.board-mode .filters .search-wrap{flex:1;flex-basis:calc(100% - 140px);min-width:0}.board-mode .filters select:not(#board-scope){font-size:9px;flex:1;width:auto;max-width:calc(50% - 24px);padding-left:6px;padding-right:4px}.board-mode .filters #category-filter{display:none}.board-mode .filters .icon-button{width:28px;font-size:17px}.board-mode .search-wrap input{font-size:10px}.board-help{font-size:9px;min-height:27px}.board-mode .board{grid-template-columns:repeat(4,290px);height:calc(100dvh - 285px);min-height:330px;gap:10px}.board-mode .column-hint{min-height:23px;margin-bottom:13px}.board-mode select.card-status{min-height:32px;font-size:11px}.board-mode dialog.detail-modal{border-radius:0}.board-mode .column-create{min-height:38px}.card-open{font-size:13px}.board-mode .column-header h3{font-size:13px}}

.board-mode .board-column{background:#f6f8fa}.board-mode .ticket-card{background:#ffffff}.board-mode .filters input,.board-mode .filters select{background:#ffffff}.board-mode .board{scrollbar-color:#c4cbd3 #f6f8fa}.board-mode dialog{background:#ffffff}.board-mode dialog .management,.board-mode dialog .location-box{background:#f6f8fa}
@media(max-width:520px){.board-mode .filters #category-filter{display:block}}
/* The board is contained in its tab; navigation and summary stay in the shared shell. */
.task-section.board-mode{min-width:0;max-width:100%}
.task-section.board-mode #board-scope{display:none}
.task-section.board-mode .board{height:clamp(360px,55vh,650px);min-height:360px}
.task-section.board-mode .card-bottom{justify-content:flex-end}
.task-section.board-mode .section-title{min-height:44px}
td:nth-child(5){min-width:80px}
@media(max-width:520px){td:nth-child(5):before{content:'Срок'}.task-section.board-mode .filters .search-wrap{flex-basis:100%}.task-section.board-mode .board{height:450px}.task-section.board-mode .filters select:not(#board-scope){max-width:none}}

/* Original Arcadia logo and its blue palette. */
.brand{flex-direction:column;align-items:flex-start;gap:7px}.brand-logo{display:block;width:174px;height:auto;max-width:100%}.brand-caption{font-size:8px;letter-spacing:1.5px;color:var(--muted);padding-left:3px}.login-art .brand-logo{width:230px}.optional{font-weight:400;color:var(--muted)}
@media(max-width:800px){.sidebar .brand-logo{width:160px}.brand-caption{font-size:7px}}
@media(max-width:520px){.login-art .brand-logo{width:180px}}

/* Give the board all available width; the list keeps its sidebar. */
body.board-view .sidebar{display:none}
body.board-view .main-wrap{margin-left:0}
body.board-view main{max-width:none}

/* Keep the logo visible when the board sidebar is hidden. */
.topbar-brand{display:none}
body.board-view .topbar-brand{display:flex;align-items:center;flex-shrink:0}
.topbar-brand img{display:block;width:150px;height:auto}
body.board-view .topbar{gap:24px}
body.board-view .topbar .breadcrumb{margin-right:auto}
@media(max-width:800px){body.board-view .topbar .breadcrumb{display:none}body.board-view .topbar-brand{margin-right:auto}.topbar-brand img{width:120px}}
@media(max-width:520px){body.board-view .topbar{gap:10px}.topbar-brand img{width:98px}}

/* Let all cards contribute to page height instead of scrolling each column. */
.task-section.board-mode .board{height:auto;min-height:360px;align-items:stretch}
.task-section.board-mode .board-column{height:auto;min-height:360px;align-self:stretch}
.task-section.board-mode .column-cards{flex:none;overflow:visible;min-height:90px}

/* Softer board corners. */
.task-section.board-mode .board-column{border-radius:14px}
.task-section.board-mode .ticket-card{border-radius:12px}
.task-section.board-mode .column-empty{border-radius:10px}

.sidebar-bottom{margin-top:auto;padding-top:23px}

/* Compact request form with the location directly below the task. */
dialog.form-modal:has(#create-form){padding:24px;max-height:calc(100dvh - 32px)}
#create-form label{margin-bottom:12px}
#create-form textarea{min-height:76px}
#create-form .form-actions{margin-top:14px;padding-top:14px}
@media(max-width:520px){dialog.form-modal:has(#create-form){padding:20px}#create-form .form-grid{grid-template-columns:1fr 1fr;gap:10px}#create-form select{padding-left:8px;padding-right:5px;font-size:11px}}

.delete-actions{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.danger-button{background:#a83143;color:#fff;border-radius:9px;padding:10px 16px;min-height:40px;font-size:12px;font-weight:600}
.danger-button:hover{background:#8d2434}
