:root {
  --ink: #19343a;
  --muted: #718187;
  --line: #dfe6e5;
  --line-strong: #cdd8d6;
  --paper: #ffffff;
  --canvas: #f4f6f3;
  --sidebar: #18383c;
  --sidebar-soft: #22484c;
  --coral: #e86a4a;
  --coral-dark: #d95839;
  --teal: #2a7b6f;
  --teal-soft: #d5eee7;
  --pink: #dd75a4;
  --pink-soft: #f7dce8;
  --blue: #68a8d8;
  --blue-soft: #deeffa;
  --free: #9ba6ab;
  --free-soft: #eef1f2;
  --amber: #d79a34;
  --amber-soft: #fff3d4;
  --shadow: 0 12px 35px rgba(25, 52, 58, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.45 Inter, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.welcome-page {
  min-height: 100vh;
  overflow: hidden;
  color: #17383c;
  background:
    radial-gradient(circle at 8% 9%, rgba(232,106,74,.12), transparent 27%),
    radial-gradient(circle at 87% 26%, rgba(42,123,111,.13), transparent 28%),
    linear-gradient(180deg, #fbfcf8 0%, #f5f8f3 62%, #edf4ef 100%);
}
.welcome-page::before {
  content: "";
  position: absolute;
  top: 100px;
  left: -110px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(232,106,74,.18);
  border-radius: 50%;
  pointer-events: none;
}
.welcome-nav {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}
.welcome-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.welcome-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--sidebar);
  box-shadow: 0 10px 24px rgba(24,56,60,.16);
}
.welcome-brand-mark svg { width: 21px; }
.welcome-brand strong, .welcome-brand small { display: block; }
.welcome-brand strong { font: 600 21px/1 Georgia, serif; }
.welcome-brand small { margin-top: 4px; color: #80908f; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.welcome-actions { display: flex; align-items: center; gap: 10px; }
.welcome-login, .welcome-text-cta, .auth-switch-button {
  border: 0;
  color: #31545a;
  background: transparent;
  padding: 9px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.welcome-login:hover, .welcome-text-cta:hover, .auth-switch-button:hover { color: var(--coral-dark); }
.welcome-register { min-height: 42px; border-radius: 10px; padding-inline: 18px; }
.welcome-page button:disabled { cursor: wait; opacity: .55; transform: none; }
.welcome-hero {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(540px, 1.12fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
  margin: 0 auto;
  padding: 54px 0 66px;
}
.welcome-copy { max-width: 555px; }
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e6df;
  border-radius: 999px;
  color: #496a69;
  background: rgba(255,255,255,.7);
  padding: 7px 12px 7px 9px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 7px 24px rgba(25,52,58,.05);
}
.welcome-badge > span { width: 8px; height: 8px; border-radius: 50%; background: #70bc8f; box-shadow: 0 0 0 4px #e0f0e5; }
.welcome-copy h1 {
  max-width: 600px;
  margin: 22px 0 20px;
  color: #18383c;
  font: 600 clamp(44px, 4.1vw, 65px)/.99 Georgia, serif;
  letter-spacing: -.045em;
}
.welcome-copy h1 em { color: var(--coral); font-style: normal; }
.welcome-lead { max-width: 520px; margin-bottom: 26px; color: #637777; font-size: 16px; line-height: 1.7; }
.welcome-cta { display: flex; align-items: center; gap: 13px; }
.welcome-main-cta { min-height: 52px; border-radius: 11px; padding-inline: 20px; font-size: 13px; }
.welcome-main-cta svg { width: 15px; }
.welcome-trust { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 23px; color: #6c7e7e; font-size: 10px; }
.welcome-trust span { display: inline-flex; align-items: center; gap: 5px; }
.welcome-trust svg { width: 13px; color: var(--teal); stroke-width: 2.5; }
.welcome-status { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0 0; color: #8a9896; font-size: 9px; }
.welcome-status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px #faedcf; }
.welcome-status.ready { color: #55816b; }
.welcome-status.ready > span { background: #72b88d; box-shadow: 0 0 0 3px #dfeee4; }
.welcome-visual { position: relative; min-width: 0; height: 480px; }
.preview-orbit { position: absolute; border: 1px solid rgba(42,123,111,.12); border-radius: 50%; }
.preview-orbit-one { inset: -12px 8px 3px 28px; }
.preview-orbit-two { inset: 36px 56px 50px 80px; border-color: rgba(232,106,74,.13); }
.preview-window {
  position: absolute;
  inset: 44px 8px auto 22px;
  overflow: hidden;
  border: 1px solid rgba(27,69,72,.12);
  border-radius: 19px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 30px 70px rgba(22,60,62,.17), 0 3px 10px rgba(22,60,62,.05);
  transform: rotate(1.2deg);
  backdrop-filter: blur(10px);
}
.preview-window-bar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e7ece9; padding: 13px 17px; }
.preview-window-title { display: flex; align-items: center; gap: 9px; }
.preview-window-title strong, .preview-window-title small { display: block; }
.preview-window-title strong { font: 600 15px Georgia, serif; }
.preview-window-title small { margin-top: 2px; color: #92a09e; font-size: 8px; }
.preview-logo { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--sidebar); }
.preview-logo svg { width: 16px; }
.preview-saved { display: flex; align-items: center; gap: 6px; color: #6b827a; font-size: 8px; }
.preview-saved i { width: 6px; height: 6px; border-radius: 50%; background: #72b88d; box-shadow: 0 0 0 3px #e1eee5; }
.preview-tools { display: flex; gap: 7px; border-bottom: 1px solid #e9eeeb; background: #fbfcfa; padding: 10px 14px; }
.preview-tool { width: 46px; height: 27px; display: grid; place-items: center; border: 1px solid #c9ddd7; border-radius: 7px; color: white; background: var(--teal); font-size: 9px; font-weight: 800; }
.preview-tool.active { box-shadow: 0 0 0 2px rgba(42,123,111,.17); }
.preview-tool.pink { border-color: #ecc9d9; color: #944664; background: #f7dce8; }
.preview-tool.blue { border-color: #cfe2ee; color: #3f7698; background: #deeffa; }
.preview-tool.pale { border-color: #e2e7e7; color: #849193; background: #eef1f2; }
.preview-calendar { padding: 0 14px 15px; }
.preview-days, .preview-row, .preview-coverage { display: grid; grid-template-columns: 108px repeat(7, 1fr); }
.preview-days > *, .preview-row > *, .preview-coverage > * { min-width: 0; border-right: 1px solid #e8edeb; border-bottom: 1px solid #e8edeb; }
.preview-days > *:last-child, .preview-row > *:last-child, .preview-coverage > *:last-child { border-right: 0; }
.preview-days b { height: 38px; display: grid; place-items: center; color: #465f63; padding-top: 4px; font-size: 9px; }
.preview-days small { display: block; color: #a1acab; font-size: 6px; font-weight: 600; text-transform: uppercase; }
.preview-row > strong, .preview-coverage > strong { height: 43px; display: flex; align-items: center; gap: 7px; overflow: hidden; padding: 0 8px; color: #4a6266; font-size: 8px; white-space: nowrap; }
.preview-row > strong i { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--avatar); font-size: 7px; font-style: normal; }
.preview-row > span { height: 43px; display: grid; place-items: center; color: #839092; background: white; font-size: 8px; font-weight: 800; }
.preview-row > span.work { color: white; background: #7bcf62; box-shadow: inset 0 -3px #4b9a39; }
.preview-row > span.unavailable { color: #944664; background: #f7dce8; box-shadow: inset 0 -3px #dd75a4; }
.preview-row > span.vacation { color: #3f7698; background: #deeffa; box-shadow: inset 0 -3px #68a8d8; }
.preview-coverage > strong, .preview-coverage > span { height: 30px; background: #f4f8f5; }
.preview-coverage > span { display: grid; place-items: center; color: #428272; font-size: 8px; font-weight: 800; }
.preview-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(31,73,74,.1); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 17px 40px rgba(26,60,62,.15); backdrop-filter: blur(8px); }
.preview-float-coverage { top: 5px; right: -24px; padding: 11px 13px; }
.preview-float-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: #e1f0eb; }
.preview-float-icon svg { width: 16px; }
.preview-float small, .preview-float strong { display: block; }
.preview-float small { color: #899897; font-size: 7px; }
.preview-float strong { margin-top: 1px; color: #2e5054; font-size: 13px; }
.preview-float-coverage > i { border-radius: 9px; color: #3f876f; background: #e8f4ed; padding: 4px 6px; font-size: 7px; font-style: normal; font-weight: 800; }
.preview-float-team { right: 30px; bottom: 9px; padding: 12px 15px; }
.preview-avatars { display: flex; padding-left: 12px; }
.preview-avatars i { width: 29px; height: 29px; display: grid; place-items: center; margin-left: -12px; border: 2px solid white; border-radius: 50%; color: white; background: var(--coral); font-size: 7px; font-style: normal; font-weight: 800; }
.preview-avatars i:nth-child(2) { background: var(--teal); }
.preview-avatars i:nth-child(3) { background: #5473c6; }
.preview-float-team strong { font-size: 9px; }
.preview-float-team small { margin-top: 2px; font-size: 7px; }
.welcome-features {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0 auto;
  padding: 4px 0 76px;
}
.welcome-features article { border: 1px solid rgba(28,67,69,.1); border-radius: 16px; background: rgba(255,255,255,.66); padding: 23px; box-shadow: 0 14px 35px rgba(25,52,58,.045); backdrop-filter: blur(8px); }
.feature-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 11px; }
.feature-icon svg { width: 18px; }
.feature-icon.coral { color: #b95037; background: #fae5df; }
.feature-icon.teal { color: #267568; background: #dff0ea; }
.feature-icon.amber { color: #9a6b22; background: #faedcf; }
.welcome-features h2 { margin-bottom: 8px; font-size: 17px; }
.welcome-features p { margin-bottom: 0; color: #758685; font-size: 11px; line-height: 1.65; }
.welcome-footer { min-height: 70px; display: flex; justify-content: center; align-items: center; gap: 12px; border-top: 1px solid rgba(26,66,68,.09); color: #7c8e8c; font-size: 10px; }
.welcome-footer strong { color: #405e62; font-family: Georgia, serif; font-size: 14px; }

.account-page { min-height: 100vh; color: var(--ink); background: #f3f6f2; }
.account-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(29,67,69,.1);
  background: rgba(251,252,248,.9);
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(14px);
}
.account-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 49px 0 36px; }
.account-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.account-heading h1 { margin-bottom: 8px; font-size: 38px; }
.account-heading > div > p:last-child { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.account-sync-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfe3d6; border-radius: 999px; color: #47725d; background: #edf7f0; padding: 8px 13px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.account-sync-badge i { width: 7px; height: 7px; border-radius: 50%; background: #69b184; box-shadow: 0 0 0 4px #dceee2; }
.account-sync-badge.local { border-color: #e5dcc6; color: #846e44; background: #fff9e9; }
.account-sync-badge.local i { background: var(--amber); box-shadow: 0 0 0 4px #faedcf; }
.account-overview { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.22fr); gap: 17px; margin-bottom: 18px; }
.account-profile-card, .account-stat-grid article, .account-section, .account-data-card, .account-security-card { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(25,52,58,.055); }
.account-profile-card { position: relative; overflow: hidden; padding: 22px; }
.account-profile-card::after { content: ""; position: absolute; top: -65px; right: -45px; width: 150px; height: 150px; border-radius: 50%; background: #e9f3ee; pointer-events: none; }
.account-profile-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.account-avatar { width: 54px; height: 54px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--teal), #1d5c55); box-shadow: 0 9px 20px rgba(42,123,111,.2); font: 600 22px Georgia, serif; }
.account-card-label { display: block; margin-bottom: 3px; color: #8b9999; font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.account-profile-main h2 { max-width: 290px; overflow: hidden; margin-bottom: 3px; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-main p { margin-bottom: 0; color: var(--muted); font-size: 9px; }
.account-profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.account-profile-meta > div { border: 1px solid #e6ece9; border-radius: 9px; background: #fafbf9; padding: 9px 10px; }
.account-profile-meta small, .account-profile-meta strong { display: block; }
.account-profile-meta small { color: #93a09f; font-size: 7px; text-transform: uppercase; }
.account-profile-meta strong { margin-top: 3px; color: #476167; font-size: 9px; }
.account-signout { margin-top: 13px; padding-left: 0; font-size: 10px; }
.account-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-stat-grid article { display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 18px; }
.account-stat-icon { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.account-stat-icon svg { width: 18px; }
.account-stat-icon.coral { color: #b95037; background: #fae5df; }
.account-stat-icon.teal { color: #267568; background: #dff0ea; }
.account-stat-icon.blue { color: #47749a; background: #e4eef6; }
.account-stat-icon.amber { color: #9a6b22; background: #faedcf; }
.account-stat-grid strong, .account-stat-grid small { display: block; }
.account-stat-grid strong { color: #294b50; font: 600 25px/1 Georgia, serif; }
.account-stat-grid small { margin-top: 5px; color: #849290; font-size: 9px; }
.account-section { margin-bottom: 18px; padding: 22px; }
.account-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.account-section-heading.compact { margin-bottom: 15px; }
.account-section-heading h2 { margin-bottom: 4px; font-size: 21px; }
.account-section-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.account-schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.account-schedule-card { min-width: 0; overflow: hidden; border: 1px solid #dce5e2; border-radius: 13px; background: #fbfcfa; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.account-schedule-card:hover { transform: translateY(-2px); border-color: #acc6bf; box-shadow: 0 10px 24px rgba(27,64,66,.09); }
.account-schedule-card.active { border-color: #79aa9e; box-shadow: inset 0 3px var(--teal); }
.account-schedule-open { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.account-schedule-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 14px 14px 11px; }
.account-schedule-card-head strong { display: block; overflow: hidden; color: #2f5055; font: 600 15px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.account-schedule-card-head small { display: block; margin-top: 3px; color: #8a9998; font-size: 8px; }
.account-active-label { flex: 0 0 auto; border-radius: 999px; color: #397464; background: #e1f0ea; padding: 4px 7px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.account-schedule-preview { display: block; margin: 0 14px; overflow: hidden; border: 1px solid #e2e8e6; border-radius: 8px; background: white; }
.account-mini-days, .account-mini-row { display: grid; grid-template-columns: 65px repeat(14, minmax(0, 1fr)); }
.account-mini-days span, .account-mini-row span, .account-mini-row strong { min-width: 0; height: 17px; display: grid; place-items: center; border-right: 1px solid #edf0ef; border-bottom: 1px solid #edf0ef; overflow: hidden; }
.account-mini-days span { color: #9aa6a5; background: #f6f8f6; font-size: 5px; }
.account-mini-days span:first-child { justify-content: start; padding-left: 5px; }
.account-mini-row:last-child > * { border-bottom: 0; }
.account-mini-row > *:last-child, .account-mini-days > *:last-child { border-right: 0; }
.account-mini-row strong { display: block; padding: 4px 5px 0; color: #65797c; background: white; font-size: 6px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-mini-row span { color: var(--mini-text, transparent); background: var(--mini-bg, #fff); font-size: 5px; font-weight: 800; }
.account-mini-empty { min-height: 52px; display: grid; place-items: center; color: #97a4a3; background: repeating-linear-gradient(135deg, #fff, #fff 8px, #fafbf9 8px, #fafbf9 16px); font-size: 8px; }
.account-schedule-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; border-top: 1px solid #e5eae8; background: #e5eae8; }
.account-schedule-meta span { display: block; color: #738584; background: #f8faf8; padding: 9px 6px; text-align: center; font-size: 7px; }
.account-schedule-meta b { display: block; margin-bottom: 2px; color: #34565b; font-size: 10px; }
.account-empty-schedules { grid-column: 1 / -1; border: 1px dashed #cfdad7; border-radius: 12px; color: #7d8d8c; padding: 34px; text-align: center; }
.account-lower-grid { display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(280px, .65fr); gap: 17px; }
.account-data-card, .account-security-card { padding: 22px; }
.account-data-actions { display: grid; gap: 9px; }
.account-data-action { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; border: 1px solid #e1e8e5; border-radius: 11px; background: #fafbf9; padding: 11px; }
.account-data-action strong, .account-data-action small { display: block; }
.account-data-action strong { color: #3a575c; font-size: 10px; }
.account-data-action small { margin-top: 3px; color: #8a9897; font-size: 8px; }
.backup-icon.restore { color: #92629b; background: #f0e7f2; }
.account-security-card { position: relative; overflow: hidden; color: #eaf5f2; background: var(--sidebar); }
.account-security-card::after { content: ""; position: absolute; right: -70px; bottom: -85px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.account-security-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; color: #143b3e; background: #95d0ad; }
.account-security-icon svg { width: 20px; stroke-width: 2.3; }
.account-security-card .eyebrow { color: #e0a28f; }
.account-security-card h2 { margin-bottom: 8px; color: white; font-size: 20px; }
.account-security-card > p:not(.eyebrow) { color: #a9c0c0; font-size: 10px; line-height: 1.6; }
.account-security-list { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 20px; }
.account-security-list span { display: flex; align-items: center; gap: 8px; color: #c8dbd8; font-size: 8px; }
.account-security-list svg { width: 13px; color: #8dccaa; stroke-width: 2.5; }
.account-footer { color: #8d9a99; padding: 24px 0 3px; text-align: center; font-size: 8px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 252px; display: flex; flex-direction: column; color: #eef8f6; background: var(--sidebar); padding: 25px 16px 18px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; color: #fff; background: var(--coral); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.brand-mark svg { width: 21px; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: .1px; }
.brand span { display: block; margin-top: 1px; color: #a8c1c2; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-close { display: none; }
.sidebar-backdrop { display: none; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; height: 46px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; color: #b9cece; background: transparent; padding: 0 12px; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: var(--sidebar-soft); box-shadow: inset 3px 0 var(--coral); }
.nav-item svg { width: 19px; }
.nav-item b { min-width: 24px; margin-left: auto; border-radius: 12px; color: #dbe9e7; background: rgba(255,255,255,.1); padding: 2px 7px; font-size: 11px; text-align: center; }
.sidebar-section { margin-top: 32px; padding: 0 7px; }
.schedule-selector-section { margin-top: 22px; }
.sidebar-label { margin: 0 0 9px 4px; color: #78999b; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.schedule-selector-card { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: white; background: rgba(255,255,255,.07); padding: 10px; text-align: left; cursor: pointer; }
.schedule-selector-card:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.09); }
.schedule-selector-icon { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #17383c; background: #f5d6cb; }
.schedule-selector-icon svg { width: 17px; }
.schedule-selector-card > span:nth-child(2) { min-width: 0; }
.schedule-selector-card strong, .schedule-selector-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-selector-card strong { max-width: 126px; font-size: 12px; }
.schedule-selector-card small { margin-top: 2px; color: #91adae; font-size: 9px; }
.schedule-selector-card > svg { width: 16px; flex: 0 0 auto; margin-left: auto; color: #78999b; }
.month-card { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: white; background: rgba(255,255,255,.045); padding: 11px; text-align: left; cursor: pointer; }
.month-card:hover { border-color: rgba(255,255,255,.22); }
.month-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #17383c; background: #eaf1e9; font: 700 12px/1 Georgia, serif; }
.month-card strong, .month-card small { display: block; }
.month-card strong { font-size: 13px; }
.month-card small { margin-top: 2px; color: #91adae; font-size: 10px; }
.month-card svg { width: 16px; margin-left: auto; color: #78999b; }
.privacy-card { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.035); padding: 12px; }
.privacy-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #83c79f; margin-top: 5px; box-shadow: 0 0 0 4px rgba(131,199,159,.09); }
.privacy-card strong, .privacy-card small { display: block; }
.privacy-card strong { font-size: 11px; }
.privacy-card small { color: #89a5a6; font-size: 9px; margin-top: 3px; }
.sidebar-footer { padding-top: 11px; color: #698b8d; font-size: 9px; text-align: center; }

.workspace { min-width: 0; margin-left: 252px; padding: 26px 34px 38px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.title-wrap { display: flex; align-items: center; gap: 12px; }
.eyebrow { margin: 0 0 3px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 600 31px/1.2 Georgia, serif; letter-spacing: -.02em; }
h2 { margin-bottom: 4px; font: 600 19px/1.2 Georgia, serif; }
h3 { margin-bottom: 4px; font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.save-state { display: flex; align-items: center; gap: 7px; margin-right: 4px; color: #70807f; font-size: 11px; white-space: nowrap; }
.save-state > span { width: 7px; height: 7px; border-radius: 50%; background: #78b990; box-shadow: 0 0 0 4px #e3f0e6; }
.save-state.saving > span { background: var(--amber); box-shadow: 0 0 0 4px #faedcf; }
.save-state.save-error { color: #b34f49; }
.save-state.save-error > span { background: #b34f49; box-shadow: 0 0 0 4px #f5dfdc; }
.cloud-account-button { max-width: 190px; }
.cloud-account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 0 14px; font-weight: 650; font-size: 12px; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 16px; }
.button.secondary { border-color: var(--line-strong); color: #345159; background: white; }
.button.secondary:hover { border-color: #aebfbc; box-shadow: 0 5px 13px rgba(25,52,58,.07); }
.button.dark { color: white; background: var(--sidebar); box-shadow: 0 5px 12px rgba(24,56,60,.16); }
.button.dark:hover { background: #20464a; }
.button.small { min-height: 34px; padding: 0 11px; }
.button.coral-button { color: white; background: var(--coral); box-shadow: 0 6px 13px rgba(232,106,74,.18); }
.button.coral-button:hover { background: var(--coral-dark); }
.button.danger-button { color: white; background: #b74f47; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: #4c6469; background: white; cursor: pointer; }
.icon-button:hover { border-color: #abbdb9; color: var(--ink); }
.icon-button svg { width: 17px; }
.mobile-menu { display: none; }
.export-wrap { position: relative; }
.caret { margin-left: 2px; font-size: 13px; }
.export-menu { position: absolute; top: 46px; right: 0; z-index: 30; width: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; padding: 6px; box-shadow: 0 18px 45px rgba(25,52,58,.16); }
.export-menu button { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 7px; background: white; padding: 10px; text-align: left; cursor: pointer; }
.export-menu button:hover { background: #f4f6f3; }
.export-menu strong, .export-menu small { display: block; }
.export-menu strong { color: #29464c; font-size: 12px; }
.export-menu small { color: #899697; font-size: 10px; margin-top: 2px; }
.file-badge { width: 39px; height: 33px; display: grid; place-items: center; border-radius: 6px; font-size: 8px; font-weight: 800; }
.file-badge.xlsx { color: #247760; background: #dcf0e8; }
.file-badge.png { color: #4b70a5; background: #e5edf8; }
.file-badge.ics { color: #8a4e8f; background: #f1e5f3; }
.file-badge.json { color: #9d6b18; background: #fff0ca; }

.month-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.month-switcher { position: relative; display: flex; align-items: center; gap: 8px; }
.month-picker-button { min-width: 205px; border: 0; background: transparent; padding: 2px 12px; text-align: left; cursor: pointer; }
.month-picker-button span, .month-picker-button small { display: block; }
.month-picker-button span { color: #29474d; font: 600 16px Georgia, serif; text-transform: capitalize; }
.month-picker-button small { margin-top: 3px; color: var(--muted); font-size: 10px; }
#monthPicker { position: absolute; left: 50px; top: 0; width: 200px; height: 40px; opacity: 0; pointer-events: none; }
.month-kpis { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); }
.month-kpis > div { min-width: 132px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 10px 14px; border-left: 1px solid var(--line); }
.month-kpis > div:first-child { border-left: 0; }
.month-kpis span:not(.kpi-dot) { color: var(--muted); font-size: 10px; }
.month-kpis strong { color: #29464c; font-size: 13px; }
.kpi-dot { width: 7px; height: 7px; border-radius: 50%; }
.kpi-dot.green { background: var(--teal); }
.kpi-dot.amber { background: var(--amber); }
.kpi-dot.slate { background: #6d8185; }

.status-toolbar { display: flex; align-items: stretch; gap: 16px; overflow-x: auto; margin-bottom: 14px; padding: 4px 2px 6px; scrollbar-width: thin; }
.status-label { flex: 0 0 153px; align-self: center; }
.status-label span, .status-label small { display: block; }
.status-label span { font-weight: 700; font-size: 12px; }
.status-label small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.status-options { display: flex; gap: 7px; }
.status-option { min-width: 142px; height: 49px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; color: #426068; background: white; padding: 0 9px; text-align: left; cursor: pointer; transition: .15s ease; }
.status-option:hover { border-color: #b8c8c5; }
.status-option.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 4px 12px rgba(25,52,58,.08); }
.status-option span strong, .status-option span small { display: block; white-space: nowrap; }
.status-option span strong { color: #29464c; font-size: 10px; }
.status-option span small { color: #8a989a; font-size: 8px; margin-top: 2px; }
.status-option kbd { min-width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #dce3e2; border-radius: 4px; color: #8a9798; background: #f7f8f7; font: 8px/1 inherit; }
.status-swatch { width: 13px; height: 13px; display: inline-block; flex: 0 0 auto; border-radius: 4px; }
.status-swatch.work { background: var(--teal); }
.status-swatch.unavailable { background: var(--pink); }
.status-swatch.vacation { background: var(--blue); }
.status-swatch.free { background: var(--free); }
.status-swatch.shift { background: var(--shift-color); }
.status-option.eraser { min-width: 117px; }
.status-option.eraser svg { width: 16px; }
.status-option.shift-add-option { min-width: 118px; border-style: dashed; color: var(--teal); }
.status-option.shift-add-option svg { width: 17px; }
.status-option.shift-option.active { border-color: var(--shift-color); box-shadow: inset 0 0 0 1px var(--shift-color), 0 4px 12px rgba(25,52,58,.08); }

.schedule-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.schedule-card { overflow: hidden; margin-bottom: 18px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 19px 14px; }
.card-heading h2 { margin-bottom: 3px; }
.card-heading p, .panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.legend-compact { display: flex; gap: 13px; color: #7c8b8d; font-size: 9px; }
.legend-compact span { display: flex; align-items: center; gap: 5px; }
.legend-compact .status-swatch { width: 8px; height: 8px; border-radius: 2px; }
.weekend-mark { width: 8px; height: 8px; display: inline-block; border-radius: 2px; background: #eef0e8; border: 1px solid #dfe3d7; }
.table-wrap { width: 100%; overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-color: #bdc9c6 #eef1ef; scrollbar-width: thin; }
.schedule-table { width: max-content; min-width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; user-select: none; }
.schedule-table th, .schedule-table td { height: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; }
.schedule-table tr:last-child td, .schedule-table tr:last-child th { border-bottom: 0; }
.schedule-table th:last-child, .schedule-table td:last-child { border-right: 0; }
.schedule-table thead th { position: sticky; top: 0; z-index: 5; height: 49px; color: #6f8183; background: #fafbf9; font-weight: 600; font-size: 9px; }
.schedule-table .employee-head { position: sticky; left: 0; z-index: 8; width: 205px; min-width: 205px; color: #496268; background: #f7f9f7; text-align: left; padding-left: 16px; }
.schedule-table .total-head { width: 58px; min-width: 58px; }
.date-head { width: 46px; min-width: 46px; }
.date-head span, .date-head small { display: block; }
.date-head span { color: #29464c; font-size: 12px; }
.date-head small { margin-top: 2px; color: #93a0a1; font-size: 8px; text-transform: uppercase; }
.date-head.weekend { background: #f2f2e9; }
.date-head.weekend span { color: var(--coral); }
.employee-cell { position: sticky; left: 0; z-index: 3; width: 205px; min-width: 205px; background: white; text-align: left !important; padding: 0 11px !important; cursor: pointer; }
.employee-cell:hover { background: #f9faf8; }
.employee-person { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--avatar); font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.employee-name { min-width: 0; }
.employee-name strong, .employee-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-name strong { color: #29464c; font-size: 11px; font-weight: 650; }
.employee-name small { margin-top: 1px; color: #9aa4a5; font-size: 8px; }
.employee-cell .more-icon { color: #b0babb; }
.employee-cell .more-icon svg { width: 15px; }
.day-cell { position: relative; width: 46px; min-width: 46px; color: #758588; background: white; cursor: cell; transition: filter .08s ease; }
.day-cell:hover { box-shadow: inset 0 0 0 2px var(--coral); z-index: 2; }
.day-cell.weekend:not([data-status]), .day-cell.weekend[data-status=""] { background: #fafaf5; }
.day-cell span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 9px; font-weight: 800; }
.day-cell[data-status="work"], .day-cell[data-status^="shift:"] { color: var(--cell-text, white); background: var(--cell-bg, var(--teal)); box-shadow: inset 0 -3px rgba(0,0,0,.18); box-shadow: inset 0 -3px color-mix(in srgb, var(--cell-bg, var(--teal)) 72%, black); }
.day-cell[data-status="unavailable"] { color: #953d65; background: var(--pink-soft); box-shadow: inset 0 -3px var(--pink); }
.day-cell[data-status="vacation"] { color: #356f99; background: var(--blue-soft); box-shadow: inset 0 -3px var(--blue); }
.day-cell[data-status="free"] { color: #7b898c; background: var(--free-soft); }
.day-cell[data-status=""] span { font-weight: 500; }
.total-cell { width: 58px; min-width: 58px; color: #29464c; background: #f9faf8; font-weight: 750; font-size: 11px; }
.total-cell small { display: block; color: #94a1a2; font-size: 7px; font-weight: 500; }
.coverage-row th, .coverage-row td { height: 33px; }
.coverage-row .employee-cell { color: #667a7e; background: #f7f9f7; font-size: 9px; font-weight: 600; cursor: default; }
.coverage-cell { font-size: 10px; font-weight: 700; }
.coverage-cell.ok { color: #277567; background: #e6f2ee; }
.coverage-cell.gap { color: #ad5c23; background: var(--amber-soft); }
.coverage-cell.over { color: #466b92; background: #e8eff5; }
.demand-row th, .demand-row td { height: 35px; }
.demand-row .employee-cell { color: #667a7e; background: #f7f9f7; font-size: 9px; font-weight: 600; cursor: default; }
.demand-input { width: 100%; height: 100%; border: 0; outline: 0; color: #5f7377; background: #fbfcfa; text-align: center; font-size: 10px; }
.demand-input:focus { background: white; box-shadow: inset 0 0 0 2px var(--coral); }
.table-help { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 17px; color: #849294; font-size: 9px; }
.table-help span { display: flex; align-items: center; gap: 6px; }
.table-help svg { width: 14px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(460px, 1.35fr) minmax(315px, .65fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 20px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-heading.inline { justify-content: space-between; }
.team-heading-actions { display: flex; align-items: center; gap: 7px; }
.panel-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.panel-icon.coral { color: var(--coral); background: #fce7df; }
.panel-icon svg { width: 19px; }
.form-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .7fr; gap: 11px; }
label { display: grid; gap: 6px; color: #5f7377; font-size: 10px; font-weight: 650; }
input, select { height: 38px; width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; color: #29464c; background: white; padding: 0 10px; font-size: 12px; }
input:focus, select:focus { border-color: #6f9690; box-shadow: 0 0 0 3px rgba(42,123,111,.09); }
.check-row { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: #758587; font-weight: 500; }
.check-row input { width: 16px; height: 16px; accent-color: var(--teal); }
.panel-actions { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; color: #547078; background: transparent; padding: 8px 3px; font-size: 10px; font-weight: 650; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 14px; }
.text-button.danger { color: #b45c54; }
.employee-list { display: grid; gap: 7px; max-height: 222px; overflow: auto; padding-right: 3px; }
.employee-list-item { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; border: 1px solid #edf0ef; border-radius: 8px; background: #fafbf9; padding: 8px 9px; cursor: pointer; }
.employee-list-item:hover { border-color: #d3ddda; background: white; }
.employee-list-item .avatar { width: 29px; height: 29px; }
.employee-list-item strong, .employee-list-item small { display: block; }
.employee-list-item strong { color: #345259; font-size: 11px; }
.employee-list-item small { color: #96a2a3; font-size: 8px; margin-top: 2px; }
.employee-list-item .employee-shifts { color: #48646a; font-size: 10px; font-weight: 700; }
.employee-list-item .employee-shifts small { text-align: right; font-weight: 500; }
.employee-list.sorting { grid-template-columns: 1fr; max-height: 300px; }
.employee-list.sorting .employee-list-item { grid-template-columns: 24px 31px 1fr auto; cursor: grab; touch-action: none; user-select: none; }
.employee-list.sorting .employee-list-item:active { cursor: grabbing; }
.employee-sort-handle { display: none; width: 22px; height: 28px; place-items: center; color: #91a0a1; }
.employee-sort-handle svg { width: 15px; }
.employee-list.sorting .employee-sort-handle { display: grid; }
.employee-order-actions { display: flex; gap: 4px; }
.employee-order-actions button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; color: #547078; background: white; cursor: pointer; }
.employee-order-actions button:hover { color: var(--ink); border-color: #b9cbc7; background: #edf3f1; }
.employee-list-item.dragging { opacity: .48; }
.employee-list-item.drag-before { box-shadow: 0 -3px 0 var(--coral); }
.employee-list-item.drag-after { box-shadow: 0 3px 0 var(--coral); }
.employee-meta-line { display: flex !important; align-items: center; gap: 5px; }
.intensity-pill { display: inline-flex; align-items: center; border-radius: 10px; color: #4d6d70; background: #e9f0ee; padding: 1px 5px; font-size: 7px; font-weight: 750; }
.summary-panel { margin-bottom: 18px; }
.summary-note { border-radius: 14px; color: #607679; background: #eef3f1; padding: 5px 10px; font-size: 9px; }
.summary-table-wrap { overflow-x: auto; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { border-top: 1px solid #edf0ef; padding: 10px 8px; text-align: left; font-size: 10px; }
.summary-table th { color: #8a989a; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.summary-table td { color: #466168; }
.summary-table th:not(:first-child), .summary-table td:not(:first-child) { text-align: right; }
.summary-person { display: flex; align-items: center; gap: 8px; }
.summary-person .avatar { width: 25px; height: 25px; }
.load-bar { display: inline-flex; justify-content: flex-end; align-items: center; gap: 8px; width: 145px; }
.load-track { width: 85px; height: 5px; overflow: hidden; border-radius: 4px; background: #e8edeb; }
.load-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.app-footer { color: #8c999a; font-size: 9px; text-align: center; padding-top: 5px; }

.modal { width: min(500px, calc(100vw - 28px)); border: 0; border-radius: 14px; color: var(--ink); background: white; padding: 0; box-shadow: 0 24px 70px rgba(14,39,43,.27); }
.modal.wide { width: min(650px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(16,36,39,.54); backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin-bottom: 0; font-size: 22px; }
.modal-body { display: grid; gap: 15px; padding: 20px 22px; }
.modal-body label { font-size: 11px; }
.modal-footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; padding: 14px 22px 20px; }
.color-options { display: flex; gap: 9px; }
.color-options button { width: 30px; height: 30px; border: 3px solid white; outline: 1px solid #dbe3e1; border-radius: 50%; background: var(--color); cursor: pointer; }
.color-options button.selected { outline: 2px solid var(--ink); }
.field-hint { color: #8b989a; font-size: 9px; font-weight: 400; line-height: 1.35; }
.shift-manager-body { gap: 18px; }
.shift-list-heading, .shift-editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.shift-list-heading h3, .shift-editor-heading h3 { margin: 0; }
.shift-list-heading span { color: #899798; font-size: 9px; }
.shift-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shift-manager-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; padding: 9px; }
.shift-code-badge { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--shift-color); font-size: 10px; font-weight: 800; }
.shift-manager-item strong, .shift-manager-item small { display: block; }
.shift-manager-item strong { color: #345259; font-size: 11px; }
.shift-manager-item small { color: #91a0a1; font-size: 8px; margin-top: 2px; }
.shift-manager-actions { display: flex; gap: 3px; }
.shift-manager-actions button { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #758789; background: transparent; cursor: pointer; }
.shift-manager-actions button:hover { color: var(--ink); background: #edf1ef; }
.shift-manager-actions button.danger:hover { color: #b34f49; background: #f9e8e5; }
.shift-manager-actions svg { width: 13px; }
.shift-editor { border-top: 1px solid var(--line); padding-top: 16px; }
.shift-form-grid { display: grid; grid-template-columns: 1.35fr .7fr .9fr 1fr; gap: 10px; margin-bottom: 13px; }
.shift-modal-footer { padding-top: 2px; }
.schedule-manager-body { gap: 18px; }
.schedule-manager-list { display: grid; gap: 8px; }
.schedule-manager-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; padding: 9px 10px; }
.schedule-manager-item.active { border-color: #8ab9ad; background: #f1f7f4; box-shadow: inset 3px 0 0 var(--teal); }
.schedule-manager-main { min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.schedule-manager-main strong, .schedule-manager-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-manager-main strong { color: #345259; font-size: 11px; }
.schedule-manager-main small { margin-top: 3px; color: #91a0a1; font-size: 8px; }
.schedule-manager-actions { display: flex; gap: 3px; }
.schedule-manager-actions button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #758789; background: transparent; cursor: pointer; }
.schedule-manager-actions button:hover { color: var(--ink); background: #e8efec; }
.schedule-manager-actions button.danger:hover { color: #b34f49; background: #f9e8e5; }
.schedule-manager-actions svg { width: 13px; }
.schedule-editor { border-top: 1px solid var(--line); padding-top: 16px; }
.schedule-editor .field-hint { margin: 8px 0 0; }
.schedule-modal-footer { grid-template-columns: auto 1fr auto auto; }
.calendar-note { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dce9e5; border-radius: 9px; color: #5d7478; background: #f3f8f6; padding: 11px; font-size: 10px; line-height: 1.5; }
.calendar-note svg { width: 16px; flex: 0 0 auto; color: var(--teal); }
.backup-body { gap: 10px; }
.backup-option { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.backup-option p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.backup-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: #e5f1ed; }
.backup-icon svg { width: 18px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.modal-intro { margin: 0; color: var(--muted); font-size: 11px; }
.auth-modal { width: min(450px, calc(100vw - 28px)); }
.auth-modal .modal-header { background: linear-gradient(135deg, #f8faf6, #edf5f1); }
.auth-fields { display: grid; gap: 13px; }
.auth-footer { grid-template-columns: auto 1fr auto; }
.auth-switch-button { justify-self: start; padding-inline: 0; font-size: 10px; }
.auth-switch-button:disabled { opacity: .55; cursor: wait; }
.auth-error { margin: 0; border: 1px solid #edcbc7; border-radius: 8px; color: #a9443e; background: #fff4f2; padding: 9px 11px; font-size: 10px; line-height: 1.45; }
.auth-error:empty { display: none; }
.auth-success { padding: 6px 3px 2px; text-align: center; }
.auth-success-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: white; background: #70b88c; box-shadow: 0 0 0 8px #e8f3ec; }
.auth-success-icon svg { width: 25px; stroke-width: 2.5; }
.auth-success h3 { margin-bottom: 7px; color: #24484c; font: 600 21px Georgia, serif; }
.auth-success p { max-width: 340px; margin: 0 auto; color: #718281; font-size: 11px; line-height: 1.6; }
.auth-success strong { color: #365c60; }
.auth-complete .auth-switch-button { visibility: hidden; }
.history-list { display: grid; gap: 8px; }
.history-empty { border: 1px dashed var(--line-strong); border-radius: 10px; color: #879596; padding: 28px; text-align: center; font-size: 11px; }
.history-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.history-item strong, .history-item small { display: block; }
.history-item strong { color: #36545a; font-size: 11px; }
.history-item small { margin-top: 2px; color: #91a0a1; font-size: 9px; }
.history-actions { display: flex; align-items: center; gap: 6px; }
.history-delete { width: 34px; min-height: 34px; display: grid; place-items: center; border: 1px solid #ead8d5; border-radius: 7px; color: #af554e; background: white; cursor: pointer; }
.history-delete:hover { background: #faece9; }
.history-delete svg { width: 14px; }

.confirm-layer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; max-height: none; border: 0; background: transparent; padding: 16px; }
.confirm-layer[open] { display: grid; place-items: center; }
.confirm-layer:not([open]) { display: none; }
.confirm-layer::backdrop { background: rgba(16,36,39,.57); backdrop-filter: blur(3px); }
.confirm-card { width: min(390px, 100%); border-radius: 14px; background: white; padding: 24px; text-align: center; box-shadow: 0 24px 70px rgba(14,39,43,.3); }
.confirm-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: #a9622e; background: #fff0d4; }
.confirm-card h3 { margin-bottom: 7px; font: 600 19px Georgia, serif; }
.confirm-card p { margin-bottom: 19px; color: var(--muted); font-size: 11px; }
.confirm-card > div:last-child { display: flex; justify-content: center; gap: 9px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 8px; }
.toast { min-width: 250px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; color: #345259; background: white; padding: 11px 13px; box-shadow: 0 12px 32px rgba(25,52,58,.16); animation: toastIn .2s ease-out; font-size: 11px; }
.toast svg { width: 17px; color: var(--teal); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .account-overview { grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr); }
  .account-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-lower-grid { grid-template-columns: 1fr; }
  .workspace { padding-inline: 24px; }
  .month-toolbar { align-items: flex-start; }
  .month-kpis > div { min-width: 112px; display: flex; flex-wrap: wrap; }
  .month-kpis span:not(.kpi-dot) { order: 3; width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .employee-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .welcome-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 38px; }
  .welcome-copy { max-width: 690px; text-align: center; margin: 0 auto; }
  .welcome-copy h1, .welcome-lead { margin-inline: auto; }
  .welcome-copy h1 { max-width: 700px; }
  .welcome-cta, .welcome-trust { justify-content: center; }
  .welcome-visual { width: min(650px, 100%); margin: 0 auto; }
  .welcome-features { grid-template-columns: 1fr; }
  .account-content { padding-top: 36px; }
  .account-overview { grid-template-columns: 1fr; }
  .account-profile-card { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
  .account-profile-meta { margin-top: 0; }
  .account-signout { grid-column: 1 / -1; }
  body.mobile-nav-open { overflow: hidden; }
  .sidebar { inset: 0 auto 0 0; z-index: 60; width: min(320px, 88vw); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(8,31,34,.24); }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { padding-right: 0; }
  .sidebar-close { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; margin-left: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #d8e8e6; background: rgba(255,255,255,.06); cursor: pointer; }
  .sidebar-close:hover { color: white; background: rgba(255,255,255,.12); }
  .sidebar-close svg { width: 17px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 55; width: 100%; height: 100%; border: 0; background: rgba(12,31,34,.48); padding: 0; cursor: pointer; backdrop-filter: blur(2px); }
  .sidebar-backdrop:not([hidden]) { display: block; }
  .workspace { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 18; gap: 10px; margin-bottom: 17px; background: rgba(244,246,243,.92); padding: 10px 0; backdrop-filter: blur(12px); }
  .mobile-menu { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; color: white; background: var(--coral); padding: 0 12px; box-shadow: 0 7px 16px rgba(232,106,74,.22); font-size: 10px; font-weight: 750; cursor: pointer; }
  .mobile-menu svg { width: 17px; }
  body.mobile-nav-open .mobile-menu { pointer-events: none; }
  .month-toolbar { display: grid; }
  .month-kpis { width: max-content; max-width: 100%; }
}
@media (max-width: 650px) {
  .welcome-nav { width: calc(100% - 28px); min-height: 76px; }
  .welcome-brand small { display: none; }
  .welcome-brand-mark { width: 37px; height: 37px; }
  .welcome-actions { gap: 2px; }
  .welcome-login { padding-inline: 8px; }
  .welcome-register { min-height: 38px; padding-inline: 12px; }
  .welcome-hero { width: calc(100% - 28px); gap: 25px; padding: 32px 0 48px; }
  .welcome-copy h1 { margin-top: 18px; font-size: clamp(38px, 12vw, 50px); }
  .welcome-lead { font-size: 14px; }
  .welcome-cta { flex-direction: column; }
  .welcome-main-cta { width: 100%; }
  .welcome-trust { gap: 8px 11px; }
  .welcome-visual { height: 350px; margin-top: 5px; }
  .preview-window { inset: 36px -78px auto -4px; transform: scale(.78) rotate(1.2deg); transform-origin: top left; width: 570px; }
  .preview-float-coverage { top: 1px; right: -4px; transform: scale(.86); transform-origin: top right; }
  .preview-float-team { right: 2px; bottom: 4px; transform: scale(.87); transform-origin: bottom right; }
  .preview-orbit-one { inset: 0 -30px 0 -30px; }
  .welcome-features { width: calc(100% - 28px); padding-bottom: 48px; }
  .welcome-footer { flex-direction: column; gap: 2px; padding: 18px; text-align: center; }
  .auth-footer { grid-template-columns: 1fr; gap: 9px; }
  .auth-footer > span { display: none; }
  .auth-switch-button { justify-self: center; order: 2; }
  .auth-footer .button { width: 100%; order: 1; }
  .account-topbar { min-height: 70px; padding-inline: 14px; }
  .account-topbar .welcome-brand small { display: none; }
  .account-topbar .button { font-size: 0; }
  .account-topbar .button svg { width: 17px; margin: 0; }
  .account-content { width: calc(100% - 26px); padding-top: 28px; }
  .account-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-heading h1 { font-size: 31px; }
  .account-sync-badge { align-self: flex-start; }
  .account-profile-card { display: block; padding: 18px; }
  .account-profile-meta { margin-top: 18px; }
  .account-stat-grid { gap: 8px; }
  .account-stat-grid article { min-height: 78px; padding: 13px; }
  .account-stat-icon { width: 36px; height: 36px; }
  .account-stat-grid strong { font-size: 21px; }
  .account-section, .account-data-card, .account-security-card { padding: 17px; }
  .account-section-heading { align-items: stretch; flex-direction: column; gap: 13px; }
  .account-section-heading .button { width: 100%; }
  .account-schedule-grid { grid-template-columns: 1fr; }
  .account-data-action { grid-template-columns: 36px 1fr; }
  .account-data-action .button { grid-column: 1 / -1; width: 100%; }
  .workspace { padding: 18px 13px 28px; }
  .topbar { align-items: flex-start; }
  h1 { font-size: 25px; }
  .save-state, .top-actions .secondary span, .top-actions .dark > span:not(.caret) { display: none; }
  .button { padding-inline: 11px; }
  .month-kpis { width: 100%; }
  .month-kpis > div { flex: 1; min-width: 0; padding: 9px; }
  .status-label { display: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .employee-list { grid-template-columns: 1fr; }
  .legend-compact, .table-help span:last-child { display: none; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .panel-actions .button { width: 100%; }
  .table-help { justify-content: center; text-align: center; }
  .backup-option { grid-template-columns: 36px 1fr; }
  .backup-option .button { grid-column: 1 / -1; }
  .shift-manager-list { grid-template-columns: 1fr; }
  .shift-form-grid { grid-template-columns: 1fr 1fr; }
  .team-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .schedule-modal-footer { grid-template-columns: 1fr 1fr; }
}
