.ebs-wrap{max-width:980px;margin:20px auto;padding:0 16px;font-family:inherit}
.ebs-wrap-modal{max-width:none;margin:0;padding:0}
.ebs-grid{display:grid;gap:16px}
.ebs-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ebs-field label{display:block;font-weight:600;margin:0 0 8px}
.ebs-field input,.ebs-field select,.ebs-field textarea{width:100%;padding:12px;border:1px solid #ccd0d4;border-radius:10px;box-sizing:border-box;background:#fff}
.ebs-field textarea{min-height:110px}
.ebs-btn{background:#111827;color:#fff;border:0;border-radius:10px;padding:12px 16px;cursor:pointer;font-weight:600}
.ebs-btn.secondary{background:#374151}
.ebs-btn.danger{background:#991b1b}
.ebs-btn.small{padding:8px 12px;font-size:14px}
.ebs-response,.ebs-inline-response{margin-top:12px}
.ebs-response.success{color:#166534}
.ebs-response.error{color:#991b1b}
.ebs-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.ebs-dashboard-header h3{margin:0}
.ebs-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.ebs-tab{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:10px 16px;cursor:pointer}
.ebs-tab.active{background:#111827;color:#fff}
.ebs-tab-panel{display:none}
.ebs-tab-panel.active{display:block}
.ebs-job-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ebs-status{padding:6px 10px;border-radius:999px;background:#eef2ff;text-transform:capitalize;font-size:12px}
.ebs-links{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
.ebs-actions{display:flex;gap:8px;flex-wrap:wrap}
.ebs-help{padding:12px;background:#f9fafb;border-radius:10px;margin-top:12px}
.ebs-notification-pill{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;background:#dc2626;color:#fff;border-radius:999px;font-size:12px}
.ebs-selected-day{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:14px 16px;border:1px solid #dbeafe;background:#eff6ff;border-radius:14px}
.ebs-selected-day-label{font-size:13px;color:#475569}

.ebs-availability-list-wrap{max-width:1100px}
.ebs-list-header{margin-bottom:18px}
.ebs-list-header h2{margin:0 0 8px;font-size:clamp(1.4rem,2vw,2rem)}
.ebs-list-header p{margin:0;color:#475569}
.ebs-week-section{margin:0 0 24px}
.ebs-week-title{font-weight:700;font-size:1rem;margin:0 0 12px;padding:10px 14px;background:#111827;color:#fff;border-radius:14px;display:inline-block}
.ebs-day-list{display:grid;gap:12px}
.ebs-day-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 8px 30px rgba(15,23,42,.05)}
.ebs-day-row-available{border-color:#bbf7d0;background:linear-gradient(180deg,#ffffff 0%,#f0fdf4 100%)}
.ebs-day-row-full{border-color:#fecaca;background:linear-gradient(180deg,#ffffff 0%,#fef2f2 100%)}
.ebs-day-row-off,.ebs-day-row-blocked{border-color:#e5e7eb;background:linear-gradient(180deg,#fafafa 0%,#f3f4f6 100%);opacity:.88}
.ebs-day-primary{min-width:0}
.ebs-day-name{font-size:1.1rem;font-weight:700;color:#111827}
.ebs-day-date{color:#475569;margin-top:4px}
.ebs-day-status-wrap{display:flex;flex-direction:column;gap:6px}
.ebs-day-status-badge{display:inline-flex;align-self:flex-start;padding:8px 12px;border-radius:999px;font-size:.92rem;font-weight:700}
.ebs-day-status-badge.status-available{background:#dcfce7;color:#166534}
.ebs-day-status-badge.status-full{background:#fee2e2;color:#b91c1c}
.ebs-day-status-badge.status-off,.ebs-day-status-badge.status-blocked{background:#e5e7eb;color:#4b5563}
.ebs-day-count{color:#475569;font-size:.92rem}
.ebs-day-action{text-align:right}
.ebs-day-unavailable-text{display:inline-block;padding:10px 0;color:#6b7280;font-weight:600}

.ebs-modal[hidden]{display:none}
.ebs-modal{position:fixed;inset:0;z-index:99999}
.ebs-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.65);backdrop-filter:blur(3px)}
.ebs-modal-dialog{position:relative;z-index:2;max-width:760px;max-height:calc(100vh - 32px);overflow:auto;margin:16px auto;padding:24px;background:#fff;border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.ebs-modal-close{position:absolute;right:14px;top:14px;border:0;background:#f3f4f6;width:40px;height:40px;border-radius:999px;font-size:28px;line-height:1;cursor:pointer}
.ebs-modal-selected-date{margin:0 0 16px;color:#475569}
body.ebs-modal-open{overflow:hidden}

@media (max-width: 900px){
  .ebs-day-row{grid-template-columns:1fr;align-items:flex-start}
  .ebs-day-action{text-align:left}
}
@media (max-width: 782px){
  .ebs-grid.two{grid-template-columns:1fr}
  .ebs-btn,.ebs-tab{width:100%}
  .ebs-selected-day{flex-direction:column;align-items:flex-start}
  .ebs-modal-dialog{margin:8px;padding:18px;border-radius:18px;max-height:calc(100vh - 16px)}
}
