@import "/layout.css";
:root {
  color-scheme: dark;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #181818;
  color: #f4f4f4;
  font-synthesis: none;
  --pink:#ff4fa3;
  --line:#373737;
  --muted:#a5a5a5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.1px;
  margin: 0;
  font-weight: 730;
}
h2 {
  font-size: 21px;
  letter-spacing: -.45px;
  margin: 0;
}
p {
  line-height: 1.45;
}
.muted,
small {
  color: var(--muted);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 22px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.date {
  color: var(--muted);
  font-size: 13px;
}
.freshness {
  display: block;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  margin: 12px 0 22px;
}
.list {
  display: grid;
  gap: 12px;
}
.task {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 12px;
  background: #222;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px 17px;
  text-align: left;
  width: 100%;
}
.number {
  color: var(--pink);
  font-size: 13px;
  font-weight: 650;
  line-height: 24px;
}
.task-title {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -.3px;
  line-height: 1.35;
}
.task-amount {
  font-size: 21px;
  letter-spacing: -.5px;
  font-weight: 650;
  display: block;
  margin: 10px 0;
}
.task-reason {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.arrow {
  color: #9b9b9b;
  align-self: center;
  font-size: 21px;
}
.bound {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  margin: 23px 0 32px;
  font-size: 13px;
  line-height: 1.5;
}
.bound strong {
  color: var(--pink);
  font-weight: 600;
}
.upcoming .task {
  background: #1d1d1d;
}
.empty {
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}
nav {
  display: flex;
  background: #242424;
  border-top: 1px solid var(--line);
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  gap: 5px;
}
nav button {
  flex: 1;
  padding: 7px;
  border-radius: 10px;
  color: #a3a3a3;
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
}
nav button[aria-selected=true] {
  color: var(--pink);
}
nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.row {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.row strong {
  font-size: 16px;
  display: block;
  font-weight: 580;
}
.row small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.row-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.group {
  margin: 28px 0;
}
.group h2 {
  margin-bottom: 8px;
}
.primary {
  background: var(--pink);
  color: #181818;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 650;
  width: 100%;
  margin-top: 16px;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  width: 100%;
  margin-top: 12px;
}
.text-button {
  padding: 10px 0;
  color: var(--pink);
  font-size: 13px;
}
.actions-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}
dialog {
  border: 1px solid #454545;
  border-radius: 24px;
  color: inherit;
  background: #242424;
  width: min(520px, calc(100% - 24px));
  padding: 26px;
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}
.modal-head h2 {
  font-size: 24px;
}
.close {
  color: var(--pink);
  font-size: 14px;
  padding: 6px;
}
.detail-amount {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
dl {
  margin: 22px 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
dd {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 13px;
  color: #b8b8b8;
  margin: 17px 0 6px;
}
input,
select {
  width: 100%;
  border: 1px solid #494949;
  background: #181818;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  min-height: 45px;
}
input:focus,
select:focus {
  outline: 1px solid var(--pink);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-error {
  color: #ffabab;
  font-size: 13px;
}
.danger {
  color: #ffabab;
}
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.total {
  font-size: 32px;
  letter-spacing: -.8px;
  margin: 15px 0 25px;
}
.tag {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  color: #aaa;
  margin-left: 6px;
}
#notice {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 32px));
  padding: 16px 20px;
  background: #373737;
  border-radius: 13px;
  z-index: 3;
  font-size: 13px;
  box-shadow: 0 4px 35px #0006;
}
svg {
  flex-shrink: 0;
}
.sign-in {
  min-height: 75dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
}
.apple-sign-in {
  width: 100%;
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 12px;
  min-height: 50px;
  font-weight: 600;
}
.apple-sign-in svg { width: 23px; height: 23px; fill: currentColor; }
.apple-sign-in:disabled { opacity: .6; }

.bank-review .row { padding: 15px 0; }
.bank-review .text-button { flex-shrink: 0; }
.bank-choice { min-height: 56px; }
.bank-choice span { color: var(--pink); font-size: 12px; }
#detail details { margin: 16px 0; }
#detail summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 12px 0; }
.primary:disabled { opacity: .5; cursor: default; }

.refresh-button { color: var(--pink); font-size: 13px; text-align: right; padding: 10px 0 10px 12px; }
.refresh-button:disabled, .text-button:disabled { opacity: .5; cursor: default; }
.data-status { margin: 12px 0 22px; }
.data-status .freshness { margin: 7px 0; line-height: 1.5; }
.data-status .note { display: block; margin: 7px 0 0; }
.data-status .text-button { padding: 6px 0; display: block; }

.calculation-status { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; font-size: 13px; }
.calculation-status strong, .calculation-status span { display: block; }
.calculation-status strong { font-weight: 600; }
.calculation-status span { color: var(--muted); font-size: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.calculation-status progress { display: block; width: 100%; height: 4px; margin-top: 12px; accent-color: var(--pink); }
