@import "./commons-ui.css";
.opened-app {
  --cu-bg: #ebf1ed;
  --cu-accent: #c4e5c6;
}
.opened-app .cu-head h1 {
  letter-spacing: -0.08em;
}
.opened-app .cu-tabs button,
.opened-app .cu-button {
  border-radius: 18px;
}
.ow-overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.ow-card {
  background: #1f392c;
  color: #f6f5df;
  border-radius: 25px;
  padding: clamp(20px, 3vw, 37px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  position: relative;
  overflow: hidden;
}
.ow-card:after {
  content: "";
  width: 140px;
  height: 140px;
  border: 16px double #cede8270;
  outline: 1px solid #bdce83;
  border-radius: 50%;
  position: absolute;
  top: -51px;
  right: -34px;
}
.ow-card > span,
.ow-card small {
  color: #daedbf;
  font: 14px var(--cu-mono);
}
.ow-card strong {
  font:
    600 clamp(58px, 8vw, 100px)/1 Arial,
    sans-serif;
  letter-spacing: -0.09em;
}
.ow-card b {
  font: 27px var(--cu-mono);
  margin-left: 15px;
}
.ow-events {
  padding: 8px 0;
}
.ow-events p {
  display: grid;
  border-bottom: 1px solid var(--cu-line);
  padding: 10px 0;
}
.ow-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 15px 0;
  border-block: 1px solid var(--cu-line);
}
.ow-badge {
  margin: 10px 0;
  padding: 24px;
  border: 1px solid var(--cu-line);
  background: var(--cu-card);
  border-left: 8px solid #9daf71;
}
@media (max-width: 660px) {
  .ow-overview {
    grid-template-columns: 1fr;
  }
  .ow-card {
    min-height: 210px;
  }
}
.ow-card {
  color: var(--fx-text);
  background: var(--fx-sidebar);
  border: 1px solid var(--fx-border);
  border-radius: 6px;
  min-height: 195px;
  justify-content: center;
  gap: 4px;
}
.ow-card:after {
  display: none;
}
.ow-card > span,
.ow-card small {
  color: var(--fx-muted);
}
.ow-card strong {
  font:
    600 55px/1.1 system-ui,
    sans-serif;
  letter-spacing: -0.06em;
}
.ow-card b {
  font-size: 17px;
}
.ow-badge {
  background: var(--fx-surface);
  border-left: 3px solid var(--fx-accent);
}
.ow-statement header,
.ow-balances,
.ow-statement footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ow-balances {
  padding: 14px;
  background: var(--fx-sidebar);
  border-block: 1px solid var(--fx-border);
  margin: 12px 0;
}
.ow-balances span {
  display: grid;
  font-size: 12px;
  color: var(--fx-muted);
}
.ow-balances b {
  font-size: 21px;
  color: var(--fx-text);
}
.ow-postings {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.ow-postings aside {
  border-left: 1px solid var(--fx-border);
  padding: 10px 15px;
}
.ow-line {
  display: grid;
  grid-template-columns: 4em 1fr auto;
  align-items: start;
  width: 100%;
  gap: 6px;
  text-align: left;
  padding: 9px 5px;
  border: 0;
  border-bottom: 1px solid var(--fx-border);
  border-radius: 0;
  background: var(--fx-surface);
}
.ow-line[aria-pressed="true"] {
  background: var(--fx-selected);
  color: var(--fx-selected-text);
}
.ow-line time,
.ow-line small {
  font-size: 12px;
}
.ow-line small {
  display: block;
}
.ow-postings dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}
.ow-postings dd {
  margin: 0;
}
.ow-statement footer {
  padding: 12px 0;
  font-size: 13px;
}
@media (max-width: 620px) {
  .ow-postings {
    grid-template-columns: 1fr;
  }
  .ow-postings aside {
    border-left: 0;
    border-top: 1px solid var(--fx-border);
  }
}
.opened-app {
  --ow-ink: #362c28;
  --ow-page: #f7f0da;
  --ow-rule: #b8ae94;
  --ow-cover: #693637;
  --ow-foil: #f5dea8;
}
[data-theme="dark"] .opened-app {
  --ow-ink: #eee1c3;
  --ow-page: #322e28;
  --ow-rule: #786d59;
  --ow-cover: #49282d;
  --ow-foil: #edcf96;
}
.opened-app .cu-capture {
  max-width: 1170px;
}
.opened-app .cu-head {
  border-bottom: 1px solid var(--fx-border);
  padding-bottom: 8px;
}
.opened-app .cu-head h1 {
  font-size: 18px;
}
.opened-app .cu-head p {
  display: none;
}
.opened-app .cu-tabs {
  background: none;
  border: 0;
  margin: 7px 0 15px;
  padding: 0;
}
.ow-passbook {
  display: grid;
  grid-template-columns: minmax(185px, 0.76fr) minmax(0, 1.7fr);
  border: 1px solid var(--ow-rule);
  border-radius: 4px;
  box-shadow:
    0 3px 0 -1px var(--ow-page),
    0 4px 0 -1px var(--ow-rule);
  overflow: hidden;
}
.ow-cloth {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 24px 18px;
  color: var(--ow-foil);
  background-color: var(--ow-cover);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, #fff1 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 3px, #13080822 3px 4px);
  border-inline: 5px double #bd9762;
}
.ow-cloth h2 {
  font:
    500 clamp(37px, 5.8vw, 71px)/0.87 Georgia,
    serif;
  letter-spacing: -0.07em;
  color: inherit;
  margin: 13px 0 4px;
}
.ow-cloth > div > small,
.ow-cloth > div > span,
.ow-paper header > small,
.ow-months button {
  font: 11px var(--cu-mono);
  letter-spacing: 0.035em;
}
.ow-cloth p {
  font:
    11px/1.4 system-ui,
    sans-serif;
  margin: 5px 0;
}
.ow-cloth b {
  display: block;
  font:
    500 31px Georgia,
    serif;
}
.ow-cloth b small {
  font: 11px var(--cu-mono);
}
.ow-seal {
  width: min(125px, 65%);
  height: auto;
  margin: 5px 0;
}
.ow-paper,
.ow-statement {
  color: var(--ow-ink);
  background: var(--ow-page);
}
.ow-paper {
  padding: clamp(16px, 3vw, 39px);
  border-left: 5px double var(--ow-rule);
}
.ow-paper header h2 {
  font:
    500 clamp(25px, 3.4vw, 44px) Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 2px 0 17px;
}
.ow-paper table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ow-paper caption {
  text-align: left;
  font: 11px var(--cu-mono);
  padding-bottom: 7px;
}
.ow-paper th,
.ow-paper td {
  text-align: left;
  border-bottom: 1px solid var(--ow-rule);
  padding: 10px 4px;
}
.ow-paper thead th {
  font: 10px var(--cu-mono);
  border-block: 3px double var(--ow-rule);
}
.ow-paper tbody td {
  font: 13px var(--cu-mono);
  white-space: nowrap;
}
.ow-paper tbody th {
  font:
    500 16px Georgia,
    serif;
}
.ow-paper tbody button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 2px;
  cursor: pointer;
}
.ow-paper tbody button:hover {
  text-decoration: underline;
}
.ow-paper :is(td, th):nth-last-child(-n + 2) {
  text-align: right;
}
.ow-paper footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    600 15px Georgia,
    serif;
  border-bottom: 3px double var(--ow-rule);
  padding: 10px 0;
}
.ow-months,
.ow-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.ow-months button {
  background: transparent;
  color: inherit;
  border: 1px solid var(--ow-rule);
}
.ow-months button[aria-pressed="true"] {
  box-shadow: inset 0 -2px currentColor;
}
.ow-statement {
  padding: 15px;
  border: 1px solid var(--ow-rule);
}
.ow-statement h2 {
  font-family: Georgia, serif !important;
}
@media (max-width: 620px) {
  .ow-passbook {
    grid-template-columns: 1fr;
  }
  .ow-cloth {
    display: grid;
    grid-template-columns: 1fr 0.6fr 1fr;
    gap: 8px;
    min-height: auto;
    padding: 12px;
    text-align: left;
  }
  .ow-cloth h2 {
    font-size: 27px;
    margin: 4px 0;
  }
  .ow-cloth h2 br {
    display: none;
  }
  .ow-cloth h2 br:after {
    content: " ";
  }
  .ow-cloth b {
    font-size: 22px;
  }
  .ow-seal {
    width: 100%;
  }
  .ow-paper {
    border-left: 0;
    border-top: 3px double var(--ow-rule);
  }
  .ow-paper th,
  .ow-paper td {
    padding: 8px 2px;
  }
  .ow-paper tbody th {
    font-size: 14px;
  }
}
.opened-app .ow-cloth small,
.opened-app .ow-cloth span {
  color: var(--ow-foil);
}
@media (max-width: 620px) {
  .ow-cloth h2 br {
    display: block;
  }
}
