@import url('./fonts.css');
:root{color-scheme:light;--navy:#03182b;--blue:#087cbd;--cyan:#20d8f4;--cyan-light:#83efff;--text:#092a42;--secondary:#355f78;--muted:#64879c;--bg:#edf7fc;--surface:rgba(255,255,255,.92);--surface-2:#e4f4fb;--glass:rgba(247,252,255,.84);--line:rgba(8,124,189,.15);--line-strong:rgba(22,159,230,.3);--soft:rgba(22,159,230,.07);--hover:rgba(32,216,244,.10);--green:#078577;--green-bg:#e1f6ed;--amber:#895407;--amber-bg:#fff5df;--red:#b53147;--red-bg:#fff0f2;--purple:#7752c6;--purple-bg:#f0ebfd;--shadow:0 8px 32px rgba(4,51,82,.045);--shadow-lg:0 20px 70px rgba(4,51,82,.12);--overlay:rgba(3,24,43,.43)}
[data-theme=dark]{color-scheme:dark;--text:#effbff;--secondary:#a8cadc;--muted:#7da8be;--bg:#03111f;--surface:rgba(6,30,51,.96);--surface-2:#07243c;--glass:rgba(3,20,35,.9);--line:rgba(93,218,255,.15);--line-strong:rgba(78,222,255,.35);--soft:rgba(32,216,244,.07);--hover:rgba(32,216,244,.12);--green:#60dfb6;--green-bg:#0b3934;--amber:#efc46c;--amber-bg:#3a301a;--red:#ff8896;--red-bg:#3b2030;--purple:#bc9bff;--purple-bg:#2e2548;--blue:#6bd8ff;--shadow:0 8px 32px #0002;--overlay:rgba(0,7,14,.74)}
*{box-sizing:border-box}body{margin:0;font:14px/1.5 'Noto Sans Thai',sans-serif;color:var(--text);background:var(--bg);background-image:radial-gradient(ellipse at 0 0,rgba(32,216,244,.08),transparent 50%);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #20d8f425}h1,h2,h3,h4,p{margin:0}h1{font-size:27px;line-height:1.45;font-weight:600;letter-spacing:-.8px}h2{font-size:18px;font-weight:600;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}small{font-size:14px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.muted{color:var(--muted)}.secondary{color:var(--secondary)}.tiny{font-size:12px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.mono{font-variant-numeric:tabular-nums;font-family:'Noto Sans Thai',sans-serif;letter-spacing:.1px}.num{font-variant-numeric:tabular-nums}.text-right{text-align:right}.flex{display:flex;align-items:center;gap:8px}.between{display:flex;align-items:center;justify-content:space-between;gap:10px}.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.mt{margin-top:16px}.mb{margin-bottom:12px}.full{width:100%}.grow{flex:1;min-width:0}.hidden{display:none!important}.brand{display:flex;align-items:center;gap:8px;color:var(--text);white-space:nowrap}.brand-mark{display:inline-grid;place-items:center;width:37px;height:37px;border-radius:11px;background:linear-gradient(145deg,#83efff,#20d8f4 50%,#169fe6);box-shadow:0 3px 9px #169fe622;position:relative;transform:rotate(-4deg)}.brand-mark span{background:#05243d;border-radius:2px;width:19px;height:6px;position:absolute}.brand-mark span+span{transform:rotate(90deg)}.brand-name{font-size:17px;font-weight:700;line-height:1.3;letter-spacing:-.6px}.brand-name>span{font-weight:500;color:var(--blue);margin-left:3px}.brand-name small{display:block;font-size:12px;letter-spacing:3px;font-weight:500;color:var(--muted);margin-top:3px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line-strong);border-radius:10px;padding:8px 12px;background:var(--surface);font-weight:500;font-size:14px;min-height:42px;white-space:nowrap;color:var(--text);transition:background .15s,transform .15s}.btn:hover{background:var(--surface-2);transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,#83efff -20%,#20d8f4 45%,#169fe6 130%);border-color:#20d8f4;color:#03182b;box-shadow:0 4px 14px #20d8f424}.btn.dark{background:#06283f;color:#fff;border-color:#184359}.btn.ghost{border-color:transparent;background:transparent;color:var(--blue)}.btn.danger{background:var(--red-bg);color:var(--red);border-color:transparent}.btn.sm{font-size:14px;min-height:34px;padding:4px 8px;border-radius:8px}.btn.lg{padding:10px 14px;font-size:15px;min-height:52px}.icon-btn{width:38px;height:38px;display:inline-grid;place-items:center;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:0;flex-shrink:0}.icon-btn:hover{background:var(--surface-2)}.icon-btn.flat{border-color:transparent;background:transparent}.avatar{width:37px;height:37px;display:grid;place-items:center;background:var(--surface-2);color:var(--blue);border-radius:50%;font-weight:600;flex-shrink:0}.avatar.lg{width:50px;height:50px}.divider{width:1px;height:28px;background:var(--line)}.badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500;padding:4px 6px;border-radius:6px;white-space:nowrap;line-height:1.5}.badge i,.live-dot{width:5px;height:5px;border-radius:100%;background:currentColor;display:inline-block;flex-shrink:0}.badge.green{color:var(--green);background:var(--green-bg)}.badge.amber{color:var(--amber);background:var(--amber-bg)}.badge.blue{color:var(--blue);background:var(--soft)}.badge.purple{color:var(--purple);background:var(--purple-bg)}.badge.red{color:var(--red);background:var(--red-bg)}.badge.gray{color:var(--muted);background:var(--soft)}.live{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--green)}.live-dot{box-shadow:0 0 0 4px #148f9410}.card{background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);min-width:0}.card-pad{padding:14px}.card-head{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.card-head h2{font-size:15px}.card-head p{font-size:12px;color:var(--muted);margin-top:3px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title a{font-size:14px}.tile{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);color:var(--blue)}.tile.green{background:var(--green-bg);color:var(--green)}.tile.amber{background:var(--amber-bg);color:var(--amber)}.tile.purple{background:var(--purple-bg);color:var(--purple)}.tile.sm{width:33px;height:33px;border-radius:9px}.tile.sm .icon{width:16px;height:16px}.notice{display:flex;align-items:flex-start;gap:8px;padding:10px 10px;border-radius:11px;background:var(--soft);border:1px solid var(--line);font-size:14px;color:var(--secondary)}.notice .icon{width:17px;height:17px;margin-top:2px;color:var(--blue)}.notice.amber{background:var(--amber-bg);color:var(--amber);border-color:transparent}.notice.amber .icon{color:inherit}.notice strong{display:block;font-weight:600}.progress{height:6px;border-radius:20px;background:var(--surface-2);overflow:hidden;display:flex}.progress span{height:100%;background:linear-gradient(90deg,#087cbd,#20d8f4);border-radius:20px;transition:width .6s}.progress span.inflight{background:repeating-linear-gradient(120deg,#9ce3f0,#9ce3f0 4px,#c7eef6 4px,#c7eef6 8px);border-radius:0}.bank-logo{width:35px;height:35px;background:#159550;color:#fff;display:grid;place-items:center;border-radius:10px;font-weight:700;font-size:18px;flex-shrink:0}.bank-logo.scb{background:#5c2d91}.field{display:grid;gap:6px;margin-bottom:12px}.field label{font-weight:500;font-size:14px}.field .hint{font-size:12px;color:var(--muted)}input,select,textarea{width:100%;min-height:44px;padding:8px 10px;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=checkbox]{width:17px;min-height:17px;accent-color:#087cbd}.amount-input{position:relative}.amount-input input{font-size:27px;font-weight:600;padding:10px 14px 10px 45px;min-height:75px}.amount-input>span{position:absolute;left:20px;top:20px;color:var(--muted);font-size:22px}.amount-input>small{position:absolute;right:18px;top:27px;font-size:14px;color:var(--muted)}.presets{display:flex;gap:6px;flex-wrap:wrap}.presets .btn{flex:1}.error{color:var(--red);font-size:14px;min-height:20px;margin:8px 0}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}.data-table th{text-align:left;font-size:12px;font-weight:500;color:var(--muted);background:var(--soft);padding:8px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.data-table td{padding:12px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:var(--hover)}.data-table th:first-child,.data-table td:first-child{padding-left:14px}.data-table th:last-child,.data-table td:last-child{padding-right:14px}.data-table .ref{font-size:12px;font-weight:600;color:var(--text)}.data-table .sub{display:block;font-size:12px;color:var(--muted);margin-top:3px}.data-table .value{font-weight:600;font-size:14px}.table-footer{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.empty{padding:28px 12px;text-align:center;color:var(--muted)}.empty .icon{width:35px;height:35px;display:block;margin:0 auto 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.upload{border:1.5px dashed var(--line-strong);border-radius:12px;padding:16px;text-align:center;background:var(--soft);display:block;cursor:pointer;margin:10px 0}.upload>.icon{width:27px;height:27px;color:var(--blue);margin-bottom:6px}.upload strong{display:block;font-size:14px}.upload small{display:block;color:var(--muted);margin-top:4px}.upload input{margin-top:10px;font-size:12px;background:var(--surface);padding:6px}.detail-rows{display:grid;gap:10px}.detail-row{display:flex;justify-content:space-between;gap:12px;font-size:14px}.detail-row>span:first-child{color:var(--muted)}.detail-row strong{font-weight:500;text-align:right}.modal-overlay{position:fixed;inset:0;background:var(--overlay);backdrop-filter:blur(7px);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:min(100%,500px);max-height:90dvh;overflow:auto;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow-lg);border-radius:20px;outline:none}.modal.wide{width:min(100%,720px)}.modal header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal header h2{font-size:17px}.modal-body{padding:16px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.modal .divider-h{height:1px;background:var(--line);margin:14px 0}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#06283f;color:#fff;border:1px solid #185674;box-shadow:var(--shadow-lg);border-radius:12px;padding:10px 14px;z-index:200;font-size:14px;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 32px);display:flex;align-items:center;gap:8px}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast .icon{color:#62e1ca}.demo-ribbon{font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);padding:8px}.demo-ribbon .icon{width:13px;height:13px}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;font-size:12px;color:var(--muted)}.link-btn{background:none;border:0;padding:0;color:var(--blue);font-size:14px;cursor:pointer}.segment{display:inline-flex;background:var(--soft);padding:4px;border-radius:9px;gap:4px}.segment button{background:transparent;border:0;border-radius:6px;padding:4px 8px;color:var(--muted);font-size:12px;white-space:nowrap}.segment button.active{background:var(--surface);color:var(--blue);box-shadow:0 2px 4px #03182b08}.tabs{display:flex;gap:16px;border-bottom:1px solid var(--line);padding:0 14px;overflow:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:14px;padding:10px 0;white-space:nowrap}.tabs button.active{color:var(--blue);border-bottom-color:var(--cyan);font-weight:600}.loader{width:56px;height:56px;border-radius:50%;border:3px solid var(--surface-2);border-top-color:#20d8f4;animation:spin 1.3s linear infinite;margin:auto}.success-ring{width:64px;height:64px;border-radius:50%;background:var(--green-bg);color:var(--green);display:grid;place-items:center;margin:auto}.success-ring .icon{width:30px;height:30px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media(max-width:640px){h1{font-size:23px}.card-pad{padding:12px}.card-head{padding:12px 12px}.modal-overlay{padding:8px}.modal-body{padding:12px}.form-grid{grid-template-columns:1fr}.app-footer{flex-direction:column;align-items:flex-start;gap:4px}.card-head .segment button{padding:4px 6px}.data-table th:first-child,.data-table td:first-child{padding-left:12px}}
/* Member application */
.member-header{border-bottom:1px solid var(--line);background:var(--glass);backdrop-filter:blur(20px);height:84px;position:relative;z-index:10}.member-header-inner{max-width:1160px;padding:0 16px;margin:auto;height:100%;display:flex;align-items:center;gap:24px}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.member-content{max-width:1100px;margin:auto;padding:20px 16px 0}.welcome{margin-bottom:16px}.welcome p{font-size:14px;color:var(--muted);margin-top:6px}.welcome h1{font-size:26px}.member-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px}.wallet-hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(115deg,#052b46 0%,#063f60 68%,#075777 100%);border:1px solid #1b617d;border-radius:20px;color:#eafbff;padding:16px 18px 16px;box-shadow:0 12px 30px #05243d13;min-height:262px}.wallet-hero:before{content:'';position:absolute;right:-60px;top:-120px;width:330px;height:330px;border-radius:50%;border:1px solid #72efff19;box-shadow:0 0 0 35px #72efff06,0 0 0 75px #72efff05,0 0 0 115px #72efff03;z-index:-1}.wallet-hero:after{content:'+';position:absolute;right:46px;top:50px;color:#83efff14;font-size:165px;font-weight:500;line-height:1;transform:rotate(-12deg);z-index:-1}.wallet-hero .label{color:#b0d1e3;font-size:14px}.wallet-amount{font-size:43px;line-height:1.45;font-weight:600;letter-spacing:-1.5px;margin:6px 0 14px}.wallet-amount>span{font-size:20px;color:#82d1ed;font-weight:400;margin-right:6px}.wallet-bottom{display:flex;gap:20px;padding-top:12px;border-top:1px solid #a4e6f021}.wallet-bottom .label{font-size:12px}.wallet-bottom strong{display:block;font-size:15px;font-weight:500;margin-top:3px}.wallet-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;background:#83efff12;border:1px solid #83efff20;color:#9beaf5;font-size:12px;border-radius:6px}.quick-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:12px}.quick-action{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:12px 10px;text-align:left;transition:.2s}.quick-action:hover{border-color:#20d8f4;transform:translateY(-2px);box-shadow:var(--shadow)}.quick-action strong{font-size:14px;font-weight:600;display:block}.quick-action small{font-size:12px;color:var(--muted);display:block;margin-top:2px}.quick-action .tile{width:36px;height:36px;border-radius:10px}.quick-action.deposit .tile{background:linear-gradient(135deg,#83efff,#20d8f4);color:#05243d}.profile-row{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}.profile-row h3{font-size:14px}.profile-row p{font-size:12px;color:var(--muted);margin-top:2px}.account-info .detail-row{font-size:12px}.bank-card{margin-top:14px;padding:10px;background:var(--soft);border:1px solid var(--line);border-radius:11px}.bank-card strong{font-size:12px;font-weight:500}.bank-card p{font-size:12px;color:var(--muted);margin-top:3px}.help-card{padding:12px 14px;background:linear-gradient(120deg,var(--surface),var(--surface-2));display:flex;align-items:center;gap:10px;margin-top:12px}.help-card h3{font-size:14px}.help-card p{font-size:12px;color:var(--muted);margin-top:3px}.secure-strip{display:flex;justify-content:space-between;gap:12px;margin:14px 0 0;padding:12px 0;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.secure-strip>span{display:flex;align-items:center;gap:4px}.secure-strip .icon{width:15px;height:15px;color:var(--blue)}.history-section{margin-top:16px}.history-head{margin-bottom:12px}.history-head h2{font-size:17px}.history-row .value.positive{color:var(--green)}.detail-page{max-width:740px;margin:0 auto}.back-link{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--muted);margin-bottom:14px}.back-link .icon{width:16px;height:16px}.flow-card{padding:18px 20px}.flow-intro{text-align:center;margin:0 0 16px}.flow-intro .tile{margin:0 auto 10px;width:48px;height:48px}.flow-intro h1{font-size:23px}.flow-intro p{font-size:14px;color:var(--muted);margin-top:6px}.stepper{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:16px;color:var(--muted);font-size:12px}.stepper span{display:flex;align-items:center;gap:4px}.stepper b{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-size:12px;font-weight:500}.stepper .active{color:var(--blue)}.stepper .active b{background:var(--cyan);color:var(--navy)}.stepper>i{width:40px;height:1px;background:var(--line)}.instruction-bank{padding:12px;border:1px solid var(--line-strong);background:var(--soft);border-radius:13px;margin:12px 0}.account-number{font-size:27px;font-weight:600;letter-spacing:1px;margin:12px 0 2px}.countdown{color:var(--amber);background:var(--amber-bg);padding:6px 10px;border-radius:8px;font-size:14px;display:inline-flex;align-items:center;gap:6px}.countdown strong{font-size:17px}.transfer-amount{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:14px}.transfer-amount b{font-size:24px;color:var(--blue);font-weight:600}.flow-status{text-align:center;padding:12px 0}.flow-status h2{font-size:23px;margin:12px 0 6px}.flow-status p{color:var(--muted);font-size:14px}.flow-value{font-size:36px;font-weight:600;margin:12px 0}.timeline{display:grid;gap:0;margin:16px 0 6px}.timeline-item{display:flex;gap:10px;position:relative;min-height:66px}.timeline-item:before{content:'';position:absolute;left:13px;top:27px;bottom:0;width:1px;background:var(--line)}.timeline-item:last-child:before{display:none}.timeline-item>.step-icon{width:27px;height:27px;border-radius:50%;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;z-index:1;flex-shrink:0}.timeline-item.done>.step-icon{background:var(--green-bg);color:var(--green)}.timeline-item.active>.step-icon{background:var(--soft);color:var(--blue);box-shadow:0 0 0 4px var(--soft)}.timeline-item .icon{width:14px;height:14px}.timeline-item strong{font-size:14px;font-weight:500}.timeline-item small{font-size:12px;display:block;color:var(--muted);margin-top:2px}.mobile-member-nav{display:none}.pending-banner{padding:12px 12px;display:flex;align-items:center;gap:10px;margin-bottom:14px;background:var(--surface);border:1px solid var(--line-strong);border-radius:13px}.pending-banner strong{font-size:14px;display:block}.pending-banner p{font-size:12px;color:var(--muted)}
/* Operations panel */
.panel-sidebar{position:fixed;left:0;top:0;bottom:0;width:237px;z-index:40;background:var(--glass);backdrop-filter:blur(20px);border-right:1px solid var(--line);padding:16px 12px 12px;display:flex;flex-direction:column}.panel-sidebar .brand{margin:0 6px 18px}.workspace{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:10px;margin:0 4px 16px;background:var(--surface)}.workspace .tile{width:30px;height:30px;border-radius:7px}.workspace strong{font-size:12px;display:block}.workspace small{font-size:12px;color:var(--muted);display:block}.nav-label{font-size:12px;color:var(--muted);letter-spacing:1px;margin:0 10px 6px}.side-nav{display:grid;gap:4px}.side-nav a{display:flex;gap:8px;align-items:center;padding:8px 10px;color:var(--secondary);font-size:14px;border-radius:9px;position:relative}.side-nav .icon{width:18px;height:18px;color:var(--muted)}.side-nav a:hover{background:var(--hover)}.side-nav a.active{background:linear-gradient(100deg,#20d8f424,#169fe608);color:var(--blue);font-weight:600}.side-nav a.active:before{content:'';position:absolute;left:-18px;top:12px;bottom:12px;width:3px;background:#20d8f4;border-radius:0 3px 3px 0}.side-nav a.active .icon{color:var(--blue)}.nav-count{margin-left:auto;font-size:12px;border-radius:5px;padding:0 4px;background:var(--amber-bg);color:var(--amber)}.side-divider{height:1px;background:var(--line);margin:14px 8px}.sidebar-bottom{margin-top:auto;padding-top:12px}.engine-status{padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);font-size:12px;margin-bottom:10px}.engine-status p{font-size:12px;color:var(--muted);margin:4px 0 0 8px}.sidebar-user{padding:10px 4px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:6px}.sidebar-user .avatar{width:31px;height:31px;font-size:12px}.sidebar-user strong{font-size:12px;display:block}.sidebar-user small{font-size:12px;color:var(--muted);display:block}.panel-shell{margin-left:237px}.panel-topbar{height:78px;padding:0 20px;display:flex;align-items:center;gap:12px;background:var(--glass);border-bottom:1px solid var(--line)}.breadcrumb{font-size:12px;display:flex;align-items:center;gap:8px;color:var(--muted)}.breadcrumb .icon{width:14px;height:14px}.breadcrumb strong{font-weight:500;color:var(--text)}.panel-topbar .header-actions{margin-left:0;gap:6px}.panel-topbar .badge{font-size:12px}.panel-content{padding:16px 20px 0;max-width:1700px;margin:auto}.page-heading{margin-bottom:16px}.page-heading h1{font-size:25px}.page-heading p{color:var(--muted);font-size:12px;margin-top:4px}.page-heading .btn{font-size:12px;min-height:37px;padding:6px 10px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.kpi{padding:12px 14px}.kpi .label{font-size:12px;color:var(--secondary)}.kpi .tile{width:33px;height:33px;border-radius:9px}.kpi .tile .icon{width:17px;height:17px}.kpi-value{font-size:28px;line-height:1.5;font-weight:600;letter-spacing:-.7px;margin:8px 0 4px}.kpi-value small{font-size:14px;font-weight:400;color:var(--muted);margin-left:3px}.kpi .foot{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.kpi .change{font-size:12px;color:var(--green);background:var(--green-bg);border-radius:4px;padding:2px 4px;display:flex;align-items:center;gap:2px}.kpi .change .icon{width:10px;height:10px}.dashboard-middle{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:14px;margin-bottom:16px}.chart-summary{padding:0 14px;display:flex;gap:16px}.chart-summary strong{font-size:21px;display:block;letter-spacing:-.5px}.chart-summary small{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}.legend-dot{width:6px;height:6px;background:#169fe6;border-radius:50%;display:inline-block}.legend-dot.cyan{background:#20d8f4}.volume-chart{padding:6px 12px 0;width:100%;height:208px;color:var(--muted)}.volume-chart svg{width:100%;height:100%;overflow:visible}.volume-chart text{font:12px 'Noto Sans Thai',sans-serif;fill:var(--muted)}.volume-chart line{stroke:var(--line);stroke-dasharray:3 4}.queue-overview{padding:0 14px 12px}.queue-overview>a{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);color:var(--text)}.queue-overview>a:last-child{border-bottom:0;padding-bottom:3px}.queue-overview .tile{width:34px;height:34px;border-radius:9px}.queue-overview strong{font-size:12px;font-weight:500;display:block}.queue-overview small{font-size:12px;display:block;color:var(--muted);margin-top:2px}.queue-overview b{font-size:20px;font-weight:600;margin-left:auto}.queue-overview .chevron{width:13px;height:13px;color:var(--muted)}.filters{display:flex;gap:8px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search-field{position:relative;flex:1;min-width:170px;max-width:300px}.search-field>.icon{position:absolute;width:15px;height:15px;left:11px;top:11px;color:var(--muted)}.search-field input{padding:6px 8px 6px 20px;min-height:37px;font-size:12px}.filters select{width:auto;min-height:37px;font-size:12px;padding:6px 18px 6px 8px}.filters .btn{min-height:37px;font-size:12px;padding:6px 8px}.filters .result-count{font-size:12px;color:var(--muted);margin-left:auto}.matching-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.match-card header{padding:14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.match-card header strong{font-size:14px}.match-card .match-body{padding:14px}.match-amount{font-size:27px;font-weight:600;margin:6px 0 12px}.match-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:10px 0 14px;font-size:12px;color:var(--muted)}.match-stats b{display:block;font-size:14px;color:var(--text);font-weight:500;margin-top:4px}.match-parts{border-top:1px solid var(--line);padding-top:4px}.match-part{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px;gap:6px}.match-part:last-child{border:0}.match-part .source{font-size:12px;color:var(--muted);display:block}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px}.work-item{padding:14px;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line)}.work-item:last-child{border:0}.work-item h3{font-size:14px}.work-item p{font-size:12px;color:var(--muted);margin:4px 0 8px}.work-item .work-actions{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}.work-meta{font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}.work-item .badge{font-size:12px}.info-list{display:grid;gap:12px}.info-list li{display:flex;gap:8px;list-style:none}.info-list li>span{width:22px;height:22px;border-radius:6px;background:var(--surface-2);color:var(--blue);display:grid;place-items:center;flex-shrink:0;font-size:12px}.info-list strong{font-size:12px;font-weight:500;display:block}.info-list p{font-size:12px;color:var(--muted);margin-top:4px}.info-list{padding:0;margin:0}.settings-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px}.settings-side{padding:6px;height:fit-content}.settings-side a{display:flex;align-items:center;gap:6px;padding:8px;font-size:12px;border-radius:9px;color:var(--secondary)}.settings-side a.active{background:var(--soft);color:var(--blue)}.settings-side .icon{width:16px;height:16px}.setting-section{padding:16px;border-bottom:1px solid var(--line)}.setting-section:last-child{border:0}.setting-section h2{font-size:15px;margin-bottom:4px}.setting-section>.muted{font-size:12px;margin-bottom:14px}.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.setting-toggle:last-child{border:0}.setting-toggle strong{font-size:14px;display:block;font-weight:500}.setting-toggle small{font-size:12px;color:var(--muted);display:block;margin-top:3px}.switch{appearance:none;width:36px;height:21px;min-height:21px;padding:0;border-radius:20px;background:var(--surface-2);position:relative;border:1px solid var(--line-strong);cursor:pointer}.switch:before{content:'';width:15px;height:15px;background:var(--muted);position:absolute;left:2px;top:2px;border-radius:50%;transition:.2s}.switch:checked{background:#0b94c5;border-color:#0b94c5}.switch:checked:before{left:17px;background:white}.vendor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vendor-card{padding:16px}.vendor-card h2{font-size:16px;margin-top:12px}.vendor-card p{color:var(--muted);font-size:12px;margin-top:4px}.vendor-card .detail-rows{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.vendor-card .detail-row{font-size:12px}.vendor-card .btn{margin-top:16px}.audit-event{display:flex;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}.audit-event:last-child{border:0}.audit-event .tile{width:33px;height:33px;border-radius:9px}.audit-event strong{font-size:14px;font-weight:500;display:block}.audit-event p{font-size:12px;color:var(--muted);margin-top:3px}.audit-event time{font-size:12px;color:var(--muted);white-space:nowrap;margin-left:auto}.status-key{display:inline-flex;padding:3px 6px;border-radius:5px;font-size:12px;color:var(--muted);background:var(--soft)}.status-key.PASS,.status-key.VERIFIED{color:var(--green);background:var(--green-bg)}.status-key.UNAVAILABLE,.status-key.PENDING{color:var(--amber);background:var(--amber-bg)}.status-key.ESCALATED,.status-key.SUSPICIOUS{color:var(--red);background:var(--red-bg)}.mobile-menu{display:none}.sidebar-backdrop{display:none}.balance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.balance-box{padding:14px}.balance-box strong{display:block;font-size:29px;margin-top:8px}.balance-box small{font-size:12px;color:var(--muted)}
@media(min-width:1550px){.panel-content{padding-top:36px}.dashboard-middle{grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr)}.volume-chart{height:240px}.kpi{padding:16px}.kpi-value{font-size:33px}}
@media(max-width:1200px){.panel-sidebar{width:210px;padding-left:10px;padding-right:10px}.panel-shell{margin-left:210px}.panel-topbar{padding:0 16px}.panel-content{padding:16px 16px 0}.panel-topbar .divider{display:none}.kpi-grid{gap:8px}.kpi{padding:12px}.kpi-value{font-size:24px}.kpi .foot{font-size:12px}.work-grid{grid-template-columns:minmax(0,1fr) 260px}.vendor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.member-grid{grid-template-columns:minmax(0,1fr) 275px;gap:12px}.member-header-inner{gap:12px}.quick-action{padding:10px 8px;gap:6px}.quick-action small{display:none}.member-content{padding-left:14px;padding-right:14px}.dashboard-middle{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:10px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-topbar .top-search{display:none}.work-grid{grid-template-columns:1fr}.work-grid>aside{display:none}.matching-grid{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-side{display:flex;overflow:auto}.settings-side a{white-space:nowrap}}
@media(max-width:760px){.member-header{height:72px}.member-header-inner{padding:0 12px}.member-nav{display:none}.header-actions .username,.header-actions .divider{display:none}.member-content{padding:16px 12px 80px}.welcome h1{font-size:24px}.welcome .live{display:none}.member-grid{grid-template-columns:1fr}.wallet-hero{padding:16px;min-height:250px}.wallet-amount{font-size:41px}.quick-actions{gap:8px;margin-top:10px}.quick-action{flex-direction:column;text-align:center;padding:10px 6px;gap:6px}.quick-action strong{font-size:14px}.account-info{display:none}.help-card{margin-top:0}.secure-strip{font-size:12px;gap:4px}.secure-strip>span:last-child{display:none}.history-section{margin-top:14px}.mobile-member-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--glass);backdrop-filter:blur(20px);border-top:1px solid var(--line);z-index:30;justify-content:space-around;padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.mobile-member-nav a{display:flex;align-items:center;flex-direction:column;gap:3px;font-size:12px;color:var(--muted);flex:1}.mobile-member-nav .icon{width:20px;height:20px}.mobile-member-nav a.active{color:var(--blue)}.flow-card{padding:16px 12px}.flow-intro h1{font-size:22px}.stepper{gap:4px}.stepper>i{width:20px}.flow-value{font-size:30px}.member-content .app-footer{padding-top:12px}.panel-sidebar{transform:translateX(-100%);transition:.2s;width:240px}.panel-sidebar.open{transform:translateX(0)}.sidebar-backdrop.open{display:block;position:fixed;inset:0;background:var(--overlay);z-index:39}.panel-shell{margin-left:0}.panel-topbar{height:65px;padding:0 12px;gap:8px}.mobile-menu{display:inline-grid;width:32px;height:32px}.panel-topbar .badge{font-size:12px;padding:3px 4px}.panel-topbar .header-actions{margin-left:auto;gap:4px}.panel-topbar .header-actions .icon-btn{width:32px;height:32px}.panel-topbar .breadcrumb{font-size:12px;gap:4px}.panel-content{padding:14px 12px 0}.page-heading{align-items:flex-start;margin-bottom:12px}.page-heading h1{font-size:23px}.page-heading>.flex{flex-direction:column;align-items:flex-end;gap:4px}.page-heading .date-text{display:none}.page-heading .btn .icon{width:14px;height:14px}.kpi-grid{gap:8px;margin-bottom:12px}.kpi{padding:10px}.kpi-value{font-size:24px;margin:6px 0 4px}.kpi .label{font-size:12px}.kpi .foot{gap:4px;flex-wrap:wrap}.kpi .tile{width:27px;height:27px}.kpi .tile .icon{width:15px;height:15px}.dashboard-middle{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.queue-overview{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:12px}.queue-overview>a{border:0;padding:6px 0}.queue-overview>a:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}.queue-overview b{font-size:17px;margin-right:4px}.queue-overview .tile{width:29px;height:29px}.queue-overview strong{font-size:12px}.queue-overview small{font-size:12px}.vendor-grid{grid-template-columns:1fr}.filters{padding:10px 12px;gap:6px}.filters .search-field{max-width:none}.filters .result-count{width:100%}.card-head{flex-wrap:wrap}.data-table td{padding:10px}.balance-summary{grid-template-columns:1fr;gap:8px}.balance-box{padding:12px}.balance-box strong{font-size:27px}.balance-box small{font-size:12px}.audit-event{padding:12px}.audit-event time{font-size:12px}.audit-event strong{font-size:12px}.audit-event p{font-size:12px}.work-item{padding:12px;gap:8px}.work-item h3{font-size:14px}.work-item>.tile{display:none}.work-item>.grow>.between{align-items:flex-start;flex-wrap:wrap}.table-footer{padding:8px 12px}.table-footer>.flex{gap:4px}.setting-section{padding:14px}.history-head>.flex{gap:4px}.history-head h2{font-size:15px}.history-head .segment button{padding:4px 6px;font-size:12px}.pending-banner{padding:10px;gap:8px}.pending-banner .btn{font-size:12px;padding:6px 8px}.pending-banner>.tile{display:none}}
@media(max-width:760px){.breadcrumb{font-size:0;gap:0;min-width:0}.breadcrumb strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}.breadcrumb>.icon{display:none}.queue-overview{grid-template-columns:1fr;gap:0}.queue-overview>a{padding:10px 0;border-bottom:1px solid var(--line)}.queue-overview>a:last-child{grid-column:auto;border-top:0;border-bottom:0;padding-top:10px}.queue-overview strong{font-size:12px}.queue-overview small{font-size:12px}.queue-overview b{font-size:21px}.volume-chart{height:155px;padding-top:0}.history-row,.history-row tbody{display:block;width:100%;white-space:normal}.history-row thead{display:none}.history-row tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:12px 12px;border-bottom:1px solid var(--line)}.history-row td{padding:0!important;border:0}.history-row td:nth-child(1){grid-row:1/3;grid-column:1}.history-row td:nth-child(2),.history-row td:nth-child(5){display:none}.history-row td:nth-child(3){grid-row:1;grid-column:2;text-align:right;font-size:14px}.history-row td:nth-child(4){grid-row:2;grid-column:2;text-align:right}.history-row .ref{font-size:12px}.history-row .sub{font-size:12px}.history-row .flex{gap:6px}.history-row .badge{font-size:12px}.history-row tr:last-child{border:0}.history-row tr .empty{display:block!important;grid-column:1/-1;grid-row:auto;text-align:center;padding:12px!important}.history-head{flex-wrap:wrap}.history-head>.flex{margin-left:auto}.secure-strip{margin-top:6px}}
.panel-sidebar{overflow-y:auto;overscroll-behavior:contain}.breadcrumb strong{font-weight:500}

.brand-mark>.icon{width:23px;height:23px;color:#05243d}.brand-mark{transform:none}

/* P2P Payment typography: body 14px, supporting text 12px. */
:root{--text-body:14px;--text-sub:12px}
body,button,input,select,textarea{font-size:var(--text-body)}
.btn,.btn.sm,.link-btn,.side-nav a,.member-nav a,.mobile-member-nav a,.data-table,.data-table .ref,.data-table .value,.field label,.detail-row,.detail-row strong,.kpi .label,.queue-overview strong,.work-item h3,.setting-toggle strong,.settings-side a,.workspace strong,.sidebar-user strong,.match-part,.info-list strong,.timeline-item strong,.profile-row h3,.bank-card strong,.help-card h3,.quick-action strong,.history-row .ref{font-size:var(--text-body)}
small,.tiny,.eyebrow,.sub,.hint,.badge,.live,.secondary-note,.demo-ribbon,.app-footer,.notice,.muted.tiny,.data-table th,.data-table .sub,.field .hint,.kpi .foot,.kpi .change,.queue-overview small,.work-meta,.work-item p,.setting-toggle small,.setting-section>.muted,.workspace small,.sidebar-user small,.nav-label,.nav-count,.engine-status,.engine-status p,.status-key,.breadcrumb,.breadcrumb strong,.top-search,.chart-summary small,.card-head p,.match-stats,.match-part .source,.info-list p,.timeline-item small,.welcome p,.flow-intro p,.flow-status p,.profile-row p,.bank-card p,.help-card p,.secure-strip,.wallet-hero .label,.wallet-bottom .label,.wallet-chip,.quick-action small,.table-footer,.audit-event p,.audit-event time,.search-field input,.filters select,.filters .result-count{font-size:var(--text-sub)}
.brand-name small{font-size:12px;letter-spacing:.5px}.brand-name{letter-spacing:-.4px}
.volume-chart text{font-size:12px}
@media(max-width:760px){.member-header .header-actions>.badge,.panel-topbar .header-actions>.badge{display:none}.member-header-inner{gap:8px;padding:0 12px}.header-actions{gap:6px}.brand{gap:6px}.mobile-member-nav a{font-size:12px}.history-row .ref{font-size:14px}.history-row .sub,.history-row .badge{font-size:12px}.queue-overview strong{font-size:14px}.queue-overview small{font-size:12px}.member-content .history-head>.flex{flex-wrap:wrap}.panel-sidebar{width:255px}}

/* Simplified daily tasks: one clear primary action, details on demand. */
:root{--bg:#f5f7fa;--muted:#5c7385;--shadow:0 3px 16px rgba(4,51,82,.025)}
[data-theme=dark]{--bg:#03111f;--muted:#9bb7c9}
body{background-image:none}.member-header,.panel-topbar{background:var(--surface)}
.simple-welcome{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px}.simple-welcome p{color:var(--secondary);margin-bottom:4px}.simple-welcome h1{font-size:28px;letter-spacing:-.5px}.simple-welcome>.badge{font-size:12px}
.simple-wallet-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start}.wallet-main{overflow:hidden}.wallet-main .wallet-hero{border:0;border-radius:16px 16px 0 0;background:#07334d;min-height:252px;box-shadow:none;padding:16px 16px}.wallet-main .wallet-hero:before,.wallet-main .wallet-hero:after{display:none}.wallet-main .wallet-amount{font-size:46px;margin:4px 0 16px}.balance-toggle{color:#bbdeec;min-width:44px;min-height:44px}.wallet-main .wallet-bottom{gap:12px;justify-content:space-between}.wallet-main .wallet-bottom strong{font-size:14px}.wallet-actions{padding:16px 16px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.wallet-actions .btn{min-height:54px;font-size:14px}.wallet-actions .primary{background:#20d8f4;box-shadow:none}.wallet-side{display:grid;gap:12px}
.activity-card .card-head,.operations-recent .card-head{padding:12px 12px;border-bottom:1px solid var(--line)}.activity-card h2,.operations-recent h2{font-size:16px}.activity-list{padding:0 12px}.activity-item{display:flex;align-items:center;gap:8px;padding:12px 0;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);text-align:left;min-width:0}.activity-item:last-child{border-bottom:0}.activity-item:hover{background:var(--soft)}.activity-item .tile{width:36px;height:36px;flex-shrink:0;border-radius:10px}.activity-item strong{font-weight:500;font-size:14px;display:block}.activity-item small{font-size:12px;color:var(--muted);display:block;margin-top:4px}.activity-result{display:grid;justify-items:end;gap:4px;flex-shrink:0}.activity-result strong{font-variant-numeric:tabular-nums;font-weight:600}.activity-result .positive{color:var(--green)}.activity-item>.icon{width:16px;color:var(--muted)}.simple-bank{display:flex;align-items:center;gap:8px;padding:12px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}.simple-bank strong{font-size:14px;font-weight:500}.simple-bank p{font-size:12px;color:var(--muted);margin-top:3px}.simple-bank>.icon{width:16px;color:var(--muted)}.simple-help{display:flex;align-items:center;justify-content:center;gap:6px;padding:16px 0;color:var(--muted);font-size:12px}.simple-help a{display:inline-flex;align-items:center;gap:4px;font-size:14px;min-height:44px}.simple-help .icon{width:17px}.member-content>.app-footer{border-top:1px solid var(--line)}.mobile-member-nav a{min-height:44px;justify-content:center}.member-content .segment button{min-height:40px}.amount-input input{padding-right:64px}
.attention-banner{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line-strong);background:var(--surface);border-radius:16px;margin-bottom:14px}.attention-banner .eyebrow{letter-spacing:0;font-size:12px;color:var(--secondary)}.attention-banner h2{font-size:22px;margin-top:3px}.attention-banner p{font-size:12px;color:var(--muted);margin-top:4px}.simple-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.simple-kpis .kpi-value{font-size:30px}.simple-operations{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:16px;align-items:start}.simple-operations .queue-overview a{padding:14px 0}.simple-operations .queue-overview strong{font-size:14px}.operations-recent .activity-item .grow>strong .muted{font-size:12px}.operations-recent .activity-item .grow{overflow:hidden}.operations-recent .activity-item .grow>strong,.operations-recent .activity-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-details{border:1px solid var(--line);border-radius:14px;margin-top:16px;background:var(--surface)}.analytics-details>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:12px 14px;min-height:56px;color:var(--secondary)}.analytics-details>summary:after{content:'+';margin-left:auto;font-size:20px}.analytics-details[open]>summary:after{content:'−'}.analytics-details>summary>span{font-size:12px;color:var(--muted);margin-left:6px}.analytics-body{padding:0 12px 12px}.analytics-body .card{box-shadow:none}.more-navigation{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}.more-navigation>summary{display:none;cursor:pointer;color:var(--secondary);font-size:14px;padding:8px 10px;min-height:46px}.more-navigation.is-compact>summary{display:list-item}.more-navigation.is-compact .side-nav{margin-top:4px}.more-navigation>summary:focus-visible,.analytics-details>summary:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}.workspace{margin-bottom:14px}.side-nav a{min-height:46px}
@media(max-width:1100px){.simple-operations{grid-template-columns:1fr}.simple-wallet-layout{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.wallet-main .wallet-amount{font-size:39px}.wallet-main .wallet-hero{padding:14px}.activity-item{gap:6px}.activity-item>.icon{display:none}}
@media(max-width:760px){.member-content{padding-top:14px}.simple-welcome{margin:0 0 14px}.simple-welcome h1{font-size:24px}.simple-welcome p{font-size:12px}.simple-wallet-layout{grid-template-columns:1fr;gap:14px}.wallet-main .wallet-hero{padding:12px 14px 14px;min-height:230px}.wallet-main .wallet-amount{font-size:40px;margin:0 0 12px}.wallet-actions{padding:12px 12px 0;gap:8px}.wallet-side{gap:10px}.activity-list{padding:0 12px}.activity-item{padding:12px 0}.activity-card .card-head,.operations-recent .card-head{padding:10px 12px}.simple-help{flex-wrap:wrap;gap:4px;padding:12px 0}.simple-help a{font-size:14px}.member-content>.app-footer{align-items:flex-start;flex-direction:column;gap:6px}.member-content>.app-footer>.flex{flex-wrap:wrap}.attention-banner{padding:12px;gap:8px;flex-wrap:wrap}.attention-banner>.tile{display:none}.attention-banner h2{font-size:20px}.attention-banner .btn{width:100%;margin-top:4px;min-height:46px}.simple-kpis{grid-template-columns:1fr;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.simple-kpis .kpi{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;display:grid;grid-template-columns:1fr auto;padding:12px 12px;column-gap:8px}.simple-kpis .kpi:last-child{border:0}.simple-kpis .kpi>.between{grid-column:1;justify-content:flex-start;gap:6px;flex-direction:row-reverse;justify-self:start}.simple-kpis .kpi>.between .tile{width:28px;height:28px}.simple-kpis .kpi-value{grid-column:2;grid-row:1/3;align-self:center;font-size:26px;margin:0}.simple-kpis .foot{grid-column:1;margin-top:3px}.simple-kpis .kpi-value small{font-size:12px}.simple-operations{gap:12px}.simple-operations .queue-overview{padding:0 12px}.simple-operations .queue-overview a{padding:12px 0}.analytics-details>summary{padding:12px;font-size:14px}.analytics-details>summary>span{display:none}.analytics-body{padding:0 8px 12px}.operations-recent .activity-item{gap:6px}.operations-recent .activity-item .tile{width:30px;height:30px}.operations-recent .activity-item .grow>strong .muted{display:none}.operations-recent .activity-item small{font-size:12px}.operations-recent .activity-result strong{font-size:14px}.operations-recent .badge{font-size:12px}.panel-content>.app-footer{flex-wrap:wrap}.panel-topbar .avatar{display:none}}
@media(prefers-reduced-motion:reduce){.panel-sidebar,.activity-item{transition:none}}
@media(min-width:761px) and (max-width:1000px){.member-header .header-actions>.badge,.member-header .header-actions>.username,.member-header .header-actions>.divider{display:none}.member-header-inner{gap:12px;padding-left:16px;padding-right:16px}.member-header .header-actions{gap:6px}.member-header .brand{flex-shrink:0}}
@media(max-width:420px){.stepper{gap:4px;justify-content:space-between}.stepper span{font-size:12px;gap:4px;white-space:nowrap}.stepper>i{width:10px;flex-shrink:0}.stepper b{width:19px;height:19px;flex-shrink:0}.stepper span{white-space:normal}.flow-card .stepper span{align-items:flex-start}.flow-card .stepper span b{margin-top:1px}.flow-card .stepper span:nth-of-type(1){max-width:100px}.flow-card .stepper span:nth-of-type(2){max-width:110px}}
@media(min-width:761px) and (max-width:1000px){.simple-kpis{grid-template-columns:1fr;gap:8px}.simple-kpis .kpi{display:grid;grid-template-columns:1fr auto;padding:12px 12px;column-gap:12px}.simple-kpis .kpi>.between{grid-column:1;justify-content:flex-start;gap:8px}.simple-kpis .kpi-value{grid-column:2;grid-row:1/3;align-self:center;margin:0}.simple-kpis .foot{grid-column:1;margin-top:3px}.simple-kpis .kpi .tile{width:28px;height:28px}}

/* Live deposit-to-withdrawal relationship map. Lines follow measured node positions. */
.matching-map-card{margin-bottom:16px;overflow:hidden}.matching-map-card>.card-head{border-bottom:1px solid var(--line);gap:12px}.matching-map-card .card-head p{margin-top:4px}.map-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px}.map-legend>span{display:flex;align-items:center;gap:6px}.map-legend>span:before{content:'';width:22px;border-top:2px solid var(--green)}.map-legend>.pending:before{border-color:var(--blue);border-top-style:dashed}.match-map-head{display:grid;grid-template-columns:1fr 100px 1fr;padding:12px 16px;background:var(--soft);align-items:center}.match-map-head strong{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}.match-map-head>span{text-align:center;color:var(--muted)}.match-map{position:relative;padding:0 16px}.match-map-lines{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:1}.match-map-lines g>path{fill:none;stroke:var(--green);stroke-width:2}.match-map-lines g>path.pending{stroke:var(--blue);stroke-dasharray:6 5}.match-map-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:100px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.match-map-group:last-child{border-bottom:0}.match-map-sources{display:grid;gap:10px;min-width:0}.match-map-source,.match-map-target{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 12px;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;min-width:0}.match-map-source.verified{border-left:3px solid var(--green)}.match-map-source.pending{border-left:3px solid var(--blue)}.map-node-label{font-size:12px;color:var(--muted)}.match-map-source .link-btn,.match-map-target .link-btn,.map-reference{font-size:14px;font-weight:600;text-align:left;overflow-wrap:anywhere;min-height:32px;white-space:normal;line-height:1.5}.match-map-source>b,.match-map-target>b{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.map-state{font-size:12px;color:var(--green)}.pending>.map-state{color:var(--blue)}.map-totals{display:grid;gap:4px;border-top:1px solid var(--line);padding-top:8px;margin-top:6px;width:100%}.map-totals>span{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--secondary);flex-wrap:wrap}.map-totals strong{font-weight:500;color:var(--text)}.map-no-source{font-size:12px;color:var(--muted);padding:12px 8px;text-align:center;border:1px dashed var(--line-strong);border-radius:12px}.map-caption{border-top:1px solid var(--line);padding:10px 16px;color:var(--muted);font-size:12px}.match-map-target>.badge{white-space:normal}.map-reference{font-weight:500}.match-map-source .link-btn:hover,.match-map-target .link-btn:hover{text-decoration:underline}
@media(max-width:1000px){.match-map-group{gap:58px}.match-map-head{grid-template-columns:1fr 58px 1fr}.match-map-source,.match-map-target{padding:10px}.map-totals>span{gap:3px}}
@media(max-width:760px){.matching-map-card>.card-head{padding:12px 12px}.matching-map-card .card-head h2{font-size:16px}.map-legend{gap:10px}.match-map{padding:0 8px}.match-map-head{padding:10px 8px;grid-template-columns:1fr 38px 1fr}.match-map-head strong{font-size:12px;gap:4px}.match-map-head .icon{width:16px;height:16px}.match-map-group{gap:38px;padding:12px 0}.match-map-source,.match-map-target{padding:8px 8px;gap:4px;border-radius:10px}.match-map-source .link-btn,.match-map-target .link-btn,.map-reference{font-size:12px;min-height:40px}.match-map-source>b,.match-map-target>b{font-size:16px;overflow-wrap:anywhere}.map-node-label{font-size:12px;overflow-wrap:anywhere}.map-totals>span{display:grid;font-size:12px}.map-totals{gap:6px}.match-map-target>.badge{font-size:12px;padding:3px 4px}.map-caption{padding:10px 12px}.map-state{font-size:12px}.map-no-source{padding:12px 6px}}

/* Compact layout v1.1.0: shared spacing above, content-driven component sizes below. */
:root{--space-page:16px;--space-card:12px;--space-section:12px;--radius-card:12px}
h1{font-size:23px;line-height:1.35}h2{font-size:17px;line-height:1.4}h3{line-height:1.4}
.card,.analytics-details,.attention-banner{border-radius:var(--radius-card)}
.card-pad,.card-head{padding:var(--space-card)}
.btn{min-height:36px;padding:6px 12px;border-radius:8px;line-height:1.5}
.btn.sm{min-height:32px;padding:4px 10px}.btn.lg{min-height:40px;padding:8px 14px;font-size:14px}
.icon-btn{width:32px;height:32px;border-radius:8px}.avatar{width:32px;height:32px}.avatar.lg{width:40px;height:40px}
.tile{width:34px;height:34px;border-radius:9px}.bank-logo{width:32px;height:32px;border-radius:8px}
.badge{padding:3px 7px;line-height:1.4}.field{gap:4px;margin-bottom:12px}
input,select,textarea{min-height:38px;padding:7px 10px;line-height:1.5}
.amount-input input{min-height:58px;font-size:26px;padding:10px 60px 10px 36px}
.amount-input>span{left:12px;top:12px;font-size:20px}.amount-input>small{right:12px;top:20px;font-size:12px}
.error:empty{display:none}.error:empty+.btn{margin-top:8px}.error{min-height:0;margin:8px 0}
.notice{padding:8px 10px;line-height:1.5;border-radius:8px}.notice .icon{margin-top:1px}
.data-table th{padding:8px 12px}.data-table td{padding:9px 12px}
.data-table th:first-child,.data-table td:first-child{padding-left:12px}
.data-table th:last-child,.data-table td:last-child{padding-right:12px}
.data-table .sub{margin-top:1px}.table-footer{padding:8px 12px;gap:8px;flex-wrap:wrap}
.filters{padding:10px 12px;gap:8px}.tabs{padding:0 12px;gap:18px}.tabs button{padding:10px 0}
.detail-rows{gap:8px}.detail-row{gap:12px;align-items:baseline}.detail-row strong{overflow-wrap:anywhere;min-width:0}
.empty{padding:24px 12px}.upload{padding:14px;margin:12px 0}.upload input{margin-top:8px}
.modal{border-radius:14px;max-height:calc(100dvh - 24px)}.modal header{padding:10px 16px}.modal-body{padding:16px}
.modal-actions{gap:8px;margin-top:12px}.modal .divider-h{margin:14px 0}
.app-footer{padding:12px 0;gap:8px}.demo-ribbon{padding:8px 0}
.member-header{height:60px}.member-header-inner{max-width:1420px;padding:0 20px;gap:24px}
.member-content{max-width:1360px;padding:18px 20px 0}
.simple-welcome{margin:0 0 12px;gap:12px}.simple-welcome h1{font-size:23px}.simple-welcome p{margin-bottom:2px;font-size:12px}
.simple-wallet-layout{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
.wallet-main .wallet-hero{min-height:0;padding:14px 18px;border-radius:11px 11px 0 0}
.wallet-main .wallet-amount{font-size:36px;line-height:1.3;margin:2px 0 12px}
.wallet-main .wallet-bottom{padding-top:10px;gap:16px}.wallet-bottom strong{margin-top:2px}
.balance-toggle{min-width:36px;min-height:36px}.wallet-actions{padding:12px 14px 0;gap:10px}
.wallet-actions .btn{min-height:40px}.wallet-side{gap:10px}
.activity-card .card-head,.operations-recent .card-head{padding:10px 12px}
.activity-card h2,.operations-recent h2{font-size:15px}.activity-list{padding:0 12px}
.activity-item{padding:10px 0;gap:10px;min-height:60px}.activity-item .tile{width:30px;height:30px;border-radius:8px}
.activity-item small{margin-top:2px}.activity-result{gap:3px}.simple-bank{padding:10px 12px;gap:10px;border-radius:10px}
.simple-help{padding:10px 0;gap:6px}.simple-help a{min-height:36px}
.detail-page{max-width:720px}.back-link{margin-bottom:10px}.flow-card{padding:18px 20px}
.stepper{margin-bottom:14px}.flow-intro{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:10px;text-align:left;margin-bottom:16px;align-items:center}
.flow-intro .tile{grid-column:1;grid-row:1/3;margin:0;width:36px;height:36px}
.flow-intro h1{font-size:21px;grid-column:2}.flow-intro p{grid-column:2;margin-top:2px;line-height:1.5}
.instruction-bank{padding:12px;margin:12px 0}.account-number{font-size:25px;margin:10px 0 2px}
.transfer-amount{margin-top:10px;padding-top:10px}.flow-status{padding:10px 0}
.flow-status h2{font-size:21px;margin:12px 0 4px}.flow-value{font-size:30px;margin:10px 0}
.loader,.success-ring{width:44px;height:44px}.success-ring .icon{width:24px;height:24px}
.timeline{margin:14px 0 6px}.timeline-item{min-height:50px;gap:10px;padding-bottom:8px}
.timeline-item:last-child{min-height:0;padding-bottom:0}
.profile-row{padding-bottom:12px;margin-bottom:12px}.history-section{margin-top:16px}
.panel-sidebar{width:216px;padding:16px 12px 12px}.panel-sidebar .brand{margin:0 6px 16px}
.workspace{padding:8px;margin:0 0 12px}.nav-label{margin:0 10px 6px}
.side-nav{gap:2px}.side-nav a{min-height:36px;padding:7px 10px;gap:8px;border-radius:7px}
.side-nav a.active:before{left:-12px;top:8px;bottom:8px}.more-navigation{margin-top:12px;padding-top:6px}
.more-navigation>summary{padding:8px 10px;min-height:36px}.sidebar-bottom{padding-top:12px}
.engine-status{padding:8px;margin-bottom:8px}.engine-status p{margin-top:3px}.sidebar-user{padding-top:8px}
.panel-shell{margin-left:216px}.panel-topbar{height:56px;padding:0 20px;gap:12px}
.panel-content{padding:16px 20px 0;max-width:1800px}.page-heading{margin-bottom:12px;gap:12px}
.page-heading h1{font-size:23px}.page-heading p{margin-top:2px}.page-heading .btn{min-height:34px;padding:5px 10px}
.attention-banner{padding:12px 14px;gap:12px;margin-bottom:12px}.attention-banner h2{font-size:19px;margin-top:2px}
.attention-banner p{margin-top:2px}.attention-banner>.tile{width:34px;height:34px}
.kpi-grid{gap:12px;margin-bottom:12px}.kpi{padding:12px}.kpi-value{font-size:26px;margin:6px 0 4px}
.simple-kpis .kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:12px}
.simple-kpis .kpi>.between{grid-column:1;justify-content:flex-start;gap:6px;align-self:center}
.simple-kpis .kpi .tile{width:26px;height:26px}.simple-kpis .kpi-value{grid-column:2;grid-row:1/3;font-size:26px;margin:0;align-self:center;white-space:nowrap}
.simple-kpis .foot{grid-column:1;margin:0}.simple-operations{gap:14px;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr)}
.simple-operations .queue-overview{padding:0 12px}.simple-operations .queue-overview a{padding:12px 0;gap:10px}
.analytics-details{margin-top:12px}.analytics-details>summary{padding:10px 12px;min-height:40px}
.analytics-body{padding:0 12px 12px}.chart-summary{gap:18px;padding:0 12px}.volume-chart{height:180px;padding:6px 12px 0}
.matching-grid,.vendor-grid,.work-grid,.settings-layout{gap:12px}
.match-card header{padding:10px 12px;gap:8px;flex-wrap:wrap}.match-card .match-body{padding:12px}
.match-amount{font-size:24px;margin:4px 0 10px}.match-stats{margin:10px 0 12px}.match-part{padding:8px 0}
.work-item{padding:12px;gap:10px}.work-item p{margin:3px 0 6px}.work-item .work-actions{margin-top:8px;gap:6px}
.work-meta{gap:8px 12px}.work-item .notice.mt,.work-item .flex.mt{margin-top:8px}
.info-list{gap:12px}.setting-section{padding:14px}.setting-section>.muted{margin-bottom:12px}
.setting-toggle{padding:10px 0;gap:12px}.settings-side a{padding:8px 10px}
.vendor-card{padding:14px}.vendor-card h2{margin-top:10px}.vendor-card .detail-rows{margin-top:12px;padding-top:10px}.vendor-card .btn{margin-top:12px}
.audit-event{padding:12px;gap:10px}.audit-event p{margin-top:2px}.balance-summary{gap:12px;margin-bottom:12px}
.balance-box{padding:12px 14px}.balance-box strong{font-size:26px;margin-top:4px}
.matching-map-card{margin-bottom:12px}.matching-map-card>.card-head{padding:10px 12px;gap:10px}.matching-map-card .card-head p{margin-top:2px}
.match-map-head{padding:10px 12px;grid-template-columns:1fr 56px 1fr}.match-map{padding:0 12px}
.match-map-group{gap:56px;padding:12px 0}.match-map-sources{gap:8px}
.match-map-source,.match-map-target{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;padding:10px 12px;border-radius:9px}
.match-map-source{grid-template-areas:"label amount" "reference reference" "state state"}
.match-map-source>.map-node-label{grid-area:label;min-width:0}
.match-map-source>.link-btn,.match-map-source>.map-reference{grid-area:reference;justify-self:start;min-width:0}
.match-map-source>b{grid-area:amount;justify-self:end;white-space:nowrap;line-height:1.3}
.match-map-source>.map-state,.match-map-source>.badge{grid-area:state;justify-self:start;min-width:0;white-space:normal}
.map-node-label{grid-column:1/-1}.match-map-source .link-btn,.match-map-target .link-btn,.map-reference{min-height:26px;line-height:1.4}
.match-map-source>b,.match-map-target>b{font-size:18px}.map-state,.match-map-target>.badge{grid-column:1/-1;justify-self:start}
.map-totals{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:8px;margin-top:4px}
.map-totals>span{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.map-caption{padding:8px 12px}
.map-no-source{padding:12px}.map-legend{gap:12px}
.demo-entry{max-width:800px;margin:32px auto;padding:16px}.demo-entry h1{margin:8px 0}.demo-entry .muted{margin:6px 0 12px}
@media(max-width:1100px){
 .simple-operations{grid-template-columns:1fr}.simple-wallet-layout{grid-template-columns:1fr 1fr}
 .panel-content{padding:14px 16px 0}.panel-topbar{padding:0 16px}
 .match-map-group{gap:40px}.match-map-head{grid-template-columns:1fr 40px 1fr}
 .match-map-target{grid-template-columns:1fr}.map-totals{grid-template-columns:1fr}
 .map-totals>span{flex-direction:row;justify-content:space-between;flex-wrap:wrap;width:100%}
}
@media(max-width:760px){
 .member-header{height:56px}.member-header-inner{padding:0 12px;gap:10px}
 .member-content{padding:12px 12px 76px}.simple-welcome{margin-bottom:10px}.simple-welcome h1{font-size:21px}
 .simple-wallet-layout{grid-template-columns:1fr;gap:12px}.wallet-main .wallet-hero{padding:12px 14px;min-height:0}
 .wallet-main .wallet-amount{font-size:34px;margin:0 0 10px}.wallet-main .wallet-bottom{padding-top:8px}
 .wallet-actions{padding:10px 12px 0;gap:8px}.wallet-actions .btn{min-height:44px}
.wallet-side{gap:10px}.simple-help{padding:6px 0;gap:4px}
 .activity-item{padding:9px 0;min-height:60px}.activity-card .card-head,.operations-recent .card-head{padding:8px 12px}
 .simple-bank{padding:9px 12px}.mobile-member-nav{padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
 .mobile-member-nav a{min-height:44px;gap:2px}.mobile-member-nav .icon{width:18px;height:18px}
 .btn,.btn.sm,.btn.lg{min-height:44px}.icon-btn{width:40px;height:40px}.balance-toggle{min-width:40px;min-height:40px}
 .segment button,.member-content .segment button{min-height:40px;padding:5px 8px}
 input,select{min-height:42px}.amount-input input{min-height:58px}
 .flow-card{padding:14px}.flow-intro{margin-bottom:12px}.flow-intro h1{font-size:20px}
 .stepper{margin-bottom:12px}.stepper>i{width:16px}.bank-card{padding:10px}.detail-row{gap:8px}
 .flow-status h2{font-size:20px}.flow-value{font-size:28px}.history-row tr{padding:10px 12px}
 .panel-sidebar{width:232px}.panel-shell{margin-left:0}.panel-topbar{height:52px;padding:0 12px;gap:8px}
 .panel-content{padding:12px 12px 0}.page-heading{margin-bottom:10px}.page-heading h1{font-size:21px}
 .attention-banner{padding:12px;gap:8px;margin-bottom:10px}.attention-banner h2{font-size:18px}
 .attention-banner .btn{width:auto;margin:0;min-height:40px}.attention-banner .grow{flex-basis:180px}
 .simple-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:12px}
 .simple-kpis .kpi{display:flex;flex-direction:column;align-items:flex-start;padding:10px 8px;gap:4px;border:0;border-right:1px solid var(--line)}
 .simple-kpis .kpi:last-child{border:0}.simple-kpis .kpi>.between{flex-direction:row;gap:0}
 .simple-kpis .kpi>.between .tile{display:none}.simple-kpis .kpi .label{font-size:12px}
 .simple-kpis .kpi-value{font-size:24px;line-height:1.2;order:1}.simple-kpis .foot{font-size:12px;line-height:1.4;order:2}
 .simple-operations{gap:12px}.simple-operations .queue-overview a{padding:10px 0}
 .queue-overview .tile{width:28px;height:28px}.queue-overview b{font-size:20px}
 .analytics-details>summary{padding:10px 12px}.analytics-body{padding:0 10px 10px}
 .filters{padding:10px;gap:6px}.filters .search-field{flex-basis:100%;max-width:none}
 .filters select,.filters .btn{min-height:40px}.tabs{gap:16px}.tabs button{min-height:44px;padding:8px 0}
 .work-item{padding:12px}.work-item .work-actions{gap:6px}.setting-section{padding:12px}
 .settings-side a{min-height:44px}.data-table td{padding:9px 10px}
 .balance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.balance-box:first-child{grid-column:1/-1}
 .balance-box strong{font-size:23px;overflow-wrap:anywhere}.vendor-grid{gap:10px}
 .audit-event{flex-wrap:wrap}.audit-event time{margin-left:38px;white-space:normal}
 .matching-map-card>.card-head{padding:10px 12px}.matching-map-card .card-head h2{font-size:15px}
 .match-map{padding:0 10px}.match-map-head{padding:10px;grid-template-columns:1fr 28px 1fr}
 .match-map-group{gap:28px;padding:10px 0}.match-map-source,.match-map-target{padding:8px;gap:3px}
 .match-map-source .link-btn,.match-map-target .link-btn{min-height:40px;font-size:12px}
 .match-map-source>.link-btn{min-height:32px;display:flex;align-items:center}
 .map-reference{min-height:0;font-size:12px}.match-map-source>b,.match-map-target>b{font-size:16px}
 .map-totals{gap:6px;padding-top:6px}.map-totals>span{gap:2px}.map-caption{padding:8px 10px}
 .app-footer{padding:10px 0;font-size:12px}.member-content>.app-footer{gap:4px}
 .demo-entry{margin:12px auto;padding:12px}
}
@media(max-width:360px){
 .simple-kpis .kpi{padding:8px 6px}.simple-kpis .foot{letter-spacing:-.2px}
 .match-map-group{gap:20px}.match-map-head{grid-template-columns:1fr 20px 1fr}
 .map-totals>span{flex-direction:column}.attention-banner .btn{width:100%}
 .match-map-source{column-gap:4px;padding:8px 6px}.match-map-source>b{font-size:14px}
}

.transaction-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}.summary-box{background:var(--soft);padding:8px;border-radius:8px;min-width:0}.summary-amount{font-size:18px;display:block;overflow-wrap:anywhere}.summary-amount.verified{color:var(--green)}
.setting-toggle input.switch{width:36px;height:22px;min-height:22px;padding:0;flex:0 0 36px}

/* v1.2.0 — Thai operations, understandable money movement, compact vendor/audit views. */
.status-key{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;line-height:1.5}
.status-key .icon{width:13px;height:13px}.status-key.NOT_REVIEWED{color:var(--secondary);background:var(--soft)}
.status-key.REJECTED,.status-key.FAIL{color:var(--red);background:var(--red-bg)}
.tile.red{color:var(--red);background:var(--red-bg)}.tile.blue{color:var(--blue);background:var(--soft)}
.ledger-wallet-label{margin:0 0 6px}.ledger-examples{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.ledger-examples>div{display:flex;gap:8px;align-items:flex-start;background:var(--soft);border:1px solid var(--line);padding:10px;border-radius:9px;font-size:12px}
.ledger-examples .icon{width:18px;height:18px;color:var(--blue)}.ledger-examples strong{display:block;font-size:14px;font-weight:500}
.channel-examples{margin-bottom:12px}.channel-examples .card-head{padding-bottom:8px}
.channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 12px 12px}
.channel-example{display:flex;align-items:center;gap:8px;padding:8px;background:var(--soft);border-radius:9px;min-width:0}
.channel-example strong{font-size:14px;font-weight:600;display:block}.channel-example small,.channel-example .grow>span{display:block;color:var(--muted);font-size:12px}
.channel-mark{display:inline-grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:8px;color:#fff}
.channel-mark .icon{width:20px;height:20px}.channel-mark.sm{width:28px;height:28px;border-radius:7px}.channel-mark.sm .icon{width:17px;height:17px}
.channel-mark.provider-logo {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 48px;
  height: 40px;
  padding: 3px;
  background: #fff;
  border: 1px solid #dce5ec;
}
.channel-mark.provider-logo.sm { width: 38px; height: 32px; }
.provider-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.channel-mark.provider-logo-fallback { color:var(--secondary); background:var(--soft); }
.provider-directory .analytics-body { display:grid; gap:16px; }
.provider-group { min-width:0; }
.provider-group h3 { margin:0 0 8px; font-size:var(--text-body,14px); }
.provider-group .channel-grid { list-style:none; margin:0; padding:0; }
.provider-group .channel-example { min-height:54px; }
.provider-group .channel-example strong {
  min-width:0;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.channel-cell{gap:8px}.channel-cell strong{font-size:14px;font-weight:500}.money-in{color:var(--green)}
.cash-change{display:grid;gap:1px;font-size:12px;color:var(--muted)}.cash-change strong{font-size:14px;white-space:nowrap;font-weight:600}
.cash-change.increase strong{color:var(--green)}.cash-change.decrease strong{color:var(--red)}
.cashflow-card .table-footer strong{font-size:14px;color:var(--text)}.journal-details .analytics-body{padding-top:4px}
.vendor-list{display:grid;gap:8px}.vendor-entry{overflow:hidden}
.vendor-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none;min-height:62px}
.vendor-summary::-webkit-details-marker{display:none}.vendor-summary:focus-visible{outline:3px solid var(--cyan);outline-offset:-3px}
.vendor-identity{display:grid;gap:2px;min-width:0}.vendor-identity strong{font-weight:600;font-size:14px}
.vendor-url{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vendor-expand-label{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--blue);white-space:nowrap}
.vendor-expand-label .icon{width:16px;height:16px;transition:transform .15s}.vendor-entry details[open]>.vendor-summary .icon{transform:rotate(90deg)}
.vendor-expanded{border-top:1px solid var(--line);padding:12px}.vendor-expanded .detail-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
.vendor-expanded .detail-row{font-size:12px}.vendor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.audit-legend{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.audit-key{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:7px;font-size:12px;background:var(--surface);border:1px solid var(--line)}
.audit-key .icon{width:14px;height:14px}.audit-key b{font-size:12px;font-weight:500}
.audit-key.blue{color:var(--blue)}.audit-key.amber{color:var(--amber)}.audit-key.purple{color:var(--purple)}.audit-key.red{color:var(--red)}.audit-key.green{color:var(--green)}
.audit-event{border-left:3px solid var(--line-strong)}.audit-event.audit-change{border-left-color:var(--amber)}.audit-event.audit-sensitive{border-left-color:var(--purple)}
.audit-event.audit-review{border-left-color:var(--red)}.audit-event.audit-success{border-left-color:var(--green)}
.audit-event>.tile{width:32px;height:32px}.audit-event>.tile .icon{width:19px;height:19px}
.audit-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.audit-title strong{overflow-wrap:anywhere}
.audit-title .badge{padding:2px 6px}.audit-event p{overflow-wrap:anywhere;margin:4px 0}
.audit-meta{display:flex;gap:4px 10px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.audit-meta>span:first-child{color:var(--secondary)}.audit-event .audit-meta time{margin:0;font-size:12px;white-space:normal}
.audit-changes{margin-top:6px;border-top:1px dashed var(--line)}.audit-changes>summary{cursor:pointer;font-size:12px;color:var(--blue);padding:6px 0;min-height:30px}
.audit-changes dl{margin:0;display:grid;gap:8px}.audit-changes dl>div{padding:8px;background:var(--soft);border-radius:7px}
.audit-changes dt{font-size:12px;font-weight:600;margin-bottom:4px}.audit-changes dd{margin:0;display:grid;grid-template-columns:30px minmax(0,1fr);gap:6px;font-size:12px;overflow-wrap:anywhere}
.audit-changes dd>span{color:var(--muted)}.audit-changes del{text-decoration:none;color:var(--muted)}.audit-changes ins{text-decoration:none;color:var(--text);font-weight:500}
@media(max-width:1100px){.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .channel-grid{padding:0 10px 10px;gap:6px}.channel-example{padding:8px 6px;gap:6px}.channel-mark{width:28px;height:28px}
 .channel-example small{line-height:1.4}.ledger-examples>div{padding:8px;gap:6px}.ledger-examples strong{font-size:14px}
 .cashflow-table,.cashflow-table tbody{display:block;width:100%;white-space:normal}.cashflow-table thead{display:none}
 .cashflow-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
 .cashflow-table tbody tr:last-child{border:0}.cashflow-table td{padding:0!important;border:0;min-width:0}
 .cashflow-table td:nth-child(1){grid-column:1;grid-row:1}.cashflow-table td:nth-child(2){grid-column:1;grid-row:2}
 .cashflow-table td:nth-child(3),.cashflow-table td:nth-child(4){display:none}.cashflow-table td:nth-child(5){grid-column:2;grid-row:1/3;text-align:right;align-self:center}
 .cashflow-table td:nth-child(6){grid-column:1/-1;grid-row:3}.cashflow-table .ref{overflow-wrap:anywhere}.cashflow-table .sub{font-size:12px}
 .cashflow-table .channel-mark{display:none}.cashflow-table .channel-cell strong{font-size:12px}.cashflow-table .channel-cell .sub{display:inline;margin-left:6px}
 .cashflow-table .channel-cell>div{display:flex;align-items:baseline;flex-wrap:wrap}.cashflow-table .status-key{font-size:12px;padding:2px 6px}
 .cashflow-table .empty{grid-column:1/-1;display:block!important}.cashflow-totals{align-items:flex-start;flex-direction:column;gap:4px}
 .vendor-expanded .detail-rows{grid-template-columns:1fr}.vendor-actions .btn{flex:1;min-height:44px}
 .vendor-summary{padding:10px;gap:8px}.vendor-expand-label{font-size:12px}.vendor-identity strong{overflow-wrap:anywhere}
 .audit-event{padding:10px;flex-wrap:nowrap;gap:8px}.audit-title{align-items:flex-start}.audit-title .badge{font-size:12px}
 .audit-meta{gap:2px 6px}.audit-key{padding:3px 6px}.audit-event .audit-meta time{margin-left:0}
 .audit-changes>summary{min-height:36px;display:flex;align-items:center}
}
@media(max-width:360px){.channel-grid{grid-template-columns:1fr}.ledger-examples{grid-template-columns:1fr}.vendor-expand-label{font-size:0}.vendor-expand-label .icon{font-size:12px}.cashflow-table tr{gap:6px}}
.audit-card .filters .result-count{width:auto;margin-left:auto}

/* v1.3.0 — selected matching-dashboard reference, scoped to this page. */
.matching-page{max-width:1240px;margin:0 auto;--match-shadow:0 4px 12px rgba(27,85,150,.08)}
.matching-heading{display:flex;align-items:center;gap:14px;margin-bottom:14px}.matching-heading h1{font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.5px}.matching-heading p{color:var(--secondary);font-size:14px;margin-top:4px}
.matching-hero-icon{width:52px;height:52px;flex-shrink:0;display:grid;place-items:center;border-radius:14px;background:#195692;color:#fff;box-shadow:inset 0 1px 2px rgba(255,255,255,.35)}.matching-hero-icon .icon{width:30px;height:30px;stroke-width:1.8}
.matching-heading .live{align-self:flex-start;white-space:nowrap;border:1px solid var(--green-bg);background:var(--green-bg);border-radius:24px;padding:7px 12px;color:var(--green);font-size:14px}
.matching-rule{border-radius:14px;padding:10px 14px;gap:10px;background:var(--soft);margin-bottom:14px;font-size:14px}.matching-rule>.icon{width:23px;height:23px;flex-shrink:0;margin-top:1px}
.matching-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.matching-metric{display:flex;gap:10px;align-items:flex-start;min-width:0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--match-shadow)}
.matching-metric .metric-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.metric-icon .icon{width:25px;height:25px;stroke-width:2.2}.matching-metric h2{font-size:12px;font-weight:600;line-height:1.5;color:var(--text)}.matching-metric strong{display:flex;align-items:baseline;gap:5px;font-size:26px;font-weight:700;line-height:1.3}.matching-metric small{font-size:14px;font-weight:600}.matching-metric b{font-size:14px;color:var(--secondary);font-weight:600;display:block;margin-top:2px;font-variant-numeric:tabular-nums}
.matching-metric.green .metric-icon{background:var(--green-bg);color:var(--green)}.matching-metric.blue .metric-icon{background:var(--soft);color:var(--blue)}.matching-metric.amber .metric-icon{background:var(--amber-bg);color:var(--amber)}.matching-metric.purple .metric-icon{background:var(--purple-bg);color:var(--purple)}
.matching-summary-note{font-size:12px;color:var(--muted);margin:6px 0 12px}
.matching-page .matching-map-card{border-radius:20px;padding:0 10px;box-shadow:var(--match-shadow);background:var(--surface);overflow:visible;margin-bottom:0}
.matching-page .matching-map-card>.card-head{border:0;padding:16px 4px;gap:10px}.matching-section-icon{width:42px;height:42px;border-radius:12px;background:var(--soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0}.matching-section-icon .icon{width:25px;height:25px}
.matching-page .card-head h2{font-size:20px;font-weight:700}.matching-page .card-head p{font-size:12px;line-height:1.5;margin-top:3px}.matching-page .map-legend{flex-shrink:0;border:1px solid var(--line);border-radius:22px;padding:7px 12px;box-shadow:0 2px 5px rgba(21,72,125,.04);gap:14px}
.matching-page .match-map-head{padding:0;background:none;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}.matching-page .match-map-head>div{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:13px}
.matching-page .match-map-head>.deposit-heading{background:var(--green-bg);color:var(--green)}
.matching-page .match-map-head>.withdrawal-heading{background:var(--red-bg);color:var(--red)}.matching-page .match-map-head .icon{width:28px;height:28px;flex-shrink:0}.matching-page .match-map-head strong{font-size:16px;color:inherit}.matching-page .match-map-head small{display:block;font-size:12px;line-height:1.5;margin-top:2px}
.matching-page .match-map{padding:0 8px}.matching-page .match-map-group{gap:64px;padding:16px 0;border-color:var(--line)}.matching-page .match-map-sources{gap:8px}
.matching-page .match-map-source,.matching-page .match-map-target{padding:12px 14px;border-radius:16px;border-color:var(--line-strong);box-shadow:var(--match-shadow);background:var(--surface)}
.matching-page .match-map-source{grid-template-areas:"label amount" "reference amount" "state state";gap:2px 8px;border-left:4px solid var(--blue)}.matching-page .match-map-source.verified{border-left-color:var(--green)}
.matching-page .map-node-label{color:var(--secondary);font-size:12px;line-height:1.5}.matching-page .match-map-source .link-btn,.matching-page .map-reference{font-size:14px;font-weight:700;line-height:1.4;color:var(--blue);min-height:24px;display:flex;align-items:center}.matching-page .match-map-source>b{font-size:20px;color:var(--text);align-self:start;margin-top:3px;font-weight:700}
.matching-page .map-state{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}.matching-page .map-state small{font-size:12px;color:var(--secondary)}
.matching-status{display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;border-radius:18px;padding:3px 8px;font-size:14px;font-weight:600;line-height:1.45}.matching-status .icon{width:17px;height:17px;flex-shrink:0;stroke-width:2}.matching-status.green{color:var(--green);background:var(--green-bg)}.matching-status.blue{color:var(--blue);background:var(--soft)}.matching-status.purple{color:var(--purple);background:var(--purple-bg)}.matching-status.amber{color:var(--amber);background:var(--amber-bg)}
.matching-page .match-map-target{display:flex;align-items:flex-start;gap:6px;border-left:3px solid var(--line-strong)}.matching-page .match-map-target.purple{border-color:color-mix(in srgb,var(--purple) 35%,var(--line));border-left-color:var(--purple)}
.matching-page .match-map-target.amber{border-left-color:var(--amber)}
.map-target-heading{display:flex;gap:9px;align-items:flex-start;min-width:0;width:100%}.map-target-heading>.icon{width:21px;height:21px;flex-shrink:0;margin-top:2px;color:inherit}.map-target-heading>div{min-width:0}.matching-page .match-map-target .link-btn{display:block;font-size:14px;min-height:28px;color:var(--blue);font-weight:700;line-height:1.4}.matching-page .match-map-target>b{font-size:24px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.matching-page .map-totals{display:grid;grid-template-columns:1fr;gap:0;border:0;margin:2px 0 0;padding:4px 8px;border-radius:12px;background:var(--soft)}.matching-page .map-totals>span{display:grid;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:6px;flex-direction:row;padding:5px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--text)}.matching-page .map-totals>span:last-child{border:0}.map-totals .icon{width:16px;height:16px}
.matching-page .map-totals>span{--total-ink:var(--green)}
.matching-page .map-totals>span:nth-child(2){--total-ink:var(--blue)}
.matching-page .map-totals>.shortfall{--total-ink:var(--amber)}
.matching-page .map-totals>.vendor{--total-ink:var(--purple)}
.matching-page .map-totals :is(.icon,strong){color:var(--total-ink)}
.matching-page .map-totals strong{font-size:12px;font-weight:650;white-space:nowrap}
.map-junction{position:absolute;left:-29px;top:50%;transform:translateY(-50%);width:27px;height:27px;border:2px solid var(--surface);border-radius:50%;display:grid;place-items:center;color:var(--bg);background:var(--blue)}.map-junction.green{background:var(--green)}.map-junction .icon{width:18px;height:18px;stroke-width:2.3}
.matching-page .match-map-lines g>path{stroke:var(--green);stroke-width:2.3}.matching-page .match-map-lines g>path.pending{stroke:var(--blue);stroke-dasharray:6 5}
.matching-page .map-no-source{display:flex;flex-direction:column;align-items:center;gap:5px;padding:24px 12px;border-radius:16px;color:var(--secondary);background:var(--soft)}.matching-page .map-no-source>.icon{width:30px;height:30px;color:var(--muted);margin-bottom:4px}.matching-page .map-no-source strong{font-size:14px;font-weight:600}.matching-page .map-no-source>span{font-size:12px}.matching-page .map-caption{padding:8px 4px;font-size:12px}
[data-theme=dark] .matching-page{--match-shadow:0 4px 14px rgba(0,0,0,.14)}
@media(max-width:1200px){.matching-summary{gap:8px}.matching-metric{gap:7px;padding:10px}.matching-metric .metric-icon{width:30px;height:30px}.metric-icon .icon{width:21px;height:21px}.matching-page .card-head{flex-wrap:wrap}.matching-page .map-legend{margin-left:auto}.matching-heading h1{font-size:26px}.matching-heading p{font-size:12px}}
@media(max-width:760px){.matching-heading{gap:10px;margin-bottom:10px;flex-wrap:wrap}.matching-hero-icon{width:42px;height:42px;border-radius:11px}.matching-hero-icon .icon{width:25px;height:25px}.matching-heading h1{font-size:23px}.matching-heading .grow{flex:1;min-width:200px}.matching-heading p{font-size:12px;margin-top:3px}.matching-heading .live{padding:4px 9px;font-size:12px;margin-left:auto}.matching-rule{padding:9px 10px;font-size:12px;margin-bottom:10px;gap:8px}.matching-rule>.icon{width:20px;height:20px}.matching-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.matching-metric{padding:10px;gap:9px;border-radius:12px}.matching-metric strong{font-size:24px}.matching-metric .metric-icon{width:34px;height:34px}.matching-summary-note{margin:6px 0 10px;line-height:1.5}.matching-page .matching-map-card{padding:0 8px;border-radius:16px}.matching-page .matching-map-card>.card-head{padding:12px 0;gap:8px}.matching-section-icon{width:32px;height:32px;border-radius:9px}.matching-section-icon .icon{width:22px;height:22px}.matching-page .card-head h2{font-size:16px}.matching-page .card-head p{font-size:12px}.matching-page .map-legend{padding:4px 8px;gap:12px;font-size:12px}.matching-page .match-map-head{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)}.matching-page .match-map-head>div{padding:9px 8px;gap:6px;border-radius:10px}.matching-page .match-map-head strong{font-size:14px;line-height:1.4}.matching-page .match-map-head small{display:none}.matching-page .match-map-head .icon{width:22px;height:22px}.matching-page .match-map{padding:0}.matching-page .match-map-group{gap:30px;padding:12px 0}.matching-page .match-map-source,.matching-page .match-map-target{padding:9px 8px;border-radius:12px;gap:4px}.matching-page .match-map-source{grid-template-areas:"label amount" "reference reference" "state state";column-gap:2px}.matching-page .match-map-source>b{font-size:17px;margin-top:0}.matching-page .match-map-source .link-btn,.matching-page .map-reference{font-size:14px;min-height:30px}.matching-page .map-state{gap:4px;margin-top:0}.matching-page .map-state small{font-size:12px}.matching-status{font-size:12px;padding:3px 6px;gap:4px}.matching-status .icon{width:15px;height:15px}.map-target-heading{gap:5px}.map-target-heading>.icon{width:17px;height:17px}.matching-page .match-map-target .link-btn{font-size:14px;min-height:32px}.matching-page .match-map-target>b{font-size:21px}.matching-page .map-totals{padding:2px 4px}.matching-page .map-totals>span{grid-template-columns:14px minmax(0,1fr);gap:2px 4px;padding:4px 0}.matching-page .map-totals strong{grid-column:2;justify-self:start}.map-totals .icon{width:14px;height:14px}.map-junction{width:23px;height:23px;left:-27px}.map-junction .icon{width:16px;height:16px}.matching-page .map-no-source{padding:16px 6px;gap:4px}.matching-page .map-no-source strong{font-size:12px}.matching-page .map-no-source>span{font-size:12px}.matching-page .map-caption{padding:8px 0}}
@media(max-width:380px){.matching-page .match-map-source{grid-template-areas:"label label" "reference reference" "amount amount" "state state"}.matching-page .match-map-source>b{justify-self:start}.matching-page .match-map-group{gap:26px}.matching-page .match-map-head{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr)}.matching-page .match-map-head>div{gap:4px;padding:8px 5px}.matching-page .match-map-head strong{font-size:12px}.matching-page .match-map-head .icon{width:18px;height:18px}.matching-metric{gap:6px;padding:8px}.matching-metric .metric-icon{width:27px;height:27px}.matching-metric b{font-size:12px}.matching-metric small{font-size:12px}.matching-page .match-map-target>b{font-size:18px}.map-target-heading>.icon{display:none}.matching-page .map-state .matching-status{padding:3px 4px}}
/* The reference uses an unobstructed canvas on tablet, with the menu in the top bar. */
.panel-shell:has(.matching-page) .panel-content{background:var(--soft);min-height:calc(100vh - 56px)}
@media(max-width:1100px){
 body:has(.matching-page) .panel-sidebar{transform:translateX(-100%)}
 body:has(.matching-page) .panel-sidebar.open{transform:translateX(0)}
 .panel-shell:has(.matching-page){margin-left:0}
 .panel-shell:has(.matching-page) .mobile-menu{display:flex}
 .panel-shell:has(.matching-page) .top-search,.panel-shell:has(.matching-page) .header-actions>.badge,.panel-shell:has(.matching-page) .header-actions>.avatar,.panel-shell:has(.matching-page) .header-actions>.divider{display:none}
}
.panel-shell:has(.matching-page) .header-actions{margin-left:auto}
[data-theme=light] .panel-shell:has(.matching-page) .panel-content{background:#f2f7ff}

/* Shared test workspace and functional completion, 14px / 12px retained. */
.workspace-gate{max-width:500px;margin:8vh auto;padding:22px}.workspace-gate h1{font-size:26px;margin-bottom:6px}.workspace-gate h2{font-size:18px;margin-bottom:8px}.workspace-gate>p{color:var(--secondary);margin-bottom:12px}.workspace-gate form{margin-top:16px}.workspace-gate label{display:block;font-size:12px;margin-bottom:5px}
html[data-pending="1"] button,html[data-pending="1"] .btn{pointer-events:none;opacity:.65}
html[data-pending="1"]:after{content:'กำลังบันทึก…';position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:1000;background:var(--navy);color:#fff;border-radius:20px;padding:8px 16px;font-size:14px}
html[data-connection="offline"] .panel-topbar:after,html[data-connection="offline"] .member-header:after{content:'ขาดการเชื่อมต่อ กำลังเชื่อมต่อใหม่';position:fixed;top:0;left:0;width:100%;background:var(--amber-bg);color:var(--amber);font-size:12px;text-align:center;z-index:100}
.help-item{padding:10px 0;border-top:1px solid var(--line)}.help-item summary{font-size:14px;font-weight:500;cursor:pointer;min-height:32px;display:flex;align-items:center}.help-item p{font-size:12px;color:var(--secondary);margin-top:6px}.chart-note{padding:0 14px 10px}.source-splits{white-space:normal;line-height:1.6;margin-top:4px}
.notification-trigger{position:relative}.notification-dot{position:absolute;right:7px;top:6px;width:7px;height:7px;background:var(--red);border-radius:50%}.notification-list{display:grid;max-height:60vh;overflow:auto}.notification-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.notification-item.read{opacity:.65}.notification-item strong{font-size:14px;font-weight:500}.notification-item p,.notification-item small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.notification-item .tile{flex-shrink:0;width:30px;height:30px}.evidence-links{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.workspace-gate{margin:30px 12px;padding:16px}.workspace-gate .btn{min-height:44px}.member-header-inner{gap:8px}.member-header .header-actions{gap:3px}.member-header .header-actions>.badge{display:none}.panel-topbar .header-actions{gap:2px}#profile-form .field{margin-bottom:10px}.source-splits{font-size:12px}.help-item summary{min-height:44px}}

/* Fixed operations dock: selected six routes, shared across all Panel pages. */
.panel-shell{--dock-left:216px;padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
.panel-bottom-nav{position:fixed;z-index:35;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:calc(var(--dock-left) + (100% - var(--dock-left))/2);transform:translateX(-50%);width:min(660px,calc(100% - var(--dock-left) - 32px));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:6px;border:1px solid var(--line-strong);border-radius:22px;background:var(--glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 8px 32px rgba(3,40,65,.14),inset 0 1px 0 rgba(255,255,255,.18)}
.panel-bottom-nav>a{min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;border-radius:16px;color:var(--secondary);font-size:12px;line-height:1.4;white-space:nowrap;transition:background .15s,color .15s}
.panel-bottom-nav>a:hover{background:var(--hover);color:var(--blue)}
.panel-bottom-nav>a[aria-current=page]{color:var(--blue);background:linear-gradient(145deg,var(--hover),var(--soft));box-shadow:inset 0 0 0 1px var(--line);font-weight:600}
.dock-icon{position:relative;display:flex;align-items:center;justify-content:center;width:30px;height:25px}.dock-icon>.icon{width:22px;height:22px}
.dock-count{position:absolute;top:-5px;left:21px;min-width:16px;height:16px;padding:0 3px;border-radius:8px;background:var(--amber-bg);color:var(--amber);box-shadow:0 0 0 2px var(--surface);font-size:12px;line-height:16px;font-weight:600}
@media(max-width:1100px){.panel-shell:has(.matching-page){--dock-left:0px}}
@media(max-width:760px){.panel-shell{--dock-left:0px}.panel-bottom-nav{width:calc(100% - 16px);gap:0;padding:5px 3px;border-radius:19px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}.panel-bottom-nav>a{border-radius:14px;min-height:54px}.panel-bottom-nav .dock-icon>.icon{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.panel-bottom-nav>a{transition:none}}

/* v1.7.0 — content reflow across phone, tablet and desktop widths. */
.panel-shell,.panel-content,.member-content,.settings-layout,.settings-layout>*,.setting-section,.modal-body{min-width:0;max-width:100%}
.page-heading{flex-wrap:wrap}.page-heading>div,.card-head>div{min-width:0}.page-heading p,.notice,.field .hint,.detail-row,.work-item p,.audit-event,.app-footer{overflow-wrap:anywhere}
.page-heading>.flex{flex-wrap:wrap;max-width:100%;align-items:center}
.settings-side[role=tablist]{display:grid;gap:4px;overflow:visible}
.settings-side [role=tab]{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.setting-section>.between{flex-wrap:wrap}.setting-section>.between>span,.setting-section>.between>div{min-width:0;flex:1 1 200px}
.setting-toggle>span{min-width:0}.setting-toggle input{flex-shrink:0}.settings-layout input,.settings-layout select{min-width:0;max-width:100%}
.table-wrap{min-width:0;max-width:100%;overscroll-behavior-x:contain}.modal header h2{min-width:0;overflow-wrap:anywhere}.modal header .icon-btn{flex-shrink:0}.modal-actions{flex-wrap:wrap}.modal .detail-row>*{min-width:0;overflow-wrap:anywhere}
img{max-width:100%;height:auto}.evidence-links>figure{flex-basis:100%;min-width:0;max-width:100%}.evidence-links .btn{white-space:normal}
@media(max-width:1100px){
 .sidebar-backdrop.open{display:block;position:fixed;inset:0;z-index:39;background:var(--overlay)}
 body .panel-sidebar{transform:translateX(-100%)}body .panel-sidebar.open{transform:translateX(0)}
 .panel-shell{margin-left:0;--dock-left:0px}.panel-shell .mobile-menu{display:flex}.panel-topbar .top-search,.panel-topbar .header-actions>.badge,.panel-topbar .header-actions>.divider,.panel-topbar .header-actions>.avatar{display:none}
 .panel-topbar .header-actions{margin-left:auto}.panel-topbar .breadcrumb{min-width:0;flex:1;white-space:normal}
 .settings-layout{grid-template-columns:minmax(0,1fr)}.settings-side[role=tablist]{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-side [role=tab]{justify-content:center}
}
@media(max-width:600px){
 .settings-side [role=tab]{flex-direction:column;text-align:center;padding:8px 4px;font-size:12px;gap:4px;min-height:64px}.settings-side [role=tab] .icon{width:19px;height:19px}
 .setting-section>.between>.btn{flex:1 1 100%;white-space:normal}.setting-section .detail-row{flex-wrap:wrap;gap:4px 10px}.setting-section .detail-row>strong,.setting-section .detail-row>.badge{margin-left:auto}
 .card-head{flex-wrap:wrap}.card-head .segment{max-width:100%;flex-wrap:wrap}.form-grid{grid-template-columns:minmax(0,1fr)}
 .modal-overlay{padding:8px}.modal{max-height:calc(100dvh - 16px)}.modal-actions>.btn{flex:1 1 auto;white-space:normal}.table-footer{flex-wrap:wrap;gap:8px}
 .member-header-inner{min-width:0}.member-header .brand{min-width:0}.member-header .brand-name{white-space:normal}.history-head{flex-wrap:wrap;gap:8px}.history-head>.flex{max-width:100%;flex-wrap:wrap}
 .detail-row>strong{min-width:0;overflow-wrap:anywhere}.notice>div,.notice>span{min-width:0}.panel-content>.app-footer,.member-content>.app-footer{flex-wrap:wrap}
}
@media(max-width:380px){.panel-topbar .breadcrumb{font-size:12px}.panel-topbar .header-actions{gap:0}.panel-topbar .icon-btn{width:32px;height:36px}.member-header .brand-name small{letter-spacing:1px}.panel-bottom-nav>a{white-space:normal;text-align:center}.filters select{max-width:100%}}

/* Owner-supplied original PNG logos, selected by theme without recoloring. */
.brand-art{display:block;width:108px;aspect-ratio:1568/1003;flex-shrink:0;line-height:0}.brand-art img{display:block;width:100%;height:100%;object-fit:contain}.brand-art .logo-dark{display:none}
[data-theme=dark] .brand-art .logo-light{display:none}[data-theme=dark] .brand-art .logo-dark{display:block}
.member-header{height:76px}.member-header .brand{flex-shrink:0}.member-header .brand-art{width:108px}
.panel-sidebar>.brand{justify-content:center;margin:0 0 12px}.panel-sidebar .brand-art{width:156px}
@media(max-width:760px){.member-header{height:68px}.member-header .brand-art{width:96px}}
.gate-brand{justify-content:center}.gate-brand .brand-art{width:144px;margin-bottom:8px}

.panel-sidebar>*{flex-shrink:0}

/* Persistent tablet/desktop sidebar, including 744px iPad mini portrait. */
@media(min-width:744px){
 body .panel-sidebar,body:has(.matching-page) .panel-sidebar{width:216px;transform:none;overflow-y:auto;overscroll-behavior:contain}
 .panel-shell,.panel-shell:has(.matching-page){margin-left:216px;--dock-left:216px}
 .sidebar-backdrop,.sidebar-backdrop.open{display:none}
 .panel-shell .mobile-menu,.panel-shell:has(.matching-page) .mobile-menu{display:none}
 .panel-bottom-nav{left:calc(216px + (100% - 216px)/2);width:min(660px,calc(100% - 216px - 24px))}
}

/* Frontend satang: half the parent amount size, preserving the full amount text. */
.money-value{white-space:nowrap;font:inherit}.money-cents{font-size:.5em;line-height:1;vertical-align:baseline;letter-spacing:0}

/* Usability review: focus on the next action and disclose secondary details. */
.money-cents{font-size:max(.5em,11px)}
.wallet-amount .money-cents{font-size:.5em}
.flow-card .upload{position:relative;overflow-wrap:anywhere}
.slip-native-input{position:absolute;inset:0;margin:0!important;width:100%;height:100%;opacity:0;cursor:pointer}
.upload:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.history-row .history-mobile-date,.mobile-detail-label,.mobile-match-sources{display:none}
.transaction-cards td:last-child .icon-btn{width:28px;height:28px}
.work-next{margin-top:10px!important;display:grid;gap:2px;color:var(--secondary)}
.work-next strong{color:var(--text)}
.work-actions{flex-wrap:wrap}
.vendor-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.vendor-pause-note{flex-basis:100%}
.settings-data{grid-column:2;margin-top:0}
.settings-data .setting-section{border-top:1px solid var(--line)}
.analytics-body>.simple-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){
 .settings-data{grid-column:1}
}
@media(max-width:760px){
 .history-row .history-mobile-date{display:block}
 .mobile-cards,.mobile-cards tbody{display:block;white-space:normal}
 .mobile-cards thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .mobile-cards tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:12px;border-bottom:1px solid var(--line)}
 .mobile-cards td{padding:0!important;border:0;min-width:0;overflow-wrap:anywhere}
 .mobile-cards td.empty{grid-column:1/-1;text-align:center;padding:16px!important}
 .transaction-cards td:nth-child(1){grid-column:1;grid-row:1/3}
 .transaction-cards td:nth-child(2){grid-column:1;grid-row:3}
 .transaction-cards td:nth-child(3),.transaction-cards td:nth-child(6){grid-column:2;text-align:right}
 .transaction-cards td:nth-child(4),.transaction-cards td:nth-child(5){display:none}
 .transaction-cards td:nth-child(7){grid-column:1/-1;justify-self:end}
 .transaction-cards .ref{overflow-wrap:anywhere;text-align:left}
 .transaction-cards td:last-child .icon-btn{width:auto;min-height:40px;display:inline-flex;gap:4px;padding:0 6px;color:var(--blue)}
 .mobile-detail-label{display:inline}
 .staff-cards td:first-child,.staff-cards td:last-child{grid-column:1/-1}
 .staff-cards td:last-child .flex{flex-wrap:wrap}
 .staff-cards td:last-child .btn{min-height:40px}
 .matching-page .match-map-head,.matching-page .map-legend,.matching-page .match-map-lines,.matching-page .map-junction{display:none}
 .matching-page .match-map-group{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .matching-page .match-map-group:not(.unmatched)>.match-map-sources{display:none}
 .mobile-match-sources{display:block;order:1}
 .mobile-match-sources>summary{padding:9px 10px;color:var(--blue);cursor:pointer}
 .mobile-match-sources>.match-map-source{margin-top:6px}
 .matching-page .match-map-target{min-width:0}
 .matching-page .map-totals>span{grid-template-columns:16px minmax(0,1fr) auto}
 .matching-page .map-totals strong{grid-column:auto;justify-self:end}
}

/* Operations panel. Keep navigation quiet and reserve filled buttons for actions. */
.panel-sidebar .workspace{width:100%;text-align:left;color:var(--text)}
.panel-sidebar .workspace strong{overflow-wrap:anywhere}
.panel-sidebar .workspace>.icon{width:15px;color:var(--muted)}
.panel-member-link{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 10px;border-top:1px solid var(--line);color:var(--secondary)}
.panel-member-link .icon{width:16px}
.panel-sidebar .drawer-close{display:none}
.panel-shell .page-heading{align-items:center}
.panel-shell .page-heading p:empty,.panel-shell .page-heading>.flex:empty{display:none}
.panel-shell .card{box-shadow:none}
.panel-content:focus{outline:none}
.panel-content .btn,.panel-shell .panel-topbar .icon-btn{min-height:40px}
.panel-shell .btn.primary,body:has(.panel-shell) .modal .btn.primary{background:#086798;border:1px solid #086798;color:white;box-shadow:none}
[data-theme=dark] .panel-shell .btn.primary,[data-theme=dark] body:has(.panel-shell) .modal .btn.primary{background:#80d8f1;border-color:#80d8f1;color:#092a42}
.panel-shell :is(a,button,summary):focus-visible,.panel-sidebar :is(a,button,summary):focus-visible,body:has(.panel-shell) .modal :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.operations-toolbar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--line)}
.operations-toolbar>.search-field{flex:1 1 210px}
.operations-toolbar>.search-field input{width:100%;min-height:42px}
.operations-toolbar details{max-width:100%}
.operations-toolbar .filters{display:flex;flex-wrap:wrap;padding:8px 0 0;gap:8px}
:is(.operations-extra,.work-context)>summary,.operations-toolbar summary{cursor:pointer;color:var(--secondary);padding:8px 12px;min-height:40px;font-size:14px}
:is(.operations-extra,.work-context)[open]>summary,.operations-toolbar details[open]>summary{color:var(--blue)}
.work-context{margin-bottom:10px}
.work-context select{width:100%;max-width:100%}
.work-list,.work-list .grow{min-width:0}
.ledger-entries{width:100%}
.ledger-entries td:last-child,.ledger-entries th:last-child{text-align:right}
@media(max-width:900px){
 .ledger-entries,.ledger-entries tbody{display:block;white-space:normal}
 .ledger-entries thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .ledger-entries tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 12px;border-bottom:1px solid var(--line)}
 .ledger-entries td{padding:0;border:0;min-width:0;overflow-wrap:anywhere}
 .ledger-entries td:nth-child(2){grid-column:1}
 .ledger-entries td:nth-child(3){grid-column:2;grid-row:1/3}
}
@media(max-width:760px){
 .operations-transactions td:nth-child(1){grid-column:1;grid-row:1}
 .operations-transactions td:nth-child(2){grid-column:1;grid-row:2}
 .operations-transactions td:nth-child(3){grid-column:2;grid-row:1}
 .operations-transactions td:nth-child(4){display:block;grid-column:2;grid-row:2;text-align:right}
 .operations-transactions td:nth-child(5){display:block;grid-column:1/-1;grid-row:3;justify-self:end}
 .panel-content .btn,.panel-shell .panel-topbar .icon-btn{min-height:44px}
 .operations-toolbar .filters>*{max-width:100%;min-width:0}
}
@media(max-width:743.98px){
 .panel-sidebar .drawer-close{display:grid;position:absolute;right:4px;top:4px;place-items:center;width:40px;height:40px}
}
.panel-content .search-field input{padding-inline-start:36px}
.panel-content .search-field>.icon{top:50%;transform:translateY(-50%)}
.panel-content .help-item>summary,body:has(.panel-shell) .modal .help-item>summary{display:flex;gap:8px;min-height:44px;color:var(--secondary)}
.panel-content .help-item>summary::after,body:has(.panel-shell) .modal .help-item>summary::after{content:'+';margin-inline-start:auto;font-size:18px}
.panel-content .help-item[open]>summary::after,body:has(.panel-shell) .modal .help-item[open]>summary::after{content:'−'}

/* Wallet reference. The shell, lists and forms share their edges across routes. */
:root{
  --page-gutter:clamp(14px,3.5vw,28px);
  --section-gap:clamp(12px,3.4vw,18px);
  --card-inset:clamp(12px,3.4vw,20px);
  --card-radius:18px;
  --wallet-width:1224px;
  --panel-width:1400px;
}
:root:not([data-theme=dark]){
  --canvas-art:url('./assets/premium-light.webp');
  --balance-art:url('./assets/premium-navy.webp');
  --bg:#edf6ff;
  --surface:#fbfdff;
  --glass:rgba(247,252,255,.93);
  --surface-2:#e4f3ff;
  --soft:#edf6ff;
  --hover:#e4f3ff;
  --text:#0b2947;
  --secondary:#385779;
  --muted:#506b88;
  --blue:#0066b7;
  --green:#007747;
  --line:#cee3f6;
  --line-strong:#a4ceed;
  --action:linear-gradient(145deg,#07b8d8 0%,#0078c4 29%,#0067bb 75%,#007bc8);
  --selected:linear-gradient(160deg,#effaff,#c0edff);
  --sheet:linear-gradient(142deg,#fff 12%,#f6fbff 100%);
  --shadow:0 6px 18px rgba(34,113,181,.10),inset 0 1px rgba(255,255,255,.85);
}
:root:not([data-theme=dark]) body{
  background:var(--bg) var(--canvas-art) center/100% 100% fixed no-repeat;
}
:root:not([data-theme=dark]) :is(.card,.modal,.analytics-details,.simple-bank,.simple-help,.work-context){
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:var(--card-radius);
  box-shadow:var(--shadow);
}
:root:not([data-theme=dark]) .btn{border-radius:11px}
:root:not([data-theme=dark]) :is(.member-content,.panel-content,.modal,.workspace-gate,.demo-entry) .btn.primary{
  background:var(--action);color:white;border-color:#0075c2;
  box-shadow:0 3px 9px rgba(0,109,186,.18),inset 0 1px rgba(255,255,255,.22);
}
:root:not([data-theme=dark]) .btn.primary:hover:not(:disabled){filter:brightness(1.06)}
:root:not([data-theme=dark]) :is(.segment button.active,.panel-content .tabs>button.active,.side-nav a.active,.settings-side [aria-selected=true]):where(:not([data-history="deposit"],[data-history="withdraw"],[data-type="deposit"],[data-type="withdraw"])){
  color:#00559a;background:var(--selected);border-radius:10px;box-shadow:inset 0 0 0 1px #a9d8f4;
}
:root:not([data-theme=dark]) .side-nav a.active:before{display:none}
:root:not([data-theme=dark]) :is(.panel-bottom-nav,.mobile-member-nav){
  background:var(--glass);border:1px solid #b9dbf4;box-shadow:0 7px 23px rgba(30,104,164,.17);backdrop-filter:blur(16px);
}
:root:not([data-theme=dark]) :is(.panel-bottom-nav>a[aria-current=page],.mobile-member-nav a.active){
  color:#005897;background:var(--selected);box-shadow:inset 0 0 0 1px #a3d6f2;
}
:root:not([data-theme=dark]) :is(.member-masthead .header-actions,.panel-topbar) :is(.icon-btn,.avatar){
  background:var(--sheet);border:1px solid var(--line);color:var(--text);
  border-radius:14px;box-shadow:0 3px 8px rgba(39,111,173,.10);
}
:root:not([data-theme=dark]) :is(.member-masthead .header-actions,.panel-topbar) :is(.icon-btn,.avatar):hover{
  background:var(--soft);border-color:var(--line-strong);
}
:root:not([data-theme=dark]) :is(input:not([type=file]),select,textarea){border-radius:10px}
:root:not([data-theme=dark]) .tile:not(.green,.amber,.purple,.red){
  background:linear-gradient(145deg,#f0faff,#d9eeff);color:#0073c7;
}
:root:not([data-theme=dark]) .tile.green{background:#dff6ea;color:#00854d}
:root:not([data-theme=dark]) .badge{border-radius:7px}
:root:not([data-theme=dark]) :is(.activity-card,.operations-recent) .badge.green{background:#d9f5e6;color:#006b40}
:root:not([data-theme=dark]) .panel-sidebar{background:var(--glass);border-inline-end:1px solid var(--line)}
:root:not([data-theme=dark]) .panel-shell:has(.matching-page) .panel-content{background:transparent}
:root:not([data-theme=dark]) .panel-topbar,
:root:not([data-theme=dark]) .member-masthead .member-header{background:transparent;border-color:var(--line);backdrop-filter:none}
:root:not([data-theme=dark]) .wallet-masthead .member-header{border-bottom-color:transparent}
.top-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue);
  font-size: var(--text-body, 14px);
  font-weight: 600;
  white-space: nowrap;
}
.top-search .icon { flex: none; width: 17px; height: 17px; }
.top-search:hover { background: var(--hover); }
:root:not([data-theme=dark]) .member-masthead .simple-welcome .badge{background:#fff6df;color:#775222;border:1px solid #ecd6a9}
:root:not([data-theme=dark]) .member-header .header-actions>.badge{display:none}

.member-masthead .member-header-inner,.member-masthead .simple-welcome,.member-content{
  width:100%;max-width:var(--wallet-width);margin-inline:auto;padding-inline:var(--page-gutter);
}
.member-masthead .simple-welcome{padding-block:12px 0;margin-block:0;align-items:flex-end}
.member-masthead .simple-welcome p{font-size:14px;line-height:1.45;margin:0 0 3px}
.member-masthead .simple-welcome h1{font-size:clamp(25px,4vw,34px);line-height:1.25}
.member-masthead .simple-welcome .badge{padding:4px 9px;border-radius:12px;margin-bottom:2px}
/* Member header links keep the same box in every state. */
@media(min-width:761px){
  .member-nav{display:flex;align-items:center;gap:6px}
  .member-nav a{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:12px;
    color:var(--secondary);font-weight:600;white-space:nowrap;line-height:1.4;
  }
  .member-nav .icon{width:18px;height:18px;flex:none}
  .member-nav a:hover{color:var(--text);background:var(--soft)}
  .member-nav a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
  .member-nav a[aria-current=page]{color:var(--blue);background:var(--soft);border-color:var(--line-strong)}
  :root:not([data-theme=dark]) .member-nav a[aria-current=page]{
    color:#00559a;background:var(--selected);border-color:#a9d8f4;
  }
}
.member-header .header-actions{gap:8px}
.member-header .header-actions :is(.icon-btn,.avatar){width:44px;height:44px}
.member-content{padding-top:var(--section-gap)}
.member-content.wallet-home{display:grid;gap:var(--section-gap)}
.simple-wallet-layout,.wallet-side{gap:var(--section-gap)}
.wallet-home .pending-banner{margin:0}
.wallet-main .wallet-hero{border-radius:var(--card-radius);padding:16px 22px}
:root:not([data-theme=dark]) .attention-banner,
:root:not([data-theme=dark]) .balance-summary>.balance-box:first-child{
  color:#fff;background:#003366 var(--balance-art) right 42%/cover no-repeat;background-blend-mode:screen;border:1px solid #1677ba;
}
.wallet-main .wallet-hero .label{color:#e2f2ff}
.wallet-main .wallet-amount{font-size:clamp(34px,8.5vw,48px);font-weight:700;line-height:1.15;margin:1px 0 14px}
.wallet-main .wallet-amount>span{font-size:.58em;font-weight:600;color:#a8e6ff}
.wallet-main .balance-toggle{width:44px;height:44px;min-height:44px;color:#e6f6ff;margin-block:-7px}
.wallet-main .wallet-bottom{display:grid;grid-template-columns:1fr 1fr;gap:0;padding-top:9px;border-top:1px solid #a1dafa66}
.wallet-main .wallet-bottom>div+div{display:grid;justify-content:end;padding-inline-start:12px;border-inline-start:1px solid #a1dafa55;text-align:start}
.wallet-main .wallet-bottom strong{font-size:16px;font-weight:650;line-height:1.4;margin-top:1px;color:#fff}
.wallet-actions{gap:10px;padding:14px 14px 0}
.wallet-actions .btn{
  min-height:48px;padding:8px 12px;justify-content:center;gap:8px;
  border-radius:12px;font-weight:650;
}
.wallet-actions .btn .icon{width:20px;height:20px;flex:none}

.wallet-home :is(.simple-help,.simple-bank,.app-footer){margin:0}
.wallet-home .simple-bank{padding:9px var(--card-inset);min-height:60px}
.wallet-home .simple-bank .bank-logo{width:36px;height:36px;border-radius:10px;background:#008554;color:#fff}
.wallet-home .simple-bank strong,.activity-list .grow>strong{font-weight:650}
.wallet-home .simple-help{display:flex;min-height:44px;gap:6px;padding:6px 12px;flex-wrap:wrap}
.wallet-home .simple-help strong{display:inline-flex;gap:5px;align-items:center;color:var(--blue);font-size:14px}
.wallet-home .app-footer{border-top:0;padding-block:4px 10px}
.activity-card .card-head,.operations-recent .card-head{padding:8px var(--card-inset);min-height:48px}
.activity-card h2,.operations-recent .card-head h2{font-size:18px}
.activity-card .activity-list,.operations-recent .activity-list{padding-inline:var(--card-inset)}
.activity-card .activity-item,.operations-recent .activity-item{min-height:57px;padding:8px 0;gap:11px}
.activity-list .tile{width:36px;height:36px;border-radius:10px}
.activity-result strong{font-size:16px}
.activity-list .activity-item small{margin-top:1px}
.activity-list .activity-result strong{line-height:1.25}
.activity-list .activity-result .badge{padding-block:1px}
.wallet-home .activity-card .activity-item>.icon{display:none}
.wallet-home .activity-result{gap:1px}
.simple-help:hover,.simple-bank:hover,.activity-item:hover{color:var(--blue)}
.member-content .flow-card,.member-content .card-pad,.modal-body{padding:var(--card-inset)}
.member-content .detail-page{width:100%;max-width:690px;margin-inline:auto}
.member-content .back-link{min-height:36px;margin-bottom:6px}
.member-content .flow-intro{margin-bottom:var(--section-gap)}
.member-content .help-item summary{min-height:44px}

/* Operational pages use the same hierarchy as the member wallet. */
.panel-shell .panel-content{width:100%;max-width:var(--panel-width);padding:var(--section-gap) var(--page-gutter) 0}
.panel-shell .panel-topbar{padding-inline:max(var(--page-gutter),calc((100% - var(--panel-width))/2 + var(--page-gutter)))}
.panel-content .matching-page{max-width:none}
.panel-content :is(.page-heading,.matching-heading){align-items:center;gap:8px 16px;margin:0 0 var(--section-gap)}
.panel-content :is(.page-heading,.matching-heading) h1{font-size:clamp(23px,2.7vw,34px);line-height:1.25}
.panel-content :is(.page-heading,.matching-heading) p{margin-top:4px}
.panel-content .tabs{gap:4px;padding:5px}
.panel-content .tabs>button{border:0;border-radius:10px;min-height:40px}
.panel-content :is(.settings-layout,.vendor-list,.matching-summary,.balance-summary){gap:var(--section-gap)}
.panel-content :is(.setting-section,.audit-event,.work-item,.vendor-summary){padding:12px var(--card-inset)}
.panel-content .work-item>.tile{display:grid}
.panel-content :is(.operations-toolbar,.table-footer){padding-inline:var(--card-inset)}
.panel-content .matching-guide,.panel-content .work-context{border:1px solid var(--line);border-radius:12px}
.panel-content .matching-guide{margin-block:var(--section-gap);background:var(--surface)}
.panel-content .matching-intake > summary {
  padding: 11px var(--card-inset);
  min-height: 44px;
  font-weight: 650;
  border-radius: inherit;
}
.panel-content .matching-intake[open] > summary {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.matching-intake-body {
  container-type: inline-size;
  padding: var(--card-inset);
}
.matching-intake-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.matching-intake-body label {
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}
.matching-intake-body :is(input, select) {
  min-width: 0;
  min-height: 42px;
  font-weight: 400;
}
.matching-intake-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}
.matching-intake-actions > .error { flex: 1 1 240px; margin: 0; }
.matching-intake-actions > .btn { min-height: 44px; width: 100%; }
.matching-intake-actions > .error:empty + .btn { margin-top: 0; }
.matching-intake-evidence {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.matching-intake-evidence > p { margin: 0; overflow-wrap: anywhere; }
.matching-intake-evidence .matching-intake-actions { margin-top: 0; }
.matching-intake-evidence input[type=file] { max-width: 100%; }
@container (min-width: 440px) {
  .matching-intake-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-intake-actions > .btn { width: auto; margin-inline-start: auto; }
}
@container (min-width: 820px) {
  .matching-intake-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.panel-content .audit-event{align-items:flex-start}
.dashboard-daily{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:var(--section-gap)}
.dashboard-metric{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:var(--card-inset)}
.dashboard-metric-value,.dashboard-metric-delta{display:grid;gap:2px}
.dashboard-metric-value{min-width:0}
.dashboard-metric-value>strong{font-size:clamp(16px,1.65vw,25px);line-height:1.25;overflow-wrap:anywhere}
.dashboard-metric-delta,.dashboard-metric-delta small{font-size:12px;color:var(--muted)}
.dashboard-metric-delta{text-align:end}
.dashboard-metric-delta .up{color:var(--green)}
.dashboard-metric-delta .down{color:var(--red)}
.panel-content .attention-banner{padding:var(--card-inset);border-radius:var(--card-radius);margin:0 0 var(--section-gap)}
:root:not([data-theme=dark]) .attention-banner :is(h2,p){color:#f5fbff}
:root:not([data-theme=dark]) .attention-banner .tile{background:#e2f4ff;color:#0069ab}
:root:not([data-theme=dark]) .panel-content .attention-banner .btn.primary{background:#edf8ff;color:#004f91;border-color:#b0dffb}
:root:not([data-theme=dark]) .balance-summary>.balance-box:first-child :is(strong,small,.muted){color:#f1faff}
.panel-content .analytics-details>summary{padding-inline:var(--card-inset);min-height:44px}
.panel-content .settings-side [role=tab]{min-height:44px}

.demo-entry{width:min(100%,740px);margin:clamp(16px,7vh,72px) auto;padding:0 var(--page-gutter)}
.demo-entry .entry-logo{display:block;width:88px;height:auto;margin:0 0 15px}
.demo-entry .entry-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,236px),1fr));gap:var(--section-gap)}
.demo-entry .entry-option{display:grid;align-content:start;padding:var(--card-inset);color:var(--text)}
.demo-entry .entry-option p{margin:5px 0 16px}
.workspace-gate.card{width:min(calc(100% - 2 * var(--page-gutter)),440px);margin:clamp(24px,8vh,76px) auto;padding:clamp(18px,4vw,28px)}
@media(min-width:761px){
  .simple-wallet-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start}
  .wallet-main .wallet-hero{padding:24px}
  .wallet-home .simple-help{justify-self:start;padding-inline:16px}
}
@media(min-width:1100px){
  .operations-recent .activity-result{display:grid;grid-template-columns:minmax(100px,auto) minmax(144px,auto);gap:16px;align-items:center}
  .operations-recent .activity-result .badge{justify-self:end}
}
@media(max-width:1200px){
  .dashboard-metric{grid-template-columns:auto minmax(0,1fr)}
  .dashboard-metric-delta{grid-column:2;text-align:start;display:flex;flex-wrap:wrap;gap:0 5px}
}
@media(max-width:760px){
  .member-masthead .member-header{height:62px}
  :root:not([data-theme=dark]) body{background-size:auto 100%;background-position:right center}
  :root:not([data-theme=dark]) .member-masthead .header-actions :is(.icon-btn,.avatar){
    background-clip:padding-box;border:5px solid transparent;border-radius:18px;
    box-shadow:none;filter:drop-shadow(0 2px 3px rgba(40,117,181,.14));
  }
  .member-header .header-actions{gap:5px}
  .member-header .brand-art{width:84px}
  .member-masthead :is(.simple-welcome,.member-header-inner){padding-inline:calc(var(--page-gutter) + 6px)}
  .member-masthead .simple-welcome{padding-top:9px}
  .member-masthead .simple-welcome h1{font-size:clamp(23px,5.8vw,27px)}
  .wallet-main .wallet-hero{padding:13px clamp(14px,5vw,22px) 10px}
  .wallet-main .balance-toggle{margin-block:-11px}
  .wallet-main .wallet-amount{margin-bottom:9px}
  .wallet-main .wallet-bottom{padding-top:7px}
  .wallet-actions{padding:12px 12px 0;gap:8px}
  .wallet-actions .btn{min-height:46px}
  .wallet-home .activity-card .activity-item{padding-block:6px}
  .wallet-home .activity-card .card-head{padding-block:1px}
  .member-content{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .mobile-member-nav{left:12px;right:12px;width:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:6px;border-radius:22px}
  .mobile-member-nav a{min-height:46px;gap:2px;border-radius:16px}
  .mobile-member-nav .icon{width:20px;height:20px}
}
@media(max-width:743.98px){
  .panel-topbar .header-actions{gap:6px}
  .panel-content .tabs>button{flex:1;min-width:0;padding-inline:4px}
  .panel-content .settings-side[role=tablist]{grid-template-columns:minmax(0,1fr)}
  .panel-content .settings-side [role=tab]{flex-direction:row;justify-content:flex-start;gap:8px;text-align:start;padding:8px 12px;font-size:14px}
  .dashboard-daily{gap:6px}
  .dashboard-metric{grid-template-columns:minmax(0,1fr);gap:5px;padding:9px}
  .dashboard-metric>.tile{width:28px;height:28px;border-radius:8px}
  .dashboard-metric>.tile .icon{width:17px;height:17px}
  .dashboard-metric-value>span{font-size:12px}
  .dashboard-metric-delta{grid-column:1}
  .panel-content .attention-banner .btn{width:100%}
  .operations-transactions tr{grid-template-columns:minmax(0,1fr) minmax(65px,auto) 38px;gap:4px 6px;align-items:center}
  .operations-transactions td:first-child .flex{gap:5px}
  .operations-transactions td:first-child .tile{width:26px;height:26px}
  .operations-transactions td:nth-child(5){grid-column:3;grid-row:1/3}
  .operations-transactions td:nth-child(5) .btn{width:38px;min-height:44px;padding:0;justify-content:center}
  .operations-transactions .transaction-detail-text{display:none}
}
@media(max-width:370px){
  .dashboard-metric{padding:7px}
  .member-masthead .simple-welcome{gap:5px;flex-wrap:wrap}
  .wallet-home .simple-help{gap:4px}
}

.presets button[aria-pressed="true"]{background:var(--soft);border-color:var(--blue);color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.slip-preview{width:100%;min-width:0;margin:8px 0;text-align:center}
.slip-preview figcaption{margin-bottom:4px;color:var(--muted);font-size:12px}
.slip-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:65vh;margin:auto;border:1px solid var(--line);border-radius:10px}
.withdrawal-remainder{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Withdrawal accents identify transaction direction independently of status. */
.withdrawal-ink,
.activity-item[data-type="withdraw"] :is(.grow,.activity-result)>strong,
.history-row tr[data-type="withdraw"] :is(.ref,.value),
.pending-banner[data-type="withdraw"] strong,
.flow-card[data-type="withdraw"] :is(.flow-intro h1,.flow-status h2,.flow-value,#payment-amount),
.operations-transactions tr[data-transaction-type="withdraw"] :is(.ref,.value),
.dashboard-metric[data-transaction-type="withdraw"] .dashboard-metric-value,
.matching-page .match-map-target :is(.map-node-label,.link-btn,b.withdrawal-ink){color:var(--red)}
.chart-summary .withdrawal-fill{background:var(--red)}
.matching-page .match-map-head>.withdrawal-heading{background:var(--red-bg);color:var(--red)}
:root .member-content [data-history="withdraw"].active{
  background:var(--red-bg);color:var(--red);border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red);
}
.member-content [data-history="withdraw"]{color:var(--red)}

.panel-shell .panel-topbar .header-actions .icon-btn{
  flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;
  aspect-ratio:1;border-radius:14px;
}
.panel-topbar .notification-dot{inset:7px 7px auto auto}

/* Transaction direction, review workflow and status use separate cues. */
.deposit-ink,
.activity-item[data-type="deposit"] :is(.grow,.activity-result)>strong,
.history-row tr[data-type="deposit"] :is(.ref,.value),
.pending-banner[data-type="deposit"] strong,
.flow-card[data-type="deposit"] :is(.flow-intro h1,.flow-value,#payment-amount),
.operations-transactions tr[data-transaction-type="deposit"] :is(.ref,.value),
.dashboard-metric[data-transaction-type="deposit"] .dashboard-metric-value,
.matching-page .match-map-source[data-transaction-type="deposit"] :is(.map-node-label,.map-reference,.link-btn,b){
  color:var(--green);
}
.matching-page .match-map-source[data-transaction-type="withdraw"] :is(.map-node-label,.map-reference,b){color:var(--red)}
.chart-summary .deposit-fill{background:var(--green)}
.match-map-source .map-node-label>.icon,.ledger-entries .sub .icon,#modal .tiny :is(.deposit-ink,.withdrawal-ink) .icon{width:14px;height:14px;vertical-align:middle;margin-inline-end:4px}
.status-badge>.icon,.segment button>.icon,.panel-content .tabs>button>.icon{
  width:14px;height:14px;flex:none;vertical-align:middle;margin-inline-end:4px;
}
.status-badge>.icon{width:12px;height:12px;margin-inline-end:0}
.member-content [data-history="deposit"]{color:var(--green)}
:root .member-content [data-history="deposit"].active{
  background:var(--green-bg);color:var(--green);
  border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);
}
.panel-filter-bar{
  padding:10px var(--card-inset);
  border-bottom:1px solid var(--line);
}
.panel-filter-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(100%,var(--filter-width,396px));gap:4px;padding:4px;
  border:1px solid var(--line);border-radius:14px;background:var(--soft);
}
.work-list .panel-filter-tabs{--filter-width:480px}
.panel-filter-tabs>button{
  display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:0;min-height:44px;padding:6px clamp(4px,1.5vw,12px);
  border:1px solid transparent;border-radius:10px;
  color:var(--secondary);background:transparent;
  font-size:var(--text-body);font-weight:500;line-height:1.35;
}
.panel-filter-tabs>button>span{min-width:0;overflow-wrap:anywhere}
.panel-filter-tabs>button>.icon{width:16px;height:16px;flex:none}
.panel-filter-tabs>button[data-type="deposit"]{--tab-ink:var(--green);--tab-fill:var(--green-bg);color:var(--green)}
.panel-filter-tabs>button[data-type="withdraw"]{--tab-ink:var(--red);--tab-fill:var(--red-bg);color:var(--red)}
.panel-filter-tabs>button[aria-pressed="false"]:hover{background:var(--hover)}
.panel-filter-tabs>button[aria-pressed="true"]{
  color:var(--tab-ink,var(--blue));background:var(--tab-fill,var(--selected,var(--surface-2)));
  border-color:color-mix(in srgb,var(--tab-ink,var(--blue)) 34%,transparent);
  font-weight:650;
}
.panel-filter-tabs>button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
:root .member-content .btn.primary.deposit-action{
  background:#006943;color:#fff;border-color:#006943;
  box-shadow:0 3px 8px #00694333;
}
#toast[data-tone="error"]>.icon{color:#ff9bac}
#toast[data-tone="info"]>.icon{color:#90e0ff}

.flow-card[data-type="deposit"][data-status="completed"] .flow-status h2{color:var(--green)}
.flow-card[data-status="review"] .flow-status h2{color:var(--amber)}
.flow-card[data-status="verifying"] .flow-status h2{color:var(--blue)}
.flow-card[data-status="vendor_pending"] .flow-status h2{color:var(--purple)}
.flow-card[data-status="expired"] .flow-status h2{color:var(--red)}

:root .member-content .btn.withdrawal-action,
:root .member-content .btn.primary.withdrawal-action{
  background:linear-gradient(160deg,#bd2441,#9e1734);
  color:#fff;border-color:#a71935;
  box-shadow:0 3px 8px #a719353b;
}
.member-content .btn.withdrawal-action:hover:not(:disabled){filter:brightness(1.08)}
.member-content .btn.withdrawal-action:active:not(:disabled){filter:brightness(.93)}
.member-content .btn.withdrawal-action:focus-visible{
  outline:2px solid var(--red);outline-offset:3px;
}

/* Compact language picker, using the same dialog and focus behavior as the rest of the demo. */
.modal.language-modal{width:min(440px,100%);max-height:min(660px,calc(100dvh - 24px));overflow:auto}
.language-modal .modal-body{padding:12px}
.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.language-option{
  display:flex;align-items:center;gap:8px;min-height:42px;
  padding:6px 8px;text-align:start;color:var(--text);background:transparent;
  border:1px solid transparent;border-radius:9px;overflow-wrap:anywhere;
}
.language-option:hover,.language-option[aria-pressed="true"]{background:var(--soft);border-color:var(--line-strong)}
.language-option:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.language-option[aria-pressed="true"]{color:var(--blue);font-weight:650}
.language-flag{
  display:block;width:20px;height:15px;flex:none;
  border-radius:2px;box-shadow:0 0 0 1px var(--line);
}
.language-option>.icon{width:14px;height:14px;margin-inline-start:auto;flex:none}
:root:not([lang="th"]) .panel-bottom-nav>a{min-width:0;text-align:center;white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1050px){
  :root:not([lang="th"]) .member-header-inner{gap:12px}
  :root:not([lang="th"]) .member-nav a{padding-inline:8px;white-space:normal;text-align:center}
}
.workspace-gate:has(.gate-language){position:relative}
.gate-language{position:absolute;top:10px;inset-inline-end:10px}
.gate-language .icon-btn{width:40px;height:40px}

#language-menu .language-flag{width:24px;height:18px}

/* Member help center */
.support-page {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 30%);
  align-items: center;
  gap: clamp(12px, 3vw, 42px);
  padding: clamp(18px, 2.5vw, 28px) clamp(18px, 3vw, 38px);
  background:
    radial-gradient(ellipse at 86% 48%, var(--surface-2), transparent 60%),
    var(--surface);
}
.support-hero h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.24; }
.support-hero-copy p { color: var(--secondary); margin-block: 7px 16px; }
.support-page .btn { min-height: 44px; white-space: normal; }
.support-hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 162px;
  object-fit: contain;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-areas: "faq track" "faq contact";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 18px;
}
.support-track { grid-area: track; }
.support-faq { grid-area: faq; }
.support-contact { grid-area: contact; }
.support-layout > section { padding: clamp(16px, 2.2vw, 24px); }
.support-layout h2 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.support-track > p { color: var(--secondary); margin-bottom: 14px; }
.support-example {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.support-example figcaption, .support-example small {
  display: block;
  color: var(--secondary);
  font-size: 12px;
}
.support-example figcaption { margin-bottom: 9px; }
.support-example-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.support-example-row .tile { width: 34px; height: 34px; }
.support-example-row > bdi { font-weight: 700; font-variant-numeric: tabular-nums; }
.support-example-row > .positive { color: var(--green); }
.support-withdraw-amount { color: var(--red); }
.support-example-status, .support-example-amounts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  flex-wrap: wrap;
}
.support-example-status, .support-example-amounts {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.support-example-amounts > div + div { margin-top: 6px; }
.support-example-amounts dt { display: flex; align-items: center; gap: 6px; }
.support-example-amounts dd { margin: 0; font-weight: 650; }
.support-example-amounts .icon, .support-contact li .icon { width: 16px; height: 16px; flex: none; }
.support-example-amounts div:first-child .icon { color: var(--green); }
.support-example-amounts div:last-child .icon { color: var(--amber); }
.support-question + .support-question { border-top: 1px solid var(--line); }
.support-question summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 7px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  border-radius: 6px;
}
.support-question summary::-webkit-details-marker { display: none; }
.support-question summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.support-question summary:hover { color: var(--blue); }
.support-question summary > .tile { width: 36px; height: 36px; }
.support-question summary > .icon { width: 16px; height: 16px; color: var(--secondary); }
.support-question[open] summary > .icon { transform: rotate(90deg); }
.support-answer { padding: 7px 0 14px 46px; color: var(--secondary); }
.support-answer ol { margin: 0; padding-inline-start: 19px; }
.support-answer li { padding-inline-start: 3px; }
.support-answer li + li { margin-top: 7px; }
.support-answer > .btn, .support-answer > figure { margin-top: 12px; }
.support-contact ul { list-style: none; padding: 0; margin: 0 0 12px; }
.support-contact li { display: flex; gap: 9px; align-items: flex-start; }
.support-contact li .icon { color: var(--blue); margin-top: 2px; }
.support-contact li + li { margin-top: 8px; }
.support-note { font-size: 12px; color: var(--secondary); }
#help-contact { margin-top: 14px; }
#help-contact > .support-note { margin-top: 6px; }
.support-demo { margin-bottom: 16px; }

@media (max-width: 880px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "track" "faq" "contact";
    grid-template-rows: auto;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  .support-page { gap: 14px; }
  .support-hero { grid-template-columns: minmax(0, 1fr) minmax(76px, 30%); gap: 7px; }
  .support-answer { padding-inline-start: 12px; }
  .support-hero .btn { padding-inline: 10px; }
}

/* Transaction history keeps one accessible link per row and a full-row pointer target. */
.member-content .card:has(.history-row) { overflow: hidden; }
.history-row tbody tr[data-type] { position: relative; }
.history-row .ref::after { content: ''; position: absolute; inset: 0; }
.history-row tr:has(.ref:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.history-row .history-chevron { text-align: right; color: var(--blue); }
.history-row .history-chevron > .icon { width: 16px; height: 16px; vertical-align: middle; }
.withdrawal-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-block: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.withdrawal-preview label { color: var(--secondary); }
.withdrawal-preview output { font-weight: 700; }
@media (max-width: 760px) {
  .history-row tr[data-type] { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; }
  .history-row tr[data-type] .history-chevron { display: grid; grid-column: 3; grid-row: 1/3; align-items: center; }
  .history-row .ref, .history-row .sub { overflow-wrap: anywhere; }
}
#contact-link-field[hidden] { display: none; }
#workspace-options > summary { justify-content: space-between; gap: 8px; }
#workspace-options > summary::after { content: '+' / ''; color: var(--secondary); }
#workspace-options[open] > summary::after { content: '−' / ''; }
#workspace-options > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Member wallet */
.wallet-masthead .simple-welcome {
  padding-block: clamp(12px, 2vw, 27px) 4px;
}
.wallet-masthead .simple-welcome h1 {
  font-size: clamp(25px, 3.6vw, 36px);
  letter-spacing: -.025em;
}
.wallet-masthead .simple-welcome p { overflow-wrap: anywhere; }
.wallet-masthead .wallet-demo-label { white-space: nowrap; }
[data-theme="dark"] .wallet-masthead .wallet-demo-label {
  background: #332919;
  border-color: #715734;
  color: #f3d197;
}
.wallet-home .wallet-main {
  min-width: 0;
  padding: clamp(7px, 1vw, 12px);
  border-radius: 22px;
}
.wallet-home .wallet-hero {
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid #2b6195;
  border-radius: 17px;
  color: #fff;
  background: #071b36
    linear-gradient(110deg, #06182e 5%, #082a4bdc 50%, #00397229 100%);
  background-image: linear-gradient(110deg, #06182e 5%, #082a4bdc 50%, #00397229 100%),
    url('./assets/premium-navy.webp');
  background-position: center, right center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 #b4deff36, 0 5px 12px #06182e14;
}
.wallet-home .wallet-hero h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.wallet-home .wallet-amount {
  display: flex;
  align-items: baseline;
  gap: .16em;
  padding-block: 7px 4px;
  margin-block: 0 clamp(14px, 2.3vw, 24px);
  font-size: clamp(36px, 9.2vw, 59px);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.wallet-home .wallet-amount > span { color: #9ddaff; }
.wallet-home .balance-toggle {
  flex: none;
  margin: 0;
  border: 1px solid #b2d7f04f;
  border-radius: 12px;
  background: #0c284aad;
}
.wallet-home .balance-toggle:hover { background: #244976; }
.wallet-home .wallet-bottom {
  padding-top: 12px;
  border-color: #b2d7f04f;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wallet-home .wallet-bottom > div+div {
  align-content: start;
  justify-content: stretch;
  border-color: #b2d7f04f;
}
.wallet-home .wallet-bottom .label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-inline-end: 6px;
  overflow-wrap: anywhere;
}
.wallet-home .wallet-bottom .icon { width: 15px; height: 15px; flex: none; }
.wallet-home .wallet-bottom strong { margin-top: 4px; font-size: clamp(15px, 2.5vw, 20px); }
.wallet-home .wallet-actions { padding: 10px 0 0; }
.wallet-home .wallet-actions .btn { min-width: 0; min-height: 48px; white-space: normal; }
:root .wallet-home .wallet-actions .btn.deposit-action {
  background: linear-gradient(155deg, #07845e, #00543b);
  border-color: #006141;
  box-shadow: inset 0 1px 0 #ffffff36, 0 4px 8px #034a3826;
}
:root .wallet-home .wallet-actions .btn.withdrawal-action {
  background: linear-gradient(155deg, #bb2945, #8e1330);
  border-color: #9f1d36;
  box-shadow: inset 0 1px 0 #ffffff32, 0 4px 8px #7e102624;
}
.wallet-home .activity-card .card-head { padding-block: 9px; gap: 5px 8px; min-height: 58px; }
.wallet-home .activity-card h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(15px, 3.8vw, 18px); }
.wallet-activity-icon, .wallet-help-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue);
}
.wallet-activity-icon .icon, .wallet-home .wallet-help-icon .icon { width: 18px; height: 18px; }
.wallet-home .activity-card .activity-item { min-height: 61px; gap: 9px; }
.wallet-home .activity-card .activity-item > .grow { min-width: 0; overflow-wrap: anywhere; }
.wallet-home .activity-result { min-width: 0; max-width: 52%; text-align: end; }
.wallet-home .activity-result .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.wallet-home .wallet-side { gap: clamp(10px, 1.4vw, 14px); }
.wallet-home .simple-bank, .wallet-home .simple-help {
  min-height: 60px;
  min-width: 0;
  width: 100%;
  padding: 9px var(--card-inset);
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.wallet-home .simple-help { background: var(--surface); }
:root:not([data-theme="dark"]) .wallet-home .simple-help { background: var(--sheet); }
.wallet-home .simple-help .grow { min-width: 0; color: var(--secondary); }
.wallet-home .simple-help small, .wallet-home .simple-help strong { display: block; overflow-wrap: anywhere; }
.wallet-home .simple-bank > .icon, .wallet-home .simple-help > .icon { width: 16px; flex: none; color: var(--muted); }
.wallet-home :is(.simple-bank,.simple-help):hover { border-color: var(--line-strong); }

@media (min-width: 761px) {
  .wallet-home .simple-wallet-layout {
    grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
    gap: clamp(14px, 2vw, 24px);
  }
  .wallet-home .wallet-amount { font-size: clamp(36px, 5.1vw, 64px); }
  .wallet-home .wallet-actions .btn { min-height: 53px; }
}
@media (min-width: 1060px) {
  .wallet-home .activity-card .activity-item > .icon { display: block; flex: none; }
}
@media (max-width: 380px) {
  .wallet-home .wallet-hero { padding-inline: 13px; }
  .wallet-home .wallet-amount { font-size: 32px; }
}

.slip-debug{margin-top:20px;padding:clamp(12px,2vw,20px);min-width:0}
.slip-debug h2{margin:0 0 6px}
.debug-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.slip-debug details{border:1px solid var(--line);border-radius:12px;margin-top:8px;min-width:0}
.slip-debug summary{cursor:pointer;font-weight:650;padding:10px 12px;overflow-wrap:anywhere}
.slip-debug .debug-section{padding:0 12px 12px}
.slip-debug pre{max-height:26rem;max-width:100%;overflow:auto;margin:8px 0 0;padding:10px;border-radius:8px;background:#15263c;color:#e5edf7;font:12px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.debug-key{color:#a8d9ff}.debug-text{color:#bde7b3}.debug-number{color:#ffe099}.debug-literal{color:#e3bbf6}
.debug-validation{padding:0;list-style:none;margin:8px 0}
.debug-validation li{display:flex;align-items:flex-start;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.debug-validation small{display:block;overflow-wrap:anywhere}
.debug-result{border-radius:6px;padding:2px 5px;font:700 11px/1.4 ui-monospace,monospace}
.debug-result[data-result=PASS]{color:#065b3e;background:#dcf5e9}
.debug-result[data-result=FAIL]{color:#9d1638;background:#fde6eb}
.debug-result[data-result=UNKNOWN]{color:#744700;background:#fff0cd}

.amount-mismatch-status .tile{margin-inline:auto}
.amount-mismatch-totals{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 14px;
}
.amount-mismatch-totals>div{
  min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);
}
.amount-mismatch-totals dt{font-size:12px;color:var(--secondary);overflow-wrap:anywhere}
.amount-mismatch-totals dd{
  margin:4px 0 0;color:var(--text);font-size:20px;font-weight:750;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.amount-mismatch-totals .amount-mismatch-detected dd{color:var(--red)}
@media(max-width:580px){
  .amount-mismatch-totals{grid-template-columns:1fr}
  .amount-mismatch-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .amount-mismatch-totals dd{margin:0;text-align:end}
}

@media(min-width:761px) and (max-width:1000px){
  body:has(.amount-mismatch-status) .member-masthead .member-header-inner{gap:12px}
  body:has(.amount-mismatch-status) .member-nav a{padding-inline:8px}
}

.partial-summary{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.partial-totals{margin:0 0 12px}
.partial-summary .progress{margin-top:8px}
.partial-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:8px}
.partial-panel-history{display:grid;gap:8px;margin:12px 0;overflow-wrap:anywhere}
.partial-panel-history article{padding:10px 12px;border:1px solid var(--line);border-radius:10px}

.partial-totals>div{padding:8px 10px}
.partial-totals dd{font-size:16px}
