@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #182420;
  --muted: #718079;
  --line: #e3e9e4;
  --paper: #ffffff;
  --bg: #f4f6f2;
  --green: #1c7657;
  --green-dark: #14543f;
  --green-soft: #e5f3ec;
  --blue: #3a6fbd;
  --blue-soft: #eaf0fb;
  --amber: #c77a21;
  --amber-soft: #fff2df;
  --red: #b74c48;
  --red-soft: #fff0ed;
  --shadow: 0 12px 30px rgba(26, 48, 37, .06);
  --radius: 20px;
  font-family: "Myanmar Text", "Noto Sans Myanmar", "Padauk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { min-height: 100vh; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.topbar { height: 68px; padding: 9px max(18px, calc((100vw - 1050px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; min-width: 0; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; overflow: hidden; border: 1px solid #e5e9e8; background: white; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-family: system-ui, sans-serif; letter-spacing: .075em; font-size: 11px; line-height: 1.35; }
.brand-copy small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn, .profile-dot { border: 1px solid var(--line); background: #fff; height: 38px; min-width: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; }
.profile-dot { color: #fff; border-color: var(--green); background: var(--green); border-radius: 50%; width: 38px; }
.main-content { width: min(100% - 28px, 1050px); margin: 0 auto; padding: 22px 0 38px; outline: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: clamp(21px, 5vw, 27px); letter-spacing: -.025em; line-height: 1.35; }
.page-head p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.date-pill { white-space: nowrap; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 11px; }
.section-title { margin: 24px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title h2 { font-size: 16px; margin: 0; }
.section-title p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card.compact { padding: 13px; }
.card h3 { margin: 0; font-size: 14px; }
.card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.hero-card { background: #173b31; color: #fff; padding: 19px; border-radius: 22px; box-shadow: 0 16px 32px rgba(18, 57, 43, .15); position: relative; overflow: hidden; }
.hero-card:after { content: ""; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.11); position: absolute; right: -62px; top: -108px; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.hero-card .eyebrow { color: #bdd6ca; font-size: 11px; }
.hero-card h2 { font-size: 18px; line-height: 1.4; margin: 3px 0 0; }
.hero-card .hero-note { margin-top: 13px; color: #d9e8df; font-size: 11px; max-width: 540px; }
.hero-mark { color: #d0f08b; font-weight: 800; font-family: system-ui,sans-serif; letter-spacing: .12em; font-size: 10px; }
.warning-banner { display: flex; align-items: flex-start; gap: 10px; background: #fff7e8; border: 1px solid #f0ddb9; color: #5f4b2d; border-radius: 15px; padding: 11px 13px; margin: 14px 0 0; font-size: 11px; }
.warning-banner strong { display:block; font-size: 12px; margin-bottom: 2px; }
.wallet-card { position: relative; overflow: hidden; }
.wallet-card.personal { border-top: 3px solid #68a77e; }
.wallet-card.business { border-top: 3px solid #6b83c2; }
.wallet-label { display:flex; justify-content:space-between; align-items:center; gap:6px; color:var(--muted); font-size:11px; }
.currency-tag, .scope-tag { display:inline-flex; border-radius:999px; padding:3px 8px; font-size:10px; font-weight:700; background:#eef3ee; color:#3d5949; }
.scope-tag.business { background: var(--blue-soft); color:#3e5c91; }
.big-amount { font-family: system-ui, sans-serif; font-size: clamp(20px,5vw,27px); letter-spacing:-.04em; font-weight:750; margin-top:9px; line-height:1.2; overflow-wrap:anywhere; }
.amount-unit { font-family: system-ui,sans-serif; font-size:11px; color:var(--muted); margin-left:5px; font-weight:600; }
.wallet-card .wallet-sub { display:flex; justify-content:space-between; margin-top:10px; border-top:1px solid var(--line); padding-top:9px; font-size:10px; color:var(--muted); gap:10px; }
.quick-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.quick-action { border:1px solid var(--line); background:#fff; border-radius:15px; min-height:76px; padding:10px 5px; display:grid; justify-items:center; align-content:center; gap:4px; text-align:center; font-size:10px; font-weight:700; transition:.16s ease; }
.quick-action:hover, .quick-action:focus-visible { border-color:#8cb6a1; transform:translateY(-1px); }
.quick-action .qa-icon { width:29px; height:29px; display:grid; place-items:center; color:var(--green); background:var(--green-soft); border-radius:10px; font-size:15px; font-family:system-ui,sans-serif; }
.quick-action.blue .qa-icon { color:var(--blue); background:var(--blue-soft); }
.quick-action.amber .qa-icon { color:var(--amber); background:var(--amber-soft); }
.channel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:11px; }
.channel-head strong { font-size:14px; }
.channel-head .channel-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:#6ba77c; vertical-align:1px; }
.channel-head.business .channel-dot { background:#6b83c2; }
.metric { border:1px solid var(--line); border-radius:14px; background:#fbfcfa; padding:11px; min-width:0; }
.metric .metric-label { color:var(--muted); font-size:10px; }
.metric .metric-value { font-family:system-ui,sans-serif; font-weight:750; font-size:16px; margin-top:6px; overflow-wrap:anywhere; }
.metric .metric-sub { color:var(--muted); font-size:10px; margin-top:2px; }
.balance-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.balance-line { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:11px; padding:7px 0; border-bottom:1px solid var(--line); }
.balance-line:last-child { border-bottom:0; }
.balance-line strong { font-family:system-ui,sans-serif; }
.segmented { display:inline-flex; border:1px solid var(--line); background:#f4f7f4; padding:3px; border-radius:12px; gap:2px; }
.segmented button { padding:6px 10px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-size:11px; font-weight:700; }
.segmented button.active { background:#fff; color:var(--green-dark); box-shadow:0 1px 4px rgba(0,0,0,.08); }
.filter-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.filter-row select, .filter-row input { width:auto; min-width:130px; flex:1; }
.input, select.input, textarea.input { width:100%; border:1px solid #dce4dd; border-radius:12px; padding:10px 11px; background:#fff; color:var(--ink); outline:none; min-height:43px; }
textarea.input { resize:vertical; min-height:80px; }
.input:focus { border-color:#7bae91; box-shadow:0 0 0 3px rgba(78,140,102,.12); }
label.field-label { display:block; font-size:11px; font-weight:700; margin-bottom:5px; color:#36473d; }
.field-hint { display:block; color:var(--muted); font-size:10px; margin-top:4px; line-height:1.45; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.field.full { grid-column:1 / -1; }
.form-section { border-top:1px solid var(--line); padding-top:13px; margin-top:13px; }
.form-section:first-of-type { border-top:0; padding-top:0; margin-top:0; }
.form-section-title { font-size:12px; font-weight:800; margin:0 0 10px; color:var(--green-dark); }
.type-band { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px; border-radius:14px; background:#eff6f1; margin-bottom:14px; }
.type-band strong { font-size:12px; }
.type-band span { color:var(--muted); font-size:10px; display:block; margin-top:2px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:9px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; font-weight:750; font-size:12px; text-decoration:none; }
.btn:hover { border-color:#9bb9a4; }
.btn.primary { background:var(--green); border-color:var(--green); color:#fff; }
.btn.primary:hover { background:var(--green-dark); }
.btn.ghost { background:transparent; }
.btn.small { min-height:34px; padding:6px 10px; font-size:11px; }
.btn.danger { color:var(--red); border-color:#f0d4d0; background:var(--red-soft); }
.btn-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.actions-row { display:flex; justify-content:flex-end; gap:8px; padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.list-stack { display:grid; gap:9px; }
.record-item { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.record-icon { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:#eff5f0; color:var(--green); font-family:system-ui,sans-serif; font-weight:800; }
.record-icon.out { background:var(--red-soft); color:var(--red); }
.record-icon.biz { background:var(--blue-soft); color:var(--blue); }
.record-meta { min-width:0; }
.record-meta strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-meta small { display:block; color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-amount { text-align:right; white-space:nowrap; font-family:system-ui,sans-serif; font-weight:750; font-size:12px; }
.record-amount small { display:block; font-family:inherit; font-size:9px; color:var(--muted); font-weight:500; }
.empty-state { text-align:center; border:1px dashed #d7e1d8; background:rgba(255,255,255,.6); border-radius:16px; padding:24px 14px; color:var(--muted); font-size:12px; }
.empty-state strong { color:var(--ink); display:block; margin-bottom:3px; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:15px; background:#fff; }
table { border-collapse:collapse; width:100%; min-width:580px; font-size:11px; }
th,td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f8faf8; color:var(--muted); font-size:10px; white-space:nowrap; }
tr:last-child td { border-bottom:0; }
.status-pill { display:inline-block; border-radius:999px; padding:3px 8px; background:#eef5f0; color:var(--green-dark); font-size:10px; font-weight:700; }
.status-pill.due { background:var(--amber-soft); color:#8b571e; }
.callout { border:1px solid #d7e6dc; background:#f2f8f4; border-radius:14px; padding:11px 12px; font-size:11px; color:#46614f; margin:12px 0; }
.formula-note { border:1px solid #e4eaf4; background:#f7f9fe; border-radius:13px; padding:10px 12px; font-size:10px; color:#53627a; margin-top:10px; }
.more-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.more-link { display:flex; align-items:center; gap:12px; text-align:left; padding:14px; min-height:78px; }
.more-link .more-icon { width:36px; height:36px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; background:#eff5f0; color:var(--green); font-weight:800; }
.more-link strong { display:block; font-size:12px; }
.more-link small { display:block; color:var(--muted); font-size:10px; }
.wallet-list { display:grid; gap:8px; }
.wallet-row { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:13px; padding:10px 12px; background:#fff; }
.wallet-row strong { display:block; font-size:12px; }
.wallet-row small { color:var(--muted); font-size:10px; }
.hidden { display:none !important; }
.modal-backdrop { position:fixed; inset:0; z-index:50; background:rgba(17,29,23,.54); display:flex; align-items:flex-end; justify-content:center; padding:0; }
.modal-panel { background:#fff; width:min(100%,720px); max-height:min(94dvh,900px); overflow:auto; border-radius:22px 22px 0 0; box-shadow:0 -10px 50px rgba(0,0,0,.2); padding:17px max(16px, calc((100vw - 688px) / 2)) calc(18px + env(safe-area-inset-bottom)); animation:rise .18s ease-out; }
@keyframes rise { from { transform:translateY(22px); opacity:.7; } to { transform:translateY(0); opacity:1; } }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.modal-head h2 { font-size:18px; margin:0; line-height:1.35; }
.modal-head p { font-size:10px; color:var(--muted); margin:4px 0 0; }
.close-btn { border:1px solid var(--line); background:#fff; width:36px; height:36px; border-radius:11px; font-size:19px; line-height:1; }
.toast { position:fixed; z-index:100; bottom:calc(92px + env(safe-area-inset-bottom)); left:50%; transform:translate(-50%,10px); opacity:0; pointer-events:none; max-width:calc(100% - 28px); background:#1f3027; color:#fff; padding:10px 14px; border-radius:12px; box-shadow:var(--shadow); font-size:12px; transition:.18s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.check-row { display:flex; align-items:flex-start; gap:9px; font-size:11px; color:var(--muted); }
.check-row input { margin:3px 0 0; accent-color:var(--green); }
.file-input { display:none; }
.helper-sep { height:1px; background:var(--line); margin:12px 0; }
.mobile-only { display:none; }
@media (max-width: 740px) {
  .main-content { width:calc(100% - 26px); padding-top:18px; }
  .topbar { padding:8px 14px; }
  .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid.three { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid.three > :last-child:nth-child(odd) { grid-column:1 / -1; }
  .modal-backdrop { align-items:flex-end; }
  .modal-panel { padding-left:15px; padding-right:15px; }
  .bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:30; height:calc(69px + env(safe-area-inset-bottom)); padding:6px 8px calc(6px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(5,1fr); align-items:center; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); border-top:1px solid var(--line); }
  .nav-item { border:0; background:transparent; color:#78847d; min-width:0; display:grid; place-items:center; align-content:center; gap:2px; height:54px; font-size:9px; font-weight:700; }
  .nav-item .nav-glyph { font-family:system-ui,sans-serif; font-size:19px; line-height:1.1; }
  .nav-item.active { color:var(--green-dark); }
  .nav-add { color:var(--green-dark); }
  .add-glyph { width:34px; height:34px; display:grid; place-items:center; border-radius:12px; margin-top:-18px; color:#fff; background:var(--green); box-shadow:0 5px 14px rgba(28,118,87,.25); font:700 20px system-ui,sans-serif; }
  .app-shell { padding-bottom:calc(82px + env(safe-area-inset-bottom)); }
  .page-head { align-items:center; }
  .card { border-radius:17px; padding:14px; }
  .hero-card { border-radius:19px; }
  .filter-row select, .filter-row input { min-width:120px; }
  .desktop-only { display:none !important; }
  .mobile-only { display:initial; }
}
@media (max-width: 420px) {
  body { font-size:13px; }
  .main-content { width:calc(100% - 22px); }
  .quick-grid { gap:6px; }
  .quick-action { min-height:73px; font-size:9px; }
  .form-grid { grid-template-columns:1fr; gap:10px; }
  .field.full { grid-column:auto; }
  .grid.two { gap:9px; }
  .record-item { grid-template-columns:33px minmax(0,1fr) auto; gap:8px; padding:9px; }
  .record-icon { width:33px; height:33px; }
  .record-amount { font-size:11px; }
  .more-grid { grid-template-columns:1fr; }
  .date-pill { padding:6px 9px; font-size:10px; }
}
@media (min-width: 741px) {
  .bottom-nav { position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:25; background:#fff; border:1px solid var(--line); box-shadow:0 12px 40px rgba(0,0,0,.12); border-radius:18px; display:flex; align-items:center; gap:4px; padding:7px; }
  .nav-item { border:0; background:transparent; color:#748079; border-radius:12px; min-width:82px; height:45px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 12px; font-weight:700; font-size:11px; }
  .nav-item.active { color:var(--green-dark); background:#edf5ef; }
  .nav-item .nav-glyph { font-family:system-ui,sans-serif; font-size:16px; }
  .nav-add { background:var(--green); color:#fff; min-width:96px; }
  .nav-add.active, .nav-add:hover { background:var(--green-dark); color:#fff; }
  .add-glyph { font:700 18px system-ui,sans-serif; }
  .modal-backdrop { align-items:center; padding:24px; }
  .modal-panel { border-radius:22px; padding:20px; }
}
