* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #152e33;
  background: #f4f7f6;
  font-synthesis: none;
  --ink: #143438;
  --teal: #096b60;
  --line: #d8e3df;
  --soft: #546c69;
}
body {
  margin: 0;
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #28a992;
  outline-offset: 3px;
}
.shell {
  width: min(1250px, 92%);
  margin: auto;
}
header {
  background: #103936;
  color: #fff;
}
.top {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.mast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.mark {
  height: 33px;
  width: 36px;
  background: #acf1c4;
  border-radius: 8px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  transform: rotate(-3deg);
}
.mark i {
  width: 4px;
  background: #12594e;
  transform: skewY(-18deg);
}
.mark i:nth-child(1) {
  height: 7px;
}
.mark i:nth-child(2) {
  height: 12px;
}
.mark i:nth-child(3) {
  height: 18px;
}
.division {
  height: 23px;
  width: 1px;
  background: #54716b;
}
.studio {
  font-size: 15px;
  color: #d1e7df;
}
.quiet {
  margin-left: auto;
  background: transparent;
  color: #e2f6ef;
  border: 1px solid #51736e;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 14px;
}
nav {
  background: white;
  border-bottom: 1px solid var(--line);
}
.tabs {
  height: 52px;
  display: flex;
  align-items: stretch;
  gap: 34px;
}
.tabs a {
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #536761;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.tabs [aria-current] {
  color: var(--teal);
  border-color: var(--teal);
}
main.shell {
  padding-bottom: 50px;
}
.heading {
  padding: 33px 0 24px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(29px, 3.1vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.25;
}
.heading p,
.empty p {
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}
.summary > div {
  background: #fff;
  padding: 20px 26px;
}
.summary > div > span,
.caption {
  font-size: 14px;
  color: var(--soft);
}
.summary strong {
  display: block;
  margin-top: 5px;
  font-size: 38px;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
}
.summary strong small {
  font-size: 14px;
  color: var(--soft);
  margin-left: 7px;
  font-weight: 500;
}
.bars {
  display: flex;
  gap: 3px;
  height: 12px;
  margin: 16px 0 10px;
  overflow: hidden;
  border-radius: 4px;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.legend span {
  font-size: 13px;
  color: var(--soft);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
.b1 {
  background: #a9c8ba;
}
.b2 {
  background: #6aa094;
}
.b3 {
  background: #287e70;
}
.b4 {
  background: #17483f;
}
.panel,
.settings-layout aside {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  box-shadow: 0 3px 15px #223e3207;
}
.toolbar {
  padding: 18px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar input {
  margin-right: auto;
  width: min(300px, 100%);
}
input,
select {
  border: 1px solid #cbd9d4;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 15px;
}
select {
  appearance: none;
  padding-right: 32px;
  background:
    linear-gradient(45deg, transparent 50%, #587068 50%) calc(100% - 15px)
      52%/5px 5px no-repeat,
    linear-gradient(135deg, #587068 50%, transparent 50%) calc(100% - 10px)
      52%/5px 5px no-repeat;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  white-space: nowrap;
  text-align: left;
}
th {
  font-weight: 550;
  color: #536b65;
  background: #f4f8f6;
  font-size: 14px;
}
td,
th {
  padding: 12px 19px;
  border-bottom: 1px solid #e6eeea;
}
td {
  font-variant-numeric: tabular-nums;
}
td strong {
  font-weight: 600;
}
.code,
.index-choice small {
  display: block;
  color: #60756e;
  font-size: 13px;
  margin-top: 4px;
}
.tier,
.flag,
.chip {
  display: inline-block;
  font-size: 13px;
  border-radius: 5px;
  padding: 3px 8px;
  line-height: 1.5;
}
.chip {
  background: #f2f5f4;
  color: #465e56;
  font-family: Inter, monospace;
}
.tier {
  font-weight: 650;
}
.t4 {
  background: #1a5147;
  color: #fff;
}
.t3 {
  background: #d1e9df;
  color: #205c51;
}
.t2 {
  background: #e5efea;
  color: #3b6559;
}
.t1 {
  background: #f0f5f1;
  color: #4d675c;
}
.pending,
.future {
  color: #85521a;
  background: #fff2d9;
}
.in_progress {
  color: #365b80;
  background: #e8f1fa;
}
.reviewed,
.active {
  color: #22694f;
  background: #ddf3e7;
}
.expired {
  background: #eef0f1;
  color: #5c6864;
}
.panel footer {
  padding: 13px 20px;
  color: var(--soft);
  font-size: 14px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: start;
}
.settings-layout aside,
.edit {
  padding: 24px;
}
.index-choice {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 600;
}
.index-choice.selected {
  border-color: #9dc8b6;
  background: #eaf6ee;
}
.edit-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.edit-title h2 {
  font-size: 23px;
}
.edit label,
.access label {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.budget {
  width: 185px;
  margin-bottom: 24px;
}
.inputs td,
.inputs th {
  padding: 12px 10px;
}
.inputs input {
  width: 100%;
  min-width: 85px;
  max-width: 165px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
}
.actions span {
  font-size: 14px;
  color: var(--soft);
}
.primary {
  border-radius: 8px;
  background: #0c695b;
  color: #fff;
  font-weight: 650;
  padding: 12px 20px;
}
.primary:not(:disabled):hover {
  background: #084e46;
}
#alert {
  padding: 13px 18px;
  border: 1px solid #abbfb5;
  background: #eef7ef;
  margin-top: 20px;
  border-radius: 8px;
}
.entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, #2b6052 0%, transparent 50%),
    linear-gradient(135deg, #0e3332, #123c38 60%, #214c41);
}
.access {
  width: min(420px, 100%);
  background: #fafdfb;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 25px 85px #051b1a55;
}
.access .mast {
  color: #17483f;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}
.overline {
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 8px;
}
.access h1 {
  font-size: 34px;
}
.access form {
  margin-top: 28px;
}
.access input,
.access button {
  width: 100%;
}
.access input {
  padding: 12px;
}
.access #message {
  min-height: 25px;
  color: #9c402a;
  font-size: 14px;
  margin: 6px 0;
}
.access button {
  padding: 13px;
}
@media (max-width: 700px) {
  .top {
    height: 62px;
    gap: 10px;
  }
  .studio {
    font-size: 13px;
  }
  .division {
    display: none;
  }
  .heading {
    padding: 22px 0 18px;
  }
  .shell {
    width: 94%;
  }
  .toolbar {
    padding: 12px;
  }
  .toolbar input {
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .summary > div {
    padding: 14px 17px;
  }
  .distribution {
    grid-column: 1/-1;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout aside {
    display: flex;
    gap: 8px;
    padding: 10px;
  }
  .settings-layout .caption {
    display: none;
  }
  .index-choice {
    margin: 0;
  }
  .edit {
    padding: 15px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .inputs td span:not(.tier) {
    display: none;
  }
  .inputs th {
    font-size: 13px;
  }
  .inputs input {
    min-width: 70px;
  }
  .access {
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .inputs {
    table-layout: fixed;
    white-space: normal;
  }
  .inputs th:first-child {
    width: 22%;
  }
  .inputs td,
  .inputs th {
    padding-inline: 6px;
  }
  .inputs input {
    min-width: 0;
  }
}
.depth-preview {
  margin: 0 0 24px;
  padding: 18px;
  background: #f5f9f7;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.depth-preview h3 {
  font-size: 16px;
  margin: 0 0 14px;
}
#depth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.depth-cell strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.depth-cell small,
#preview-status {
  font-size: 13px;
  font-weight: 400;
  color: var(--soft);
}
.depth-cell progress {
  width: 100%;
  height: 6px;
  display: block;
  accent-color: var(--teal);
  margin: 6px 0;
}
#preview-status {
  margin: 14px 0 0;
}
@media (max-width: 600px) {
  #depth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  margin-bottom: 22px;
  border-radius: 13px;
  overflow: hidden;
  background: #153d38;
  color: #f8fbf4;
}
.coverage-item { padding: 22px 28px 18px; border-inline-start: 1px solid #ffffff29; }
.coverage-top, .coverage-foot { display: flex; align-items: center; justify-content: space-between; }
.coverage-top small, .security small {
  font: 12px/1.5 Consolas, monospace;
  letter-spacing: .065em;
}
.coverage-top small { color: #c4d9cf; }
.coverage-state { font-size: 12px; color: #dfeddb; }
.coverage-item h2 { margin: 7px 0 12px; font-size: 21px; font-weight: 600; }
.coverage-score { display: flex; align-items: baseline; gap: 9px; }
.coverage-score strong { font: 38px/1 Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.coverage-score span, .coverage-foot { font-size: 13px; color: #cedeD5; }
.coverage-item progress { display: block; width: 100%; height: 3px; border: 0; margin: 13px 0 9px; background: #45665b; }
.coverage-item progress::-webkit-progress-bar { background: #45665b; }
.coverage-item progress::-webkit-progress-value { background: #bbdba8; }
.coverage-item progress::-moz-progress-bar { background: #bbdba8; }
.coverage-foot { min-height: 24px; }
.remaining { padding: 4px 0; color: #f2f6e9; text-underline-offset: 4px; }
.remaining:hover { text-decoration: underline; }
.quote-line, .quote-head {
  display: grid;
  grid-template-columns: minmax(120px,1.45fr) minmax(110px,1fr) minmax(150px,1.1fr) minmax(65px,.55fr) 64px;
  align-items: center;
  gap: 16px;
  padding: 15px 26px;
}
.quote-head { background: #f4f6f2; border-block: 1px solid #dfe5dd; color: #52635c; font-size: 13px; }
.quote-line { border-bottom: 1px solid #e5e8e2; font-variant-numeric: tabular-nums; }
summary.quote-line { cursor: pointer; list-style: none; }
summary.quote-line::-webkit-details-marker { display: none; }
summary.quote-line:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
summary.quote-line:hover, .quote[open] summary { background: #f6f8f4; }
.security strong, .security small, .period small { display: block; }
.security strong { font-size: 16px; }
.security small { color: #687870; margin-top: 3px; }
.amount { font: 600 23px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; color: #203d35; white-space: nowrap; }
.amount small { font: 500 11px/1.5 Inter, sans-serif; letter-spacing: .03em; color: #687870; }
.period { font-size: 14px; line-height: 1.5; color: #334d42; }
.period small { font-size: 12px; color: #637469; }
.quote-book .flag { justify-self: start; background: transparent; padding: 0; white-space: nowrap; }
.quote-book .flag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.disclose { justify-self: end; color: #51665c; font-size: 13px; }
.disclose i { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-left: 5px; }
.quote[open] .disclose i { transform: rotate(225deg); }
.revisions { background: #f6f8f4; padding: 16px 26px 18px 42px; border-bottom: 1px solid var(--line); }
.revisions h3 { margin: 0 0 8px; font-size: 14px; }
.revisions h3 small { color: var(--soft); font-weight: 400; }
.revisions ol { margin: 0 0 0 3px; padding: 0; list-style: none; }
.revisions li { position: relative; border-left: 1px solid #b5c8ba; padding: 8px 0 8px 18px; display: grid; grid-template-columns: minmax(160px,200px) minmax(90px,140px) auto; align-items: center; gap: 12px; }
.revisions li::before { position: absolute; content: ""; width: 7px; height: 7px; border-radius: 50%; background: #739580; left: -4px; top: 50%; }
.revisions .amount { font-size: 18px; }
@media(max-width: 760px) {
  .coverage-item { padding: 14px 18px; }
  .coverage-item + .coverage-item { border-top: 1px solid #ffffff29; }
  .coverage-score strong { font-size: 30px; }
  .coverage-item h2 { margin: 3px 0 8px; font-size: 18px; }
  .coverage-item progress { margin: 8px 0 3px; }
  .quote-head { display: none; }
  .quote-line { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; padding: 16px; border-top: 1px solid #e5e8e2; border-bottom: 0; }
  .quote-line > .amount, .quote-line > .flag { justify-self: end; }
  .quote-line > .period { grid-column: 1; font-size: 12px; }
  .quote-line > .disclose { grid-column: 2; }
  .revisions { padding: 12px 16px; }
  .revisions li { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .revisions .flag { grid-column: 2; justify-self: end; }
}
.quote-chart { display: block; width: 100%; height: 168px; margin: 8px 0 18px; }
