*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f6fb;color:#182033}button,input,select,textarea{font:inherit}button{border:0;border-radius:10px;background:#2563eb;color:#fff;padding:10px 14px;cursor:pointer;font-weight:700}button:hover{filter:brightness(.95)}button.ghost{background:#edf2ff;color:#24447a}button.small{padding:8px 10px;font-size:13px}button.danger{background:#dc2626}a.security-link{display:inline-flex;align-items:center;background:#0f766e;color:#fff;text-decoration:none;padding:10px 14px;border-radius:10px;font-weight:700}.hidden{display:none!important}.muted,.hint{color:#64748b;font-size:13px}.msg{min-height:20px;color:#dc2626}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#e0e7ff,#f8fafc)}.login-card{width:min(420px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 20px 50px rgba(15,23,42,.15)}.login-card h1{margin:0 0 8px}.login-card input{width:100%;padding:14px;border:1px solid #d7deea;border-radius:12px;margin:12px 0}.login-card button{width:100%;padding:14px}.app{max-width:1560px;margin:0 auto;padding:18px}.topbar{background:#111827;color:#fff;border-radius:20px;padding:18px 22px;display:flex;justify-content:space-between;gap:16px;align-items:center}.topbar h1{margin:0;font-size:26px}.topbar p{margin:6px 0 0;color:#cbd5e1}.top-actions{display:flex;gap:8px;flex-wrap:wrap}.emergency-panel,.calendar-area,.side-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.emergency-panel{margin:16px 0;padding:16px}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.section-head h2{margin:0}.section-head p{margin:5px 0 0;color:#64748b}.contact-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.contact-card{border:1px solid #e5e7eb;border-left:5px solid #2563eb;border-radius:14px;padding:12px;background:#fbfdff}.contact-card h3{margin:0 0 6px;font-size:15px}.contact-card .phone{font-size:20px;font-weight:900;color:#111827;margin:6px 0}.contact-card p{margin:3px 0;color:#475569;font-size:13px}.grid-form{display:grid;grid-template-columns:120px 1fr 1fr 110px 150px 1fr auto;gap:8px;margin-top:14px}.grid-form input,.grid-form select{padding:10px;border:1px solid #d7deea;border-radius:10px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:16px}.layout.single{grid-template-columns:minmax(0,1fr) 410px}.calendar-area{padding:14px}.calendar-controls{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:12px}.calendar-controls h2{margin:0;min-width:180px;text-align:center}.weekday-row,.calendar{display:grid;grid-template-columns:repeat(7,1fr)}.weekday-row div{text-align:center;padding:10px 0;color:#64748b;font-weight:800}.day{min-height:136px;border:1px solid #e5e7eb;background:#fff;padding:7px;position:relative}.day.other{background:#f8fafc;color:#94a3b8}.day.today{outline:3px solid #2563eb;z-index:1}.day.selected{background:#eff6ff}.day-num{font-weight:900;margin-bottom:6px}.badge{display:block;width:100%;border-radius:8px;padding:4px 6px;margin:4px 0;font-size:12px;line-height:1.25;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge.event{background:#dbeafe;color:#1e3a8a}.badge.shared{background:#dcfce7;color:#166534}.badge.work{background:#fef3c7;color:#92400e}.badge.vacation{background:#fee2e2;color:#991b1b}.side-panel{padding:14px;max-height:calc(100vh - 130px);overflow:auto}.tabs{display:flex;gap:8px;margin-bottom:12px}.tab{background:#e5e7eb;color:#334155;flex:1}.tab.active{background:#2563eb;color:#fff}.form-stack{display:flex;flex-direction:column;gap:10px}.form-stack label{display:flex;flex-direction:column;gap:5px;color:#334155;font-weight:700;font-size:13px}.form-stack input,.form-stack select,.form-stack textarea{width:100%;border:1px solid #d7deea;border-radius:10px;padding:10px;background:#fff}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-line{flex-direction:row!important;align-items:center!important;font-size:14px!important}.check-line input{width:auto!important}.button-row{display:flex;gap:8px;flex-wrap:wrap}.contact-selects{border:1px dashed #cbd5e1;border-radius:14px;padding:12px;background:#f8fafc}.contact-selects h4{margin:0 0 8px}.detail-box{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#f8fafc;min-height:140px}.detail-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin-bottom:10px}.detail-item h4{margin:0 0 6px}.detail-item p{margin:4px 0;color:#475569}.simple-list{margin-top:12px}.list-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:8px;background:#fff}.list-row button{padding:6px 8px;font-size:12px}.security-page .topbar{background:#0f172a}.security-detail{max-height:none}@media(max-width:1100px){.layout,.layout.single{grid-template-columns:1fr}.side-panel{max-height:none}.contact-cards{grid-template-columns:repeat(2,1fr)}.grid-form{grid-template-columns:1fr 1fr}.day{min-height:110px}}@media(max-width:700px){.app{padding:10px}.topbar{border-radius:16px;display:block}.top-actions{margin-top:12px}.contact-cards{grid-template-columns:1fr}.grid-form{grid-template-columns:1fr}.weekday-row div{font-size:13px}.calendar{display:block}.weekday-row{display:none}.day{min-height:auto;margin-bottom:8px;border-radius:12px}.day.other{display:none}.calendar-controls{flex-wrap:wrap}.two-col{grid-template-columns:1fr}.badge{white-space:normal}.side-panel,.calendar-area,.emergency-panel{border-radius:14px}}
