/* Office account controls are isolated from the creation workspace styles. */
html.auth-pending body > :not(.auth-loading-status) { visibility: hidden !important; }
.auth-loading-status { position: fixed; inset: 0; display: grid; place-content: center; background: #f5f4ef; color: #354235; font: 15px/1.7 system-ui, sans-serif; z-index: 10000; padding: 24px; text-align: center; }
.auth-loading-status a { color: #536d3d; }
.auth-account-button { appearance: none; display: flex; align-items: center; gap: 8px; max-width: 235px; padding: 8px 12px; border: 1px solid #d9e1cc; border-radius: 20px; background: #f4f7ee; color: #455337; font: inherit; font-size: 12px; cursor: pointer; }
.auth-account-button strong { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.auth-role-pill { opacity: .72; font-size: 11px; }
.auth-dialog { width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dfe3d6; border-radius: 20px; background: #fcfcf8; color: #292f27; box-shadow: 0 20px 80px #14200e33; font: 14px/1.6 system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
.auth-dialog::backdrop { background: #20271e99; backdrop-filter: blur(3px); }
.auth-dialog [hidden], .auth-login-page [hidden] { display: none !important; }
.auth-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; border-bottom: 1px solid #e4e6dc; }
.auth-dialog h2 { margin: 0; font-size: 21px; }
.auth-dialog h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.auth-dialog-header p { margin: 4px 0 0; color: #858b7e; }
.auth-dialog-body { padding: 22px 26px; display: grid; gap: 22px; }
.auth-dialog-section { padding-bottom: 22px; border-bottom: 1px solid #e4e6dc; }
.auth-dialog-section:last-child { border: 0; padding: 0; }
.auth-dialog button, .auth-login-page button { border: 1px solid #d8dfca; background: #f4f7ee; border-radius: 9px; padding: 9px 14px; color: #465b32; font: inherit; cursor: pointer; }
.auth-dialog button:hover, .auth-login-page button:hover { background: #e9efdf; }
.auth-dialog button:disabled, .auth-login-page button:disabled { opacity: .55; cursor: wait; }
.auth-dialog .auth-primary, .auth-login-page .auth-primary { background: #526a3c; border-color: #526a3c; color: white; }
.auth-dialog .auth-primary:hover, .auth-login-page .auth-primary:hover { background: #40562e; }
.auth-dialog .auth-close { border-radius: 50%; width: 35px; height: 35px; padding: 0; font-size: 23px; line-height: 1; flex: 0 0 auto; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 6px; color: #515a49; font-size: 13px; }
.auth-form input, .auth-form select, .auth-url-input { box-sizing: border-box; min-width: 0; width: 100%; border: 1px solid #dce1d2; background: white; border-radius: 8px; padding: 11px 12px; color: #2d3429; font: inherit; font-size: 14px; }
.auth-dialog input:focus-visible, .auth-dialog select:focus-visible, .auth-dialog button:focus-visible, .auth-login-page input:focus-visible, .auth-login-page button:focus-visible { outline: 2px solid #789353; outline-offset: 3px; }
.auth-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-note { margin: 0; color: #818875; font-size: 12px; line-height: 1.8; }
.auth-message { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: #edf3e3; color: #486236; overflow-wrap: anywhere; }
.auth-error { color: #9c482d; background: #fcf0e7; }
.auth-section-head, .auth-actions, .auth-user-summary, .auth-url-row { display: flex; align-items: center; gap: 10px; }
.auth-section-head { justify-content: space-between; margin-bottom: 12px; }
.auth-section-head h3 { margin: 0; }
.auth-actions { flex-wrap: wrap; }
.auth-users { display: grid; gap: 10px; }
.auth-user { border: 1px solid #e0e5d6; border-radius: 11px; padding: 12px 14px; background: white; }
.auth-user-summary { justify-content: space-between; flex-wrap: wrap; }
.auth-user-summary strong { font-weight: 600; overflow-wrap: anywhere; }
.auth-user-meta { color: #858c7c; font-size: 12px; overflow-wrap: anywhere; }
.auth-user-form { margin-top: 13px; }
.auth-user details summary { cursor: pointer; color: #5e7545; padding-top: 7px; font-size: 12px; }
.auth-network-urls { display: grid; gap: 8px; margin-top: 12px; }
.auth-url-row input { flex: 1; }
.auth-url-row button { flex: 0 0 auto; }
.auth-dialog-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid #e4e6dc; background: #f6f7f0; }
.auth-share-button { padding: 9px 13px; min-height: 38px; border: 1px solid #d8dfca; border-radius: 9px; background: #f4f7ee; color: #526a3c; font: inherit; font-size: 12px; cursor: pointer; }
.auth-share-button[aria-pressed="true"] { border-color: #b5c798; background: #eaf1e0; }
.auth-share-button:disabled { opacity: .6; cursor: wait; }
.auth-share-status { max-width: 220px; color: #7c876f; font-size: 11px; overflow-wrap: anywhere; }
.auth-setup-banner { margin: 0 0 15px; padding: 12px; border: 1px solid #e5d4b5; background: #fff7e9; border-radius: 10px; color: #866336; }
.auth-login-page { margin: 0; min-height: 100dvh; padding: 32px 20px; box-sizing: border-box; display: grid; place-items: center; background: radial-gradient(ellipse at 20% 10%, #e3e8d8 0, transparent 55%), #f5f4ef; color: #292f27; font: 14px/1.7 system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
.auth-login-shell { width: min(400px, 100%); background: #fffefa; border: 1px solid #e1e5d7; padding: 38px; border-radius: 24px; box-shadow: 0 18px 65px #334b2010; }
.auth-wordmark { position: relative; width: fit-content; font-size: 29px; font-weight: 700; letter-spacing: -2px; }
.auth-wordmark span { color: #df8c60; }
.auth-wordmark i { position: absolute; width: 5px; height: 5px; top: 6px; right: -7px; border-radius: 50%; background: #df8c60; }
.auth-eyebrow { margin-top: 24px; font-size: 10px; color: #849077; letter-spacing: .2em; }
.auth-login-shell h1 { margin: 6px 0 8px; font-size: 27px; font-weight: 600; }
.auth-description { color: #858b7d; margin: 0 0 26px; }
.auth-login-shell .auth-primary { margin: 5px 0 14px; padding: 12px; }
.auth-login-footer { border-top: 1px solid #e9eadf; padding-top: 18px; margin: 22px 0 0; color: #919887; font-size: 11px; }
html[data-office-role="creator"] .advanced-link, html[data-office-role="viewer"] .advanced-link { display: none !important; }
html[data-office-remote="true"] .advanced-link { display: none !important; }
html[data-office-role="viewer"] #nav-video, html[data-office-role="viewer"] #nav-image,
html[data-office-role="viewer"] #nav-douyin, html[data-office-role="viewer"] #nav-voice,
html[data-office-role="viewer"] #nav-reference, html[data-office-role="viewer"] .nav-group-label,
html[data-office-role="viewer"] .workspace-tabs, html[data-office-role="viewer"] .intro,
html[data-office-role="viewer"] .control-card, html[data-office-role="viewer"] .preview-panel,
html[data-office-role="viewer"] .tools-workspace, html[data-office-role="viewer"] #reference-tools, html[data-office-role="viewer"] #upscale-panel,
html[data-office-role="viewer"] #work-preview-reuse, html[data-office-role="viewer"] #work-sku-editor,
html[data-office-role="viewer"] #reuse-button, html[data-office-role="viewer"] #image-reuse-button { display: none !important; }
html[data-office-role="viewer"] #image-workspace, html[data-office-role="viewer"] #video-workspace { display: block !important; }
html[data-office-role="viewer"] .creative-layout, html[data-office-role="viewer"] .studio-layout { display: block !important; }
@media (max-width: 600px) {
  .auth-account-button { max-width: 160px; padding: 7px 9px; }
  .auth-account-button strong { max-width: 85px; }
  .auth-dialog-header, .auth-dialog-body, .auth-dialog-footer { padding: 18px; }
  .auth-two-columns { grid-template-columns: 1fr; }
  .auth-login-shell { box-sizing: border-box; padding: 28px 24px; }
  .auth-url-row { align-items: stretch; }
}
