:root {
  --orange: #f45a24;
  --orange2: #ff6c2f;
  --ink: #17202a;
  --muted: #74808b;
  --bg: #f6f7f8;
  --card: #fff;
  --line: #e9eaec;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 12px 35px rgba(23, 32, 42, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body.auth-pending > *:not(.auth-gate) {
  display: none !important;
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(145deg, #f34f1d, #ff743f);
}
.auth-gate-card {
  width: min(430px, 100%);
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(82, 26, 7, 0.28);
}
.auth-gate-card .login-logo {
  margin: 0 auto 18px;
}
.auth-gate-card h1 {
  margin: 0;
  font-size: 22px;
}
.auth-gate-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.pin-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}
.pin-form label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.pin-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dfe2e5;
  border-radius: 15px;
  background: #f8f9fa;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0.24em;
  text-align: center;
}
.pin-form button {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.pin-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.pin-signout {
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.biometric-unlock {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 1px solid #ffd0be;
  border-radius: 15px;
  background: #fff5f0;
  color: #d94716;
  font-weight: 900;
  cursor: pointer;
}
.pin-fallback{font-size:11px;font-weight:900;color:var(--orange);text-align:center;margin-bottom:2px}
.section-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px auto 8px;padding:5px;max-width:520px;border-radius:15px;background:rgba(255,255,255,.12)}
.section-tabs button{min-height:38px;border:0;border-radius:11px;background:transparent;color:#fff;font-weight:900;cursor:pointer}
.section-tabs button.active{background:var(--orange);box-shadow:0 5px 15px rgba(0,0,0,.18)}
.people-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.people-totals>div{padding:17px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 7px 22px rgba(23,32,42,.05)}
.people-totals small{display:block;color:var(--muted);font-size:10px;font-weight:800;margin-bottom:5px}
.people-totals strong{font-size:20px}.people-totals .owe strong{color:var(--red)}.people-totals .owed strong{color:var(--green)}
.people-tools{grid-template-columns:1fr minmax(130px,auto)}
.people-tools select,.sheet select{width:100%;height:46px;border:1px solid #dfe2e5;border-radius:13px;background:#fff;padding:0 12px;color:var(--ink);font-weight:700}
.people-list{display:grid;gap:9px}
.person-card{display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;padding:13px;border:1px solid var(--line);border-left:5px solid var(--red);border-radius:16px;background:#fff;text-align:left;box-shadow:0 5px 18px rgba(23,32,42,.045);cursor:pointer}
.person-card.owed{border-left-color:var(--green)}.person-card.settled{border-left-color:#9ca3af;opacity:.75}
.person-card .avatar{width:42px;height:42px}.person-card-main strong{display:block;font-size:14px}.person-card-main small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:3px}
.person-card-value{text-align:right}.person-card-value strong{display:block;font-size:13px}.person-card-value small{font-size:9px;color:var(--muted)}
.person-detail-head{background:linear-gradient(135deg,#174a31,#0f3322)}
.person-detail .opening-entry{background:#fafafa;grid-template-columns:42px 1fr auto}
.person-detail .opening-entry .entry-icon{background:#eef1f0;color:#44534c}
.person-detail .cash-action b{font-family:Arial,"Noto Nastaliq Urdu",sans-serif;font-size:15px}
#personCashType button{font-family:Arial,"Noto Nastaliq Urdu",sans-serif}
.contact-pick{width:100%;min-height:44px;margin:5px 0 12px;border:1px solid #cfe5d7;border-radius:13px;background:#effaf3;color:#15723c;font-weight:900;cursor:pointer}
.debt-direction{margin:13px 0}.settle-link{width:100%;border:0;background:transparent;color:var(--green);font-weight:900;padding:13px 0 2px;cursor:pointer}
.global-calculator-button{position:fixed;z-index:90;left:max(15px,calc(50% - 365px));bottom:20px;width:54px;height:54px;border:0;border-radius:50%;background:#153d29;color:#fff;font-size:26px;font-weight:900;box-shadow:0 10px 30px rgba(21,61,41,.32);cursor:pointer}
.calculator-sheet{max-width:390px}.global-calculator{margin:10px 0 15px}
@media(max-width:600px){.people-totals{gap:7px}.people-totals>div{padding:13px}.people-totals strong{font-size:16px}.people-tools{grid-template-columns:1fr 122px}.person-card{grid-template-columns:39px 1fr auto;padding:11px 9px}.global-calculator-button{left:14px;bottom:14px}}
.creator-credit,
.app-credit {
  color: #8a9298;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.creator-credit {
  display: inline-block;
  margin-top: 18px;
}
.app-credit {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 88px;
}
.creator-credit:hover,
.app-credit:hover {
  color: var(--orange);
}
.auth-gate-card p[data-kind="error"] {
  color: var(--red);
}
.auth-gate-card p[data-kind="success"] {
  color: var(--green);
}
button,
input,
textarea {
  font-family: Arial, sans-serif;
}
.public-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark,
.login-logo {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--orange2), #d84314);
  color: white;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(244, 90, 36, 0.25);
}
.brand strong {
  display: block;
  font-size: 16px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.login-top,
.btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}
.login-top {
  padding: 11px 20px;
  background: #fff;
  color: var(--orange);
  border: 1px solid #ffd1bf;
}
.hero {
  min-height: 600px;
  padding: 70px max(7vw, 28px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  background:
    radial-gradient(circle at 80% 25%, #fff1e9 0, transparent 36%),
    linear-gradient(135deg, #fff 35%, #fff9f6);
}
.hero-copy {
  max-width: 690px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
  font-weight: 900;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  margin: 18px 0 22px;
  letter-spacing: -0.055em;
}
.hero h1 span {
  color: var(--orange);
}
.hero p {
  font-size: 18px;
  color: #65717c;
  line-height: 1.7;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  padding: 14px 22px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 90, 36, 0.28);
}
.btn.ghost {
  background: #fff;
  border: 1px solid #e6e7e8;
  color: var(--ink);
}
.btn.full {
  width: 100%;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #69747e;
  font-size: 12px;
}
.tea-visual {
  height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}
.cup {
  width: 255px;
  height: 150px;
  background: linear-gradient(145deg, #fff, #eee);
  border-radius: 22px 22px 95px 95px;
  position: relative;
  box-shadow: 0 35px 55px rgba(50, 32, 20, 0.18);
  z-index: 2;
}
.tea {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 12px;
  height: 38px;
  background: radial-gradient(ellipse, #7e3c17, #48200d);
  border-radius: 50%;
  border: 7px solid #f7f7f7;
}
.handle {
  position: absolute;
  right: -64px;
  top: 40px;
  width: 90px;
  height: 75px;
  border: 19px solid #eee;
  border-left: 0;
  border-radius: 0 50% 50% 0;
}
.saucer {
  position: absolute;
  width: 335px;
  height: 65px;
  background: linear-gradient(#f9f9f9, #e7e7e7);
  border-radius: 50%;
  transform: translateY(90px);
  box-shadow: 0 25px 40px rgba(50, 32, 20, 0.14);
}
.steam {
  position: absolute;
  width: 18px;
  height: 120px;
  border-radius: 50%;
  border-left: 5px solid rgba(244, 90, 36, 0.18);
  transform: translateY(-140px);
  filter: blur(1px);
}
.steam-1 {
  margin-left: -80px;
}
.steam-2 {
  height: 145px;
}
.steam-3 {
  margin-left: 85px;
  height: 105px;
}
.leaf {
  position: absolute;
  color: #518f40;
  font-size: 42px;
  transform: rotate(35deg);
}
.leaf-a {
  left: 18%;
  bottom: 17%;
}
.leaf-b {
  right: 8%;
  top: 22%;
  transform: rotate(-35deg);
}
.about {
  padding: 80px max(7vw, 28px);
  background: #fff;
}
.section-heading {
  max-width: 740px;
  margin-bottom: 35px;
}
.section-heading span {
  font-size: 12px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.15em;
}
.section-heading h2 {
  font-size: 36px;
  line-height: 1.15;
  margin: 10px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid article {
  border: 1px solid #eee;
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.05);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff1ea;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.feature-grid h3 {
  margin: 18px 0 8px;
}
.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(7vw, 28px);
  background: #171717;
  color: #fff;
  font-size: 12px;
}
footer span {
  color: #aaa;
}
.modal-backdrop,
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 27, 0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
  backdrop-filter: blur(5px);
}
.hidden {
  display: none !important;
}
.sync-pill[data-mode="offline"] b,
.sync-pill[data-mode="error"] b {
  background: #ffd166;
}
.sync-pill[data-mode="synced"] b {
  background: #9cf1ae;
}
.login-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 26px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: #777;
}
.login-logo {
  margin-bottom: 18px;
}
.login-card h2 {
  margin: 0 0 8px;
}
.login-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.login-card label,
.sheet label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #69747e;
  margin: 16px 0 6px;
}
.login-card input,
.sheet input,
.sheet textarea {
  width: 100%;
  border: 1px solid #dedfe2;
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  background: #fafafa;
}
.login-card input:focus,
.sheet input:focus,
.sheet textarea:focus {
  border-color: #ff9c78;
  box-shadow: 0 0 0 3px #fff0ea;
}
.login-note {
  font-size: 11px;
  color: #8b9299;
  line-height: 1.45;
  margin-top: 12px;
}
.app-page {
  background: #f4f4f4;
}
.app-header {
  background: linear-gradient(135deg, #ff6530, #f34f1d);
  color: white;
  padding: 16px max(4vw, 18px) 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(187, 63, 20, 0.18);
}
.app-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
}
.app-head-row small {
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}
.app-head-row h1 {
  font-size: 20px;
  margin: 2px 0 0;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sync-pill {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  border-radius: 99px;
}
.sync-pill b {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cf1ae;
  margin-right: 5px;
}
.icon-btn {
  border: 0;
  background: white;
  color: #ef5220;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
}
.biometric-settings[data-enabled="true"] {
  background: #183c2a;
  color: #fff;
}
.party-tabs {
  display: flex;
  gap: 26px;
  margin-top: 13px;
  overflow: auto;
}
.party-tabs button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 12px 0 14px;
  font-size: 12px;
  font-weight: 800;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.party-tabs button.active {
  color: white;
}
.party-tabs button.active:after {
  content: "";
  position: absolute;
  height: 4px;
  border-radius: 4px;
  background: #ffd430;
  bottom: 0;
  left: 0;
  right: 0;
}
.app-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px 90px;
}
.balance-strip {
  height: 92px;
  background: #fff;
  border-radius: 17px;
  margin-top: 14px;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  text-align: center;
}
.balance-strip div:not(.divider) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.balance-strip span {
  font-size: 19px;
  font-weight: 900;
}
.balance-strip small {
  color: #747c84;
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}
.divider {
  height: 60%;
  background: #e9eaec;
}
.quick-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.quick {
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 14px;
  min-height: 72px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.quick span {
  font-size: 22px;
}
.quick.active {
  border-color: #ffc4ae;
}
.tools-row {
  display: grid;
  grid-template-columns: 1fr 48px auto;
  gap: 8px;
  margin: 12px 0;
}
.search-wrap {
  height: 48px;
  border: 1px solid #e2e2e2;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.search-wrap span {
  font-size: 25px;
  color: #6c7680;
}
.search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 13px;
}
.square-btn {
  height: 48px;
  border: 1px solid #e3e3e3;
  background: #fff;
  border-radius: 14px;
  color: #ed5524;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.backup-open {
  height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 15px;
  background: #183c2a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.party-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9e9e9;
}
.party-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
}
.party-row:last-child {
  border-bottom: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eee;
  display: grid;
  place-items: center;
  color: #ee5727;
  font-weight: 800;
}
.party-main strong {
  display: block;
  font-size: 14px;
}
.party-main small {
  display: block;
  color: #69727b;
  font-size: 10px;
  margin-top: 3px;
}
.party-balance {
  text-align: right;
}
.party-balance strong {
  display: block;
  font-size: 14px;
}
.party-balance small {
  font-size: 10px;
}
.fab {
  position: fixed;
  right: max(22px, calc((100vw - 980px) / 2 + 22px));
  bottom: 22px;
  border: 0;
  background: linear-gradient(135deg, #ff6732, #f3501e);
  color: white;
  border-radius: 22px;
  padding: 15px 20px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(244, 90, 36, 0.32);
  cursor: pointer;
}
.sheet-backdrop {
  align-items: end;
}
.sheet {
  background: white;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 25px 25px 0 0;
  padding: 18px 22px 28px;
  position: relative;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.16);
}
.sheet.tall {
  max-height: 94vh;
}
.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 5px;
  background: #d9d9d9;
  margin: 0 auto 15px;
}
.sheet h2 {
  font-size: 20px;
  margin: 4px 0 14px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f2f2f2;
  border-radius: 13px;
  padding: 4px;
}
.segmented.two {
  grid-template-columns: 1fr 1fr;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  font-weight: 800;
  color: #626a72;
  cursor: pointer;
}
.segmented button.active {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.segmented .cash-in.active {
  background: #eaf8ef;
  color: #13813c;
}
.segmented .cash-out.active {
  background: #fff0f0;
  color: #c32626;
}
.amount-input {
  font-size: 24px !important;
  text-align: right;
  font-weight: 900;
}
.calculator {
  background: #202a33;
  border-radius: 17px;
  padding: 11px;
  margin: 14px 0;
}
.calc-display {
  height: 53px;
  border-radius: 12px;
  background: #111920;
  color: white;
  padding: 12px;
  text-align: right;
  font-size: 22px;
  font-weight: 900;
  overflow: auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.calc-key {
  border: 0;
  border-radius: 10px;
  background: #34414c;
  color: #fff;
  height: 44px;
  font-weight: 800;
  cursor: pointer;
}
.calc-key.op {
  background: #f45a24;
}
.calc-key.ctrl {
  background: #6e513e;
}
.sheet-note {
  display: block;
  text-align: center;
  color: #8a9198;
  margin-top: 8px;
}
.backup-sheet {
  max-width: 560px;
}
.backup-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 0 14px;
}
.backup-title > span {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eaf6ef;
  color: #183c2a;
  font-size: 24px;
}
.backup-title h2 {
  margin: 0;
}
.backup-title p {
  margin: 3px 0 0;
  color: #78817b;
  font-size: 11px;
}
.backup-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #f3f6f2;
  color: #58645c;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.backup-status b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #8e9a91;
}
.backup-status[data-mode="ready"] b,
.backup-status[data-mode="saved"] b { background: #1f9e54; }
.backup-status[data-mode="error"] b { background: #d43131; }
.backup-options {
  display: grid;
  gap: 8px;
}
.backup-options > button {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 11px;
  border: 1px solid #e6e9e6;
  border-radius: 15px;
  background: #fff;
  color: #26342b;
  cursor: pointer;
}
.backup-options > button:hover { border-color: #acc9b7; }
.backup-options > button > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5f2;
  color: #183c2a;
  font-weight: 900;
  font-size: 17px;
}
.backup-options b,
.backup-options small { display: block; }
.backup-options b { font-size: 12px; }
.backup-options small { color: #7b847e; font-size: 9px; margin-top: 3px; line-height: 1.35; }
.backup-note {
  margin: 12px 4px 0;
  color: #818a84;
  text-align: center;
  font-size: 9px;
  line-height: 1.45;
}
.trash-card {
  border: 1px solid #e9e9e9;
  border-radius: 15px;
  padding: 13px;
  margin-bottom: 9px;
}
.trash-card strong {
  display: block;
}
.trash-card small {
  color: #777;
}
.trash-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.trash-actions button {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.restore {
  background: #eaf8ef;
  color: #17743b;
}
.forever {
  background: #fff0f0;
  color: #bd2525;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: #8a9299;
}
.empty strong {
  display: block;
  color: #49545e;
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 45px;
  }
  .tea-visual {
    height: 300px;
    transform: scale(0.78);
    margin-top: -30px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 48px;
  }
  .public-nav {
    height: 68px;
  }
  .brand small {
    display: none;
  }
  .quick-row {
    gap: 6px;
  }
  .quick {
    min-height: 65px;
  }
  .quick span {
    font-size: 19px;
  }
  .party-tabs {
    gap: 22px;
  }
  .app-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .balance-strip {
    border-radius: 14px;
  }
  .fab {
    right: 14px;
    bottom: 14px;
  }
  footer {
    flex-direction: column;
  }
}
@media (min-width: 700px) {
  .sheet-backdrop {
    align-items: center;
  }
  .sheet {
    border-radius: 25px;
    max-height: 90vh;
  }
  .fab {
    bottom: 28px;
  }
}
.preview-banner {
  background: #151515;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font: 700 11px/1.3 Arial;
  letter-spacing: 0.04em;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.dashboard-summary > div {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.dashboard-summary b {
  display: block;
  font-size: 16px;
}
.dashboard-summary span {
  display: block;
  color: #808890;
  font-size: 9px;
  margin-top: 3px;
}
.list-title,
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 9px;
}
.list-title b,
.history-heading b {
  display: block;
  font-size: 15px;
}
.list-title small,
.history-heading small {
  display: block;
  color: #7d868f;
  font-size: 10px;
  margin-top: 2px;
}
.list-title button,
.history-heading button {
  border: 0;
  background: #fff0ea;
  color: #e84f1b;
  border-radius: 11px;
  padding: 9px 11px;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
}
.party-row {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  background: #fff;
  color: inherit;
}
.party-balance {
  display: grid;
  grid-template-columns: auto 14px;
  align-items: center;
  column-gap: 5px;
}
.party-balance strong,
.party-balance small {
  grid-column: 1;
}
.party-balance span {
  grid-column: 2;
  grid-row: 1/3;
  color: #adb3b8;
  font-size: 25px;
}
.khata-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px 90px;
}
.detail-head {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -14px;
  background: linear-gradient(135deg, #ff6530, #f34f1d);
  color: #fff;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(187, 63, 20, 0.18);
}
.back-btn,
.more-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}
.back-btn {
  font-size: 21px;
}
.detail-title small {
  font-weight: 900;
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
.detail-title h2 {
  margin: 1px 0;
  font-size: 20px;
}
.detail-title span {
  font-size: 10px;
  opacity: 0.8;
}
.detail-balance-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  margin-top: 14px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.detail-balance-card > small {
  color: #888;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.detail-balance-card > strong {
  display: block;
  font-size: 30px;
  margin: 4px 0 1px;
}
.detail-balance-card > span {
  font-size: 10px;
  color: #7b848c;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #eee;
  margin-top: 15px;
  padding-top: 14px;
}
.detail-stats > div:first-child {
  border-right: 1px solid #eee;
}
.detail-stats b {
  display: block;
  font-size: 15px;
}
.detail-stats small {
  font-size: 9px;
  color: #858d94;
}
.cash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.cash-action {
  min-height: 78px;
  border: 0;
  border-radius: 17px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  text-align: left;
  padding: 12px 15px;
  cursor: pointer;
}
.cash-action span {
  grid-row: 1/3;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}
.cash-action b {
  font-size: 14px;
  align-self: end;
}
.cash-action small {
  font-size: 9px;
  align-self: start;
}
.cash-action.in {
  background: #eaf8ef;
  color: #13763a;
}
.cash-action.in span {
  background: #ccefd8;
}
.cash-action.out {
  background: #fff0f0;
  color: #b92727;
}
.cash-action.out span {
  background: #ffd6d6;
}
.detail-tools {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
}
.detail-tools button {
  border: 1px solid #e4e4e4;
  background: #fff;
  border-radius: 13px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 900;
  color: #ef5725;
  cursor: pointer;
}
.entry-list {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  overflow: hidden;
}
.entry-card {
  display: grid;
  grid-template-columns: 42px 1fr auto 34px;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}
.entry-card:last-child {
  border-bottom: 0;
}
.entry-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}
.entry-icon.in {
  background: #eaf8ef;
  color: #14813e;
}
.entry-icon.out {
  background: #fff0f0;
  color: #c12727;
}
.entry-main > div b {
  display: block;
  font-size: 12px;
}
.entry-main > div small {
  display: block;
  font-size: 9px;
  color: #92989e;
  margin-top: 2px;
}
.entry-main p {
  margin: 5px 0 0;
  color: #657079;
  font-size: 10px;
}
.entry-amount {
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.entry-delete {
  border: 0;
  background: #f7f7f7;
  border-radius: 9px;
  width: 31px;
  height: 31px;
  cursor: pointer;
}
.danger-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #c72d2d;
  font-weight: 800;
  padding: 14px 0 3px;
  cursor: pointer;
}
.hidden {
  display: none !important;
}
@media (max-width: 600px) {
  .tools-row {
    grid-template-columns: 1fr 44px auto;
    gap: 6px;
  }
  .backup-open {
    padding: 0 10px;
  }
  .dashboard-summary {
    gap: 5px;
  }
  .dashboard-summary > div {
    padding: 10px 5px;
  }
  .detail-tools {
    grid-template-columns: 1fr 54px 76px;
  }
  .entry-card {
    grid-template-columns: 38px 1fr auto 30px;
    gap: 7px;
    padding: 10px 8px;
  }
  .entry-amount {
    font-size: 10px;
  }
  .cash-action {
    padding: 10px;
  }
  .list-title {
    margin-top: 14px;
  }
}
