/* Export controls live inside the existing dialog shell. */
.export-dialog{--export-muted:#637264;font-size:13px;line-height:1.65;color:var(--ink)}
.export-dialog [hidden]{display:none!important}
.export-dialog .export-icon{width:17px;height:17px;flex:0 0 17px;vertical-align:middle}
.export-dialog h3{font-size:16px;letter-spacing:-.3px;line-height:1.5}
.export-dialog p{margin:0}
.export-dialog .export-scope-section{margin-bottom:23px;min-width:0}
.export-dialog .export-scope-control{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600;margin-bottom:9px}
.export-dialog .export-scope-control select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 11px;font-size:13px;text-overflow:ellipsis}
.export-dialog .export-scope-control select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.export-dialog .export-scope-hint{margin-top:7px;font-size:11px;color:var(--export-muted);line-height:1.6}
.export-dialog .export-scope-section>.export-empty{padding-top:8px}
.export-column-picker{min-width:0;margin:15px 0;padding:14px;border:1px solid var(--line);border-radius:10px}
.export-column-picker>legend{padding:0 5px;font-size:12px;font-weight:650}
.export-column-all,.export-column-option{display:flex;align-items:flex-start;gap:8px;min-height:38px;cursor:pointer;line-height:1.5}
.export-column-all{font-size:12px;font-weight:600;align-items:center}
.export-column-picker input[type=checkbox]{flex:none;margin:2px 0 0;width:17px;height:17px}
.export-column-all input[type=checkbox]{margin:0}
.export-column-groups{display:grid;gap:12px;margin-top:7px;max-height:260px;overflow:auto;overscroll-behavior:contain;padding:3px}
.export-column-world{min-width:0;border:0;margin:0;padding:0}
.export-column-world>legend{font-size:11px;font-weight:650;color:var(--export-muted);margin-bottom:6px;overflow-wrap:anywhere}
.export-column-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:6px}
.export-column-option{padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:12px;min-width:0}
.export-column-option:has(input:checked){background:var(--sage);border-color:color-mix(in srgb,var(--green) 30%,var(--line))}
.export-column-option>span{min-width:0;overflow-wrap:anywhere}
.export-column-option small{display:block;font-size:10px;color:var(--export-muted);margin-top:2px}
.export-column-validation{font-size:11px;line-height:1.6;color:var(--green);padding-top:7px}
.export-share-columns{font-size:11px;color:var(--export-muted);line-height:1.6;margin-top:6px!important;overflow-wrap:anywhere}
.export-column-picker:has(input:disabled) label{cursor:default}
@media(pointer:coarse),(max-width:600px){.export-column-all,.export-column-option{min-height:44px}.export-column-picker{padding:11px}.export-column-groups{max-height:300px}}
.export-dialog .export-section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}
.export-dialog .export-feature-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:12px;background:var(--sage);color:var(--green)}
.export-dialog .export-feature-icon .export-icon{width:22px;height:22px}
.export-dialog .export-section-heading p{margin-top:4px;color:var(--export-muted);font-size:13px;line-height:1.65}
.export-dialog .export-scope{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
.export-dialog .export-scope strong{font-size:13px;overflow-wrap:anywhere;line-height:1.5}
.export-dialog .export-scope>span{font-size:12px;color:var(--export-muted);flex:0 1 auto;max-width:65%;text-align:right;overflow-wrap:anywhere}
.export-dialog .export-snapshot{font-size:12px;color:var(--export-muted);margin-top:8px}
.export-dialog .export-privacy{display:flex;align-items:flex-start;gap:9px;margin-top:17px;padding:13px 14px;border-radius:9px;background:var(--sage);font-size:12px;line-height:1.7;color:var(--ink)}
.export-dialog .export-privacy>.export-icon{margin-top:3px;color:var(--green)}
.export-dialog .export-create-row{display:flex;align-items:flex-end;gap:12px;margin-top:19px}
.export-dialog .export-expiry{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600}
.export-dialog .export-expiry select{width:100%;min-height:44px;font-size:13px;padding:10px 11px}
.export-dialog .button{min-height:44px;font-size:13px;padding:10px 13px;line-height:1.5}
.export-dialog .export-create-row .button{flex-shrink:0}
.export-dialog .export-feedback{padding:11px 13px;border:1px solid var(--line);border-radius:8px;margin-top:15px;font-size:12px;background:var(--sage);overflow-wrap:anywhere}
.export-dialog .export-feedback[data-state=error]{color:#9a4137;background:#fff1ec;border-color:#efcbc2}
.export-dialog .export-links-section{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}
.export-dialog .export-list-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.export-dialog [data-export-link-count]:not(:empty){display:inline-flex;align-items:center;justify-content:center;padding:0 7px;min-width:23px;height:23px;background:var(--sage);border-radius:6px;font-size:11px;font-weight:650;color:var(--green)}
.export-dialog .export-share-card{padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-top:10px;min-width:0}
.export-dialog .export-share-card.is-featured{margin-top:18px;border-color:#a9bf9c;background:var(--bg);box-shadow:0 3px 15px #315c4108}
.export-dialog .export-created-label{font-size:12px;font-weight:700;color:var(--green);margin-bottom:9px}
.export-dialog .export-share-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:13px}
.export-dialog .export-share-title strong{overflow-wrap:anywhere;line-height:1.55}
.export-dialog .export-share-title>span{font-size:11px;color:var(--export-muted);white-space:nowrap;padding-top:1px}
.export-dialog .export-share-meta{font-size:11px;color:var(--export-muted);margin-top:4px;line-height:1.7}
.export-dialog .export-share-meta>span{padding-inline:3px}
.export-dialog .export-url-row{display:flex;align-items:stretch;gap:8px;margin-top:12px}
.export-dialog .export-url-row input{min-width:0;flex:1;width:100%;font-size:12px;min-height:44px;background:var(--panel);text-overflow:ellipsis}
.export-dialog .export-url-row>.button{flex-shrink:0;font-size:12px;gap:6px}
.export-dialog .export-ready-hint{font-size:11px;color:var(--export-muted);margin-top:9px}
.export-dialog .export-link-actions{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-top:8px}
.export-dialog .export-link-actions a,.export-dialog .export-link-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;font-size:12px;font-weight:600;padding:5px 0;background:transparent;border:0;border-radius:4px}
.export-dialog .export-link-actions a>.export-icon{width:13px;height:13px;flex-basis:13px}
.export-dialog .export-link-actions button{color:#a55344;font-weight:500}
.export-dialog .export-link-actions button:hover{text-decoration:underline;text-underline-offset:3px}
.export-dialog .export-revoke-hint{font-size:11px;line-height:1.65;margin-top:11px;color:var(--export-muted)}
.export-dialog .export-empty{font-size:12px;color:var(--export-muted);padding:5px 0}
.export-dialog .export-create-row+.export-empty{padding-top:11px}
.export-dialog .export-list-error{padding:13px;background:var(--bg);border:1px solid var(--line);border-radius:9px}
.export-dialog .export-list-error p{font-size:12px;color:#9a4137;margin-bottom:8px;overflow-wrap:anywhere}
body.dark .export-dialog{--export-muted:#b0bdac}
body.dark .export-dialog .export-feedback[data-state=error],body.dark .export-dialog .export-list-error p{color:#f0b3a6}
body.dark .export-dialog .export-feedback[data-state=error]{background:#3d2f27;border-color:#685041}
body.dark .export-dialog .export-link-actions button{color:#e2a58e}
body.dark .export-dialog .export-share-card.is-featured{border-color:#6c8959}
@media(max-width:520px){
  .export-dialog .export-section-heading{gap:10px;margin-bottom:17px}
  .export-dialog .export-feature-icon{flex-basis:38px;height:38px;border-radius:10px}
  .export-dialog .export-section-heading p{font-size:12px}
  .export-dialog .export-create-row{flex-direction:column;align-items:stretch;gap:12px}
  .export-dialog .export-create-row>.button{width:100%}
  .export-dialog .export-share-card{padding:12px}
  .export-dialog .export-scope{align-items:flex-start;padding:11px 12px;gap:8px}
  .export-dialog .export-scope>span{font-size:11px}
  .export-dialog .export-url-row{flex-wrap:wrap}
  .export-dialog .export-url-row input{flex-basis:100%}
  .export-dialog .export-url-row>.button{width:100%}
  .export-dialog .export-link-actions a,.export-dialog .export-link-actions button{min-height:44px}
}
