:root {
  --orange: #d39748;
  --orange-dark: #9b6728;
  --orange-soft: #fbf2e6;
  --blue: #54788b;
  --blue-dark: #315361;
  --blue-deep: #203e4a;
  --blue-soft: #eaf1f4;
  --ink: #20343d;
  --muted: #718087;
  --line: #dce5e8;
  --bg: #f3f6f6;
  --white: #fff;
  --green: #6f967f;
  --green-soft: #eaf3ee;
  --red: #b96663;
  --red-soft: #f9eceb;
  --shadow-sm: 0 10px 28px rgba(31, 58, 69, 0.08);
  --shadow: 0 24px 70px rgba(31, 58, 69, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--orange-dark);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(211, 151, 72, 0.28);
  outline-offset: 2px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  background: #f6f7f7;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #203e4a 0%, #54788b 70%, #7293a2 100%);
  color: #fff;
}
.auth-visual:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 95px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  right: -210px;
  top: -175px;
}
.auth-visual:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(211, 151, 72, 0.16);
  border-radius: 50%;
  left: -95px;
  bottom: -110px;
}
.auth-brand,
.auth-copy {
  position: relative;
  z-index: 1;
}
.auth-brand strong {
  display: block;
  font:
    700 35px Georgia,
    serif;
}
.auth-brand span {
  display: block;
  margin-top: 5px;
  color: #d8e6eb;
}
.auth-copy {
  max-width: 620px;
}
.auth-copy h1 {
  margin: 0 0 18px;
  font:
    700 clamp(38px, 5vw, 68px)/1.06 Georgia,
    serif;
}
.auth-copy p {
  margin: 0;
  color: #e0ebef;
  font-size: 17px;
  line-height: 1.7;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.auth-card {
  width: min(500px, 100%);
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(84, 120, 139, 0.14);
  box-shadow: var(--shadow);
}
.auth-card h2 {
  margin: 8px 0 10px;
  font:
    700 31px Georgia,
    serif;
}
.auth-card p {
  line-height: 1.65;
}
.lock-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 25px;
}
.notice {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  line-height: 1.55;
}
.notice.error {
  background: var(--red-soft);
  color: #8c4846;
}
.notice.success {
  background: var(--green-soft);
  color: #4d735e;
}
.btn {
  border: 0;
  border-radius: 13px;
  padding: 11px 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
.btn.orange {
  background: var(--orange);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost {
  background: #f0f3f4;
  color: var(--ink);
}
.btn.danger {
  background: var(--red);
}
.btn.full {
  width: 100%;
}
.btn.small {
  padding: 8px 11px;
  font-size: 11px;
  border-radius: 10px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 850;
}
.field-help {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app {
  display: none;
  min-height: 100vh;
}
.shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 17px;
  background: linear-gradient(180deg, #54788b 0%, #385e6d 58%, #284653 100%);
  color: #fff;
  overflow: auto;
}
.brand {
  padding: 3px 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
}
.brand strong {
  display: block;
  font:
    700 25px Georgia,
    serif;
}
.brand span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #d9e5e9;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e4edf0;
  padding: 11px 12px;
  border-radius: 13px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
}
.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  font-size: 10px;
  font-weight: 900;
}
.sidebar-footer {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: #dce7ea;
  font-size: 11px;
  line-height: 1.55;
}
.main {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 28px;
  background: rgba(243, 246, 246, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(84, 120, 139, 0.1);
}
.topbar-title strong {
  display: block;
  font:
    700 22px Georgia,
    serif;
}
.topbar-title span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.profile-chip b {
  font-size: 11px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue-soft), #dce9ee);
  color: var(--blue-dark);
  font-weight: 900;
}
.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 27px 30px 80px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 3px 0 0;
  font:
    700 34px Georgia,
    serif;
}
.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.span-12 {
  grid-column: span 12;
}
.span-9 {
  grid-column: span 9;
}
.span-8 {
  grid-column: span 8;
}
.span-7 {
  grid-column: span 7;
}
.span-6 {
  grid-column: span 6;
}
.span-5 {
  grid-column: span 5;
}
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(84, 120, 139, 0.14);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card h2,
.card h3 {
  margin: 0;
  font-family: Georgia, serif;
}
.card h2 {
  font-size: 24px;
}
.card h3 {
  font-size: 19px;
}
.card p {
  line-height: 1.55;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, #294a59 0%, #54788b 76%, #6a8d9c 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero:after {
  content: "";
  position: absolute;
  right: -95px;
  top: -110px;
  width: 340px;
  height: 340px;
  border: 66px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 5px 0 11px;
  font:
    700 35px Georgia,
    serif;
}
.hero p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: #e4eef1;
  line-height: 1.6;
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f8fafa);
}
.metric small {
  color: var(--muted);
}
.metric b {
  display: block;
  margin-top: 5px;
  font:
    700 26px Georgia,
    serif;
}
.metric.orange {
  background: var(--orange-soft);
  border-color: #e9d1ad;
}
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 9px;
}
.pill.green {
  background: var(--green-soft);
  color: #4d735e;
}
.pill.orange {
  background: var(--orange-soft);
  color: #865d24;
}
.pill.red {
  background: var(--red-soft);
  color: #904946;
}
.pill.blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.pill.grey {
  background: #eef1f2;
  color: #596970;
}
.tag {
  background: #eef3f5;
  color: #506871;
  padding: 5px 8px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--green);
}
.dot.orange {
  background: var(--orange);
}
.dot.red {
  background: var(--red);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.toolbar-grow {
  flex: 1;
}
.search {
  position: relative;
  min-width: 250px;
  max-width: 390px;
  flex: 1;
}
.search input {
  padding-left: 37px;
}
.search:before {
  content: "⌕";
  position: absolute;
  left: 13px;
  top: 8px;
  color: var(--muted);
  font-size: 18px;
  z-index: 1;
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.list-item.clickable:hover {
  border-color: #b8ccd4;
  box-shadow: 0 7px 18px rgba(41, 73, 85, 0.08);
  cursor: pointer;
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.person .avatar {
  flex: 0 0 auto;
}
.person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.empty {
  padding: 34px 24px;
  text-align: center;
  border: 1px dashed #c5d2d7;
  border-radius: 17px;
  background: linear-gradient(145deg, #fbfcfc, #f5f8f9);
}
.empty h3 {
  margin: 0 0 6px;
  font:
    700 19px Georgia,
    serif;
}
.empty p {
  max-width: 470px;
  margin: 0 auto 15px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #fff;
}
.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table th {
  background: #f8fafa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--muted);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tr.clickable:hover {
  background: #f8fafb;
  cursor: pointer;
}
.split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}
.conversation-list {
  max-height: 680px;
  overflow: auto;
}
.conversation {
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.conversation:hover,
.conversation.active {
  background: var(--blue-soft);
  border-color: #d5e4e9;
  cursor: pointer;
}
.conversation .meta {
  min-width: 0;
  flex: 1;
}
.conversation b,
.conversation small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation small {
  color: var(--muted);
  margin-top: 3px;
}
.thread {
  height: 520px;
  overflow: auto;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 9px;
  background: linear-gradient(145deg, #f8fafa, #f3f6f6);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 15px 15px 15px 4px;
  background: var(--blue-soft);
}
.message.mine {
  margin-left: auto;
  background: var(--orange-soft);
  border-radius: 15px 15px 4px 15px;
}
.message small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.message .attachment {
  display: inline-block;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 10px;
}
.composer textarea {
  min-height: 46px;
  max-height: 120px;
}
.action-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.action-item.done {
  opacity: 0.65;
}
.action-item.done b {
  text-decoration: line-through;
}
.check {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1.5px solid #b8c9cf;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
}
.check.done {
  background: var(--green);
  border-color: var(--green);
}
.goal-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.progress {
  height: 8px;
  background: #e8eef0;
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.score-control {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.score-control input {
  width: 100%;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.material {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.material-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  font-weight: 900;
  margin-bottom: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(19, 39, 47, 0.48);
  backdrop-filter: blur(5px);
}
.modal-backdrop.show {
  display: grid;
}
.modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal.wide {
  width: min(960px, 100%);
}
.modal h2,
.modal h3 {
  font-family: Georgia, serif;
  margin: 6px 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 16px 0;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  padding: 8px 10px;
  border-radius: 10px;
}
.tabs button.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    max-height: 320px;
  }
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .auth-shell {
    display: block;
  }
  .auth-visual {
    min-height: 42vh;
    padding: 38px;
  }
  .auth-panel {
    padding: 22px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 20px 16px 70px;
  }
  .topbar {
    padding: 14px 16px;
  }
  .span-9,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 12;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .auth-visual {
    padding: 28px;
  }
  .auth-panel {
    padding: 14px;
  }
  .auth-card {
    padding: 25px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .nav {
    grid-template-columns: 1fr 1fr;
  }
  .top-actions .profile-chip b {
    display: none;
  }
  .material-grid {
    grid-template-columns: 1fr;
  }
  .composer {
    grid-template-columns: 1fr auto;
  }
  .composer label {
    display: none;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .score-grid {
    grid-template-columns: 1fr;
  }
}

/* SOBENTIE Coach Control v2.1 extensions */
.notice.warning {
  background: #fff6e9;
  color: #845a22;
  border: 1px solid #eed9b8;
  margin-bottom: 18px;
}
.nav button > span {
  width: 20px;
  color: #c7dbe2;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.nav-badge.subtle {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.metrics-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.compact {
  margin: 4px 0 0;
}
.preserve-lines {
  white-space: pre-line;
}
.button-cluster {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.btn.tiny {
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 10px;
}
.dashboard-custom-contents {
  display: contents;
}
.mini-progress {
  width: 90px;
  height: 7px;
  border-radius: 999px;
  background: #e7edef;
  overflow: hidden;
  margin-bottom: 5px;
}
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #89a8b5);
}
.journey-row {
  margin: 13px 0;
}
.journey-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
}
.journey-row .progress {
  height: 8px;
}
.task-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.task-summary > div {
  border: 1px solid var(--line);
  background: #f8fafa;
  border-radius: 15px;
  padding: 14px;
}
.task-summary small {
  display: block;
  color: var(--muted);
}
.task-summary b {
  display: block;
  font:
    700 25px Georgia,
    serif;
  margin-top: 3px;
}
.task-summary .danger-stat {
  background: var(--red-soft);
  border-color: #eed0cf;
}
.task-toolbar,
.library-toolbar {
  margin-bottom: 16px;
}
.task-list {
  display: grid;
  gap: 9px;
}
.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.task-row.overdue {
  border-color: #e2b6b4;
  background: #fffafa;
}
.task-row.done {
  opacity: 0.62;
}
.task-check {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  border: 2px solid #b9cbd2;
  background: #fff;
  color: #fff;
  font-weight: 900;
}
.task-check.done {
  background: var(--green);
  border-color: var(--green);
}
.task-main p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
}
.task-main small {
  color: var(--muted);
}
.task-title-line {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 16px;
}
.calendar-card {
  padding: 16px;
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.calendar-toolbar > div {
  text-align: center;
}
.calendar-toolbar h3 {
  font-size: 22px;
  text-transform: capitalize;
}
.calendar-toolbar p {
  margin: 2px 0;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  padding: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calendar-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.calendar-day {
  min-height: 118px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.calendar-day:hover {
  background: #f8fbfb;
}
.calendar-day.muted-day {
  background: #f7f8f8;
  color: #9aa6ab;
}
.calendar-day.today {
  background: var(--orange-soft);
}
.day-number {
  font-weight: 900;
  font-size: 11px;
  margin-bottom: 7px;
}
.calendar-event {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 5px 6px;
  margin: 3px 0;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event:hover {
  background: #dce9ee;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 16px;
}
.map-card {
  padding: 0;
  overflow: hidden;
}
.map-side {
  max-height: 720px;
  overflow: auto;
}
.toolbar.vertical {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.compact-toolbar {
  margin-top: 9px;
  gap: 6px;
}
.compact-toolbar .btn {
  margin: 0;
}
#clientMap {
  height: 690px;
  width: 100%;
  background: #dfe9ec;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-popup-content {
  line-height: 1.5;
}
.map-popup-button {
  margin-top: 7px;
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.automation-card {
  display: flex;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.automation-card.enabled {
  border-color: #c8ddd1;
  background: linear-gradient(145deg, #fff, #f7fbf9);
}
.automation-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
}
.automation-card.enabled .automation-icon {
  background: var(--green-soft);
  color: #4e785f;
}
.automation-content {
  min-width: 0;
  flex: 1;
}
.automation-content h3 {
  margin: 8px 0 5px;
  font:
    700 19px Georgia,
    serif;
}
.automation-content p {
  color: var(--muted);
  font-size: 12px;
}
.automation-content small {
  display: block;
  margin: 10px 0 13px;
  color: var(--muted);
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5d9;
  transition: 0.2s;
}
.switch span:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:before {
  transform: translateX(18px);
}
.switch-row {
  display: flex;
  align-items: center;
  gap: 9px !important;
  flex-direction: row !important;
}
.switch-row input {
  width: auto;
}
.studio-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.studio-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 850;
}
.studio-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.studio-pane {
  display: none;
}
.studio-pane.active {
  display: block;
}
.sortable-list .list-item {
  border-left: 4px solid var(--blue-soft);
}
.proposal-card {
  padding: 17px;
  border: 1px solid #ead4b0;
  background: var(--orange-soft);
  border-radius: 17px;
}
.proposal-card h3 {
  margin: 10px 0 4px;
  font-family: Georgia, serif;
}
.timeline {
  position: relative;
  margin: 10px 0;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 0 0 18px;
}
.timeline-item > span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid #e6eff2;
}
.timeline-item small {
  display: block;
  color: var(--muted);
}
.timeline-item b {
  display: block;
  margin: 2px 0;
}
.timeline-item p {
  margin: 2px 0;
  color: var(--muted);
}
@media (max-width: 1180px) {
  .metrics-five {
    grid-template-columns: repeat(3, 1fr);
  }
  .automation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agenda-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-side {
    max-height: none;
  }
  #clientMap {
    height: 520px;
  }
}
@media (max-width: 820px) {
  .task-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .task-row {
    grid-template-columns: auto 1fr;
  }
  .task-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .automation-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 90px;
  }
  .calendar-event {
    font-size: 8px;
  }
  .metrics-five {
    grid-template-columns: repeat(2, 1fr);
  }
  #clientMap {
    height: 430px;
  }
}
@media (max-width: 520px) {
  .task-summary,
  .metrics-five {
    grid-template-columns: 1fr;
  }
  .calendar-toolbar {
    grid-template-columns: auto 1fr auto;
  }
  .calendar-toolbar #calendarToday {
    display: none;
  }
  .calendar-weekdays span {
    font-size: 8px;
    padding: 4px;
  }
  .calendar-day {
    min-height: 68px;
    padding: 4px;
  }
  .calendar-event {
    padding: 3px;
    font-size: 0;
  }
  .calendar-event:before {
    content: "•";
    font-size: 13px;
  }
  .task-row {
    grid-template-columns: auto 1fr;
  }
  .task-actions {
    grid-column: 1/-1;
  }
  .map-side {
    padding: 14px;
  }
}

/* SOBENTIE v2.2 progress visuals */
.radar-chart{display:block;width:min(100%,430px);height:auto;margin:0 auto;overflow:visible}.radar-grid{fill:rgba(84,120,139,.025);stroke:#D5E1E5;stroke-width:1}.radar-axis{stroke:#D5E1E5;stroke-width:1}.radar-label{font-size:12px;font-weight:800;fill:#52666F}.radar-shape.latest{fill:rgba(211,151,72,.26);stroke:#D39748;stroke-width:3}.radar-shape.previous{fill:rgba(84,120,139,.08);stroke:#54788B;stroke-width:2;stroke-dasharray:6 5}.radar-point{fill:#D39748;stroke:#fff;stroke-width:2}.legend-row{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}.legend-dot{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}.legend-dot.latest{background:rgba(211,151,72,.45);border:1px solid #D39748}.legend-dot.previous{background:rgba(84,120,139,.12);border:1px dashed #54788B}.weight-chart{display:block;width:100%;height:auto;min-height:240px}.chart-grid{stroke:#E4EBED;stroke-width:1}.chart-label,.chart-unit{fill:#718087;font-size:11px;font-weight:700}.weight-line{fill:none;stroke:#D39748;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.weight-point{fill:#D39748;stroke:#fff;stroke-width:3;filter:drop-shadow(0 2px 4px rgba(31,58,69,.18))}.checkin-compass-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:18px;align-items:center}.compass-score-list{display:grid;gap:8px}.compass-score-list div{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#F8FAFA}.compass-score-list span{color:var(--muted);font-size:11px}.compass-score-list b{font-family:Georgia,serif}.notice.warning{background:var(--orange-soft);color:#865D24}
@media(max-width:820px){.checkin-compass-layout{grid-template-columns:1fr}.radar-label{font-size:10px}}
