:root{--green:#3da83d;--line:#dfe3e8;--bar:#e4e8ee;--ink:#2b2f36}
body{background:#fff;color:var(--ink);font-family:"Segoe UI",system-ui,sans-serif}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.6rem 1rem;border-bottom:1px solid var(--line)}
.brand{font-weight:600;color:var(--ink);text-decoration:none}

/* вкладки разделов */
.journal-tabs{list-style:none;display:flex;gap:.4rem;padding:0;margin:0 0 -1px;overflow-x:auto}
.journal-tabs a{display:block;padding:.5rem .9rem;background:#e9ecf1;border-radius:.4rem .4rem 0 0;color:var(--ink);text-decoration:none;white-space:nowrap}
.journal-tabs a.active{background:var(--bar);font-weight:600}

/* шапка раздела и панель фильтров */
.toolbar-card{background:var(--bar);padding:.75rem;border-radius:0 .5rem .5rem .5rem;margin-bottom:.75rem}
.journal-head h1{font-size:1.05rem;font-weight:600;margin:0 0 .15rem}
.journal-head .basis{font-size:.85rem;font-style:italic;color:#5b6270;margin-bottom:.7rem}
.toolbar-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.toolbar-row .saved-select{max-width:220px}
.toolbar-row #q{max-width:260px}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.6rem 1rem;margin-top:.9rem;padding-top:.9rem;border-top:1px solid #cdd3dc}
.filter-grid label,.filter-bottom label{font-size:.8rem;color:#6b7280;display:block;margin-bottom:.15rem}
.filter-grid .checks{display:flex;flex-direction:column;gap:.3rem;justify-content:flex-end}
.filter-grid .form-check label{display:inline;font-size:.9rem;color:var(--ink)}
.filter-bottom{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-top:.9rem;padding-top:.7rem;border-top:1px solid #cdd3dc}
.filter-bottom label{margin:0}.filter-bottom select{width:auto}
.filter-save{margin-top:.7rem}
.filter-save form{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.filter-save input[name=name]{max-width:240px}
.filter-save .saved-item{display:inline-flex;gap:.3rem;font-size:.85rem;background:#fff;border-radius:1rem;padding:.1rem .6rem;margin-top:.4rem;margin-right:.3rem}

/* таблица */
.desk-table thead th{font-weight:400;font-size:.8rem;color:#8a919c;vertical-align:bottom;min-width:90px}
.desk-table tbody tr{cursor:pointer}
.desk-table tbody tr:hover td{background:#f4f6f9}
.desk-table td{font-size:.92rem;max-width:340px}
.num{color:#6b7280;white-space:nowrap}
.pager a{margin:0 .4rem}
.status{display:inline-block;padding:.15rem .6rem;border-radius:1rem;font-size:.8rem;background:#8e9bb0;color:#fff;white-space:nowrap}
.status.s-new{background:#e5384d}.status.s-accepted{background:#e49b0f}
.status.s-in_progress{background:#2f7fd1}.status.s-done{background:var(--green)}

/* карточки (форма и заявка) */
.mobile-card{max-width:600px;margin:0 auto}
.req{color:#e5384d}
.info dt{font-weight:400;color:#6b7280}
.action-box{background:#f4f6f9;border-radius:.6rem;padding:1rem;margin-top:1rem}
.attach-box{background:#eef1f5;border-radius:.6rem;padding:.8rem}
.thumb{height:90px;border-radius:.4rem;margin-right:.4rem;border:1px solid var(--line)}
.history{list-style:none;padding:0}
.history li{padding:.35rem 0;border-bottom:1px solid var(--line);font-size:.9rem}
.history time{color:#8a919c;margin-right:.5rem}

/* телефон */
body.mobile{background:#f4f6f9;padding-bottom:5.5rem}
.m-top{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;background:var(--green);color:#fff;padding:.7rem 1rem}
.m-title{color:#fff;font-weight:600;font-size:1.15rem;text-decoration:none}
.m-main{padding:1rem;max-width:640px;margin:0 auto}
.chips{display:flex;gap:.5rem;overflow-x:auto;margin-bottom:1rem}
.chip{padding:.5rem .9rem;border-radius:2rem;background:#fff;color:var(--ink);text-decoration:none;white-space:nowrap;border:1px solid var(--line)}
.chip.on{background:var(--green);color:#fff;border-color:var(--green)}
.m-card{display:block;background:#fff;border-radius:.8rem;padding:.9rem 1rem;margin-bottom:.7rem;color:var(--ink);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.m-topic{font-weight:600;font-size:1.05rem;margin:.3rem 0}
.m-meta{font-size:.85rem;color:#6b7280}
.empty{text-align:center;color:#6b7280;padding:2rem 0}
.fab{position:fixed;right:1.2rem;bottom:1.4rem;width:60px;height:60px;border-radius:50%;background:var(--green);color:#fff;font-size:2rem;line-height:58px;text-align:center;text-decoration:none;box-shadow:0 3px 8px rgba(0,0,0,.25)}
.push-banner{display:flex;justify-content:space-between;align-items:center;gap:.5rem;background:#fff8e1;padding:.6rem 1rem;font-size:.9rem}

/* вход */
.login-page{background:#f4f6f9;display:flex;min-height:100vh;align-items:center;justify-content:center;padding:1rem}
.login-card{background:#fff;padding:2rem;border-radius:.8rem;width:100%;max-width:400px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.install-block{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.install-help{margin-top:.8rem;font-size:.88rem;background:#f4f6f9;border-radius:.5rem;padding:.7rem}
@media (max-width:640px){.toolbar-row .saved-select,.toolbar-row #q{max-width:none;width:100%}}
