.tl-share-dialog{font-family:var(--sans)}
.tl-share-settings{display:flex;flex-direction:column;gap:1.1rem;min-width:0;padding:.15rem 0}
.tl-share-dialog .tl-share-formats{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;grid-area:auto}
.tl-share-formats legend{font:650 .8rem/1.4 var(--sans);padding:0 0 .65rem;color:var(--ink)}
.tl-share-dialog .tl-share-formats label>span{display:grid;grid-template-columns:2.3rem minmax(0,1fr) 1.1rem;align-items:center;justify-items:stretch;gap:.7rem;padding:.75rem .85rem;min-height:66px;border-radius:.65rem;text-align:left;place-content:initial;background:var(--surface);color:var(--ink);transition:border-color .15s,background .15s}
.tl-share-formats strong{font:650 .85rem/1.3 var(--sans)}
.tl-share-formats strong small{display:block;font-size:.72rem;font-weight:450;color:var(--muted);margin-top:.2rem}
.tl-share-format-icon{width:22px;height:30px;border:1.5px solid currentColor;border-radius:3px;justify-self:center;opacity:.8}
.tl-share-format-icon--square{height:24px;width:24px}.tl-share-format-icon--wide{height:18px;width:29px}
.tl-share-format-check{display:grid;place-content:center;width:16px;height:16px;border:1px solid var(--line);border-radius:50%;font:700 10px/1 var(--sans);color:transparent}
.tl-share-dialog .tl-share-formats input:checked+span{background:var(--wash);border-color:var(--accent);color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.tl-share-formats input:checked+span .tl-share-format-check{background:var(--accent);border-color:var(--accent);color:var(--on-dark)}
.tl-share-brand-preview{display:grid;gap:.5rem}.tl-share-brand-preview>small{font:650 .75rem/1.4 var(--sans);color:var(--muted)}
.tl-share-brand-swatch{display:flex;align-items:center;justify-content:center;min-height:72px;padding:1rem;border-radius:.65rem;background:var(--dark)}
.tl-share-brand-swatch img{max-width:75%;max-height:40px;object-fit:contain;width:auto;height:auto}
.tl-share-dialog .tl-share-controls{display:grid;gap:.65rem;grid-area:auto}
.tl-share-file-info{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .65rem;padding-bottom:.7rem;border-bottom:1px solid var(--line);font:.72rem/1.4 var(--sans);color:var(--muted)}
.tl-share-file-info>span:first-child{background:var(--quiet);border-radius:4px;color:var(--ink);font-weight:650;padding:.18rem .35rem}
.tl-share-dialog .tl-share-controls .tl-share-actions{display:flex;flex-direction:column;align-items:stretch;gap:.55rem}
.tl-share-dialog .tl-share-controls .tl-editorial-action{width:100%;min-height:46px;justify-content:center;border-radius:.55rem;font-size:.83rem}
.tl-share-dialog .tl-share-tip{margin:0;font-size:.72rem;line-height:1.55;color:var(--muted)}
.tl-share-dialog .tl-share-status{font-size:.76rem;line-height:1.5;margin:0;min-height:1.15rem}
.tl-share-status[data-state=ready]{color:var(--ink)}.tl-share-status[data-state=ready]:before{content:'✓';color:var(--accent);font-weight:700;margin-right:.35rem}
.tl-share-status[data-state=loading]:before{content:'';display:inline-block;width:10px;height:10px;margin-right:.4rem;border:1.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:tl-card-spin .8s linear infinite}
@keyframes tl-card-spin{to{transform:rotate(360deg)}}
@media(min-width:50rem) and (min-height:30rem){.tl-share-dialog{inline-size:min(60rem,calc(100% - var(--safe-left) - var(--safe-right) - 3rem));padding:1.35rem}.tl-share-workspace{grid-template-columns:minmax(0,1.5fr) minmax(18rem,1fr);grid-template-areas:'preview settings';grid-template-rows:auto;gap:1.5rem}.tl-share-settings{grid-area:settings}.tl-share-preview{align-self:stretch;padding:1rem}.tl-share-preview img{max-block-size:min(39rem,calc(var(--safe-height)*.73))}}
@media(max-width:49.99rem),(max-height:29.99rem){.tl-share-settings{gap:.9rem}.tl-share-dialog .tl-share-preview img{max-block-size:calc(var(--safe-height)*.4)}.tl-share-brand-swatch{min-height:62px}.tl-share-dialog .tl-share-formats label>span{min-height:60px;padding:.65rem .8rem}}
@media(prefers-reduced-motion:reduce){.tl-share-status[data-state=loading]:before{animation:none}.tl-share-dialog .tl-share-formats label>span{transition:none}}

/* The article link color must not override the primary export action. */
.tl-share .tl-share-primary{background:var(--accent);border-color:var(--accent);color:var(--on-dark)}
.tl-share .tl-share-primary:hover{background:var(--dark);border-color:var(--dark);color:var(--on-dark)}

.tl-share-dialog .tl-share-formats{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-share-formats legend{grid-column:1/-1}.tl-share-dialog .tl-share-formats label>span{grid-template-columns:1.4rem minmax(0,1fr);gap:.5rem;padding:.65rem;min-height:66px}.tl-share-formats strong{font-size:.78rem}.tl-share-formats strong small{font-size:.64rem}.tl-share-format-check{display:none}.tl-share-format-icon{transform:scale(.8)}
.tl-share-stage{position:relative;max-width:100%;width:fit-content;margin:auto}.tl-share-stage img{display:block}.tl-share-safe{position:absolute;pointer-events:none;inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);border:1px dashed var(--on-dark);outline:1px solid var(--dark);box-shadow:0 0 0 999px color-mix(in srgb,var(--dark) 16%,transparent)}.tl-share-preview{overflow:hidden}.tl-share-safe[hidden]{display:none}.tl-share-safe>span{position:absolute;top:.3rem;left:.3rem;padding:.15rem .3rem;background:var(--dark);color:var(--on-dark);font:650 .6rem/1.3 var(--sans);border-radius:2px}
.tl-share-guide-options{display:grid;gap:.4rem;font:.72rem/1.5 var(--sans);color:var(--muted)}.tl-share-guide-options label{display:flex;gap:.4rem;align-items:center;color:var(--ink);font-weight:650;min-height:28px;cursor:pointer}.tl-share-guide-options input{accent-color:var(--accent);width:16px;height:16px}.tl-share-guide-options p{margin:0}.tl-share-guide-options small{font-size:.68rem;line-height:1.4}
@media(max-width:24rem){.tl-share-dialog .tl-share-formats{grid-template-columns:minmax(0,1fr)}}

.tl-share-stage{--card-max-height:min(39rem,calc(var(--safe-height)*.73));inline-size:min(100%,calc(var(--card-max-height)*var(--card-ratio,.5625)));aspect-ratio:var(--card-ratio,.5625)}
.tl-share-dialog .tl-share-preview .tl-share-stage img{inline-size:100%;block-size:auto;max-block-size:none}
@media(max-width:49.99rem),(max-height:29.99rem){.tl-share-stage{--card-max-height:calc(var(--safe-height)*.4)}}

/* The guide label sits outside the protected brand area and never covers the mark. */
.tl-share-safe>span{top:auto;bottom:calc(100% + .3rem)}
@media(max-width:24rem){.tl-share-dialog .tl-share-formats{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-share-dialog .tl-share-formats label>span{grid-template-columns:minmax(0,1fr);padding:.65rem .5rem}.tl-share-format-icon{display:none}}
