:root{--bg-a: #dfeaf7;--bg-b: #d3e3f5;--panel: #edf3fb;--line: #b5c9e3;--text: #12335e;--muted: #5f7899;--accent: #2f6fbe;--accent-strong: #245da2;--danger: #dc3545}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Space Grotesk,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:var(--text);background:linear-gradient(180deg,var(--bg-a) 0%,var(--bg-b) 100%)}.shell{width:min(1920px,98vw);margin:2rem auto;display:grid;gap:1.1rem;grid-template-columns:var(--sidebar-width, 380px) minmax(0,1fr);transition:grid-template-columns .18s ease}.sidebar-panel{position:sticky;top:1rem;align-self:start}.main-panel{min-height:220px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1rem;box-shadow:0 8px 20px #2c578a1f}h1,h2{margin:0 0 .4rem}.subtitle{margin:0 0 .9rem;color:var(--muted)}.tabs{display:grid;gap:.22rem;margin-top:.8rem}.menu-section{display:grid;gap:.22rem}.menu-section>button{display:block;width:100%;text-align:left}.menu-section-title{margin:.62rem 0 .32rem;padding:0;font-size:.78rem;font-weight:700;letter-spacing:.04em;color:#486c9a}.tabs button{padding:.3rem .45rem;font-size:.78rem;line-height:1.1;border-radius:8px}.tabs button.active{background:var(--accent-strong);border-color:var(--accent-strong)}.sidebar-project-menu{list-style:none;margin:.15rem 0 .2rem;padding:.3rem;border:1px solid #bfd2eb;border-radius:10px;background:#f8fbff;display:grid;gap:.22rem}.sidebar-project-menu li{border:1px solid #d5e3f5;background:#fff;border-radius:8px;padding:.28rem .4rem;cursor:pointer}.sidebar-project-row{display:flex;align-items:center;gap:.28rem;min-width:0}.sidebar-toggle{border:1px solid #bfd2eb;background:#f2f7ff;color:#2f5f93;border-radius:6px;font-size:.7rem;width:18px;height:18px;padding:0;line-height:1;display:inline-flex;align-items:center;justify-content:center}.sidebar-toggle.spacer{border-color:transparent;background:transparent;color:#9bb2cf}.sidebar-project-menu li:hover{background:#edf4fd;border-color:#b7cdeb}.sidebar-project-menu li.active{background:#e6f1ff;border-color:#9bbce4}.sidebar-settings-menu{list-style:none;margin:.15rem 0 .2rem;padding:.3rem;border:1px solid #bfd2eb;border-radius:10px;background:#f8fbff;display:grid;gap:.22rem}.sidebar-settings-menu li{border:1px solid #d5e3f5;background:#fff;border-radius:8px;padding:.32rem .45rem;cursor:pointer;font-size:.76rem;color:#1d3f65}.sidebar-settings-menu li:hover{background:#edf4fd;border-color:#b7cdeb}.sidebar-settings-menu li.active{background:#e6f1ff;border-color:#9bbce4}.sidebar-project-label{display:block;font-size:.76rem;color:#1d3f65;white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-width:0}.slide-down-enter-active,.slide-down-leave-active{transition:all .18s ease}.slide-down-enter-from,.slide-down-leave-to{opacity:0;transform:translateY(-6px)}.auth-box,.session-box{display:grid;gap:.6rem}input,button,select{border-radius:10px;border:1px solid var(--line);padding:.62rem .8rem}input,select{background:#fff;color:var(--text)}button{cursor:pointer;background:var(--accent);color:#fff;font-weight:600}button:disabled{opacity:.6;cursor:not-allowed}.error{color:var(--danger)}.toast-stack{position:fixed;top:1rem;right:1rem;z-index:1200;display:grid;gap:.45rem;width:min(360px,92vw)}.toast-item{border:1px solid var(--line);border-left-width:4px;border-radius:10px;background:#fff;color:var(--text);padding:.55rem .7rem;box-shadow:0 8px 20px #2c578a29;font-size:.86rem}.toast-info{border-left-color:#2f6fbe}.toast-success{border-left-color:#28a745}.toast-warning{border-left-color:#ffc107}.toast-error{border-left-color:#dc3545}.confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0819305c;z-index:1300;display:grid;place-items:center;padding:1rem}.confirm-modal{width:min(440px,94vw);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px #10294740;padding:.95rem;display:grid;gap:.65rem}.confirm-modal h3{margin:0;color:var(--accent-strong)}.confirm-modal p{margin:0;color:var(--text)}.confirm-actions{display:flex;justify-content:flex-end;gap:.45rem}.confirm-cancel{background:#eef3fa;color:var(--text);border:1px solid var(--line)}.confirm-danger{background:#dc3545;border-color:#dc3545;color:#fff}.filters-row{display:grid;gap:.5rem;grid-template-columns:1.2fr 1fr 1fr;margin-bottom:.7rem}.timesheet-block{border:1px solid var(--line);border-radius:12px;background:#f7fbff;padding:.65rem;margin-bottom:.7rem}.timesheet-block-title{margin:0 0 .5rem;font-size:.9rem;color:var(--accent-strong)}.settings-separator{margin:.9rem 0 1rem;border:0;border-top:1px solid #d7e0ee}.planner-toolbar{display:grid;grid-template-columns:auto auto 1fr auto;gap:.7rem;align-items:start;margin-bottom:.75rem}.calendar-nav{display:grid;grid-template-columns:repeat(3,minmax(40px,auto));gap:.35rem}.date-label-wrap{display:grid;gap:.45rem}.date-label{margin:0;font-size:1rem}.date-picker{max-width:280px}.planner-stats{align-self:start}.mode-switch{display:inline-grid;grid-auto-flow:column;gap:.35rem}.mode-switch button{background:#e7effa;color:var(--text)}.mode-switch button.active{background:#fff;color:var(--accent-strong)}.day-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:.45rem}.day-chip{border:1px solid var(--line);border-radius:10px;padding:.4rem .55rem;display:grid;gap:.1rem;background:#fff}.chip-label{color:var(--muted);font-size:.75rem}.chip-value{font-size:.92rem}.quick-entry-bar{border:1px solid var(--accent);border-radius:10px;background:#f7fbff;display:grid;grid-template-columns:2fr 1fr auto auto auto;gap:.5rem;align-items:center;margin-bottom:0;padding:.7rem}.quick-input,.quick-project-select{width:100%}.btn-link{border:none;background:transparent;color:var(--accent)}.btn-start-main{background:#2b9d54}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;margin-bottom:.8rem}.week-strip button.active{background:#9ad98f;color:#13351d}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;margin-bottom:.8rem}.calendar-grid button{font-size:.82rem;padding:.45rem .3rem}.calendar-grid button.active{background:#9ad98f;color:#13351d}.calendar-grid button.muted{opacity:.65}.kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:.5rem;margin-bottom:.7rem}.kpi-item{border:1px solid var(--line);border-radius:10px;padding:.5rem .6rem;display:flex;justify-content:space-between;background:#fff}.timesheet-header{display:flex;justify-content:space-between;align-items:center;margin:.7rem 0}.header-left{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.header-left h3{margin:0}.task-count-badge{border:1px solid var(--line);border-radius:999px;padding:.18rem .55rem;font-size:.82rem;color:var(--muted);background:#fff}.actions-legend{font-size:.82rem;color:var(--muted)}.tasks-table{width:100%;border-collapse:collapse;margin-bottom:.8rem;border:1px solid var(--line);border-radius:12px;overflow:visible;background:#fff;table-layout:fixed}.tasks-table th,.tasks-table td{border-bottom:1px solid #e3ecf8;padding:.3rem .34rem;text-align:left;vertical-align:middle;line-height:1.1}.tasks-table th{color:var(--muted);font-weight:700;font-size:.74rem;background:#f4f8fe}.tasks-table td{font-size:.78rem}.tasks-table th:nth-child(3),.tasks-table th:nth-child(4),.tasks-table th:nth-child(5),.tasks-table th:nth-child(6),.tasks-table th:nth-child(7),.tasks-table th:nth-child(8),.tasks-table td:nth-child(3),.tasks-table td:nth-child(4),.tasks-table td:nth-child(5),.tasks-table td:nth-child(6),.tasks-table td:nth-child(7),.tasks-table td:nth-child(8){text-align:right;white-space:nowrap}.tasks-table tr.running{background:#f4fff4}.col-task{width:39%}.col-project{width:21%}.col-duration{width:7%}.col-status{width:8%}.col-txt{width:7%}.col-start,.col-end{width:5%}.col-actions{width:8%}.duration-cell{min-width:64px;white-space:nowrap}.duration-value{font-weight:700;color:#234b74}.actions-cell{min-width:94px;overflow:visible}.time-edit-cell{position:relative;min-width:38px;text-align:center}.time-pill{border:1px solid #c5d4e7;background:#fff;color:#294a6f;border-radius:6px;padding:.1rem .2rem;min-height:0;font-size:.76rem;font-weight:600}.time-inline-edit{display:inline-flex;align-items:center;gap:.22rem}.time-segment-input{width:30px;min-width:30px;text-align:center;padding:.18rem .1rem;border-radius:6px;border:1px solid #c5d4e7;font-size:.82rem;background:#fff;color:#294a6f}.time-segment-input.active{background:#e7f0ff;border-color:#6ea3df;color:#124680}.time-separator{color:#4a6280;font-weight:700}.row-actions{justify-content:flex-start;align-items:center;flex-wrap:nowrap;display:flex;gap:.08rem}.txt-cell{font-size:.72rem;color:#355a83}.project-edit-cell{font-size:.74rem}.project-link{font-size:.74rem;color:#2a527f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.project-inline-select{width:min(280px,100%);padding:.12rem .3rem;border-radius:6px;font-size:.72rem}.loc-link{font-size:.72rem;color:#355a83;white-space:nowrap}.loc-inline-select{padding:.1rem .24rem;border-radius:6px;font-size:.72rem;max-width:110px}.btn-small{padding:.2rem .34rem;border:none;border-radius:999px;cursor:pointer;font-size:.74rem;display:inline-flex;align-items:center;gap:.22rem;min-height:22px}.btn-icon{line-height:1}.btn-label{font-size:.66rem;font-weight:700;letter-spacing:.02em}.tasks-table td select{padding:.16rem .34rem;border-radius:7px;font-size:.72rem;line-height:1.1}.btn-start{background:#d4edda;color:#155724}.btn-start:hover:not(:disabled){background:#28a745;color:#fff}.btn-stop{background:#fce8e8;color:#721c24}.btn-stop:hover{background:#dc3545;color:#fff}.btn-more{background:#eef1f4;color:#3f4d5c;min-width:30px;justify-content:center}.btn-more:hover{background:#d7dde3;color:#1f2937}.btn-delete{background:#f8f9fa;color:#999;min-width:30px;justify-content:center}.btn-delete:hover{background:#fce8e8;color:#dc3545}.row-menu-wrap{position:relative}.row-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:170px;background:#fff;border:1px solid #d9e2ec;border-radius:10px;box-shadow:0 10px 24px #12335e2e;padding:.3rem;z-index:30;display:grid;gap:.15rem}.import-columns{display:flex;gap:.35rem;flex-wrap:wrap}.row-menu-item{border:none;background:transparent;text-align:left;border-radius:8px;padding:.42rem .5rem;font-size:.78rem;cursor:pointer;color:#24374c}.row-menu-item:hover{background:#edf4fd;color:#113861}.running-live{color:#2b9d54;font-weight:700}.task-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}.task-list li{display:flex;justify-content:space-between;gap:1rem;border:1px solid var(--line);border-radius:10px;padding:.6rem;background:#fff}.project-node-row{align-items:center}.project-list-compact{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:visible}.project-list-compact li{display:flex;justify-content:space-between;gap:.65rem;padding:.42rem .55rem;border-bottom:1px solid #e4edf9;background:transparent;position:relative;overflow:visible;z-index:1}.project-list-compact li.menu-open{z-index:50}.project-list-compact li:last-child{border-bottom:none}.project-list-compact li:hover{background:#f7fbff}.project-list-compact li.parent-selected{background:#e9f2ff;box-shadow:inset 0 0 0 1px #a8c5ea}.project-inline-create{display:grid;grid-template-columns:minmax(220px,2fr) minmax(180px,2.2fr) auto auto;gap:.65rem;align-items:center;padding:.55rem .6rem;border:1px solid #d8e5f5;border-radius:10px;background:#f8fbff;margin-bottom:.65rem}.project-parent-target{color:#355070;font-size:.8rem;line-height:1.35;min-width:0;overflow-wrap:anywhere}.project-parent-target strong{color:#163f6a}.project-node-info{display:grid;gap:.08rem;min-width:300px;position:relative}.project-node-info:before{content:"";position:absolute;left:calc((var(--tree-depth, 0) * 24px) - 10px);top:50%;width:10px;border-top:1px solid #9fbbe0;opacity:var(--tree-visible, 0)}.project-node-info:after{content:"";position:absolute;left:calc((var(--tree-depth, 0) * 24px) - 10px);top:-11px;bottom:-11px;border-left:1px solid #c0d4ee;opacity:var(--tree-visible, 0)}.project-edit-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:.4rem}.project-actions{display:inline-flex;gap:.3rem;align-items:center;position:relative;z-index:4}.project-actions .row-menu-wrap{z-index:60}.project-actions button{padding:.3rem .48rem;border-radius:8px;font-size:.78rem}.settings-panel button:not(.btn-link):not(.btn-small):not(.btn-more):not(.btn-delete):not(.btn-start):not(.btn-stop):not(.btn-start-main):not(.time-pill){width:auto;justify-self:start;padding:.34rem .58rem;border-radius:8px;font-size:.78rem;line-height:1.15}.btn-compact{padding:.34rem .56rem;border-radius:8px;font-size:.78rem;line-height:1.15;justify-self:start;width:auto}.tag-assign-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center}.tag-create-row{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto auto;align-items:center}.tag-create-row input[type=color]{width:56px;min-width:56px;padding:.16rem}.quick-projects-list li{cursor:pointer}.task-list.compact li{align-items:center}.stack{display:grid;gap:.25rem}.note-link{width:fit-content;color:#1b4f84}.note-preview{margin:0;color:#355a83;font-size:.82rem;line-height:1.3;cursor:pointer}.note-inline-editor{display:grid;gap:.32rem;max-width:360px;padding:.34rem;border:1px solid #bfd3ec;border-radius:10px;background:#f7fbff}.note-inline-input{width:100%;resize:vertical;min-height:74px;line-height:1.3;font-size:.82rem;padding:.35rem .42rem;border:1px solid #b8cee8;border-radius:8px}.note-inline-actions{display:flex;justify-content:flex-end}.link-button{background:transparent;border:none;padding:0;color:var(--text);text-align:left}.task-title-line{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-cell{width:100%}.note-inline-input-one{width:100%;padding:.16rem .28rem;border-radius:6px;border:1px solid #9bbce4;font-size:.76rem;line-height:1.2}.export-config-row{grid-template-columns:minmax(140px,220px) minmax(180px,1fr) minmax(180px,1fr);align-items:center}.export-date-row{grid-template-columns:repeat(2,minmax(0,220px));align-items:end}.export-date-row label{display:grid;gap:.3rem;font-size:.82rem;color:var(--muted)}.export-date-input{width:170px;padding:.34rem .45rem;font-size:.78rem}.export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.export-box{border:1px solid #d6e3f4;border-radius:10px;background:#fbfdff;padding:.6rem;display:grid;gap:.32rem}.export-preview-toggle{font-size:.82rem;color:var(--muted)}.export-preview-list{list-style:none;margin:0;padding:.28rem .35rem;border:1px solid #d9e6f7;border-radius:8px;background:#fff;max-height:170px;overflow:auto;display:grid;gap:.2rem;font-size:.82rem;color:#355a83}.export-preview-list li{line-height:1.3;white-space:nowrap}.export-history-list li{align-items:center}.export-history-actions{display:inline-flex;gap:.35rem;align-items:center}.backup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:.7rem}.backup-card{border:1px solid #d5e3f5;border-radius:12px;background:#f8fbff;padding:.7rem;display:grid;gap:.55rem}.backup-card h3{margin:0}.backup-plan-list{margin:0;gap:.2rem}.backup-plan-row{gap:.3rem}.backup-plan-list li{padding:.24rem .34rem;border-radius:7px;border-color:#d9e6f5}.backup-plan-list .stack{gap:.02rem}.backup-plan-list .stack strong{font-size:.78rem;line-height:1.08}.backup-plan-list .stack small{line-height:1.08;font-size:.69rem}.backup-plan-actions{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.24rem}.backup-plan-actions .inline-check{margin-right:.06rem;font-size:.7rem}.backup-plan-actions .btn-compact,.backup-plan-actions .btn-delete{padding:.16rem .32rem;border-radius:7px;font-size:.68rem;line-height:1.05}.backup-field{display:grid;gap:.25rem}.backup-field>span{font-size:.76rem;color:#355a83;font-weight:600}.backup-field>input,.backup-field>select{width:100%}.export-history-actions .btn-compact,.export-history-actions .btn-delete{padding:.24rem .46rem;border-radius:8px;font-size:.74rem}small{color:var(--muted)}.mt-10{margin-top:.8rem}.admin-new-user-row{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-check{display:inline-flex;align-items:center;gap:.34rem}.inline-check .project-inline-create input{grid-area:input;min-width:0}.inline-check .project-inline-create button:first-of-type{grid-area:add}.inline-check .project-inline-create .btn-link{grid-area:reset;justify-self:start}@media (max-width: 980px){.shell{grid-template-columns:1fr}.sidebar-panel{position:static}.filters-row,.admin-new-user-row,.permissions-grid,.admin-reset-row,.planner-toolbar{grid-template-columns:1fr}.day-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-entry-bar{grid-template-columns:1fr}.project-node-row{align-items:stretch}.project-list-compact li{flex-direction:column;align-items:stretch}.project-edit-grid{grid-template-columns:1fr}.project-inline-create{grid-template-columns:1fr;align-items:stretch}.export-config-row,.export-date-row,.export-grid,.tag-assign-row,.tag-create-row{grid-template-columns:1fr}.tasks-table,.tasks-table thead,.tasks-table tbody,.tasks-table tr,.tasks-table th,.tasks-table td{display:block;width:100%}.tasks-table thead{display:none}.tasks-table tr{border-bottom:1px solid var(--line);padding:.5rem}}
