/* A4 document editor; UI text inherits the platform theme, page layers keep their own styles. */
body.dailyWorkbench .stampV2Actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:10px}
body.dailyWorkbench .stampV2Actions .stampFileButton{display:inline-flex;position:relative;overflow:hidden;align-items:center;margin:0;padding:6px 10px;border:1px solid #d8e4de;border-radius:6px;background:#fff;cursor:pointer}
body.dailyWorkbench .stampFileButton input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
body.dailyWorkbench .stampV2Actions #stampStatus{margin-left:auto;max-width:45%;overflow-wrap:anywhere}
body.dailyWorkbench .stampV2Workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start;min-width:0}
body.dailyWorkbench .stampV2Workspace .stampStage{min-width:0;background:#edf2ef;border:1px solid #d8e4de;border-radius:8px;overflow:hidden}
body.dailyWorkbench .stampV2Workspace .stampPageBar{display:flex;align-items:center;gap:7px;margin:0;padding:9px;background:#f7faf8;border-bottom:1px solid #d8e4de;flex-wrap:wrap}
body.dailyWorkbench .stampV2Workspace .stampPageBar>label{display:flex;gap:4px;margin:0;min-width:0;flex:0 0 auto}
body.dailyWorkbench .stampV2Workspace .stampPageBar>label:first-child{flex:1 1 180px}
body.dailyWorkbench .stampV2Workspace .stampPageBar select{width:100%;max-width:100%;min-width:0}
body.dailyWorkbench .stampV2Workspace .stampZoomLabel input{width:65px;min-width:0}
body.dailyWorkbench .stampV2Workspace .stampPageBar>span{white-space:nowrap}
body.dailyWorkbench .stampStageViewport{height:calc(100dvh - 220px);min-height:320px;max-height:900px;overflow:auto;padding:12px 10px;scrollbar-gutter:stable}
body.dailyWorkbench .stampPageItem{margin:0 0 18px;padding:0;min-width:0}
body.dailyWorkbench .stampPageHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:680px;margin:0 auto 5px}
body.dailyWorkbench .stampPageHeading button{border:0;background:transparent;padding:2px 4px;color:#237a55}
body.dailyWorkbench .stampPageHeading>span{font-size:11px!important}
body.dailyWorkbench .stampPageItem.isCurrent .stampPageHeading button{font-weight:700}
body.dailyWorkbench .stampV2Paper{position:relative;display:block;max-width:none;margin:0 auto;background:#fff;box-shadow:0 1px 7px #263e3429;overflow:hidden;touch-action:pan-y;isolation:isolate}
body.dailyWorkbench .stampContentBlock{position:absolute;max-width:none;transform-origin:center;touch-action:none;cursor:move;z-index:0}
body.dailyWorkbench .stampContentBlock.isSelected{outline:1px dashed #237a55;outline-offset:1px}
body.dailyWorkbench .stampContentBlock>.stampSource{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;pointer-events:none;user-select:none;-webkit-user-drag:none}
body.dailyWorkbench .stampLayerSurface{position:absolute;inset:0;pointer-events:none;z-index:1}
body.dailyWorkbench .stampV2Placed{position:absolute;display:block;max-width:none;touch-action:none;pointer-events:auto;cursor:move;outline:0}
body.dailyWorkbench .stampV2Placed.isSelected{outline:1px dashed #237a55;outline-offset:2px}
body.dailyWorkbench .stampPageNumber{position:absolute;z-index:2;line-height:1;pointer-events:none;color:#263e34;font-family:'Microsoft YaHei',sans-serif;white-space:nowrap}
body.dailyWorkbench .stampPageNumber[hidden]{display:none}
body.dailyWorkbench .stampPageNumber.bottom-center{bottom:3%;left:50%;transform:translateX(-50%)}
body.dailyWorkbench .stampPageNumber.bottom-right{bottom:3%;right:3%}
body.dailyWorkbench .stampPageNumber.top-right{top:3%;right:3%}
body.dailyWorkbench .stampV2Controls{position:sticky;top:6px;min-width:0;padding:10px;border:1px solid #d8e4de;border-radius:8px;background:#fff;max-height:calc(100dvh - 175px);overflow:auto}
body.dailyWorkbench .stampV2Controls .stampControlTabs{display:flex;gap:1px;justify-content:space-between;margin:0 0 10px;padding:0;border-bottom:1px solid #d8e4de}
body.dailyWorkbench .stampV2Controls .stampControlTabs button{flex:1 1 0;min-width:0;padding:7px 4px;border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent;white-space:nowrap}
body.dailyWorkbench .stampV2Controls .stampControlTabs button.active{border-bottom-color:#237a55;background:#edf5ef;font-weight:600}
body.dailyWorkbench .stampV2Controls section[hidden]{display:none!important}
body.dailyWorkbench .stampV2Controls h2{margin:12px 0 8px;font-size:13px}
body.dailyWorkbench .stampV2Controls label{display:flex;flex-direction:column;gap:4px;margin:8px 0;min-width:0}
body.dailyWorkbench .stampV2Controls label.stampInline{flex-direction:row;align-items:center;gap:7px}
body.dailyWorkbench .stampV2Controls .stampInline input{width:auto}
body.dailyWorkbench .stampV2Controls :is(input,textarea,select){width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body.dailyWorkbench .stampV2Controls .formrow{display:flex;gap:8px}
body.dailyWorkbench .stampV2Controls .formrow>label{flex:1 1 0;min-width:0}
body.dailyWorkbench .stampV2Controls .stampActions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}
body.dailyWorkbench .stampV2Controls .stampActions>button{padding:5px 7px}
body.dailyWorkbench .stampV2Controls .stampSealGallery{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
body.dailyWorkbench .stampSealGallery>button{width:45px;height:45px;padding:3px;background:#fff}
body.dailyWorkbench .stampSealGallery img{width:100%;height:100%;object-fit:contain}
body.dailyWorkbench .stampTextStyles{display:flex;align-items:center;gap:5px;margin:6px 0}
body.dailyWorkbench .stampTextStyles button{min-width:31px;padding:5px 8px}
body.dailyWorkbench .stampTextStyles button[aria-pressed=true]{background:#e6f2eb;border-color:#8db49b}
body.dailyWorkbench .stampTextStyles>label{display:flex;flex-direction:row;align-items:center;margin:0 0 0 auto;gap:6px}
body.dailyWorkbench .stampTextStyles input[type=color]{width:34px;height:29px;padding:2px}
body.dailyWorkbench .stampV2Controls .stampMetadata{margin:10px 0;padding:8px 0;border-top:1px solid #d8e4de}
body.dailyWorkbench .stampV2Controls .stampMetadata summary{cursor:pointer}
body.dailyWorkbench .stampV2Controls .stampControlFoot{display:flex;gap:7px;position:sticky;bottom:-10px;background:#fff;border-top:1px solid #d8e4de;margin-top:12px;padding:10px 0 2px;z-index:3}
body.dailyWorkbench .stampControlFoot>button{flex:1;white-space:nowrap}
body.dailyWorkbench .stampControlFoot>.primary{flex:1.4}
body.dailyWorkbench .stampV2Controls .stampError:empty{display:none}
body.dailyWorkbench .stampV2Controls .stampError{margin:8px 0 0;line-height:1.5}
body.dailyWorkbench .stampV2Transform{position:absolute;pointer-events:none;z-index:5;border:1px dashed #237a55;box-sizing:border-box}
body.dailyWorkbench .stampV2Transform button{position:absolute;pointer-events:auto;touch-action:none;padding:0;min-width:0;border:1px solid #237a55;background:#fff;color:#237a55;line-height:1}
body.dailyWorkbench .stampV2Transform .stampResize{width:12px;height:12px;border-radius:2px}
body.dailyWorkbench .stampResize.nw{left:-4px;top:-4px;cursor:nwse-resize}.stampResize.ne{right:-4px;top:-4px;cursor:nesw-resize}.stampResize.sw{left:-4px;bottom:-4px;cursor:nesw-resize}.stampResize.se{right:-4px;bottom:-4px;cursor:nwse-resize}
body.dailyWorkbench .stampV2Transform .stampRotate{width:23px;height:23px;border-radius:50%;left:calc(50% - 12px);top:-29px;cursor:grab}
body.dailyWorkbench .stampV2Transform.rotateInside .stampRotate{top:3px}
body.dailyWorkbench .stampArchive{margin-top:14px;border-top:1px solid #d8e4de;padding-top:10px}
body.dailyWorkbench .stampArchive details{margin:0;padding:0}
body.dailyWorkbench .stampArchive summary{cursor:pointer;font-weight:600}
body.dailyWorkbench .stampOutputRow{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:12px 0;border-top:1px solid #e2ebe5}
body.dailyWorkbench .stampOutputRow>div:first-child{min-width:0;overflow-wrap:anywhere}
body.dailyWorkbench .stampOutputRow small{display:block;margin-top:4px;overflow-wrap:anywhere}
body.dailyWorkbench .stampOutputActions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:0 1 48%;min-width:160px}
body.dailyWorkbench .stampDownload{color:#237a55;white-space:nowrap}
body.dailyWorkbench #crmEditor.stampV2PreviewDialog[open]{display:flex;flex-direction:column;width:960px;max-width:95vw;height:92dvh;overflow:hidden;padding:14px}
body.dailyWorkbench .stampV2PreviewDialog>.dialoghead{flex:none;margin-bottom:10px}
body.dailyWorkbench .stampV2PreviewToolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #d8e4de;flex:none}
body.dailyWorkbench .stampV2PreviewToolbar>label{display:flex;align-items:center;gap:5px;margin:0;flex-direction:row}
body.dailyWorkbench .stampV2PreviewToolbar [data-stamp-preview-return]{margin-left:auto}
body.dailyWorkbench .stampV2PreviewPages{overflow:auto;min-height:0;flex:1;background:#edf2ef;padding:14px}
body.dailyWorkbench .stampV2PreviewPages .stampPageItem{margin-bottom:20px}
body.dailyWorkbench .stampV2PreviewPages .stampV2Paper{width:min(100%,700px)}
body.dailyWorkbench .stampOutputPreviewPage{max-width:760px;margin:0 auto 18px}
body.dailyWorkbench .stampOutputPreviewPage>span{display:block;margin-bottom:5px}
body.dailyWorkbench .stampOutputPreviewPage>img{display:block;width:100%;height:auto;background:#fff;box-shadow:0 1px 7px #263e3429}
body.dailyWorkbench .stampSealManager{width:700px;max-width:94vw}
body.dailyWorkbench .stampSealManagerList>article{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #d8e4de}
body.dailyWorkbench .stampSealManagerList img{width:70px;height:70px;object-fit:contain;background:#f7faf8;border:1px solid #d8e4de;border-radius:5px}
body.dailyWorkbench .stampSealManagerList article>div{flex:1;min-width:0;overflow-wrap:anywhere}
body.dailyWorkbench .stampSealManagerList small{display:block;margin-top:4px}
body.dailyWorkbench .stampRenameDialog{width:480px;max-width:94vw}
@media(max-width:1050px){body.dailyWorkbench .stampV2Workspace{grid-template-columns:minmax(0,1fr) 270px;gap:10px}.stampPageBar .stampZoomLabel{display:none!important}}
@media(max-width:780px){body.dailyWorkbench .stampV2Workspace{grid-template-columns:1fr}body.dailyWorkbench .stampV2Controls{position:static;max-height:none}body.dailyWorkbench .stampStageViewport{height:65dvh}body.dailyWorkbench .stampV2Actions #stampStatus{margin-left:0;max-width:100%}body.dailyWorkbench .stampOutputRow{flex-direction:column}body.dailyWorkbench .stampOutputActions{justify-content:flex-start;min-width:0;flex-basis:auto}}
body.dailyWorkbench .stampExtraTools{position:relative;margin:0;padding:0}
body.dailyWorkbench .stampExtraTools>summary{list-style:none;padding:6px 9px;border:1px solid #d8e4de;border-radius:6px;background:#fff;cursor:pointer}
body.dailyWorkbench .stampExtraTools:not([open])>button{display:none}
body.dailyWorkbench .stampExtraTools[open]>button{display:block;margin-top:4px;width:100%}
/* Archived files use one compact row; paths and secondary actions stay out of it. */
body.dailyWorkbench .stampArchiveList{min-width:0;max-width:100%}
body.dailyWorkbench .stampArchiveTable{width:100%;table-layout:fixed;border-collapse:collapse;margin-top:10px}
body.dailyWorkbench .stampArchiveTable :is(th,td){padding:9px 8px;border-bottom:1px solid #dce7df;text-align:left;vertical-align:top;font:inherit;line-height:1.5;overflow-wrap:anywhere;min-width:0}
body.dailyWorkbench .stampArchiveTable thead{background:#edf3ef}
body.dailyWorkbench .stampArchiveTable th{font-weight:600}
body.dailyWorkbench .stampArchiveTable :is(th,td):nth-child(1){width:17%}
body.dailyWorkbench .stampArchiveTable :is(th,td):nth-child(2){width:27%}
body.dailyWorkbench .stampArchiveTable :is(th,td):nth-child(3){width:19%}
body.dailyWorkbench .stampArchiveTable :is(th,td):nth-child(4){width:17%}
body.dailyWorkbench .stampArchiveTable :is(th,td):nth-child(5){width:20%}
body.dailyWorkbench .stampArchiveFilename{max-width:100%;padding:0;border:0;background:transparent;color:#237a55;text-align:left;white-space:normal;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
body.dailyWorkbench .stampArchiveRemark{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.dailyWorkbench .stampArchiveOperations{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px}
body.dailyWorkbench .stampArchiveOperations>button{white-space:nowrap;padding:4px 7px}
body.dailyWorkbench .stampArchiveMessage{margin:6px 0 0;line-height:1.5}
body.dailyWorkbench .stampArchiveMessage:empty,body.dailyWorkbench .stampOpenStatus:empty{display:none}
body.dailyWorkbench .stampArchiveMore{position:relative;margin:0;padding:0;flex:none}
body.dailyWorkbench .stampArchiveMore>summary{list-style:none;padding:4px 7px;border:1px solid #d8e4de;border-radius:5px;background:#fff;cursor:pointer;white-space:nowrap}
body.dailyWorkbench .stampArchiveMore>summary::-webkit-details-marker{display:none}
body.dailyWorkbench .stampArchiveMore>div{position:absolute;right:0;top:calc(100% + 4px);z-index:60;display:flex;flex-direction:column;align-items:stretch;gap:3px;width:180px;max-width:80vw;padding:7px;border:1px solid #d8e4de;border-radius:7px;background:#fff;box-shadow:0 5px 16px #263e3426}
body.dailyWorkbench .stampArchiveMore:not([open])>div{display:none}
body.dailyWorkbench .stampArchiveMore>div>:is(button,a){display:block;width:100%;box-sizing:border-box;margin:0;padding:5px 8px;text-align:left;white-space:normal;font:inherit}
body.dailyWorkbench .stampV2PreviewToolbar .stampOpenFileChoice{flex:1 1 190px;min-width:0}
body.dailyWorkbench .stampOpenFileChoice>select{min-width:0;max-width:260px;width:100%;flex:1}
body.dailyWorkbench .stampOpenStatus{flex:1 1 100%;line-height:1.4}
body.dailyWorkbench .stampSealManagerList .stampSealCompanyInfo{min-width:0;flex:1}
body.dailyWorkbench .stampSealCompanyRow{display:flex;gap:5px;align-items:flex-end;margin-top:6px;min-width:0}
body.dailyWorkbench .stampSealCompanyRow>label{flex:1;min-width:0;margin:0;gap:3px}
body.dailyWorkbench .stampSealCompanyRow input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body.dailyWorkbench .stampSealCompanyRow>button{flex:none;white-space:nowrap;padding:6px 8px}
@media(max-width:700px){body.dailyWorkbench .stampArchiveTable :is(th,td){padding:7px 4px}body.dailyWorkbench .stampSealManagerList>article{flex-wrap:wrap}body.dailyWorkbench .stampSealCompanyRow{flex-wrap:wrap}body.dailyWorkbench .stampSealCompanyRow>label{flex-basis:100%}}
body.dailyWorkbench .stampOutputDeleteConfirm{width:460px;max-width:94vw}
body.dailyWorkbench .stampOutputDeleteConfirm p{line-height:1.6;overflow-wrap:anywhere}
body.dailyWorkbench .stampRecycleSection{margin-top:20px;padding-top:14px;border-top:1px solid #dce7df}
body.dailyWorkbench .stampRecycleHeading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.dailyWorkbench .stampRecycleHeading h2{font:inherit;font-weight:700;margin:0}
body.dailyWorkbench .stampRecycleHeading>button{margin-left:auto}
body.dailyWorkbench .stampRecycleSection .formerror:empty{display:none}
body.dailyWorkbench .stampRecycleTable :is(th,td):nth-child(1){width:28%}
body.dailyWorkbench .stampRecycleTable :is(th,td):nth-child(2){width:20%}
body.dailyWorkbench .stampRecycleTable :is(th,td):nth-child(3){width:20%}
body.dailyWorkbench .stampRecycleTable :is(th,td):nth-child(4){width:22%}
body.dailyWorkbench .stampRecycleTable :is(th,td):nth-child(5){width:10%}
body.dailyWorkbench .stampV2Controls .stampSealGallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:5px}
body.dailyWorkbench .stampV2Controls .stampSealGallery>.stampFavoriteSeal{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;height:auto;min-width:0;box-sizing:border-box;padding:6px 4px;background:#fff}
body.dailyWorkbench .stampFavoriteSeal>img{display:block;width:54px;height:54px;max-width:100%;object-fit:contain}
body.dailyWorkbench .stampFavoriteSeal>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;max-width:100%;overflow-wrap:anywhere;font:inherit;line-height:1.4}
body.dailyWorkbench .stampFavoriteSeal[aria-pressed=true]{border-color:#237a55;background:#edf5ef}
body.dailyWorkbench .stampSelectedSealName{margin:5px 0 9px;line-height:1.4;overflow-wrap:anywhere}
body.dailyWorkbench .stampSealManagerList [data-favorite]{max-width:90px;white-space:normal}

/* Multiple-page canvas overview; document geometry remains unchanged. */
body.dailyWorkbench .stampStageViewport.stampPagesOverview{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--stamp-preview-width,220px),1fr));gap:14px;align-content:start;align-items:start}
body.dailyWorkbench .stampPagesOverview .stampPageItem{margin:0;min-width:0}
body.dailyWorkbench .stampPagesOverview .stampPageHeading{display:flex;justify-content:center;min-height:28px;margin-bottom:5px}
body.dailyWorkbench .stampPagesOverview .stampPageHeading>span{display:none}
body.dailyWorkbench #stampPagesToggle[aria-pressed=true]{background:#e6f2eb;border-color:#83af97;font-weight:700}
body.dailyWorkbench .stampControlFoot{display:flex;gap:6px;flex-wrap:wrap}
body.dailyWorkbench .stampControlFoot>#stampAbandon{flex:0 1 auto;padding-inline:8px}
body.dailyWorkbench .stampControlFoot>#stampLivePreview{flex:1 1 50px}
body.dailyWorkbench .stampControlFoot>#stampGenerate{flex:1 1 100px}
body.dailyWorkbench .stampAbandonConfirm{width:450px;max-width:calc(100vw - 32px)}
