.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--brand-blue); box-shadow: 0 9px 20px rgb(7 95 216 / 20%); }
.btn-primary:hover { background: #0453c2; }
.btn-secondary { color: var(--brand-blue); background: #fff; border-color: #c8d7eb; }
.btn-orange { color: #fff; background: var(--brand-orange); box-shadow: 0 9px 20px rgb(252 97 0 / 18%); }
.btn-danger { color: var(--danger); background: var(--danger-soft); border-color: #efc6ca; }
.btn:disabled { color: var(--ink-400); background: #e8ecf2; border-color: #e0e4eb; box-shadow: none; cursor: not-allowed; transform: none; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; flex: 0 0 auto; place-items: center; padding: 0; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.icon-btn:hover { color: var(--brand-blue); border-color: #bad0ee; }
.icon-btn .ui-icon, .btn .ui-icon, [data-icon] .ui-icon { width: 18px; height: 18px; }
.card { padding: clamp(18px, 2vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.card-blue { color: #fff; background: radial-gradient(circle at 100% 0, rgb(255 255 255 / 17%), transparent 34%), linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); border: 0; }
.card-orange { color: #fff; background: linear-gradient(135deg, #ff7a25, var(--brand-orange-dark)); border: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-head h3 { margin: 4px 0 0; font-size: 1rem; letter-spacing: -.025em; }
.card-head p { margin: 0; color: var(--ink-600); font-size: .75rem; }
.card-blue .card-head p, .card-orange .card-head p { color: rgb(255 255 255 / 70%); }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 9px; color: var(--brand-blue-dark); font-size: .68rem; font-weight: 800; line-height: 1.25; text-align: center; overflow-wrap: anywhere; background: var(--brand-blue-soft); border-radius: 999px; white-space: normal; }
.badge::before { width: 6px; height: 6px; background: currentColor; border-radius: 50%; content: ""; }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.purple { color: var(--purple); background: var(--purple-soft); }
.badge.neutral { color: var(--ink-600); background: #edf0f4; }
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; color: var(--brand-blue-dark); background: var(--brand-blue-soft); border: 1px solid #c6d9f4; border-radius: 13px; }
.notice.warning { color: #754805; background: var(--warning-soft); border-color: #ebd09b; }
.notice.danger { color: #852530; background: var(--danger-soft); border-color: #edc3c8; }
.notice.success { color: #0c6541; background: var(--success-soft); border-color: #b9decf; }
.notice svg { width: 19px; height: 19px; flex: 0 0 auto; }
.notice strong { display: block; margin-bottom: 3px; font-size: .76rem; }
.notice p { margin: 0; font-size: .73rem; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { min-width: 0; padding: 16px; background: #f6f8fb; border-radius: 13px; }
.card-blue .metric, .card-orange .metric { background: rgb(255 255 255 / 11%); }
.metric span { display: block; margin-bottom: 7px; overflow: visible; color: var(--ink-600); font-size: .68rem; line-height: 1.35; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.card-blue .metric span, .card-orange .metric span { color: rgb(255 255 255 / 68%); }
.metric strong { display: block; overflow: visible; font-size: clamp(.88rem, 1.6vw, 1.08rem); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.data-list { display: grid; }
.data-row { display: flex; align-items: center; gap: 13px; min-height: 64px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.row-icon { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 12px; }
.row-icon .ui-icon { width: 21px; height: 21px; }
.row-icon.orange { color: var(--brand-orange); background: var(--brand-orange-soft); }
.row-icon.success { color: var(--success); background: var(--success-soft); }
.row-copy { flex: 1; min-width: 0; }
.row-copy strong { display: block; overflow: visible; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.row-copy span { display: block; margin-top: 4px; overflow: visible; color: var(--ink-600); font-size: .7rem; line-height: 1.45; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.row-value { flex: 0 0 auto; text-align: right; }
.row-value strong { display: block; font-size: .78rem; }
.row-value span { color: var(--ink-600); font-size: .66rem; }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 14px; }
.field label { font-size: .72rem; font-weight: 700; }
.control { min-height: 47px; display: flex; align-items: center; gap: 10px; padding-inline: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.control > .ui-icon { width: 18px; height: 18px; color: var(--ink-400); }
.control input, .control select, .control textarea { width: 100%; color: inherit; background: transparent; border: 0; outline: 0; font-size: .8rem; }
.control textarea { min-height: 96px; padding-block: 13px; resize: vertical; }
.helper { color: var(--ink-600); font-size: .67rem; line-height: 1.5; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { min-height: 34px; flex: 0 0 auto; padding: 7px 12px; color: var(--ink-600); font-size: .7rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip.active { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: min(360px, calc(100% - 44px)); padding: 13px 16px; color: #fff; background: #12213d; border-radius: 12px; box-shadow: var(--shadow-md); font-size: .76rem; opacity: 0; pointer-events: none; transform: translateY(8px); transition: 180ms ease; }
.toast.show { opacity: 1; transform: none; }
.empty { min-height: 360px; display: grid; place-items: center; padding: 40px; text-align: center; }
.empty-icon { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 18px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 24px; }
.empty-icon .ui-icon { width: 34px; height: 34px; }
.empty h2 { margin-bottom: 9px; font-size: 1.25rem; }
.empty p { max-width: 440px; margin: 0 auto 18px; color: var(--ink-600); font-size: .8rem; line-height: 1.6; }
.ripple-host { position: relative; overflow: hidden; isolation: isolate; }
.click-ripple { position: absolute; z-index: 5; width: 12px; height: 12px; margin: -6px 0 0 -6px; pointer-events: none; background: currentColor; border-radius: 50%; opacity: .18; transform: scale(0); animation: click-ripple 520ms ease-out forwards; }
@keyframes click-ripple { to { opacity: 0; transform: scale(24); } }
#prototype-view > * { animation: view-enter 320ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.btn:active, .icon-btn:active, .quick-action:active, .category-card:active, .task-card:active, .role-card:active { transform: translateY(1px) scale(.985); }
.modal-open { overflow: hidden; }
.modal-root { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; transition: visibility 0s linear 220ms, opacity 220ms ease; }
.modal-root.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(2 14 36 / 68%); backdrop-filter: blur(7px); }
.modal-panel { position: relative; width: min(620px, 100%); max-height: min(760px, calc(100svh - 44px)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgb(255 255 255 / 30%); border-radius: 24px; box-shadow: 0 28px 90px rgb(0 16 45 / 34%); outline: none; transform: translateY(18px) scale(.975); transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
.modal-root.open .modal-panel { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 7px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.045em; }
.modal-body { padding: 22px 24px; overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px 20px; background: #fafbfd; border-top: 1px solid var(--line); }
.modal-filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modal-filter-grid fieldset { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.modal-filter-grid legend { padding-inline: 5px; font-size: .72rem; font-weight: 800; }
.modal-filter-grid label { display: flex; align-items: center; gap: 8px; color: var(--ink-600); font-size: .7rem; cursor: pointer; }
.modal-filter-grid input { accent-color: var(--brand-blue); }
.document-preview { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 20px; align-items: center; }
.document-sheet { aspect-ratio: 3/4; display: flex; flex-direction: column; padding: 22px; color: #fff; background: linear-gradient(145deg, #075fd8, #062b69); border-radius: 16px; box-shadow: 0 18px 35px rgb(7 45 105 / 22%); }
.document-sheet span { color: #8dc0ff; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.document-sheet strong { margin-top: auto; font-size: 1rem; line-height: 1.35; }
.document-sheet small { margin-top: 8px; color: #bbd5f7; font-size: .62rem; }
.document-sheet div { height: 5px; margin-top: 8px; background: rgb(255 255 255 / 24%); border-radius: 999px; }
.document-sheet div:nth-last-child(2) { width: 75%; }
.document-sheet div:last-child { width: 52%; }
.modal-dropzone { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; text-align: center; background: #f8fbff; border: 1.5px dashed #aec8ec; border-radius: 17px; cursor: pointer; transition: 180ms ease; }
.modal-dropzone:hover { background: #f0f6ff; border-color: var(--brand-blue); }
.modal-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.modal-dropzone strong { font-size: .82rem; }
.modal-dropzone small { color: var(--ink-600); font-size: .67rem; }
.upload-file-state { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px; color: var(--ink-600); background: #f5f7fa; border-radius: 12px; }
.upload-file-state > .ui-icon { width: 20px; height: 20px; }
.upload-file-state strong, .upload-file-state small { display: block; }
.upload-file-state strong { color: var(--ink-950); font-size: .73rem; }
.upload-file-state small { margin-top: 3px; font-size: .64rem; }
.upload-file-state.ready { color: var(--success); background: var(--success-soft); }
.camera-preview { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 9px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 35%, #254d80, #061a36 72%); border-radius: 17px; }
.camera-preview > .ui-icon { width: 42px; height: 42px; }
.camera-preview strong { font-size: .88rem; }
.camera-preview small { color: #9db5d3; font-size: .67rem; }
.modal-meta-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.modal-meta-row span { color: var(--ink-600); }
.modal-amount { display: grid; gap: 7px; margin-bottom: 16px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); border-radius: 16px; }
.modal-amount span, .modal-amount small { color: #b9d2f3; font-size: .68rem; }
.modal-amount strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2rem; letter-spacing: -.05em; }
.modal-confirmation { display: flex; align-items: center; gap: 14px; padding: 18px; background: #f7f9fc; border-radius: 15px; }
.modal-confirmation strong { display: block; font-size: .82rem; }
.modal-confirmation p { margin: 5px 0 0; color: var(--ink-600); font-size: .7rem; line-height: 1.55; }
.biometric-scan { position: relative; min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; text-align: center; background: linear-gradient(145deg, #f2f7ff, #fff); border: 1px solid #d2e1f6; border-radius: 18px; }
.biometric-scan > .ui-icon { width: 58px; height: 58px; color: var(--brand-blue); }
.biometric-scan i { position: absolute; top: 12%; width: 80%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-blue), transparent); box-shadow: 0 0 18px var(--brand-blue); animation: biometric-scan 2.2s ease-in-out infinite; }
.biometric-scan strong { font-size: .86rem; }
.biometric-scan small { color: var(--ink-600); font-size: .67rem; }
@keyframes biometric-scan { 0%,100% { top: 12%; opacity: .25; } 50% { top: 82%; opacity: 1; } }
.bubble-new { animation: bubble-in 260ms ease both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-menu-grid { display: grid; gap: 9px; }
.modal-menu-grid .btn { justify-content: space-between; width: 100%; }
.modal-menu-grid .ui-icon { width: 17px; height: 17px; }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; } .card { padding: 17px; } .modal-root { align-items: end; padding: 0; } .modal-panel { width: 100%; max-height: 92svh; border-radius: 24px 24px 0 0; transform: translateY(40px); } .modal-head { padding: 20px 18px 15px; } .modal-body { padding: 18px; } .modal-actions { padding: 14px 18px max(18px, env(safe-area-inset-bottom)); } .modal-filter-grid, .document-preview { grid-template-columns: 1fr; } .document-sheet { max-width: 210px; width: 100%; margin-inline: auto; } }
