:root{--agency-primary:#6753c7;--agency-ink:#24243b;--agency-muted:#72748a;--agency-line:#e5e5ef}
.agency-nav{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.agency-nav a,.agency-link{color:var(--agency-primary);text-decoration:none;background:#f0edff;border:1px solid #ded8ff;border-radius:12px;padding:9px 13px;font-size:14px;white-space:nowrap}.agency-price{color:#c53f66;font-size:18px;font-weight:700;margin:10px 0}.agency-note{white-space:pre-wrap;color:#5e537f}.agency-page{margin:0;background:#f5f5fa;color:var(--agency-ink);font:16px/1.6 system-ui,-apple-system,'Microsoft YaHei',sans-serif}.agency-page *{box-sizing:border-box}.agency-page a{color:var(--agency-primary)}.agency-page button,.agency-page input,.agency-page select,.agency-page textarea{font:inherit}.agency-page button,.agency-button{border:0;background:var(--agency-primary);color:white;border-radius:10px;padding:10px 16px;cursor:pointer}.agency-page button:disabled{opacity:.55;cursor:wait}.agency-page button.light{background:#eeedf6;color:#4c466c}.agency-page button.danger{background:#fff0f2;color:#ad304a}.agency-page input,.agency-page select,.agency-page textarea{width:100%;border:1px solid #d7d7e4;border-radius:10px;background:#fff;color:#24243b;padding:10px 12px;min-width:0}.agency-page textarea{min-height:110px;resize:vertical}.agency-page label{display:block;font-size:14px;color:#55566e;margin:10px 0 6px}.agency-page h1{font-size:23px;margin:0}.agency-page h2{font-size:19px;margin:0 0 12px}.agency-page h3{font-size:17px;margin:0 0 6px}.ag-head{border-bottom:1px solid var(--agency-line);background:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.ag-wrap{max-width:1080px;margin:24px auto;padding:0 20px 50px}.ag-card{background:#fff;border:1px solid var(--agency-line);border-radius:16px;padding:22px;margin-bottom:16px}.ag-narrow{max-width:600px;margin:50px auto}.ag-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ag-row>*{min-width:0}.ag-between{justify-content:space-between}.ag-muted{color:var(--agency-muted);font-size:14px}.ag-status{background:#f0edff;border-radius:8px;padding:4px 8px;font-size:14px;color:#655198}.ag-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.ag-tabs button{background:#eae8f2;color:#554d70}.ag-tabs button.on{background:var(--agency-primary);color:#fff}.ag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ag-grid .ag-card{margin:0}.ag-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ag-post{max-width:740px;margin:0 auto 18px}.ag-post-content{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0}.ag-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.ag-images img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.ag-images a{display:block}.ag-image-edit{position:relative}.ag-image-edit button{position:absolute;right:4px;top:4px;padding:1px 7px;border-radius:50%}.ag-share{word-break:break-all;display:block;max-width:100%;font-size:14px}.ag-notice{color:#554d70;background:#eeebfa;padding:12px 16px;border-radius:12px;margin-bottom:16px}.ag-error{color:#a42d41;background:#fff0f2;padding:12px 16px;border-radius:10px;margin:10px 0;white-space:pre-wrap}.ag-empty{padding:35px;text-align:center;color:#747286}.ag-message{margin:12px 0;max-width:85%;background:#f0eef8;padding:12px 15px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.ag-message.mine{margin-left:auto;background:#e9e3ff}.ag-message time{display:block;font-size:12px;color:#76728b;margin-top:6px}.ag-thread{max-height:440px;overflow:auto;margin:16px 0}.ag-table{width:100%;border-collapse:collapse}.ag-table td,.ag-table th{padding:12px;text-align:left;border-bottom:1px solid var(--agency-line);font-size:14px}.ag-table-box{overflow:auto}.ag-rule{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;margin:12px 0;align-items:center}.ag-rule textarea{min-height:65px}#agToast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#30283f;color:#fff;padding:12px 20px;border-radius:12px;z-index:10000;max-width:90%;font-size:14px}.ag-page-msg{margin:0 auto 16px;max-width:1080px}.agency-page :focus-visible{outline:3px solid #ac9df1;outline-offset:2px}.agency-page [hidden]{display:none!important}
@media(max-width:620px){.ag-head{padding:14px 16px}.ag-wrap{padding:0 12px 30px;margin:16px auto}.ag-card{padding:16px;border-radius:13px}.ag-grid,.ag-forms{grid-template-columns:1fr}.ag-narrow{margin:20px auto}.ag-rule{grid-template-columns:1fr auto}.ag-rule textarea{grid-column:1/-1;grid-row:2}.ag-head h1{font-size:21px}.ag-message{max-width:92%}.header{flex-wrap:wrap;gap:10px}.header-right{flex-wrap:wrap}.user-row{flex-wrap:wrap}.agency-nav a{padding:7px 10px}}

/* v1.2 circle stream and review workspace */
.ag-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;background:linear-gradient(120deg,#eeeaff,#f8f6ff);border:1px solid #ddd5f8;padding:20px;border-radius:18px;margin-bottom:18px}.ag-filter label{margin-top:0}.ag-feed{max-width:820px;margin:0 auto 20px;background:white;border-radius:14px;overflow:hidden}.ag-feed-tools{max-width:820px;margin:0 auto 18px}.ag-social-post{display:flex;gap:16px;padding:26px 24px;border-bottom:1px solid #ededf2;background:white}.ag-avatar{flex:0 0 48px;height:48px;display:flex;align-items:center;justify-content:center;background:#eeebfa;color:#67578b;border-radius:9px;font-size:22px;font-weight:700;overflow:hidden}.ag-avatar img{width:100%;height:100%;object-fit:cover}.ag-post-main{flex:1;min-width:0}.ag-author{color:#526b94;font-size:18px}.ag-circle-name{color:#777387;font-size:13px;margin-top:2px}.ag-social-post .ag-post-content{margin:8px 0 12px;font-size:17px}.ag-social-post .ag-images{max-width:510px;margin:10px 0}.ag-single-image{display:block!important;max-width:360px!important}.ag-single-image img{aspect-ratio:auto;max-height:460px;object-fit:contain;object-position:left}.ag-post-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:#8b8b98;margin:12px 0}.ag-post-meta span{color:#657795}.ag-review-note{margin:10px 0;font-size:14px}.ag-status.pending{background:#fff3d8;color:#875619}.ag-status.rejected{background:#ffeaee;color:#a2344b}.ag-status.approved{background:#e5f6ec;color:#28734b}.ag-goods{display:grid;grid-template-columns:220px 1fr;gap:22px}.ag-goods img,.ag-goods video{width:100%;max-height:320px;object-fit:contain;border-radius:10px}.ag-review-actions{margin-top:16px}.ag-review-actions textarea{min-height:65px}.ag-images video{width:100%;aspect-ratio:1;object-fit:contain;background:#222}.ag-review-cover{max-width:200px;max-height:200px;object-fit:contain}.ag-review-note p{white-space:pre-wrap}
@media(max-width:620px){.ag-filter{grid-template-columns:1fr 1fr;padding:14px;gap:10px}.ag-filter>button{grid-column:1/-1}.ag-social-post{padding:18px 12px;gap:12px}.ag-avatar{flex-basis:40px;height:40px}.ag-author{font-size:16px}.ag-social-post .ag-post-content{font-size:16px}.ag-goods{grid-template-columns:1fr}.ag-goods img{max-height:260px}.ag-post-meta{font-size:12px}}

/* v1.3: compact album catalog */
.compact-catalog .album-corner{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:5px;padding:3px 6px;background:rgba(28,27,41,.70);border-radius:6px;color:#fff;font-size:12px;line-height:1.4;max-width:calc(100% - 12px);flex-wrap:wrap}.album-corner strong{font-size:13px;color:#fff}.compact-catalog .tag-lines{min-height:0;margin-top:5px;max-height:25px;overflow:hidden}.compact-catalog .card .tag-row{margin-top:0;height:24px}.compact-catalog .card .tag{font-size:12px;padding:2px 6px;line-height:18px}.compact-catalog .card{min-width:0}.compact-catalog .cover{aspect-ratio:3/4}.compact-catalog .info-card{display:block;padding:14px}.compact-catalog .info-actions{margin-top:10px}.compact-catalog .info-desc{font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.compact-catalog .info-desc:empty{display:none}.compact-catalog .share-btn{font-size:14px;padding:7px 13px}.compact-catalog .pc-name{font-size:14px;font-weight:600}.compact-catalog .pc-description{font-size:14px;line-height:1.45;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.compact-catalog .pc-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.compact-catalog .pc-tag{margin:0;font-size:12px;padding:2px 7px}.compact-catalog #bottomInfoBar{position:static!important;padding:8px 12px!important;box-shadow:none!important}.ag-favorite-cover{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:#eeebfa}.ag-favorite-card h3{margin-top:8px}.ag-favorite-card .ag-row{margin-top:10px}
@media(max-width:768px){.compact-catalog .main{padding:10px}.compact-catalog .header{padding:9px 10px;gap:6px;flex-wrap:wrap}.compact-catalog .header h1{margin-right:0;font-size:16px}.compact-catalog .agency-nav{gap:5px}.compact-catalog .agency-nav a{padding:5px 8px;font-size:13px}.compact-catalog .header-right{gap:5px}.compact-catalog .filter-bar{padding:10px;gap:7px;margin-bottom:10px;border-radius:13px}.compact-catalog .filter-bar select,.compact-catalog .search-input,.compact-catalog .tag-drop-btn{padding:7px;font-size:14px;min-height:36px}.compact-catalog .tabs{padding:4px;gap:3px;margin-bottom:10px}.compact-catalog .tab{padding:7px 8px;min-width:0;font-size:14px}.compact-catalog .section-title{font-size:15px;margin:0 0 8px}.compact-catalog .grid,.compact-catalog .sub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compact-catalog .card-body{padding:7px 8px 8px}.compact-catalog .card-title{font-size:14px;line-height:20px}.compact-catalog .card-desc{font-size:13px;line-height:18px;min-height:0;-webkit-line-clamp:1;margin-top:3px}.compact-catalog .copy-link{padding:3px;font-size:16px}.compact-catalog .badges{top:6px;left:6px;right:6px}.compact-catalog .badge{font-size:12px;padding:2px 6px}.compact-catalog .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compact-catalog .pc-body{padding:8px}.compact-catalog .info-card{margin-bottom:10px}.compact-catalog .info-meta{margin-top:5px}.compact-catalog .tag-row{margin-top:6px}}

/* Unified compact controls and workspace navigation. */
.agency-page button,.agency-page .agency-nav a,.agency-page .ag-tabs button,.agency-link{border-radius:9px;font-size:14px;line-height:1.4;padding:7px 11px;min-height:34px}.agency-page .ag-wrap{margin:12px auto;padding-bottom:24px}.agency-page .ag-card{padding:15px;margin-bottom:12px}.agency-page .ag-head{padding:11px 16px;gap:8px}.agency-page .ag-head h1{font-size:18px;margin:0;overflow-wrap:anywhere}.agency-page .ag-tabs{gap:6px;margin:0 0 12px}.agency-page input,.agency-page select,.agency-page textarea{font-size:14px;padding:8px 10px}.agency-page h2{font-size:17px;margin-bottom:10px}.agency-page label{margin-top:9px}.ag-profile-avatar{width:54px;height:54px;border-radius:9px;object-fit:cover}.agency-page[data-page="agent"] #bottomInfoBar{position:static!important;box-shadow:none!important;padding:8px!important}.agency-page[data-page="agent"] .ag-head nav{gap:5px}.agency-page[data-page="agent"] .ag-head #workspaceLink{display:none!important}
@media(max-width:620px){.agency-page .ag-head{padding:10px 12px}.agency-page .ag-wrap{padding:0 10px 18px}.agency-page .ag-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.agency-page .ag-tabs button{padding:7px 4px}.agency-page .ag-card{padding:12px}.agency-page .ag-head h1{font-size:17px}.agency-page .ag-head nav{width:100%;flex-wrap:wrap}.agency-page .ag-table td,.agency-page .ag-table th{padding:8px}}

/* v1.3.1: one-row catalog navigation and original portrait covers. */
.compact-catalog .catalog-header{flex-wrap:nowrap;justify-content:flex-start;gap:8px;padding:9px 12px}
.catalog-header .catalog-logo{flex:0 0 28px;margin:0;font-size:0!important;line-height:0}
.catalog-header .catalog-logo img{width:28px;height:28px}
.catalog-header .agency-nav{flex-wrap:nowrap;flex-shrink:0}
.catalog-header .header-right{flex:1;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
.catalog-header .pill-btn,.catalog-header .user-badge,.catalog-header .agency-nav a{font:13px/20px system-ui,sans-serif;padding:6px 9px;min-height:32px;white-space:nowrap;border-radius:10px}
.catalog-header #myCreateBtn{flex-shrink:0}
.account-dropdown{position:relative;min-width:0;max-width:150px}
.catalog-header .user-badge{border:0;cursor:pointer;display:flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.catalog-header .user-badge b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.account-menu{position:absolute;right:0;top:calc(100% + 7px);width:140px;padding:5px;background:#fff;border:1px solid #e5e5ef;border-radius:12px;box-shadow:0 8px 24px #27243b26;z-index:110}
.account-menu[hidden]{display:none}
.account-menu a,.account-menu button{display:block;width:100%;border:0;background:none;text-align:left;text-decoration:none;color:#403754;font:14px/22px system-ui,sans-serif;padding:9px 12px;border-radius:7px;cursor:pointer}
.account-menu a:hover,.account-menu button:hover,.account-menu a:focus-visible,.account-menu button:focus-visible{background:#f0edff}
.compact-catalog .card-title-row{height:24px;min-width:0}
.compact-catalog .card-title{min-width:0;line-height:24px}
.compact-catalog .card-desc{font-size:13px;line-height:18px;height:36px;min-height:36px;-webkit-line-clamp:2;overflow-wrap:anywhere}
.compact-catalog .tag-lines{height:49px;min-height:49px;max-height:49px;gap:3px;margin-top:5px;overflow:hidden}
.compact-catalog .card .tag-row{height:23px;min-height:23px;flex-shrink:0;margin:0}
.compact-catalog .cover img{object-fit:cover;object-position:center top}
@media(max-width:360px){.compact-catalog .catalog-header{gap:5px;padding:8px}.catalog-header .header-right{gap:5px}.catalog-header .pill-btn,.catalog-header .user-badge,.catalog-header .agency-nav a{padding:6px 7px}}

/* v1.4 compact moderation and account controls */
.ag-check{display:flex!important;align-items:center;gap:8px}.ag-check input{width:auto!important}
.ag-album-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;background:#fff;border-bottom:1px solid #e5e5ef;min-width:0}.ag-album-summary{min-width:0;flex:1}.ag-album-summary strong,.ag-album-summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-album-summary small{color:#777;font-size:12px}.ag-album-row .ag-review-actions{flex-shrink:0;gap:4px;margin:0;padding:0;border:0}.ag-album-row button{padding:6px 8px;font-size:13px}.ag-review-filter .ag-row select{width:auto;flex:1}.ag-review-filter p{font-size:13px;margin:6px 0 0}
.ag-preview-mask{position:fixed;inset:0;z-index:1000;background:#0009;padding:20px;overflow:auto}.ag-preview-mask>.ag-card{max-width:760px;margin:0 auto}.ag-preview-mask video{width:100%}
.agency-page .ag-gallery-thumb{padding:0;border:0;border-radius:8px;background:transparent;display:block;width:100%;min-width:0;overflow:hidden}.ag-gallery-thumb img{display:block}
.circle-viewer{position:fixed;inset:0;z-index:10000;background:#090909;color:#fff;display:flex;align-items:center;justify-content:center;touch-action:none;overscroll-behavior:contain}.circle-viewer>img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.circle-viewer .viewer-bar{position:absolute;top:0;left:0;right:0;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#0008,transparent)}.circle-viewer button{background:#333b;color:white;border:0;border-radius:20px;padding:8px 14px;font-size:20px}.circle-viewer .viewer-prev,.circle-viewer .viewer-next{position:absolute;top:48%}.circle-viewer .viewer-prev{left:8px}.circle-viewer .viewer-next{right:8px}.circle-viewer .viewer-hint{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 10px);font-size:12px;color:#ccc;pointer-events:none}
@media(max-width:620px){.ag-table th,.ag-table td{font-size:12px!important;padding:6px!important}.ag-table td button{font-size:12px;padding:5px 7px}.ag-table td select{padding:5px 3px;min-width:60px}}

.agent-invite-mask{position:fixed;inset:0;background:#0009;z-index:11000;display:flex;align-items:center;justify-content:center;padding:20px}.agent-invite-form{width:100%;max-width:360px;background:#fff;border-radius:16px;padding:22px;color:#333;font:14px/1.5 system-ui,sans-serif}.agent-invite-form h2{font-size:20px;margin:0 0 10px}.agent-invite-form input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #ddd;border-radius:8px;margin:10px 0}.agent-invite-form button{border:0;background:#6753c7;color:white;border-radius:8px;padding:10px 16px;margin-right:8px;cursor:pointer}.agent-invite-form [type=button]{background:#eee;color:#555}.agent-invite-error{color:#c33;min-height:22px}
