@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --canvas: #f4f6fa;
  --card: #ffffff;
  --card2: #f8fafd;
  --inset: #edf1f8;
  --line: #e3e9f2;
  --line2: #edf1f7;
  --edge: #c4cede;
  --edge-hover: #8e9bb3;
  --ink: #0e1729;
  --ink2: #252c37;
  --label: #33489a;
  --accent: #2457d6;
  --accent-soft: #e9effd;
  --accent-ink: #1a3fa0;
  --accent-bd: #d3e0fb;
  --navy: #0a1f44;
  --head: #0e1729;
  --good: #337437;
  --good-bg: #e0f8e0;
  --bad: #974843;
  --bad-bg: #ffebe9;
  --warn: #76602f;
  --warn-bg: #f9f0dd;
  --shadow: 0 1px 2px rgb(14 23 41 / 0.05), 0 10px 28px -14px rgb(14 23 41 / 0.16);
  --lift: 0 2px 4px rgb(14 23 41 / 0.06), 0 14px 26px -14px rgb(14 23 41 / 0.26);
  --ring: 0 0 0 3px rgb(36 87 214 / 0.18);
  --r: 10px;
  --r-card: 16px;
  --ctl: 44px;
  --field: 48px;
  --side-w: 256px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Poppins", "Nirmala UI", "Mangal", system-ui, sans-serif;
}

@media (min-width: 1024px) {
  :root {
    --field: 44px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.boot {
  min-height: calc(100dvh / var(--zoom, 1));
  display: grid;
  place-items: center;
}

.noscript {
  padding: 24px;
  font-weight: 600;
}

.ic {
  display: block;
  flex: none;
}

.nowrap {
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--ctl);
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  border-color: var(--edge-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
}

.btn-line {
  border-color: var(--accent-bd);
  color: var(--accent-ink);
}

.btn-line:hover {
  border-color: var(--accent-bd);
  background: var(--accent-soft);
}

.btn-soft {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-soft:hover {
  border-color: var(--accent-bd);
}

.btn-danger {
  border-color: var(--bad-bg);
  background: var(--bad-bg);
  color: var(--bad);
}

.btn-danger:hover,
.btn-danger-solid {
  border-color: var(--bad);
  background: var(--bad);
  color: #ffffff;
}

.btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.tool {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
}

.tool:hover {
  border-color: var(--edge);
}

.tool-plain {
  border-color: transparent;
  background: transparent;
}

.tool-plain:hover {
  border-color: transparent;
  background: var(--inset);
}

/* Inputs */

.in {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--field);
  padding: 0 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.in::placeholder {
  color: var(--ink2);
  font-weight: 400;
  opacity: 1;
}

.in:hover {
  border-color: var(--edge-hover);
}

.in:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.in[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.ta {
  height: auto;
  min-height: 112px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: vertical;
}

.num {
  font-variant-numeric: tabular-nums;
}

.fgroup {
  display: grid;
  gap: 8px;
}

.flabel {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.fhint {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink2);
}

.err {
  color: var(--bad);
  font-size: 15px;
  font-weight: 600;
}

.err:empty {
  display: none;
}

.form {
  display: grid;
  gap: 18px;
}

.pw {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pw .in {
  padding-right: 52px;
}

.pw-eye {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  transform: translateY(-50%);
}

.pw-eye:hover {
  background: var(--inset);
}

.pw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pw-row .pw {
  flex: 1 1 200px;
}

.pw-row .btn {
  height: var(--field);
}


/* Segmented choices */

.seg {
  display: flex;
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: calc(var(--field) - 2px);
  padding: 6px 14px;
  border: 0;
  border-left: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.15s, color 0.15s;
}

.seg-btn:first-child {
  border-left: 0;
}

.seg-btn:hover {
  background: var(--card2);
}

.seg-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.seg:not(.seg-wrap) .seg-btn:first-child {
  border-radius: 9px 0 0 9px;
}

.seg:not(.seg-wrap) .seg-btn:last-child {
  border-radius: 0 9px 9px 0;
}

.seg-btn[data-tone="good"] {
  --tone: var(--good);
  --tone-bg: var(--good-bg);
}

.seg-btn[data-tone="bad"] {
  --tone: var(--bad);
  --tone-bg: var(--bad-bg);
}

.seg-btn[data-tone="warn"] {
  --tone: var(--warn);
  --tone-bg: var(--warn-bg);
}

.seg .seg-btn[aria-pressed="true"] {
  background: var(--tone-bg, var(--accent-soft));
  color: var(--tone, var(--accent-ink));
  box-shadow: inset 0 0 0 2px var(--tone, var(--accent));
}

.seg-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.seg-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.seg-wrap .seg-btn {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  text-align: center;
}

.seg-wrap .seg-btn[aria-pressed="true"] {
  border-color: var(--tone, var(--accent));
  box-shadow: inset 0 0 0 1px var(--tone, var(--accent));
}

.seg-multi .seg-btn {
  justify-content: flex-start;
  text-align: left;
}

.seg-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  background: var(--card);
  color: transparent;
}

.seg-multi .seg-btn[aria-pressed="true"] .seg-box {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

/* Language */

.seg-lang {
  width: auto;
  flex: none;
}

.seg-lang .seg-btn {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.side-foot .seg-lang {
  width: 100%;
}

.side-foot .seg-lang .seg-btn {
  flex: 1 1 0;
}

.lang-btn {
  flex: none;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.lang-short {
  display: none;
}

.choice-big {
  font-size: 18px;
  font-weight: 600;
}

/* Status words */

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.st-good {
  color: var(--good);
}

.st-warn {
  color: var(--warn);
}

.st-bad {
  color: var(--bad);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.avatar-btn {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}

/* Shell */

.shell {
  min-height: calc(100dvh / var(--zoom, 1));
}

.side {
  display: none;
}

.frame {
  min-width: 0;
}

.pbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(58px + var(--safe-t));
  padding: var(--safe-t) 16px 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.pbar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 72px;
  flex: none;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r);
  background: var(--navy);
  color: #ffffff;
}

.netbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #efd9ae;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  font-weight: 500;
}

.netbar b {
  font-weight: 600;
}

.page {
  width: 100%;
  padding: 18px 16px 32px;
}

.has-tabs .page {
  padding-bottom: calc(104px + var(--safe-b));
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-head:not(.has-actions) {
  display: none;
}

.page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.head-back {
  display: none;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.page-actions .btn {
  flex: 1 1 0;
}

.page-actions .btn-primary {
  flex: 1 1 100%;
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr));
  gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--card);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 56px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.tab[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.stack {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .page {
    padding: 22px 20px 32px;
  }
  .page-actions {
    width: auto;
    margin-left: auto;
  }
  .page-actions .btn,
  .page-actions .btn-primary {
    flex: none;
  }
  .page-head.has-actions {
    justify-content: flex-end;
  }
  .stack {
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
  }
  .side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: calc(100dvh / var(--zoom, 1));
    padding: 18px 12px 14px;
    border-right: 1px solid var(--line);
    background: var(--card);
  }
  .pbar,
  .tabs {
    display: none;
  }
  .page,
  .has-tabs .page {
    padding: 28px 28px 40px;
  }
  .page-head,
  .page-head:not(.has-actions) {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 44px;
    margin-bottom: 22px;
  }
  .page-title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    flex: 1;
    min-width: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
  }
  .head-back {
    display: inline-grid;
  }
  .page-actions {
    flex: none;
    flex-wrap: nowrap;
  }
}

/* Sidebar */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 18px;
}

.brand .brand-logo {
  height: 48px;
  max-width: 64px;
}

.brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.brand-text b {
  font-size: 15px;
  font-weight: 600;
}

.brand-text span {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
}

.side-nav {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
}

.side-link:hover {
  background: var(--card2);
}

.side-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.side-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.me-text {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.me-text b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-text span {
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
}

/* Menu */

.menu {
  position: fixed;
  z-index: 60;
  width: min(280px, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.menu-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: var(--card2);
}

/* Notes */

.notes {
  margin-bottom: 16px;
}

.notes:empty {
  display: none;
}

.note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  animation: rise 0.2s ease-out;
}

.note-text {
  flex: 1;
  min-width: 0;
}

.note-ok {
  background: var(--good-bg);
  color: var(--good);
}

.note-bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.note-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.note-x:hover {
  background: rgb(255 255 255 / 0.6);
}

/* Figure cards */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.stat-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
}

.tone-blue {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.tone-good {
  background: var(--good-bg);
  color: var(--good);
}

.tone-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.tone-bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.stat-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-value .st {
  font-size: 20px;
  letter-spacing: 0;
}

.stat-value .st .ic {
  width: 20px;
  height: 20px;
}

@media (min-width: 640px) {
  .stat {
    padding: 16px 18px;
  }
  .stat-value {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .stat-label {
    font-size: 15px;
  }
  .stat-value {
    font-size: 32px;
  }
}

/* Panels and tables */

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: clip;
}

.panel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}





.search {
  position: relative;
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
  min-width: 0;
}

.search .in {
  height: var(--ctl);
  padding-left: 42px;
}

.search-ic {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ink);
  transform: translateY(-50%);
  pointer-events: none;
}

.panel-tools .seg {
  flex: 1 1 260px;
  max-width: 100%;
}

.panel-tools .seg-btn {
  min-height: calc(var(--ctl) - 2px);
}

@media (min-width: 640px) {
  .panel-tools {
    padding: 16px 20px;
  }
  .panel-tools .seg {
    flex: 0 1 320px;
  }
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.tbl th {
  text-align: left;
}

.tbl thead tr {
  background: var(--head);
}

.tbl thead th {
  padding: 13px 20px;
  background: var(--head);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tbl td {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  vertical-align: middle;
}

.tbl tbody tr {
  cursor: pointer;
  transition: background-color 0.12s;
}

.tbl tbody tr:hover {
  background: var(--card2);
}

.tbl .c-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.row-link {
  font-weight: 600;
  text-decoration: none;
}

.row-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.row-sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
}

.c-status {
  white-space: nowrap;
}

.c-status .st {
  display: flex;
}

.c-status .st + .st {
  margin-top: 2px;
  font-size: 14px;
}

.c-parts {
  font-weight: 600;
}

.only-sm {
  display: none;
}

@media (max-width: 639.98px) {
  .only-sm {
    display: inline;
  }
  .row-sub.only-sm {
    display: block;
  }
  .tbl,
  .tbl tbody {
    display: block;
  }
  .tbl thead,
  .tbl .from-md,
  .tbl .from-lg,
  .tbl .from-xl {
    display: none;
  }
  .tbl tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .tbl tbody tr:first-child {
    border-top: 0;
  }
  .tbl td {
    display: block;
    padding: 0;
    border: 0;
  }
  .tbl-list .c-main {
    grid-row: 1 / span 2;
  }
  .tbl-list .c-parts,
  .tbl-list .c-status {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
  .tbl-list .c-parts {
    font-size: 14px;
  }
  .tbl-log .c-what {
    grid-row: 1 / span 2;
  }
  .tbl-log .c-when,
  .tbl-log .c-who {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    font-size: 14px;
  }
  .tbl-log .c-what .row-sub {
    font-size: 14px;
  }
  .tbl-team .c-role {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
    font-size: 14px;
  }
}

@media (max-width: 1023.98px) {
  .tbl .from-lg,
  .tbl .from-xl {
    display: none;
  }
}

@media (min-width: 1024px) {
  .tbl {
    font-size: 16px;
  }
  .tbl thead {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .tbl thead th {
    font-size: 15px;
  }
}

@media (max-width: 1279.98px) {
  .tbl .from-xl {
    display: none;
  }
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.who-text {
  display: grid;
  min-width: 0;
}

.who-text b {
  font-weight: 600;
}

.you {
  font-weight: 500;
}

.tbl-log tbody tr {
  cursor: default;
}

.tbl-log .c-when {
  font-variant-numeric: tabular-nums;
}

.panel-more {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.panel-more:empty {
  display: none;
}

.c-act {
  width: 1%;
  text-align: right;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* Dialogs */

.dlg-wrap,
.busy,
.menu {
  zoom: var(--zoom, 1);
}

.dlg-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(10 16 30 / 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.15s ease-out;
}

.dlg {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc((100dvh - 48px) / var(--zoom, 1));
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--lift);
  animation: rise 0.18s ease-out;
}

.dlg-sm,
.dlg-sheet {
  width: min(480px, 100%);
}

.dlg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line);
}

.dlg-title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.dlg-body {
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}

.dlg-sheet .dlg-body {
  padding: 8px;
}

.dlg-text {
  font-size: 16px;
  line-height: 1.6;
}

.dlg-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
}

@media (max-width: 639.98px) {
  .dlg-wrap {
    padding: 0;
    place-items: end stretch;
  }
  .dlg-wrap-md {
    place-items: stretch;
  }
  .dlg {
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    animation-name: sheet;
  }
  .dlg-md {
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding-top: var(--safe-t);
  }
  .dlg-foot .btn {
    flex: 1 1 0;
  }
}

.busy {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(10 16 30 / 0.32);
}

.busy-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift);
  font-size: 16px;
  font-weight: 600;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: none;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Login */

.login {
  min-height: calc(100dvh / var(--zoom, 1));
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
}

.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: calc(24px + var(--safe-t)) 20px 56px;
  overflow: hidden;
  background: linear-gradient(152deg, #071a3d, #123e8c 52%, #2c7be5);
  color: #ffffff;
}

.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgb(255 255 255 / 0.14), transparent 42%),
    radial-gradient(circle at 8% 92%, rgb(44 123 229 / 0.45), transparent 48%);
  pointer-events: none;
}

.login-brand,
.login-big {
  position: relative;
}

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

.login-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
}

.login-tile img {
  display: block;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.login-org {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.login-big {
  max-width: 16ch;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.login-side {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0 16px 40px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  margin-top: -28px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--lift);
}

.login-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.login-title {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form .flabel {
  font-size: 16px;
}

.login-form .in {
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 17px;
}

.login-form .pw .in {
  padding-right: 56px;
}

.btn-login {
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #0e2f6b, #1b4bb0);
  color: #ffffff;
  font-size: 17px;
}

.btn-login:hover {
  background: linear-gradient(90deg, #0b2657, #173f96);
}

.first-run {
  min-height: calc(100dvh / var(--zoom, 1));
  display: grid;
  place-items: center;
  padding: 24px;
}

.first-run-card {
  display: grid;
  gap: 8px;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
}

.first-run-card h1 {
  font-size: 24px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .login {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    padding: 24px;
  }
  .login-art {
    padding: 52px 56px;
    border-radius: 24px 0 0 24px;
  }
  .login-big {
    font-size: 46px;
    line-height: 1.25;
  }
  .login-org {
    font-size: 18px;
  }
  .login-side {
    align-content: center;
    padding: 40px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 24px 24px 0;
    background: #eef2f8;
  }
  .login-card {
    margin-top: 0;
    padding: 40px;
  }
  .login-title {
    font-size: 38px;
  }
}

/* View */

.done {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #bfe3c0;
  border-radius: var(--r-card);
  background: var(--good-bg);
  animation: rise 0.3s ease-out;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--good);
  color: #ffffff;
}

.done-mark svg {
  width: 30px;
  height: 30px;
}

.done-mark path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.45s 0.15s ease-out forwards;
}

.done-title {
  color: var(--good);
  font-size: 20px;
  font-weight: 600;
}

.done-text {
  font-weight: 500;
}

/* Team */

.choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s;
}

.choice-card:hover {
  border-color: var(--edge-hover);
}

.choice-card[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice-card:disabled {
  cursor: default;
  opacity: 0.6;
}

.cred {
  display: grid;
  gap: 12px;
}

.cred-name {
  font-size: 17px;
  font-weight: 600;
}

.cred-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cred-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.cred-list div:first-child {
  border-top: 0;
}

.cred-list dt {
  color: var(--label);
  font-weight: 600;
}

.cred-list dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}













/* Editor */

.ed {
  min-height: calc(100dvh / var(--zoom, 1));
}

.ed-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(60px + var(--safe-t));
  padding: var(--safe-t) 12px 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.ed-top-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.ed-name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-save {
  min-height: 20px;
  font-size: 13px;
}

.ed-save .st {
  font-weight: 500;
}

.ed-save .st-good,
.ed-save .st-bad {
  font-weight: 600;
}

.ed-save .ic {
  width: 14px;
  height: 14px;
}

.ed-jump {
  height: 40px;
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 399.98px) {
  .ed-top {
    gap: 8px;
  }
  .ed-top .lang-full {
    display: none;
  }
  .ed-top .lang-short {
    display: inline;
  }
}

.ed-progress {
  position: sticky;
  top: calc(60px + var(--safe-t));
  z-index: 29;
  height: 3px;
  background: var(--line);
}

.ed-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease-out;
}

.ed-side {
  display: none;
}

.ed-main {
  width: 100%;
  min-width: 0;
  padding: 18px 12px calc(96px + var(--safe-b));
}

.ed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 4px 16px;
}

.ed-letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r);
  background: var(--navy);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.ed-title {
  flex: 1;
  min-width: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.ed-pos {
  display: none;
  color: var(--label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ed-blocks {
  display: grid;
  gap: 14px;
}

.ed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--card);
}

.ed-bar .btn {
  flex: 1 1 0;
  height: 50px;
}

.ed-bar .btn-primary {
  flex: 2 1 0;
}

.sec-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.sec-item:hover {
  background: var(--card2);
}

.sec-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--inset);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.sec-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-tick {
  display: none;
  color: var(--good);
}

.sec-item.done .sec-tick {
  display: block;
}

.sec-item.done .sec-letter {
  background: var(--good-bg);
  color: var(--good);
}

.sec-item[aria-current="step"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.sec-item[aria-current="step"] .sec-letter {
  background: var(--accent);
  color: #ffffff;
}

@media (min-width: 640px) {
  .ed-top {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ed-main {
    padding: 24px 20px calc(100px + var(--safe-b));
  }
  .ed-title {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .ed-top {
    height: 64px;
    padding: 0 20px;
  }
  .ed-name {
    font-size: 18px;
  }
  .ed-jump {
    display: none;
  }
  .ed-progress {
    top: 64px;
  }
  .ed-wrap {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .ed-side {
    position: sticky;
    top: 67px;
    display: block;
    height: calc(100dvh / var(--zoom, 1) - 67px);
    padding: 16px 12px 24px;
    overflow: auto;
    border-right: 1px solid var(--line);
    background: var(--card);
  }
  .ed-side-title {
    padding: 4px 10px 10px;
    color: var(--label);
    font-size: 14px;
    font-weight: 600;
  }
  .ed-main {
    padding: 28px 32px 0;
  }
  .ed-pos {
    display: block;
  }
  .ed-title {
    font-size: 26px;
  }
  .ed-bar {
    position: sticky;
    justify-content: flex-end;
    margin: 8px 0 0;
    padding: 20px 0 28px;
    border-top: 0;
    background: linear-gradient(to top, var(--canvas) 72%, rgb(244 246 250 / 0));
  }
  .ed-bar .btn,
  .ed-bar .btn-primary {
    flex: none;
    min-width: 150px;
    height: 46px;
  }
}

/* Form blocks */

.blk {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  container-type: inline-size;
}

.blk-title {
  padding: 16px 16px 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.frows {
  padding: 2px 16px;
}

.frow {
  padding: 14px 0;
  border-top: 1px solid var(--line2);
}

.frow:first-child {
  border-top: 0;
}

.q {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.q-sm {
  margin-bottom: 8px;
  font-size: 15px;
}

@container (min-width: 640px) {
  .blk-title {
    padding: 18px 20px 6px;
  }
  .frows {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 20px 24px;
    padding: 10px 20px 20px;
  }
  .frow {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border-top: 0;
  }
  .frow .q {
    margin-bottom: 0;
  }
  .frow-wide {
    grid-column: 1 / -1;
  }
}

.gt-wrap {
  padding: 12px 16px 16px;
}

.gt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.gt thead th {
  padding: 11px 10px;
  background: var(--head);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  vertical-align: bottom;
}

.gt thead th:first-child {
  border-top-left-radius: var(--r);
  text-align: left;
}

.gt thead th:last-child {
  border-top-right-radius: var(--r);
}

.gt tbody th,
.gt tfoot th {
  padding: 8px 12px 8px 0;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.gt tbody th,
.gt tbody td {
  border-bottom: 1px solid var(--line);
}

.gt td {
  padding: 6px;
  text-align: center;
}

.gt td .in {
  height: 42px;
  padding: 0 8px;
  text-align: center;
}

.gt td .seg-btn {
  min-height: 40px;
}

.gt .sum {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gt tfoot th,
.gt tfoot td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--inset);
  font-weight: 600;
}

.gt tfoot th {
  padding-left: 12px;
  border-bottom-left-radius: var(--r);
}

.gt tfoot td:last-child {
  border-bottom-right-radius: var(--r);
}

.rsub {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

.gt th {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@container (max-width: 360px) {
  .gt thead th {
    padding: 10px 6px;
    font-size: 13px;
  }
  .gt-compact tbody th,
  .gt-compact tfoot th {
    padding-right: 6px;
  }
  .gt-compact td {
    padding: 6px 3px;
  }
  .gt-compact td .in {
    padding: 0 4px;
  }
}

.gt-compact tbody th {
  padding-left: 12px;
}

.gt-compact thead th:first-child {
  padding-left: 12px;
}

.gt-stack thead {
  display: none;
}

.gt-stack,
.gt-stack tbody,
.gt-stack tfoot {
  display: block;
}

.gt-stack tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 10px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line2);
}

.gt-stack tbody tr:first-child {
  border-top: 0;
}

.gt-stack tr > th {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 600;
}

.gt-stack tbody th,
.gt-stack tbody td {
  border: 0;
}

.gt-stack td {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 0;
  border: 0;
  text-align: left;
}

.gt-one td,
.gt-stack td:has(.seg-wrap),
.gt-stack td:has(.seg-btn:nth-child(3)) {
  grid-column: 1 / -1;
}

.gt-stack td::before {
  content: attr(data-label);
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.gt-stack td .in {
  height: var(--field);
  text-align: left;
}

.gt-stack td .seg-btn {
  min-height: calc(var(--field) - 2px);
}

.gt-stack td.sum {
  font-size: 18px;
}

.gt-stack td.blank {
  display: none;
}

.gt-stack tfoot tr {
  margin-top: 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r);
  background: var(--inset);
}

.gt-stack tfoot th,
.gt-stack tfoot td {
  background: none;
  padding: 0;
  border-radius: 0;
}

.gt-wide tbody {
  display: grid;
  gap: 10px;
}

.gt-wide tbody tr {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gt-wide tbody tr:first-child {
  border-top: 1px solid var(--line);
}

@container (min-width: 640px) {
  .gt-wrap {
    padding: 12px 20px 20px;
  }
  .gt-stack:not(.gt-wide) {
    display: table;
  }
  .gt-stack:not(.gt-wide) thead {
    display: table-header-group;
  }
  .gt-stack:not(.gt-wide) tbody {
    display: table-row-group;
  }
  .gt-stack:not(.gt-wide) tfoot {
    display: table-footer-group;
  }
  .gt-stack:not(.gt-wide) tr {
    display: table-row;
  }
  .gt-stack:not(.gt-wide) tr > th {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
  }
  .gt-stack:not(.gt-wide) td {
    display: table-cell;
    padding: 6px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
  }
  .gt-stack:not(.gt-wide) td::before {
    content: none;
  }
  .gt-stack:not(.gt-wide) td .in {
    height: 42px;
    text-align: center;
  }
  .gt-stack:not(.gt-wide) td .seg-btn {
    min-height: 40px;
  }
  .gt-stack:not(.gt-wide) td .seg {
    width: auto;
    min-width: 180px;
  }
  .gt-stack:not(.gt-wide) td .seg-btn {
    white-space: nowrap;
  }
  .gt-stack:not(.gt-wide) td.sum {
    font-size: 15px;
  }
  .gt-stack:not(.gt-wide) td.blank {
    display: table-cell;
  }
  .gt-stack:not(.gt-wide) tfoot th,
  .gt-stack:not(.gt-wide) tfoot td {
    padding: 12px;
    background: var(--inset);
  }
  .gt-stack:not(.gt-wide) tfoot th {
    border-bottom-left-radius: var(--r);
  }
  .gt-stack:not(.gt-wide) tfoot td:last-child {
    border-bottom-right-radius: var(--r);
  }
  .gt-one tbody th {
    width: 55%;
  }
}

@container (max-width: 359px) {
  .gt-wide tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (min-width: 760px) {
  .gt-wide tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lwrap {
  padding: 12px 16px 16px;
}

.litems {
  display: grid;
  gap: 12px;
}

.litem {
  padding: 10px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.litem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.litem-num {
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
}

.litem-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 14px 16px;
}

.lfield {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.lfield-wide {
  grid-column: 1 / -1;
}

.add-row {
  margin-top: 12px;
}

@container (min-width: 640px) {
  .lwrap {
    padding: 12px 20px 20px;
  }
}

.sig {
  display: grid;
  gap: 10px;
}

.sig-pad {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 600 / 220;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: #ffffff;
  touch-action: none;
}

.sig-tools {
  display: flex;
}

/* Report, on screen and on A4 pages */

.report,
.pg {
  --line: #d8d0cd;
  --ink: #1a1a1a;
  --t-sm: 15px;
  --t-md: 16px;
  --t-lg: 20px;
  font-weight: 400;
}

.report {
  padding: 20px 16px;
  border: 1px solid var(--line2);
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink);
  container-type: inline-size;
}

@container (min-width: 640px) {
  .report {
    padding: 28px;
  }
}

@media (min-width: 640px) {
  .report {
    padding: 28px;
  }
}

.rp-blk {
  margin-bottom: 16px;
}

.rp-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--navy);
}

.rp-logo {
  height: 64px;
  width: auto;
  flex: none;
}

.rp-org {
  font-weight: 600;
}

.rp-doc {
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.rp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 8px;
  font-size: var(--t-sm);
}

.rp-meta b {
  font-weight: 600;
}

.rp-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}

.rp-letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-fg);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}

.rp-title {
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.rp-sub {
  margin: 12px 0 8px;
  font-size: var(--t-md);
  font-weight: 600;
}

.rp-scroll {
  overflow-x: auto;
}

.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  line-height: 1.4;
}

.rp-table th,
.rp-table td {
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rp-table thead th {
  background: var(--c-bg);
  color: var(--c-fg);
  border-color: var(--c-bg);
  font-weight: 600;
  vertical-align: bottom;
}

.rp-table tbody th {
  font-weight: 600;
}

.rp-table tbody tr:nth-child(even) > * {
  background: var(--c-tint);
}

.rp-table .n,
.rp-table .c {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rp-kv td {
  text-align: left;
}

.rp-table tr.tot > * {
  background: var(--c-tint);
  font-weight: 600;
  border-top: 2px solid var(--c-bg);
}

.rp-table .tot {
  font-weight: 600;
}

.rp-table td.k-good {
  color: var(--good);
  font-weight: 600;
}

.rp-table td.k-bad {
  color: var(--bad);
  font-weight: 600;
}

.rp-table td.k-warn {
  color: var(--warn);
  font-weight: 600;
}

.rp-table td.f-good {
  background: var(--good-bg) !important;
}

.rp-table td.f-bad {
  background: var(--bad-bg) !important;
}

.rp-table td.f-warn {
  background: var(--warn-bg) !important;
}

.tick {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin: 0 auto;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}

.rp-text {
  margin-top: 4px;
}

.rp-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.rp-box {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-bg);
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rp-sign {
  display: block;
  max-height: 64px;
  width: auto;
}

.pdf-holder {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 794px;
}

.pg {
  position: relative;
  width: 794px;
  height: 1123px;
  padding: 44px 48px 72px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.pg-body {
  height: 100%;
  overflow: hidden;
}

.pg .rp-blk {
  margin-bottom: 10px;
}

.pg .rp-head {
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.pg .rp-logo {
  height: 58px;
}

.pg .rp-org {
  font-size: 14px;
}

.pg .rp-doc {
  font-size: 19px;
}

.pg .rp-meta {
  font-size: 13px;
  margin-top: 6px;
}

.pg .rp-sec {
  margin: 14px 0 8px;
  gap: 10px;
}

.pg .rp-letter {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 5px;
}

.pg .rp-title {
  font-size: 16px;
}

.pg .rp-sub {
  margin: 8px 0 6px;
  font-size: 13.5px;
}

.pg .rp-table {
  font-size: 12.7px;
  line-height: 1.38;
}

.pg .rp-table th,
.pg .rp-table td {
  padding: 4px 7px;
}

.pg .rp-table thead th {
  font-size: 12.7px;
}

.pg .rp-box {
  min-height: 34px;
  padding: 6px 8px;
}

.pg .rp-sign {
  max-height: 48px;
}

.pg .tick {
  width: 6px;
  height: 11px;
  border-width: 0 2.5px 2.5px 0;
}

.pg-foot {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 2px solid var(--navy);
  font-size: 12.7px;
  font-weight: 600;
}

/* Motion */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheet {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .done-mark path {
    stroke-dashoffset: 0;
  }
}
