:root {
  --forest: #173c2f;
  --forest2: #244e3c;
  --evergreen: #245c43;
  --moss: #4a7455;
  --lime: #d7ed9f;
  --canvas: #f3f5ef;
  --paper: #fcfdf9;
  --ink: #1d3127;
  --muted: #65756a;
  --line: #e0e7dc;
  --shadow: 0 7px 25px #213c2410;
  --premium-panel-shadow: 0 2px 3px #162c2410, 0 9px 22px #1c392711;
  --premium-soft: #eaf1e4;
  --premium-muted: #617267;
  --premium-serif: Georgia, "Times New Roman", serif;
  --photo-frondes: url("/media/canopee-frondes.webp");
  --photo-foret: url("/media/canopee-foret.webp");
}

body { font-family: "Segoe UI", Aptos, Arial, sans-serif; letter-spacing: 0; font-size: 1rem; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #618d4c;
  outline-offset: 3px;
}

.premium-login {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr);
  background: #e8eee1;
}

.premium-login-intro {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 48px;
  padding: clamp(32px, 6vw, 106px);
  color: #fffdf3;
  background-color: #172f25;
  background-image: linear-gradient(108deg, #0c251ff2 0%, #102c21a6 49%, #173c2b21 100%), var(--photo-frondes);
  background-position: center, center 44%;
  background-size: cover;
}

.login::before { display: none; }
.login-left {
  background-color: #172f25;
  background-image: linear-gradient(110deg, #0b271ff0 0%, #102c21a6 51%, #173c2b30 100%), var(--photo-frondes);
  background-position: center, center 44%;
  background-size: cover;
}

.premium-login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.premium-login-brand { font-size: 1.75rem; font-weight: 720; line-height: 1; letter-spacing: -.055em; }
.premium-login-brand b, .premium-brand b, .premium-mobile-brand b { color: #deedb7; font-weight: 580; }
.premium-login-brand small { display: block; color: #c9d9c2; margin-top: 6px; font-size: .75rem; letter-spacing: .025em; font-weight: 600; }
.premium-login-statement { padding: clamp(18px, 4vw, 84px) 0; margin: auto 0; }
.premium-login-statement h1 {
  font: normal clamp(2.8rem, 5.2vw, 6.5rem)/1.04 var(--premium-serif);
  letter-spacing: -.06em;
}
.premium-login-statement h1 em { color: #dcebb8; font-weight: normal; }
.premium-login-statement p {
  margin: 24px 0 0;
  max-width: 34ch;
  color: #d9e7d8;
  font-size: clamp(1rem, 1.27vw, 1.2rem);
  line-height: 1.6;
}

.premium-login-access {
  display: grid;
  justify-items: center;
  align-items: center;
  padding: clamp(26px, 4vw, 76px);
  background: radial-gradient(ellipse at 100% 0%, #f8f8ef, #eef2e7 56%, #e5ebdf);
}
.premium-login-card {
  width: 100%;
  max-width: 450px;
  border: 1px solid #fff;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 50px);
  background: #fcfdf8;
  box-shadow: 0 17px 58px #2440281a;
}
.premium-login-card h2 {
  margin: 7px 0 24px;
  font-family: var(--premium-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.premium-login .login-field label { color: #415b4a; font-size: .9rem; font-weight: 640; }
.premium-login .login-field input { border-radius: 10px; padding: 12px 14px; font-size: 1rem; color: var(--ink); }
.premium-login-card .primary { width: 100%; margin-top: 5px; min-height: 47px; font-size: .94rem; font-weight: 700; }
.premium-test-access { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.premium-test-access h3 { font-size: .9rem; }
.premium-test-access p { margin: 4px 0 11px; color: var(--muted); font-size: .84rem; }
.premium-demo-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
}
.premium-demo-account:hover { background: #eef4e8; border-color: #b7c8ae; }
.premium-demo-account strong, .premium-demo-account small { display: block; }
.premium-demo-account strong { font-size: .89rem; line-height: 1.1; }
.premium-demo-account small { color: var(--muted); font-size: .81rem; margin-top: 3px; }

.premium-shell { display: flex; min-height: 100vh; min-height: 100svh; }
.premium-skip {
  position: fixed;
  z-index: 125;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
}
.premium-skip:focus { transform: none; }
.premium-sidebar {
  background: #17372d;
  border-right: 1px solid #143226;
  width: 241px;
  flex: 0 0 241px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 23px 15px 15px;
  color: #f3f5ed;
}
.premium-brand, .premium-mobile-brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: 100%;
  color: inherit;
  text-align: left;
}
.premium-brand { margin: 2px 6px 17px; padding: 0; }
.premium-brand strong { display: block; font-size: 1.34rem; line-height: 1; letter-spacing: -.052em; white-space: nowrap; }
.premium-brand small { color: #bdcfbd; display: block; margin-top: 6px; font-size: .74rem; letter-spacing: .02em; }
.premium-brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #d5e6b5;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #dbeeb1;
  background: color-mix(in srgb, var(--company-accent, #abc785) 32%, #e8f4d0);
  color: #234534;
}
.premium-brand-mark .ico { width: 22px; height: 22px; stroke-width: 1.7; }
.premium-brand-mark.premium-monogram { font-weight: 800; font-size: .83rem; letter-spacing: .025em; }
.premium-primary-nav { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #68836e transparent; margin: 0 -7px; padding: 0 7px 5px; flex: 1 1 auto; }
.premium-nav-group { padding: 7px 0 8px; }
.premium-nav-group + .premium-nav-group { border-top: 1px solid #aebfa627; }
.premium-nav-group p {
  margin: 0 0 4px;
  padding: 0 10px;
  color: #b4c9b8;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.premium-nav-group button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #e2ebdf;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 560;
  padding: 7px 9px;
  min-height: 36px;
  line-height: 1.22;
}
.premium-nav-group button .ico { width: 17px; height: 17px; color: #bdd2be; }
.premium-nav-group button:hover { background: #ffffff10; }
.premium-nav-group button.active { background: #294d3f; color: #ecf7d8; border-color: #567262; font-weight: 720; }
.premium-nav-group button.active .ico { color: #d8edaf; }
.premium-sidebar-footer {
  margin: 10px 2px 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0;
  border-top: 1px solid #aebfa62c;
  font-size: .78rem;
  line-height: 1.25;
  color: #d3e2d0;
  overflow-wrap: anywhere;
}
.premium-sidebar-footer i { width: 9px; height: 9px; border-radius: 3px; background: var(--company-accent); flex: 0 0 auto; }

.premium-workspace { flex: 1 1 auto; min-width: 0; }
.premium-topbar {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 10px clamp(20px, 2.55vw, 49px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.premium-location {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: .88rem;
  min-width: 0;
}
.premium-location span { max-width: 31ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--premium-muted); }
.premium-location strong { border-left: 1px solid #d9e1d5; padding-left: 11px; font-weight: 710; }
.premium-top-actions { display: flex; gap: 11px; align-items: center; flex: 0 0 auto; }
.premium-icon-button {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: white;
  position: relative;
  padding: 0;
}
.premium-icon-button:hover, .premium-icon-button.active { background: var(--premium-soft); border-color: #bfcfbb; }
.premium-icon-button > span {
  position: absolute;
  top: -4px;
  right: -6px;
  border: 1px solid #fff;
  min-width: 19px;
  padding: 2px 4px;
  border-radius: 12px;
  color: #fff;
  background: #275b44;
  font: 700 .69rem/1 "Segoe UI", sans-serif;
}
.premium-avatar { display: grid; place-items: center; border-radius: 50%; width: 37px; height: 37px; background: #e4ecdb; color: #31523d; font-size: .84rem; font-weight: 740; flex: 0 0 auto; }
.premium-avatar.small { width: 31px; height: 31px; font-size: .74rem; }
.premium-profile { position: relative; }
.premium-profile > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border-radius: 10px;
  color: var(--forest);
}
.premium-profile > summary::-webkit-details-marker, .premium-mobile-menu > summary::-webkit-details-marker { display: none; }
.premium-profile > summary:hover, .premium-profile[open] > summary { background: #edf2e8; }
.premium-profile-name strong, .premium-profile-name small {
  display: block;
  max-width: 20ch;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.premium-profile-name strong { color: var(--ink); font-size: .88rem; font-weight: 700; }
.premium-profile-name small { color: var(--premium-muted); font-size: .75rem; }
.premium-profile-actions {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 30;
  min-width: 195px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px #213c2426;
}
.premium-profile-actions button {
  border: 0;
  width: 100%;
  border-radius: 7px;
  background: transparent;
  padding: 9px;
  text-align: left;
  color: var(--ink);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.premium-profile-actions button:hover { background: var(--premium-soft); }
.premium-mobile-nav, .premium-mobile-brand { display: none; }
.premium-main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  padding: 28px clamp(20px, 2.55vw, 49px) 50px;
}
.premium-main:focus { outline: none; }

.premium-desk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.premium-desk-heading { display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; padding: 0 0 3px; }
.premium-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #456b52;
  font-size: .84rem;
  font-weight: 680;
}
.premium-desk-heading h1 {
  font: normal clamp(2.5rem, 4vw, 4.12rem)/.97 var(--premium-serif);
  letter-spacing: -.062em;
  margin: 7px 0 0;
}
.premium-desk .btn.premium-outline {
  background: transparent;
  box-shadow: none;
  color: #305642;
  min-height: 42px;
  border: 1px solid #c8d6c3;
  border-radius: 10px;
  font-size: .9rem;
  padding: 8px 13px;
}
.premium-desk .btn.premium-outline:hover { background: #e5eddf; }

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(245px, .75fr);
  overflow: hidden;
  align-items: end;
  gap: 18px;
  min-height: 216px;
  padding: 25px clamp(21px, 3.4vw, 40px);
  border-radius: 21px;
  color: #fffef4;
  background-color: #18392e;
  background-image: linear-gradient(100deg, #153529 2%, #163729f2 32%, #14342583 63%, #0c24132b 100%), var(--photo-foret);
  background-position: center, right 49%;
  background-size: cover;
  border: 1px solid #2a503b;
  box-shadow: inset 0 1px #ffffff24, 0 4px 8px #132f2430, 0 13px 27px #153d2a24;
}
.premium-hero-copy > p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e3efcc;
  font-size: .9rem;
  font-weight: 620;
}
.premium-hero-copy h2 {
  margin-top: 10px;
  font: normal clamp(1.95rem, 3.2vw, 3.15rem)/1.06 var(--premium-serif);
  letter-spacing: -.05em;
}
.premium-hero-action { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.premium-hero .btn { padding: 8px 12px; min-height: 39px; font-size: .86rem; border-radius: 9px; box-shadow: none; }
.premium-hero .premium-lime { background: #dceeb1; border-color: #dceeb1; color: #203d2a; font-weight: 740; }
.premium-hero .premium-lime:hover { background: #eef8d0; }
.premium-hero .premium-hero-link { background: #203f3333; border-color: #e2edca70; color: #f3f8e8; font-weight: 620; }
.premium-hero .premium-hero-link:hover { background: #133023; border-color: #ecf2e7; }
.premium-hero-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border: 1px solid #dfeac552;
  background: #123226b8;
  backdrop-filter: blur(5px);
  border-radius: 13px;
  padding: 9px 5px;
  box-shadow: inset 0 1px #ffffff15, 0 4px 12px #081c1850;
}
.premium-hero-totals div { padding: 6px 5px; text-align: center; }
.premium-hero-totals div + div { border-left: 1px solid #e6f0d43d; }
.premium-hero-totals strong { display: block; color: #f3fbdb; font-size: 1.64rem; font-weight: 690; line-height: 1.03; font-variant-numeric: tabular-nums; }
.premium-hero-totals span { display: block; margin-top: 5px; color: #e9f4e3; font-size: .82rem; }

.premium-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.premium-kpi {
  min-width: 0;
  text-align: left;
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px #253c2907;
  border-radius: 15px;
  min-height: 117px;
  padding: 13px;
}
.premium-kpi:hover { border-color: #a4bca1; background: #fff; }
.premium-kpi-top { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: .88rem; font-weight: 680; }
.premium-kpi-icon {
  color: #305641;
  height: 29px;
  width: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f0e2;
}
.premium-kpi.gold .premium-kpi-icon { background: #f4ebd0; color: #76572b; }
.premium-kpi > strong {
  display: block;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.premium-kpi-foot { color: #586d5e; font-size: .81rem; }

.premium-desk-row { display: grid; align-items: start; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: 15px; }
.premium-panel {
  min-width: 0;
  border-radius: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px #253c2907;
  overflow: hidden;
}
.premium-panel-head { padding: 17px 16px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.premium-panel-head h2 { font-size: 1.125rem; font-weight: 720; line-height: 1.25; letter-spacing: -.018em; }
.premium-panel-head p { color: var(--premium-muted); font-size: .86rem; margin-top: 4px; }
.premium-panel .btn.premium-quiet {
  font-size: .83rem;
  line-height: 1.2;
  min-height: 34px;
  color: #315642;
  background: #edf3e9;
  border: 1px solid #e0e8db;
  box-shadow: none;
  border-radius: 8px;
  padding: 6px 9px;
  text-align: center;
}
.premium-panel .btn.premium-quiet:hover { background: #e1ebdd; }
.premium-table-region { overflow: auto; }
.premium-schedule-table { width: 100%; min-width: 390px; border-collapse: collapse; text-align: left; }
.premium-schedule-table th { background: #eef3eb; border-top: 1px solid #e3eadf; color: #4f6759; font-size: .81rem; font-weight: 650; }
.premium-schedule-table th, .premium-schedule-table td { padding: 11px 9px; border-bottom: 1px solid #e8eee3; }
.premium-schedule-table th:first-child, .premium-schedule-table td:first-child { padding-left: 17px; }
.premium-schedule-table td { font-size: .88rem; }
.premium-schedule-table td:first-child { font-variant-numeric: tabular-nums; }
.premium-schedule-table td:last-child, .premium-schedule-table th:first-child { white-space: nowrap; }
.premium-schedule-table td strong, .premium-schedule-table td small { display: block; line-height: 1.35; }
.premium-schedule-table td small { font-size: .81rem; color: var(--premium-muted); }
.premium-schedule-table td strong + small { margin-top: 3px; }
.premium-schedule-table .tag { font-size: .78rem; box-shadow: none; border-radius: 7px; }
.premium-tomorrow { display: flex; gap: 9px; align-items: center; padding: 14px 17px; color: #395c45; }
.premium-tomorrow strong { display: block; font-size: .88rem; }
.premium-tomorrow small { display: block; color: var(--premium-muted); font-size: .83rem; margin-top: 2px; }
.premium-empty { padding: 12px 17px 20px; color: var(--premium-muted); display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.premium-empty .ico { color: #466f51; }

.premium-priority-list { display: grid; padding: 0 11px 10px; }
.premium-priority-list button {
  min-height: 51px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 7px 5px;
}
.premium-priority-list button + button { border-top: 1px solid #e8eee4; }
.premium-priority-list button:hover { background: #f1f5ee; border-radius: 8px; }
.premium-priority-list button strong { display: block; font-size: .92rem; font-weight: 660; }
.premium-priority-list button small { display: block; color: var(--premium-muted); font-size: .81rem; margin-top: 2px; }
.premium-priority-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #e6efe2; color: #355742; }
.premium-priority-icon.orange { background: #f4ebd6; color: #7b5c2e; }
.premium-priority-icon.red { background: #f6e5e0; color: #8c4a3e; }
.premium-priority-count { color: #355742; background: #e6efe2; border-radius: 7px; min-width: 26px; padding: 3px 6px; text-align: center; font-size: .84rem; font-weight: 720; }
.premium-priority-count.orange { color: #785628; background: #f4ebd6; }
.premium-priority-count.red { color: #893c33; background: #f6e5e0; }

.premium-bars { padding: 0 17px 15px; margin: 0; display: grid; gap: 11px; }
.premium-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; align-items: baseline; color: #456254; font-size: .9rem; }
.premium-bar-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.premium-bar-track { display: block; grid-column: 1 / -1; height: 7px; background: #ecf0e9; border-radius: 5px; overflow: hidden; }
.premium-bar-track span { display: block; height: 100%; border-radius: 5px; background: #769970; }
.premium-bar-row.paid .premium-bar-track span { background: #416e54; }
.premium-bar-row.outstanding .premium-bar-track span { background: #a38651; }
.premium-bar-row.draft .premium-bar-track span { background: #7a8a82; }

.premium-quick-actions { padding: 0 15px 15px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.premium-quick-actions .btn.premium-quick {
  border: 1px solid #e1e9dd;
  border-radius: 9px;
  color: #345742;
  background: #f4f7f1;
  box-shadow: none;
  min-height: 45px;
  padding: 8px;
  justify-content: flex-start;
  font-size: .86rem;
  text-align: left;
}
.premium-quick-actions .btn:hover { background: #e6efdf; }
.premium-tail > .card { min-width: 0; box-shadow: 0 3px 12px #253c2907; }
.premium-tail .memo-paper { background: #f6f7ed; border-color: #e5e8d9; box-shadow: none; }
.premium-tail .memo-paper::after { display: none; }
.premium-tail .memo-paper textarea { font-size: 1rem; }
.premium-tail .memo-paper + .btn { margin-top: 10px; }

.premium-staff { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 860px; }
.premium-staff-clock {
  overflow: hidden;
  padding: clamp(15px, 3vw, 28px);
  border-radius: 17px;
  color: #fffdf3;
  background-color: #18392e;
  background-image: linear-gradient(102deg, #142f24 3%, #153b2bea 30%, #12332288 66%, #152c1c24 100%), var(--photo-foret);
  background-position: center, right 55%;
  background-size: cover;
  border: 1px solid #294c39;
  box-shadow: inset 0 1px #ffffff22, 0 4px 9px #132f242e, 0 10px 24px #153d2a17;
}

.premium-main .section-hero, .premium-main .clock-box {
  background-color: #18392e;
  background-image: linear-gradient(100deg, #112e24 8%, #173b2cee 40%, #14342582 79%, #0c241333 100%), var(--photo-foret);
  background-position: center, right 52%;
  background-size: cover;
  box-shadow: inset 0 1px #ffffff22, 0 5px 16px #132f242b;
}
.premium-main .section-hero::after { display: none; }
.premium-main .premium-panel, .premium-main .premium-kpi { box-shadow: var(--premium-panel-shadow); }
.premium-staff-clock > p { display: flex; align-items: center; gap: 6px; color: #e4efd1; font-weight: 680; font-size: .84rem; }
.premium-staff-clock h2 { font: normal clamp(1.48rem, 3vw, 2.3rem)/1.14 var(--premium-serif); letter-spacing: -.032em; margin: 6px 0 11px; }
.premium-staff-clock small { display: block; color: #dce8d5; font-size: .86rem; margin-bottom: 8px; }
.premium-staff-clock .btn.premium-lime { border: 1px solid #dceeb1; background: #dceeb1; color: #203d2a; font-weight: 740; padding: 8px 11px; min-height: 41px; box-shadow: none; }
.premium-staff-clock .btn.premium-lime:hover { background: #eff8d7; }
.premium-staff-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.premium-staff-links .btn.premium-staff-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 45px;
  padding: 7px;
  border-radius: 9px;
  border: 1px solid #dfe7dc;
  background: var(--paper);
  color: #375643;
  box-shadow: none;
  text-align: center;
  font-size: .84rem;
}
.premium-staff-links .btn.premium-staff-link:hover { background: var(--premium-soft); }
.premium-mission-list { display: grid; gap: 0; }
.premium-mission-list article { border-top: 1px solid #e3ebe0; padding: 13px 15px; }
.premium-mission-header { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.premium-mission-header time { color: #3d634e; font-weight: 720; font-size: .87rem; font-variant-numeric: tabular-nums; }
.premium-mission-list h3 { margin: 5px 0; font-size: 1rem; line-height: 1.25; }
.premium-mission-location { display: flex; align-items: center; gap: 4px; color: #526f5d; font-size: .84rem; }
.premium-mission-list p { font-size: .89rem; color: #4a6054; line-height: 1.4; margin-top: 5px; }
.premium-mission-list .btn { margin-top: 10px; }
.premium-mission-more { border-top: 1px solid #e3ebe0; }
.premium-mission-more > summary { cursor: pointer; color: #355c46; padding: 11px 15px; font-size: .88rem; font-weight: 680; }

.premium-main .page-heading h1 { font-family: var(--premium-serif); font-weight: 400; letter-spacing: -.05em; font-size: clamp(2rem, 3.6vw, 3.75rem); line-height: 1.06; }
.premium-main .page-heading p { color: #5b6e61; font-size: .96rem; line-height: 1.5; }
.premium-main .eyebrow, .premium-main .record-meta, .premium-main .routine-group { font-size: .78rem; letter-spacing: .06em; }
.premium-main .helper, .premium-main .subtitle, .premium-main .step-card small, .premium-main .check-line { font-size: .875rem; color: #546b5c; }
.premium-main .data-table th, .premium-main .data-table td, .premium-main .data-table td strong { font-size: .875rem; }
.premium-main .data-table td small { font-size: .81rem; color: #647568; }
.premium-main .card-title { font-size: 1.04rem; }
.premium-main .record h3, .premium-main .step-card strong { font-size: .99rem; }
.premium-main .btn, .modal .btn { font-size: .86rem; }
.premium-main .btn.tiny { min-height: 33px; font-size: .81rem; }
.premium-main .table-wrap, .premium-main .data-layout > *, .premium-main .main-grid > *, .premium-main .plan-main > * { min-width: 0; }
.premium-main .table-wrap { max-width: 100%; }
.premium-main .weekly-wrap { overflow: auto; }
.premium-main .task-pill strong, .premium-main .task-pill small { font-size: .75rem; }
.premium-main .task-pill .tag, .premium-main .week-cell.week-head, .premium-main .team-label small { font-size: .75rem; }
.premium-main .tag { font-size: .81rem; }
.premium-main .alert, .modal .helper, .modal .form-field label { font-size: .9rem; }
.premium-main input, .premium-main select, .premium-main textarea, .modal input, .modal select, .modal textarea { font-size: 1rem; }

@media (max-width: 1120px) {
  .premium-sidebar { width: 211px; flex-basis: 211px; padding-left: 12px; padding-right: 12px; }
  .premium-kpi-top { gap: 5px; }
  .premium-kpi-icon { width: 26px; height: 26px; }
  .premium-desk-row { gap: 11px; }
  .premium-panel-head { padding-inline: 12px; }
}

@media (max-width: 940px) and (min-width: 821px) {
  .premium-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-desk-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .premium-sidebar, .premium-location, .premium-profile-name { display: none; }
  .premium-topbar {
    min-height: 64px;
    color: #eef6e9;
    background: #17372d;
    border-bottom-color: #17372d;
    padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }
  .premium-mobile-brand { display: flex; padding: 0; gap: 7px; }
  .premium-mobile-brand strong { font-size: 1.27rem; letter-spacing: -.045em; }
  .premium-mobile-brand .premium-brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .premium-mobile-brand .premium-brand-mark .ico { width: 19px; height: 19px; }
  .premium-icon-button { width: 37px; height: 37px; border-color: #fafdf347; color: #ebf4e7; background: #fafdf316; }
  .premium-icon-button:hover, .premium-icon-button.active { background: #476d55; border-color: #e2ebdb; }
  .premium-icon-button > span { background: #d8eab2; border-color: #17372d; color: #1f3a2a; }
  .premium-profile > summary { color: #dbeed7; gap: 4px; }
  .premium-profile > summary:hover, .premium-profile[open] > summary { background: #fafdf325; }
  .premium-avatar { width: 34px; height: 34px; }
  .premium-main { padding: 20px max(14px, env(safe-area-inset-right)) calc(91px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .premium-mobile-nav {
    z-index: 25;
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: #fcfdf9;
    box-shadow: 0 -5px 22px #1c3b2920;
    border-top: 1px solid #dfe7db;
  }
  .premium-mobile-tab {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.16;
    gap: 4px;
    color: #486657;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 4px 2px;
    min-height: 48px;
    font-size: .78rem;
    font-weight: 660;
    list-style: none;
    text-align: center;
  }
  .premium-mobile-tab .ico { height: 19px; width: 19px; }
  .premium-mobile-tab.active, .premium-mobile-menu[open] > summary, .premium-mobile-tab:hover { background: #e7efdf; color: #214737; border-color: #dce6d6; }
  .premium-mobile-panel {
    position: absolute;
    inset: auto max(8px, env(safe-area-inset-right)) calc(65px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    max-height: 60vh;
    max-height: 60dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    background: #17372d;
    color: #f3f5ed;
    border-radius: 15px;
    padding: 10px;
    gap: 3px 11px;
    box-shadow: 0 -2px 30px #153c2a42;
  }
  .premium-mobile-panel .premium-nav-group { border-top: 0; }
  .premium-mobile-panel button { font-size: .88rem; min-height: 44px; }
  .premium-desk { gap: 13px; }
  .premium-hero { padding-inline: 21px; }
  .premium-kpis { gap: 8px; }
  .premium-desk-row { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .premium-login { grid-template-columns: minmax(0, 1fr); }
  .premium-login-intro {
    padding: 22px max(18px, env(safe-area-inset-right)) 30px max(18px, env(safe-area-inset-left));
    gap: 13px;
    background-image: linear-gradient(103deg, #0a251ff7 0%, #0d2b21b8 67%, #10302248 100%), var(--photo-frondes);
    background-position: center, center 43%;
  }
  .premium-login-brand { font-size: 1.35rem; }
  .premium-login-brand .premium-brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .premium-login-brand .premium-brand-mark .ico { width: 20px; height: 20px; }
  .premium-login-statement { padding: 6px 0 0; margin: 0; }
  .premium-login-statement h1 { font-size: clamp(2.3rem, 8.5vw, 3.6rem); }
  .premium-login-statement p { margin-top: 12px; font-size: .94rem; }
  .premium-login-access { padding: 17px max(13px, env(safe-area-inset-right)) 25px max(13px, env(safe-area-inset-left)); }
  .premium-login-card { padding: 21px; border-radius: 17px; }
  .premium-login-card h2 { margin-bottom: 16px; }
  .premium-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-desk-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 510px) {
  .premium-desk-heading { align-items: flex-start; flex-direction: column; gap: 11px; padding-bottom: 0; }
  .premium-desk-heading h1 { font-size: clamp(2.2rem, 10.1vw, 3.3rem); }
  .premium-desk .btn.premium-outline { min-height: 38px; padding: 7px 9px; }
  .premium-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    min-height: 194px;
    padding: 17px 14px;
    border-radius: 15px;
    background-image: linear-gradient(94deg, #122e25f5 0%, #143a28ca 46%, #143a285c 100%), var(--photo-foret);
  }
  .premium-hero-copy h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .premium-hero-action { margin-top: 13px; }
  .premium-hero-totals { padding: 5px 3px; }
  .premium-hero-totals strong { font-size: 1.4rem; }
  .premium-hero-totals span { font-size: .79rem; }
  .premium-kpi { min-height: 105px; padding: 9px; gap: 7px; }
  .premium-kpi-top { font-size: .86rem; }
  .premium-kpi-foot { font-size: .78rem; }
  .premium-schedule-table { min-width: 360px; }
  .premium-schedule-table th:first-child, .premium-schedule-table td:first-child { padding-left: 11px; }
  .premium-panel-head { gap: 7px; }
  .premium-staff { gap: 12px; }
  .premium-staff-links .btn.premium-staff-link { flex-direction: column; min-height: 62px; font-size: .8rem; }
  .premium-main .metrics[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .toast { min-width: 0; max-width: none; left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
