:root{font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#20263a;background:#f5f6fa;--ink: #20213f;--muted: #626b7e;--line: #e1e4ed;--accent: #4544ab;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #8984ed;outline-offset:3px}.app-shell{--app-header-height: 64px;display:grid;grid-template-columns:244px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100svh;align-items:start}.app-header{grid-column:1 / -1;position:sticky;top:0;z-index:15;display:flex;align-items:center;padding:0 clamp(20px,3vw,48px);min-height:var(--app-header-height);color:#fff;background:var(--ink);border-bottom:1px solid #3c3c5b}.app-sidebar{position:sticky;top:var(--app-header-height);height:calc(100svh - var(--app-header-height));display:flex;flex-direction:column;min-width:0;background:#fff;border-right:1px solid var(--line)}.sidebar-navigation{flex:1;min-height:0;overflow-y:auto;padding:12px 8px}.sidebar-navigation .ant-menu{border-inline-end:0!important}.shell-body{min-width:0}.mobile-menu-toggle.ant-btn{display:none}.sidebar-drawer .ant-drawer-body{display:flex;flex-direction:column;padding:0}.app-brand,.brand-lockup{display:inline-flex;align-items:center;gap:12px;color:#fff!important;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.brand-mark{display:inline-block;position:relative;width:31px;height:34px;flex:none}.brand-mark i{position:absolute;left:3px;top:3px;width:24px;height:15px;border-radius:3px;background:#f5c667;transform:skewY(-24deg);border-bottom:3px solid #20213f}.brand-mark i:nth-child(2){top:10px;left:5px}.brand-mark i:nth-child(3){top:17px;left:7px}.sidebar-links{display:grid;gap:3px;padding:0 4px}.sidebar-links a{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 12px;border-radius:7px;color:var(--ink);text-decoration:none}.sidebar-links a:hover,.sidebar-links a.active{color:var(--accent);background:#efeffa}.sidebar-links a.active{font-weight:600}.sidebar-scope{display:grid;gap:6px;margin:12px 4px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8f8fc}.sidebar-scope label{color:var(--muted);font-size:12px}.sidebar-scope .ant-select{width:100%;min-width:0}.session-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.identity-button{border:0;background:none;color:#f5f5fa;cursor:pointer;display:flex;gap:9px;align-items:center;padding:6px;max-width:220px}.identity-button span:not(.anticon){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity-button .anticon-user{color:#e9d9b8;background:#404058;border-radius:50%;padding:7px}.identity-button .anticon-down{font-size:10px;color:#c5c6d6}.session-actions .logout-button{color:#dddfea}.session-actions .logout-button:hover{color:#fff!important;background:#ffffff12!important}.page-content{width:100%;max-width:1440px;margin:auto;padding:clamp(20px,3vw,44px)}.page-content h4.ant-typography{font-size:clamp(22px,2.4vw,30px);letter-spacing:-.6px}.ant-card{min-width:0}.ant-card-head-title{white-space:normal!important}.ant-table-wrapper,.ant-space-vertical>.ant-space-item{min-width:0}.ant-modal-body,.ant-descriptions-item-content{overflow-wrap:anywhere}.auth-layout{min-height:100svh;display:grid;grid-template-columns:minmax(380px,.94fr) minmax(450px,1.06fr);background:#fff}.auth-cover{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:100%;padding:clamp(32px,5vw,76px);color:#fff;background:radial-gradient(ellipse at 70% 62%,#424079,transparent 60%),#20213f}.auth-cover:before,.workspace-banner:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px);background-size:42px 42px}.cover-copy{margin-top:clamp(54px,9vh,120px)}.cover-copy h1,.workspace-banner h1{font-size:clamp(32px,3.5vw,56px);line-height:1.18;margin:0;letter-spacing:-1.5px;color:#fff}.cover-copy p,.workspace-banner p{font-size:16px;color:#d0cfe2;margin:15px 0 0;line-height:1.6}.factory-art{position:relative;width:100%;height:clamp(220px,43vh,470px);margin:16px auto}.factory-art b,.banner-tiles i{position:absolute;left:50%;width:46%;height:28%;border-radius:12px;transform:translate(-50%) rotate(-28deg) skew(32deg);border:1px solid #bbb9fb;background:linear-gradient(135deg,#a5a2ef,#6560ad);box-shadow:-6px 7px #484677,-12px 14px #37365d}.factory-art b:nth-child(1){top:59%;background:repeating-linear-gradient(90deg,#8985c6 0 1px,#535083 1px 18px)}.factory-art b:nth-child(2){top:44%}.factory-art b:nth-child(3){top:29%;background:linear-gradient(135deg,#b8b4fb,#7973c9)}.factory-art b:nth-child(4){top:13%;width:25%;height:16%;border-color:#ffdd87;background:linear-gradient(135deg,#ffdf96,#eeb75a);box-shadow:-5px 6px #bf913d,-10px 12px #977233}.auth-form-panel{display:grid;align-items:center;justify-items:center;padding:48px 36px}.auth-form{width:min(100%,390px);line-height:1.6}.auth-form h3.ant-typography{font-size:32px;letter-spacing:-1px;line-height:1.25;margin:0 0 8px!important}.auth-form .ant-form{margin-top:30px!important}.auth-form .ant-input-affix-wrapper,.auth-form input.ant-input:not(.ant-input-affix-wrapper input),.auth-form .ant-btn-primary{min-height:44px}.auth-form .ant-input-prefix{margin-right:10px;color:#7c8297}.auth-form .ant-form-item-label label{font-weight:600}.auth-help{margin-top:12px;text-align:center;color:var(--muted)}.auth-help .ant-divider{margin:18px 0}.auth-page{min-height:100svh;display:grid;place-items:center;padding:24px}.workspace-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;background:linear-gradient(110deg,#252544 5%,#383766 70%,#49477e);color:#fff;padding:clamp(22px,3vw,40px);display:flex;align-items:center;min-height:146px}.workspace-banner h1{font-size:clamp(28px,2.8vw,40px);margin-top:8px}.workspace-banner p{margin-top:8px;font-size:14px}.scope-label{display:flex;align-items:center;gap:7px;font-size:13px;color:#f4d28c}.banner-tiles{position:absolute;right:6%;top:5%;height:100%;width:19%;pointer-events:none;z-index:-1}.banner-tiles i{width:55%;height:34%;border-radius:7px;top:54%;background:#605e93}.banner-tiles i:nth-child(2){top:34%;background:#9a96ce}.banner-tiles i:nth-child(3){top:14%;background:#f2cb80;border-color:#ffe4ac;box-shadow:-4px 5px #a9844e}.directory-toolbar,.section-heading,.merchant-line,.merchant-tools{display:flex;align-items:center;gap:12px}.directory-toolbar,.section-heading{justify-content:space-between}.directory-toolbar{margin:28px 0 16px;flex-wrap:wrap}.directory-toolbar h2,.overview-page>.section-heading h2{margin:0;font-size:22px;letter-spacing:-.5px}.directory{display:grid;grid-template-columns:minmax(300px,.86fr) minmax(0,1.64fr);gap:18px;align-items:start}.directory-panel,.module-tile{background:#fff;border:1px solid var(--line);border-radius:12px}.directory-panel{padding:22px;min-width:0}.section-heading h2{font-size:17px;margin:0}.directory-panel>.section-heading{margin-bottom:18px;gap:12px;overflow-wrap:anywhere}.section-heading>span,.directory-name small,.module-tile small,.template-code{color:var(--muted);font-size:13px}.merchant-list,.directory-apps{display:grid;gap:12px}.merchant-list{margin-top:14px;max-height:58vh;overflow:auto;padding:2px}.merchant-row{border:1px solid var(--line);padding:14px;border-radius:9px}.merchant-row.is-selected{background:#f7f6fd;border-color:#9692da}.merchant-icon,.module-icon,.scope-art{display:inline-grid;place-items:center;width:40px;height:40px;background:#efeffa;color:var(--accent);border-radius:10px;font-size:20px;flex:none}.merchant-icon{background:#f5f1e9;color:#856937}.directory-name{flex:1;min-width:0}.directory-name strong,.module-tile strong{display:block;font-size:15px;overflow-wrap:anywhere}.directory-name small,.module-tile small{display:block;margin-top:3px;overflow-wrap:anywhere}.directory-name small,.template-code{font-family:ui-monospace,monospace;font-size:12px}.merchant-tools{margin-top:12px;gap:4px;flex-wrap:wrap}.merchant-tools .ant-btn{padding-inline:3px}.directory-app{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px;border:1px solid var(--line);border-radius:9px}.directory-app .directory-name{min-width:100px}.directory-empty{display:grid;align-content:center;justify-items:center;text-align:center;min-height:200px;border:1px dashed #d9dce8;border-radius:9px;background:#fafafd;padding:20px}.scope-art{height:48px;width:48px}.directory-empty h3{font-size:16px;margin:14px 0 4px}.directory-empty p{color:var(--muted);margin:0}.nav-label{display:flex;align-items:center;justify-content:space-between;gap:4px}.nav-label .ant-tag,.nav-label small{font-size:11px;line-height:18px}.workspace-content{min-width:0;padding:clamp(16px,2.5vw,36px)}.workspace-scope{width:100%;max-width:1500px;margin:auto;min-width:0}.overview-page{display:grid;gap:18px}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr));gap:12px}.module-tile{display:flex;align-items:center;gap:12px;padding:18px;font-size:14px;color:var(--ink)!important;text-decoration:none}.module-tile>.anticon{color:#9395ac;margin-left:auto}.module-tile:hover{border-color:#a29ed6;box-shadow:0 3px 12px #28264c0c}.module-tile small{line-height:1.4;font-size:12px}.module-tile:nth-child(3n+2) .module-icon{background:#eef5f3;color:#417469}.module-tile:nth-child(3n) .module-icon{background:#f8f1e7;color:#956e38}.list-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.list-toolbar .ant-input-affix-wrapper{width:min(100%,280px)}.list-toolbar .ant-select{min-width:130px}@media(max-width:960px){.directory{grid-template-columns:minmax(260px,.9fr) minmax(0,1.3fr)}}@media(max-width:740px){.auth-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.auth-cover{min-height:155px;padding:24px}.brand-lockup{font-size:17px}.cover-copy{margin-top:14px}.cover-copy h1{font-size:25px}.cover-copy p{display:none}.factory-art{position:absolute;width:150px;height:125px;right:1%;top:10px}.auth-form-panel{padding:36px 24px;align-items:start}.directory{grid-template-columns:minmax(0,1fr)}.app-shell{display:block}.app-header{padding:0 16px}.app-header .app-brand{font-size:18px}.identity-button{max-width:min(220px,42vw)}.app-sidebar{display:none}.mobile-menu-toggle.ant-btn{display:inline-flex;position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:14px;z-index:15;width:42px;height:42px;color:#fff;background:var(--ink);box-shadow:0 3px 12px #20213f33}.shell-body{padding-bottom:62px}.workspace-banner{min-height:130px}.workspace-banner>div:first-child{max-width:78%;overflow-wrap:anywhere}.banner-tiles{right:2%;height:70%;top:20%}.page-content,.workspace-content,.directory-panel{padding:16px}.ant-card .ant-card-head-wrapper{flex-wrap:wrap;gap:6px;padding-block:8px}.ant-card .ant-card-extra{max-width:100%;white-space:normal}.ant-card .ant-card-body{padding:16px}.ant-descriptions{overflow-x:auto}.merchant-list{max-height:40vh}}.list-toolbar>span:not(.ant-input-affix-wrapper){color:var(--muted);font-size:13px}
