:root{
  font-family:Inter,'Segoe UI',Arial,sans-serif;
  color:#152820;
  background:#f5f7f3;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  --green:#167552;
  --green-dark:#105d40;
  --ink:#152820;
  --muted:#718078;
  --line:#e8ede8;
  --surface:#fff;
  --soft:#f4f8f4
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  min-width:320px;
  background:radial-gradient(ellipse at 85% -5%,#e4f2e9 0,transparent 35%),#f5f7f3;
  min-height:100vh
}
button,input{
  font:inherit
}
button{
  cursor:pointer
}
button:disabled{
  opacity:.52;
  cursor:not-allowed
}
.shell{
  min-height:100vh
}
.topbar{
  height:72px;
  padding:0 max(32px,calc((100vw - 1160px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e8ede8;
  background:#ffffffd9
}
.wordmark{
  color:var(--ink);
  font:800 18px Manrope,Arial,sans-serif;
  letter-spacing:-.6px;
  text-decoration:none
}
.wordmark span{
  font-weight:500;
  color:#89968e
}
.topbar-right,.identity{
  display:flex;
  align-items:center;
  gap:16px
}
.identity{
  gap:9px;
  font-size:13px;
  font-weight:600
}
.avatar,.brand-mark{
  display:grid;
  place-items:center;
  background:#dff1e6;
  color:var(--green);
  font-weight:700
}
.avatar{
  width:34px;
  height:34px;
  border-radius:50%
}
.content{
  width:min(1160px,calc(100% - 48px));
  margin:50px auto 80px
}
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:28px
}
.eyebrow{
  margin:0 0 8px;
  color:var(--green);
  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px
}
.page-heading h1,.login-card h1{
  font:700 clamp(28px,4vw,38px) Manrope,Arial,sans-serif;
  letter-spacing:-1.5px;
  margin:0 0 8px
}
.muted{
  color:var(--muted);
  font-size:14px;
  margin:0
}
.date-pill{
  padding:10px 14px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:#54655b
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 10px 30px #263d2f08
}
.employee-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.action-card{
  padding:28px
}
.action-card h2{
  font:700 26px Manrope,Arial,sans-serif;
  letter-spacing:-.7px;
  margin:0 0 26px
}
.schedule-times{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.time-block{
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:12px;
  padding:14px;
  color:#738078;
  font-size:10px;
  font-weight:700;
  letter-spacing:.8px
}
.time-block strong{
  display:block;
  margin-top:7px;
  color:var(--ink);
  font:700 21px Manrope,Arial,sans-serif;
  letter-spacing:0
}
.schedule-remark{
  font-size:13px;
  color:#69776f;
  margin:14px 0 0
}
.action-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:26px
}
.button{
  border:0;
  border-radius:10px;
  padding:12px 16px;
  font-size:13px;
  font-weight:700;
  transition:transform .15s,background .15s
}
.button:not(:disabled):hover{
  transform:translateY(-1px)
}
.button.primary{
  background:var(--green);
  color:#fff
}
.button.primary:hover{
  background:var(--green-dark)
}
.button.secondary{
  background:#e8f4ed;
  color:var(--green-dark)
}
.button.ghost{
  background:transparent;
  color:#59675f
}
.button.small{
  padding:9px 12px;
  font-size:12px
}
.fine-print{
  font-size:11px;
  line-height:1.6;
  color:#8b9890;
  margin:15px 0 0
}
.activity-card{
  padding:24px
}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px
}
.section-head h2,.section-head>div{
  font:700 16px Manrope,Arial,sans-serif;
  margin:0
}
.link-button,.admin-link{
  padding:0;
  border:0;
  background:none;
  color:var(--green);
  font-size:12px;
  font-weight:700
}
.activity-list{
  display:grid
}
.activity-row{
  min-height:60px;
  display:grid;
  grid-template-columns:9px 1fr auto auto;
  align-items:center;
  gap:12px;
  border-top:1px solid #edf0ed
}
.activity-mark{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#c9d2cc
}
.activity-mark.success{
  background:#2da571
}
.activity-mark.failed{
  background:#d65c52
}
.activity-copy{
  display:grid;
  gap:4px
}
.activity-copy strong{
  font-size:12px
}
.activity-copy small{
  font-size:10px;
  color:#829087;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.activity-time{
  font-size:11px;
  color:#728077
}
.status{
  font-size:9px;
  font-weight:700;
  letter-spacing:.5px;
  border-radius:20px;
  padding:5px 8px
}
.status.success{
  background:#e8f5ed;
  color:#22764f
}
.status.failed{
  background:#fff0ed;
  color:#b4473e
}
.status.skipped{
  background:#f1f3f1;
  color:#758078
}
.empty-state{
  padding:26px 10px;
  text-align:center;
  color:#88958d;
  font-size:12px;
  border-top:1px solid var(--line)
}
.admin-link{
  margin-top:22px
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-bottom:18px
}
.stat-card{
  padding:20px 22px;
  display:grid;
  gap:7px
}
.stat-card strong{
  font:700 28px Manrope,Arial,sans-serif;
  letter-spacing:-1px
}
.stat-card .muted{
  font-size:11px
}
.admin-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px
}
.calendar-card{
  margin-top:18px;
  padding:26px
}
.calendar-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  align-items:end;
  gap:12px
}
.days-off-list{
  margin-top:22px
}
.days-off-list h3{
  margin:0 0 8px;
  font-size:13px
}
.days-off-row{
  display:grid;
  grid-template-columns:120px 1fr auto;
  align-items:center;
  gap:12px;
  padding:9px 0;
  border-top:1px solid var(--line);
  font-size:12px
}
.admin-grid>.card{
  padding:22px;
  min-width:0
}
.table-wrap{
  overflow:auto
}
table{
  width:100%;
  border-collapse:collapse;
  text-align:left
}
th{
  font-size:9px;
  letter-spacing:.8px;
  color:#829087;
  font-weight:700;
  padding:10px 9px;
  border-bottom:1px solid var(--line)
}
td{
  font-size:11px;
  color:#526058;
  padding:13px 9px;
  border-bottom:1px solid #eff2ef;
  white-space:nowrap
}
.account-cell{
  font-weight:700;
  color:var(--ink)
}
.empty-table{
  text-align:center;
  color:#839087;
  padding:30px
}
.admin-note{
  margin:18px 0 0;
  color:#859188;
  font-size:11px
}
.notice{
  border-radius:10px;
  padding:12px 15px;
  margin:0 0 18px;
  font-size:12px
}
.notice.error{
  background:#fff0ed;
  color:#a63c32
}
.notice.info{
  background:#eef6f0;
  color:#42614e
}
.notice.success{
  background:#e8f5ed;
  color:#22764f
}
.login-card{
  width:min(420px,calc(100% - 36px));
  margin:8vh auto;
  padding:36px
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  margin-bottom:28px;
  font:800 14px Manrope,Arial,sans-serif
}
.login-card h1{
  font-size:27px;
  letter-spacing:-1px
}
.login-card>.muted{
  margin-top:0
}
.google-login{
  height:46px;
  margin-top:28px;
  padding:0 18px;
  border:1px solid #d9e0da;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#29372f;
  background:#fff;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 2px 8px #24372a0a;
  transition:border-color .15s,box-shadow .15s,transform .15s
}
.google-login:hover{
  border-color:#9fb4a6;
  box-shadow:0 5px 15px #24372a12;
  transform:translateY(-1px)
}
.google-g{
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  color:#4285f4;
  font:800 17px Arial,sans-serif
}
.login-form{
  display:grid;
  gap:16px;
  margin-top:28px
}
.field{
  display:grid;
  gap:7px;
  color:#4f5d55;
  font-size:12px;
  font-weight:600
}
.field input{
  width:100%;
  height:44px;
  border:1px solid #dfe6df;
  border-radius:9px;
  padding:0 12px;
  outline:none
}
.field input:focus{
  border-color:#63a88a;
  box-shadow:0 0 0 3px #16755215
}
.login-form .button{
  margin-top:4px;
  height:44px
}
.form-error{
  margin:12px 0 0;
  color:#b4473e;
  font-size:12px;
  min-height:16px;
  text-align:center
}
.login-footnote{
  text-align:center;
  color:#8a968e;
  font-size:11px;
  margin:22px 0 0
}
.loading{
  width:min(360px,calc(100% - 40px));
  padding:25px;
  margin:15vh auto;
  text-align:center;
  color:#738078;
  font-size:13px
}
@media(max-width:800px){
  .employee-grid,.admin-grid{
    grid-template-columns:1fr
  }
  .content{
    margin-top:34px
  }
  .topbar{
    padding:0 22px
  }
  .activity-row{
    grid-template-columns:8px 1fr auto
  }
  .activity-row .status{
    display:none
  }
}
@media(max-width:520px){
  .content{
    width:calc(100% - 28px);
    margin:28px auto 50px
  }
  .page-heading{
    align-items:flex-start;
    gap:8px;
    flex-direction:column
  }
  .date-pill{
    font-size:11px;
    padding:8px 11px
  }
  .action-card,.activity-card{
    padding:20px
  }
  .stats-grid{
    grid-template-columns:1fr
  }
  .stat-card{
    grid-template-columns:1fr auto;
    align-items:center
  }
  .stat-card .eyebrow{
    grid-column:1/-1
  }
  .stat-card .muted{
    grid-column:2;
    grid-row:2
  }
  .activity-row{
    gap:8px
  }
  .activity-time{
    font-size:10px
  }
  .identity-name{
    max-width:96px;
    overflow:hidden;
    text-overflow:ellipsis
  }
  .topbar-right{
    gap:8px
  }
.wordmark{
    font-size:16px
  }
}
.settings-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);
  align-items:stretch;
  gap:18px;
  margin-bottom:28px
}
.credentials-card{
  padding:24px 26px
}
.credentials-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px
}
.credentials-heading h2{
  margin:0 0 5px;
  font:700 19px Manrope,Arial,sans-serif
}
.credentials-heading .eyebrow{
  margin-bottom:5px
}
.credential-status{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:700
}
.credential-status.ready{
  background:#e8f5ed;
  color:#22764f
}
.credential-status.pending{
  background:#fff4df;
  color:#94651f
}
.credentials-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:end;
  gap:12px
}
.credential-actions{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:12px
}
.credential-message{
  color:#b4473e;
  font-size:11px
}
.automation-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 26px
}
.automation-copy h2{
  margin:0 0 5px;
  font:700 19px Manrope,Arial,sans-serif
}
.automation-copy .eyebrow{
  margin-bottom:5px
}
.switch{
  position:relative;
  display:inline-flex;
  flex:0 0 auto;
  width:52px;
  height:30px
}
.switch input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0
}
.switch-track{
  position:absolute;
  inset:0;
  cursor:pointer;
  border-radius:20px;
  background:#c8d1cb;
  transition:background .2s
}
.switch-track:before{
  position:absolute;
  content:"";
  width:22px;
  height:22px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 3px #0002;
  transition:transform .2s
}
.switch input:checked+.switch-track{
  background:var(--green)
}
.switch input:checked+.switch-track:before{
  transform:translateX(22px)
}
.switch input:focus-visible+.switch-track{
  outline:3px solid #16755244;
  outline-offset:2px
}
.switch input:disabled+.switch-track{
  opacity:.55;
  cursor:not-allowed
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:32px 0 14px
}
.section-heading>div{
  font:700 19px Manrope,Arial,sans-serif
}
.section-heading .muted{
  font-size:11px
}
.days-grid{
  display:block
}
.days-tabs{
  display:flex;
  gap:6px;
  overflow-x:auto;
  margin-bottom:10px;
  border-bottom:1px solid var(--line)
}
.day-tab{
  flex:1;
  min-width:62px;
  padding:11px 10px;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:var(--muted);
  font:600 12px Manrope,Arial,sans-serif;
  cursor:pointer
}
.day-tab[aria-selected="true"]{
  border-color:#167552;
  color:#167552
}
.day-card[hidden]{
  display:none
}
.day-card{
  padding:20px;
  display:grid;
  align-content:start;
  gap:14px
}
.day-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:12px
}
.day-name{
  font:700 17px Manrope,Arial,sans-serif
}
.day-code{
  font-size:10px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.8px
}
.day-card .field{
  gap:6px
}
.field-label{
  font-size:11px;
  color:#4f5d55;
  font-weight:600
}
.schedule-input{
  min-width:0;
  width:100%;
  height:39px;
  padding:0 10px;
  border:1px solid #dfe6df;
  border-radius:8px;
  color:var(--ink);
  background:white;
  font-size:12px
}
.schedule-input:focus{
  outline:2px solid #16755233;
  border-color:#63a88a
}
.schedule-input:disabled{
  background:#f4f6f4;
  color:#839087
}
.location-field{
  display:grid;
  gap:6px
}
.coordinates-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px
}
.coordinate-input{
  background:#f8faf8
}
.time-input-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.save-schedule{
  justify-self:start
}
.day-message{
  min-height:15px;
  color:#b4473e;
  font-size:11px
}
.map-dialog{
  width:min(900px,calc(100vw - 28px));
  max-width:none;
  max-height:calc(100vh - 28px);
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 24px 80px #12251b40
}
.map-dialog::backdrop{
  background:#10251bd1;
  backdrop-filter:blur(3px)
}
.map-heading,.map-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px
}
.map-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px
}
.map-location-status{
  margin:8px 0 0;
  font-size:12px
}
.map-location-status.success{
  color:var(--green)
}
.map-results:empty{
  display:none
}
.map-result{
  display:block;
  width:100%;
  padding:9px 2px;
  border:0;
  border-bottom:1px solid var(--line);
  background:white;
  color:var(--ink);
  text-align:left;
  font-size:12px;
  cursor:pointer
}
.map-result:hover,.map-result:focus-visible{
  color:#167552
}
.map-heading h2{
  margin:0 0 4px;
  font:700 19px Manrope,Arial,sans-serif
}
.map-heading .muted,.map-footer .muted{
  font-size:11px
}
.map-canvas{
  width:100%;
  height:min(62vh,560px);
  min-height:300px;
  margin:16px 0;
  border-radius:10px;
  background:#e9efea
}
.map-footer .button:disabled{
  cursor:not-allowed
}
.automation-badge{
  display:inline-block;
  border-radius:20px;
  padding:5px 8px;
  background:#e8f5ed;
  color:#22764f;
  font-size:9px;
  font-weight:700
}
.automation-badge.off{
  background:#f1f3f1;
  color:#758078
}
@media(max-width:800px){
  .settings-grid{
    grid-template-columns:1fr
  }
}
@media(max-width:520px){
  .calendar-card{
    padding:18px
  }
  .credentials-card{
    padding:18px
  }
  .credentials-heading{
    gap:10px
  }
  .credentials-form{
    grid-template-columns:1fr
  }
  .credential-actions{
    grid-column:1
  }
  .automation-card{
    padding:18px;
    gap:12px
  }
  .automation-copy .muted{
    max-width:250px;
    line-height:1.5
  }
  .section-heading{
    align-items:flex-start;
    gap:6px;
    flex-direction:column
  }
  .map-dialog{
    padding:12px
  }
  .map-search{
    grid-template-columns:1fr 1fr
  }
  .map-search .schedule-input{
    grid-column:1/-1
  }
  .map-canvas{
    min-height:280px;
    height:55vh
  }
  .map-footer{
    align-items:flex-start;
    flex-direction:column
  }
  .calendar-form{
    grid-template-columns:1fr 1fr
  }
  .calendar-form .field:nth-child(3){
    grid-column:1/-1
  }
  .days-off-row{
    grid-template-columns:1fr auto
  }
  .days-off-row .muted{
    grid-column:1/-1
  }
}
