.fcase {
  --case-ink: #102d3a;
  --case-muted: #465756;
  --case-line: #c9d1cc;
  --case-forest: #0a594d;
  --case-lime: #c5ef78;
  background: #f6f6ef;
  color: var(--case-ink);
  padding-block: clamp(4rem, 7vw, 7rem);
}
.fcase, .fcase * { box-sizing: border-box; }
.fcase-wrap { width: min(1240px, calc(100% - 2 * var(--gutter, clamp(20px, 5.5vw, 80px)))); margin-inline: auto; }
.fcase-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); align-items: end; gap: clamp(2rem, 8vw, 7rem); margin-bottom: clamp(1.7rem, 3vw, 2.8rem); }
.fcase-caption, .fcase-sub { font-size: .8rem; font-weight: 650; color: var(--case-muted); line-height: 1.3; letter-spacing: .04em; margin: 0; }
.fcase-caption { margin-bottom: .85rem; }
.fcase-intro h2 { font-size: clamp(2.45rem, 4.1vw, 4.3rem); line-height: .99; letter-spacing: -.058em; font-weight: 600; max-width: 14ch; margin: 0; color: var(--case-ink); }
.fcase-intro > p { color: var(--case-muted); font-size: clamp(1.04rem, 1.3vw, 1.23rem); line-height: 1.52; max-width: 36ch; margin: 0 0 .15em; }
.fcase-desk { background: #fff; border: 1px solid #b7c4be; border-top: 3px solid var(--case-ink); }
.fcase-deskhead { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 1.05rem clamp(1rem, 2.5vw, 2.2rem); border-bottom: 1px solid var(--case-line); }
.fcase-appname { font-size: 1rem; font-weight: 700; letter-spacing: -.018em; }
.fcase-reference { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; white-space: nowrap; color: var(--case-muted); }
.fcase-tabs { display: flex; border-bottom: 1px solid var(--case-line); padding-inline: clamp(1rem, 2.5vw, 2.2rem); }
.fcase-tabs button { position: relative; border: none; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0; padding: .84rem 1.15rem .68rem; min-height: 46px; background: transparent; font: inherit; font-weight: 570; font-size: .94rem; color: var(--case-muted); cursor: pointer; }
.fcase-tabs button:hover { background: #f0f3ed; }
.fcase-tabs button[aria-selected="true"] { border-bottom-color: var(--case-forest); color: var(--case-forest); font-weight: 735; }
.fcase button:focus-visible { outline: 3px solid #a65f17; outline-offset: -3px; }
.fcase-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .85fr); min-height: 20rem; }
.fcase-panel[hidden] { display: none; }
.fcase-record, .fcase-aside { padding: clamp(1.45rem, 3.4vw, 3rem); min-width: 0; }
.fcase-record h3 { font-weight: 640; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.12; letter-spacing: -.045em; margin: .4rem 0 1.55rem; color: var(--case-ink); }
.fcase-sub { font-size: .8rem; letter-spacing: .02em; }
.fcase-compare, .fcase-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .96rem; line-height: 1.35; }
.fcase-compare th, .fcase-compare td { padding: .79rem .35rem .79rem 0; border: 0; border-bottom: 1px solid #d7dfda; background: transparent; }
.fcase-compare thead th { font-weight: 580; color: var(--case-muted); font-size: .83rem; }
.fcase-compare thead th:first-child, .fcase-compare tbody th { text-align: left; }
.fcase-compare thead th:not(:first-child), .fcase-compare td { text-align: right; }
.fcase-compare th:last-child, .fcase-compare td:last-child { padding-right: 0; }
.fcase-compare tbody th { font-weight: 500; color: var(--case-muted); }
.fcase-compare tbody td { white-space: nowrap; }
.fcase-discrepancy { display: inline-block; white-space: nowrap; padding: .08em .34em; background: #ffe7b2; color: #57380a; font-weight: 695; }
.fcase-lines { margin: 0; }
.fcase-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .72rem; border-bottom: 1px solid #d7dfda; }
.fcase-lines dt { color: var(--case-muted); }
.fcase-lines dd { margin: 0; text-align: right; font-weight: 580; }
.fcase-aside { display: flex; flex-direction: column; align-items: start; background: #ebefe8; border-left: 1px solid var(--case-line); }
.fcase-aside > p:not(.fcase-sub) { font-size: 1rem; line-height: 1.52; margin: 0 0 1.35rem; max-width: 37ch; color: #354d49; }
.fcase-aside h4 { font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--case-ink); font-weight: 630; letter-spacing: -.04em; line-height: 1.15; margin: .5rem 0 .75rem; }
.fcase-aside-dark { background: var(--case-ink); color: white; border-left-color: var(--case-ink); }
.fcase-aside-dark > p:not(.fcase-sub) { color: #e5ece6; }
.fcase-status { display: flex; align-items: center; gap: .52rem; font-size: .9rem; font-weight: 570; line-height: 1.35; color: #ffdf99; }
.fcase-sign { display: inline-grid; place-items: center; width: 1.12rem; height: 1.12rem; font-size: .76rem; line-height: 1; font-weight: 790; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.fcase-aside .fcase-amount { color: white; font-size: clamp(2.25rem, 3.5vw, 3.55rem); line-height: 1; font-weight: 580; letter-spacing: -.06em; margin: 1rem 0 .64rem; }
.fcase-action { display: inline-flex; justify-content: center; align-items: center; cursor: pointer; min-height: 44px; font: inherit; font-size: .94rem; font-weight: 660; line-height: 1.24; padding: .8rem 1.05rem; margin-top: auto; max-width: 100%; border: 1px solid var(--case-forest); border-radius: 3px; background: var(--case-forest); color: white; }
.fcase-action:hover { background: #06463c; }
.fcase-aside-dark .fcase-action { background: var(--case-lime); border-color: var(--case-lime); color: var(--case-ink); }
.fcase-aside-dark .fcase-action:hover { background: #d9ffa0; }
.fcase-sr { position: absolute; clip: rect(0,0,0,0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; margin: -1px; border: 0; }
@media (max-width: 900px) {
  .fcase-panel { grid-template-columns: minmax(0, 1.35fr) minmax(14rem, .8fr); }
  .fcase-record, .fcase-aside { padding: 1.55rem; }
}
@media (max-width: 720px) {
  .fcase-intro { grid-template-columns: 1fr; gap: 1rem; }
  .fcase-intro > p { max-width: 46ch; }
  .fcase-panel { grid-template-columns: 1fr; }
  .fcase-aside { border-left: 0; border-top: 1px solid var(--case-line); }
  .fcase-aside-dark { border-top-color: var(--case-ink); }
  .fcase-aside h4 { max-width: none; }
  .fcase-aside-dark > p:not(.fcase-sub) br { display: none; }
}
@media (max-width: 440px) {
  .fcase-wrap { width: calc(100% - 2rem); }
  .fcase-deskhead { padding-inline: .78rem; }
  .fcase-tabs { padding-inline: .45rem; }
  .fcase-tabs button { flex: 1; padding-inline: .3rem; font-size: .86rem; }
  .fcase-record, .fcase-aside { padding: 1.12rem .8rem; }
  .fcase-compare, .fcase-lines { font-size: .86rem; }
  .fcase-compare thead th { font-size: .79rem; }
  .fcase-compare thead span { display: block; }
  .fcase-compare th, .fcase-compare td { padding-block: .74rem; }
  .fcase-record h3 { margin-bottom: .6rem; }
  .fcase-lines > div { gap: .5rem; }
  .fcase-action { width: 100%; }
}
