:root {
  --accent: #006b5c;
  --line: #dfe4e7;
  --muted: #607079;
  --gold: #b19054;
  --ink: #17212a;
  background: #f5f7f8;
  color: var(--ink);
}
body {
  -webkit-font-smoothing: antialiased;
}
button,
a {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.sidebar {
  background: #171e25;
  border: 0;
  color: #f5f7f8;
  width: 244px;
  padding: 30px 22px;
}
.sidebar .brand {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: normal;
}
.sidebar .brand-mark {
  background: #c8ae75;
}
.sidebar .brand-edition {
  color: #b7c4ca;
  font-family: Arial, sans-serif;
}
.sidebar-team {
  border-color: #ffffff1c;
  margin-top: 34px;
  padding: 26px 0;
}
.sidebar .team-avatar {
  background: #ffffff0c;
  color: #d6bc83;
  border-color: #d6bc8350;
}
.sidebar-team div > span,
.sidebar-bottom {
  color: #afbec5;
}
.sidebar nav {
  gap: 10px;
}
.sidebar nav a {
  color: #c2cdd2;
  padding: 14px 12px;
}
.sidebar nav a img,
.sidebar-bottom a img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.sidebar nav a.active {
  background: #ffffff12;
  color: #fff;
  box-shadow: inset 3px 0 #d6bc83;
}
.sidebar nav a:hover {
  background: #ffffff0c;
  color: #fff;
}
.nav-badge {
  background: #c67755;
}
.manager-main {
  margin-left: 244px;
  padding: 42px 46px 24px;
  max-width: 1600px;
}
.manager-header {
  align-items: center;
}
.manager-header-actions {
  display: flex;
  gap: 10px;
}
.manager-header h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.2;
}
.eyebrow {
  color: #657a7e;
  font-size: 10px;
  margin-bottom: 12px;
}
.header-divider {
  padding: 0 8px;
  color: #a88a53;
}
.subheading {
  margin-top: 12px;
  color: #5c6d75;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}
.metrics {
  margin: 30px 0 38px;
  padding: 24px 0;
  gap: 24px;
  border-top: 1px solid #cfd9db;
}
.metrics > div {
  border: 0;
  position: relative;
  padding: 0 20px;
}
.metrics > div:first-child {
  padding-left: 0;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
}
.metrics strong {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: normal;
  line-height: 1;
  color: #006b5c;
  margin-top: 12px;
}
.metrics > div:last-child strong {
  color: #ad684b;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 650;
}
.section-heading > span {
  color: #74818a;
  font-size: 11px;
}
.workspace-grid {
  gap: 22px;
}
.workspace {
  border: 1px solid #dce2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 18px #18262f04;
  background: #fff;
}
.workspace:first-child {
  border-top: 3px solid #b19054;
}
.workspace:last-child {
  border-top: 3px solid #006b5c;
}
.workspace.workspace-s8 {
  border-top-color: #006b5c;
  background: #edf6f1;
}
.workspace.workspace-parioli {
  border-top-color: #b19054;
}
.workspace-top {
  padding: 24px 24px 12px;
}
.workspace-title {
  gap: 10px;
}
.workspace-title h3 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: normal;
}
.workspace-title img {
  color: #006b5c;
  width: 24px;
  height: 24px;
}
.workspace-code {
  border-radius: 4px;
  font-size: 10px;
  padding: 6px 8px;
  background: #edf4f2;
  color: #066451;
  white-space: normal;
}
.workspace:first-child .workspace-code {
  color: #806736;
  background: #f6f2e9;
}
.workspace.workspace-s8 .workspace-code {
  color: #066451;
  background: #edf4f2;
}
.workspace.workspace-parioli .workspace-code {
  color: #806736;
  background: #f6f2e9;
}
.workspace-kicker {
  font-size: 9px;
  color: #73818b;
  margin-bottom: 14px;
}
.workspace-note {
  padding: 8px 24px 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #65747c;
}
.workspace-actions {
  border-top: 1px solid #e8edef;
  padding: 14px 18px;
  background: #fbfcfc;
  gap: 5px;
}
.workspace-actions a,
.workspace-actions button {
  min-height: 40px;
  padding: 10px;
  font-size: 12px;
  border-radius: 4px;
}
.workspace-actions a:hover,
.workspace-actions button:hover {
  background: #eaf3ef;
  color: #006b5c;
}
.workspace-actions a:first-child {
  color: #006b5c;
  font-weight: 700;
}
.workspace-section {
  margin-bottom: 38px;
}
.team-section,
.activity-section,
.mail-section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  scroll-margin-top: 22px;
}
.primary-button {
  background: #006b5c;
  min-height: 44px;
  box-shadow: 0 3px 8px #006b5c12;
}
.primary-button:hover {
  background: #005244;
}
.secondary-button {
  background: #fff;
  border: 1px solid #d7e0e3;
  min-height: 44px;
}
.team-toolbar {
  gap: 16px;
  align-items: center;
}
.segmented {
  background: #e9edef;
  border: 1px solid #e1e6e9;
  padding: 4px;
  gap: 4px;
  border-radius: 6px;
}
.segmented button {
  background: transparent;
  font-size: 11px;
  min-height: 34px;
  padding: 8px 12px;
  white-space: nowrap;
}
.segmented button.active {
  background: #fff;
  color: #005c4d;
  box-shadow: 0 1px 4px #1a2c3514;
}
.search-label input {
  background: #fff;
  min-height: 43px;
  font-size: 12px;
}
.table-wrap {
  border-radius: 0;
  border: 0;
  background: transparent;
}
.members-table {
  table-layout: auto;
}
.members-table thead {
  background: #edf1f3;
}
.members-table th {
  font-size: 9px;
  padding: 15px 12px;
  color: #73818a;
}
.members-table td {
  padding: 19px 12px;
  font-size: 12px;
  border-color: #e1e7e9;
}
.members-table .team-avatar {
  background: #e7f2ef;
  color: #006b5c;
  border: 0;
  width: 38px;
  height: 38px;
}
.member-identity {
  min-width: 0;
  gap: 12px;
}
.member-identity strong {
  overflow-wrap: anywhere;
}
.status-pill {
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 650;
}
.status-pill.active,
.status-pill.delivered {
  background: #d9eee6;
  color: #146a4d;
}
.status-pill.pending,
.status-pill.invited {
  background: #fff0d9;
  color: #88571d;
}
.status-pill.sent {
  background: #e4edf8;
  color: #285f99;
}
.member-actions {
  flex-wrap: wrap;
}
.member-actions button {
  padding: 8px 10px;
  background: #e7f1ed;
  color: #006b5c;
  min-height: 36px;
  font-size: 11px;
}
.member-actions button.danger {
  background: transparent;
  color: #a54c4c;
}
.mail-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.mail-row strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mail-row small {
  display: block;
  color: #76858d;
  line-height: 1.7;
  margin-top: 5px;
}
.mail-row button {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: #006b5c;
  min-height: 40px;
  font-size: 11px;
}
.mail-row .mail-state {
  font-size: 11px;
  color: #626e78;
}
.empty-line {
  font-size: 12px;
  color: #75818a;
  padding: 20px 0;
}
.activity-list {
  background: transparent;
  border: 0;
}
.activity-list li {
  padding: 17px 0;
  border-color: var(--line);
}
.activity-list strong {
  font-size: 11px;
  font-weight: 500;
}
.team-dialog {
  box-shadow: 0 30px 90px #12202936;
  border: 1px solid #e4eaeb;
  border-radius: 8px;
  padding: 30px;
}
.team-dialog::backdrop {
  background: #131c2673;
  backdrop-filter: blur(4px);
}
.team-dialog h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: normal;
}
.team-dialog .eyebrow {
  color: #00725d;
}
.team-dialog input {
  min-height: 48px;
}
.manager-footer {
  border-color: #dce4e6;
  font-size: 10px;
}
.login-page {
  position: relative;
  isolation: isolate;
  background: #171e25;
  grid-template-columns: minmax(380px, 43%) minmax(0, 1fr);
}
.login-main {
  background: #fff;
  padding: 34px 13%;
  position: relative;
  z-index: 2;
  box-shadow: 10px 0 35px #15202a0a;
}
.login-brand {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: normal;
}
.login-brand .brand-mark {
  background: #e6efea;
  width: 37px;
  height: 37px;
}
.login-form {
  max-width: 360px;
  padding: 50px 0;
}
.edition-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 700;
  color: #738079;
}
.edition-rule {
  height: 1px;
  width: 30px;
  background: #b19054;
}
.edition-number {
  margin-left: auto;
  color: #a28b57;
}
.login-form h1 {
  font-family: Georgia, serif;
  font-size: 96px;
  font-weight: normal;
  line-height: 1.05;
  margin: 14px 0 0;
}
.gold-dot {
  color: #b19054;
}
.login-description {
  font-size: 13px;
  margin: 16px 0 38px;
  color: #5f7079;
}
.login-auth-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #23483f;
  margin: 0 0 14px;
}
.login-auth-label img {
  width: 15px;
  height: 15px;
}
.login-privacy {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 20px;
}
.login-privacy:last-child {
  border-top: 1px solid #e3e9e8;
  padding-top: 18px;
  font-size: 10px;
}
.login-map-panel {
  min-width: 0;
  background: #9bb5ac;
}
.login-map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 450;
  background: linear-gradient(180deg, #15262a18 30%, #122b2bba 100%);
  pointer-events: none;
}
.login-map {
  filter: saturate(0.72);
}
.login-map-caption {
  background: none;
  border: 0;
  border-radius: 0;
  bottom: 55px;
  left: 40px;
  right: 40px;
  padding: 0;
  color: #fff;
}
.login-map-caption > span {
  color: #e5d7b4;
  font-size: 10px;
}
.login-map-caption h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 48px;
  margin: 10px 0;
  line-height: 1.15;
}
.login-map-caption p {
  color: #e6eded;
}
.login-footer {
  font-size: 9px;
  line-height: 1.6;
}
.login-map-panel .leaflet-control-attribution {
  background: #fffffff0;
}
.login-form .pending-symbol {
  background: #e5f0eb;
}
[data-page="pending"] .login-form h1,
[data-page="logout"] .login-form h1 {
  font-size: 42px;
}
.agent-page {
  background: #f5f7f8;
  color: #17212a;
}
.agent-header {
  min-height: 82px;
  background: #171e25;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px max(24px, calc((100% - 1160px) / 2));
  gap: 20px;
}
.agent-header .brand {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: normal;
}
.agent-header .brand-mark {
  background: #ccb27b;
}
.agent-edition {
  font-family: Arial, sans-serif;
  font-size: 10px;
  border-left: 1px solid #ffffff35;
  padding-left: 14px;
  margin-left: 6px;
  color: #d6bc83;
}
.agent-signout {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.agent-signout img {
  filter: invert(1);
}
.agent-page main {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}
.agent-intro {
  padding: 40px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.agent-intro h1 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: normal;
}
.agent-day {
  font-size: 12px;
  color: #6d7b84;
  margin-top: 12px;
  text-transform: capitalize;
}
.agent-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.agent-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #deede7;
  color: #006b5c;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
}
.agent-identity strong {
  font-size: 12px;
  display: block;
}
.agent-identity span:not(.agent-avatar) {
  font-size: 10px;
  color: #75818b;
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.agent-identity small {
  display: block;
  margin-top: 7px;
  color: #00705b;
  font-size: 9px;
}
.agent-workflows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0 0 26px;
}
.agent-workflow {
  border-radius: 6px;
  padding: 26px;
  display: block;
}
.workflow-calls {
  background: #006b5c;
  color: #fff;
}
.workflow-zone {
  background: #e3eaf2;
  color: #25405d;
}
.workflow-index {
  font-size: 9px;
  opacity: 0.8;
}
.agent-workflow > div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.agent-workflow img {
  width: 25px;
  height: 25px;
}
.agent-workflow .workflow-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
}
.workflow-calls img {
  filter: invert(1);
}
.agent-workflow h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: normal;
}
.workflow-footer {
  display: block;
  border-top: 1px solid currentColor;
  padding-top: 16px;
  font-size: 11px;
}
.agent-workflow:hover {
  box-shadow: 0 8px 22px #17212a14;
}
.agent-territory {
  position: relative;
  height: 270px;
  background: #baccc3;
  overflow: hidden;
}
.agent-map {
  position: absolute;
  inset: 0;
}
.agent-territory-caption {
  position: absolute;
  z-index: 500;
  bottom: 35px;
  left: 28px;
  color: #162f29;
  background: #ffffffe8;
  padding: 12px 20px;
  border-left: 3px solid #b19054;
  max-width: calc(100% - 56px);
}
.agent-territory-caption > span {
  font-size: 9px;
  color: #6c7d75;
}
.agent-territory-caption h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  margin: 6px 0;
}
.agent-territory-caption p {
  font-size: 10px;
  color: #61736b;
}
.agent-footer {
  max-width: 1160px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #6d7c85;
  font-size: 10px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding: 26px 16px;
  }
  .manager-main {
    margin-left: 210px;
    padding: 32px 26px 20px;
  }
  .login-main {
    padding: 30px 10%;
  }
  .mail-row {
    gap: 12px;
  }
  .member-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 20px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .sidebar .brand-edition {
    display: none;
  }
  .sidebar-team {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-team .team-avatar {
    width: 32px;
    height: 32px;
  }
  .sidebar-team strong {
    font-size: 11px;
  }
  .sidebar-team div > span {
    font-size: 9px;
  }
  .sidebar nav {
    margin-top: 0;
    grid-column: 1/-1;
    display: flex;
    gap: 2px;
    overflow-x: auto;
  }
  .sidebar nav a {
    white-space: nowrap;
    gap: 6px;
    padding: 14px 12px;
    font-size: 10px;
    border-radius: 0;
  }
  .sidebar nav a img {
    width: 15px;
    height: 15px;
  }
  .sidebar nav a.active {
    box-shadow: inset 0 -2px #d6bc83;
    background: transparent;
  }
  .sidebar-bottom {
    display: none;
  }
  .manager-main {
    margin: 0;
    padding: 26px 20px 18px;
  }
  .manager-header h1 {
    font-size: 29px;
  }
  .manager-header .eyebrow {
    font-size: 9px;
  }
  .subheading {
    font-size: 12px;
  }
  .metrics {
    gap: 12px;
    padding: 22px 0;
    margin: 24px 0 28px;
  }
  .metrics > div {
    padding: 0 8px;
  }
  .metrics span {
    font-size: 9px;
    line-height: 1.6;
  }
  .metrics strong {
    font-size: 32px;
  }
  .workspace-grid {
    gap: 16px;
  }
  .workspace-top {
    padding: 20px 20px 12px;
  }
  .workspace-title h3 {
    font-size: 28px;
  }
  .workspace-note {
    padding: 6px 20px 20px;
  }
  .workspace-actions {
    padding: 10px 12px;
  }
  .workspace-section {
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .team-section {
    margin-top: 25px;
    padding-top: 24px;
  }
  .section-heading .primary-button {
    padding: 11px 12px;
    font-size: 11px;
    min-height: 42px;
  }
  .team-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .segmented {
    width: 100%;
    display: flex;
  }
  .segmented button {
    flex: 1;
    padding: 8px 5px;
    font-size: 10px;
  }
  .search-label {
    width: 100%;
  }
  .search-label input {
    width: 100%;
  }
  .members-table,
  .members-table tbody {
    display: block;
    width: 100%;
  }
  .members-table thead {
    display: none;
  }
  .members-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .members-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .members-table td:first-child {
    min-width: 0;
  }
  .members-table td:nth-child(2) { margin:0;align-self:center; }
  .members-table td:nth-child(3) {
    display: block;
    grid-column: 1;
    font-size: 10px;
    color: #72838a;
    margin-left: 50px;
  }
  .members-table td:last-child {
    grid-column: 1/-1;
  }
  .member-actions {
    margin: 0;
    flex-direction: row;
    padding-left: 50px;
  }
  .member-identity strong {
    font-size: 11px;
  }
  .member-identity small {
    font-size: 10px;
  }
  .members-table .team-avatar {
    width: 38px;
    height: 38px;
  }
  .mail-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .mail-row > div:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
  }
  .mail-row > button {
    grid-row: 1/3;
    grid-column: 2;
  }
  .mail-row strong {
    font-size: 11px;
  }
  .activity-list li {
    flex-wrap: wrap;
    gap: 8px;
  }
  .team-dialog {
    padding: 24px;
  }
  .login-page {
    display: block;
    background: #fff;
  }
  .login-main {
    min-height: 100dvh;
    padding: 26px 28px;
    background: #17352e;
    color: #f4f6ef;
  }
  .login-brand .brand-mark {
    background: #d6bc83;
  }
  .login-form .edition-label,
  .login-description,
  .login-privacy,
  .login-footer {
    color: #b8cbc1;
  }
  .login-form .edition-number,
  .login-form .eyebrow {
    color: #d6bc83;
  }
  .login-auth-label {
    color: #e3ede6;
  }
  .login-auth-label img {
    filter: invert(1);
  }
  .login-privacy:last-child {
    border-top-color: #ffffff21;
  }
  .login-notice {
    color: #ffcbb8;
  }
  .login-form {
    margin: auto;
    width: 100%;
    max-width: 370px;
    padding: 42px 0;
  }
  .login-form h1 {
    font-size: 92px;
  }
  .login-map-panel {
    display: none;
  }
  .login-footer {
    gap: 14px;
  }
  .login-description {
    margin-bottom: 32px;
  }
  .agent-header {
    min-height: 74px;
    padding: 20px;
  }
  .agent-header .brand {
    font-size: 23px;
  }
  .agent-page main {
    padding: 0 20px;
  }
  .agent-intro {
    padding: 28px 0;
    display: block;
  }
  .agent-intro h1 {
    font-size: 30px;
  }
  .agent-identity {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .agent-workflows {
    gap: 12px;
  }
  .agent-workflow {
    padding: 20px 16px;
  }
  .agent-workflow > div {
    gap: 10px;
    margin: 22px 0;
  }
  .agent-workflow h2 {
    font-size: 27px;
  }
  .agent-workflow img {
    width: 20px;
    height: 20px;
  }
  .agent-workflow .workflow-arrow {
    display: none;
  }
  .workflow-index {
    font-size: 8px;
  }
  .workflow-footer {
    font-size: 10px;
  }
  .agent-territory {
    height: 220px;
  }
  .agent-territory-caption {
    bottom: 28px;
    left: 18px;
    padding: 16px 20px;
  }
  .agent-footer {
    font-size: 9px;
    padding: 22px 20px;
  }
}
@media (max-width: 360px) {
  .sidebar-team .team-avatar {
    display: none;
  }
  .sidebar nav a {
    padding: 13px 9px;
  }
  .agent-workflows {
    grid-template-columns: 1fr;
  }
  .agent-workflow > div {
    margin: 15px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
