*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg-page, #f7f8fa);
  color: var(--text-primary, #171a21);
  font: 16px/1.45 var(--font-body, 'Source Sans 3', sans-serif);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--action);
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.56;
  cursor: wait;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
.navtabs,
.chip,
.btn {
  font-family: var(--font-display, 'Instrument Sans', sans-serif);
}
a {
  color: var(--link);
}
h1 {
  font-size: clamp(29px, 3.2vw, 49px);
  line-height: 1.09;
  letter-spacing: -0.055em;
  font-weight: 600;
}
h2 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
small,
.muted,
.meta {
  color: var(--text-secondary);
}
small,
.meta {
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  padding: 0 clamp(14px, 2.5vw, 46px);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 67px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
}
.brand .mark {
  width: 28px;
  height: 28px;
}
.brand .word {
  width: 83px;
  height: 22px;
}
.brand .area {
  border-left: 1px solid var(--border-strong);
  padding-left: 9px;
  font-size: 12px;
  font-weight: 600;
}
.navtabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  align-self: stretch;
}
.navtabs a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
}
.navtabs a[aria-current='page'] {
  color: var(--action);
}
.navtabs a[aria-current='page']::after {
  content: '';
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  bottom: 0;
  inset-inline: 12px;
  position: absolute;
}
.navtabs a:hover,
.tool:hover,
.subtle:hover {
  background: var(--surface-sunken);
}
.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.locale {
  background: white;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 5px 7px;
  min-height: 34px;
  max-width: 95px;
}
.tool,
.subtle {
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  min-width: 36px;
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tool img,
.btn img,
.subtle img,
.section-icon {
  width: 17px;
  height: 17px;
}
.icon-btn {
  padding: 8px;
}
.search-btn kbd {
  font: 11px/1.1 var(--font-body);
  color: var(--text-secondary);
}
.wrap {
  max-width: 1740px;
  margin: auto;
  padding: clamp(28px, 4.8vw, 78px) clamp(16px, 4vw, 72px) 55px;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.eyedate::first-letter {
  text-transform: uppercase;
}
.eyedate {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  padding: 9px 13px;
}
.btn.primary {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
.btn.primary:hover {
  background: var(--action-hover);
}
.btn.primary img {
  filter: invert(1);
}
.btn.selected {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  color: var(--action);
}
.btn.danger {
  color: var(--error-text);
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.panel,
.boardcol {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  min-width: 0;
}
.panel + .panel {
  margin-top: 16px;
}
.panel-h {
  min-height: 60px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.panel-h h2,
.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-h h2 {
  font-size: 17px;
}
.counter {
  font: 600 13px/1.4 var(--font-display);
  border-radius: 7px;
  padding: 2px 7px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
}
.list {
  padding: 6px 15px;
}
.list-row {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.list-row:last-child {
  border: 0;
}
.row-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-text b {
  font-weight: 600;
  display: block;
}
.row-text small {
  display: block;
}
.empty {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 26px 12px;
  color: var(--text-secondary);
  min-height: 100px;
  font-size: 14px;
}
.empty img {
  width: 21px;
  height: 21px;
  margin-bottom: 8px;
  opacity: 0.65;
}
.empty.big {
  min-height: 180px;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.badge,
.chip {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 6px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge {
  background: var(--surface-sunken);
  color: var(--text-secondary);
}
.chip {
  background: var(--selected-bg);
  color: var(--action);
}
.board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  align-items: stretch;
  min-height: 310px;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.boardcol {
  width: clamp(214px, 19vw, 302px);
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #f1f3f7;
  border-radius: 12px;
  padding: 10px;
  align-self: stretch;
}
.col-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 3px 13px;
}
.col-h h2 {
  font-size: 14px;
  letter-spacing: -0.015em;
}
.col-h .counter {
  background: white;
}
.deal {
  width: 100%;
  text-align: left;
  display: block;
  background: white;
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
  padding: 13px;
  margin-bottom: 8px;
  color: var(--text-primary);
  box-shadow: 0 1px 2px #161a2210;
}
.deal:hover {
  border-color: var(--border-strong);
}
.deal strong {
  display: block;
  font: 600 14px/1.35 var(--font-display);
  margin: 3px 0 5px;
}
.deal small {
  display: block;
  overflow-wrap: anywhere;
}
.deal .next {
  border-top: 1px solid var(--border-hairline);
  padding-top: 8px;
  margin-top: 9px;
}
.text-link {
  font: inherit;
  border: 0;
  color: var(--link);
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.error {
  background: var(--error-bg);
  color: var(--error-text);
  border-radius: 7px;
  padding: 9px 12px;
}
.warning {
  background: var(--clarify-bg);
  color: var(--clarify-text);
  padding: 9px 12px;
  border-radius: 7px;
}
.stack {
  display: grid;
  gap: 14px;
}
.sheet {
  width: min(600px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  border-left: 1px solid var(--border-hairline);
  padding: 0;
  background: var(--surface);
  color: var(--text-primary);
}
dialog::backdrop {
  background: rgba(22, 27, 40, 0.3);
  backdrop-filter: blur(2px);
}
.modal {
  border: 1px solid var(--border-hairline);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 15px;
  padding: 0;
  width: min(560px, calc(100% - 28px));
  max-height: 86dvh;
}
.dialoghead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--border-hairline);
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dialogbody {
  padding: 20px;
}
.dialoghead h2 {
  font-size: 19px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-hairline);
  gap: 5px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
}
.tabs button[aria-selected='true'] {
  border-color: var(--action);
  color: var(--action);
  font-weight: 600;
}
.field {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select,
.searchbox {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  padding: 8px 10px;
  outline-offset: 1px;
}
.field input,
.field textarea,
.field select {
  font-weight: 400;
}
.field textarea {
  min-height: 82px;
  resize: vertical;
}
.field small {
  font-weight: 400;
}
.fields2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.check input {
  margin-top: 4px;
}
.timeline {
  border-left: 1px solid var(--border-strong);
  margin-left: 4px;
  padding-left: 16px;
}
.timeline article {
  position: relative;
  margin: 0 0 16px;
}
.timeline article::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action);
  position: absolute;
  left: -20px;
  top: 8px;
}
.message {
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
}
.message.out {
  background: var(--selected-bg);
}
.bodytext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.signin {
  max-width: 940px;
  margin: clamp(40px, 12vh, 130px) auto 60px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 30px;
  align-items: center;
}
.signin .mark {
  width: 65px;
  height: 65px;
  margin-bottom: 18px;
}
.signin h1 {
  margin: 0 0 10px;
}
.signin .loginbox {
  padding: 22px;
  display: grid;
  gap: 16px;
}
.signin .loginbox h2 {
  font-size: 20px;
}
.top .account {
  max-width: 130px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: anywhere;
}
.table th {
  font-size: 12px;
  color: var(--text-secondary);
}
#toast {
  z-index: 50;
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grafitt);
  color: white;
  border-radius: 9px;
  font-size: 14px;
  max-width: calc(100vw - 32px);
}
#toast:not(:empty) {
  padding: 10px 16px;
}
.inline-icon {
  display: inline-block;
  vertical-align: middle;
}
.profile-menu {
  position: relative;
}
.profile-menu summary {
  list-style: none;
}
.profile-menu summary::-webkit-details-marker {
  display: none;
}
.profile-menu .menu-items {
  position: absolute;
  right: 0;
  top: 42px;
  background: #fff;
  min-width: 195px;
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
  padding: 10px;
  box-shadow: 0 4px 16px #242c411a;
  display: grid;
  gap: 8px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.page-error,
.signin-error {
  margin: 12px 0;
}
.archive {
  padding-top: 18px;
}
.subhead {
  font-size: 16px;
}
.spaced {
  padding: 16px 20px;
}
.plain-list {
  display: grid;
  gap: 8px;
}
.plain-list .btn {
  justify-content: flex-start;
}
.detail-top {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-page);
}
.details-list {
  display: grid;
  gap: 6px;
}
.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.details-list dt {
  color: var(--text-secondary);
}
.details-list dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.timeline p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wrap p,
.dialogbody p {
  overflow-wrap: anywhere;
}
.sidepanel-legend {
  margin: 10px 0;
}
@media (max-width: 1100px) {
  .top {
    gap: 12px;
  }
  .navtabs a {
    padding-inline: 7px;
  }
  .search-btn kbd {
    display: none;
  }
}
@media (max-width: 820px) {
  .top {
    flex-wrap: wrap;
    padding-top: 10px;
    gap: 4px 12px;
  }
  .navtabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    min-height: 43px;
  }
  .navtabs a {
    padding-inline: 10px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding-top: 28px;
  }
  .top .account {
    max-width: 100px;
  }
  .boardcol {
    width: 245px;
  }
  .actions {
    gap: 4px;
  }
  .signin {
    margin: 28px auto;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .top .word {
    width: 70px;
  }
  .top .mark {
    width: 23px;
    height: 23px;
  }
  .top .area {
    font-size: 11px;
  }
  .top {
    padding-inline: 10px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .fields2 {
    grid-template-columns: 1fr;
  }
  .panel-h,
  .dialoghead {
    padding: 14px;
  }
  .dialogbody {
    padding: 15px;
  }
  .table {
    font-size: 13px;
  }
  .signin .mark {
    width: 48px;
    height: 48px;
  }
  .search-btn {
    padding: 6px;
    min-width: 32px;
  }
  .brand {
    gap: 6px;
  }
  .top .account span {
    display: none;
  }
  .locale {
    max-width: 85px;
  }
  .top .navtabs a {
    font-size: 12px;
  }
  .boardcol {
    width: 82%;
  }
  .wrap {
    padding-inline: 13px;
  }
  .sheet {
    border: 0;
  }
  .actions .profile-menu summary {
    padding: 6px;
  }
  .panel-h h2 {
    font-size: 16px;
  }
  .tools {
    gap: 5px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .top {
    background: white;
    backdrop-filter: none;
  }
  dialog::backdrop {
    backdrop-filter: none;
  }
}
