:root{color:#1c1b1f;background:#f3f5f8;font-family:Segoe UI,system-ui,sans-serif;line-height:1.4}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{max-width:1180px;margin:0 auto;padding:24px 16px 40px}.top,.panel-head,.nav,.sheet-actions,.sheet-actions-end{display:flex;align-items:center;gap:12px}.top,.panel-head,.sheet-actions{justify-content:space-between}.eyebrow{margin:0;color:#5f6368;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}h1,h2{margin:0}h1{font-size:32px;font-weight:650}.top{flex-wrap:nowrap}.title-line{display:flex;align-items:center;gap:4px;min-width:0}.title-line h1{font-size:28px;line-height:1.15}.today-link{border:none;background:transparent;color:#5f6368;font-size:13px;font-weight:650;min-height:0;padding:4px 8px;border-radius:999px}.today-link:hover{background:#eef3fb;color:#1c1b1f}.store-badge{margin-left:4px;padding:3px 8px;border-radius:999px;background:#f1f3f4;color:#5f6368;font-size:11px;font-weight:650;white-space:nowrap}.store-badge.on{background:#e6f4ea;color:#137333}.month-arrows{display:none;align-items:center}.icon-button{width:40px;min-height:40px;padding:0;border:none;border-radius:999px;background:transparent;color:#3c4043;font-size:24px;line-height:1}.icon-button:hover{background:#eef3fb}.menu-wrap{position:relative}.menu{position:absolute;top:44px;right:0;z-index:5;display:grid;min-width:180px;padding:6px;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 12px 28px #1c1b1f1f}.menu button{border:none;background:transparent;text-align:left;min-height:40px;padding:0 12px;border-radius:10px}.menu button:hover{background:#eef3fb}.tabs{display:flex;gap:8px;margin-bottom:4px}.tab{border:none;background:transparent;color:#5f6368;min-height:36px;padding:0 14px;border-radius:999px;font-weight:650}.tab.on{background:#e8f0fe;color:#1a73e8}.catalog-panel{max-width:640px}.month{touch-action:pan-y}.preset-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:16px;padding:14px 16px;background:#fff;border:1px solid #e4e7ec;border-radius:16px}.preset-bar h2{font-size:16px}.preset-bar p{margin:2px 0 0;color:#5f6368;font-size:13px}.preset-list{display:flex;flex-wrap:wrap;gap:8px;width:100%;margin:0;padding:0;list-style:none}.ghost,.primary,.danger{border-radius:999px;border:1px solid transparent;min-height:40px;padding:0 16px}.ghost{background:#fff;border-color:#dadce0;color:#1c1b1f}.ghost:hover,.day:hover{background:#eef3fb}.primary{background:#1a73e8;color:#fff;font-weight:650}.primary:hover{background:#1765cc}.danger{background:#fff;color:#b3261e;border-color:#f3c5c1}.layout,.catalog{display:grid;gap:16px;margin-top:20px;align-items:start}.layout{grid-template-columns:minmax(0,1fr) 320px}.catalog{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.inline-form{display:grid;gap:12px;margin:12px 0 8px}.day-panel .sheet-date{margin:8px 0 0}.month,.day-panel,.grid,.day{min-width:0}.month,.day-panel,.sheet{background:#fff;border:1px solid #e4e7ec;border-radius:20px;box-shadow:0 8px 24px #1c1b1f0a}.month{padding:12px}.weekdays,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekdays{color:#5f6368;font-size:12px;font-weight:700;text-align:center}.weekdays div{padding:8px 0}.day{min-height:104px;width:100%;margin:0;padding:6px;overflow:hidden;border:1px solid transparent;border-radius:14px;background:transparent;text-align:left;color:inherit;cursor:pointer}.day:focus-visible{outline:2px solid #1a73e8;outline-offset:1px}.day.selected{background:#e8f0fe;border-color:#1a73e8}.day.outside{opacity:.38}.number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:13px;font-weight:700}.number.today{background:#1a73e8;color:#fff}.chips{display:grid;gap:3px;margin-top:4px}.chip,.more{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:none;border-radius:6px;padding:1px 5px;font-size:11px;font-weight:650;text-align:left;cursor:pointer}.chip:hover{filter:brightness(.95)}.more{color:#5f6368}.color-laranja{background:#fde7c7;color:#6b3e00}.color-azul{background:#d2e3fc;color:#174ea6}.color-verde{background:#ceead6;color:#0d652d}.color-roxo{background:#e6d4f5;color:#5b2c6f}.color-vermelho{background:#fad2cf;color:#8c1d18}.color-rosa{background:#fce8f3;color:#9c166b}.color-amarelo{background:#fef7e0;color:#7a5c00}.color-teal{background:#d0f0ea;color:#0b5c4d}.color-cinza{background:#e8eaed;color:#3c4043}.color-marrom{background:#efe0d5;color:#6d4c41}.color-ciano{background:#d2f4f9;color:#0b5f6b}.color-indigo{background:#e0e7ff;color:#3730a3}.color-field{margin:0;padding:0;border:none}.color-field legend{margin-bottom:8px;font-size:14px;font-weight:650}.color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.color-option{display:grid;justify-items:center;gap:4px;cursor:pointer;font-weight:500}.color-option input{position:absolute;opacity:0;pointer-events:none}.color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid #dadce0;box-shadow:inset 0 0 0 1px #1c1b1f14}.color-option input:checked+.color-swatch{border-color:#1a73e8;box-shadow:0 0 0 2px #e8f0fe}.color-option input:focus-visible+.color-swatch{outline:2px solid #1a73e8;outline-offset:2px}.color-name{font-size:11px;color:#5f6368;text-align:center}.dot{width:10px;height:10px;margin-top:6px;border-radius:50%;flex:none}.dot.color-laranja{background:#e37400}.dot.color-azul{background:#1a73e8}.dot.color-verde{background:#188038}.dot.color-roxo{background:#9334e6}.dot.color-vermelho{background:#d93025}.dot.color-rosa{background:#e52592}.dot.color-amarelo{background:#f9ab00}.dot.color-teal{background:#12b5a0}.dot.color-cinza{background:#5f6368}.dot.color-marrom{background:#8d6e63}.dot.color-ciano{background:#12b5cb}.dot.color-indigo{background:#3f51b5}.day-panel{padding:18px}.day-panel h2{font-size:22px}.list{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}.item{width:100%;display:flex;gap:10px;text-align:left;border:1px solid #e4e7ec;border-radius:14px;background:#fff;padding:12px}.item:hover{border-color:#1a73e8}.item strong,.item small,.item em{display:block}.item small{color:#5f6368;margin-top:2px}.item em{margin-top:6px;color:#3c4043;font-style:normal;white-space:pre-wrap}.empty{margin:16px 0 0;padding:28px 12px;border:1px dashed #dadce0;border-radius:14px;color:#5f6368;text-align:center}.backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:#1c1b1f61}.sheet{width:min(480px,100%);max-height:min(92vh,820px);overflow:auto;padding:20px;display:grid;gap:12px}.shift-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.shift-row small{display:block;color:#5f6368;font-weight:500}.sheet-date{margin:-6px 0 4px;color:#5f6368}label{display:grid;gap:6px;font-size:14px;font-weight:650}input,select,textarea{width:100%;border:1px solid #dadce0;border-radius:12px;padding:10px 12px;background:#fff;font-weight:450}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #1a73e8;border-color:#1a73e8}.check{display:flex;align-items:center;gap:8px}.check label{font-weight:650}.check input{width:18px;height:18px}.time-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.next-day{margin:0;width:fit-content;padding:4px 10px;border-radius:999px;background:#fde7c7;color:#6b3e00;font-size:13px;font-weight:700}.hint,.error{margin:0;font-size:12px;font-weight:500}.hint{color:#5f6368}.error{color:#b3261e}@media(hover:hover)and (pointer:fine){.month-arrows{display:flex}}@media(max-width:860px){.layout{grid-template-columns:1fr}.day{min-height:88px;padding:4px}.number{width:24px;height:24px;font-size:12px}.chip,.more{padding:1px 4px;font-size:10px}.title-line h1,h1{font-size:24px}}
