/* Scoped to the capture confirmation surface. */
#capture-preview{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:24px;background:var(--surface,#fff);color:var(--ink,#202020);overflow:hidden;}
#capture-preview::backdrop{background:rgba(0,0,0,.4);}
#capture-preview-form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);}
#capture-preview .split-head{display:flex;align-items:center;justify-content:space-between;flex:none;padding:20px 16px 12px;gap:12px;}
#capture-preview h2{margin:0;font-size:20px;line-height:28px;font-weight:600;}
#capture-preview .split-head p,#capture-preview .split-help,#capture-preview .split-time{margin:4px 0 0;color:var(--ink-secondary,#626262);font-size:13px;line-height:20px;}
#capture-preview .split-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:0 16px;min-height:0;}
#capture-preview *::-webkit-scrollbar{display:none;}
#capture-preview .split-row{padding:16px 0;border-bottom:1px solid var(--line,#e6e6e6);}
#capture-preview .split-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
#capture-preview select{width:auto;max-width:calc(100% - 56px);min-height:44px;margin:0;background:var(--surface-sunken,#f2f2f2);font-size:16px;border:0;border-radius:12px;}
#capture-preview .split-tags{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px;}
#capture-preview .split-tags button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:var(--surface-sunken,#f2f2f2);color:var(--ink,#202020);font-size:13px;}
#capture-preview .split-tags button:disabled{opacity:1;}
#capture-preview .split-tags svg{width:16px;height:16px;}
#capture-preview textarea{box-sizing:border-box;width:100%;min-height:80px;max-height:160px;margin:0;resize:vertical;overflow:auto;scrollbar-width:none;border:1px solid var(--line,#e6e6e6);border-radius:12px;padding:12px;font:400 16px/24px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:var(--ink,#202020);background:var(--surface,#fff);}
#capture-preview .split-details{margin:8px 0;padding-left:20px;font-size:15px;line-height:24px;}
#capture-preview .split-row-actions{display:flex;flex-wrap:wrap;gap:8px;}
#capture-preview .split-row-actions button,#capture-preview .split-add{min-height:44px;padding:8px;border:0;background:transparent;color:var(--ink-secondary,#626262);font-size:13px;}
#capture-preview .split-footer{flex:none;padding:8px 16px 16px;background:var(--surface,#fff);}
#capture-preview .split-footer button{width:100%;min-height:48px;}
#capture-preview-error{margin:0 0 8px;color:var(--error,#a13629);font-size:13px;line-height:20px;}
#capture-preview-error:empty{display:none;}
#capture-preview button:focus-visible,#capture-preview select:focus-visible,#capture-preview textarea:focus-visible{outline:2px solid var(--ink,#202020);outline-offset:2px;}
.capture-split-link{display:block;width:100%;min-height:44px;border:0;text-align:left;text-decoration:underline;text-underline-offset:4px;font:inherit;cursor:pointer;}
