:root {
  --bg: #f7fcfc;
  --surface: #fff;
  --ink: #203638;
  --muted: #73788d;
  --line: #e8f0f1;
  --accent: #47bdc8;
  --accent2: #73e4ee;
  --soft: #edfeff;
  --teal: #188b82;
  --warn: #a66a18;
  --warnbg: #fff5e4;
  --danger: #b64251;
  --shadow: 0 8px 24px rgba(31, 37, 72, 0.055);
  --radius: 20px;
  --tg-safe: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
.app {
  max-width: 520px;
  min-height: 100dvh;
  margin: auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px
    calc(28px + var(--tg-safe));
}
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}
.back {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  color: var(--ink);
  font-size: 22px;
  display: none;
  box-shadow: 0 2px 8px #20363808;
}
.brand {
  flex: 1;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-weight: 700;
}
.title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  margin: 3px 0;
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.iconbubble {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 21px;
}
.search {
  position: relative;
  margin: 16px 0 14px;
}
.search input {
  width: 100%;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 44px 0 14px;
  outline: none;
  box-shadow: var(--shadow);
}
.search:before {
  content: "⌕";
  position: absolute;
  right: 15px;
  top: 3px;
  font-size: 27px;
  color: var(--muted);
}
.search input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px #73e4ee22;
  outline: none;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 21px 2px 11px;
}
.section-head h2 {
  font-size: 16px;
  margin: 0;
}
.section-head span {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  text-align: right;
  box-shadow: var(--shadow);
  min-height: 111px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.category:after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  left: -24px;
  bottom: -32px;
  border-radius: 50%;
  background: var(--soft);
}
.category .cat-icon {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 9px;
}
.category strong {
  display: block;
  font-size: 14px;
}
.category small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.tool-list {
  display: grid;
  gap: 9px;
}
.tool-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: right;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--ink);
  box-shadow: 0 3px 12px #20363805;
}
.tool-row:active,
.category:active {
  transform: scale(0.99);
}
.tool-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.tool-copy {
  min-width: 0;
  flex: 1;
}
.tool-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.tool-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.chev {
  color: #a4a8b7;
  font-size: 19px;
}
.tag {
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 10px;
  color: var(--teal);
  background: #e8f6f3;
  white-space: nowrap;
}
.tag.review {
  color: var(--warn);
  background: var(--warnbg);
}
.tag.lock {
  color: #647e80;
  background: #eef4f5;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin: 12px 0;
}
.panel h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.panel p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 11px 0;
}
.field label {
  font-size: 12px;
  font-weight: 700;
}
.field small,
.hint {
  font-size: 11px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  height: auto;
  min-height: 78px;
  padding: 10px 12px;
  resize: vertical;
}
.unit-wrap {
  position: relative;
}
.unit-wrap input {
  padding-left: 55px;
}
.unit {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--muted);
  font-size: 12px;
  direction: ltr;
}
.btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  padding: 13px 16px;
  margin-top: 7px;
  box-shadow: 0 7px 16px #47bdc833;
}
.btn.secondary {
  background: #effbfc;
  color: var(--accent);
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.result {
  display: none;
  background: linear-gradient(140deg, #effeff, #f6fbfa);
  border: 1px solid #defafd;
  border-radius: 16px;
  padding: 15px;
  margin-top: 14px;
}
.result.show {
  display: block;
}
.result-kicker {
  font-size: 11px;
  color: var(--muted);
}
.result-value {
  font-size: 27px;
  font-weight: 850;
  color: var(--accent);
  line-height: 1.35;
  direction: ltr;
  text-align: right;
}
.result-note {
  font-size: 12px;
  color: #585d70;
  margin-top: 5px;
}
.notice {
  border-radius: 14px;
  background: var(--warnbg);
  color: #79511e;
  padding: 11px 12px;
  font-size: 12px;
  margin: 12px 0;
}
.info {
  border-radius: 14px;
  background: #f0feff;
  color: #40777c;
  padding: 11px 12px;
  font-size: 12px;
  margin: 12px 0;
}
.danger-note {
  border-radius: 14px;
  background: #fff0f1;
  color: #843542;
  padding: 11px 12px;
  font-size: 12px;
  margin: 12px 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f4;
}
.choice:last-child {
  border-bottom: 0;
}
.choice input {
  margin: 5px 0 0;
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
.choice label {
  font-size: 13px;
  flex: 1;
}
.choice label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.score-pill {
  font-size: 25px;
  font-weight: 850;
  color: var(--accent);
  direction: ltr;
}
.score-desc {
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  background: #edf3f4;
  border-radius: 13px;
  padding: 4px;
  gap: 4px;
  margin: 14px 0;
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 5px;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  background: white;
  color: var(--accent);
  font-weight: 750;
  box-shadow: 0 2px 8px #3331;
}
.source {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
}
.source a {
  display: inline-block;
  margin: 4px 0;
}
.footer-note {
  text-align: center;
  color: #8a8e9f;
  font-size: 12px;
  padding: 24px 12px;
}
.copy-status {
  font-size: 12px;
  color: var(--teal);
  min-height: 22px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 12px;
}
.recent {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 1px 4px;
  scrollbar-width: none;
}
.recent button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 11px;
  white-space: nowrap;
  color: var(--ink);
  font-size: 12px;
}
.small-badge {
  background: #f3feff;
  color: var(--accent);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.hidden {
  display: none !important;
}
@media (min-width: 520px) {
  body {
    background: #ecf4f5;
  }
  .app {
    background: var(--bg);
    box-shadow: 0 0 45px #10333612;
    min-height: 100dvh;
  }
}
@media (max-width: 350px) {
  .app {
    padding-inline: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .title {
    font-size: 21px;
  }
}
.clinical-table bdi {
  white-space: nowrap;
}
.output-details {
  font-size: 14px;
}

.route-option {
  cursor: pointer;
  touch-action: manipulation;
}
.route-option span {
  min-height: 136px;
  padding: 18px 14px 36px;
  border: 2px solid rgba(249, 249, 249, 0.3);
  border-radius: 18px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.route-option strong {
  font-size: 17px;
  padding-inline-end: 26px;
  line-height: 1.7;
}
.route-option small {
  font-size: 14px;
  line-height: 1.7;
}
.route-option span::before {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 22px;
  width: 19px;
  height: 19px;
  border: 2px solid #b8d0d2;
  border-radius: 50%;
  box-sizing: border-box;
}
.route-option span::after {
  content: "برای انتخاب لمس کنید";
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  color: #c9dddf;
}
.route-option input:checked + span {
  border-color: #ff916f;
  background: rgba(255, 110, 66, 0.19);
  box-shadow: 0 0 0 2px rgba(255, 145, 111, 0.15);
}
.route-option input:checked + span::before {
  content: "✓";
  display: grid;
  place-items: center;
  background: #ff916f;
  border-color: #ff916f;
  color: #123235;
  font-size: 14px;
  font-weight: 800;
}
.route-option input:checked + span::after {
  content: "انتخاب شده";
  color: #ffc2ab;
  font-weight: 700;
}
.route-option input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
#routeStatus {
  color: #ffcfbb;
  font-weight: 600;
}
.handoff-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 10px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.9;
}
.handoff-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 5px;
  accent-color: #78f4ff;
}
.handoff-item:has(input:checked) {
  background: #0a656d55;
  border-color: #78f4ff;
}
.handoff-item:focus-within {
  outline: 2px solid #78f4ff;
  outline-offset: 2px;
}

:root {
  color-scheme: dark;
  --bg: #093034;
  --blue: #006972;
  --surface: rgba(249, 249, 249, 0.075);
  --ink: #f9f9f9;
  --muted: rgba(249, 249, 249, 0.68);
  --line: rgba(249, 249, 249, 0.15);
  --accent: #ff6e42;
  --accent2: #ff916f;
  --soft: rgba(255, 110, 66, 0.14);
  --teal: #73d2c5;
  --warn: #ffd28a;
  --warnbg: rgba(255, 179, 72, 0.12);
  --danger: #ff9ca4;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  --radius: 21px;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(0, 78, 114, 0.72), transparent 42%),
    radial-gradient(
      ellipse at 95% 32%,
      rgba(255, 110, 66, 0.13),
      transparent 38%
    ),
    #093034;
  color: #f9f9f9;
}
.app {
  background: transparent;
  max-width: 560px;
}
.top {
  margin-bottom: 20px;
}
.eyebrow {
  color: #ff916f;
}
.title {
  color: #f9f9f9;
}
.sub {
  color: rgba(249, 249, 249, 0.68);
}
.iconbubble,
.back,
.search input,
.tool-section,
.tool-row,
.panel,
.recent button,
.tabs,
.result,
.notice,
.info,
.danger-note {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.iconbubble {
  background: rgba(255, 110, 66, 0.16);
  border: 1px solid rgba(255, 145, 111, 0.25);
  color: #ff916f;
}
.back {
  background: rgba(249, 249, 249, 0.09);
  border-color: var(--line);
  color: #f9f9f9;
}
.search input {
  background: rgba(249, 249, 249, 0.09);
  border: 1px solid var(--line);
  color: #f9f9f9;
  box-shadow: var(--shadow);
}
.search input::placeholder {
  color: rgba(249, 249, 249, 0.55);
}
.search:before {
  color: rgba(249, 249, 249, 0.65);
}
.search input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #ff916f;
  box-shadow: 0 0 0 3px rgba(255, 110, 66, 0.2);
}
.section-head h2 {
  color: #f9f9f9;
}
.section-head span {
  color: rgba(249, 249, 249, 0.62);
}
.tool-section {
  padding: 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(249, 249, 249, 0.16);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(249, 249, 249, 0.105),
    rgba(249, 249, 249, 0.045)
  );
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}
.cat-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 1px 12px;
}
.cat-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 78, 114, 0.62);
  border: 1px solid rgba(114, 193, 218, 0.18);
  color: #f9f9f9;
  font-size: 19px;
}
.cat-copy {
  min-width: 0;
  flex: 1;
}
.cat-copy h2 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  color: #f9f9f9;
}
.cat-copy p {
  font-size: 12px;
  line-height: 1.4;
  margin: 3px 0 0;
  color: rgba(249, 249, 249, 0.62);
}
.cat-count {
  font-size: 10px;
  color: #ffad92;
  background: rgba(255, 110, 66, 0.12);
  border: 1px solid rgba(255, 110, 66, 0.17);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.tool-list {
  gap: 8px;
}
.tool-row {
  background: rgba(9, 38, 52, 0.42);
  border: 1px solid rgba(249, 249, 249, 0.105);
  border-radius: 16px;
  padding: 10px;
  box-shadow: none;
  color: #f9f9f9;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.tool-row:hover {
  background: rgba(0, 78, 114, 0.3);
  border-color: rgba(249, 249, 249, 0.23);
}
.tool-row:active {
  transform: scale(0.985);
}
.tool-icon {
  background: rgba(255, 110, 66, 0.13);
  color: #ff916f;
}
.tool-copy strong {
  color: #f9f9f9;
}
.tool-copy small {
  color: rgba(249, 249, 249, 0.61);
}
.chev {
  color: rgba(249, 249, 249, 0.52);
}
.tag {
  color: #a5eee1;
  background: rgba(75, 184, 164, 0.15);
}
.tag.review {
  color: #ffd28a;
  background: rgba(255, 179, 72, 0.14);
}
.tag.lock {
  color: #d2fbff;
  background: rgba(163, 135, 205, 0.16);
}
.panel {
  background: linear-gradient(
    145deg,
    rgba(249, 249, 249, 0.12),
    rgba(249, 249, 249, 0.055)
  );
  border-color: rgba(249, 249, 249, 0.17);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}
.panel h3 {
  color: #f9f9f9;
}
.panel p {
  color: rgba(249, 249, 249, 0.66);
}
.field label {
  color: #f9f9f9;
}
.field small,
.hint {
  color: rgba(249, 249, 249, 0.63);
}
.field input,
.field select,
.field textarea {
  background: rgba(9, 38, 52, 0.64);
  border-color: rgba(249, 249, 249, 0.16);
  color: #f9f9f9;
}
.field select option {
  background: #093034;
  color: #f9f9f9;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(249, 249, 249, 0.48);
}
.unit {
  color: rgba(249, 249, 249, 0.6);
}
.btn {
  background: #ff6e42;
  color: #093034;
  box-shadow: 0 8px 22px rgba(255, 110, 66, 0.24);
}
.btn.secondary {
  background: rgba(0, 78, 114, 0.65);
  color: #f9f9f9;
  border: 1px solid rgba(249, 249, 249, 0.14);
}
.btn.ghost {
  background: rgba(249, 249, 249, 0.07);
  border-color: var(--line);
  color: #f9f9f9;
}
.result {
  background: linear-gradient(
    145deg,
    rgba(0, 78, 114, 0.55),
    rgba(9, 38, 52, 0.8)
  );
  border-color: rgba(249, 249, 249, 0.16);
}
.result-kicker,
.score-desc {
  color: rgba(249, 249, 249, 0.7);
}
.result-value,
.score-pill {
  color: #ff916f;
}
.result-note {
  color: rgba(249, 249, 249, 0.83);
}
.notice {
  background: rgba(255, 179, 72, 0.12);
  border: 1px solid rgba(255, 210, 138, 0.16);
  color: #ffdfa9;
}
.info {
  background: rgba(0, 78, 114, 0.38);
  border: 1px solid rgba(112, 186, 213, 0.18);
  color: #c8f0f4;
}
.danger-note {
  background: rgba(182, 66, 81, 0.16);
  border: 1px solid rgba(255, 156, 164, 0.16);
  color: #ffc4c8;
}
.choice {
  border-color: rgba(249, 249, 249, 0.1);
}
.choice label {
  color: #f9f9f9;
}
.choice label small {
  color: rgba(249, 249, 249, 0.6);
}
.choice input {
  accent-color: #ff6e42;
}
.tabs {
  background: rgba(9, 38, 52, 0.56);
  border: 1px solid rgba(249, 249, 249, 0.1);
}
.tabs button {
  color: rgba(249, 249, 249, 0.66);
}
.tabs button.active {
  background: rgba(249, 249, 249, 0.13);
  color: #ffad92;
  box-shadow: none;
}
.source {
  border-color: rgba(249, 249, 249, 0.15);
  color: rgba(249, 249, 249, 0.63);
}
.source a {
  color: #ffad92;
}
.footer-note {
  color: rgba(249, 249, 249, 0.5);
}
.copy-status {
  color: #8ee2d2;
}
.empty {
  color: rgba(249, 249, 249, 0.65);
}
.recent button {
  background: rgba(249, 249, 249, 0.07);
  border-color: var(--line);
  color: #f9f9f9;
}
.small-badge {
  background: rgba(0, 78, 114, 0.45);
  color: #c8f0f4;
  border: 1px solid rgba(249, 249, 249, 0.12);
}
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(
        ellipse at 10% 0%,
        rgba(0, 78, 114, 0.72),
        transparent 42%
      ),
      radial-gradient(
        ellipse at 95% 32%,
        rgba(255, 110, 66, 0.13),
        transparent 38%
      ),
      #093034;
  }
  .app {
    background: transparent;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tool-row {
    transition: none;
  }
}
.app {
  padding-bottom: calc(104px + var(--tg-safe));
}
.tabbar {
  position: fixed;
  z-index: 20;
  bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 520px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(249, 249, 249, 0.19);
  background: rgba(9, 38, 52, 0.82);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.tabbar button {
  min-width: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(249, 249, 249, 0.68);
  padding: 7px 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  line-height: 1.3;
}
.tabbar button[aria-current="page"] {
  background: rgba(255, 110, 66, 0.17);
  color: #ffad92;
  font-weight: 750;
}
.tab-icon {
  font-size: 18px;
  line-height: 1.2;
}
.tabbar button:focus-visible {
  outline: 2px solid #ff916f;
  outline-offset: 2px;
}
.route-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 0;
}
.route-option {
  position: relative;
  display: block;
}
.route-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.route-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 80px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 38, 52, 0.42);
  color: #f9f9f9;
}
.route-option strong {
  font-size: 14px;
}
.route-option small {
  font-size: 14px;
  color: rgba(249, 249, 249, 0.65);
}
.route-option input:checked + span {
  border-color: #ff916f;
  background: rgba(255, 110, 66, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 110, 66, 0.1);
}
.route-option input:focus-visible + span {
  outline: 2px solid #ff916f;
  outline-offset: 2px;
}
.induction-block {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(249, 249, 249, 0.12);
  border-radius: 18px;
  background: rgba(9, 38, 52, 0.28);
}
.induction-block h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.induction-block > p {
  margin: 2px 0 9px;
  color: rgba(249, 249, 249, 0.72);
  font-size: 14px;
}
.induction-block .field label {
  font-size: 14px;
}
.induction-block .field small {
  font-size: 12px;
}
.induction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 11px;
}
.induction-grid .field {
  min-width: 0;
}
.induction-output {
  display: none;
}
.induction-output.show {
  display: block;
}
.output-card {
  margin: 10px 0;
  padding: 13px;
  border: 1px solid rgba(249, 249, 249, 0.14);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(0, 78, 114, 0.38),
    rgba(9, 38, 52, 0.46)
  );
}
.output-card h4 {
  margin: 0 0 7px;
  font-size: 14px;
}
.output-row {
  padding: 8px 0;
  border-top: 1px solid rgba(249, 249, 249, 0.09);
}
.output-row:first-of-type {
  border-top: 0;
}
.output-row strong {
  display: block;
  font-size: 14px;
}
.output-row p {
  margin: 3px 0 0;
  color: rgba(249, 249, 249, 0.82);
  font-size: 14px;
}
.output-warn {
  margin: 8px 0;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 138, 0.2);
  background: rgba(255, 179, 72, 0.11);
  color: #ffdfa9;
  font-size: 14px;
}
.output-danger {
  border-color: rgba(255, 156, 164, 0.24);
  background: rgba(182, 66, 81, 0.16);
  color: #ffc4c8;
}
.output-good {
  border-color: rgba(115, 210, 197, 0.2);
  background: rgba(75, 184, 164, 0.1);
  color: #a5eee1;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 8px 0;
}
.metric {
  border-radius: 12px;
  padding: 9px 7px;
  background: rgba(249, 249, 249, 0.065);
  text-align: center;
}
.metric strong {
  display: block;
  font-size: 15px;
}
.metric span {
  font-size: 10px;
  color: rgba(249, 249, 249, 0.64);
}
.checkline {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(249, 249, 249, 0.09);
  font-size: 14px;
}
.checkline:last-child {
  border: 0;
}
.checkline input {
  margin: 5px 0 0;
  accent-color: #ff6e42;
  flex: none;
}
.induction-output .btn {
  margin-top: 8px;
}
#inductionError {
  color: #ffc4c8;
  font-weight: 700;
}
.subfield {
  padding: 9px 11px;
  border: 1px solid rgba(249, 249, 249, 0.13);
  border-radius: 13px;
  background: rgba(9, 38, 52, 0.34);
}
.dose-banner {
  padding: 12px;
  border: 1px solid rgba(255, 145, 111, 0.2);
  border-radius: 14px;
  background: rgba(255, 110, 66, 0.1);
  color: #ffe3da;
  font-size: 14px;
  margin: 8px 0;
}
.induction-block > summary {
  cursor: pointer;
  list-style-position: inside;
  color: #f9f9f9;
  padding: 2px 0;
}
.induction-block > summary .hint {
  display: block;
  margin-inline-start: 21px;
  color: rgba(249, 249, 249, 0.65);
}
.induction-block[open] > summary {
  margin-bottom: 11px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(249, 249, 249, 0.14);
  border-radius: 13px;
  margin: 8px 0;
}
.clinical-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  direction: rtl;
  font-size: 14px;
}
.clinical-table th,
.clinical-table td {
  padding: 9px 7px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid rgba(249, 249, 249, 0.1);
  overflow-wrap: anywhere;
}
.clinical-table th {
  background: rgba(255, 110, 66, 0.12);
  color: #ffe0d5;
  font-size: 14px;
}
.clinical-table tr:last-child td {
  border-bottom: 0;
}
.clinical-table th:first-child {
  width: 32%;
}
.clinical-table th:nth-child(2) {
  width: 36%;
}
.clinical-table th:nth-child(3) {
  width: 32%;
}
.clinical-table td:first-child {
  font-weight: 700;
  color: #fff;
}
.table-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: rgba(249, 249, 249, 0.68);
  font-weight: 400;
}
.volume-option {
  margin: 2px 0;
}
.output-details {
  margin: 9px 0;
  padding: 10px 12px;
  border: 1px solid rgba(249, 249, 249, 0.13);
  border-radius: 13px;
  background: rgba(9, 38, 52, 0.35);
  font-size: 12px;
}
.output-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffb49a;
}
.output-details ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}
.output-details li {
  padding: 3px 0;
  color: rgba(249, 249, 249, 0.78);
}
.output-mini {
  font-size: 12px;
  color: rgba(249, 249, 249, 0.73);
  margin: 3px 0 8px;
}
.output-tight {
  margin: 8px 0;
}
.induction-block {
  padding: 18px;
}
.induction-block h3 {
  font-size: 18px;
}
.induction-block > p,
.induction-block .field label {
  font-size: 16px;
}
.induction-block .field small,
.induction-block .hint {
  font-size: 14px;
}
.induction-block .field input,
.induction-block .field select {
  min-height: 50px;
  font-size: 16px;
}
.induction-output .output-card {
  padding: 17px;
}
.induction-output .output-card h4 {
  font-size: 17px;
}
.metric span {
  font-size: 13px;
}
.clinical-table {
  font-size: 15px;
}
.clinical-table th {
  font-size: 14px;
}
.table-sub {
  font-size: 12px;
}
.medication-table th:first-child {
  width: 27%;
}
.medication-table th:nth-child(2) {
  width: 25%;
}
.medication-table th:nth-child(3) {
  width: 23%;
}
.medication-table th:nth-child(4) {
  width: 25%;
}
@media (max-width: 520px) {
  .medication-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
  .medication-table tbody {
    display: grid;
    gap: 6px;
    padding: 6px;
  }
  .medication-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 9px;
    padding: 7px 9px;
    border: 1px solid rgba(249, 249, 249, 0.13);
    border-radius: 12px;
    background: rgba(249, 249, 249, 0.04);
  }
  .medication-table td {
    border: 0;
    padding: 2px;
    min-width: 0;
  }
  .medication-table td:first-child {
    grid-column: span 2;
    font-size: 16px;
  }
  .medication-table td:last-child {
    grid-column: span 2;
  }
  .medication-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(249, 249, 249, 0.7);
  }
  .medication-table td:nth-child(3) {
    color: #ffcfbc;
  }
}
.induction-output .output-card:has(.medication-table) {
  padding: 10px 12px;
  margin: 7px 0;
  border-radius: 13px;
}
.medication-table th,
.medication-table td {
  padding: 6px 5px;
}
.medication-table .table-sub {
  display: inline;
  margin-inline-start: 4px;
}
.medication-table tr.rsi-row {
  background: rgba(255, 110, 66, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 111, 0.4);
}
.rsi-row td:first-child {
  border-inline-start: 3px solid #ff8b61;
}
.rsi-chip {
  display: inline-block;
  direction: rtl;
  unicode-bidi: isolate;
  border-radius: 7px;
  padding: 1px 6px;
  margin-inline-start: 4px;
  background: #ff6e42;
  color: #093034;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.output-mini a {
  color: #ffb49a;
}
@media (max-width: 360px) {
  .induction-grid {
    grid-template-columns: 1fr;
  }
  .route-option span {
    padding: 10px;
  }
  .metric-grid {
    gap: 4px;
  }
}
.clinical-table select {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  padding: 8px 2px;
  direction: ltr;
}
.clinical-table bdi {
  white-space: nowrap;
}
.output-details {
  font-size: 14px;
}
.dose-alert {
  font-size: 14px;
  margin: 8px 0;
  color: #ffb49a;
}
.tool-copy strong {
  font-size: 16px;
}
.tool-copy small,
.cat-copy p,
.category small {
  font-size: 14px;
}
.cat-copy h2,
.section-head h2 {
  font-size: 17px;
}
.tag,
.cat-count,
.small-badge {
  font-size: 12px;
}
.panel p,
.field label,
.result-note,
.notice,
.info,
.danger-note,
.source,
.hint {
  font-size: 14px;
}
.field small,
.choice label small {
  font-size: 13px;
}
.field input,
.field select,
.field textarea,
.search input {
  font-size: 16px;
}
.btn,
.tabs button {
  min-height: 46px;
  font-size: 15px;
}
.tool-row:focus-visible,
.btn:focus-visible,
.tabbar button:focus-visible,
.back:focus-visible {
  outline: 2px solid #ffb49a;
  outline-offset: 3px;
}
.tabbar button {
  min-height: 52px;
  font-size: 12px;
}
.output-details > summary {
  min-height: 32px;
}
.plan-card {
  border-color: rgba(115, 210, 197, 0.45);
  background: linear-gradient(
    145deg,
    rgba(13, 103, 100, 0.37),
    rgba(9, 38, 52, 0.66)
  );
}
.plan-card h4 {
  color: #a5eee1;
}
.plan-card .clinical-table th:first-child {
  width: 36%;
}
.plan-card .clinical-table th:nth-child(2),
.plan-card .clinical-table th:nth-child(3) {
  width: 32%;
}
.plan-card .clinical-table td:nth-child(3) {
  color: #a5eee1;
  font-weight: 750;
}
.output-details .output-card {
  margin: 6px 0;
  padding: 10px;
}
.output-details p {
  line-height: 1.7;
}
@media (max-width: 520px) {
  .tool-row .tag {
    display: none;
  }
  .tool-row {
    padding: 12px;
  }
  .induction-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plan-card .clinical-table {
    font-size: 14px;
  }
}

.route-option {
  cursor: pointer;
  touch-action: manipulation;
}
.route-option span {
  min-height: 136px;
  padding: 18px 14px 36px;
  border: 2px solid rgba(249, 249, 249, 0.3);
  border-radius: 18px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.route-option strong {
  font-size: 17px;
  padding-inline-end: 26px;
  line-height: 1.7;
}
.route-option small {
  font-size: 14px;
  line-height: 1.7;
}
.route-option span::before {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 22px;
  width: 19px;
  height: 19px;
  border: 2px solid #b8d0d2;
  border-radius: 50%;
  box-sizing: border-box;
}
.route-option span::after {
  content: "برای انتخاب لمس کنید";
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  color: #c9dddf;
}
.route-option input:checked + span {
  border-color: #ff916f;
  background: rgba(255, 110, 66, 0.19);
  box-shadow: 0 0 0 2px rgba(255, 145, 111, 0.15);
}
.route-option input:checked + span::before {
  content: "✓";
  display: grid;
  place-items: center;
  background: #ff916f;
  border-color: #ff916f;
  color: #123235;
  font-size: 14px;
  font-weight: 800;
}
.route-option input:checked + span::after {
  content: "انتخاب شده";
  color: #ffc2ab;
  font-weight: 700;
}
.route-option input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
#routeStatus {
  color: #ffcfbb;
  font-weight: 600;
}

.tabbar {
  max-width: 560px;
  padding: 7px 5px;
  gap: 2px;
}
.tabbar button {
  font-size: 12px;
  min-height: 59px;
  padding: 6px 1px;
  gap: 5px;
}
.tab-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}
.tabbar button[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(255, 145, 111, 0.15);
}
.welcome {
  padding: 18px 4px 24px;
}
.welcome-label {
  font-size: 14px;
  color: #85d2d1;
}
.welcome h1 {
  font-size: 29px;
  line-height: 1.7;
  margin: 8px 0 4px;
  letter-spacing: -0.5px;
}
.welcome-dot {
  color: #ff916f;
}
.welcome p {
  font-size: 17px;
  margin: 0;
  color: #d1e5e7;
}
.home-recent {
  padding-bottom: 12px;
}
.empty-recent {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 20px;
  font-size: 16px;
  line-height: 1.9;
}
.empty-recent span {
  font-size: 14px;
  color: var(--muted);
}
.home-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home-shortcuts button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 9px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(249, 249, 249, 0.055);
  color: var(--ink);
  min-width: 0;
}
.home-shortcuts svg {
  width: 29px;
  height: 29px;
  color: #ffad92;
}
.home-shortcuts strong {
  font-size: 16px;
}
.home-shortcuts span {
  font-size: 14px;
  color: var(--muted);
}
.home-privacy {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  margin: 24px 0 8px;
}
.induction-launch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  min-height: 260px;
  text-align: right;
  border-radius: 24px;
  border: 1px solid rgba(255, 145, 111, 0.42);
  padding: 25px 22px;
  background: linear-gradient(135deg, #185257, #123b3f);
  color: #fff;
  box-shadow: 0 14px 30px #0002;
  margin: 8px 0;
}
.induction-launch strong {
  font-size: 22px;
  line-height: 1.7;
}
.launch-symbol {
  padding: 12px;
  background: rgba(255, 145, 111, 0.15);
  border-radius: 17px;
  color: #ffad92;
}
.launch-symbol svg {
  width: 31px;
  height: 31px;
  display: block;
}
.launch-description {
  font-size: 16px;
  line-height: 1.9;
  color: #c9e0e2;
}
.launch-action {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 16px;
  color: #ffb39a;
  font-weight: 700;
}
.webinar-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 0 0 22px;
}
.webinar-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.webinar-poster a {
  text-decoration: none;
  color: inherit;
}
.poster-caption {
  padding: 14px;
  font-size: 16px;
}
.poster-caption span {
  display: block;
  color: var(--accent2);
  font-size: 14px;
  margin-top: 5px;
}
.profile-card {
  padding: 22px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  text-align: center;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 23px;
  background: var(--soft);
  color: #ffad92;
  font-size: 29px;
}
.profile-avatar svg {
  width: 32px;
  height: 32px;
}
.profile-card h2 {
  font-size: 22px;
}
.profile-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.profile-card dl {
  text-align: right;
  margin-top: 22px;
}
.profile-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.profile-card dt {
  font-size: 14px;
  color: var(--muted);
}
.profile-card dd {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.verified-label {
  color: #85d2d1;
  font-size: 14px;
}
.save-error {
  color: #ffb39a;
  font-size: 14px;
}
.text-button {
  background: none;
  border: 0;
  color: #ffad92;
  min-height: 44px;
  font-size: 14px;
}
.admin-poster {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  margin: 12px 0;
}
.admin-table {
  overflow-x: auto;
  margin: 14px 0;
}
.admin-table table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.admin-table td,
.admin-table th {
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  overflow-wrap: anywhere;
}
.admin-table small {
  display: block;
}
.field input[type="file"] {
  height: auto;
  min-height: 48px;
  padding: 10px;
  font-size: 14px;
}
.metric span {
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.output-details p {
  line-height: 1.9;
}
.tool-row:focus-visible,
.induction-launch:focus-visible,
.home-shortcuts button:focus-visible {
  outline: 2px solid #ffad92;
  outline-offset: 3px;
}
@media (max-width: 360px) {
  .tabbar button {
    font-size: 11px;
  }
  .home-shortcuts {
    gap: 8px;
  }
  .home-shortcuts button {
    padding: 15px 10px;
  }
  .welcome h1 {
    font-size: 26px;
  }
  .induction-launch strong {
    font-size: 20px;
  }
  .tool-row .tag {
    display: none;
  }
}

:root {
  --accent: #16cedf;
  --accent2: #65eefa;
  --soft: rgba(35, 164, 227, 0.15);
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  flex: none;
}
.eyebrow {
  color: #72f3ff;
  font-size: 15px;
}
.btn {
  background: #08aab9;
  color: #fff;
  box-shadow: 0 7px 16px #00b4c422;
}
.btn.ghost {
  background: transparent;
  color: #d9fcff;
  box-shadow: none;
}
.tabbar button[aria-current="page"] {
  background: rgba(40, 165, 226, 0.18);
  color: #84f5ff;
  box-shadow: inset 0 0 0 1px #54e0ed30;
}
.welcome-dot,
.launch-action,
.home-shortcuts svg,
.text-button,
.output-details > summary {
  color: #83f5ff;
}
.launch-symbol,
.profile-avatar {
  color: #85f5ff;
  background: #24becc20;
}
.induction-launch {
  border-color: #49f0ff65;
  background: linear-gradient(135deg, #125f66, #103c40);
}
.small-badge {
  color: #b9f9ff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #65eefa;
  box-shadow: 0 0 0 3px #16cedf22;
}
.route-option input:checked + span {
  border-color: #65eefa;
  background: #16cedf22;
  box-shadow: 0 0 0 2px #16cedf18;
}
.route-option input:checked + span::before {
  background: #65eefa;
  border-color: #65eefa;
}
.route-option input:checked + span::after,
#routeStatus {
  color: #a0f7ff;
}
.brand-credit {
  margin: 25px 0 5px;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
  color: #bbdcdf;
}
.brand-credit strong {
  font-weight: 500;
  display: block;
}
.brand-credit a {
  display: inline-block;
  color: #72f3ff;
  padding: 5px;
  min-height: 36px;
  text-decoration: none;
}
.app-status {
  font-size: 14px;
  color: #a7f8ff;
  min-height: 0;
  margin: 8px 0;
}
.app-status:empty {
  display: none;
}
.tool-with-favorite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
}
.tool-with-favorite .tool-row {
  box-shadow: none;
  min-width: 0;
}
.tool-with-favorite .tag {
  display: none;
}
.favorite-button {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff05;
  color: #9bc2c5;
  font-size: 26px;
  line-height: 1;
}
.favorite-button[aria-pressed="true"] {
  color: #83f5ff;
  background: #16cedf18;
  border-color: #45d9e64d;
}
.favorite-button:focus-visible {
  outline: 2px solid #83f5ff;
  outline-offset: 2px;
}
.favorite-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.home-favorites {
  margin-bottom: 23px;
}
.home-favorites .hint {
  font-size: 14px;
  line-height: 1.9;
}
.patient-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 15px;
}
.patient-bar span {
  font-size: 13px;
  color: #adced1;
  max-width: 65%;
  line-height: 1.8;
}
.patient-bar button {
  border: 1px solid #58d8e45c;
  border-radius: 12px;
  min-height: 44px;
  background: #13c8d911;
  padding: 8px 12px;
  color: #abf8ff;
  font-size: 14px;
  white-space: nowrap;
}
.result-jumps {
  display: flex;
  gap: 7px;
  margin: 12px 0;
}
.result-jumps button {
  flex: 1;
  padding: 10px 8px;
  min-height: 44px;
  font-size: 15px;
  border-radius: 13px;
  background: #16cedf17;
  color: #a1f7ff;
  border: 1px solid #54ddea48;
}
#inductionDrugs,
#inductionEquipment,
#inductionNotes {
  scroll-margin-top: 15px;
}
.report-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.report-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-item select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #123e42;
  font-size: 16px;
}
.report-item label {
  display: block;
  font-size: 14px;
  margin: 8px 0;
}
.issue-box {
  margin-top: 18px;
}
.issue-box p {
  font-size: 14px;
}
.field input[type="datetime-local"] {
  min-width: 0;
  font-size: 15px;
  direction: ltr;
}
button:disabled {
  opacity: 0.55;
}
.home-shortcuts button:focus-visible,
.tool-row:focus-visible,
.induction-launch:focus-visible {
  outline-color: #83f5ff;
}

.anesta-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 7px 0 20px;
  padding: 16px;
  border: 1px solid rgba(110, 202, 248, 0.23);
  border-radius: 24px;
  background: linear-gradient(
    115deg,
    rgba(13, 74, 103, 0.85),
    rgba(12, 43, 59, 0.94)
  );
  box-shadow:
    0 12px 32px #0002,
    inset 0 1px 0 #ffffff09;
  overflow: hidden;
}
.anesta-header::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  border-radius: 3px;
  background: #55ecfa;
}
.anesta-header .brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 5px #ffffff07;
  flex: none;
}
.anesta-header .brand {
  min-width: 0;
}
.anesta-header .eyebrow {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 800;
  color: #e4fdff;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.anesta-header .eyebrow span {
  font-size: 19px;
}
.anesta-header .title {
  font-size: 15px;
  font-weight: 500;
  color: #a9e7ed;
  line-height: 1.7;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.anesta-header .sub {
  font-size: 13px;
  color: #9dcbcf;
  margin-top: 2px;
}
.anesta-header .sub:empty {
  display: none;
}
.anesta-header .back {
  flex: none;
  width: 40px;
  height: 44px;
  background: #ffffff08;
  border-color: #83f5ff2a;
  box-shadow: none;
  color: #b9f6fc;
  font-size: 27px;
  border-radius: 14px;
  margin-inline-start: auto;
}
.app-toast {
  position: fixed;
  z-index: 1000;
  top: calc(
    12px + max(env(safe-area-inset-top, 0px), var(--telegram-top, 0px))
  );
  left: 50%;
  width: min(calc(100% - 28px), 520px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px 13px 15px;
  border-radius: 21px;
  border: 1px solid #84f5ff4d;
  background: rgba(19, 52, 68, 0.98);
  color: #f0feff;
  box-shadow:
    0 16px 50px #0005,
    0 2px 8px #0002;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s;
  pointer-events: none;
}
.app-toast[hidden] {
  display: none;
}
.app-toast.toast-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.toast-mark {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #54caaf22;
  color: #8ee2d2;
  font-size: 20px;
  font-weight: 700;
}
.app-toast[data-kind="error"] {
  border-color: #f0b78060;
}
.app-toast[data-kind="error"] .toast-mark {
  background: #edab6322;
  color: #ffce97;
}
.toast-copy {
  min-width: 0;
  flex: 1;
}
.toast-brand {
  display: block;
  font-size: 12px;
  color: #91e0e7;
  margin-bottom: 2px;
}
#toastMessage {
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#dismissToast {
  width: 38px;
  min-height: 44px;
  flex: none;
  border: 0;
  background: transparent;
  color: #a9d8dc;
  font-size: 25px;
  border-radius: 12px;
}
#dismissToast:focus-visible {
  outline: 2px solid #83f5ff;
}
.copy-status:empty {
  display: none;
}
@media (max-width: 360px) {
  .anesta-header {
    padding: 13px;
    gap: 11px;
  }
  .anesta-header .brand-logo {
    width: 50px;
    height: 50px;
  }
  .anesta-header .eyebrow {
    font-size: 21px;
  }
  .app-toast {
    gap: 9px;
    padding: 11px;
  }
  #toastMessage {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-toast {
    transition: none;
  }
}

.score-group {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0 5px;
  margin: 12px 0;
  min-width: 0;
}
.score-group legend {
  font-weight: 750;
  font-size: 16px;
  padding: 0 4px;
}
.score-group .choice {
  padding: 12px 0;
}
.choice label {
  font-size: 15px;
  line-height: 1.7;
}
.choice input {
  min-width: 20px;
  min-height: 20px;
}
.tool-error {
  color: #ffb4a6 !important;
  min-height: 0;
  font-size: 15px !important;
}
.tool-error:empty {
  display: none;
}
.tool-table {
  font-size: 14px !important;
  table-layout: auto !important;
}
.tool-table th,
.tool-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 12px 7px !important;
}
.tool-table th {
  font-size: 14px !important;
}
.tool-table td {
  font-size: 15px !important;
}
.tool-table th:first-child {
  width: auto !important;
}
.copy-report {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #093034;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.9;
}
.btn:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
}
.result p {
  font-size: 15px !important;
}
.bromage-sides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.panel .field label {
  font-size: 15px;
}
.panel .field input,
.panel .field select {
  min-height: 48px;
}
.panel .tabs button {
  font-size: 14px;
}
.patient-bar span {
  font-size: 12px;
}
#bromageHistory {
  margin-top: 20px;
}
.result-value {
  overflow-wrap: anywhere;
}

:root {
  --header-offset: 170px;
  --result-ink: #a7f8ff;
}
html {
  scroll-padding-top: var(--header-offset);
}
.anesta-header {
  position: sticky;
  top: max(env(safe-area-inset-top, 0px), var(--telegram-top, 0px));
  z-index: 30;
  display: block;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 43, 59, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
}
.header-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-home {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  flex: none;
  min-width: 44px;
  min-height: 44px;
}
.anesta-header .brand-logo {
  width: 44px;
  height: 44px;
}
.anesta-header .eyebrow {
  font-size: 15px;
  line-height: 1.5;
  color: #9dd7dc;
}
.anesta-header .eyebrow span {
  font-size: 15px;
}
.anesta-header .title {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.65;
  color: #f1feff;
  margin: 0;
}
.anesta-header .sub {
  font-size: 14px;
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.header-actions button,
.anesta-header .back {
  width: auto;
  height: auto;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #76effa35;
  border-radius: 11px;
  background: #43d8e512;
  color: #c9fbff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.header-actions button:not([hidden]) {
  display: inline-flex;
}
.header-actions svg {
  width: 18px;
  height: 18px;
}
.header-actions #headerResults {
  margin-inline-start: auto;
  background: #0c8893;
  color: #fff;
  border-color: #77f1fc70;
}
.header-actions [hidden] {
  display: none !important;
}
.header-actions button:focus-visible,
.brand-home:focus-visible {
  outline: 3px solid #83f5ff;
  outline-offset: 3px;
}
.tabbar button {
  font-size: 12px;
}
.panel p,
.result p {
  line-height: 1.9;
}
.panel p:not(.hint):not(.tool-error),
.choice label {
  font-size: 16px;
}
.field small,
.patient-bar span,
.result-kicker,
.score-desc {
  font-size: 14px;
}
.result {
  border: 1px solid #66e2ed65;
  border-inline-start: 4px solid #71effa;
  background: linear-gradient(120deg, #0a5258, #10393d);
  padding: 16px;
}
.result-value,
.score-pill {
  color: var(--result-ink);
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.result > strong,
.result > p > strong {
  color: var(--result-ink);
  font-size: 18px;
}
.result .tool-table td:nth-child(2),
#inductionEquipment .clinical-table td:nth-child(2) {
  color: var(--result-ink);
  font-weight: 750;
  font-size: 16px !important;
}
.result .tool-table td small {
  font-weight: 400;
  color: #b7d4d7;
}
.medication-table td[data-label="مقدار کل"] {
  color: var(--result-ink) !important;
  font-weight: 800 !important;
}
.medication-table td[data-label="دوز انتخابی"] {
  font-weight: 700;
}
.result .result-summary {
  color: #d7fcff;
  font-weight: 700;
  font-size: 17px !important;
}
.result .hint {
  font-weight: 400;
  color: #b7d3d5;
}
.result .dose-alert {
  color: #ffbfad !important;
  font-weight: 750;
}
.copy-report {
  font-size: 16px;
  font-weight: 550;
  color: #e4fdff;
  border-color: #71effa60;
}
.result:focus,
#inductionOutput:focus {
  outline: 2px solid #83f5ff;
  outline-offset: 4px;
}
#inductionDrugs,
#inductionEquipment,
#inductionNotes,
.result,
#inductionOutput {
  scroll-margin-top: 16px;
}
@media (max-width: 360px) {
  .anesta-header {
    padding: 10px;
  }
  .anesta-header .title {
    font-size: 16px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions button,
  .anesta-header .back {
    padding: 7px 9px;
  }
  .tabbar button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.action-dock {
  position: fixed;
  z-index: 21;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 540px);
  bottom: calc(
    var(--bottom-nav-height, 85px) + 19px + env(safe-area-inset-bottom, 0px)
  );
  padding: 7px;
  border: 1px solid #78e2ec55;
  border-radius: 17px;
  background: #093034f5;
  box-shadow: 0 6px 25px #0005;
}
.action-dock[hidden],
.keyboard-open .action-dock {
  display: none;
}
.action-dock button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: #08aab9;
  color: white;
  font-size: 16px;
  font-weight: 750;
  padding: 10px;
}
.with-action .app {
  padding-bottom: calc(
    var(--bottom-nav-height, 85px) + 100px + env(safe-area-inset-bottom, 0px)
  );
}
.result-heading {
  font-size: 14px;
  color: #b0dfe3;
  margin-bottom: 8px;
  font-weight: 650;
}
.result-overview {
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid #8bf1fa35;
  margin-bottom: 10px;
}
.result-overview > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}
.result-overview span {
  font-size: 15px;
}
.result-overview strong {
  font-size: 20px;
  color: #a7f8ff;
  overflow-wrap: anywhere;
}
.term-help {
  margin: 8px 0 12px;
  font-size: 14px;
}
.term-help > summary {
  display: inline-block;
  cursor: pointer;
  color: #a7f0f7;
  border-bottom: 1px dashed #71cad2;
  padding: 5px 0;
  min-height: 36px;
  list-style: none;
}
.term-help > summary::before {
  content: "؟";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 7px;
  border: 1px solid #79e2eb66;
  border-radius: 50%;
  font-weight: bold;
}
.term-help p {
  background: #0d4247;
  border: 1px solid #78e2ec33;
  border-radius: 12px;
  padding: 12px;
  line-height: 1.9;
  color: #d1eef1 !important;
  margin-top: 6px !important;
}
.field-help {
  margin: 0;
}
.copy-result {
  margin-top: 15px;
}
.result-overview.induction-overview {
  padding: 16px;
  background: #0b5157;
  border: 1px solid #8bf1fa55;
  border-radius: 15px;
}
.induction-overview p {
  margin: 3px 0;
  font-size: 15px;
}
.induction-overview .overview-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.overview-links button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #85e6ef55;
  background: #12838d;
  color: #fff;
  border-radius: 10px;
  font: inherit;
}
.copy-fallback {
  margin-top: 12px;
}
.term-help summary:focus-visible,
.action-dock button:focus-visible {
  outline: 3px solid #83f5ff;
  outline-offset: 3px;
}
html[data-text-size="large"] body {
  font-size: 18px;
}
html[data-text-size="large"]
  :is(
    .panel p,
    .field label,
    .field input,
    .field select,
    .field textarea,
    .choice label,
    .btn,
    .action-dock button,
    .tabs button,
    .tool-copy strong,
    .tool-copy small,
    .output-details,
    .result-note,
    .result-summary,
    .clinical-table td,
    .clinical-table th,
    .copy-report
  ) {
  font-size: 18px !important;
  line-height: 1.85 !important;
}
html[data-text-size="large"]
  :is(
    .hint,
    .field small,
    .table-sub,
    .patient-bar span,
    .result-kicker,
    .footer-note,
    .term-help,
    .header-actions button,
    .home-privacy
  ) {
  font-size: 16px !important;
  line-height: 1.85;
}
html[data-text-size="large"] :is(.field input, .field select) {
  height: auto;
  min-height: 54px;
  padding-block: 8px;
}
html[data-text-size="large"] .tabbar button {
  font-size: 14px;
}
html[data-text-size="large"] .anesta-header .title {
  font-size: 21px;
}
html[data-text-size="large"] .result-value {
  font-size: 34px;
}
html[data-text-size="large"] .form-grid,
html[data-text-size="large"] .induction-grid {
  grid-template-columns: 1fr;
}
html[data-text-size="large"] .result-overview strong {
  font-size: 24px;
}
html[data-text-size="large"] .patient-bar {
  flex-wrap: wrap;
}
html[data-text-size="large"] .patient-bar span {
  max-width: 100%;
}

.mabl-lab {
  width: 100%;
  min-width: 0;
}
.mabl-lab select {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
  padding-inline: 14px;
}
.mabl-results {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.mabl-results th {
  text-align: right;
  font-weight: 600;
  color: #e1f6f8;
  background: transparent !important;
  width: 60% !important;
}
.mabl-results td {
  text-align: left;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #a7f8ff !important;
}
.mabl-results tr:last-child > * {
  border-bottom: 0;
}
.handoff-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 10px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.9;
}
.handoff-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 5px;
  accent-color: #78f4ff;
}
.handoff-item:has(input:checked) {
  background: #0a656d55;
  border-color: #78f4ff;
}
.handoff-item:focus-within {
  outline: 2px solid #78f4ff;
  outline-offset: 2px;
}

.anesta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 11px;
  margin: 0 0 18px;
  border-radius: 20px;
  border: 1px solid #76effa26;
  background: linear-gradient(110deg, #104a4fed, #09373bed);
  box-shadow:
    0 8px 24px #00000020,
    inset 0 1px 0 #ffffff08;
  overflow: visible;
}
.anesta-header::after {
  display: none;
}
.anesta-header .brand {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.anesta-header .sub,
.anesta-header .eyebrow {
  display: none;
}
.anesta-header .title {
  font-size: 16px !important;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
  color: #eafdff;
}
.anesta-header[data-home="true"] .title {
  display: none;
}
.anesta-header[data-home="true"] .brand {
  text-align: right;
}
.anesta-header[data-home="true"] .eyebrow {
  display: block;
  color: #eafdff;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: 0;
}
.anesta-header[data-home="true"] .eyebrow span {
  font-size: 21px;
  margin-inline-start: 5px;
}
.anesta-header .brand-home {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  padding: 2px;
  background: #ffffff08;
  border: 1px solid #76effa32;
}
.anesta-header .brand-logo {
  width: 38px;
  height: 38px;
  box-shadow: none;
  object-fit: contain;
}
.anesta-header[data-inner="true"] .brand-home {
  display: none;
}
.anesta-header #headerSearch,
.anesta-header .back {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
  margin: 0;
  border-radius: 14px;
  background: #52d8e410;
  border: 1px solid #76effa22;
  color: #9bf3fb;
  box-shadow: none;
}
.anesta-header svg {
  width: 23px;
  height: 23px;
}
.anesta-header button:focus-visible {
  outline: 2px solid #83f5ff;
  outline-offset: 3px;
}
.anesta-header button:active {
  background: #52d8e42c;
  transform: scale(0.96);
}
.action-dock {
  display: flex;
  gap: 7px;
}
.action-dock #dockCalculate {
  flex: 1;
  min-width: 0;
}
.action-dock #headerResults {
  width: auto;
  flex: 0 0 auto;
  background: #175358;
  border: 1px solid #78e2ec45;
  color: #bcf9ff;
  font-size: 13px;
  padding: 9px;
}
.action-dock #headerResults[hidden] {
  display: none;
}
@media (max-width: 360px) {
  .anesta-header {
    gap: 7px;
    padding: 8px;
  }
  .anesta-header .title {
    font-size: 15px !important;
  }
  .action-dock #headerResults {
    font-size: 12px;
  }
}

.admin-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
.admin-tabs button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #78e2ec33;
  border-radius: 13px;
  color: #bcf9ff;
  background: #124347;
}
.admin-tabs button[aria-pressed="true"] {
  background: #08aab9;
  color: white;
  border-color: #79f4ff;
}
.admin-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.admin-metrics article {
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  background: linear-gradient(135deg, #12565c, #103b3f);
  border: 1px solid #78e2ec33;
  border-radius: 18px;
}
.admin-metrics strong {
  font-size: 30px;
  color: #9ff7ff;
}
.admin-metrics span {
  font-size: 13px;
  color: #d1ecee;
}
.admin-usage {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #78e2ec22;
}
.admin-usage strong {
  color: #9ff7ff;
}
.admin-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.admin-pager span {
  flex: 1;
  text-align: center;
  font-size: 12px;
}
.admin-pager .btn {
  width: auto;
  font-size: 13px;
}
.admin-table small {
  display: block;
  font-size: 12px;
  color: #b8d5d8;
  white-space: normal;
}
.poster-mobile {
  max-width: 350px;
  margin: 15px auto;
  border: 1px solid #78e2ec44;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #124044;
}
.poster-mobile img {
  width: 100%;
  height: auto;
}
.poster-mobile strong,
.poster-mobile span {
  padding: 9px 12px;
}
.home-announcement {
  position: relative;
  padding: 16px 18px;
  border: 1px solid #7bf4ff55;
  border-radius: 18px;
  background: linear-gradient(120deg, #105a61, #123b3f);
  margin: 14px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.home-announcement strong {
  display: block;
  color: #c0faff;
  padding-inline-end: 25px;
}
.home-announcement p {
  font-size: 14px;
  line-height: 1.9;
}
.home-announcement > button {
  position: absolute;
  inset-inline-end: 6px;
  top: 5px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: #bcf9ff;
  font-size: 23px;
}
.report-item small {
  overflow-wrap: anywhere;
}
.admin-tabs button:focus-visible {
  outline: 2px solid #9ff7ff;
  outline-offset: 2px;
}

:root {
  --bg: #082c36;
  --surface: #123e49;
  --ink: #f3fafa;
  --muted: #a8c3c8;
  --line: #31545e;
  --accent: #12c8cc;
  --accent2: #8ae8e5;
  --soft: #12c8cc14;
  --teal: #8ae8e5;
  --warn: #f4bd63;
  --warnbg: #f4bd6314;
  --danger: #f48a83;
  --result-ink: #8ae8e5;
  --blue: #0c3540;
  --shadow: 0 8px 24px #0000001f;
}
body {
  background: #082c36;
  color: #f3fafa;
}
a {
  color: #8ae8e5;
}
.panel,
.category,
.tool-row,
.induction-block,
.home-shortcuts button,
.profile-card {
  background: #123e49;
  border-color: #31545e;
}
.anesta-header {
  background: linear-gradient(115deg, #123e49f5, #082c36f5);
  border-color: #8ae8e52a;
}
.anesta-header .title,
.anesta-header[data-home="true"] .eyebrow {
  color: #f3fafa;
}
.anesta-header #headerSearch,
.anesta-header .back {
  color: #8ae8e5;
  background: #12c8cc0c;
  border-color: #8ae8e52a;
}
.brand-home {
  background: #f3fafa08;
}
.btn:not(.ghost):not(.secondary),
.action-dock #dockCalculate,
.admin-tabs button[aria-pressed="true"] {
  background: #12c8cc;
  color: #082c36;
  border-color: #12c8cc;
  box-shadow: none;
}
.btn.ghost,
.btn.secondary {
  color: #8ae8e5;
  background: #12c8cc08;
  border-color: #31545e;
}
.tabbar,
.action-dock {
  background: #082c36f5;
  border-color: #31545e;
}
.tabbar button {
  color: #a8c3c8;
}
.tabbar button[aria-current="page"] {
  background: #12c8cc18;
  color: #8ae8e5;
  box-shadow: inset 0 0 0 1px #12c8cc50;
}
.action-dock #headerResults {
  background: #123e49;
  color: #8ae8e5;
  border-color: #31545e;
}
.field input,
.field select,
.field textarea,
.search input,
.copy-report,
.report-item select {
  background: #0c3540;
  color: #f3fafa;
  border-color: #31545e;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search input:focus {
  border-color: #12c8cc;
  box-shadow: 0 0 0 3px #12c8cc22;
}
.unit,
.field small,
.hint,
.patient-bar span,
.home-privacy,
.footer-note,
.tool-copy small {
  color: #a8c3c8;
}
.field input::placeholder,
.search input::placeholder {
  color: #a8c3c8;
}
.result,
.induction-overview,
.admin-metrics article,
.home-announcement,
.induction-launch {
  background: #123e49;
  border-color: #31545e;
}
.result {
  border-inline-start-color: #12c8cc;
}
.result-value,
.score-pill,
.result-overview strong,
.admin-metrics strong,
.admin-usage strong,
.mabl-results td {
  color: #8ae8e5 !important;
}
.mabl-results th,
.result > strong,
.result .result-summary {
  color: #f3fafa;
}
.result .hint,
.result .tool-table td small {
  color: #a8c3c8;
}
.result .tool-table td:nth-child(2),
#inductionEquipment .clinical-table td:nth-child(2),
.medication-table td[data-label="مقدار کل"] {
  color: #8ae8e5 !important;
}
.clinical-table th,
.admin-table th {
  background: #0c3540;
  color: #f3fafa;
}
.result-jumps button,
.overview-links button,
.patient-bar button {
  background: #12c8cc12;
  color: #8ae8e5;
  border-color: #31545e;
}
.tabs {
  background: #082c36;
}
.tabs button {
  color: #a8e0df;
}
.tabs button.active {
  background: #12c8cc20;
  color: #8ae8e5;
  box-shadow: inset 0 0 0 1px #12c8cc55;
}
.route-option input:checked + span {
  border-color: #12c8cc;
  background: #12c8cc16;
  box-shadow: 0 0 0 2px #12c8cc18;
}
.route-option input:checked + span::before {
  background: #12c8cc;
  border-color: #12c8cc;
  color: #082c36;
}
.route-option input:checked + span::after,
#routeStatus {
  color: #8ae8e5;
}
.choice input,
.handoff-item input[type="checkbox"] {
  accent-color: #12c8cc;
}
.handoff-item:has(input:checked) {
  background: #12c8cc12;
  border-color: #12c8cc;
}
.welcome-dot,
.launch-action,
.home-shortcuts svg,
.text-button,
.output-details > summary,
.term-help > summary,
.brand-credit a {
  color: #8ae8e5;
}
.launch-symbol,
.profile-avatar {
  background: #12c8cc12;
  color: #8ae8e5;
}
.favorite-button[aria-pressed="true"] {
  color: #8ae8e5;
  background: #12c8cc18;
  border-color: #12c8cc55;
}
.term-help p {
  background: #0c3540;
  color: #f3fafa !important;
  border-color: #31545e;
}
.notice {
  background: #f4bd6314;
  color: #f4bd63;
}
.danger-note,
.dose-alert {
  background: #f48a8312;
  color: #f48a83;
}
.tool-error,
.result .dose-alert {
  color: #f48a83 !important;
}
.info {
  background: #12c8cc12;
  color: #8ae8e5;
}
.app-toast {
  background: #123e49;
  border-color: #12c8cc66;
  color: #f3fafa;
}
.toast-brand {
  color: #8ae8e5;
}
button:focus-visible,
a:focus-visible {
  outline-color: #8ae8e5;
}

.anesta-header #themeToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
  padding: 9px;
  border: 1px solid #8ae8e52a;
  border-radius: 14px;
  background: #12c8cc0c;
  color: #8ae8e5;
}
.anesta-header .brand {
  min-width: 0;
}
html[data-theme="night"] {
  color-scheme: dark;
}
html[data-theme="day"] {
  color-scheme: light;
  --bg: #f2f8f8;
  --surface: #ffffff;
  --ink: #082c36;
  --muted: #526d75;
  --line: #c8dedf;
  --accent: #087f8c;
  --accent2: #006b73;
  --soft: #e0f5f3;
  --teal: #006b73;
  --warn: #815009;
  --warnbg: #fff3dc;
  --danger: #a93432;
  --result-ink: #006b73;
  --blue: #e0f5f3;
  --shadow: 0 5px 18px #082c3609;
}
html[data-theme="day"] body {
  background: #f2f8f8;
  color: #082c36;
}
html[data-theme="day"]
  :is(
    .panel,
    .category,
    .tool-row,
    .induction-block,
    .home-shortcuts button,
    .profile-card,
    .tool-section,
    .poster-mobile,
    .profile-avatar,
    .route-option span
  ) {
  background: #ffffff;
  border-color: #c8dedf;
  color: #082c36;
}
html[data-theme="day"] :is(.anesta-header, .tabbar, .action-dock) {
  background: #fffffff5;
  border-color: #c8dedf;
  box-shadow: 0 5px 18px #082c360c;
}
html[data-theme="day"]
  :is(
    .anesta-header .title,
    .anesta-header[data-home="true"] .eyebrow,
    .welcome h1,
    .tool-copy strong,
    .panel h3,
    .field label,
    .score-group legend,
    .home-shortcuts strong,
    .profile-name,
    .result > strong,
    .mabl-results th
  ) {
  color: #082c36;
}
html[data-theme="day"]
  :is(
    .anesta-header #headerSearch,
    .anesta-header #themeToggle,
    .anesta-header .back,
    .brand-home
  ) {
  background: #e0f5f3;
  border-color: #c8dedf;
  color: #006b73;
}
html[data-theme="day"]
  :is(
    .field input,
    .field select,
    .field textarea,
    .search input,
    .copy-report,
    .report-item select
  ) {
  background: #ffffff;
  border-color: #c8dedf;
  color: #082c36;
}
html[data-theme="day"]
  :is(
    .hint,
    .panel p,
    .field small,
    .unit,
    .patient-bar span,
    .home-privacy,
    .footer-note,
    .tool-copy small,
    .welcome p,
    .welcome-label,
    .section-head span,
    .cat-copy p,
    .result-heading,
    .brand-credit,
    .admin-metrics span,
    .admin-table small,
    .result .hint,
    .result .tool-table td small,
    .launch-description,
    .profile-card p,
    .score-desc
  ) {
  color: #526d75;
}
html[data-theme="day"] input::placeholder,
html[data-theme="day"] textarea::placeholder {
  color: #526d75;
}
html[data-theme="day"]
  :is(
    .btn:not(.ghost):not(.secondary),
    .action-dock #dockCalculate,
    .admin-tabs button[aria-pressed="true"]
  ) {
  background: #087f8c;
  color: #ffffff;
  border-color: #087f8c;
}
html[data-theme="day"]
  :is(
    .btn.ghost,
    .btn.secondary,
    .action-dock #headerResults,
    .result-jumps button,
    .overview-links button,
    .patient-bar button,
    .admin-tabs button,
    .favorite-button
  ) {
  background: #e0f5f3;
  color: #006b73;
  border-color: #c8dedf;
}
html[data-theme="day"]
  :is(
    .result,
    .induction-overview,
    .admin-metrics article,
    .home-announcement,
    .induction-launch
  ) {
  background: #e0f5f3;
  color: #082c36;
  border-color: #b4d9d7;
}
html[data-theme="day"]
  :is(
    .result-value,
    .score-pill,
    .result-overview strong,
    .admin-metrics strong,
    .admin-usage strong,
    .mabl-results td,
    .result .tool-table td:nth-child(2),
    #inductionEquipment .clinical-table td:nth-child(2),
    .medication-table td[data-label="مقدار کل"]
  ) {
  color: #006b73 !important;
}
html[data-theme="day"] .result .result-summary {
  color: #082c36;
}
html[data-theme="day"] :is(.clinical-table th, .admin-table th) {
  background: #d9eeec;
  color: #082c36;
}
html[data-theme="day"]
  :is(
    .clinical-table td,
    .clinical-table th,
    .admin-table td,
    .admin-table th
  ) {
  border-color: #c8dedf;
}
html[data-theme="day"]
  :is(
    a,
    .welcome-dot,
    .launch-action,
    .home-shortcuts svg,
    .text-button,
    .output-details > summary,
    .term-help > summary,
    .brand-credit a,
    .home-announcement strong,
    .home-announcement > button,
    .toast-brand,
    .cat-icon,
    .tool-icon,
    .launch-symbol
  ) {
  color: #006b73;
}
html[data-theme="day"]
  :is(
    .tabs,
    .output-details,
    .term-help p,
    .result-overview.induction-overview
  ) {
  background: #e0f5f3;
  border-color: #c8dedf;
}
html[data-theme="day"] .term-help p {
  color: #082c36 !important;
}
html[data-theme="day"] :is(.tabs button, .tabbar button) {
  color: #526d75;
}
html[data-theme="day"]
  :is(.tabs button.active, .tabbar button[aria-current="page"]) {
  background: #d5eeeb;
  color: #006b73;
  box-shadow: inset 0 0 0 1px #9bcdc9;
}
html[data-theme="day"]
  :is(
    .route-option input:checked + span,
    .handoff-item:has(input:checked),
    .favorite-button[aria-pressed="true"]
  ) {
  background: #e0f5f3;
  border-color: #087f8c;
  color: #006b73;
}
html[data-theme="day"]
  :is(
    .route-option span::after,
    .route-option input:checked + span::after,
    #routeStatus
  ) {
  color: #006b73;
}
html[data-theme="day"] .notice {
  background: #fff3dc;
  color: #815009;
}
html[data-theme="day"] :is(.danger-note, .dose-alert) {
  background: #fdece9;
  color: #a93432;
}
html[data-theme="day"] :is(.tool-error, .result .dose-alert) {
  color: #a93432 !important;
}
html[data-theme="day"] .info {
  background: #e0f5f3;
  color: #006b73;
}
html[data-theme="day"] .app-toast {
  background: #ffffff;
  border-color: #087f8c;
  color: #082c36;
}
html[data-theme="day"] .toast-mark {
  color: #006b73;
  background: #e0f5f3;
}
html[data-theme="day"]
  :is(.empty-recent, .small-badge, .tag, .tool-icon, .launch-symbol) {
  background: #e0f5f3;
  color: #006b73;
  border-color: #c8dedf;
}
html[data-theme="day"]
  :is(
    .empty-recent span,
    .profile-details,
    .profile-meta,
    .home-shortcuts span
  ) {
  color: #526d75;
}
html[data-theme="day"] :is(button, a):focus-visible {
  outline-color: #087f8c;
}
html[data-theme="day"]
  :is(.field input, .field select, .field textarea, .search input):focus {
  border-color: #087f8c;
  box-shadow: 0 0 0 3px #087f8c20;
}
@media (max-width: 360px) {
  .anesta-header {
    gap: 5px;
  }
  .anesta-header[data-home="true"] .eyebrow {
    font-size: 20px;
  }
  .anesta-header #themeToggle {
    flex-basis: 36px;
    width: 36px;
    padding: 7px;
  }
}

html[data-theme="day"]
  :is(
    .section-head h2,
    .cat-copy h2,
    .choice label,
    .route-option strong,
    .medication-table td,
    .equipment-table td
  ) {
  color: #082c36;
}
html[data-theme="day"]
  :is(
    .choice label small,
    .result-kicker,
    .result-note,
    .source,
    .empty,
    .chev,
    .search:before,
    .route-option small
  ) {
  color: #526d75;
}
html[data-theme="day"] .field select option {
  background: #ffffff;
  color: #082c36;
}
html[data-theme="day"] .cat-count {
  background: #e0f5f3;
  color: #006b73;
  border-color: #c8dedf;
}
html[data-theme="day"] .panel {
  box-shadow: 0 5px 18px #082c3609;
}
html[data-theme="day"] .choice {
  border-color: #c8dedf;
}
html[data-theme="day"] .source a {
  color: #006b73;
}
html[data-theme="day"] .route-option input:focus-visible + span {
  outline-color: #087f8c;
}

html[data-theme="day"] {
  --bg: #f6f8fc;
  --shadow: 0 6px 22px #33465a09;
  --line: #d9e2eb;
}
html[data-theme="day"] body {
  background-color: #f6f8fc;
  background-image:
    radial-gradient(
      ellipse at 96% 0%,
      #d9cbeaaa 0%,
      #e9e2f55c 32%,
      transparent 67%
    ),
    radial-gradient(
      ellipse at 0% 16%,
      #cce8f1a8 0%,
      #ddeff559 34%,
      transparent 70%
    );
  background-size:
    100% 470px,
    100% 580px;
  background-repeat: no-repeat;
}
html[data-theme="day"] .anesta-header {
  background: linear-gradient(115deg, #fffffff2, #f7f4fcf2);
  border-color: #ffffff;
  box-shadow:
    0 5px 22px #52486f0c,
    inset 0 1px 0 #ffffff;
}
html[data-theme="day"] .welcome {
  position: relative;
  background:
    radial-gradient(ellipse at 87% 8%, #e9e2f588, transparent 64%),
    radial-gradient(ellipse at 8% 95%, #ddeff58c, transparent 67%);
  border-radius: 24px;
  padding: 20px 14px 25px;
  margin: 0 -4px 8px;
}
html[data-theme="day"] .welcome-label {
  color: #7954c9;
}
html[data-theme="day"] .welcome-dot {
  color: #7954c9;
}
html[data-theme="day"]
  :is(
    .panel,
    .category,
    .tool-row,
    .induction-block,
    .home-shortcuts button,
    .profile-card,
    .field input,
    .field select,
    .field textarea
  ) {
  background: #ffffff;
  border-color: #d9e2eb;
  box-shadow: 0 5px 20px #33465a06;
}
html[data-theme="day"] :is(.result, .result-overview.induction-overview) {
  background: #ffffff;
  border-color: #d3e7e5;
  border-inline-start-color: #087f8c;
  box-shadow: 0 6px 24px #33465a08;
}
html[data-theme="day"] :is(.clinical-table, .admin-table table) {
  background: #ffffff;
}
html[data-theme="day"] :is(.clinical-table td, .admin-table td) {
  background: #ffffff;
}
html[data-theme="day"] :is(.clinical-table th, .admin-table th) {
  background: #f0f6f8;
}
html[data-theme="day"] .home-shortcuts button {
  box-shadow: 0 8px 24px #52486f08;
}
html[data-theme="day"] .empty-recent {
  background: #ffffffb8;
  border-color: #d4dce9;
  color: #526d75;
}
html[data-theme="day"] :is(.tabbar, .action-dock) {
  background: #fffffff5;
  border-color: #d9e2eb;
  box-shadow: 0 6px 22px #33465a12;
}
@media (min-width: 700px) {
  html[data-theme="day"] body {
    background-size:
      100% 600px,
      100% 760px;
  }
}
