:root {
  color-scheme: dark;
  --bg: #101016;
  --surface: #1b1a23;
  --raised: #26212f;
  --line: #342c3e;
  --ink: #f4f0f8;
  --muted: #b6adbf;
  --purple: #b793ff;
  --brand: #820ad1;
  --champagne: #dfd3bb;
  --error: #ffb6c8;
  --success: #a6d9c3;
  --viewport-height: 100dvh;
  font-family: Onest, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  -webkit-touch-callout: none;
}
button {
  color: inherit;
}
a {
  color: var(--purple);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}
button:active {
  transform: scale(0.96);
}
button {
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms,
    color 220ms;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Plus Jakarta Sans", Onest, sans-serif;
  font-weight: 500;
  letter-spacing: -0.8px;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 8px;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
}
p {
  font-size: 13px;
  line-height: 1.7;
}
strong {
  font-weight: 500;
}
small {
  font-size: 11px;
  line-height: 1.6;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}
.brand-symbol {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-word {
  font-family: Outfit, sans-serif;
  font-weight: 550;
  font-size: 28px;
  letter-spacing: -0.7px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #efe7d8;
}
.app-shell {
  width: 100%;
  max-width: 520px;
  margin: auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--brand);
  padding: calc(20px + env(safe-area-inset-top)) 22px 35px;
  color: #fff;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff22;
  border: 0;
  flex-shrink: 0;
  padding: 0;
}
.avatar .icon {
  width: 29px;
  height: 29px;
}
.header-copy {
  min-width: 0;
}
.greeting {
  font-size: 15px;
  display: block;
  line-height: 1.4;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.top .brand {
  gap: 7px;
}
.top .brand-symbol {
  width: 22px;
  height: 22px;
}
.top .brand-word {
  font-size: 26px;
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  color: inherit;
  flex-shrink: 0;
}
.icon-button .icon {
  width: 29px;
  height: 29px;
}
.content {
  position: relative;
  margin-top: -15px;
  border-radius: 28px 28px 0 0;
  background: var(--bg);
  padding: 25px 22px calc(126px + env(safe-area-inset-bottom));
  min-height: calc(100dvh - 120px);
  overflow-wrap: anywhere;
}
.content.arriving {
  animation: screen-arrive 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes screen-arrive {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.kicker {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 23px;
}
.box {
  background: var(--surface);
  padding: 22px;
  border-radius: 24px;
  margin-bottom: 16px;
  min-width: 0;
}
.box.croma {
  background: linear-gradient(135deg, #efe7d8, #dfd3bb 70%, #d3c1a4);
  color: #3a2c3d;
}
.box-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 0;
}
.box-label .icon {
  width: 24px;
  height: 24px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-head .icon-button {
  width: 44px;
  height: 44px;
}
.card-head .icon-button .icon {
  width: 25px;
  height: 25px;
}
.big {
  font-family: Outfit, sans-serif;
  font-weight: 500;
  letter-spacing: -1px;
  font-size: 36px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 5px;
}
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.croma .small,
.croma .subtle {
  color: #5d4d59;
}
.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 18px;
}
.croma .parts {
  border-color: #6c5a5d30;
}
.parts span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.parts strong {
  font-size: 15px;
  line-height: 1.5;
  display: block;
  font-variant-numeric: tabular-nums;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
  margin: 24px 0 28px;
}
.action-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--raised);
  color: #eadcf8;
  flex-shrink: 0;
}
.action-icon .icon {
  width: 32px;
  height: 32px;
}
.action-icon.primary {
  background: var(--brand);
  color: #fff;
}
.croma .action-icon {
  background: #ffffff50;
  color: #4c2d60;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}
.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  min-width: 0;
}
.row:last-child {
  border-bottom: 0;
}
.row-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--raised);
  color: #e3d5ef;
  flex-shrink: 0;
}
.row-icon .icon {
  width: 27px;
  height: 27px;
}
.row-copy {
  flex: 1;
  min-width: 0;
}
.row-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.row-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.row-value {
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  max-width: 115px;
  flex-shrink: 0;
  line-height: 1.6;
}
.row-value small {
  display: block;
  color: var(--muted);
}
.row > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.5;
  background: #2e223b;
  color: #dbc3ff;
  padding: 5px 8px;
  border-radius: 8px;
}
.status.success {
  background: #19342c;
  color: var(--success);
}
.status.error {
  background: #3b2231;
  color: var(--error);
}
.status .icon {
  width: 13px;
  height: 13px;
}
.space-top {
  margin-top: 16px;
}
.note {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 18px 0;
}
.note .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.empty {
  padding: 28px 12px;
  text-align: center;
}
.empty > .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 13px;
  color: var(--purple);
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 330px;
  margin: 8px auto 16px;
}
.empty h2,
.empty h3 {
  font-size: 16px;
}
.nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  max-width: 520px;
  gap: 4px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: #18151ff2;
  backdrop-filter: blur(18px);
  border-top: 1px solid #302838;
}
.nav button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: #bdb3c8;
  padding: 7px;
  position: relative;
}
.nav .icon {
  width: 32px;
  height: 32px;
}
.nav [aria-current="page"] {
  background: #382047;
  color: #e0baff;
}
.nav [aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.fab {
  position: fixed;
  z-index: 9;
  bottom: calc(101px + env(safe-area-inset-bottom));
  right: max(22px, calc((100vw - 476px) / 2));
  box-shadow: 0 6px 20px #0005;
}
.fab .action-icon {
  background: var(--brand);
  color: white;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 24px 15px;
  margin: 28px 0 32px;
}
.more-grid .action-icon {
  width: 72px;
  height: 72px;
}
.more-grid .icon {
  width: 36px;
  height: 36px;
}
.segment {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 4px;
  margin: 17px 0;
}
.segment button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  border-radius: 10px;
  padding: 8px 6px;
}
.segment button[aria-pressed="true"] {
  background: #38234e;
  color: #ead9ff;
}
.cycle-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}
.cycle-control label {
  font-size: 11px;
  color: var(--muted);
}
.cycle-control input,
.cycle-control select {
  width: auto;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 50px;
  padding: 12px 21px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
}
.button .icon {
  width: 22px;
  height: 22px;
}
.button.secondary {
  background: var(--raised);
  color: #e3d4f5;
}
.button.danger {
  background: #4d2637;
  color: #ffd0dd;
}
.button.wide {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--purple);
  min-height: 44px;
  font-size: 12px;
  padding: 8px 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.actions .button {
  flex: 1;
}
.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  min-width: 0;
}
.field label,
.field legend {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #4d4359;
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  padding: 12px;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inline-fields .field {
  margin-top: 0;
}
.check-field {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 0;
}
.check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin-top: 0;
}
.error-note {
  color: var(--error);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
  white-space: pre-line;
}
.error-note:empty {
  display: none;
}
.result {
  background: #282232;
  border-radius: 15px;
  padding: 15px;
  display: grid;
  gap: 12px;
  margin: 17px 0;
}
.result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.result strong {
  color: #e3d2ff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.audit-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}
.audit-row small {
  color: var(--muted);
  display: block;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}
.search-wrap .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.search-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  outline-offset: 0;
}
.import-row {
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  margin: 12px 0;
}
.import-row .row {
  padding: 0 0 10px;
}
.import-row .field {
  margin: 12px 0;
}
.import-row .field input,
.import-row .field select {
  font-size: 14px;
}
.import-count {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.sheet-open {
  overflow: hidden;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #07050bb0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: backdrop-arrive 220ms ease-out;
}
.sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: calc(var(--viewport-height) - env(safe-area-inset-top) - 16px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  outline: none;
  box-shadow: 0 -12px 50px #0003;
  animation: sheet-arrive 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.sheet-handle {
  display: grid;
  place-items: center;
  height: 24px;
  min-height: 24px;
  touch-action: none;
  cursor: grab;
}
.sheet-handle span {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 8px;
  background: #62556d;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 18px 10px 22px;
  flex-shrink: 0;
}
.sheet-header h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.5px;
}
.sheet-body {
  padding: 0 22px calc(25px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 20px;
}
.sheet-body > p:first-child {
  color: var(--muted);
  font-size: 12px;
}
.sheet-body .actions {
  position: sticky;
  bottom: calc(-25px - env(safe-area-inset-bottom));
  padding: 15px 0 calc(10px + env(safe-area-inset-bottom));
  margin-bottom: calc(-10px - env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 1;
}
.sheet .row {
  padding: 13px 0;
}
.sheet .row-copy strong {
  font-size: 14px;
}
.sheet .box {
  padding: 18px;
}
.upload-zone {
  border: 1px dashed #6f5886;
  border-radius: 22px;
  text-align: center;
  padding: 25px 15px;
  background: #211b2b;
}
.upload-zone > .icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 15px;
  color: var(--purple);
}
.upload-zone p {
  font-size: 12px;
  color: var(--muted);
}
.private-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 520px;
  margin: auto;
  background: var(--bg);
}
.auth-header {
  padding: calc(26px + env(safe-area-inset-top)) 25px 60px;
  background: var(--brand);
}
.auth-header .brand-symbol {
  width: 37px;
  height: 37px;
}
.auth-header .brand-word {
  font-size: 36px;
}
.auth-content {
  position: relative;
  flex: 1;
  margin-top: -27px;
  border-radius: 29px 29px 0 0;
  background: var(--bg);
  padding: 34px 25px calc(30px + env(safe-area-inset-bottom));
}
.auth-art {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #efe7d8, #d7c7a9);
  color: #4a3450;
  border-radius: 28px;
  margin: 10px 0 25px;
}
.auth-art .brand-symbol {
  width: 53px;
  height: 53px;
}
.auth-content h1 {
  max-width: 340px;
  font-size: 32px;
  line-height: 1.3;
}
.auth-content .subtitle {
  font-size: 14px;
  margin-top: 14px;
  margin-bottom: 30px;
}
.auth-foot {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 28px;
}
.google-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #4285f4;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  color: var(--muted);
  text-align: center;
  padding: 25px;
}
.loading .brand {
  margin-bottom: 20px;
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #ffffff40;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sheet-arrive {
  from {
    transform: translateY(35px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes backdrop-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#toast {
  position: fixed;
  z-index: 50;
  bottom: calc(105px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 15px);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border: 1px solid #5c496d;
  border-radius: 16px;
  background: #302338;
  color: #f4e7ff;
  box-shadow: 0 5px 25px #0005;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms,
    transform 220ms;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 230px;
  padding: 8px 11px;
  border: 1px solid #776087;
  border-radius: 10px;
  background: #33243e;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 4px 12px #0005;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.sync-banner {
  font-size: 11px;
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 13px;
  background: #342337;
  color: #f7c4d5;
  margin-bottom: 18px;
}
.sync-banner button {
  background: transparent;
  border: 0;
  color: #e3c9ff;
  text-decoration: underline;
  min-height: 34px;
  padding: 4px 0;
  margin-left: 6px;
}
.progress {
  height: 5px;
  background: var(--line);
  border-radius: 8px;
  margin: 14px 0;
}
.progress > span {
  height: 100%;
  display: block;
  width: var(--progress);
  max-width: 100%;
  background: var(--purple);
  border-radius: 8px;
}
.file-code {
  font-family: monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  user-select: all;
}
.subtle {
  color: var(--muted);
}
.credit {
  color: var(--success);
}
.footer-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
@media (min-width: 600px) {
  body {
    background: #0b0910;
  }
  .app-shell,
  .auth-page {
    box-shadow: 0 0 80px #0005;
    border-inline: 1px solid #211a2a;
  }
  .sheet-backdrop {
    align-items: center;
    padding: 22px;
  }
  .sheet {
    max-height: calc(var(--viewport-height) - 44px);
    border-radius: 27px;
    border-bottom: 1px solid var(--line);
  }
  .sheet-handle {
    cursor: default;
  }
  .content {
    padding-left: 28px;
    padding-right: 28px;
  }
  .top {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (max-width: 360px) {
  .top {
    padding-left: 16px;
    padding-right: 16px;
  }
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .greeting {
    max-width: 180px;
    font-size: 14px;
  }
  h1 {
    font-size: 25px;
  }
  .big {
    font-size: 32px;
  }
  .box {
    padding: 19px;
  }
  .shortcuts {
    gap: 7px;
  }
  .action-icon {
    width: 64px;
    height: 64px;
  }
  .nav {
    padding-left: 8px;
    padding-right: 8px;
  }
  .nav button {
    min-height: 54px;
  }
  .row-icon {
    width: 46px;
    height: 46px;
  }
  .row-value {
    max-width: 95px;
    font-size: 11px;
  }
  .sheet-header {
    padding-left: 16px;
  }
  .sheet-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .inline-fields {
    grid-template-columns: 1fr;
  }
  .more-grid {
    gap: 24px 10px;
  }
  .auth-content {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active {
    transform: none;
  }
}
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *:before,
:root[data-motion="reduced"] *:after {
  animation: none !important;
  transition: none !important;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3fa;
  --surface: #fff;
  --raised: #eee5f5;
  --line: #ddd1e4;
  --ink: #2b2034;
  --muted: #70617b;
  --purple: #78449d;
  --error: #a1274c;
  --success: #23634c;
}
:root[data-theme="light"] .nav {
  background: #fcf8fff5;
}
:root[data-theme="light"] .row-icon,
:root[data-theme="light"] .action-icon {
  color: #70428a;
}
:root[data-theme="light"] .segment button[aria-pressed="true"] {
  background: #e8d6f3;
  color: #63347e;
}
:root[data-theme="light"] .status {
  background: #ecddf7;
  color: #63347e;
}
:root[data-theme="light"] .result {
  background: #ede2f5;
}
:root[data-theme="light"] .result strong {
  color: #643583;
}
:root[data-theme="light"] .button.secondary {
  color: #60337b;
}
:root[data-theme="light"] .upload-zone {
  background: #f1e8f7;
}
.card-head .action-icon {
  width: 48px;
  height: 48px;
  min-height: 48px;
  background: transparent;
  color: inherit;
}
.card-head .action-icon .icon {
  width: 27px;
  height: 27px;
}
.croma .card-head .action-icon {
  background: #ffffff30;
}
.auth-foot > .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}
.sheet-backdrop.is-closing {
  opacity: 0;
  transition: opacity 200ms ease;
}
.sheet-backdrop.is-closing .sheet {
  animation: none;
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 200ms cubic-bezier(0.4, 0, 0.8, 0.2),
    opacity 200ms ease;
}
:root[data-theme="light"] .fab .action-icon,
:root[data-theme="light"] .action-icon.primary {
  color: #fff;
}
.parts .balance-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.6;
}
.croma .parts .balance-label {
  color: #5d4d59;
}
[hidden] {
  display: none !important;
}
.receipt-ui {
  font-size: 13px;
  line-height: 1.65;
}
.receipt-ui .receipt-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.receipt-photo-actions,
.receipt-photo-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.receipt-photo-actions > .button {
  flex: 1;
  min-width: 120px;
}
.receipt-photo {
  margin: 18px 0;
  padding: 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.receipt-photo:empty {
  display: none;
}
.receipt-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
}
.receipt-photo figcaption {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 3px 3px;
}
.receipt-ocr-progress {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--raised);
  border-radius: 18px;
  margin: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.receipt-ocr-progress progress {
  width: 100%;
  height: 5px;
  accent-color: var(--purple);
}
.receipt-ocr-result {
  padding: 17px;
  background: #282035;
  border: 1px solid #51405f;
  border-radius: 19px;
  margin: 18px 0;
}
.receipt-ocr-result > p {
  font-size: 12px;
  color: #ddc9f4;
}
.receipt-ocr-result .note {
  font-size: 11px;
  margin: 9px 0;
}
.receipt-ocr-result .button {
  margin: 10px 0;
}
.receipt-raw-text {
  max-height: 230px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.7 Onest,
    sans-serif;
  color: var(--muted);
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
}
.receipt-ui details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--purple);
  list-style: none;
}
.receipt-ui details > summary:after {
  content: "+";
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
}
.receipt-ui details[open] > summary:after {
  content: "−";
}
.receipt-items,
.receipt-review-list {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}
.receipt-item {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.receipt-item.is-accepted {
  border-color: #37544a;
  background: #18251f;
}
.receipt-item-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 12px;
}
.receipt-item-heading > strong {
  font-size: 14px;
  flex: 1;
  min-width: 0;
}
.receipt-item-heading .icon-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
}
.receipt-item-heading .icon-button .icon {
  width: 22px;
  height: 22px;
}
.receipt-item .field {
  margin: 14px 0;
}
.receipt-item .field:first-child {
  margin-top: 0;
}
.receipt-item .inline-fields {
  gap: 10px;
}
.receipt-item .inline-fields .field {
  margin-top: 8px;
}
.receipt-item input,
.receipt-item select {
  background: var(--bg);
}
.receipt-item .field label {
  font-size: 11px;
}
.receipt-item input {
  font-size: 16px;
  min-height: 47px;
  padding: 10px;
}
.receipt-item .inline-fields {
  grid-template-columns: 1fr 1fr;
}
.receipt-item-extras {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 4px;
}
.receipt-item-extras small {
  color: var(--muted);
}
.receipt-status {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 8px;
  background: #392b46;
  color: #dec4f7;
}
.receipt-item.is-accepted .receipt-status {
  background: #244537;
  color: #b5e4cc;
}
.receipt-item-amount {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.receipt-item-amount > span {
  font-size: 11px;
  color: var(--muted);
}
.receipt-item-amount > strong {
  color: #dec5f7;
}
.receipt-shared {
  padding: 0 13px 13px;
  border-radius: 14px;
  background: var(--raised);
  margin-top: 10px;
}
.receipt-shared small {
  color: var(--muted);
}
.receipt-totals {
  padding: 19px;
  border: 1px solid #584064;
  border-radius: 21px;
  background: #241a2d;
  margin: 22px 0;
  font-variant-numeric: tabular-nums;
}
.receipt-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.receipt-totals strong {
  text-align: right;
  flex-shrink: 0;
  color: #e5cef7;
}
.receipt-totals > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
.receipt-totals .receipt-reconciliation {
  padding-top: 12px;
  border-top: 1px solid #543960;
  color: var(--error);
}
.receipt-totals .receipt-reconciliation.is-balanced {
  color: var(--success);
}
.receipt-adjustments {
  margin-top: 20px;
  padding: 5px 15px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.receipt-adjustments > p {
  font-size: 11px;
  color: var(--muted);
}
.receipt-adjustment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}
.receipt-adjustment > small {
  color: var(--muted);
}
.receipt-empty {
  padding: 24px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.receipt-empty h3 {
  color: var(--ink);
}
.receipt-empty p {
  font-size: 12px;
  margin-bottom: 0;
}
.receipt-list-total {
  font-size: 12px;
  text-align: right;
  max-width: 110px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.receipt-select-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  min-height: 48px;
}
.receipt-select-item > input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin: 3px 0 0;
  padding: 0;
}
.receipt-select-item > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.receipt-select-item strong,
.receipt-select-item small,
.receipt-select-item > span > span {
  display: block;
}
.receipt-select-item strong {
  font-size: 14px;
}
.receipt-select-item small {
  color: var(--muted);
  margin: 5px 0;
}
.receipt-selection-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--raised);
  color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
}
.receipt-selection-check .icon {
  width: 18px;
  height: 18px;
}
.receipt-select-item > input:checked ~ .receipt-selection-check {
  background: #644284;
  color: #fff;
}
.receipt-return-reason {
  color: var(--error);
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0;
}
.receipt-review-item:has(input:checked) {
  border-color: #9268b3;
  background: #271d30;
}
.receipt-error {
  padding: 14px;
  border-radius: 13px;
  background: #3c2230;
  border: 1px solid #704051;
  margin-top: 18px;
  white-space: pre-line;
}
.receipt-summary {
  font-size: 11px;
  color: var(--muted);
}
.receipt-ui > .button {
  margin-bottom: 5px;
}
.receipt-ui .receipt-editor-actions {
  gap: 8px;
}
.receipt-editor-actions .button {
  padding-left: 14px;
  padding-right: 14px;
  font-size: 12px;
}
.receipt-choice-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.receipt-choice-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--raised);
  color: var(--muted);
  font-size: 11px;
}
.receipt-choice-group button[aria-pressed="true"] {
  background: #4c2b65;
  border-color: #a176c0;
  color: #f2dcff;
}
.receipt-choice-group button .icon {
  width: 17px;
  height: 17px;
}
:root[data-theme="light"] .receipt-ocr-result,
:root[data-theme="light"] .receipt-totals {
  background: #f0e4f8;
  border-color: #d4bce3;
}
:root[data-theme="light"] .receipt-ocr-result > p,
:root[data-theme="light"] .receipt-totals strong,
:root[data-theme="light"] .receipt-item-amount > strong {
  color: #6c4087;
}
:root[data-theme="light"] .receipt-item.is-accepted {
  background: #f0f7f1;
  border-color: #bddec8;
}
:root[data-theme="light"] .receipt-review-item:has(input:checked) {
  background: #f1e5f8;
  border-color: #be9fd4;
}
@media (max-width: 360px) {
  .receipt-item {
    padding: 15px;
  }
  .receipt-photo-actions .button {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
  .receipt-totals {
    padding: 15px;
  }
  .receipt-totals > div {
    font-size: 11px;
  }
  .receipt-choice-group {
    gap: 5px;
  }
  .receipt-choice-group button {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.update-banner {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #292035;
  border: 1px solid #5a416b;
  border-radius: 15px;
  font-size: 11px;
  line-height: 1.7;
  color: #dfc8f2;
}
.update-banner button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #e5c5ff;
  min-height: 36px;
  padding: 4px 0;
  text-decoration: underline;
  font-size: 12px;
}
.receipt-allocation {
  border: 0;
  padding: 0;
  margin: 17px 0;
  min-width: 0;
}
.receipt-allocation legend {
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  margin-bottom: 9px;
}
.receipt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.receipt-chip {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 50px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.receipt-chip[aria-pressed="true"] {
  background: #4c2b65;
  border-color: #a176c0;
  color: #f2dcff;
  box-shadow: inset 0 0 0 1px #a176c0;
}
.receipt-chip[aria-pressed="true"]:before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
}
:root[data-theme="light"] .receipt-chip[aria-pressed="true"] {
  background: #e8d4f6;
  color: #603379;
  border-color: #ae82c9;
}
.receipt-choices {
  border: 0;
  padding: 0;
  margin: 17px 0;
  min-width: 0;
}
.receipt-choices legend {
  font-size: 11px;
  padding: 0;
  margin-bottom: 9px;
}
.receipt-compact-row {
  padding: 16px 16px 6px;
}
.receipt-item-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.receipt-item-summary-copy {
  flex: 1;
  min-width: 0;
}
.receipt-item-summary-copy > strong {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.receipt-item-summary-copy > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.receipt-item-summary-value {
  flex-shrink: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  text-align: right;
  max-width: 115px;
}
.receipt-compact-row .receipt-allocation {
  margin: 12px 0 6px;
}
.receipt-compact-row .receipt-chip {
  padding: 8px 10px;
  font-size: 11px;
  min-height: 44px;
}
.receipt-compact-row .receipt-chips {
  gap: 6px;
}
.receipt-share-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 8px;
  font-size: 11px;
  color: var(--muted);
  min-height: 44px;
}
.receipt-share-summary > span {
  grid-column: 1;
  line-height: 1.55;
}
.receipt-share-summary > small {
  grid-column: 1;
  font-size: 10px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.receipt-share-summary:not(:has(.receipt-share-adjust)) {
  min-height: 22px;
}
.receipt-share-adjust {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  min-height: 44px;
  padding: 6px 2px 6px 8px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 11px;
  text-decoration: underline;
}
.receipt-item-details > summary {
  min-height: 44px;
  justify-content: flex-end;
  font-size: 11px;
  padding: 3px 0;
}
.receipt-item-details > summary:after {
  margin-left: 7px;
  font-size: 18px;
}
.receipt-item-details[open] {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.receipt-item-details[open] > summary {
  margin-bottom: 7px;
}
.receipt-item-details .button {
  margin: 10px 0;
}
.receipt-compact-row.is-accepted {
  padding: 16px;
}
.receipt-compact-row.is-accepted .receipt-status {
  margin-top: 10px;
}
.receipt-items {
  gap: 12px;
}
@media (max-width: 360px) {
  .receipt-compact-row {
    padding: 14px 13px 5px;
  }
  .receipt-compact-row .receipt-chip {
    font-size: 10px;
    padding: 8px 9px;
  }
  .receipt-item-summary {
    gap: 10px;
  }
  .receipt-item-summary-value {
    font-size: 13px;
    max-width: 100px;
  }
  .receipt-compact-row.is-accepted {
    padding: 14px;
  }
}
.receipt-item-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.receipt-item-detail-actions .button {
  margin: 0;
  min-height: 44px;
  font-size: 11px;
  padding: 10px 15px;
}
.receipt-remove-item {
  border: 0;
  background: transparent;
  color: var(--error);
  min-height: 44px;
  padding: 9px 0;
  font-size: 11px;
  text-decoration: underline;
}
.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sheet-body .confirmation-actions.actions {
  position: static;
  padding: 0;
  margin-bottom: 0;
  border: 0;
  background: transparent;
}
.confirmation-actions .button {
  font-size: 11px;
  padding: 10px 14px;
}
.sync-banner .confirmation-actions button {
  margin-left: 0;
  text-align: left;
  line-height: 1.6;
}
/* Follow VisualViewport instead of anchoring a shorter sheet behind the mobile keyboard. */
.sheet-backdrop {
  top: var(--viewport-top, 0px);
  bottom: auto;
  height: var(--viewport-height, 100dvh);
}
