:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --ink: #173d31;
  --muted: #6c776f;
  --green: #165b44;
  --green2: #2f7a5c;
  --greenSoft: #e4ede6;
  --red: #aa4242;
  --redSoft: #f7e6e3;
  --amber: #a8660d;
  --amberSoft: #f7ecd9;
  --line: #e6dfd2;
  --shadow:
    0 12px 28px rgba(32, 61, 48, 0.08), 0 2px 5px rgba(32, 61, 48, 0.05);
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.kicker {
  margin: 0 0 7px;
  color: var(--green2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 800;
}
.brand img {
  width: 42px;
  height: 42px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 5%, #e4ede6 0, transparent 35%), var(--bg);
}
.login-card {
  width: min(460px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}
.brand-login {
  margin-bottom: 42px;
}
.login-card h1 {
  margin: 0;
  font-size: 45px;
  letter-spacing: -1.5px;
}
.stack {
  display: grid;
  gap: 17px;
  margin-top: 26px;
}
.stack label,
.dialog-form > label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
}
.stack input,
.dialog-form input,
.dialog-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d1c5;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.stack input:focus,
.dialog-form input:focus,
.dialog-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 91, 68, 0.12);
}
.primary,
.secondary,
.danger-outline {
  min-height: 48px;
  padding: 0 19px;
  border-radius: 13px;
  font-weight: 800;
}
.primary {
  border: 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 7px 18px rgba(22, 91, 68, 0.17);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.danger-outline {
  border: 1px solid #ddafaa;
  background: transparent;
  color: var(--red);
}
.wide {
  width: 100%;
}
.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.74);
}
.sidebar .brand {
  margin: 4px 8px 49px;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav-item {
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #28483d;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
}
.nav-item span {
  width: 25px;
  text-align: center;
  font-size: 23px;
}
.nav-item.active {
  background: var(--greenSoft);
  color: var(--green);
}
.sidebar-user {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}
.sidebar-user small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.small-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--greenSoft);
  font-size: 13px;
  font-weight: 850;
}
.content-shell {
  min-width: 0;
}
.mobile-header {
  display: none;
}
.page {
  display: none;
  padding: 51px clamp(30px, 5vw, 75px) 72px;
}
.active-page {
  display: block;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(43px, 4vw, 62px);
  line-height: 1.03;
  letter-spacing: -2px;
}
.page-header .muted {
  margin: 10px 0 0;
  font-size: 17px;
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 15px;
  margin: 0 auto 14px;
}
.calendar-toolbar h2 {
  text-align: center;
  margin: 0;
  font-size: 28px;
}
.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 28px;
}
.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.legend .green {
  background: #57a262;
}
.legend .amber {
  background: #cb861d;
}
.legend .red {
  background: #c84d4d;
}
.month-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.weekday-row,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekday-row span {
  padding: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.month-grid {
  margin-top: 8px;
}
.calendar-day {
  position: relative;
  min-height: 96px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf9;
  text-align: left;
  color: var(--ink);
}
.calendar-day.outside {
  opacity: 0.4;
}
.calendar-day.selected {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 3px rgba(22, 91, 68, 0.1);
}
.calendar-day.today .day-number {
  background: var(--green);
  color: #fff;
}
.day-number {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}
.day-summary {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.day-summary i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}
.day-summary.green i {
  background: #57a262;
}
.day-summary.amber i {
  background: #cb861d;
}
.day-summary.red i {
  background: #c84d4d;
}
.day-section {
  margin-top: 42px;
}
.day-section h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
}
.day-section .muted {
  margin: 8px 0 21px;
  font-size: 16px;
}
.people-list {
  display: grid;
  gap: 13px;
}
.person-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px;
  min-height: 105px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--greenSoft);
  font-size: 22px;
  font-weight: 850;
}
.person-card h3 {
  margin: 0 0 7px;
  font-size: 25px;
}
.person-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 750;
}
.person-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.person-status.green {
  color: var(--green2);
}
.person-status.green i {
  background: #57a262;
}
.person-status.amber {
  color: var(--amber);
}
.person-status.amber i {
  background: #cb861d;
}
.person-status.red {
  color: var(--red);
}
.person-status.red i {
  background: #c84d4d;
}
.phone-link {
  min-width: 175px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}
.status-detail {
  max-width: 220px;
  color: var(--muted);
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
}
.person-actions {
  min-width: 220px;
  display: grid;
  justify-items: end;
  gap: 9px;
}
.person-actions .status-detail {
  max-width: 260px;
}
.call-unavailable {
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--redSoft);
  color: var(--red);
  text-align: right;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.empty {
  padding: 28px;
  border: 1px dashed #d6ccbd;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(360px, 1fr);
  gap: 24px;
}
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 18px;
  font-size: 25px;
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 10px !important;
}
.check input {
  width: 20px !important;
  min-height: 20px !important;
}
.entry-list {
  display: grid;
  gap: 10px;
}
.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.entry strong,
.entry small {
  display: block;
}
.entry small {
  margin-top: 4px;
  color: var(--muted);
}
.entry button {
  border: 0;
  background: var(--redSoft);
  color: var(--red);
  padding: 8px 11px;
  border-radius: 10px;
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.stat strong {
  display: block;
  font-size: 30px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
th {
  background: #f3eee5;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.user-cell strong,
.user-cell small {
  display: block;
}
.user-cell small {
  margin-top: 4px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--greenSoft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.pill.inactive {
  background: #eee;
  color: #777;
}
.table-action {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 7px 10px;
  color: var(--green);
  font-weight: 750;
}
.account-panel {
  max-width: 600px;
}
.account-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.compact {
  max-width: 430px;
  margin-bottom: 30px;
}
.bottom-nav {
  display: none;
}
.toast {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -130%);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.toast.show {
  transform: translate(-50%, 0);
}
dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 45, 35, 0.25);
}
dialog::backdrop {
  background: rgba(18, 35, 29, 0.45);
  backdrop-filter: blur(3px);
}
.dialog-form {
  display: grid;
  gap: 15px;
  padding: 27px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-head h2 {
  margin: 0;
  font-size: 29px;
}
.close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f1ece3;
  font-size: 25px;
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 220px 1fr;
  }
  .sidebar {
    padding: 28px 16px;
  }
  .sidebar .brand span {
    display: none;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 78px;
  }
  .day-summary span {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    background: #fbf8f1;
  }
  .login-card {
    padding: 30px 23px;
  }
  .app {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .content-shell {
    padding-bottom: 84px;
  }
  .mobile-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top)) 17px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.93);
    backdrop-filter: blur(18px);
  }
  .mobile-header .brand {
    font-size: 18px;
  }
  .mobile-header .brand img {
    width: 33px;
    height: 33px;
  }
  .page {
    padding: 24px 16px 38px;
  }
  .page-header {
    margin-bottom: 25px;
  }
  .page-header h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .page-header .secondary {
    display: none;
  }
  .calendar-toolbar {
    grid-template-columns: 42px 1fr 42px;
  }
  .calendar-toolbar h2 {
    font-size: 22px;
  }
  .icon-button {
    width: 42px;
    height: 42px;
  }
  .legend {
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 11px;
  }
  .month-card {
    padding: 9px;
    border-radius: 18px;
  }
  .weekday-row,
  .month-grid {
    gap: 4px;
  }
  .weekday-row span {
    font-size: 11px;
  }
  .calendar-day {
    min-height: 58px;
    padding: 5px;
    border-radius: 10px;
  }
  .day-number {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
  .day-summary {
    left: 7px;
    bottom: 6px;
  }
  .day-summary span {
    display: none;
  }
  .day-section {
    margin-top: 28px;
  }
  .day-section h2 {
    font-size: 27px;
  }
  .person-card {
    grid-template-columns: 54px 1fr;
    gap: 13px;
    padding: 15px;
  }
  .avatar {
    width: 54px;
    height: 54px;
  }
  .person-card h3 {
    font-size: 22px;
  }
  .phone-link,
  .status-detail {
    grid-column: 1/-1;
    width: 100%;
    max-width: none;
  }
  .phone-link {
    min-height: 54px;
  }
  .status-detail {
    padding: 10px 12px;
    border-radius: 11px;
    background: #f5f0e7;
    text-align: left;
  }
  .person-actions {
    grid-column: 1/-1;
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }
  .person-actions .phone-link,
  .person-actions .status-detail,
  .person-actions .call-unavailable {
    width: 100%;
    max-width: none;
  }
  .person-actions .call-unavailable {
    text-align: left;
  }
  .two-column {
    display: block;
  }
  .two-column .panel + .panel {
    margin-top: 17px;
  }
  .panel {
    padding: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats .stat:last-child {
    grid-column: 1/-1;
  }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(18px);
  }
  .bottom-nav button {
    min-width: 70px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }
  .bottom-nav button span {
    font-size: 20px;
  }
  .bottom-nav button.active {
    color: var(--green);
  }
  .table-panel {
    margin: 0 -5px;
  }
  .page-header .primary {
    min-height: 43px;
    padding: 0 13px;
  }
  .dialog-form {
    padding: 22px;
  }
}
.notice {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #dfc48d;
  border-radius: 12px;
  background: #fff5dc;
  color: #714a08;
  font-size: 14px;
  line-height: 1.45;
}
.notice a {
  color: inherit;
  font-weight: 800;
}
.sidebar .brand {
  max-width: 100%;
  gap: 8px;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.25px;
}
.sidebar .brand img {
  width: 36px;
  height: 36px;
}
.toast {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 40px));
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
button[aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: wait;
  opacity: 0.78;
}
button[aria-busy="true"]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}
.delete-action {
  border-color: #ddafaa;
  color: var(--red);
}
@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}
.brand-login {
  font-size: clamp(18px, 5.5vw, 23px);
}
.sidebar .sidebar-brand {
  align-items: flex-start;
  white-space: normal;
  font-size: 17px;
  line-height: 1.05;
}
.mobile-header .brand span {
  line-height: 1.05;
}
.calendar-day.past {
  cursor: not-allowed;
  opacity: 0.38;
  background: #f0ede6;
}
.calendar-day.past .day-summary {
  display: none;
}
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.creator-credit {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}
.app-credit {
  margin: 0;
  padding: 0 16px 24px;
}
@media (max-width: 700px) {
  .mobile-header .brand {
    font-size: 15px;
  }
  .creator-credit.app-credit {
    padding-bottom: 8px;
  }
}
.onboarding-card {
  width: min(520px, 100%);
}
.onboarding-card .brand-login {
  margin-bottom: 32px;
}
.onboarding-card h1 {
  font-size: clamp(37px, 8vw, 45px);
}
.text-button {
  display: block;
  margin: 18px auto 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
}
.stack input:disabled {
  background: #f1eee8;
  color: var(--muted);
}
.tutorial-card {
  padding: 34px;
  text-align: center;
}
.tutorial-icon {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin: 14px auto 22px;
  border-radius: 28px;
  background: var(--greenSoft);
  font-size: 46px;
}
.tutorial-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1px;
}
.tutorial-card > .muted {
  min-height: 72px;
  margin: 13px auto 20px;
  max-width: 390px;
  font-size: 17px;
  line-height: 1.5;
}
.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 27px;
}
.tutorial-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d2c7;
}
.tutorial-dots i.active {
  width: 25px;
  border-radius: 99px;
  background: var(--green);
}
.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tutorial-actions > div {
  display: flex;
  gap: 9px;
}
.tutorial-actions .text-button {
  margin: 0;
}
.tutorial-actions .secondary,
.tutorial-actions .primary {
  min-width: 105px;
}
.account-panel > .secondary {
  margin-bottom: 4px;
}
@media (max-width: 500px) {
  .tutorial-card {
    padding: 27px 20px;
  }
  .tutorial-icon {
    width: 82px;
    height: 82px;
    font-size: 40px;
  }
  .tutorial-card h2 {
    font-size: 28px;
  }
  .tutorial-card > .muted {
    min-height: 92px;
    font-size: 16px;
  }
  .tutorial-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .tutorial-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tutorial-actions .text-button {
    width: 100%;
  }
}
html {
  -webkit-text-size-adjust: 100%;
}
button,
a {
  touch-action: manipulation;
}
@media (max-width: 700px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
.ha-layout {
  display: grid;
  gap: 20px;
}
.ha-active-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 23px;
  border: 1px solid #b9d8c3;
  border-radius: 18px;
  background: var(--greenSoft);
}
.ha-active-banner small,
.ha-active-banner strong {
  display: block;
}
.ha-active-banner small {
  margin-bottom: 3px;
  color: var(--muted);
}
.ha-active-banner strong {
  font-size: 23px;
}
.status-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  background: #9b9b9b;
  box-shadow: 0 0 0 5px rgba(120, 120, 120, 0.1);
}
.status-dot.green {
  background: #57a262;
  box-shadow: 0 0 0 5px rgba(87, 162, 98, 0.12);
}
.status-dot.amber {
  background: #cb861d;
  box-shadow: 0 0 0 5px rgba(203, 134, 29, 0.12);
}
.status-dot.red {
  background: #c84d4d;
  box-shadow: 0 0 0 5px rgba(200, 77, 77, 0.12);
}
.ha-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ha-server-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-left: 5px solid #57a262;
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ha-server-card.amber {
  border-left-color: #cb861d;
}
.ha-server-card.red {
  border-left-color: #c84d4d;
}
.ha-server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 19px;
}
.ha-server-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ha-server-head strong {
  font-size: 20px;
}
.ha-server-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
}
.ha-server-card dl div {
  min-width: 0;
}
.ha-server-card dt,
.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ha-server-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.ha-server-card a {
  color: var(--green);
}
.ha-error {
  margin: 17px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--redSoft);
  color: var(--red);
  font-size: 13px;
}
.ha-details-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ha-details-panel strong {
  overflow-wrap: anywhere;
}
.ha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 21px;
}
.ha-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
@media (max-width: 900px) {
  .ha-server-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .ha-details-panel {
    grid-template-columns: 1fr;
  }
  .ha-server-card dl {
    grid-template-columns: 1fr 1fr;
  }
  .ha-actions {
    display: grid;
  }
  .ha-actions button {
    width: 100%;
  }
  .bottom-nav button {
    min-width: 54px;
  }
  .bottom-nav button span {
    font-size: 18px;
  }
}
