/* 99 Club Studio · exact online puzzle paper export v1 */
.tt99-paper-export-open{overflow:hidden}
.tt99-paper-export-dialog{position:fixed;inset:0;z-index:1460;display:grid;place-items:center;padding:20px;background:rgba(23,49,54,.48);backdrop-filter:blur(7px)}
.tt99-paper-export-dialog[hidden]{display:none!important}
.tt99-paper-export-panel{width:min(980px,100%);max-height:min(92vh,900px);overflow:auto;background:#fff;border:1px solid #d3e2e1;border-radius:22px;box-shadow:0 24px 70px rgba(18,45,50,.28);padding:22px;color:#24444b}
.tt99-paper-export-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.tt99-paper-export-head small{display:block;color:#6b8084;font-weight:850;text-transform:uppercase;letter-spacing:.07em;font-size:.72rem}
.tt99-paper-export-head h2{margin:3px 0 0;font-size:1.55rem;line-height:1.15}
.tt99-paper-export-close{appearance:none;border:1px solid #d2dfdf;background:#fff;color:#31555a;border-radius:999px;width:40px;height:40px;font:700 1.45rem/1 inherit;cursor:pointer}
.tt99-paper-export-intro{margin:10px 0 14px;color:#687e82;line-height:1.45}
.tt99-paper-export-tabs{display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#edf5f4;margin-bottom:14px}
.tt99-paper-export-tabs button{appearance:none;border:0;background:transparent;border-radius:9px;padding:8px 16px;color:#42676b;font:800 .85rem/1.1 inherit;cursor:pointer}
.tt99-paper-export-tabs button.is-active{background:#fff;color:#126f69;box-shadow:0 1px 5px rgba(31,76,79,.12)}
.tt99-paper-export-body{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:start}
.tt99-paper-export-preview{min-height:360px;display:grid;place-items:center;background:#f4f8f7;border:1px solid #dce7e6;border-radius:16px;padding:14px;color:#718489;text-align:center}
.tt99-paper-export-preview img{display:block;max-width:100%;max-height:58vh;object-fit:contain;background:#fff;border:1px solid #d6e2e1;box-shadow:0 6px 18px rgba(36,68,75,.08)}
.tt99-paper-export-actions{display:grid;gap:9px}
.tt99-paper-export-actions>button{appearance:none;min-height:44px;border:1px solid #bdd3d1;border-radius:11px;background:#fff;color:#24444b;padding:10px 12px;font:800 .9rem/1.2 inherit;cursor:pointer}
.tt99-paper-export-actions>button.primary{background:#0f8a83;border-color:#0f8a83;color:#fff}
.tt99-paper-export-actions>button:hover,.tt99-paper-export-actions>button:focus-visible{box-shadow:0 0 0 2px rgba(15,138,131,.12)}
.tt99-paper-export-answer-option{display:flex;gap:8px;align-items:flex-start;margin:3px 0 1px;padding:10px;border-radius:11px;background:#f2f7f6;color:#47666b;font-size:.82rem;font-weight:700;line-height:1.35}
.tt99-paper-export-answer-option input{margin-top:2px}
.tt99-paper-export-note{margin:4px 1px 0;color:#73868a;font-size:.78rem;line-height:1.45}
.tt99-paper-export-message{min-height:1.3rem;margin:2px 1px 0;color:#6d8084;font-size:.8rem;font-weight:700;line-height:1.35}
.tt99-paper-export-message[data-tone="success"]{color:#24755c}.tt99-paper-export-message[data-tone="warn"]{color:#915a37}
.tt99-paper-export-stage{position:fixed;left:-12000px;top:0;width:820px;z-index:-1;opacity:1;pointer-events:none;background:#fff;padding:20px}
.tt99-paper-export-board-source{width:780px;min-height:420px;display:grid;place-items:center;background:#fff;padding:20px;box-sizing:border-box}
.tt99-paper-export-board-source>*{max-width:100%}
@media(max-width:720px){
  .tt99-paper-export-dialog{padding:10px}
  .tt99-paper-export-panel{padding:17px;border-radius:18px;max-height:94vh}
  .tt99-paper-export-body{grid-template-columns:1fr}
  .tt99-paper-export-preview{min-height:260px}
  .tt99-paper-export-preview img{max-height:48vh}
  .tt99-paper-export-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tt99-paper-export-answer-option,.tt99-paper-export-note,.tt99-paper-export-message{grid-column:1/-1}
  .tt99-paper-export-actions>button{padding:9px 6px;font-size:.8rem}
}
@media(max-width:460px){
  .tt99-paper-export-actions{grid-template-columns:1fr}
  .tt99-paper-export-answer-option,.tt99-paper-export-note,.tt99-paper-export-message{grid-column:auto}
}
