@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap";:root{--bg:#f3f7fc;--bg-soft:#e9f0f9;--surface:#fff;--surface-2:#f5f9ff;--text:#10253c;--text-muted:#4e6683;--line:#d2dfef;--line-strong:#b5cae2;--primary:#003c71;--primary-strong:#002f59;--primary-soft:#e2effb;--accent:#2f71b3;--accent-soft:#dfebf9;--danger:#b42338;--danger-soft:#ffe9ec;--shadow:0 20px 45px #08294c29;--radius-lg:24px;--radius-md:14px;--radius-sm:10px}*{box-sizing:border-box}html,body,#root{min-height:100%}body{color:var(--text);background:radial-gradient(circle at 10% 8%,#2f71b333,#0000 42%),radial-gradient(circle at 85% 10%,#003c712e,#0000 38%),linear-gradient(#f8fbff 0%,#eef4fb 100%);margin:0;font-family:Manrope,Segoe UI,sans-serif}h1,h2,h3,h4,h5,h6{letter-spacing:-.02em;margin:0;font-family:Space Grotesk,Segoe UI,sans-serif}p{color:var(--text-muted);margin:0}button,select,input,textarea{font:inherit}button{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);cursor:pointer;padding:9px 12px;font-weight:600;transition:transform .14s,box-shadow .14s,border-color .14s,background .14s}button:hover{border-color:var(--line-strong);transform:translateY(-1px);box-shadow:0 6px 18px #10271e1a}button:active{transform:translateY(0)}button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none;transform:none}main{min-height:100vh}.app-shell{grid-template-columns:260px 1fr;gap:12px;max-width:1680px;min-height:100vh;margin:0 auto;padding:12px;display:grid}.sidebar{color:#eff6ff;border-radius:var(--radius-lg);box-shadow:var(--shadow);background:linear-gradient(170deg,#003c71 0%,#002f59 80%);border:1px solid #ffffff1f;flex-direction:column;gap:6px;padding:14px 12px;animation:.44s both fade-up;display:flex}.brand-block{border-bottom:1px solid #dfeeff40;margin-bottom:10px;padding-bottom:14px}.brand-logo-frame{background:#fff;border:1px solid #bfd4ea;border-radius:12px;padding:8px}.brand-logo{object-fit:contain;object-position:left center;width:100%;height:auto;max-height:64px;display:block}.side-btn{text-align:left;color:#e4f0ff;background:#ffffff0f;border-color:#dfeeff38;width:100%;padding:11px 13px}.side-btn.active{color:#f6fbff;background:linear-gradient(120deg,#2f71b3 0%,#4f8ecb 100%);border-color:#b4d8fae6}.side-btn:not(.active):hover{background:#ffffff26;border-color:#dfeeff70}.sidebar-foot{color:#d5e8ff;border-top:1px solid #dfeeff4d;flex-direction:column;gap:8px;margin-top:auto;padding-top:12px;display:flex}.page-main{animation:.52s both fade-up;overflow-x:hidden}.app-header{border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(135deg,#fffffff0 0%,#eef5ffeb 100%);justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px;padding:20px;display:flex;box-shadow:0 12px 26px #0a2c4f1c}.app-header h1,.admin-panel h1,.auth-card h1{font-size:clamp(1.45rem,2.2vw,2rem)}.app-header p{margin-top:7px}.active-planners{flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px;display:flex}.active-planners-title{color:#36597e;font-size:12px;font-weight:700}.planner-chip{color:#174069;background:#f2f7fe;border:1px solid #bed1e6;border-radius:999px;align-items:center;gap:6px;padding:3px 9px;font-size:12px;font-weight:700;display:inline-flex}.planner-chip.self{background:#e8f2fd;border-color:#9dc4ea}.planner-chip.empty{color:#5d7491;border-style:dashed;font-weight:600}.planner-chip-dot{border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 1px #09284833}.toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.toolbar button{border-color:#c3d5ea}.toolbar input,.toolbar select,.table-toolbar input,.table-toolbar select,.table-create input,.table-create select,.inline-form input,.inline-form select,.inline-form textarea,.log-table td input,.log-table td select,.item-editor input,.item-editor select,.item-editor textarea{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);width:100%;color:var(--text);padding:9px 11px;transition:border-color .12s,box-shadow .12s}.toolbar input,.toolbar select{width:auto}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #1a7f5a2e}.notice,.error{border:1px solid var(--line);background:var(--surface);border-radius:12px;margin-top:12px;padding:11px 13px}.notice{color:#153a60;background:var(--primary-soft);border-color:#bcd5ee}.error{color:#8f2235;background:var(--danger-soft);border-color:#ffc6cf}.toast-stack{z-index:1200;width:min(460px,100vw - 32px);position:fixed;top:16px;right:16px}.toast{border:1px solid var(--line);border-radius:12px;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;animation:.2s both fade-up;display:flex;box-shadow:0 12px 24px #0f231b2e}.toast-notice{color:#1f4f3d;background:var(--primary-soft);border-color:#bce6d2}.toast-error{color:#8f2235;background:var(--danger-soft);border-color:#ffc6cf}.toast-close{width:24px;height:24px;color:inherit;background:0 0;border:1px solid #0000;border-radius:6px;padding:0;font-size:16px;line-height:1}.toast-close:hover{box-shadow:none;border-color:currentColor;transform:none}.auth-card{border:1px solid var(--line);border-radius:var(--radius-lg);width:min(760px,96vw);box-shadow:var(--shadow);background:#fffffff2;flex-direction:column;gap:14px;margin:7vh auto;padding:24px;animation:.5s both fade-up;display:flex}.auth-logo{background:linear-gradient(#fff 0%,#f7fbff 100%);border:1px solid #d6e4f3;border-radius:10px;width:min(620px,100%);height:auto;padding:8px 10px}.inline-form{gap:10px;display:grid}.admin-panel{border:1px solid var(--line);border-radius:var(--radius-lg);background:#fffffff2;padding:18px;animation:.32s both fade-up;box-shadow:0 12px 24px #0a2d521a}.table-toolbar{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.table-toolbar input{min-width:240px}.table-create{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-bottom:12px;display:grid}.log-table-wrap{border:1px solid var(--line);background:var(--surface);border-radius:12px;overflow:auto}.log-table{border-collapse:collapse;width:100%;min-width:620px}.log-table th,.log-table td{text-align:left;border-bottom:1px solid #e6eef8;padding:10px 12px;font-size:13px}.log-table th{z-index:1;color:#1b3f66;background:#f2f7fe;position:sticky;top:0}.log-table tr:hover td{background:#fbfdfb}.scheduler-shell{border:1px solid var(--line);border-radius:var(--radius-lg);background:#fffffff2;animation:.34s both fade-up;overflow:hidden;box-shadow:0 14px 28px #082a4c1a}.scheduler-scroll{max-height:calc(100vh - 290px);overflow:auto}.conflict-banner{color:#8f2235;background:linear-gradient(90deg,#ffecee 0%,#fff9fa 100%);border-bottom:1px solid #ffd5db;flex-wrap:wrap;align-items:center;gap:7px;padding:10px 14px;font-size:13px;font-weight:700;display:flex}.conflict-banner span{background:#fff;border:1px solid #ffb5c2;border-radius:999px;padding:2px 8px;font-weight:600}.time-header{z-index:10;border-bottom:1px solid var(--line);background:linear-gradient(#f5f9ff 0%,#ebf2fb 100%);grid-template-columns:230px 1fr;height:68px;display:grid;position:sticky;top:0}.corner{z-index:11;border-right:1px solid var(--line);color:#174069;background:linear-gradient(#f5f9ff 0%,#ebf2fb 100%);align-items:center;height:68px;padding:0 16px;font-weight:700;display:flex;position:sticky;left:0}.ticks{position:relative}.tick{color:#4e6683;white-space:nowrap;border-left:1px solid #d8e6de;flex-direction:column;justify-content:center;gap:2px;height:68px;padding:6px 7px;font-size:11px;display:flex;position:absolute;top:0;overflow:hidden;transform:translate(-1px)}.tick-day{color:#1e406b;white-space:nowrap;font-size:11px;font-weight:600}.tick-time{color:#003c71;letter-spacing:.02em;white-space:nowrap;font-size:12px;font-weight:700}.rows{position:relative}.row{border-bottom:1px solid #e8f0eb;grid-template-columns:230px 1fr;display:grid}.resource-label{z-index:2;border-right:1px solid var(--line);background:#fcfdff;border-left:8px solid #79a7d6;flex-direction:column;justify-content:center;padding:0 13px;display:flex;position:sticky;left:0}.resource-label strong{font-size:14px}.resource-label span{color:var(--text-muted);margin-top:4px;font-size:12px}.resource-label.placeholder{background:#f4f9ff}.lane{background:linear-gradient(#fff 0%,#f6fafe 100%),repeating-linear-gradient(90deg,#0000,#0000 calc(12.5% - 1px),#425f5308 calc(12.5% - 1px) 12.5%);position:relative}.grid-line{border-left:1px solid #edf4ef;position:absolute;top:0;bottom:0}.create-preview{border:1px dashed var(--primary);pointer-events:none;background:#1a7f5a29;border-radius:10px;position:absolute;top:14px;bottom:14px}.planning-item{cursor:pointer;background:linear-gradient(#edf5fe 0%,#deebfa 100%);border:1px solid #bdd7f1;border-radius:13px;flex-direction:column;gap:2px;min-width:98px;height:58px;padding:8px 10px;transition:box-shadow .14s,transform .14s;display:flex;position:absolute;overflow:hidden;box-shadow:0 7px 16px #09386329}.planning-item:hover{transform:translateY(-1px);box-shadow:0 10px 22px #0839663d}.planning-item strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.planning-item span,.planning-item em{color:#36597e;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-style:normal;overflow:hidden}.planning-item.maintenance{background:linear-gradient(#fff7e5 0%,#ffefd1 100%);border-color:#f2d396}.planning-item.vacation{background:linear-gradient(#edf6ff 0%,#dbe9f9 100%);border-color:#b8d4f0}.planning-item.blocked,.planning-item.note{background:linear-gradient(#f4f7fb 0%,#e8eef6 100%);border-color:#c7d4e2}.planning-item.has-conflict{border-color:#f2556e;box-shadow:0 10px 22px #c21a3f47}.planning-item.locked-by-other{cursor:not-allowed;background:linear-gradient(#fff4e8 0%,#ffe7d0 100%);border-color:#f3a05c;box-shadow:0 8px 18px #a5580f3d}.item-warning{color:#8f2235;font-size:11px;font-weight:700}.item-lock{color:#8a4b1a;font-size:11px;font-weight:700}.resize-handle{cursor:ew-resize;width:10px;position:absolute;top:0;bottom:0}.resize-handle.left{left:0}.resize-handle.right{right:0}.item-oci-btn{color:#805200;background:#fff4db;border:1px solid #f2d396;border-radius:999px;padding:1px 7px;font-size:10px;font-weight:700;position:absolute;top:6px;right:6px}.remote-cursor{pointer-events:none;z-index:8;width:0;position:absolute;top:0;bottom:0}.remote-cursor:before{content:"";border-left:2px solid #09284852;position:absolute;top:0;bottom:0;left:-1px}.remote-cursor-pointer{border-top:10px solid #2f71b3;border-left:6px solid #0000;border-right:6px solid #0000;width:0;height:0;position:absolute;top:2px;left:-6px}.remote-cursor-label{color:#fff;white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;position:absolute;top:12px;left:8px;box-shadow:0 6px 18px #0003}.item-editor-overlay{z-index:30;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#061f3a85;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.item-editor{border:1px solid var(--line);background:#fff;border-radius:16px;flex-direction:column;gap:10px;width:min(580px,100%);max-height:min(92vh,860px);padding:16px;display:flex;overflow:auto;box-shadow:0 20px 38px #081d1547}.item-editor label{color:#1f466f;flex-direction:column;gap:5px;font-size:13px;display:flex}.editor-actions{justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.danger-btn{color:#9b2337;background:#fff0f3;border-color:#ffb5c2}.danger-btn:hover{background:#ffdfe5;border-color:#ff97a9}.sidebar>*{animation:.42s both slide-in}.sidebar>:nth-child(2){animation-delay:30ms}.sidebar>:nth-child(3){animation-delay:60ms}.sidebar>:nth-child(4){animation-delay:90ms}.sidebar>:nth-child(5){animation-delay:.12s}.sidebar>:nth-child(6){animation-delay:.15s}.sidebar>:nth-child(7){animation-delay:.18s}@keyframes fade-up{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in{0%{opacity:0;transform:translate(-14px)}to{opacity:1;transform:translate(0)}}@media (width<=1180px){.app-shell{grid-template-columns:1fr;gap:14px;padding:14px}.sidebar{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px;display:grid}.sidebar h2,.sidebar-foot{grid-column:1/-1}.side-btn{text-align:center;min-height:42px}.app-header{flex-direction:column;align-items:stretch}.toolbar{justify-content:flex-start}.active-planners{margin-top:8px}}@media (width<=900px){.time-header,.row{grid-template-columns:168px 1fr}.corner,.resource-label{padding-left:10px;padding-right:8px}.table-toolbar input{flex:1;min-width:180px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
