/*! Akıllı Tahta Atölyesi · Ödev Gönder v0.8.60 · Paylaşım Kartı UI Final */
:root{
  --tca-hw-accent:#7c3aed;
  --tca-hw-accent-2:#2563eb;
  --tca-hw-success:#16a34a;
  --tca-hw-ink:#142033;
  --tca-hw-muted:#5b6b7d;
  --tca-hw-surface:rgba(255,255,255,.985);
  --tca-hw-border:rgba(124,58,237,.20);
  --tca-hw-shadow:0 18px 54px rgba(15,23,42,.24),0 1px 0 rgba(255,255,255,.75) inset;
}
.tca-homework-launch[hidden],.tca-homework-bar[hidden],.tca-homework-sheet[hidden],.tca-homework-preparing[hidden]{display:none!important}
.tca-homework-launch{
  position:absolute;z-index:47;right:max(12px,env(safe-area-inset-right));top:72px;
  display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;
  border:1px solid rgba(255,255,255,.24);border-radius:999px;
  background:linear-gradient(135deg,#7c3aed,#4f46e5 52%,#2563eb);color:#fff;
  box-shadow:0 10px 26px rgba(79,70,229,.30),inset 0 1px 0 rgba(255,255,255,.22);
  font:900 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;
  cursor:pointer;touch-action:manipulation;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease
}
.tca-homework-launch:hover{transform:translateY(-1px);box-shadow:0 13px 30px rgba(79,70,229,.36);filter:brightness(1.04)}
.tca-homework-launch:focus-visible{outline:3px solid rgba(167,139,250,.48);outline-offset:3px}
.tca-homework-launch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

body.tca-homework-mode .tca-homework-launch{display:none!important}
body.tca-homework-mode #tca-viewer{
  cursor:grab;
  touch-action:pan-y pinch-zoom!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch
}
body.tca-homework-mode #tca-viewer:active{cursor:grabbing}
body.tca-homework-mode #tca-max-flow,
body.tca-homework-mode .tca-max-page-shell{
  touch-action:pan-y pinch-zoom!important
}
body.tca-homework-mode #tca-annotation-canvas{pointer-events:none!important}
body.tca-homework-mode #tca-toolbar [data-tool]:not([data-tool="cursor"]){opacity:.42!important;pointer-events:none!important;filter:saturate(.55)}
body.tca-homework-mode #tca-toolbar [data-tool="cursor"]{box-shadow:0 0 0 2px rgba(255,255,255,.78) inset,0 0 18px rgba(56,189,248,.32)!important}
body.tca-homework-mode .tca-max-page-shell{position:relative;transition:outline-color .15s ease,box-shadow .15s ease}
body.tca-homework-mode .tca-max-page-shell.tca-homework-selected{
  outline:4px solid rgba(22,163,74,.92);outline-offset:-4px;
  box-shadow:0 0 0 4px rgba(255,255,255,.78),0 0 0 8px rgba(22,163,74,.28),0 14px 34px rgba(15,23,42,.18)
}
.tca-homework-check{
  position:absolute;z-index:28;left:14px;top:14px;display:flex;align-items:center;gap:6px;
  min-width:44px;min-height:44px;padding:6px;border:0;border-radius:14px;
  background:rgba(15,23,42,.68);color:#fff;box-shadow:0 7px 18px rgba(15,23,42,.24),inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer;touch-action:manipulation
}
.tca-homework-check-box{width:27px;height:27px;display:grid;place-items:center;border:2px solid rgba(255,255,255,.95);border-radius:8px;background:rgba(255,255,255,.10);font-size:18px;font-weight:950;line-height:1}
.tca-homework-check-page{padding-right:3px;font:900 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;opacity:.95}
.tca-max-page-shell.tca-homework-selected .tca-homework-check{background:rgba(21,128,61,.94)}
.tca-max-page-shell.tca-homework-selected .tca-homework-check-box{background:#fff;color:#15803d;border-color:#fff}
.tca-homework-check:focus-visible{outline:3px solid rgba(167,139,250,.58);outline-offset:3px}

.tca-homework-bar{
  position:absolute;z-index:50;left:50%;bottom:48px;transform:translateX(-50%);
  width:min(620px,calc(100% - 30px));min-height:60px;padding:8px 9px 8px 12px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;
  border:1px solid rgba(148,163,184,.24);border-radius:18px;
  background:rgba(8,18,31,.94);color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.tca-homework-bar-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.tca-homework-bar-copy strong{font-size:13px;line-height:1.2;font-weight:950}
.tca-homework-bar-copy span{font-size:10.5px;line-height:1.25;color:#b9c8d7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tca-homework-cancel,.tca-homework-send{min-height:42px;border:0;border-radius:13px;padding:9px 13px;font:900 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;touch-action:manipulation}
.tca-homework-cancel{background:#23364b;color:#dce8f2;border:1px solid #34506b}
.tca-homework-send{background:linear-gradient(135deg,#7c3aed,#4f46e5 55%,#2563eb);color:#fff;box-shadow:0 8px 20px rgba(79,70,229,.28)}
.tca-homework-send:disabled{opacity:.42;cursor:default;box-shadow:none}
.tca-homework-send:not(:disabled):hover,.tca-homework-cancel:hover{filter:brightness(1.06)}

.tca-homework-sheet,.tca-homework-preparing{
  position:fixed;z-index:2147483150;inset:0;padding:22px;display:grid;place-items:center;
  background:rgba(2,8,18,.70);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)
}
.tca-homework-sheet-card,.tca-homework-preparing-card{
  width:min(480px,calc(100vw - 36px));max-height:min(720px,calc(100dvh - 36px));overflow:auto;
  border:1px solid var(--tca-hw-border);border-radius:25px;padding:21px;
  background:var(--tca-hw-surface);color:var(--tca-hw-ink);box-shadow:var(--tca-hw-shadow);position:relative
}
.tca-homework-sheet-card::before,.tca-homework-preparing-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:25px 25px 0 0;background:linear-gradient(90deg,#7c3aed,#4f46e5,#0ea5e9,#22c55e)}
.tca-homework-sheet-head{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:13px;margin-bottom:12px}
.tca-homework-sheet-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#7c3aed,#4f46e5 55%,#2563eb);color:#fff;box-shadow:0 10px 24px rgba(79,70,229,.24)}
.tca-homework-sheet-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tca-homework-sheet h2,.tca-homework-preparing h2{margin:0;font-size:22px;line-height:1.12;letter-spacing:-.02em}
.tca-homework-summary{margin:4px 0 0;color:var(--tca-hw-muted);font-size:13px;line-height:1.42;font-weight:720}
.tca-homework-pages{margin:13px 0 0;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,rgba(124,58,237,.07),rgba(37,99,235,.06));border:1px solid rgba(124,58,237,.12);font-size:12px;line-height:1.45;font-weight:820;color:#334155}
.tca-homework-share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.tca-homework-share-option{min-height:96px;padding:13px;border:1px solid #dbe5ed;border-radius:17px;background:#f8fbfd;color:#17293a;text-align:left;cursor:pointer;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.tca-homework-share-option:hover{transform:translateY(-1px);border-color:#a78bfa;box-shadow:0 10px 24px rgba(79,70,229,.10)}
.tca-homework-share-option svg{width:25px;height:25px;fill:none;stroke:#5b21b6;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tca-homework-share-option span{display:flex;flex-direction:column;gap:4px}
.tca-homework-share-option strong{font-size:13px;line-height:1.18;font-weight:950}
.tca-homework-share-option small{font-size:10.5px;line-height:1.3;color:#607387;font-weight:700}
.tca-homework-privacy{margin-top:13px;display:flex;align-items:flex-start;gap:8px;color:#526579;font-size:10.8px;line-height:1.4;font-weight:720}
.tca-homework-privacy svg{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:#16a34a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tca-homework-sheet-close{width:100%;min-height:40px;margin-top:13px;border:1px solid #d9e3eb;border-radius:13px;background:#eef3f7;color:#334155;font:900 12px/1 system-ui;cursor:pointer}

.tca-homework-preparing-card{text-align:center;width:min(410px,calc(100vw - 36px));padding:26px 22px 22px}
.tca-homework-spinner{width:48px;height:48px;margin:0 auto 15px;border-radius:50%;border:5px solid rgba(124,58,237,.14);border-top-color:#7c3aed;animation:tca-hw-spin .8s linear infinite}
@keyframes tca-hw-spin{to{transform:rotate(360deg)}}
.tca-homework-preparing p{margin:7px 0 0;color:var(--tca-hw-muted);font-size:12px;line-height:1.45;font-weight:720}
.tca-homework-progress{height:9px;margin-top:17px;border-radius:999px;background:#e7edf3;overflow:hidden}
.tca-homework-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c3aed,#2563eb,#22c55e);transition:width .18s ease}

html[data-bs-theme="dark"] .tca-homework-sheet-card,html[data-bs-theme="dark"] .tca-homework-preparing-card,body.dark-mode .tca-homework-sheet-card,body.dark-mode .tca-homework-preparing-card,body.theme-dark .tca-homework-sheet-card,body.theme-dark .tca-homework-preparing-card{
  --tca-hw-ink:#edf7ff;--tca-hw-muted:#b5c7d5;--tca-hw-surface:rgba(11,24,37,.988);--tca-hw-border:#354b64;--tca-hw-shadow:0 30px 90px rgba(0,0,0,.56),0 1px 0 rgba(255,255,255,.04) inset
}
html[data-bs-theme="dark"] .tca-homework-pages,body.dark-mode .tca-homework-pages,body.theme-dark .tca-homework-pages{background:linear-gradient(135deg,#17233a,#12283c);border-color:#344b65;color:#d9e8f3}
html[data-bs-theme="dark"] .tca-homework-share-option,body.dark-mode .tca-homework-share-option,body.theme-dark .tca-homework-share-option{background:#102131;border-color:#2b4358;color:#edf7ff}
html[data-bs-theme="dark"] .tca-homework-share-option small,body.dark-mode .tca-homework-share-option small,body.theme-dark .tca-homework-share-option small{color:#abc0d0}
html[data-bs-theme="dark"] .tca-homework-privacy,body.dark-mode .tca-homework-privacy,body.theme-dark .tca-homework-privacy{color:#b7c9d7}
html[data-bs-theme="dark"] .tca-homework-sheet-close,body.dark-mode .tca-homework-sheet-close,body.theme-dark .tca-homework-sheet-close{background:#172a3b;border-color:#31506a;color:#dcebf6}
html[data-bs-theme="dark"] .tca-homework-progress,body.dark-mode .tca-homework-progress,body.theme-dark .tca-homework-progress{background:#1d3347}

@media(max-width:780px){
  .tca-homework-launch{top:64px;right:max(9px,env(safe-area-inset-right));min-height:36px;padding:8px 10px;font-size:11px}
  .tca-homework-bar{position:fixed;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));transform:none;width:auto;min-height:58px;padding:7px 8px 7px 10px;border-radius:16px;grid-template-columns:auto minmax(0,1fr) auto}
  .tca-homework-bar-copy strong{font-size:12px}.tca-homework-bar-copy span{font-size:9.8px}
  .tca-homework-cancel,.tca-homework-send{min-height:40px;padding:8px 11px;font-size:11px}
  .tca-homework-check{left:10px;top:10px;min-width:46px;min-height:46px;border-radius:14px}.tca-homework-check-box{width:28px;height:28px}
  .tca-homework-sheet,.tca-homework-preparing{padding:0;align-items:end}
  .tca-homework-sheet-card,.tca-homework-preparing-card{width:100%;max-width:none;max-height:min(74dvh,620px);border-radius:24px 24px 0 0;padding:19px 18px calc(18px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0}
  .tca-homework-sheet-card::before,.tca-homework-preparing-card::before{border-radius:24px 24px 0 0}
  .tca-homework-share-options{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .tca-homework-launch{top:60px;max-width:136px;padding:7px 9px}.tca-homework-launch span{overflow:hidden;text-overflow:ellipsis}
  .tca-homework-bar{grid-template-columns:auto minmax(0,1fr) auto;gap:7px}.tca-homework-bar-copy span{display:none}.tca-homework-cancel{padding:8px 9px}.tca-homework-send{padding:8px 10px}
  .tca-homework-sheet-head{grid-template-columns:44px minmax(0,1fr);gap:10px}.tca-homework-sheet-icon{width:44px;height:44px;border-radius:14px}.tca-homework-sheet-icon svg{width:24px;height:24px}.tca-homework-sheet h2,.tca-homework-preparing h2{font-size:19px}
  .tca-homework-summary{font-size:12px}.tca-homework-pages{font-size:11.2px}
  .tca-homework-share-options{grid-template-columns:1fr;gap:8px}.tca-homework-share-option{min-height:76px;grid-template-columns:34px minmax(0,1fr);padding:11px 12px}.tca-homework-share-option svg{width:22px;height:22px}
}
@media(prefers-reduced-motion:reduce){.tca-homework-launch,.tca-homework-share-option,.tca-homework-progress span{transition:none}.tca-homework-spinner{animation:none}}

/* v0.8.40 · kitap sayfa numarası etiketi */
.tca-homework-check-page{min-width:34px;text-align:left;white-space:nowrap}
@media(max-width:520px){.tca-homework-check-page{font-size:10.5px;min-width:32px}}

/* v0.8.41 · Sığdır görünümü + sayfaya dokunarak seçim */
body.tca-homework-mode #tca-stage{position:relative!important}
body.tca-homework-mode .tca-max-page-shell,
body.tca-homework-mode #tca-stage{cursor:pointer}
body.tca-homework-mode #tca-stage.tca-homework-selected-fit{
  outline:4px solid rgba(22,163,74,.92);outline-offset:-4px;
  box-shadow:0 0 0 4px rgba(255,255,255,.78),0 0 0 8px rgba(22,163,74,.28),0 14px 34px rgba(15,23,42,.18)
}
.tca-homework-check-fit{left:14px!important;top:14px!important;z-index:45!important}
#tca-stage.tca-homework-selected-fit .tca-homework-check-fit{background:rgba(21,128,61,.94)}
#tca-stage.tca-homework-selected-fit .tca-homework-check-fit .tca-homework-check-box{background:#fff;color:#15803d;border-color:#fff}
body.tca-homework-mode .tca-max-page-shell::after,
body.tca-homework-mode #tca-stage::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.05);transition:box-shadow .14s ease
}
body.tca-homework-mode .tca-max-page-shell:hover::after,
body.tca-homework-mode #tca-stage:hover::after{box-shadow:inset 0 0 0 2px rgba(124,58,237,.18)}
@media(max-width:780px){.tca-homework-check-fit{left:10px!important;top:10px!important}}


/* v0.8.60 · Paylaşım öncesi bilgilendirme kartı — onaylı görünüm */
.tca-homework-sheet-card{
  width:min(520px,calc(100vw - 36px));
  padding:30px 26px 24px;
  border-radius:30px;
  text-align:center;
  background:linear-gradient(180deg,rgba(255,255,255,.995),rgba(250,252,255,.995));
  border-color:#dfe9f5;
  box-shadow:0 34px 100px rgba(6,18,38,.34),0 1px 0 rgba(255,255,255,.9) inset;
}
.tca-homework-sheet-card::before{height:5px;border-radius:30px 30px 0 0;background:linear-gradient(90deg,#6d4df6,#3282f4,#18b7df,#28c983)}
.tca-homework-sheet-grabber{display:none;width:62px;height:6px;margin:0 auto 25px;border-radius:999px;background:#bac4d1}
.tca-homework-sheet-head{display:block;margin:0 0 22px;text-align:center}
.tca-homework-sheet-icon{display:none!important}
.tca-homework-sheet h2{margin:0;color:#0e1a36;font-size:34px;line-height:1.06;font-weight:950;letter-spacing:-.035em;text-align:center}
.tca-homework-summary{margin:10px 0 0;color:#8593a8;font-size:18px;line-height:1.3;font-weight:850;text-align:center}
.tca-homework-pages{margin:0;padding:20px 18px 22px;border-radius:22px;background:linear-gradient(135deg,#f2f7ff,#f5fbff);border:1px solid #dce9f8;color:#16233d;text-align:center}
.tca-homework-pages-title{margin:0 0 14px;font-size:18px;line-height:1.2;font-weight:950;color:#1d2b46;text-align:center}
.tca-homework-page-chips{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;max-height:178px;overflow:auto;padding:1px 0}
.tca-homework-page-chip{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:104px;padding:10px 15px;border:1px solid #cfe1fb;border-radius:17px;background:linear-gradient(180deg,#fff,#f6faff);box-shadow:0 5px 14px rgba(37,99,235,.07);color:#111d39;font-size:17px;line-height:1;font-weight:950;white-space:nowrap}
.tca-homework-page-chip[data-status="ok"]{color:#17213b}.tca-homework-page-chip[data-status="ok"]::first-letter{color:#2563eb}
.tca-homework-page-chip[data-status="scanning"]{min-width:150px;font-size:13px;color:#6d4df6}
.tca-homework-page-chip[data-status="miss"]{color:#64748b}
.tca-homework-share-options{display:block;margin-top:22px}
.tca-homework-share-option{width:100%;min-height:70px;padding:14px 24px;border:0;border-radius:19px;background:linear-gradient(100deg,#3947f6 0%,#146ef5 48%,#0ea5e9 100%);box-shadow:0 13px 28px rgba(37,99,235,.28),0 1px 0 rgba(255,255,255,.24) inset;color:#fff;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.tca-homework-share-option:hover{transform:translateY(-1px);border-color:transparent;box-shadow:0 16px 32px rgba(37,99,235,.32);filter:saturate(1.05)}
.tca-homework-share-option:active{transform:translateY(1px) scale(.995)}
.tca-homework-share-option:focus-visible{outline:4px solid rgba(59,130,246,.28);outline-offset:3px}
.tca-homework-share-option-icon{display:grid;place-items:center;flex:0 0 auto}.tca-homework-share-option-icon svg{width:29px;height:29px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tca-homework-share-option strong{font-size:22px;line-height:1;font-weight:950;color:#fff;letter-spacing:-.02em}
.tca-homework-share-option small{display:none}
.tca-homework-share-helper{max-width:390px;margin:17px auto 0;color:#7d8ba0;font-size:14px;line-height:1.4;font-weight:760;text-align:center}
.tca-homework-sheet-close{width:100%;min-height:54px;margin-top:21px;border:1px solid #d2deeb;border-radius:18px;background:linear-gradient(180deg,#f7faff,#eef4fa);color:#34445d;font:900 17px/1 system-ui;box-shadow:0 4px 12px rgba(30,64,175,.04);cursor:pointer}

html[data-bs-theme="dark"] .tca-homework-sheet-card,body.dark-mode .tca-homework-sheet-card,body.theme-dark .tca-homework-sheet-card{background:linear-gradient(180deg,#102132,#0c1a28);border-color:#31506a}
html[data-bs-theme="dark"] .tca-homework-sheet h2,body.dark-mode .tca-homework-sheet h2,body.theme-dark .tca-homework-sheet h2{color:#f2f8ff}
html[data-bs-theme="dark"] .tca-homework-pages,body.dark-mode .tca-homework-pages,body.theme-dark .tca-homework-pages{background:linear-gradient(135deg,#15283c,#122236);border-color:#2f4a64}
html[data-bs-theme="dark"] .tca-homework-pages-title,body.dark-mode .tca-homework-pages-title,body.theme-dark .tca-homework-pages-title{color:#eef6ff}
html[data-bs-theme="dark"] .tca-homework-page-chip,body.dark-mode .tca-homework-page-chip,body.theme-dark .tca-homework-page-chip{background:linear-gradient(180deg,#183047,#13283b);border-color:#345471;color:#e9f4ff;box-shadow:none}
html[data-bs-theme="dark"] .tca-homework-share-helper,body.dark-mode .tca-homework-share-helper,body.theme-dark .tca-homework-share-helper{color:#a9bacb}

@media(max-width:780px){
  .tca-homework-sheet-card{width:100%;max-width:none;max-height:min(82dvh,720px);border-radius:28px 28px 0 0;padding:21px 22px calc(24px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0}
  .tca-homework-sheet-card::before{border-radius:28px 28px 0 0}
  .tca-homework-sheet-grabber{display:block;margin-bottom:20px}
  .tca-homework-sheet h2{font-size:31px}
  .tca-homework-summary{font-size:17px;margin-top:8px}
  .tca-homework-pages{padding:18px 14px 20px;border-radius:20px}
  .tca-homework-pages-title{font-size:17px;margin-bottom:13px}
  .tca-homework-page-chips{gap:9px;max-height:176px}
  .tca-homework-page-chip{min-width:94px;min-height:46px;padding:9px 13px;font-size:16px;border-radius:16px}
  .tca-homework-share-option{min-height:68px;border-radius:18px}
  .tca-homework-share-option strong{font-size:21px}
  .tca-homework-share-helper{font-size:13.5px;max-width:350px}
  .tca-homework-sheet-close{min-height:54px;font-size:17px;border-radius:17px}
}
@media(max-width:420px){
  .tca-homework-sheet-card{padding-left:17px;padding-right:17px}
  .tca-homework-sheet h2{font-size:29px}
  .tca-homework-page-chip{min-width:84px;padding-left:11px;padding-right:11px;font-size:15px}
  .tca-homework-share-option-icon svg{width:26px;height:26px}
  .tca-homework-share-option strong{font-size:20px}
}
