/* Reference-led graphite console, expressed in ZyronAuth violet. */
.z-console { --sidebar-width:248px; --bg-canvas:#0d0d10; --bg-sidebar:#111114; --bg-card:#161619; --bg-surface:#1c1c20; --bg-input:#101013; --border-subtle:#2b2a31; --border-light:#3c3945; --text-main:#f5f4f7; --text-muted:#b5b2bd; --text-dim:#aaa7b3; --primary:#9148ed; --primary-hover:#a05bf5; --accent-primary:#ac7cf2; --font-main:Inter,system-ui,sans-serif; background:var(--bg-canvas); }
.z-console *, .z-shell :is(.modal-card,.reseller-dialog) * { box-sizing:border-box; }
.z-console .sidebar { position:fixed; top:0; bottom:0; overflow-y:auto; width:var(--sidebar-width); background:radial-gradient(ellipse at 40% 110%,#6b36c928,transparent 65%),#111114; border-right:1px solid #25242b; padding:0 16px; }
.z-console .sidebar-brand { min-height:85px; padding:20px 4px; gap:12px; border-bottom:1px solid #27262c; }
.z-console .sidebar-logo { width:40px; height:40px; flex:0 0 40px; border-radius:10px; background:#1b1820; border:1px solid #332b3c; }
.z-console .sidebar-logo img { width:34px; height:34px; object-fit:contain; }
.z-console .brand-name { font-size:16px; letter-spacing:-.025em; }
.z-console .brand-badge { font-size:12px; color:#b3afbc; text-transform:none; letter-spacing:0; background:none; border:0; padding:3px 0 0; }
.z-console .sidebar-nav { padding:20px 0; display:flex; flex-direction:column; gap:4px; overflow:visible; }
.z-console .sidebar-section-title { color:#aaa7b3; font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; margin:2px 10px 10px; }
.z-console .nav-item { min-height:43px; padding:11px 12px; gap:12px; font-size:13px; font-weight:550; border:1px solid transparent; border-radius:8px; color:#aaa7b3; box-shadow:none; }
.z-console .nav-item svg { width:18px; height:18px; flex:none; color:currentColor; }
.z-console .nav-item:hover { background:#ffffff06; color:#f8f6fc; }
.z-console .nav-item.active { background:#ffffff09; color:#f5f4f7; border-color:#ffffff04; box-shadow:none; }
.z-console .nav-item.active::before { display:none; }
.z-console .nav-item.active svg { color:#b186f5; }
.z-console .sidebar-community-section { display:none; }
.z-console .sidebar-footer { padding:18px 0; border-color:#29262f; display:flex; align-items:center; gap:4px; }
.z-console .user-pill { min-width:0; padding:4px; flex:1; }
.z-console .user-avatar { background:#28252e; border:0; color:#e9e4f2; border-radius:9px; }
.z-console .user-details { min-width:0; }
.z-console .user-name { font-size:13px; }
.z-console .user-role { font-size:11px; }
.z-console .badge-plan-pill { font-size:10px; border-radius:5px; }
.z-console .main-content { margin-left:var(--sidebar-width); width:calc(100% - var(--sidebar-width)); background-color:transparent; background-image:radial-gradient(#c1b1dd15 .7px,transparent .7px),radial-gradient(ellipse 90% 300px at 58% 0,#4e2d793b,transparent); background-size:24px 24px,auto; position:relative; z-index:1; }
.z-console .top-nav { position:sticky; top:0; z-index:45; height:76px; min-height:76px; padding:16px 34px; border-bottom:1px solid rgba(255,255,255,0.06); background:rgba(13,13,16,0.88); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); gap:16px; }
.z-console .top-nav-left,.z-console .top-nav-right { min-width:0; display:flex; align-items:center; gap:12px; }
.z-console .top-nav-left { flex:1; }
.z-console .top-nav-right { flex:none; }
.z-console .top-nav-left > .rc-owner-breadcrumb { display:none!important; }
.z-console .top-nav-right > :is(details,button) { display:none; }
.z-console .top-nav-right > .z-profile-menu { display:flex; }
.z-breadcrumb { font-size:13px; color:#e5e1eb; font-weight:550; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.z-profile-menu { display:flex; align-items:center; gap:9px; padding:7px 11px; min-height:40px; border:1px solid #2d2933; background:#161418; border-radius:10px; color:#eeebf3; font:inherit; cursor:pointer; }
.z-profile-menu > span { display:grid; place-items:center; background:#2b2632; width:27px; height:27px; border-radius:6px; font-size:12px; }
.z-profile-menu strong { max-width:130px; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.z-profile-menu svg { width:14px; height:14px; color:#b0a9bb; }
.z-console .language-select { min-width:64px; max-width:85px; min-height:40px; padding:8px 10px; border-radius:10px; background:#19161e; border-color:#39313f; }
.z-console .content-container { padding:27px 34px 48px; max-width:none; width:100%; }
.z-console .view-panel { animation:none; }
.z-console :is(h1,h2,h3,p) { overflow-wrap:anywhere; }
.z-console :is(.section-title,.z-page-heading h1,.z-app-heading h1) { font-size:27px; font-weight:680; letter-spacing:-.035em; line-height:1.22; color:#f5f3f8; margin:0; }
.z-console :is(.section-desc,.z-page-heading p,.z-panel-heading p,.z-muted) { font-size:13px; line-height:1.65; color:#aaa6b4; }
.z-page-heading,.z-console .section-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:27px; }
.z-page-heading p { margin:8px 0 0; }
.z-console .section-header .section-desc { margin-top:7px; }
.z-console :is(.panel-card,.kpi-card,.reseller-card,.rc-overview-card,.rc-wallet-card) { background:#151518; border:1px solid #2a282f; border-radius:15px; box-shadow:none; }
.z-console .panel-card { padding:27px; margin-bottom:24px; }
.z-console .panel-card::before { display:none; }
.z-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:23px; }
.z-panel-heading h2 { font-size:18px; font-weight:650; letter-spacing:-.025em; margin:0; }
.z-panel-heading p { margin:7px 0 0; }
.z-overview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:25px; }
.z-overview-metrics.z-three,#z-webhook-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.z-metric { position:relative; min-height:202px; padding:25px 22px; border:1px solid #2b2931; border-radius:15px; background:#161619; overflow:hidden; }
.z-metric > p { color:#b3afbb; font-size:12px; margin:0 0 15px; font-weight:600; }
.z-metric > strong { display:block; font-size:34px; line-height:1.2; letter-spacing:-.035em; font-weight:680; margin-bottom:8px; }
.z-metric .z-muted { font-size:12px; }
.z-metric .status-chip { margin-top:18px; }
.z-metric small { font-size:11px; color:#b2aabb; }
.z-three .z-metric { min-height:125px; padding:22px; }
.z-three .z-metric > strong { font-size:29px; }
.z-three .z-metric:last-child > strong { font-size:19px; color:#82c4a3; }
.z-progress { height:5px; border-radius:4px; background:#2b2830; margin:16px 0 8px; overflow:hidden; }
.z-progress span { display:block; height:100%; background:#9859ee; border-radius:4px; }
.z-progress.z-green span { background:#63ae89; }
.z-activity-total { display:flex; gap:12px; align-items:center; border-top:1px solid #2b2731; padding-top:15px; margin-top:15px; color:#b6b0c0; font-size:12px; }
.z-activity-total strong { color:#eee8f5; font-size:21px; }
.z-projects .z-panel-heading { margin-bottom:22px; }
.z-console .table-container { border:0; border-radius:0; overflow-x:auto; }
.z-console .data-table { width:100%; border-collapse:collapse; }
.z-console .data-table th { padding:16px 15px; text-transform:none; font-size:12px; letter-spacing:0; font-weight:500; color:#c0b8ce; background:#101012; border-bottom:1px solid #2a272e; white-space:nowrap; }
.z-console .data-table td { padding:18px 15px; font-size:13px; border-bottom:1px solid #28252d; color:#d8d2e0; vertical-align:middle; }
.z-console .data-table tbody tr:last-child td { border-bottom:0; }
.z-console .data-table tbody tr:hover { background:#ffffff02; }
.z-console .data-table td strong { color:#f3eff8; font-weight:620; }
.z-actions { text-align:right; white-space:nowrap; }
.z-actions .btn + .btn { margin-left:6px; }
.z-neutral-badge { display:inline-block; padding:5px 9px; border-radius:7px; background:#27242c; color:#d3ccde; font-size:12px; font-weight:550; }
.z-access-badge { display:inline-block; padding:4px 9px; border:1px solid #6b4b994f; background:#7b46b917; border-radius:14px; color:#c9a3fc; font-size:11px; font-weight:550; white-space:nowrap; }
.z-app-cell { display:flex; align-items:center; gap:12px; min-width:180px; }
.z-app-cell small { display:block; color:#aaa3b4; font-size:11px; margin-top:5px; }
.z-app-initial { display:grid; place-items:center; width:38px; height:38px; background:#242126; border:1px solid #302b35; border-radius:10px; color:#c7c0d2; font-weight:600; flex:none; }
.z-secret-cell { display:flex; align-items:center; gap:6px; }
.z-secret-cell code { border:1px solid #34303b; background:#1d1923; border-radius:7px; padding:8px; font-size:10px; min-width:110px; max-width:230px; overflow:hidden; text-overflow:ellipsis; }
.z-secret-cell .btn-icon { flex:none; }
.z-console .btn { min-height:37px; padding:9px 15px; border-radius:9px; font-size:12px; font-weight:600; line-height:1.3; box-shadow:none; transition:background-color .16s,border-color .16s,color .16s; }
.z-console .btn-primary { background:#9148e6; border:1px solid #9148e6; color:#fff; box-shadow:none; }
.z-console .btn-primary:hover { background:#a15bef; border-color:#a15bef; transform:none; }
.z-console .btn-secondary { background:#1b191f; border:1px solid #35303c; color:#e2dce9; }
.z-console .btn-secondary:hover { background:#29242f; border-color:#53405f; }
.z-console .btn-danger { background:#4d252d; border:1px solid #74333e; color:#ffd0d6; }
.z-console .btn-danger:hover { background:#68303a; }
.z-console .btn-sm { min-height:33px; padding:8px 12px; font-size:11px; }
.z-console .btn-icon { border:1px solid #302c35; border-radius:8px; background:#17141c; min-width:30px; min-height:30px; color:#b8adca; }
.z-console .status-chip { font-size:11px; font-weight:550; text-transform:none; padding:4px 10px; border-radius:15px; }
.z-console .status-chip.active { color:#85c1a3; background:#346f4e1f; border:1px solid #37684c70; }
.z-console .status-chip.banned { color:#ed9ca7; background:#72353c25; border:1px solid #85454e70; }
.z-console .form-control { background:#101013; border:1px solid #35303b; color:#f1edf6; border-radius:8px; min-height:39px; padding:10px 12px; font-size:13px; }
.z-console .form-control::placeholder { color:#aca3b7; }
.z-console .form-control:focus { border-color:#ae78ef; box-shadow:0 0 0 2px #a464e926; }
.z-console .filter-card { background:#151518; gap:12px; padding:23px; border-radius:14px; }
.z-console .search-input { min-width:180px; }
.z-app-context { margin-bottom:28px; }
.z-app-context[hidden] { display:none; }
.z-app-heading { display:flex; gap:12px; align-items:center; min-height:48px; margin:1px 0 22px; }
.z-app-heading h1 { font-size:25px; }
#z-app-switcher { margin-left:auto; max-width:255px; }
.z-console .app-switcher-label { display:none; }
.z-console .app-dropdown { width:100%; max-width:245px; font-size:12px; }
.z-app-tabs { display:flex; align-items:center; gap:9px; border-bottom:1px solid #29252f; padding-bottom:16px; }
.z-app-tab { color:#b9b0c6; font:inherit; font-size:12px; font-weight:550; padding:11px 12px; border:1px solid transparent; border-radius:8px; background:transparent; cursor:pointer; white-space:nowrap; }
.z-app-tab.active { background:#28222f; color:#f4ebff; border-color:#45344f; }
.z-app-tab:hover { color:#fff; background:#241d2d; }
.z-console #dash-app-content > .app-banner { display:none; }
.z-console .z-version-panel { min-height:180px; display:flex; align-items:center; padding:30px; }
.z-version-panel p { color:#b3aaba; font-size:13px; margin:0 0 16px; }
.z-version-panel p:last-child { margin:15px 0 0; }
.z-version-panel #kpi-app-version { font-size:35px; margin:0; }
.z-console .kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.z-console .kpi-grid > .kpi-card:last-child { display:none; }
.z-console .kpi-card { min-height:119px; padding:22px; }
.z-console .kpi-title { font-size:12px; text-transform:none; letter-spacing:0; color:#b5adbf; }
.z-console .kpi-icon { display:none; }
.z-console .kpi-value { margin:9px 0 0; font-size:29px; color:#eae3f3; }
.z-console .kpi-footer { font-size:11px; color:#aaa0b6; }
.z-console .distribution-card { padding:25px; }
.z-console .dist-segment.dist-active { background:#9b68e9; }
.z-console .distribution-bar { background:#27212e; height:8px; border-radius:5px; }
.z-console .distribution-legend { gap:18px; }
.z-console .panel-title { font-size:16px; letter-spacing:-.02em; }
.z-console .distribution-legend .dist-legend-item { font-size:11px; }
.z-console .code-block-wrapper { border-radius:10px; border:1px solid #302835; background:#0e0b13; }
.z-console #application-seller { padding:30px; }
.z-console #application-seller .seller-app-header { border-bottom:1px solid #302832; padding-bottom:24px; }
.z-console .seller-app-form { display:grid; gap:20px; margin-top:24px; }
.z-console .seller-app-example { margin-top:28px; }
.z-console #z-app-existing-actions { border-top:1px solid #302734; margin-top:26px; padding-top:23px; }
.z-console #z-app-existing-actions .app-banner-actions { display:flex; flex-wrap:wrap; gap:8px; }
.z-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.z-form-grid > label { display:flex; flex-direction:column; gap:10px; font-size:12px; font-weight:600; color:#d5cddd; }
.z-form-grid .z-full { grid-column:1/-1; }
.z-form-grid > label.z-check { flex-direction:row; align-items:center; padding:20px; border:1px solid #362c40; border-radius:10px; }
.z-check input { width:16px; height:16px; accent-color:#a05bec; }
.z-form-footer { display:flex; justify-content:flex-end; gap:10px; border-top:1px solid #302833; padding-top:22px; margin-top:24px; }
#z-settings-feedback { color:#c8a4f5; min-height:18px; font-size:13px; }
.z-template-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.z-template-list article { border:1px solid #342b3b; border-radius:12px; padding:22px; background:#141017; }
.z-template-list article h3 { font-size:16px; margin:0 0 18px; }
.z-template-list article > div { display:flex; justify-content:space-between; gap:20px; font-size:12px; border-top:1px solid #2b2331; padding:15px 0; }
.z-template-list article span { color:#b8adc6; }
.z-template-list article strong { color:#eee3fb; }
.z-empty { text-align:center; padding:64px 24px!important; color:#b6acbf; }
.z-empty h3 { font-size:18px; color:#f1e9fa; margin:16px 0 9px; }
.z-empty p { max-width:48ch; margin:0 auto 22px; color:#b8adc6; font-size:13px; line-height:1.7; }
.z-empty-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#29222f; margin:auto; }
.z-empty-icon svg { width:24px; height:24px; color:#b99bdc; }
.z-shell :is(.modal-card,.reseller-dialog) { background:#151318; border:1px solid #3b3144; border-radius:16px; color:#f4eefb; box-shadow:0 22px 70px #0008; --rc-bg:#151318; --rc-card:#19151e; --rc-border:#3c3048; --rc-input:#100d15; --rc-muted:#b8acc7; --rc-text:#f3ebff; --rc-blue:#9148ed; }
.z-shell .modal-overlay { background:#06050ac4; backdrop-filter:blur(6px); }
.z-shell .modal-header,.z-shell .rc-dialog-header { padding:25px 27px 20px; border-color:#322939; }
.z-shell .modal-title,.z-shell .rc-dialog-header h2 { font-size:20px; font-weight:650; letter-spacing:-.025em; }
.z-shell .modal-body,.z-shell .rc-dialog-body { padding:23px 27px; }
.z-shell .modal-footer,.z-shell .rc-dialog-footer { padding:19px 27px 24px; border-color:#322939; background:transparent; }
.z-shell :is(.modal-card,.reseller-dialog) .form-control { background:#100d15; border:1px solid #3d3049; border-radius:8px; color:#f4eafb; min-height:39px; font-size:13px; }
.z-shell :is(.modal-card,.reseller-dialog) .form-label { color:#cfc3dc; font-size:12px; }
.z-shell :is(.modal-card,.reseller-dialog) .btn-primary { background:#9148ed; color:#fff; border-color:#a369ed; box-shadow:none; }
.z-shell :is(.modal-card,.reseller-dialog) .btn-secondary { background:#211927; border-color:#4b3859; color:#eadcf6; }
.z-shell #modal-generate-keys .modal-card { max-width:620px; }
.z-shell .license-mask-editor { border:1px solid #3a2d44; border-radius:11px; padding:16px; background:#17121d; }
.z-shell #gen-duration-help { padding:17px; margin:0 0 20px; border:1px solid #34283f; border-radius:9px; font-size:12px; line-height:1.6; }
.z-console .reseller-console { --rc-bg:transparent; --rc-card:#151318; --rc-input:#100d15; --rc-border:#322939; --rc-muted:#b5a9c4; --rc-blue:#9148ed; }
.z-console :is(.rc-page-title,.rc-wallet-name) { letter-spacing:-.025em; }
.z-console .rc-table th { text-transform:none; letter-spacing:0; }
.z-console .pricing-grid { gap:22px; }
.z-console :is(.pricing-card,.plan-card) { border-radius:15px; background:#151318; border:1px solid #352a3e; box-shadow:none; }
.z-console .pricing-card.featured { border-color:#8455b4; }
.z-console :is(a,button,input,select,textarea,summary):focus-visible,.z-shell .modal-overlay :is(button,input,select):focus-visible { outline:2px solid #cda4ff; outline-offset:3px; }
.z-console ::selection { background:#7a3fb8; color:#fff; }
.z-skeleton { min-height:202px; background:linear-gradient(100deg,#17131c 35%,#211827 50%,#17131c 65%); background-size:240% 100%; animation:z-load 1.5s ease-in-out infinite; }
@keyframes z-load { to { background-position:-240% 0; } }
.z-console .sidebar.collapsed { width:76px; }
.z-console .sidebar.collapsed + .main-content { margin-left:76px; width:calc(100% - 76px); }
@media(min-width:1650px) { .z-console { --sidebar-width:280px; } .z-console .content-container { padding:32px 38px 48px; } .z-console .top-nav { padding-inline:38px; } .z-metric { min-height:220px; } }
@media(max-width:1150px) { .z-overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .z-console .content-container { padding:24px; } .z-app-tabs { gap:1px; } .z-app-tab { font-size:11px; padding-inline:8px; } .z-app-heading { flex-wrap:wrap; } #z-app-switcher { max-width:210px; } }
@media(max-width:860px) { .z-console { --sidebar-width:min(272px, 84vw); } .z-console .sidebar { position:fixed; top:0; bottom:0; left:0; width:min(272px, 84vw); transform:translateX(-100%); visibility:hidden; z-index:120; background:#100e17 !important; } .z-console .sidebar.open { transform:translateX(0); visibility:visible; } .z-console .main-content,.z-console .sidebar.collapsed + .main-content { margin-left:0; width:100%; } .z-console .top-nav { min-height:60px; height:60px; padding:10px 14px; } .z-console .sidebar-collapse-toggle { display:none; } .z-console .mobile-menu-toggle { display:inline-flex; } .z-console .content-container { padding:20px 14px 36px; } .z-page-heading,.z-console .section-header { align-items:flex-start; gap:14px; flex-wrap:wrap; } .z-console :is(.section-title,.z-page-heading h1) { font-size:22px; } .z-console .panel-card { padding:18px; } .z-app-tabs { overflow-x:auto; padding-bottom:10px; } .z-app-heading h1 { font-size:22px; } #z-app-switcher { flex-basis:100%; margin-left:0; max-width:100%; } .z-console .app-dropdown { max-width:100%; width:100%; } .z-console .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .z-console .kpi-card { padding:14px; } .z-console .kpi-title { font-size:11px; } .z-console .kpi-value { font-size:24px; } .z-console .kpi-footer { display:none; } .z-console .data-table { min-width:650px; } .z-template-list { grid-template-columns:1fr; } }
@media(max-width:480px) { .z-console .top-nav-left { gap:8px; } .z-breadcrumb { font-size:11px; } .z-profile-menu { padding:5px; min-height:36px; } .z-profile-menu strong,.z-profile-menu svg { display:none; } .z-console .language-select { min-width:54px; width:54px; padding:5px; min-height:36px; } .z-console .top-nav-right { gap:6px; } .z-overview-metrics { gap:11px; } .z-metric { padding:18px 15px; min-height:175px; } .z-metric > strong { font-size:25px; } .z-overview-metrics.z-three,#z-webhook-metrics { grid-template-columns:1fr; } .z-three .z-metric,#z-webhook-metrics .z-metric { min-height:100px; } .z-form-grid { grid-template-columns:1fr; gap:18px; } .z-console .z-panel-heading { align-items:flex-start; flex-wrap:wrap; } .z-console .distribution-legend { flex-wrap:wrap; } .z-shell :is(.modal-body,.rc-dialog-body) { padding:20px; } .z-shell :is(.modal-header,.rc-dialog-header,.modal-footer,.rc-dialog-footer) { padding:19px 20px; } }
@media(prefers-reduced-motion:reduce) { .z-console *, .z-shell .modal-overlay * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

.z-console .data-table td,.z-metric strong { font-variant-numeric:tabular-nums; }
.z-console button,.z-shell .reseller-dialog button { touch-action:manipulation; }
.z-shell .reseller-dialog { overscroll-behavior:contain; }
#z-webhook-dialog { max-width:600px; }
#z-webhook-form .rc-dialog-body { display:grid; gap:20px; }
#z-webhook-form label { display:grid; gap:9px; font-size:13px; }
.z-console .sidebar-nav .nav-item[hidden], .z-console button[hidden], .z-shell dialog button[hidden] { display:none; }
.z-app-tabs { flex-wrap:wrap; }
.z-app-tab { min-height:42px; }
.z-plan-groups { display:inline-flex; gap:6px; }
.z-plan-groups .btn[aria-pressed="true"] { color:var(--accent-purple); background:var(--bg-surface); border-color:var(--border-light); }
#admin-account-dialog { width:min(680px,calc(100vw - 32px)); }
.z-account-detail { display:grid; gap:24px; }
.z-account-detail .rc-table { width:100%; min-width:0; border-collapse:collapse; text-align:left; }
.z-account-detail h3 { font-size:15px; margin:0 0 10px; }
.z-account-detail p { color:var(--rc-muted); }
.profile-photo { width:100%; height:100%; border-radius:inherit; display:block; object-fit:cover; }
#profile-input-avatar { width:100%; }
#profile-remove-avatar { margin-block:9px 5px; }
.z-fieldset { display:block; min-width:0; padding:16px 16px 10px; margin:6px 0 20px; border:1px solid var(--border-light); border-radius:10px; }
.z-fieldset legend { color:var(--text-main); padding-inline:6px; font-size:13px; }
.z-fieldset .form-help { margin:0; }
.z-price-heading { margin:0 0 12px; font-size:15px; }
.z-template-list article { min-width:0; overflow-x:auto; }
.z-template-list .z-template-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:0; padding:0 0 12px; margin-bottom:4px; border-bottom:1px solid var(--border-subtle); }
.z-template-list .z-template-head h4 { margin:0; color:var(--text-main); font-size:15px; }
.z-template-list h4 { margin:0 0 12px; color:var(--text-main); }
.z-template-list table { width:100%; border-collapse:collapse; font-size:12px; }
.z-template-list th,.z-template-list td { padding:9px 7px; border-bottom:1px solid var(--border-subtle); text-align:left; }
.z-template-list thead th { color:var(--text-dim); font-weight:500; }
.z-template-list td:last-child,.z-template-list thead th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.z-console #view-resellers .rc-table-wrap { max-width:100%; }
@media (max-width:480px) {
  .z-app-tabs { gap:4px; }
  .z-app-tab { padding:7px 8px; min-height:36px; }
  .z-fieldset { padding:12px; }
  #admin-account-dialog .rc-dialog-footer { flex-wrap:wrap; }
}

#account-status-filter { width:auto; max-width:100%; }
@media (max-width:600px) {
  #account-search-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  #account-search-form #account-search { width:100%; min-width:0; }
}
.z-console .user-pill { border:1px solid transparent; background:none; color:var(--text-main); text-align:left; font:inherit; }
.z-console .user-pill:hover { background:var(--bg-surface); border-color:var(--border-subtle); }
.z-console .user-avatar-wrapper,.z-console .user-settings-icon,.z-console .z-footer-exit { flex:none; }
.z-console .user-details { flex:1; }
.z-console .user-plan-row { display:flex; gap:4px 6px; flex-wrap:wrap; align-items:center; }
.z-console .user-role { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.z-console #sidebar-user-plan { color:var(--accent-purple); background:var(--bg-surface); border-color:var(--border-light); white-space:nowrap; }

.z-shell .modal-profile-card {
  display:flex;
  flex-direction:column;
  width:min(760px,calc(100vw - 32px));
  height:min(624px,calc(100dvh - 36px));
  max-height:calc(100dvh - 36px);
  overflow:hidden;
}
.modal-profile-card > .modal-header { flex:none; }
.modal-profile-card .profile-layout { flex:1; min-height:0; grid-template-columns:185px minmax(0,1fr); }
.modal-profile-card .profile-nav { min-height:0; overflow:auto; }
.modal-profile-card .profile-content { min-height:0; min-width:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.modal-profile-card .profile-nav-item { border:1px solid transparent; transition:background-color .15s,color .15s; }
.modal-profile-card .profile-nav-item.active { border-color:var(--border-light); background:var(--bg-surface); color:var(--text-main); }
.profile-fields { margin-block:16px 20px; }
.profile-identity-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-fields .form-group { margin-bottom:12px; }
.profile-fields input[type=file]::file-selector-button { color:var(--text-main); background:var(--bg-surface); border:1px solid var(--border-light); border-radius:5px; padding:4px 8px; margin-inline-end:8px; }
.profile-content .input-with-action { flex-wrap:wrap; }
.profile-content .input-with-action .form-control { flex:1 1 160px; min-width:0; }
.user-expiry-display { padding:9px 12px; background:var(--bg-input); color:var(--text-main); border:1px solid var(--border-light); border-radius:8px; font-variant-numeric:tabular-nums; }

@media (max-width:640px) {
  .z-shell .modal-profile-card { width:calc(100vw - 22px); height:calc(100dvh - 22px); max-height:calc(100dvh - 22px); }
  .modal-profile-card .profile-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); }
  .modal-profile-card .profile-nav {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:6px 8px; gap:3px; border-right:0; border-bottom:1px solid var(--border-subtle);
  }
  .modal-profile-card .profile-nav-item { gap:6px; min-width:0; padding:6px; min-height:37px; font-size:11px; white-space:normal; }
  .modal-profile-card .profile-content { padding:16px; }
  .profile-identity-fields { grid-template-columns:minmax(0,1fr); gap:0; }
}

.z-shell .checkout-card { width:min(520px,calc(100vw - 24px)); }
.checkout-body,.checkout-fields label { display:grid; gap:12px; }
.checkout-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.checkout-fields label { gap:5px; color:var(--text-muted); font-size:12px; }
.checkout-summary,.checkout-support { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.checkout-summary { padding:14px; background:var(--bg-surface); border:1px solid var(--border-light); border-radius:8px; font-variant-numeric:tabular-nums; }
.checkout-summary small { display:block; margin-top:6px; color:var(--text-muted); }
.checkout-methods { display:flex; flex-wrap:wrap; gap:8px; }
.checkout-methods:empty { display:none; }
.checkout-support { justify-content:flex-start; flex-wrap:wrap; color:var(--text-muted); }
.checkout-support code { color:var(--text-main); overflow-wrap:anywhere; }
.checkout-body > a { justify-self:start; }
@media (max-width:400px) {
  .checkout-fields { grid-template-columns:minmax(0,1fr); }
}
