/* ========= Base / Reset ========= */
*, *::before, *::after { box-sizing: border-box; }
[hidden]{
  display: none !important;
}
:root{
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand-rgb: 37, 99, 235;
  --brand: rgb(var(--brand-rgb));      /* primary accent color */
  --brand-dark: #1d4ed8;
  --brand-darker: #1e3a8a;
  --ring: rgba(var(--brand-rgb), .25);
  --brand-soft: rgba(var(--brand-rgb), .12);
  --brand-soft-hover: rgba(var(--brand-rgb), .08);
  --brand-shadow: rgba(var(--brand-rgb), .25);
  --brand-hero-secondary: rgba(14, 165, 233, .85);
  --gray-100: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

body[data-tenant="gleeson"],
html[data-tenant="gleeson"]{
  --brand-rgb: 37, 99, 235;
  --brand-dark: #1d4ed8;
  --brand-darker: #1e3a8a;
  --brand-hero-secondary: rgba(14, 165, 233, .85);
}

body[data-tenant="itech"],
html[data-tenant="itech"]{
  --brand-rgb: 220, 38, 38;
  --brand-dark: #b91c1c;
  --brand-darker: #991b1b;
  --brand-hero-secondary: rgba(248, 113, 113, .85);
}

html, body {
  height: 100%;
}

body{
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open{
  overflow: hidden;
}

body.modal-open--fallback::after{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  pointer-events: none;
  z-index: 1000;
}

/* ========= Auth / Login ========= */
.auth-body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, rgba(var(--brand-rgb), .18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(var(--brand-rgb), .12), transparent 52%),
              var(--bg);
}

.auth-body--minimal{
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), var(--bg));
}

.auth-minimal{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 10vw, 96px) 18px;
}

.auth-minimal__card{
  width: min(420px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, .14);
  padding: clamp(32px, 6vw, 44px);
  display: grid;
  gap: 24px;
}

.auth-minimal__brand{
  display: grid;
  gap: 16px;
  text-align: center;
}

.auth-minimal__logos{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.auth-minimal__logo{
  max-height: 48px;
  width: auto;
}

.auth-minimal__divider{
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  display: inline-block;
}

.auth-minimal__title{
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -.01em;
}

.auth-minimal__subtitle{
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
}

.auth-minimal__form{
  display: grid;
  gap: 18px;
}

.auth-minimal__field{
  display: grid;
  gap: 8px;
}

.auth-minimal__label{
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
}

.auth-input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  background: #fff;
  color: var(--text);
}

.auth-input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  transform: translateY(-1px);
}

.auth-minimal__submit{
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 15px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 24px var(--brand-shadow);
}

.auth-minimal__submit:hover{
  background: var(--brand-dark);
  box-shadow: 0 18px 28px var(--brand-shadow);
}

.auth-minimal__meta{
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

.auth-wrapper{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 8vw, 72px) 16px 72px;
}

.auth-shell{
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(241, 245, 249, .9));
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .16);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card.card{
  box-shadow: none;
  border-radius: 0;
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 250, 252, .92) 100%);
}

.auth-card__header h1{
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -.01em;
}

.auth-subtitle{
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 15px;
}

.auth-error{
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(220, 38, 38, .12);
  border: 1px solid rgba(248, 113, 113, .5);
  color: #b91c1c;
  font-weight: 600;
  text-align: center;
}

.auth-form{
  display: grid;
  gap: 18px;
}

.input-field{
  display: grid;
  gap: 8px;
}

.input-field label{
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  letter-spacing: .01em;
}

.input-control{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0px;
  border: none;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.input-control:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  transform: translateY(-1px);
}

.input-control input{
  flex: 1;
  border: 0;
  padding: 14px 0;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.input-control input:focus{
  outline: none;
  box-shadow: none;
}

.input-icon{
  font-size: 18px;
  color: var(--gray-500);
}

.auth-submit{
  margin-top: 6px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 15px 25px var(--brand-shadow);
}

.auth-submit:hover{
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
}

.auth-meta{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

.auth-illustration{
  position: relative;
  padding: clamp(32px, 6vw, 48px);
  background: linear-gradient(160deg, rgba(var(--brand-rgb), .92), var(--brand-hero-secondary));
  color: #f8fafc;
  display: flex;
  align-items: center;
}

.auth-illustration::after{
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

.auth-illustration__inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.auth-illustration__inner--portal{
  justify-items: center;
  text-align: center;
  gap: clamp(18px, 4vw, 26px);
}

.auth-logos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 32px);
  flex-wrap: wrap;
}

.auth-logos img{
  max-height: 72px;
  width: auto;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .18));
}

.auth-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-illustration h2{
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.01em;
}

.auth-illustration p{
  margin: 0;
  color: rgba(241, 245, 249, .88);
  font-size: 15px;
}

.auth-benefits{
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  font-size: 15px;
  color: rgba(var(--brand-rgb), .85);
}

.auth-benefits li{
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px){
  .auth-shell{
    grid-template-columns: 1fr;
  }

  .auth-illustration{
    display: none;
  }
}

@media (max-width: 540px){
  .auth-minimal{
    padding: 32px 18px 48px;
  }

  .auth-minimal__card{
    padding: 28px 22px 32px;
    gap: 20px;
  }

  .auth-minimal__logos{
    gap: 12px;
  }

  .auth-card.card{
    padding: 28px 22px 32px;
  }

  .auth-wrapper{
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

/* ========= Global Header ========= */
.site-header{
  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.site-header__inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-header__brand{
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  justify-self: center;
}

.site-header__brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-header__logo{
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.site-header__home{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
  justify-self: start;
}

.site-header__home:hover {
  background: var(--brand-soft-hover);
  color: var(--brand-dark);
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header__home:focus-visible {
  outline: none;
  background: rgba(var(--brand-rgb), .18);
  color: var(--brand-dark);
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header__home-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.site-header__home-icon svg{
  width: 18px;
  height: 18px;
}

.site-header__settings{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
  justify-self: end;
}

.site-header__settings:hover{
  color: var(--brand);
  border-color: var(--brand-dark);
  background: rgba(var(--brand-rgb), .18);
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header__settings:focus-visible{
  outline: none;
  color: var(--brand);
  border-color: var(--brand-dark);
  background: rgba(var(--brand-rgb), .18);
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header__settings svg{
  width: 20px;
  height: 20px;
}

.site-header__actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
  flex-wrap: nowrap;
}

.site-header__username{
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}

.site-header__logout{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.site-header__logout:hover{
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}

.site-header__logout:focus-visible{
  outline: none;
  background: rgba(var(--brand-rgb), .18);
  color: var(--brand-dark);
  box-shadow: 0 0 0 4px var(--ring);
}

/* ========= Global Footer ========= */
.site-footer{
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, .06);
  margin-top: 48px;
}

.site-footer__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__version{
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: #cccccc;
  text-align: center;
}

.site-footer__version-value{
  color: #cccccc;
  font-variant-numeric: tabular-nums;
}

/* Utility */
.hidden{ display: none !important; }
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========= Layout Container ========= */
.container{
  width: 100%;
  max-width: min(94vw, 1400px);           /* dashboard-wide on large screens */
  margin: 32px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (min-width: 1024px){
  .container:not(.dashboard-page){
    max-width: 1000px;
    min-width: 1000px;
  }
}

.container--narrow{
  width: 100%;
  max-width: 720px;
}

@media (min-width: 1024px){
  .container--narrow{
    max-width: 1000px;
    min-width: 1000px;
  }
}

.container--calendar{
  align-items: stretch;
  margin-top: 16px;
}

/* Headings */
h1{
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
}

/* ========= Card ========= */
.card{
  width: 100%;
  max-width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

@media (min-width: 1024px){
  body:not(.dashboard-body) .card{
    max-width: 1000px;
    min-width: 1000px;
  }
}

/* When on wide dashboards, allow “wide cards” by adding .wide */
.card.wide{
  max-width: none;
}

/* ========= Forms / Controls ========= */
.card form{ width: 100%; }

.card input:not(.sr-only):not([type="checkbox"]):not([type="radio"]),
.card select,
.card button{
  width: 100%;
}

.card input:not(.sr-only):not([type="checkbox"]):not([type="radio"]),
.card select{
  appearance: none;
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.card input:not([type="hidden"]) + input:not([type="hidden"]),
.card input:not([type="hidden"]) + button,
.card input:not([type="hidden"]) + .btn {
  margin-left: 8px;
}

.card input:not(.sr-only):not([type="checkbox"]):not([type="radio"]):focus,
.card select:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.card select.select--locked{
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
}

.card select.select--locked:focus{
  border-color: var(--gray-300);
  box-shadow: none;
}

/* ========= On-Call Calendar ========= */
.card--calendar{
  width: 100%;
  max-width: 1000px;
  align-self: center;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,.98), #fff 60%, rgba(255,255,255,.92));
}

.card--calendar .btn,
.card--calendar button{
  width: auto;
}

.calendar-header{
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(58,108,217,.08), rgba(58,108,217,.02) 65%);
  border: 1px solid rgba(58,108,217,.12);
  box-shadow: 0 12px 24px -18px rgba(15,23,42,.45);
}

.calendar-header__top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-header__titles{
  display: grid;
  gap: 6px;
  text-align: left;
}

.calendar-header__titles h1{
  margin: 0;
}

.calendar-header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-header__subtitle{
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
}

.calendar-header__hints{
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(148,163,184,.3);
}

.calendar-header__hint{
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.calendar-edit-controls{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}

.calendar-edit-controls__toggle{
  font-weight: 600;
}

.calendar-edit-controls__toggle:hover,
.calendar-edit-controls__toggle:focus-visible{
  text-decoration: underline;
}

.calendar-edit-controls__schedule{
  padding-inline: 18px;
}

.calendar-header__actions .button-secondary{
  white-space: nowrap;
}

@media (max-width: 720px){
  body.calendar-view-only .calendar-header__hints{
    display: none;
  }

  .calendar-header__top{
    align-items: flex-start;
  }

  .calendar-header__actions{
    width: 100%;
    justify-content: flex-start;
  }

  .calendar-header__actions .button-secondary{
    width: 100%;
  }

  .calendar-edit-controls{
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-edit-controls__schedule{
    width: 100%;
    text-align: center;
  }
}

.calendar-toolbar{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .08), #fff);
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 18px 35px rgba(15, 23, 42, .08);
}

.calendar-toolbar__actions{
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 24px;
}

.calendar-toolbar__summary-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-toolbar__subtext{
  margin: 0;
  font-size: 14px;
  color: var(--gray-500);
}

.calendar-toolbar__cards{
  display: grid;
  width: 100%;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.calendar-toolbar-card{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(var(--brand-rgb), .12), #fff);
  box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
  border: 1px solid rgba(15, 23, 42, .06);
  position: relative;
  overflow: hidden;
}

.calendar-toolbar-card--clear{
  background: linear-gradient(140deg, rgba(59, 130, 246, .08), #fff);
}

.calendar-toolbar-card__header{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-toolbar-card__eyebrow{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-darker);
}

.calendar-toolbar-card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.calendar-toolbar-card__description{
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.calendar-toolbar-card__actions{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calendar-toolbar__btn--highlight{
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .18), #fff);
  box-shadow: 0 16px 30px rgba(var(--brand-rgb), .18);
}

.calendar-toolbar__btn--highlight:hover,
.calendar-toolbar__btn--highlight:focus-visible{
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .28), #fff);
}

.calendar-toolbar__summary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 600;
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.calendar-highlight{
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}

.calendar-selection-row > .calendar-highlight{
  flex: 1 1 100%;
}

.calendar-highlight__label{
  margin-bottom: 0;
}

.calendar-highlight__select{
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.calendar-highlight__select:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .2);
}

.calendar-highlight__select:disabled{
  color: var(--gray-400);
  background: var(--gray-100);
  box-shadow: none;
}

.calendar-clear-range{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}

.calendar-clear-range__row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-clear-range__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
}

.calendar-clear-range__label{
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.calendar-clear-range__input{
  min-width: 150px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.calendar-clear-range__input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .2);
}

.calendar-clear-range__input:disabled{
  background: var(--gray-100);
  color: var(--gray-400);
  box-shadow: none;
}

.calendar-clear-range__submit{
  white-space: nowrap;
}

@media (max-width: 720px){
  .calendar-clear-range{
    width: 100%;
  }

  .calendar-clear-range__row{
    flex-direction: column;
  }

  .calendar-clear-range__submit{
    width: 100%;
  }
}

.calendar-toolbar__tenant{
  font-weight: 700;
  color: var(--brand-darker);
}

.calendar-company-picker{
  display: grid;
  gap: 8px;
  width: 100%;
}

.calendar-company-picker__label{
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 0;
}

.calendar-company-picker .toggle-group{
  margin: 0;
}

.calendar-company-picker .toggle-option label{
  padding: 10px 12px;
}

.calendar-company-picker__indicator{
  margin: 0;
  font-weight: 600;
  color: var(--gray-600);
}

.calendar-company-picker:not(.calendar-company-picker--single) .calendar-company-picker__indicator{
  display: none;
}

.calendar-company-picker--single .toggle-group{
  display: none;
}

.calendar-calendar-picker{
  display: grid;
  gap: 8px;
  width: 100%;
}

.calendar-calendar-picker__label{
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 0;
}

.calendar-calendar-picker .toggle-group{
  margin: 0;
}

.calendar-calendar-picker .toggle-option label{
  padding: 10px 12px;
}

.calendar-calendar-picker--single .toggle-group{
  display: none;
}



.calendar-toolbar__btn{
  min-width: 0;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-darker);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 25px rgba(var(--brand-rgb), .15);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}

.calendar-toolbar__btn:hover,
.calendar-toolbar__btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(var(--brand-rgb), .22);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), #fff);
  border-color: rgba(var(--brand-rgb), .25);
}

.calendar-toolbar__btn-text{
  font-weight: 600;
}

.calendar-toolbar__btn:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, .05);
}

.calendar-import-form{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .05);
}

.calendar-import-form__label{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(var(--brand-rgb), .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.calendar-import-form__label:hover,
.calendar-import-form__label:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(var(--brand-rgb), .35);
}

.calendar-import-form__filename{
  font-size: 13px;
  color: var(--gray-600);
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.calendar-import-form__filename--active{
  color: var(--brand-darker);
  font-weight: 600;
}

.calendar-selection-row{
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.calendar-selection-row > .calendar-company-picker,
.calendar-selection-row > .calendar-calendar-picker{
  width: auto;
  flex: 1 1 0px;
}

.calendar-calendar-picker .toggle-option label{
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-600);
  box-shadow: none;
}

.calendar-calendar-picker .toggle-option label:hover{
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.calendar-calendar-picker .toggle-option input:checked + label{
  background: var(--gray-600);
  border-color: var(--gray-700);
  color: #fff;
  box-shadow: 0 3px 8px rgba(55, 65, 81, .35);
}

@media (max-width: 960px){
  .calendar-selection-row{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .calendar-selection-row > .calendar-highlight{
    flex: 1 1 0%;
    width: 100%;
  }

  .calendar-selection-row > .calendar-company-picker,
  .calendar-selection-row > .calendar-calendar-picker{
    width: 100%;
  }

  .calendar-highlight{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-highlight__select{
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px){
  .card--calendar{
    gap: 18px;
    padding: 20px;
  }

  .calendar-toolbar{
    padding: 16px;
  }

  .calendar-company-picker,
  .calendar-calendar-picker{
    gap: 6px;
  }

  .calendar-selection-row .toggle-group{
    gap: 6px;
    margin: 4px 0 2px;
  }
}

.calendar-alert{
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-darker);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .18);
}

.calendar-alert[data-status-type="error"]{
  background: #fee2e2;
  color: #991b1b;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .35);
}

.calendar-alert[data-status-type="success"]{
  background: #dcfce7;
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, .35);
}

.calendar-companies{
  display: grid;
  gap: 28px;
  width: 100%;
}

.calendar-company{
  --calendar-accent: var(--brand);
  --calendar-accent-strong: var(--brand-dark);
  --calendar-accent-rgb: var(--brand-rgb);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.calendar-company--hidden{
  display: none;
}

.calendar-company__header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.calendar-company__title{
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.01em;
  color: var(--brand-dark);
}

.calendar-company__subhead{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.calendar-months{
  display: grid;
  gap: 24px;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.calendar-month{
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 14px;
  width: 100%;
}

.calendar-month__header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.calendar-month__title{
  margin: 0;
  font-size: 18px;
}

.calendar-weekdays{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-weeks{
  display: grid;
  gap: 8px;
}

.calendar-week{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day{
  position: relative;
  background: var(--gray-100);
  border-radius: 12px;
  min-height: 96px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.calendar-day--outside{
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  box-shadow: none;
}

.calendar-day--today{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.calendar-day__number{
  align-self: flex-start;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
}

.calendar-day__content{
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calendar-day__holiday-dot{
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--calendar-accent, var(--brand));
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 1;
}

.calendar-day__add{
  border: 0;
  padding: 0;
  background: none;
  color: var(--gray-400);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease;
}

.calendar-day__add:hover{
  color: var(--gray-500);
}

.calendar-day__add:focus-visible{
  color: var(--gray-600);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.calendar-day__empty{
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.calendar-assignment__link{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--brand);
  text-align: center;
}

.calendar-assignment__link--static{
  cursor: default;
  pointer-events: none;
}

.calendar-assignment__link--static:hover,
.calendar-assignment__link--static:focus-visible{
  color: inherit;
}

.calendar-assignment__link:hover,
.calendar-assignment__link:focus-visible{
  color: var(--brand-dark);
  outline: none;
}

.calendar-assignment__link--gleeson{
  color: #2563eb;
}

.calendar-assignment__link--gleeson:hover,
.calendar-assignment__link--gleeson:focus-visible{
  color: #1d4ed8;
}

.calendar-assignment__link--itech{
  color: #dc2626;
}

.calendar-assignment__link--itech:hover,
.calendar-assignment__link--itech:focus-visible{
  color: #b91c1c;
}

.calendar-assignment__link--default{
  color: var(--brand);
}

.calendar-assignment__initials{
  display: none;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-assignment__name{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.calendar-assignment__name-line{
  display: block;
}

.calendar-day--assigned{
  background: #fff;
  border-color: rgba(var(--brand-rgb), .25);
}

.calendar-day--past:not(.calendar-day--today){
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.calendar-day--past:not(.calendar-day--today) .calendar-day__number{
  color: var(--gray-300);
}

.calendar-day--past:not(.calendar-day--today) .calendar-assignment__link{
  color: var(--gray-300);
}

.calendar-day--past:not(.calendar-day--today) .calendar-assignment__link:hover,
.calendar-day--past:not(.calendar-day--today) .calendar-assignment__link:focus-visible{
  color: var(--gray-600);
}

.calendar-day--past:not(.calendar-day--today) .calendar-day__add{
  color: var(--gray-300);
}

.calendar-day--past:not(.calendar-day--today) .calendar-day__add:hover{
  color: var(--gray-400);
}

.calendar-day--past:not(.calendar-day--today) .calendar-day__add:focus-visible{
  color: var(--gray-500);
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"]{
  background: var(--calendar-accent, var(--brand));
  border-color: var(--calendar-accent-strong, var(--brand-dark));
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), .25);
  color: #fff;
}

[data-calendar-root][data-highlight-active="true"] .calendar-day--past:not(.calendar-day--today)[data-highlight-match="true"]{
  background: rgba(var(--calendar-accent-rgb, var(--brand-rgb)), .5);
  border-color: rgba(var(--calendar-accent-rgb, var(--brand-rgb)), .6);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), .18);
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-day__number{
  color: inherit;
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-day__holiday-dot{
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-assignment__link,
[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-assignment__link--static{
  color: #fff;
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-assignment__link:hover,
[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-assignment__link:focus-visible{
  color: #fff;
}

[data-calendar-root][data-highlight-active="true"] .calendar-day[data-highlight-match="true"] .calendar-day__empty{
  color: rgba(255, 255, 255, .85);
}

.calendar-day--past:not(.calendar-day--today) .calendar-day__holiday-dot{
  opacity: .45;
}

.calendar-popover{
  position: absolute;
  z-index: 1200;
  display: none;
  min-width: 220px;
  max-width: min(280px, 85vw);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--brand-rgb), .12);
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
  color: var(--text);
}

.calendar-popover[data-visible="true"]{
  display: block;
}

.calendar-popover:focus{
  outline: none;
}

.calendar-popover__date{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.calendar-popover__name{
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.calendar-popover__email{
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brand-dark);
  text-decoration: none;
  word-break: break-word;
}

.calendar-popover__email:hover,
.calendar-popover__email:focus-visible{
  text-decoration: underline;
}

.calendar-popover__phone{
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--brand-dark);
  text-decoration: none;
  word-break: break-word;
}

.calendar-popover__phone:hover,
.calendar-popover__phone:focus-visible{
  text-decoration: underline;
}

.calendar-popover__holiday{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.calendar-popover__holiday-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--calendar-popover-accent, var(--brand));
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .35);
}

.calendar-popover__holiday-label{
  font-weight: 600;
  color: var(--gray-700);
}

.calendar-modal__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.calendar-modal__actions button{
  width: auto;
  min-width: 120px;
}

.calendar-modal__actions .button-secondary{
  min-width: 0;
}

.calendar-modal{
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), .12);
  background: radial-gradient(circle at top, rgba(var(--brand-rgb), .08), transparent 55%), #fff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .18);
}

.calendar-modal__grid{
  display: grid;
  gap: 20px;
}

.calendar-modal__section{
  display: grid;
  gap: 6px;
}

.calendar-modal__label{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
}

.calendar-modal__value{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.calendar-modal__section--full{
  grid-column: 1 / -1;
}

.tech-search{
  display: grid;
  gap: 12px;
}

.tech-search__summary{
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 13px;
}

.tech-search__summary--selected{
  background: rgba(var(--brand-rgb), .12);
  color: var(--brand-darker);
  font-weight: 600;
}

.tech-search__results{
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.tech-search__results::-webkit-scrollbar{
  width: 6px;
}

.tech-search__results::-webkit-scrollbar-thumb{
  background: rgba(var(--brand-rgb), .25);
  border-radius: 999px;
}

.tech-search__empty{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.tech-result{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}

.tech-result__name{
  font-weight: 600;
}

.tech-result__email{
  font-size: 12px;
  color: var(--gray-500);
}

.tech-result__phone{
  font-size: 12px;
  color: var(--gray-500);
}

.tech-result:hover,
.tech-result:focus-visible{
  background: var(--brand-soft);
  border-color: rgba(var(--brand-rgb), .4);
  transform: translateY(-1px);
  outline: none;
}

.tech-result.is-selected{
  background: rgba(var(--brand-rgb), .12);
  border-color: rgba(var(--brand-rgb), .5);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3);
}

@media (min-width: 560px){
  .calendar-modal__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-modal__section--full{
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px){
  .calendar-week,
  .calendar-weekdays{
    gap: 6px;
  }

  .calendar-day{
    min-height: 82px;
    padding: 6px;
  }

  .calendar-day__content{
    gap: 8px;
  }

}

@media (max-width: 640px){
  .container--calendar{
    margin: 16px 0;
    padding: 0;
    max-width: none;
    width: 100%;
  }

  .card--calendar{
    border-radius: 0;
    box-shadow: none;
  }

  .calendar-assignment__initials{
    display: inline-flex;
  }

  .calendar-assignment__name{
    display: none;
  }
}

@media (min-width: 720px){
  .calendar-header{
    text-align: left;
  }

  .calendar-month__title{
    font-size: 20px;
  }

  .calendar-day{
    min-height: 110px;
  }
}

@media (min-width: 960px){
  .calendar-companies{
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
  }
}

.card button:not(.calendar-day__add):not(.auto-schedule__collapse-toggle):not(.auto-schedule__remove-btn):not(.auto-schedule__holiday-remove):not(.auto-schedule__list-remove):not(.auto-schedule__reset):not(.user-table__actions .button-link),
.btn{
  display: inline-block;
  width: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, transform .05s ease;
}

.card button:not(.calendar-day__add):not(.auto-schedule__collapse-toggle):not(.auto-schedule__remove-btn):not(.auto-schedule__holiday-remove):not(.auto-schedule__list-remove):not(.auto-schedule__reset):not(.user-table__actions .button-link):hover,
.btn:hover{ background: var(--brand-dark); }

.card button:not(.calendar-day__add):not(.auto-schedule__collapse-toggle):not(.auto-schedule__remove-btn):not(.auto-schedule__holiday-remove):not(.auto-schedule__list-remove):not(.auto-schedule__reset):not(.user-table__actions .button-link):active,
.btn:active{ transform: translateY(1px); }

.btn--ghost{
  background: transparent;
  color: var(--gray-600);
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: none;
}

.btn--ghost:hover{
  background: rgba(var(--brand-rgb), .08);
  color: var(--brand-dark);
}

.btn--ghost:focus-visible{
  outline: 2px solid rgba(var(--brand-rgb), .35);
  outline-offset: 2px;
}

/* Input hint “pill” (optional) */
.pill{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

/* Back link (not a button) */
.back-link{
  display: inline-block;
  margin-top: 6px;
  color: #1f2937;
  text-decoration: underline;
  font-weight: 500;
}
.back-link:hover{ text-decoration: none; }

/* ========= Dashboard Navigation ========= */
nav{
  display: grid;
  gap: 12px;
}

/* Center + constrain buttons on narrow cards */
nav .btn{
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

/* ========= Dashboard ========= */
.dashboard-page{
  align-items: stretch;
  gap: 28px;
  max-width: none;
  width: 100%;
  margin: clamp(24px, 5vw, 40px) auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.dashboard-header{
  width: 100%;
  display: grid;
  gap: 16px;
  margin-bottom: clamp(24px, 6vw, 56px);
}

.dashboard-header__text h1{
  text-align: left;
}

.dashboard-lede{
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.5;
}

.dashboard-header__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--gray-600);
  font-weight: 600;
  text-align: right;
  margin-left: auto;
  width: 100%;
  justify-self: end;
}

.dashboard-company{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), .15);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: .02em;
}

.dashboard-grid{
  --dashboard-grid-gap: 18px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  grid-auto-flow: dense;
  gap: var(--dashboard-grid-gap);
  column-gap: var(--dashboard-grid-gap);
  row-gap: var(--dashboard-grid-gap);
}

.dashboard-grid .dashboard-widget{
  margin: 0;
}

.dashboard-manage{
  display: flex;
  justify-content: flex-end;
  margin: clamp(12px, 3vw, 20px) 0;
  position: relative;
  z-index: 2;
}

.dashboard-header__meta .dashboard-manage{
  margin: 0;
  justify-content: flex-start;
}

.dashboard-manage__toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(15, 23, 42, .04);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}

.dashboard-manage__toggle:hover{
  background: rgba(var(--brand-rgb), .12);
  border-color: rgba(var(--brand-rgb), .3);
  color: var(--brand-dark);
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), .12);
}

.dashboard-manage__toggle:focus-visible{
  outline: 2px solid rgba(var(--brand-rgb), .35);
  outline-offset: 2px;
  border-color: rgba(var(--brand-rgb), .4);
}

.dashboard-manage__toggle:active{
  transform: translateY(1px);
}

.dashboard-manage__toggle-icon{
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: inherit;
}

.dashboard-manage__toggle-icon svg{
  width: 100%;
  height: 100%;
}

.dashboard-manage__toggle-label{
  display: inline-flex;
  align-items: center;
}

.dashboard-manage__menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 90vw);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 28px rgba(15, 23, 42, .18);
  border: 1px solid rgba(15, 23, 42, .08);
}

.dashboard-manage__menu[hidden]{
  display: none;
}

.dashboard-manage__empty{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.dashboard-manage__list{
  display: grid;
  gap: 10px;
}

.dashboard-manage__item{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: calc(var(--radius) / 1.4);
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-manage__item:hover,
.dashboard-manage__item:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(var(--brand-rgb), .3);
}

.dashboard-manage__item:focus-visible{
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.dashboard-layout-dialog{
  border: 0;
  padding: 0;
  border-radius: 22px;
  width: min(960px, 95vw);
  max-width: 960px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 36px 68px rgba(15, 23, 42, .28);
  z-index: 1001;
}

.dashboard-layout-dialog::backdrop{
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
}

.dashboard-layout-dialog[open]:not(dialog){
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.dashboard-layout-dialog__form{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.dashboard-layout-dialog__header{
  padding: clamp(20px, 4vw, 32px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  display: grid;
  gap: 12px;
}

.dashboard-layout-dialog__title{
  margin: 0;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  color: var(--gray-900);
}

.dashboard-layout-dialog__subtitle{
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.dashboard-layout-dialog__body{
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.dashboard-layout-dialog__columns{
  align-content: start;
}

.dashboard-layout-dialog__hidden{
  display: grid;
  gap: 12px;
  align-content: start;
}

.dashboard-layout-dialog__hidden-title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.dashboard-layout-dialog__hidden-description{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.dashboard-layout-dialog__hidden-dropzone{
  display: grid;
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--gray-300);
  background: #f8fafc;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dashboard-layout-dialog__hidden-dropzone:empty::after{
  content: "Drag widgets here to hide them";
  color: var(--gray-400);
  font-size: 13px;
  font-style: italic;
}

.dashboard-layout-dialog__hidden-dropzone--active{
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.dashboard-layout-dialog__footer{
  padding: clamp(18px, 3.5vw, 28px);
  border-top: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (min-width: 960px){
  .dashboard-layout-dialog__body{
    grid-template-columns: minmax(0, 1fr);
  }
}

.dashboard-grid--masonry{
  grid-auto-rows: 8px;
}

@media (min-width: 720px){
  .dashboard-header{
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
  }

  .dashboard-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  .dashboard-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1320px){
  .dashboard-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dashboard-widget[data-dashboard-column="1"]{
    grid-column: 1;
  }

  .dashboard-widget[data-dashboard-column="2"]{
    grid-column: 2;
  }

  .dashboard-widget[data-dashboard-column="3"]{
    grid-column: 3;
  }

  .dashboard-widget[data-dashboard-column="4"]{
    grid-column: 4;
  }

  .dashboard-widget[data-dashboard-column="5"]{
    grid-column: 5;
  }
}


.dashboard-widget{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  --widget-brand-rgb: var(--brand-rgb);
  --widget-brand: rgb(var(--widget-brand-rgb));
  --widget-brand-dark: var(--brand-dark);
  --widget-brand-darker: var(--brand-darker);
  --widget-brand-soft: rgba(var(--widget-brand-rgb), .08);
  --widget-brand-soft-strong: rgba(var(--widget-brand-rgb), .12);
  --widget-brand-shadow: rgba(var(--widget-brand-rgb), .25);
}

.dashboard-widget--hidden{
  display: none !important;
}

.dashboard-widget__body{
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
}

.dashboard-widget[data-company-theme="gleeson"]{
  --widget-brand-rgb: 37, 99, 235;
  --widget-brand-dark: #1d4ed8;
  --widget-brand-darker: #1e3a8a;
}

.dashboard-widget[data-company-theme="itech"]{
  --widget-brand-rgb: 220, 38, 38;
  --widget-brand-dark: #b91c1c;
  --widget-brand-darker: #991b1b;
}

.dashboard-widget:focus-within,
.dashboard-widget:hover{
  box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
}

.dashboard-widget--stale{
  opacity: .85;
}

.dashboard-widget__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-widget__remove{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--muted);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dashboard-widget__remove-icon{
  line-height: 1;
  font-size: 18px;
}

.dashboard-widget__remove:hover,
.dashboard-widget__remove:focus-visible{
  background: rgba(var(--brand-rgb), .12);
  color: var(--brand-dark);
}

.dashboard-widget__remove:focus-visible{
  outline: 2px solid rgba(var(--brand-rgb), .35);
  outline-offset: 2px;
}

.dashboard-widget--hiding,
.dashboard-widget--revealing{
  transition: opacity .2s ease, transform .2s ease;
}

.dashboard-widget--hiding-active{
  opacity: 0;
  transform: translateY(8px);
}

.dashboard-widget--revealing{
  opacity: 0;
  transform: translateY(-8px);
}

.dashboard-widget--revealing-active{
  opacity: 1;
  transform: translateY(0);
}

.dashboard-widget__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.file-library-page{
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding-block: clamp(24px, 4vw, 48px);
}

.file-library-page__header{
  display: grid;
  gap: 12px;
}

.file-library-page__title{
  margin: 0;
}

.file-library-page__lede{
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.file-library-toolbar{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.file-library-toolbar__selector{
  display: grid;
  gap: 8px;
}

.files-company-toggle{
  margin: 0;
}

.file-library-toolbar__actions{
  display: flex;
  gap: 12px;
  align-items: center;
}

.file-library-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.file-library-item{
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.file-library-item__header{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-library-item__title{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 20px);
  letter-spacing: -.01em;
}

.file-library-item__actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-library-item__open{
  min-width: 120px;
}

.file-library-item__remove-form{
  margin: 0;
}

.file-library-item__remove{
  border: 0;
  background: none;
  padding: 0;
}

.file-library-item__meta{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  word-break: break-word;
}

.file-library-empty{
  margin: 0;
  color: var(--muted);
}

.file-library-modal{
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(480px, 92vw);
  box-shadow: 0 32px 60px rgba(15, 23, 42, .18);
}

.file-library-modal::backdrop{
  background: rgba(15, 23, 42, .45);
}

.file-library-modal[open]{
  display: block;
}

.file-library-modal:not([open]){
  display: none;
}

.file-library-modal[open]:not(dialog){
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}

.file-library-modal__content{
  padding: clamp(24px, 4vw, 32px);
  display: grid;
  gap: 18px;
}

.file-library-modal__header{
  display: grid;
  gap: 8px;
}

.file-library-modal__title{
  margin: 0;
}

.file-library-modal__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.file-library-modal__footer{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.file-library-modal__close{
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.file-library-modal__close:hover,
.file-library-modal__close:focus{
  color: var(--brand-dark);
}

.file-view-page{
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.file-view-page__header{
  display: grid;
  gap: 10px;
}

.file-view-page__company{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
}

.file-view-page__title{
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.file-view-page__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.file-view-page__external{
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.file-view-page__external:hover,
.file-view-page__external:focus{
  text-decoration: underline;
}

.file-viewer{
  display: grid;
  gap: 16px;
}

.file-viewer__frame{
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  min-height: clamp(420px, 65vh, 760px);
}

.file-viewer__embed{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.file-viewer__hint{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.file-viewer__hint a{
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.file-viewer__hint a:hover,
.file-viewer__hint a:focus{
  text-decoration: underline;
}

.dashboard-widget--todo{
  overflow: visible;
}

.dashboard-widget--todo .todo-widget__form{
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-widget--todo .todo-widget__input{
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: #fff;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget--todo .todo-widget__input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.dashboard-widget--todo .todo-widget__add{
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dashboard-widget--todo .todo-widget__add svg{
  width: 18px;
  height: 18px;
}

.dashboard-widget--todo .todo-widget__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dashboard-widget--todo .todo-widget__empty{
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--gray-300);
  background: #fff;
  color: var(--gray-600);
  text-align: center;
  font-size: 14px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.dashboard-widget--todo .todo-widget__empty[hidden]{
  display: none !important;
}

.todo-widget__empty-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--brand);
}

.todo-widget__empty-icon svg{
  width: 22px;
  height: 22px;
}

.todo-widget__empty-title{
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.todo-widget__empty-text{
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.dashboard-widget--todo .todo-widget__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget--todo .todo-widget__item:hover{
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.dashboard-widget--todo .todo-widget__item:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.dashboard-widget--todo .todo-widget__task{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}

.dashboard-widget--todo .todo-widget__checkbox{
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gray-300);
  appearance: none;
  display: inline-grid;
  place-content: center;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget--todo .todo-widget__checkbox:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.dashboard-widget--todo .todo-widget__checkbox:checked{
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}

.dashboard-widget--todo .todo-widget__checkbox:checked::after{
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
}

.dashboard-widget--todo .todo-widget__label{
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}

.dashboard-widget--todo .todo-widget__item--completed .todo-widget__label{
  color: var(--gray-500);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.dashboard-widget--todo .todo-widget__delete{
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget--todo .todo-widget__delete:hover{
  color: var(--brand-dark);
  background: rgba(var(--brand-rgb), .1);
}

.dashboard-widget--todo .todo-widget__delete:focus-visible{
  outline: none;
  color: var(--brand-dark);
  background: rgba(var(--brand-rgb), .12);
  box-shadow: 0 0 0 3px var(--ring);
}

.dashboard-widget--todo .todo-widget__delete span{
  font-size: 18px;
  line-height: 1;
}

.dashboard-widget--notes{
  display: flex;
  flex-direction: column;
}

.dashboard-widget--notes .notes-widget__input{
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font: inherit;
  line-height: 1.5;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget--notes .notes-widget__input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.dashboard-widget--notes .notes-widget__status{
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
}

.dashboard-widget--calculator .calculator-widget{
  display: grid;
  gap: 14px;
}

.calculator-widget{
  display: grid;
  gap: 14px;
}

.calculator-widget__display{
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  color: #0f172a;
  display: grid;
  gap: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .06);
  min-height: calc(clamp(28px, 5vw, 36px) + 1.6em + 6px);
}

.calculator-widget__history{
  margin: 0;
  font-size: 13px;
  color: rgba(15, 23, 42, .65);
  min-height: 1.2em;
  word-break: break-word;
}

.calculator-widget__value{
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  word-break: break-word;
  color: inherit;
}

.calculator-widget__keys{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calculator-widget__key{
  border: none;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: var(--gray-200);
  color: var(--gray-700);
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}

.calculator-widget__key:hover,
.calculator-widget__key:focus-visible{
  outline: none;
  background: var(--gray-300);
  transform: translateY(-1px);
}

.calculator-widget__key:active{
  transform: translateY(0);
}

.calculator-widget__key--action{
  background: var(--gray-300);
  color: var(--gray-700);
}

.calculator-widget__key--action:hover,
.calculator-widget__key--action:focus-visible{
  background: var(--gray-400);
}

.calculator-widget__key--operator{
  background: rgba(var(--brand-rgb), .14);
  color: var(--brand-dark);
}

.calculator-widget__key--operator:hover,
.calculator-widget__key--operator:focus-visible{
  background: rgba(var(--brand-rgb), .22);
  color: var(--brand-darker);
}

.calculator-widget__key--primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(var(--brand-rgb), .22);
}

.calculator-widget__key--primary:hover,
.calculator-widget__key--primary:focus-visible{
  background: var(--brand-dark);
  box-shadow: 0 12px 20px rgba(var(--brand-rgb), .26);
}

.calculator-widget__key--primary:active{
  transform: translateY(1px);
}

.calculator-widget__key--span-2{
  grid-column: span 2;
  text-align: left;
  padding-inline-start: 22px;
}

@media (max-width: 480px){
  .calculator-widget__key{
    padding: 12px;
  }

  .calculator-widget__value{
    font-size: clamp(24px, 8vw, 32px);
  }
}

.dashboard-widget__refresh{
  border: none;
  background: var(--widget-brand-soft-strong, rgba(var(--brand-rgb), .12));
  color: var(--widget-brand-dark, var(--brand-dark));
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.clock-widget{
  display: grid;
  gap: 6px;
}

.clock-widget__time{
  margin: 0;
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.clock-widget__date{
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--gray-600);
}

.clock-widget__timezone{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

.clock-widget__timezone-label{
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 4px;
}

.dashboard-widget--pto{
  grid-column: auto;
}

.dashboard-widget__refresh:hover,
.dashboard-widget__refresh:focus-visible{
  outline: none;
  background: var(--widget-brand, var(--brand));
  color: #fff;
  transform: rotate(-20deg);
}

.dashboard-shortcuts{
  display: grid;
  gap: 12px;
}

.dashboard-shortcuts .btn{
  width: 100%;
}

.dashboard-shortcuts__item{
  display: grid;
  gap: 6px;
}

.dashboard-shortcuts__link{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

.dashboard-shortcuts__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.dashboard-shortcuts__icon svg{
  display: block;
  width: 24px;
  height: 24px;
}

.dashboard-shortcuts__label{
  flex: 1;
}

.dashboard-shortcuts__status{
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
  min-height: 1em;
}

.dashboard-shortcuts__status--success{
  color: var(--gray-600);
}

.dashboard-shortcuts__status--error{
  color: #b91c1c;
}

.dashboard-widget--tech-refresh{
  align-self: start;
}

.dashboard-tech-refresh{
  display: grid;
  gap: 12px;
  align-content: start;
}

.dashboard-tech-refresh__description{
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.dashboard-tech-refresh__button{
  justify-self: start;
}

.dashboard-tech-refresh__status{
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
  min-height: 1em;
}

.dashboard-tech-refresh__status--success{
  color: var(--gray-600);
}

.dashboard-tech-refresh__status--error{
  color: #b91c1c;
}

.dashboard-widget--weather{
  padding: 0;
}

.dashboard-widget--weather .weather-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--gray-200);
  box-shadow: none;
}

.dashboard-widget--weather .weather-card__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-widget--weather .weather-card__heading{
  display: grid;
  gap: 2px;
}

.dashboard-widget--weather .weather-card__updated{
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
}

.dashboard-widget--weather .weather-card__updated span{
  font-weight: 600;
  color: var(--gray-600);
}

.dashboard-widget--weather .weather-card__body--simple{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px){
  .dashboard-widget--weather .weather-card__body--simple{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dashboard-widget--weather .simple-weather__current{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-widget--weather .simple-weather__current{
  gap: 10px;
}

@media (min-width: 600px){
  .dashboard-widget--weather .simple-weather__current{
    flex-direction: row;
    align-items: center;
  }
}

.dashboard-widget--weather .simple-weather__temp{
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-widget--weather .simple-weather__details{
  display: grid;
  gap: 4px;
}

.dashboard-widget--weather .simple-weather__details p{
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.dashboard-widget--weather .simple-weather__condition{
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.dashboard-widget--weather .simple-weather__location{
  font-size: 13px;
}

.dashboard-widget--weather .simple-weather__wind{
  font-size: 12px;
  color: var(--gray-500);
}

.dashboard-widget--weather .weather-card__footer--simple{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

@media (min-width: 600px){
  .dashboard-widget--weather .weather-card__footer--simple{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dashboard-widget--weather .weather-widget__source{
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
  flex: 1 1 180px;
}

.dashboard-widget--weather .weather-widget__form{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dashboard-widget--weather .weather-widget__label{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.dashboard-widget--weather .weather-widget__form-row{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--card);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.dashboard-widget--weather .weather-widget__form-row:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--ring);
}

.dashboard-widget--weather .weather-widget__zip-input{
  appearance: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  width: 96px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
}

.dashboard-widget--weather .weather-widget__zip-input:focus{
  outline: none;
}

.dashboard-widget--weather .weather-widget__submit{
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-widget__subtitle{
  margin: 0;
  color: var(--gray-600);
  font-weight: 600;
}

.dashboard-widget__note{
  margin: -4px 0 0;
  color: var(--gray-500);
  font-size: 13px;
}

.dashboard-widget--oncall .oncall-widget{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-widget--oncall{
  min-height: 400px;
}

.dashboard-widget--oncall .oncall-widget__companies{
  margin: 0;
}

.dashboard-widget--oncall .oncall-widget__company-toggle{
  margin: 0;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.dashboard-widget--oncall .oncall-widget__assignment{
  display: grid;
  gap: 6px;
}

.dashboard-widget--oncall .oncall-widget__entries{
  display: grid;
  gap: 12px;
}

.dashboard-widget--oncall .oncall-widget__entry{
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.dashboard-widget--oncall .oncall-widget__entry:hover,
.dashboard-widget--oncall .oncall-widget__entry:focus-within{
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
  outline: none;
}

.dashboard-widget--oncall .oncall-widget__entry-label{
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.dashboard-widget--oncall .oncall-widget__entry-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.dashboard-widget--oncall .oncall-widget__company{
  margin: 0;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 14px;
}

.dashboard-widget--oncall .oncall-widget__entry--unassigned .oncall-widget__name{
  font-weight: 600;
  color: var(--gray-600);
}

.dashboard-widget--oncall .oncall-widget__message{
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.dashboard-widget--oncall .oncall-widget__name{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.dashboard-widget--oncall .oncall-widget__phone-number{
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.dashboard-widget--oncall .oncall-widget__email{
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.dashboard-widget--oncall .oncall-widget__email:hover,
.dashboard-widget--oncall .oncall-widget__email:focus-visible{
  text-decoration: underline;
  outline: none;
}

.dashboard-widget--oncall .oncall-widget__phone{
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-block;
}

.dashboard-widget--oncall .oncall-widget__phone:hover,
.dashboard-widget--oncall .oncall-widget__phone:focus-visible{
  text-decoration: underline;
  outline: none;
}

.job-status-widget{
  display: grid;
  gap: 16px;
  min-height: 600px;
}

.job-status-widget__companies{
  margin: 0 0 4px;
}

.job-status-widget__company-toggle{
  margin: 0;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.pto-widget{
  display: grid;
  gap: 16px;
  min-height: 390px;
  align-content: start;
}

.pto-widget__companies{
  margin: 0 0 4px;
}

.pto-widget__company-toggle{
  margin: 0;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.job-status-widget__placeholder{
  margin: 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
}

.job-status-widget__updated{
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.job-status-widget__list{
  display: grid;
  gap: 12px;
}

.job-status-widget__error{
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--widget-brand-dark, var(--brand-dark));
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06);
}

.job-status-widget__row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.job-status-widget__row:hover,
.job-status-widget__row:focus-visible{
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
  outline: none;
}

.job-status-widget__row--inactive{
  cursor: default;
}

.job-status-widget__row--inactive:hover,
.job-status-widget__row--inactive:focus-visible{
  background: var(--card);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  transform: none;
}

.job-status-widget__item{
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-status-widget__details{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.job-status-widget__top-line{
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.job-status-widget__number{
  display: block;
}

.job-status-widget__customer{
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.job-status-widget__item--number{
  font-variant-numeric: tabular-nums;
  color: var(--widget-brand-dark, var(--brand-dark));
}

.job-status-widget__item--technician{
  margin-left: auto;
}

.job-status-widget__technician{
  margin-left: auto;
  min-width: 0;
  text-align: right;
}

.recent-oncall-widget{
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
}

.recent-oncall-widget__companies{
  margin: 0;
}

.recent-oncall-widget__company-toggle{
  margin: 0;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.recent-oncall-widget__placeholder{
  margin: 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
}

.recent-oncall-widget__updated{
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.recent-oncall-widget__list{
  display: grid;
  gap: 12px;
}

.recent-oncall-widget__row{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.recent-oncall-widget__row:hover,
.recent-oncall-widget__row:focus-visible{
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
  outline: none;
}

.recent-oncall-widget__row--inactive{
  cursor: default;
}

.recent-oncall-widget__row--inactive:hover,
.recent-oncall-widget__row--inactive:focus-visible{
  background: var(--card);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  transform: none;
}

.recent-oncall-widget__details{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-oncall-widget__top-line{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.recent-oncall-widget__number{
  font-size: 16px;
  font-weight: 700;
  color: var(--widget-brand-dark, var(--brand-dark));
}

.recent-oncall-widget__technician{
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.recent-oncall-widget__status{
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.recent-oncall-widget__timestamp{
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
}

.tech-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tech-list__item{
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  display: grid;
  gap: 8px;
  transition: box-shadow .15s ease, transform .08s ease, background .15s ease;
}

.tech-list__item:hover,
.tech-list__item:focus-within{
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
  outline: none;
}

.tech-list__item--empty{
  text-align: center;
  color: var(--gray-500);
  font-weight: 600;
  background: var(--gray-100);
  box-shadow: none;
  transform: none;
  transition: none;
}

.tech-list__item--empty:hover,
.tech-list__item--empty:focus-within{
  background: var(--gray-100);
  box-shadow: none;
  transform: none;
}

.tech-list__name{
  font-weight: 700;
  font-size: 16px;
}

.tech-list__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.tech-list__idle{
  font-weight: 600;
  color: var(--widget-brand-dark, var(--brand-dark));
}

.tech-list__specialty{
  font-size: 13px;
  color: var(--gray-500);
}

.tech-list__contact{
  font-size: 14px;
  color: var(--widget-brand, var(--brand));
  text-decoration: none;
  font-weight: 600;
}

.tech-list__contact:hover{
  text-decoration: underline;
}

.tech-list__footnote{
  margin: 0;
  font-size: 12px;
  color: var(--gray-500);
}

/* ========= Page Helpers ========= */
.page-actions{
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.page-actions a{
  color: var(--gray-600);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.page-actions a:hover{
  color: var(--brand);
}

.card__subtitle{
  margin: -6px 0 4px;
  color: var(--gray-600);
  font-size: 15px;
  text-align: center;
}

.card__text{
  margin: 0;
  color: var(--gray-600);
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
}

.card--form{
  display: grid;
  gap: 20px;
}

.settings-card__header{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.settings-card__title{
  display: grid;
  gap: 8px;
  flex: 1 1 260px;
  min-width: min(260px, 100%);
}

.settings-card__header .btn{
  align-self: center;
  min-width: auto;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .98), var(--brand-dark));
  box-shadow: 0 14px 32px rgba(var(--brand-rgb), .25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .08);
  letter-spacing: .01em;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.settings-card__header .btn:hover{
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  box-shadow: 0 18px 36px rgba(var(--brand-rgb), .32);
  transform: translateY(-1px);
}

.settings-card__header .btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .22);
}

.stacked-form{
  display: grid;
  gap: 16px;
}

.technician-directory__panel,
.technician-directory__card{
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.technician-directory__panel{
  margin-bottom: 24px;
}

.technician-directory__card{
  margin-bottom: 0;
}

.technician-directory__controls{
  display: grid;
  gap: 18px;
}

.technician-directory__controls--split{
  gap: 22px;
}

@media (min-width: 900px){
  .technician-directory__controls--split{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: end;
  }
}

.technician-directory__search{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.technician-directory__search .input-field{
  margin: 0;
}

.technician-directory__search .btn--subtle{
  align-self: flex-start;
}

@media (min-width: 720px){
  .technician-directory__search{
    flex-direction: row;
    align-items: flex-end;
  }

  .technician-directory__search .input-field{
    flex: 1;
  }
}

.settings-grid{
  display: grid;
  gap: 20px;
}

.settings-grid--users{
  grid-template-columns: minmax(0, 1fr);
  overflow-x: auto;
}

.user-table{
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.user-table thead th{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.user-table th,
.user-table td{
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.user-table tbody tr{
  border-bottom: 1px solid var(--gray-200);
}

.user-table tbody tr:last-child{
  border-bottom: none;
}

.user-table__identity{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.user-table__name{
  font-weight: 600;
  font-size: 16px;
}

.user-table__username{
  font-size: 14px;
  color: var(--gray-500);
}

.user-table__role{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-darker);
  font-weight: 600;
  font-size: 13px;
}

.user-table__contact{
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  color: var(--gray-600);
}

.user-table__contact a{
  color: var(--brand-darker);
  text-decoration: none;
}

.user-table__contact a:hover,
.user-table__contact a:focus-visible{
  text-decoration: underline;
}

.user-table__status{
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-basis: 100%;
  margin-top: 4px;
}

.user-table__empty{
  color: var(--gray-500);
  font-size: 14px;
}

.user-table__actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.user-table__actions .button-link{
  min-width: 0;
  white-space: nowrap;
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.user-table__actions .button-link:hover,
.user-table__actions .button-link:focus-visible{
  color: var(--brand-dark);
  text-decoration: underline;
}

.user-table__header-actions{
  text-align: right;
}

.user-table thead th.user-table__header-actions{
  text-align: right;
}

.settings-grid--roles{
  grid-template-columns: minmax(0, 1fr);
}

.settings-form__grid{
  display: grid;
  gap: 14px;
}

.settings-form__grid--user{
  gap: 18px;
}

.settings-form__row{ 
  display: grid;
  gap: 16px;
}

.settings-form__row--triple{
  grid-template-columns: minmax(0, 1fr);
}

.settings-form__row--double{
  grid-template-columns: minmax(0, 1fr);
}

.settings-form__field--full,
.settings-form__actions--full{
  grid-column: 1 / -1;
}

@media (min-width: 900px){
  .settings-grid--roles{
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-form__row--double{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-form__row--triple{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.settings-form__row--double > .input-field,
.settings-form__row--triple > .input-field{
  height: 100%;
}

.settings-form__row--triple .input-field{
  min-width: 0;
}

.input-field--checkbox label{
  font-weight: 500;
}

.settings-form{
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 14px;
}

.settings-form--role{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.settings-role-collection{
  display: grid;
  gap: 20px;
}

.settings-role__column{
  flex: 1 1 260px;
  display: grid;
  gap: 16px;
}

.settings-role__column--meta{
  flex: 0 0 260px;
}

.settings-form__actions--meta{
  margin-top: auto;
  justify-content: flex-start;
}

.settings-role__column--features,
.settings-role__column--widgets{
  min-width: 260px;
  gap: 16px;
}

.settings-role__options{
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.settings-role__option{
  font-weight: 600;
}

.settings-role__footer{
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.settings-role__delete-form{
  display: none;
}

.settings-form h3{
  margin: 0;
  font-size: 18px;
  color: var(--gray-700);
}

.settings-form textarea{
  min-height: 60px;
  resize: vertical;
}

.settings-form--new{
  border-style: dashed;
  background: #f8fafc;
}

.settings-form__actions{
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.settings-form__actions button,
.settings-form__actions .btn{
  width: auto;
}

.settings-layout{ 
  display: grid;
  gap: 20px;
}

.settings-features{
  display: grid;
  gap: 20px;
}

.settings-features__options{
  display: grid;
  gap: 12px;
}

@media (min-width: 720px){
  .settings-features__options{
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.settings-feature-option{
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.settings-feature-option:hover{
  border-color: var(--brand);
  box-shadow: 0 16px 28px rgba(var(--brand-rgb), .18);
}

.settings-feature-option span{
  display: grid;
  gap: 6px;
}

.settings-feature-option__label{
  font-weight: 600;
  color: var(--gray-700);
}

.settings-feature-option__description{
  font-size: 13px;
  color: var(--gray-500);
}

.settings-layout__board{
  display: grid;
  gap: 16px;
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.settings-layout__column{
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--gray-300);
  background: #f8fafc;
  min-height: 140px;
  transition: border-color .2s ease, box-shadow .2s ease;
  min-width: 160px;
}

.settings-layout__column--active{
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.settings-layout__column-title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.settings-layout__dropzone{
  display: grid;
  gap: 12px;
  min-height: 80px;
  align-content: start;
  align-items: start;
}

.settings-layout__dropzone:empty::after{
  content: "Drag widgets here";
  color: var(--gray-400);
  font-size: 13px;
  font-style: italic;
}

.settings-layout__token{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
  cursor: grab;
  transition: box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.settings-layout__token:active{
  cursor: grabbing;
}

.settings-layout__token--dragging{
  opacity: .6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.settings-layout__token-label{
  font-weight: 600;
  color: var(--gray-700);
  grid-column: 1/2;
}

.settings-layout__token-description{
  font-size: 13px;
  color: var(--gray-500);
  grid-column: 1/2;
}

.settings-layout__token-actions{
  grid-column: 2/3;
  display: flex;
  align-items: flex-start;
}

.settings-layout__token-action{
  border: none;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.settings-layout__token-action:hover,
.settings-layout__token-action:focus-visible{
  color: var(--brand-dark);
  background: rgba(var(--brand-rgb), .12);
}

.settings-layout__token-action:focus-visible{
  outline: 2px solid rgba(var(--brand-rgb), .35);
  outline-offset: 2px;
}

@media (min-width: 720px){
  .settings-layout__board{
    overflow-x: visible;
  }
}

.settings-section-actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.settings-section-actions .btn{
  width: auto;
  min-width: 160px;
}

.modal{
  border: 0;
  padding: 0;
  border-radius: 22px;
  width: min(560px, 92vw);
  max-width: 560px;
  background: transparent;
  z-index: 1001;
}

.modal::backdrop{
  background: rgba(15, 23, 42, .45);
}

.modal[open]{
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.modal__form{
  margin: 0;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
}

.modal .settings-form--new{
  border-style: solid;
  background: #fff;
}

.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal__header h3{
  margin: 0;
}

.modal__close{
  width: auto;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover,
.modal__close:focus-visible{
  color: var(--gray-700);
}

.button-secondary{
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.button-secondary:hover{
  background: var(--gray-100);
}

.checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
}

.checkbox input{
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--gray-400);
  border-radius: 5px;
  background: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, background-image .15s ease;
}

.checkbox input:checked{
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
}

.checkbox input:focus-visible{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.checkbox span{
  display: grid;
  gap: 4px;
}

.hint{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.input-field--grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}

.input-field--grid > .input-field__item{
  display: grid;
  gap: 6px;
}

.input-field__all-day{
  margin-top: 0;
  align-self: center;
  justify-self: start;
}

@media (max-width: 640px){
  .input-field--grid{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.time-input--readonly{
  background: var(--gray-100);
  color: var(--gray-500);
  pointer-events: none;
  cursor: not-allowed;
}

.time-input--readonly::-webkit-calendar-picker-indicator{
  filter: grayscale(1);
  opacity: .6;
  pointer-events: none;
}

.field-help{
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}

.tech-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-block{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-end{
  color: var(--gray-500);
  font-size: 14px;
}

.input-label{
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.company-indicator{
  margin: 6px 0 0;
  font-weight: 600;
  color: var(--gray-600);
}

#responseMessage{
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #047857;
  font-weight: 500;
}

#responseMessage .response-content{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#responseMessage .checkmark{
  color: #16a34a;
  font-size: 22px;
  margin-top: 2px;
}

#goJobBtn{
  width: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

#goJobBtn:hover{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
}

.form-error{
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .12);
  border: 1px solid rgba(248, 113, 113, .4);
  color: #b91c1c;
  font-weight: 600;
}

.form-success{
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(22, 163, 74, .12);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #15803d;
  font-weight: 600;
}

.page-banner{
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.page-banner .form-success{
  margin: 0;
}

.page-banner__link{
  margin: 0;
}

.page-banner__link a{
  font-weight: 600;
  color: var(--brand-dark, #1d4ed8);
  text-decoration: none;
}

.page-banner__link a:hover,
.page-banner__link a:focus{
  text-decoration: underline;
}

/* ========= Toggle (Gleeson / ITech) ========= */
.toggle-group{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 4px;
}
.toggle-option{ position: relative; }
.toggle-option input{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.toggle-option label{
  display: block;
  text-align: center;
  padding: 8px 10px;                 /* smaller buttons */
  border: 1px solid rgba(var(--widget-brand-rgb, var(--brand-rgb)), .3);
  border-radius: 6px;
  cursor: pointer;
  background: var(--widget-brand-soft, rgba(var(--brand-rgb), .08));
  color: var(--widget-brand, var(--brand));
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  user-select: none;
}
.toggle-option label:hover{
  background: var(--widget-brand-soft-strong, rgba(var(--brand-rgb), .12));
  border-color: var(--widget-brand, var(--brand));
  color: var(--widget-brand-dark, var(--brand-dark));
}
.toggle-group--placeholder{
  opacity: .6;
  pointer-events: none;
}
.toggle-group--placeholder .toggle-option label{
  cursor: default;
}
.toggle-option input:checked + label{
  background: var(--widget-brand, var(--brand));
  color: #fff;
  border-color: var(--widget-brand-dark, var(--brand-dark));
  box-shadow: 0 3px 8px var(--widget-brand-shadow, var(--brand-shadow));
}

/* ========= Responsive Rows ========= */
.row{ display: flex; gap: 12px; flex-wrap: wrap; }
.row > *{ flex: 1 1 260px; }

/* ========= Tables / Output blocks ========= */
pre{
  margin: 0;
  padding: 12px;
  background: #0b1021;
  color: #e5e7eb;
  font-size: 13px;
  border-radius: 10px;
  overflow: auto;
  width: 100%;
  box-sizing: border-box;
}

/* ========= PTO Appointments ========= */
.appointments-card{
  width: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.appointments-card h2{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .01em;
}


.holiday-tools{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}


.holiday-tools__summary{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}


.holiday-tools__label{
  font-weight: 500;
}


.holiday-tools__tenant{
  font-weight: 600;
  color: var(--gray-700);
}


.holiday-tools__form{
  display: flex;
  align-items: center;
  gap: 6px;
}


.holiday-tools__button{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
}

.calendar-toolbar__actions .button-secondary:not(.calendar-toolbar__btn),
.holiday-tools__button{
  background: transparent;
  border-color: transparent;
  color: var(--gray-500);
  box-shadow: none;
  transition: color .15s ease, background .15s ease;
}

.calendar-toolbar__actions .button-secondary:not(.calendar-toolbar__btn):hover,
.calendar-toolbar__actions .button-secondary:not(.calendar-toolbar__btn):focus-visible,
.holiday-tools__button:hover,
.holiday-tools__button:focus-visible{
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}

.calendar-toolbar__actions .button-secondary:not(.calendar-toolbar__btn):disabled,
.holiday-tools__button:disabled{
  opacity: .55;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
  color: var(--gray-400);
}

.holiday-tools__file-label{
  cursor: pointer;
}

.holiday-tools__filename{
  font-size: 13px;
  color: var(--gray-500);
}

.holiday-tools__filename--active{
  color: var(--gray-700);
  font-weight: 600;
}

@media (max-width: 640px){
  .calendar-toolbar__actions,
  .holiday-tools{
    display: none;
  }
}

.appointment-table-wrapper{
  width: 100%;
  overflow-x: auto;
}

.appointment-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.appointment-table thead th{
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  padding: 12px 14px;
  background: #f9fafb;
  border-bottom: 1px solid var(--gray-200);
}

.appointment-table tbody td{
  padding: 16px 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  background: #fff;
  transition: background .2s ease;
}

.appointment-table tbody tr:hover td{
  background: #f8fafc;
}

.appointment-table tbody tr:last-child td{
  border-bottom: 0;
}

.appointment-tech{
  width: 220px;
  font-weight: 600;
  color: var(--gray-700);
}

.appointment-dates{
  width: 100%;
}

.appointment-actions{
  width: 160px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.appointment-actions form{
  margin: 0;
}

.appointment-actions .button-link{
  white-space: nowrap;
}

.appointments-card .tech-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
}

.appointments-card .tech-chip .initial{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 4px var(--brand-shadow);
}

.appointments-card .appt-edit-form{
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.appointments-card .appt-edit-form input[type="datetime-local"],
.appointments-card .appt-edit-form input[type="date"]{
  flex: 1 1 220px;
  min-width: 180px;
  width: auto;
}

.appointments-card .appt-edit-form button{
  width: auto;
  padding: 10px 16px;
}

.appointments-card .appt-delete-form{
  display: flex;
  justify-content: flex-end;
}

.appointments-card .appt-delete-form button{
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
  border-radius: 10px;
  background: transparent;
  color: var(--gray-400);
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.appointments-card .appt-delete-form button:hover{
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

@media (max-width: 720px){
  .appointment-table-wrapper{
    overflow-x: visible;
  }

  .appointments-card{
    padding: 20px;
  }

  .appointment-table{
    display: block;
    border-spacing: 0;
    min-width: 0;
    width: 100%;
  }

  .appointment-table thead{ display: none; }

  .appointment-table tbody{
    display: grid;
    gap: 16px;
  }

  .appointment-table tbody tr{
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
    position: relative;
    padding-top: 54px;
  }

  .appointment-table tbody td{
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    gap: 8px;
  }

  .appointment-table tbody td.appointment-actions{
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .appointment-table tbody td::before{
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-500);
  }

  .appointment-table tbody tr:hover td{ background: transparent; }

  .appointments-card .appt-edit-form{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    white-space: normal;
  }

  .appointments-card .appt-edit-form input[type="datetime-local"],
  .appointments-card .appt-edit-form input[type="date"]{
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.2;
  }

  .appointments-card .appt-edit-form button{
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .appointment-actions{
    width: auto;
    justify-content: flex-start;
  }

  .appointment-table tbody td.appointment-actions::before{
    display: none;
  }

  .appointments-card .appt-delete-form{
    justify-content: flex-end;
  }

  .appointments-card .appt-delete-form button{
    padding: 6px 10px;
  }
}

.holiday-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  font-weight: 600;
}

.holiday-toggle__icon{
  transition: transform .2s ease;
}

.holiday-toggle--open .holiday-toggle__icon{
  transform: rotate(180deg);
}

.holiday-detail-row.hidden{
  display: none;
}

.holiday-detail{
  display: grid;
  gap: 20px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}

@media (min-width: 720px){
  .holiday-detail{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.holiday-detail__section{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.holiday-tech-modal{
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: min(75vh, 720px);
}

.holiday-tech-dialog{
  display: grid;
  gap: 24px;
  overflow: auto;
  padding-right: 4px;
}

.holiday-tech-dialog__grid{
  display: grid;
  gap: 20px;
}

@media (min-width: 720px){
  .holiday-tech-dialog__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.holiday-tech-dialog__section{
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f9fafb;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.holiday-tech-dialog__heading{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
}

.holiday-tech-summary{
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 5px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-darker);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--ring);
}

.holiday-tech-list{
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.holiday-tech-list__item{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.holiday-tech-list__item:hover{
  border-color: rgba(var(--brand-rgb), .25);
  background: rgba(var(--brand-rgb), .08);
  transform: translateY(-1px);
}

.holiday-tech-list__name{
  font-weight: 600;
  color: var(--gray-700);
}

.holiday-tech-remove-form{
  margin-left: auto;
}

.holiday-tech-remove-form .button-link{
  font-size: 14px;
  color: var(--brand-dark);
}

.holiday-tech-add-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.holiday-tech-add-form select{
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
  background: #fff;
}

.holiday-tech-add-form select:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.holiday-tech-add-form .btn{
  align-self: flex-start;
  padding-inline: 18px;
}

.holiday-tech-add-form button[disabled]{
  opacity: .6;
  cursor: not-allowed;
}

.holiday-tech-empty{
  margin: 0;
  color: var(--gray-500);
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--gray-300);
  border-radius: 12px;
  background: #fff;
}

.button-link{
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible{
  color: var(--brand-dark);
  text-decoration: underline;
}

.schedule-block{
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--gray-600);
  font-size: 14px;
}

.schedule-block .schedule-end{
  color: var(--gray-500);
  font-size: 13px;
}

.appointments-card .appt-empty{
  width: 100%;
  padding: 40px 12px;
  text-align: center;
  color: var(--gray-500);
  font-weight: 500;
  background: #f9fafb;
  border-radius: 12px;
}

.btn-secondary{
  background: #e5e7eb;
  color: var(--gray-700);
}

.btn-secondary:hover{
  background: #d1d5db;
  color: #1f2937;
}

@media (max-width: 540px){
  .site-header__inner{
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .site-header__brand{
    width: 100%;
    gap: 12px;
  }

  .site-header__logo{
    max-height: 42px;
  }

  .site-header__actions{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header__username{
    width: 100%;
    text-align: center;
  }

  .site-header__logout{
    width: 100%;
  }

  .site-header__settings{
    width: 34px;
    height: 34px;
    justify-self: center;
    align-self: center;
  }

  .site-header__home{
    justify-self: center;
  }

  #responseMessage{
    flex-direction: column;
  }
}

/* ========= Responsive Breakpoints ========= */
/* ≥ 640px */
@media (min-width: 640px){
  .card{ padding: 22px; }
}

/* ≥ 768px */
@media (min-width: 768px){
  /* widen default cards a bit on tablets */
  .card{ max-width: 680px; }
  /* dashboard nav: 2 columns */
  nav{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  nav .btn{ max-width: none; }
}

/* ≥ 1024px (desktop / dashboard-wide) */
@media (min-width: 1024px){
  .container{ gap: 20px; }
  /* allow wide dashboard content */
  .card{ max-width: 780px; }
  /* if you add .wide to a card it spans the dashboard width */
  .card.wide{ max-width: 100%; }
  /* dashboard nav: 3 columns */
  nav{ grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}

/* ≥ 1280px (large desktop) */
@media (min-width: 1280px){
  .container{ max-width: min(90vw, 1600px); }
  .card{ max-width: 840px; }
}

@media (min-width: 1024px){
  .card--calendar{ max-width: 1000px; }
}


/* ========= Standalone weather page ========= */
.weather-page{
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px) 16px;
  background: radial-gradient(circle at top, rgba(var(--brand-rgb), .12), transparent 55%),
              radial-gradient(circle at bottom, rgba(14, 116, 144, .08), transparent 60%),
              var(--bg);
}

.weather-page__container{
  width: min(1100px, 100%);
}

.weather-page .weather-card{
  background: var(--card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 25px 60px rgba(15, 23, 42, .18);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  gap: clamp(28px, 5vw, 40px);
}

.weather-page .weather-card__header{
  text-align: center;
  display: grid;
  gap: 12px;
}

.weather-page .weather-card__title{
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.01em;
}

.weather-page .weather-card__subtitle{
  margin: 0;
  color: var(--gray-600);
  font-size: clamp(15px, 2.2vw, 18px);
}

.weather-page .weather-card__form{
  display: grid;
  gap: 14px;
}

.weather-page .weather-card__label{
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-600);
}

.weather-page .weather-card__controls{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.weather-page .weather-card__input{
  flex: 1 1 180px;
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.weather-page .weather-card__input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.weather-page .weather-card__submit{
  padding: 14px 22px;
  font-weight: 600;
  letter-spacing: .01em;
}

.weather-page .weather-card__notice{
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.weather-page .weather-card__notice--error{
  color: #b91c1c;
}

.weather-page .forecast-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.weather-page .forecast-day{
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .08) 0%, rgba(255, 255, 255, .9) 100%);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 6px;
  text-align: center;
  border: 1px solid rgba(var(--brand-rgb), .15);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.weather-page .forecast-day__weekday{
  margin: 0;
  font-weight: 700;
  letter-spacing: .01em;
}

.weather-page .forecast-day__date{
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.weather-page .forecast-day__condition{
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--gray-700);
}

.weather-page .forecast-day__temperatures{
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}

.weather-page .forecast-day__high{
  color: var(--brand-darker);
  font-weight: 700;
}

.weather-page .forecast-day__low{
  color: var(--gray-500);
}

.weather-page .weather-card__footer{
  text-align: center;
}

.weather-page .weather-card__source{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
}

@media (max-width: 640px){
  .weather-page .weather-card{
    padding: 28px 20px;
  }

  .weather-page .forecast-day{
    padding: 18px 16px;
  }
}

.auto-schedule{display:flex;flex-direction:column;gap:2.5rem}
.auto-schedule__section{display:flex;flex-direction:column;gap:1rem}
.auto-schedule__heading{font-size:1.25rem;font-weight:600;margin:0}
.auto-schedule__description{margin:0;color:#4b5563;font-size:.95rem}
.auto-schedule__description--lead{color:#4b5563;line-height:1.6;max-width:60ch}
.auto-schedule__grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.auto-schedule__grid--compact{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.auto-schedule__field{display:flex;flex-direction:column;gap:.5rem}
.auto-schedule__field--button{align-self:end;display:flex;align-items:flex-end}
.auto-schedule__range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.auto-schedule__tech-select{display:flex;flex-direction:column;gap:1rem}
.auto-schedule__tech-controls{display:flex;gap:1rem;align-items:flex-start}
.auto-schedule__tech-controls .input{min-width:240px}
.auto-schedule__tech-actions{display:flex;flex-direction:column;gap:.75rem}
.auto-schedule__tech-actions .button-secondary{white-space:nowrap}
.auto-schedule__tech-list{border:1px solid #e5e7eb;border-radius:0.75rem;padding:1rem;display:flex;flex-direction:column;gap:1rem}
.auto-schedule__tech-item{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding-bottom:1rem}
.auto-schedule__tech-item:last-child{border-bottom:none;padding-bottom:0}
.auto-schedule__tech-meta{display:flex;flex-direction:column;gap:.35rem;min-width:200px}
.auto-schedule__tech-meta strong{font-size:1rem;color:#111827}
.auto-schedule__tech-actions-row{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.auto-schedule__weight-input{width:5rem}
.auto-schedule__remove-btn{color:var(--brand);border:none;background:none;padding:0;font-size:.9rem;cursor:pointer;text-decoration:underline;font:inherit}
.auto-schedule__remove-btn:hover{color:var(--brand-dark)}
.auto-schedule__empty{margin:0;color:#6b7280}
.auto-schedule__list{border:1px solid #e5e7eb;border-radius:0.75rem;padding:1rem;display:flex;flex-direction:column;gap:0.75rem}
.auto-schedule__list-item{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.auto-schedule__list-item strong{color:#111827}
.auto-schedule__bullet-list{margin:0;padding-left:1.25rem;display:flex;flex-direction:column;gap:.5rem;color:#374151}
.auto-schedule__actions{display:flex;gap:1rem;flex-wrap:wrap}
.auto-schedule__reset{margin-left:auto;padding:0;border:none;background:none;color:var(--brand);font:inherit;font-weight:600;cursor:pointer;align-self:center;text-decoration:underline;font-size:.95rem}
.auto-schedule__reset:hover,.auto-schedule__reset:focus-visible{color:var(--brand-dark);text-decoration:none}
.auto-schedule__status{margin:0;padding:1rem;border-radius:0.75rem;background-color:#f3f4f6;color:#111827;font-size:.95rem;white-space:pre-line}
.auto-schedule__status.is-error{background-color:#fee2e2;color:#991b1b}
.auto-schedule__status.is-success{background-color:#dcfce7;color:#166534}
.auto-schedule__output{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:.85rem;line-height:1.5;background-color:#111827;color:#e5e7eb;padding:1rem;border-radius:0.75rem;overflow:auto;max-height:320px}
.auto-schedule__tech-note{color:#6b7280;font-size:.9rem}
.auto-schedule__list-remove{border:none;background:none;color:#2563eb;cursor:pointer;padding:0;font-size:.9rem}
.auto-schedule__list-remove:hover{text-decoration:underline;color:#1d4ed8}
.auto-schedule__tech-select .input{height:auto}
.auto-schedule__tech-controls select[multiple]{min-width:280px;min-height:12rem}
.auto-schedule__tech-controls select[multiple] option{padding:.35rem .5rem}
.auto-schedule__tech-controls select[multiple]:focus{outline:2px solid #2563eb;outline-offset:2px}
.auto-schedule__holiday-table-container{display:grid;gap:1rem;width:100%}
.auto-schedule__holiday-table-wrapper{width:100%;overflow-x:auto;border:1px solid #e5e7eb;border-radius:0.75rem;background-color:#fff;-webkit-overflow-scrolling:touch}
.auto-schedule__holiday-table{width:max-content;min-width:max(100%,720px);border-collapse:collapse}
.auto-schedule__holiday-table th,.auto-schedule__holiday-table td{padding:0.75rem;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:middle}
.auto-schedule__holiday-table thead th{background-color:#f9fafb;font-weight:600;font-size:.9rem}
.auto-schedule__holiday-table tbody tr:last-child th,.auto-schedule__holiday-table tbody tr:last-child td{border-bottom:none}
.auto-schedule__holiday-name-header,.auto-schedule__holiday-name-cell{position:sticky;left:0;min-width:220px;background-color:#fff;z-index:2;box-shadow:4px 0 8px -6px rgba(17,24,39,.15)}
.auto-schedule__holiday-name-header{background-color:#f9fafb;z-index:3}
.auto-schedule__holiday-name{display:inline;font:inherit;font-weight:600;color:inherit;cursor:pointer}
.auto-schedule__holiday-name:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.auto-schedule__section-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;cursor:pointer}
.auto-schedule__collapsible{display:flex;flex-direction:column;gap:1rem}
.auto-schedule__collapse-toggle{display:inline-flex;align-items:center;gap:.4rem;padding:0;border:none;background:none;color:var(--text);font:inherit;font-size:.95rem;font-weight:600;cursor:pointer;text-decoration:none}
.auto-schedule__collapse-toggle:hover,.auto-schedule__collapse-toggle:focus-visible{color:var(--text);text-decoration:none}
.auto-schedule__collapse-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.auto-schedule__collapse-toggle [data-collapsible-icon]{font-size:.95rem;line-height:1}
.auto-schedule__holiday-name-input{width:100%;min-width:180px;font:inherit}
.auto-schedule__holiday-cell .auto-schedule__holiday-select{min-width:150px;text-align:center;text-align-last:center}
.auto-schedule__select--placeholder{text-align:center;text-align-last:center}
.auto-schedule__holiday-actions-header{text-align:right}
.auto-schedule__holiday-actions{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;white-space:nowrap}
.auto-schedule__holiday-move{border:1px solid #d1d5db;background-color:#fff;color:#111827;cursor:pointer;padding:0;width:2.25rem;height:2.25rem;border-radius:9999px;font:inherit;font-size:1rem;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.auto-schedule__holiday-move:hover{background-color:#f3f4f6}
.auto-schedule__holiday-move:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.auto-schedule__holiday-move[disabled]{opacity:.45;cursor:default;background-color:#f9fafb}
.auto-schedule__holiday-remove{border:none;background:none;color:var(--brand);cursor:pointer;padding:0;font-size:.9rem;text-decoration:underline;font:inherit}
.auto-schedule__holiday-remove:hover{color:var(--brand-dark)}
.auto-schedule__holiday-controls{display:flex;justify-content:flex-end;gap:.75rem}
.auto-schedule__hint{margin:0;color:#6b7280;font-size:.9rem}
