:root {
  --ink: #202c3c;
  --muted: #586b7f;
  --brand: #202e45;
  --brand-soft: #e3ebf2;
  --paper: #dce7ee;
  --line: rgba(57, 79, 101, .10);
  --glass: rgba(249, 253, 255, .58);
  --white-line: rgba(255, 255, 255, .82);
  --amber: #826020;
  --amber-bg: #f7efdd;
  --red: #a34d49;
  --red-bg: #faeae8;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.15px;
  background: radial-gradient(ellipse at 7% 0%, #f4f8fa 0%, transparent 47%),
              radial-gradient(ellipse at 100% 95%, #cedde7 0%, transparent 58%), #dde8ef;
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, select, textarea { transition: background-color .18s, border-color .18s, box-shadow .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #6585ab;
  outline-offset: 3px;
}
button[hidden], [hidden] { display: none !important; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; letter-spacing: -1.1px; font-weight: 450; line-height: 1.3; }
h2 { font-size: 20px; letter-spacing: -.6px; font-weight: 450; }
h3 { font-size: 15px; font-weight: 500; }
strong { font-weight: 550; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.boot { min-height: 100svh; display: flex; justify-content: center; align-items: center; flex-direction: column; font-weight: 500; letter-spacing: 2px; }
.boot span { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; }

/* One quiet, translucent workspace, inspired by native desktop surfaces. */
.shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  position: relative;
  max-width: 1460px;
  min-height: calc(100svh - 100px);
  margin: 18px 28px 28px;
  border: 1px solid var(--white-line);
  border-radius: 30px;
  background: rgba(225, 236, 244, .72);
  box-shadow: 0 24px 65px rgba(67, 91, 117, .12), 0 2px 8px rgba(67, 91, 117, .04), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: clip;
}
.sidebar { padding: 28px 14px 20px; display: flex; flex-direction: column; background: rgba(245, 251, 255, .50); border-right: 1px solid rgba(255, 255, 255, .65); z-index: 20; min-width: 0; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 10px 35px; }
.brand-name { font-size: 13px; font-weight: 600; letter-spacing: 1.45px; }
.brand-mark { width: 34px; height: 34px; flex: none; background: var(--brand); color: #fff; border: 1px solid rgba(255, 255, 255, .8); border-radius: 11px; display: grid; place-items: center; font-family: Georgia, serif; letter-spacing: -3px; padding-right: 2px; font-size: 23px; font-weight: 400; box-shadow: 0 3px 9px rgba(27, 44, 68, .12); }
.nav-label { font-size: 10px; letter-spacing: 1px; color: #586b7f; margin: 15px 16px 9px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: transparent; padding: 10px; color: #536a80; border-radius: 13px; text-align: left; margin: 4px 0; font-weight: 400; min-height: 49px; }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; flex: none; }
.nav-button.active { color: var(--ink); background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .8); box-shadow: 0 3px 10px rgba(60, 84, 110, .035); font-weight: 500; }
.nav-button.active .nav-icon { color: #fff; background: var(--brand); }
.nav-button.active .icon { width: 17px; height: 17px; }
.nav-button:hover { background: rgba(255, 255, 255, .48); }
.sidebar-bottom { margin-top: auto; padding: 60px 15px 0; color: #586b7f; font-size: 11px; line-height: 1.85; }
.sidebar-version { display: block; color: #586b7f; font-size: 10px; }
.sidebar-bottom .dot { margin-right: 4px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { min-height: 83px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .38); }
.breadcrumb { color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb-separator { padding: 0 12px; color: #9babb8; }
#crumb { color: #425569; }
.profile { display: flex; align-items: center; gap: 10px; }
.profile .badge { background: rgba(246, 251, 255, .6); font-size: 10px; }
.profile .name { font-size: 12px; font-weight: 400; }
.avatar { width: 33px; height: 33px; background: rgba(255, 255, 255, .52); border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; display: grid; place-items: center; color: #52667e; font-weight: 400; font-size: 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 7px; min-width: 32px; min-height: 32px; }
.text-button:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.mobile-menu, .nav-close { display: none; }
.content { max-width: 1250px; margin: auto; padding: 38px 36px 28px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; color: #586b7f; margin-bottom: 9px; font-weight: 450; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 9px; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 11px; padding: 10px 15px; background: rgba(249, 253, 255, .66); box-shadow: 0 2px 6px rgba(60, 84, 110, .04); color: #3d5268; font-size: 13px; font-weight: 400; white-space: nowrap; min-height: 42px; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover { background: #f7fbff; box-shadow: 0 3px 10px rgba(60, 84, 110, .07); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #344963; }
.btn.danger { color: var(--red); border-color: #e5c9c6; }
.btn.small { padding: 6px 11px; font-size: 12px; min-height: 33px; }

/* Search and date controls stay visible while only the matching rows change. */
.panel { border: 1px solid var(--white-line); border-radius: var(--radius); background: var(--glass); box-shadow: 0 8px 24px rgba(63, 86, 111, .045), inset 0 1px 0 rgba(255, 255, 255, .7); overflow: hidden; }
.panel-title { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filters { padding: 21px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: rgba(238, 246, 251, .3); }
input, select, textarea { background: rgba(253, 254, 255, .7); border: 1px solid rgba(255, 255, 255, .9); border-radius: 10px; padding: 10px 12px; color: var(--ink); min-width: 0; box-shadow: inset 0 1px 2px rgba(56, 80, 104, .03); }
input::placeholder, textarea::placeholder { color: #586b7f; font-weight: 400; }
input[type=checkbox] { accent-color: #3e5b7c; width: 16px; height: 16px; padding: 0; flex: none; box-shadow: none; }
input[type=date] { max-width: 146px; font-size: 12px; font-variant-numeric: tabular-nums; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.search { position: relative; min-width: 190px; flex: 1; }
.search input { width: 100%; padding: 12px 39px; min-height: 45px; font-size: 13px; border-radius: 12px; background: rgba(255, 255, 255, .68); }
.search > .icon { position: absolute; left: 14px; top: 14px; color: #7b8c9d; width: 17px; height: 17px; pointer-events: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 7px; top: 7px; min-width: 30px; min-height: 30px; padding: 6px; }
.search-clear .icon { position: static; width: 15px; height: 15px; }
.date-range { display: flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .38); border: 1px solid rgba(255, 255, 255, .82); border-radius: 12px; padding: 2px 5px; min-height: 45px; }
.date-range input { border: 0; box-shadow: none; background: transparent; padding: 9px 5px; max-width: 135px; }
.date-range > .muted { font-size: 11px; color: #8d9ca9; }
.refresh-button { min-width: 36px; min-height: 40px; padding: 8px; }
.refresh-button .icon { width: 18px; height: 18px; }
.refresh-button.is-refreshing { cursor: progress; opacity: .75; }
.refresh-button.is-refreshing .icon { animation: spin .85s linear infinite; transform-origin: center; }
@media(prefers-reduced-motion:reduce) { .refresh-button.is-refreshing .icon { animation: none; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { font-weight: 400; color: #586b7f; font-size: 11px; text-align: left; padding: 16px 25px; letter-spacing: .05px; border-bottom: 1px solid var(--line); background: rgba(242, 248, 253, .24); }
td { padding: 20px 25px; border-bottom: 1px solid rgba(70, 94, 118, .075); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .28); }
.deposit-table { table-layout: fixed; white-space: normal; }
.deposit-table th:first-child { width: 34%; }
.deposit-table th:last-child { width: 27%; }
.deposit-table td { padding-top: 23px; padding-bottom: 23px; }
.deposit-payer { font-weight: 400; overflow-wrap: anywhere; color: #293e54; }
.deposit-date { color: #586b7f; font-size: 12px; }
.deposit-date time { display: flex; gap: 13px; flex-wrap: wrap; }
.amount { text-align: right; font-weight: 500; letter-spacing: .1px; color: #293d54; }
.deposit-table .amount { white-space: nowrap; font-size: 15px; }
.currency { font-weight: 400; font-size: 11px; color: #586b7f; margin-left: 5px; }
.right { text-align: right; }
.table-footer { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination { display: flex; gap: 7px; align-items: center; }
.list-status { display: flex; align-items: center; gap: 7px; margin: 15px 4px 0; color: #586b7f; font-size: 11px; }
.dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #899fb0; display: inline-block; }
.dot.live { background: #719b95; }
.deposit-panel [aria-busy=true] { opacity: .6; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 400; background: rgba(221, 232, 242, .68); color: #5c738b; }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.active { background: #e0eee9; color: #4d776a; }
.badge.suspended, .badge.rejected, .badge.failed { background: var(--red-bg); color: var(--red); }
.empty { padding: 72px 25px; text-align: center; color: var(--muted); }
.empty-icon { width: 45px; height: 45px; border: 1px solid var(--white-line); background: rgba(255, 255, 255, .25); border-radius: 15px; display: grid; place-items: center; margin: 0 auto 15px; color: #6d859d; }
.empty h3 { color: #40566c; font-weight: 400; margin-bottom: 7px; }
.empty p { font-size: 12px; }
.notice { display: flex; gap: 10px; padding: 15px 17px; background: rgba(238, 246, 251, .6); border: 1px solid rgba(255, 255, 255, .8); border-radius: 13px; font-size: 12px; color: #61778d; margin-top: 18px; align-items: flex-start; }
.notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.notice.amber { background: rgba(249, 243, 229, .8); border-color: #e9ddc3; color: #82662e; }
.preview-bar { position: relative; z-index: 25; max-width: 1460px; margin: 0 28px; min-height: 48px; color: #586b7f; padding: 12px 5px 0; font-size: 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.preview-label { display: flex; align-items: center; gap: 9px; }
.preview-label::before { content: ''; width: 5px; height: 5px; background: #7e94a9; border-radius: 50%; flex: none; }
.preview-bar label { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 10px; }
.preview-bar select { font-size: 11px; padding: 5px 25px 5px 9px; color: #50677f; background: rgba(255, 255, 255, .42); border-color: rgba(255, 255, 255, .7); border-radius: 8px; }

/* Administration uses the same type, spacing and surface language. */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-body { padding: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 450; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .help { color: var(--muted); font-size: 11px; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.toggle-line:last-child { border: 0; }
.toggle-line input { width: 18px; height: 18px; }
.check-label { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 0; }
.check-label small { margin-left: auto; color: #8192a2; }
.permission-group { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.permission-group h3 { font-size: 12px; color: #71879c; margin-bottom: 6px; font-weight: 400; }
.preset { display: flex; gap: 6px; flex-wrap: wrap; margin: 15px 0 22px; }
.user-email { font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 400; letter-spacing: .1px; }
.profile .user-email { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(39, 58, 79, .16); display: flex; justify-content: flex-end; z-index: 50; padding: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.drawer { width: min(510px, 100%); height: 100%; overflow-y: auto; background: #edf4f9; border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; box-shadow: -10px 10px 50px rgba(39, 58, 79, .14); display: flex; flex-direction: column; }
.drawer-header { padding: 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: rgba(237, 244, 249, .96); z-index: 1; }
.drawer-body { padding: 27px; flex: 1; }
.drawer-footer { padding: 19px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: rgba(248, 252, 255, .9); position: sticky; bottom: 0; }
.detail-rows { margin: 25px 0; }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-row span:first-child { color: var(--muted); }
.detail-row span:last-child { text-align: right; }
.close-button { border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .5); border-radius: 50%; width: 31px; height: 31px; display: grid; place-items: center; color: #708397; }
.close-button .icon { width: 17px; height: 17px; }
.drawer .notice { margin-bottom: 20px; }
.key-box { overflow-wrap: anywhere; background: rgba(255, 255, 255, .6); border: 1px solid var(--white-line); padding: 15px; border-radius: 12px; user-select: all; font-size: 12px; margin-top: 12px; }
.raw-preview { white-space: pre-wrap; font-size: 12px; line-height: 1.8; background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 18px; margin: 15px 0; overflow-wrap: anywhere; }

#app:has(>.login) { display: flow-root; }
.login { min-height: calc(100svh - 48px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; margin: 24px; border: 1px solid var(--white-line); border-radius: 30px; background: rgba(249, 253, 255, .55); box-shadow: 0 22px 60px rgba(67, 91, 117, .08); }
.login-card { width: 100%; max-width: 440px; text-align: center; }
.login-card .brand { padding: 0; margin-bottom: 52px; justify-content: center; }
.login-card .eyebrow { margin-bottom: 18px; }
.login-card h1 { font-size: clamp(32px,3.2vw,44px); line-height: 1.38; margin-bottom: 17px; font-weight: 300; letter-spacing: -1.4px; }
.login-card p { color: var(--muted); line-height: 1.9; margin-bottom: 28px; font-size: 13px; }
.portal-greeting { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.google-button { width: 100%; max-width: 355px; margin: 0 auto; background: rgba(255, 255, 255, .7); border: 1px solid var(--white-line); border-radius: 13px; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #3e526b; font-weight: 400; }
.google-letter { font-family: Arial, sans-serif; color: #4285f4; font-size: 20px; font-weight: 500; }
.login-note { font-size: 11px; line-height: 1.9; margin-top: 18px; color: var(--muted); }
.login-card .notice { text-align: left; }
.pending-screen { min-height: 85svh; display: flex; align-items: center; justify-content: center; padding: 25px; }
.pending-box { max-width: 450px; background: var(--glass); border: 1px solid var(--white-line); border-radius: 27px; box-shadow: 0 18px 50px rgba(67, 91, 117, .08); padding: 44px; text-align: center; }
.pending-box h1 { font-size: 26px; margin: 22px 0 14px; font-weight: 400; }
.pending-box p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
#toast { position: fixed; bottom: 27px; left: 50%; transform: translateX(-50%) translateY(140px); background: rgba(35, 51, 73, .95); color: #fff; border: 1px solid rgba(255, 255, 255, .3); padding: 13px 22px; border-radius: 14px; box-shadow: 0 8px 30px rgba(33, 51, 74, .18); z-index: 100; max-width: 90%; font-size: 13px; transition: transform .2s; pointer-events: none; }
#toast.visible { transform: translateX(-50%) translateY(0); }
#toast.error { background: #934f4b; }
.loading { padding: 55px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner { display: inline-block; width: 15px; height: 15px; border: 1.5px solid #b6c7d5; border-top-color: #506d8e; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 8px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(32, 51, 73, .18); border: 0; z-index: 19; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1516px) { .shell { margin-left: auto; margin-right: auto; } .preview-bar { margin-left: auto; margin-right: auto; padding-left: 5px; padding-right: 5px; } }
@media (max-width: 1180px) { .form-grid { grid-template-columns: 1fr; } .profile .user-email { display: none; } .topbar, .content { padding-left: 28px; padding-right: 28px; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .shell { grid-template-columns: 84px minmax(0, 1fr); margin-left: 18px; margin-right: 18px; border-radius: 26px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { justify-content: center; padding: 0 0 29px; }
  .brand-name, .nav-label, .nav-text, .sidebar-caption, .sidebar-version { display: none; }
  .nav-button { justify-content: center; min-height: 51px; margin: 9px 0; padding: 8px; }
  .nav-icon { width: 31px; height: 31px; }
  .sidebar nav + nav { margin-top: 22px; }
  .sidebar-bottom { padding: 40px 0 0; text-align: center; }
  .preview-bar { margin-left: 20px; margin-right: 20px; }
  .topbar { min-height: 74px; }
  .profile .badge { display: none; }
  .content { padding-top: 32px; }
  .deposit-filters { gap: 10px; padding: 19px; }
  .deposit-filters .search { flex-basis: 100%; }
  .deposit-filters .date-range { flex: 1; justify-content: center; }
}
@media (max-width: 760px) {
  body { min-width: 320px; }
  .shell { display: block; min-height: calc(100svh - 88px); margin: 12px 10px 16px; border-radius: 24px; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sidebar { position: fixed; inset: 12px auto 12px 12px; width: 250px; border: 1px solid var(--white-line); border-radius: 24px; background: rgba(237, 246, 252, .96); box-shadow: 10px 5px 45px rgba(38, 59, 83, .15); transform: translateX(calc(-100% - 24px)); visibility: hidden; transition: transform .2s, visibility .2s; overflow-y: auto; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar { z-index: 40; }
  .nav-backdrop { z-index: 39; }
  .nav-close { display: inline-flex; position: absolute; top: 25px; right: 15px; min-width: 36px; min-height: 36px; }
  .workspace { width: 100%; }
  .topbar { padding: 0 16px; min-height: 68px; border-radius: 24px 24px 0 0; }
  .mobile-menu { display: inline-flex; margin-left: -5px; min-height: 40px; min-width: 40px; }
  .breadcrumb { display: none; }
  .profile { gap: 9px; }
  .profile .name { font-size: 12px; }
  .profile .badge { display: none; }
  .profile .avatar { width: 30px; height: 30px; }
  .profile .user-email { display: none; }
  .content { padding: 29px 15px 23px; }
  h1 { font-size: 28px; font-weight: 400; }
  .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 25px; }
  .page-heading p { font-size: 11px; max-width: 190px; line-height: 1.7; margin-top: 8px; }
  .page-heading .actions { justify-content: flex-end; }
  .page-heading .btn { padding: 8px 10px; font-size: 11px; min-height: 36px; }
  .page-heading .btn .icon { width: 14px; height: 14px; }
  .deposit-panel { border-radius: 18px; }
  .deposit-filters { padding: 13px; gap: 9px; }
  .deposit-filters .search { min-width: 0; flex-basis: 100%; }
  .search input { font-size: 13px; min-height: 44px; padding-left: 35px; }
  .search > .icon { left: 12px; }
  .date-range { gap: 3px; flex: 1; min-width: 0; padding: 1px 3px; min-height: 40px; justify-content: center; }
  .date-range input { width: calc(50% - 9px); max-width: 150px; min-height: 35px; font-size: 11px; padding: 7px 3px; }
  .refresh-button { min-width: 32px; padding: 6px; }
  .deposit-table th, .deposit-table td { padding-left: 12px; padding-right: 12px; }
  .deposit-table th { padding-top: 15px; padding-bottom: 15px; font-size: 10px; }
  .deposit-table td { padding-top: 21px; padding-bottom: 21px; }
  .deposit-table th:first-child { width: 32%; }
  .deposit-table th:last-child { width: 32%; }
  .deposit-date time { flex-direction: column; gap: 3px; }
  .deposit-date { font-size: 10px; }
  .deposit-table .deposit-payer { font-size: 12px; }
  .deposit-table .amount { font-size: 13px; }
  .currency { font-size: 10px; margin-left: 3px; }
  .list-status { font-size: 10px; margin-top: 14px; }
  .table-footer { padding: 14px; font-size: 11px; }
  td, th { padding: 15px; }
  .panel-title { padding: 20px; }
  .form-body { padding: 20px; }
  .hide-mobile { display: none; }
  .preview-bar { min-height: 48px; margin: 0 16px; padding-top: 8px; font-size: 10px; gap: 10px; }
  .preview-detail { display: none; }
  .preview-bar label { gap: 5px; font-size: 9px; }
  .preview-bar select { padding: 5px 6px; font-size: 10px; max-width: 120px; }
  .modal-backdrop { padding: 8px; }
  .drawer { border-radius: 20px; }
  .drawer-body, .drawer-header { padding: 22px; }
  .drawer-footer { padding: 17px 20px; }
  .notice { font-size: 11px; }
  .login { min-height: calc(100svh - 24px); margin: 12px; padding: 40px 24px; border-radius: 24px; }
  .login-card h1 { font-size: 30px; }
  .login-card .brand { margin-bottom: 40px; }
  .pending-box { padding: 35px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-transparency: reduce) { .shell, .panel, .sidebar, .drawer, .topbar { background-color: #eaf2f8; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.brand-home { text-decoration: none; border-radius: 12px; }
.brand-home:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
.home-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 25px 2px 40px; }
.home-hero .eyebrow { margin-bottom: 28px; }
.home-greeting { color: var(--muted); font-size: 16px; margin: 0 0 12px; }
.home-hero h1 { font-size: clamp(35px,4vw,54px); line-height: 1.24; font-weight: 300; letter-spacing: -2px; margin: 0; }
.home-hero-copy { flex: 1; min-width: 0; }
.home-hero .portal-greeting-sub { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 18px 0 0; }
.home-date { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.home-emblem { width: 245px; height: 220px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffffffb3; border-radius: 48px; background: linear-gradient(145deg,#ffffff65,#ffffff15); box-shadow: inset 0 1px 0 #fff8,0 20px 45px #48637b0c; transform: rotate(-4deg); }
.home-emblem>span { font: 300 106px Georgia,serif; letter-spacing: -10px; color: #30465b; margin-left: -8px; }
.home-emblem>div { font-size: 8px; letter-spacing: 2px; color: var(--muted); margin-top: 16px; }
.home-section { margin: 12px 0 32px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.home-section-heading h2 { font-size: 15px; font-weight: 500; margin: 0; }
.home-section-heading>span { color: var(--muted); font-size: 12px; }
.home-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-management-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-tile { display: flex; align-items: center; gap: 18px; padding: 25px; text-decoration: none; border: 1px solid var(--white-line); border-radius: 22px; background: var(--glass); color: var(--ink); box-shadow: 0 6px 18px #3f566f06; transition: background .15s,transform .15s; }
.home-tile:hover { background: #ffffffbd; transform: translateY(-2px); }
.home-tile-icon { width: 46px; height: 46px; border: 1px solid #ffffffcc; border-radius: 15px; background: #ffffff70; display: grid; place-items: center; flex: none; color: #425c72; }
.home-tile-icon .icon { width: 23px; height: 23px; }
.home-tile-copy { min-width: 0; }
.home-tile-copy strong { font-size: 16px; font-weight: 500; display: block; }
.home-tile-copy>span { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 5px; }
.home-tile-arrow { margin-left: auto; color: var(--muted); }
.home-tile-arrow .icon { width: 16px; height: 16px; }
.home-management-grid .home-tile { padding: 20px; }
.home-management-grid .home-tile-copy strong { font-size: 14px; }
.home-no-access { padding: 28px; grid-column: 1/-1; color: var(--muted); }
.visibility-panel { margin-bottom: 20px; }
.visibility-entry { display: grid; grid-template-columns: minmax(150px,1fr) 190px auto; align-items: end; gap: 16px; }
.visibility-entry .field { margin: 0; }
.visibility-entry button { min-height: 43px; }
.visibility-rules { padding: 5px 26px; }
.visibility-rule { padding: 19px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.visibility-rule:last-child { border-bottom: 0; }
.visibility-rule strong { font-weight: 500; }
.visibility-rule span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media(max-width:900px) { .home-hero { padding-top: 15px; } .home-emblem { width: 190px; height: 190px; } .visibility-entry { grid-template-columns: 1fr 170px; } .visibility-entry button { grid-column: 1/-1; justify-self: start; } }
@media(max-width:760px) { .home-hero { padding: 12px 0 24px; } .home-hero .eyebrow { margin-bottom: 22px; } .home-emblem { display: none; } .home-work-grid,.home-management-grid { grid-template-columns: 1fr; } .home-section-heading>span { display: none; } .home-tile { padding: 21px; } .visibility-entry { grid-template-columns: 1fr; } .visibility-entry button { justify-self: stretch; } .visibility-rules { padding: 4px 20px; } }
