/* TwinMoonTales v1.43.7g – Pergament: Handoutflödet
   Endast visuella temaöverlagringar för kampanjtemat tmt-default. */
body[data-tmt-theme="tmt-default"] {
  --handout-parchment: #f2e2bd;
  --handout-parchment-light: #fbf2dc;
  --handout-parchment-deep: #dfc58e;
  --handout-ink: #3c281d;
  --handout-muted: #755b46;
  --handout-rust: #7f3528;
  --handout-rust-dark: #57231c;
  --handout-line: rgba(105, 67, 39, .48);
  --handout-blue: #385b70;
  --handout-blue-dark: #273f50;
  --handout-silver: #d7d6cf;
}

body[data-tmt-theme="tmt-default"] #slHandouts,
body[data-tmt-theme="tmt-default"] #handouts .player-handouts-workspace,
body[data-tmt-theme="tmt-default"] #slHandouts .handouts-library {
  color: var(--handout-ink);
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(107,66,34,.06)),
    var(--handout-parchment);
  border-color: var(--handout-line);
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 8px 24px rgba(61,35,20,.16);
}

body[data-tmt-theme="tmt-default"] #slHandouts h3,
body[data-tmt-theme="tmt-default"] #handouts h2,
body[data-tmt-theme="tmt-default"] #handouts h3,
body[data-tmt-theme="tmt-default"] .handout-title {
  color: var(--handout-rust-dark);
  text-shadow: 0 1px rgba(255,255,255,.55);
}

body[data-tmt-theme="tmt-default"] .handouts-help,
body[data-tmt-theme="tmt-default"] .player-handouts-help,
body[data-tmt-theme="tmt-default"] .handout-meta,
body[data-tmt-theme="tmt-default"] .handout-subtitle,
body[data-tmt-theme="tmt-default"] .handouts-status {
  color: var(--handout-muted);
}

body[data-tmt-theme="tmt-default"] .handout-category-filters {
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-filter-button,
body[data-tmt-theme="tmt-default"] .handout-category-button,
body[data-tmt-theme="tmt-default"] .handout-quick-action,
body[data-tmt-theme="tmt-default"] .handout-card-actions .small-button {
  color: #f7f5ef;
  background: linear-gradient(#52778c, var(--handout-blue-dark));
  border-color: #7895a5;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 2px 5px rgba(30,42,50,.2);
}

body[data-tmt-theme="tmt-default"] .handout-filter-button:hover,
body[data-tmt-theme="tmt-default"] .handout-category-button:hover,
body[data-tmt-theme="tmt-default"] .handout-quick-action:hover,
body[data-tmt-theme="tmt-default"] .handout-card-actions .small-button:hover {
  background: linear-gradient(#63899d, #304f62);
  border-color: #9aafba;
}

body[data-tmt-theme="tmt-default"] .handout-filter-button.active,
body[data-tmt-theme="tmt-default"] .handouts-upload-button,
body[data-tmt-theme="tmt-default"] .handout-share-save,
body[data-tmt-theme="tmt-default"] .handout-template-save,
body[data-tmt-theme="tmt-default"] .handout-category-save {
  color: #fff9eb;
  background: linear-gradient(#9c4a38, var(--handout-rust-dark));
  border-color: #b46d55;
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 2px 6px rgba(65,27,20,.24);
}

body[data-tmt-theme="tmt-default"] .handout-filter-button.active:hover,
body[data-tmt-theme="tmt-default"] .handouts-upload-button:hover,
body[data-tmt-theme="tmt-default"] .handout-share-save:hover,
body[data-tmt-theme="tmt-default"] .handout-template-save:hover,
body[data-tmt-theme="tmt-default"] .handout-category-save:hover {
  background: linear-gradient(#ac5944, #682a21);
  border-color: #c88770;
}

body[data-tmt-theme="tmt-default"] .handout-card,
body[data-tmt-theme="tmt-default"] .player-handout-card {
  color: var(--handout-ink);
  background:
    linear-gradient(145deg, rgba(255,255,255,.38), rgba(137,91,51,.08)),
    var(--handout-parchment-light);
  border-color: var(--handout-line);
  box-shadow: 0 4px 12px rgba(69,42,24,.15), inset 0 1px rgba(255,255,255,.65);
}

body[data-tmt-theme="tmt-default"] .handout-card:hover,
body[data-tmt-theme="tmt-default"] .player-handout-card:hover {
  border-color: rgba(126,64,43,.7);
  box-shadow: 0 7px 18px rgba(69,42,24,.21), inset 0 1px rgba(255,255,255,.72);
}

body[data-tmt-theme="tmt-default"] .handout-thumb,
body[data-tmt-theme="tmt-default"] .handout-thumb-button,
body[data-tmt-theme="tmt-default"] .sealed-handout-image {
  background-color: #cdb98e;
  border-color: rgba(101,65,39,.58);
}

body[data-tmt-theme="tmt-default"] .handout-share-label {
  color: #faf5e8;
  background: var(--handout-rust);
  border-color: #a96351;
}

body[data-tmt-theme="tmt-default"] .handouts-empty,
body[data-tmt-theme="tmt-default"] .handout-share-empty {
  color: var(--handout-muted);
  background: rgba(255,250,235,.45);
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-delete-button,
body[data-tmt-theme="tmt-default"] .handout-revoke-button,
body[data-tmt-theme="tmt-default"] .handout-textbox-delete {
  color: #fff3ee;
  background: linear-gradient(#974638, #61271f);
  border-color: #b87361;
}

body[data-tmt-theme="tmt-default"] .handout-template-backdrop,
body[data-tmt-theme="tmt-default"] .handout-template-editor-backdrop,
body[data-tmt-theme="tmt-default"] .handout-share-backdrop,
body[data-tmt-theme="tmt-default"] .handout-category-backdrop,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-backdrop {
  background: rgba(25,18,14,.68);
  backdrop-filter: blur(3px);
}

body[data-tmt-theme="tmt-default"] .handout-template-dialog,
body[data-tmt-theme="tmt-default"] .handout-template-editor,
body[data-tmt-theme="tmt-default"] .handout-share-dialog,
body[data-tmt-theme="tmt-default"] .handout-category-dialog,
body[data-tmt-theme="tmt-default"] .handout-document-viewer {
  color: var(--handout-ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.36), transparent 34%),
    linear-gradient(rgba(255,255,255,.1), rgba(113,71,37,.08)),
    var(--handout-parchment);
  border-color: rgba(111,68,39,.66);
  box-shadow: 0 22px 64px rgba(16,10,7,.48), inset 0 1px rgba(255,255,255,.7);
}

body[data-tmt-theme="tmt-default"] .handout-template-header,
body[data-tmt-theme="tmt-default"] .handout-template-editor-header,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-header {
  color: var(--handout-ink);
  background: linear-gradient(90deg, rgba(126,53,39,.14), rgba(255,250,232,.42));
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-template-header h3,
body[data-tmt-theme="tmt-default"] .handout-template-editor-header h3,
body[data-tmt-theme="tmt-default"] .handout-share-dialog h3,
body[data-tmt-theme="tmt-default"] .handout-category-dialog h3,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-title {
  color: var(--handout-rust-dark);
  text-shadow: 0 1px rgba(255,255,255,.6);
}

body[data-tmt-theme="tmt-default"] .handout-template-header p,
body[data-tmt-theme="tmt-default"] .handout-template-editor-note,
body[data-tmt-theme="tmt-default"] .handout-share-help,
body[data-tmt-theme="tmt-default"] .handout-category-help {
  color: var(--handout-muted);
}

body[data-tmt-theme="tmt-default"] .handout-template-close,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-close {
  color: var(--handout-ink);
  background: rgba(255,249,230,.78);
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-template-close:hover,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-close:hover {
  color: #fff7e9;
  background: var(--handout-rust);
  border-color: #b6765e;
}

body[data-tmt-theme="tmt-default"] .handout-template-card {
  color: var(--handout-ink);
  background: linear-gradient(#fff8e7, #e8d3a8);
  border-color: var(--handout-line);
  box-shadow: 0 4px 12px rgba(70,43,24,.14);
}

body[data-tmt-theme="tmt-default"] .handout-template-card:hover,
body[data-tmt-theme="tmt-default"] .handout-template-card:focus-visible {
  color: var(--handout-rust-dark);
  background: linear-gradient(#fffaf0, #efd9ae);
  border-color: var(--handout-rust);
  box-shadow: 0 7px 18px rgba(75,39,25,.23);
}

body[data-tmt-theme="tmt-default"] .handout-template-preview,
body[data-tmt-theme="tmt-default"] .handout-upload-preview {
  background: #cbb789;
  border-color: rgba(99,62,37,.5);
}

body[data-tmt-theme="tmt-default"] .handout-template-editor-body,
body[data-tmt-theme="tmt-default"] .handout-template-workspace,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-viewport {
  color: var(--handout-ink);
  background: rgba(115,76,43,.12);
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-template-editor-controls,
body[data-tmt-theme="tmt-default"] .handout-template-editor-actions,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-controls,
body[data-tmt-theme="tmt-default"] .handout-template-page-controls,
body[data-tmt-theme="tmt-default"] .handout-template-object-tools,
body[data-tmt-theme="tmt-default"] .handout-decoration-controls,
body[data-tmt-theme="tmt-default"] .handout-image-object-controls,
body[data-tmt-theme="tmt-default"] .handout-layer-controls,
body[data-tmt-theme="tmt-default"] .handout-history-controls,
body[data-tmt-theme="tmt-default"] .handout-text-format {
  color: var(--handout-ink);
  background: rgba(255,248,226,.75);
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-template-editor input,
body[data-tmt-theme="tmt-default"] .handout-template-editor select,
body[data-tmt-theme="tmt-default"] .handout-template-editor textarea,
body[data-tmt-theme="tmt-default"] .handout-share-dialog input,
body[data-tmt-theme="tmt-default"] .handout-category-dialog input,
body[data-tmt-theme="tmt-default"] .handout-category-dialog select {
  color: var(--handout-ink);
  background: #fff9e9;
  border-color: rgba(103,65,38,.58);
  accent-color: var(--handout-rust);
  box-shadow: inset 0 1px 3px rgba(78,48,27,.12);
}

body[data-tmt-theme="tmt-default"] .handout-template-editor input:focus,
body[data-tmt-theme="tmt-default"] .handout-template-editor select:focus,
body[data-tmt-theme="tmt-default"] .handout-template-editor textarea:focus,
body[data-tmt-theme="tmt-default"] .handout-share-dialog input:focus,
body[data-tmt-theme="tmt-default"] .handout-category-dialog input:focus,
body[data-tmt-theme="tmt-default"] .handout-category-dialog select:focus {
  border-color: var(--handout-rust);
  outline-color: rgba(127,53,40,.28);
}

body[data-tmt-theme="tmt-default"] .handout-template-editor button:not(.handout-template-save):not(.handout-textbox-delete),
body[data-tmt-theme="tmt-default"] .handout-share-dialog button:not(.handout-share-save),
body[data-tmt-theme="tmt-default"] .handout-category-dialog button:not(.handout-category-save),
body[data-tmt-theme="tmt-default"] .handout-document-viewer-controls button {
  color: #f8f7f2;
  background: linear-gradient(#52778c, var(--handout-blue-dark));
  border-color: #7895a5;
}

body[data-tmt-theme="tmt-default"] .handout-share-player,
body[data-tmt-theme="tmt-default"] .handout-category-option,
body[data-tmt-theme="tmt-default"] .handout-share-access {
  color: var(--handout-ink);
  background: rgba(255,249,230,.62);
  border-color: var(--handout-line);
}

body[data-tmt-theme="tmt-default"] .handout-share-player:hover,
body[data-tmt-theme="tmt-default"] .handout-category-option:hover {
  background: rgba(255,252,239,.92);
  border-color: rgba(127,53,40,.62);
}

body[data-tmt-theme="tmt-default"] .handout-share-access legend {
  color: var(--handout-rust-dark);
}

body[data-tmt-theme="tmt-default"] .handout-template-stage-wrap {
  background: #b9a67d;
  border-color: rgba(91,57,34,.55);
  box-shadow: inset 0 0 20px rgba(59,37,22,.18);
}

body[data-tmt-theme="tmt-default"] .handout-template-stage {
  box-shadow: 0 8px 24px rgba(45,28,17,.3);
}

body[data-tmt-theme="tmt-default"] .handout-template-textbox {
  border-color: rgba(105,61,38,.62);
}

body[data-tmt-theme="tmt-default"] .handout-template-textbox:focus-within,
body[data-tmt-theme="tmt-default"] .handout-template-decoration.is-selected,
body[data-tmt-theme="tmt-default"] .handout-template-image-object.is-selected {
  outline-color: var(--handout-rust);
}

body[data-tmt-theme="tmt-default"] .handout-document-viewer-pages {
  color: var(--handout-muted);
}

body[data-tmt-theme="tmt-default"] .handout-document-viewer-image {
  box-shadow: 0 8px 24px rgba(48,29,17,.32);
}

body[data-tmt-theme="tmt-default"] .handout-template-grid,
body[data-tmt-theme="tmt-default"] .handout-share-players,
body[data-tmt-theme="tmt-default"] .handout-template-editor-controls,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-viewport {
  scrollbar-color: rgba(116,69,41,.72) rgba(230,207,161,.48);
}

body[data-tmt-theme="tmt-default"] .handout-template-grid::-webkit-scrollbar-thumb,
body[data-tmt-theme="tmt-default"] .handout-share-players::-webkit-scrollbar-thumb,
body[data-tmt-theme="tmt-default"] .handout-template-editor-controls::-webkit-scrollbar-thumb,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-viewport::-webkit-scrollbar-thumb {
  background: rgba(116,69,41,.72);
  border-color: rgba(245,230,195,.72);
}

body[data-tmt-theme="tmt-default"] .handout-template-grid::-webkit-scrollbar-track,
body[data-tmt-theme="tmt-default"] .handout-share-players::-webkit-scrollbar-track,
body[data-tmt-theme="tmt-default"] .handout-template-editor-controls::-webkit-scrollbar-track,
body[data-tmt-theme="tmt-default"] .handout-document-viewer-viewport::-webkit-scrollbar-track {
  background: rgba(230,207,161,.48);
}


body[data-tmt-theme="tmt-default"] .handout-upload-preview small {
  color: var(--handout-rust-dark);
  font-weight: 700;
  text-shadow: 0 1px rgba(255,255,255,.55);
}
