.ske-study-shell{display:grid;gap:18px}.ske-study-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ske-study-header h2{margin:4px 0}.ske-study-header p{margin:0;color:var(--muted,#66736d)}.ske-study-message{min-height:1.25em;margin:0;color:var(--muted,#66736d)}.ske-study-message.problem{color:#a3483e}.ske-study-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ske-study-row{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;text-align:left;padding:16px 4px;border:0;border-bottom:1px solid rgba(77,94,83,.18);background:transparent;color:inherit}.ske-study-row span:nth-child(2){display:grid;gap:4px}.ske-study-row small{color:var(--muted,#66736d)}.ske-study-status{width:10px;height:10px;border-radius:50%;background:#76966b}.ske-study-status.waiting{background:#c9974b}.ske-study-status.complete{background:#587c92}.ske-study-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.ske-study-toolbar label{display:grid;gap:5px;flex:1;min-width:170px}.ske-study-toolbar input,.ske-study-toolbar select,.ske-study-topic input,.ske-study-source input,.ske-study-share input{border:1px solid rgba(77,94,83,.28);border-radius:12px;padding:11px;background:var(--surface,#fff);color:inherit;font:inherit}.ske-study-topic{display:grid;gap:5px}.ske-study-readonly,.ske-study-shared-note{padding:10px 14px;border-radius:12px;background:rgba(112,142,103,.12)}.ske-study-cards{display:grid;gap:14px}.ske-study-card{border:1px solid rgba(77,94,83,.22);border-left:5px solid var(--card-accent);border-radius:18px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 8px 24px rgba(36,48,40,.06)}.ske-study-card header{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid rgba(77,94,83,.14)}.ske-study-card-type{text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;color:var(--muted,#66736d)}.ske-study-card header input{min-width:0;flex:1;border:0;background:transparent;font:600 1rem/1.2 inherit;color:inherit}.ske-study-card-actions{display:flex;gap:3px}.ske-study-card-actions button{border:0;background:transparent;padding:7px;color:inherit}.ske-study-card-body{padding:14px;display:grid;gap:12px}.ske-study-card.collapsed .ske-study-card-body{display:none}.ske-study-card textarea{width:100%;min-height:150px;resize:vertical;border:0;outline:0;background:transparent;color:inherit;font:inherit;line-height:1.6}.ske-study-source{display:flex;gap:8px;align-items:center}.ske-study-source input{flex:1}.ske-study-source a{white-space:nowrap}.ske-study-colors{display:flex;gap:8px}.ske-study-colors button{width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.18);background:var(--swatch)}.ske-study-add{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;border:1px solid rgba(77,94,83,.2);border-radius:16px;background:var(--surface,#fff);box-shadow:0 8px 24px rgba(36,48,40,.12);z-index:4}.ske-study-add span{font-weight:700;margin-right:4px}.ske-study-add button,.ske-study-share button{border:1px solid rgba(77,94,83,.28);border-radius:10px;padding:9px 12px;background:var(--surface,#fff);color:inherit}.ske-study-share{border:1px solid rgba(77,94,83,.2);border-radius:16px;padding:14px}.ske-study-share summary{font-weight:700;cursor:pointer}.ske-study-share>div{display:flex;gap:8px;margin-top:10px}.ske-study-share input{flex:1;min-width:0}.ske-study-members{flex-wrap:wrap}.ske-study-members span{display:inline-flex;gap:6px;align-items:center;padding:7px 9px;border-radius:999px;background:rgba(112,142,103,.12)}.ske-study-members span button{border:0;padding:0;background:transparent}@media(max-width:760px){.ske-study-list-grid{grid-template-columns:1fr}.ske-study-header{align-items:center}.ske-study-header p{display:none}.ske-study-toolbar{display:grid;grid-template-columns:1fr 1fr}.ske-study-toolbar>[data-back-studies]{grid-column:1/-1;justify-self:start}.ske-study-toolbar label:first-of-type{grid-column:1/-1}.ske-study-source,.ske-study-share>div{align-items:stretch;flex-direction:column}.ske-study-add{bottom:calc(84px + env(safe-area-inset-bottom));padding:10px}}


/* Compact study view: breathing room, readable measure, and inline tools. */
.ske-experience[data-phase="during"] .ske-stack{padding:clamp(16px,2.2vw,32px)}
.ske-study-shell{width:min(100%,1320px);margin:0 auto;gap:14px}
.ske-study-header{padding:2px 2px 8px}
.ske-study-message:empty{display:none}
.ske-study-toolbar{display:grid;grid-template-columns:auto minmax(260px,1fr) minmax(180px,.45fr) auto;align-items:end;padding:14px;border:1px solid rgba(77,94,83,.16);border-radius:18px;background:var(--surface,#fff)}
.ske-study-topic{margin:0 2px}
.ske-study-cards{gap:12px}
.ske-study-card{margin:0 2px;border-radius:16px}
.ske-study-card header{min-height:52px;padding:10px 16px}
.ske-study-card-body{padding:12px 16px 15px;gap:10px}
.ske-study-card textarea{min-height:84px;padding:0;overflow-y:auto}
.ske-study-source{padding-top:8px;border-top:1px solid rgba(77,94,83,.12)}
.ske-detected-scriptures{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(80,126,162,.09)}
.ske-detected-scriptures>span{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#4f718d}
.ske-detected-scriptures a{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:var(--surface,#fff);border:1px solid rgba(61,104,139,.24);color:#315f81;text-decoration:none;font-weight:650}
.ske-detected-scriptures a:hover{background:rgba(76,133,175,.1)}
.ske-study-add{position:static;margin:2px;box-shadow:none;border-style:dashed;background:rgba(255,255,255,.58)}
.ske-study-share{margin:0 2px}
@media(max-width:760px){
  .ske-experience[data-phase="during"] .ske-stack{padding:14px 12px calc(92px + env(safe-area-inset-bottom))}
  .ske-study-shell{gap:12px}
  .ske-study-toolbar{grid-template-columns:1fr 1fr;padding:12px}
  .ske-study-toolbar>[data-back-studies],.ske-study-toolbar label:first-of-type{grid-column:1/-1}
  .ske-study-header{padding-inline:2px}
  .ske-study-card{margin:0}
  .ske-study-card header{padding:9px 11px}
  .ske-study-card-body{padding:11px 12px 13px}
  .ske-study-card-type{font-size:.62rem}
  .ske-study-card-actions button{padding:8px 6px;min-width:32px}
  .ske-study-add{margin:0;padding:10px}
  .ske-study-add span{width:100%}
}


/* Glean-style inline scripture interaction and embedded reader. */
.ske-note-editor textarea{display:none}
.ske-note-editor.editing textarea{display:block}
.ske-note-editor.editing .ske-rich-note{display:none}
.ske-rich-note{min-height:84px;padding:1px 2px;white-space:normal;line-height:1.65;cursor:text}
.ske-rich-note>span{color:var(--muted,#89938e)}
.ske-inline-scripture{display:inline;padding:0;border:0;border-bottom:1px solid currentColor;background:transparent;color:#286f9c;font:inherit;line-height:inherit;cursor:pointer}
.ske-inline-scripture:hover{color:#174f73;background:rgba(90,159,201,.1)}
.ske-scripture-reader{position:fixed;z-index:10020;left:50%;top:50%;transform:translate(-50%,-50%);width:min(680px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 120px));border:1px solid rgba(67,105,145,.28);border-left:5px solid #6d8dc3;border-radius:18px;background:#f5f8fe;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px rgba(20,35,45,.34)}
.ske-scripture-reader>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid rgba(67,105,145,.16)}
.ske-scripture-reader>header>div{display:grid;gap:2px}
.ske-scripture-reader>header span{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:#4f718d}
.ske-scripture-reader>header button{border:0;background:transparent;font-size:1.25rem}
.ske-scripture-copy{padding:16px}
.ske-scripture-copy small{color:#60738a}
.ske-scripture-copy p{font-size:1.08rem;line-height:1.65;margin:8px 0 0}
.ske-reader-actions,.ske-reader-research-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 14px}
.ske-reader-actions button,.ske-reader-actions a,.ske-reader-research-actions button,.ske-reader-panel button,.ske-scripture-reader>[data-retry-scripture]{border:1px solid rgba(59,86,72,.34);border-radius:11px;padding:9px 13px;background:#fff;color:inherit;text-decoration:none;font-weight:650}
.ske-reader-actions a,.ske-reader-actions .primary{background:#506f55;color:#fff;border-color:#506f55}
.ske-reader-research-actions{padding-top:14px;border-top:1px solid rgba(67,105,145,.16)}
.ske-reader-research-actions button:first-child{color:#3d5f8c}
.ske-reader-research-actions button:last-child{color:#705886}
.ske-reader-panel{margin:0 16px 16px;padding:14px;border-radius:14px;background:#fff;border:1px solid rgba(67,105,145,.16);max-height:520px;overflow:auto}
.ske-reader-panel>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.ske-reader-panel article{padding:12px 0;border-top:1px solid rgba(67,105,145,.13)}
.ske-reader-panel article p{line-height:1.55}
.ske-guide-result{width:100%;display:grid;gap:4px;text-align:left;margin:7px 0}
.ske-guide-result span{font-size:.84rem;font-weight:400;color:#68736e}
.ske-reader-panel.article p{line-height:1.6}
.ske-reader-panel.article h4{margin:18px 0 7px}
.ske-reader-loading,.ske-reader-error{padding:16px;margin:0}
.ske-reader-error{color:#9b4038}
@media(max-width:760px){
  .ske-scripture-reader{left:12px;right:12px;top:calc(74px + env(safe-area-inset-top));bottom:calc(16px + env(safe-area-inset-bottom));transform:none;width:auto;max-height:none;border-radius:18px}
  .ske-reader-actions,.ske-reader-research-actions{display:grid;grid-template-columns:1fr}
  .ske-reader-actions button,.ske-reader-actions a,.ske-reader-research-actions button{text-align:center}
  .ske-reader-panel{margin:0 10px 12px}
}

.ske-study-tray{margin:0 2px;border:1px solid rgba(77,94,83,.18);border-radius:14px;background:rgba(255,255,255,.65);overflow:hidden}
.ske-study-tray>summary{padding:11px 14px;font-weight:700;cursor:pointer}.ske-study-tray>summary span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;border-radius:999px;background:rgba(77,111,84,.12)}
.ske-study-tray>div{padding:0 12px 12px}.ske-study-tray article{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px;border-top:1px solid rgba(77,94,83,.12)}
.ske-study-tray article p{margin:3px 0 0;color:var(--muted,#66736d);font-size:.88rem}.ske-study-tray article button{border:1px solid rgba(77,94,83,.24);border-radius:9px;padding:7px 9px;background:#fff}

/* Glean-style structured scripture blocks saved inside an SKE note. */
.ske-embedded-scripture{margin:16px 0;border:1px solid rgba(65,91,126,.22);border-left:5px solid #6d8dc3;border-radius:16px;background:#f3f6fc;overflow:hidden}
.ske-embedded-scripture>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid rgba(65,91,126,.15)}
.ske-embedded-scripture>header>div:first-child{display:grid;gap:3px;min-width:0}
.ske-embedded-scripture>header span{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:#526f98;font-weight:750}
.ske-embedded-scripture>header strong{font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ske-embedded-scripture>header>div:last-child{display:flex;gap:4px}
.ske-embedded-scripture>header button{border:0;background:transparent;color:#5b6770;font-size:1.15rem;padding:5px 8px}
.ske-embedded-scripture-body{padding:16px}
.ske-embedded-scripture-body>small{display:block;color:#66788c;margin-bottom:7px}
.ske-embedded-scripture-body>p{margin:0;font-size:1.06rem;line-height:1.65;color:#263b42}
.ske-embedded-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px;padding-top:13px;border-top:1px solid rgba(65,91,126,.15)}
.ske-embedded-actions button,.ske-embedded-actions a{border:1px solid rgba(59,86,72,.34);border-radius:11px;padding:9px 13px;background:#fff;color:inherit;text-decoration:none;font-weight:650}
.ske-embedded-actions a{background:#506f55;color:#fff;border-color:#506f55}
.ske-embedded-scripture.collapsed .ske-embedded-scripture-body{display:none}
.ske-reader-panel[data-selectable-reader]{user-select:text;-webkit-user-select:text}
.ske-reader-panel>header>div{display:grid;gap:2px}
.ske-reader-panel>header span{font-size:.78rem;color:#68736e;font-weight:400;text-transform:none;letter-spacing:0}
.ske-add-highlighted{position:sticky;top:0;z-index:2;width:100%;margin:0 0 10px;background:#705886!important;color:#fff!important;border-color:#705886!important}
@media(max-width:760px){
  .ske-embedded-scripture{margin:14px 0}
  .ske-embedded-scripture-body{padding:14px}
  .ske-embedded-actions{display:grid;grid-template-columns:1fr}
  .ske-embedded-actions button,.ske-embedded-actions a{text-align:center}
}

.ske-embedded-actions .notes{color:#3d5f8c}.ske-embedded-actions .guide{color:#705886}.ske-embedded-actions .notes,.ske-embedded-actions .guide{flex-basis:calc(50% - 5px);margin-top:4px}

.ske-add-highlighted.has-selection{box-shadow:0 0 0 3px rgba(112,88,134,.18)}.ske-add-highlighted.needs-selection{background:#a84e46!important;border-color:#a84e46!important}.ske-add-highlighted:disabled{opacity:1;background:#506f55!important;border-color:#506f55!important}

.ske-embedded-research-note{position:relative;margin:-4px 8px 18px 18px;padding:14px 42px 14px 16px;border-left:3px solid #b49bc1;border-radius:0 12px 12px 0;background:rgba(248,244,250,.82)}
.ske-embedded-research-note small{display:block;margin-bottom:7px;color:#705886;font-weight:700}
.ske-embedded-research-note p{margin:0;line-height:1.6;color:#2c3f43}
.ske-embedded-research-note>button{position:absolute;right:8px;top:8px;border:0;background:transparent;font-size:1.1rem;color:#69736e}

.ske-reader-panel article.ske-guide-result{display:block;width:100%;padding:8px 0;margin:0;border-top:1px solid rgba(67,105,145,.13)}
.ske-guide-result>button{display:grid;width:100%;gap:4px;text-align:left;margin:0}
.ske-guide-result>p{margin:8px 4px 2px;line-height:1.55;font-size:.92rem}
.ske-guide-result .ske-inline-scripture,.ske-reader-panel.article .ske-inline-scripture,.scripture-study-note .ske-inline-scripture{position:relative;z-index:1}

/* Scripture references remain text links inside research readers, not action buttons. */
.ske-scripture-reader .ske-inline-scripture,
.ske-reader-panel .ske-inline-scripture{
  display:inline;width:auto;min-width:0;margin:0;padding:0;border:0;border-bottom:1px solid currentColor;border-radius:0;
  background:transparent;color:#286f9c;font:inherit;font-weight:inherit;line-height:inherit;box-shadow:none;vertical-align:baseline;
}
.ske-scripture-reader .ske-inline-scripture:hover,
.ske-scripture-reader .ske-inline-scripture:focus{background:rgba(90,159,201,.1);color:#174f73}

/* Continuation writing is part of the note itself, not a separate sub-card. */
.ske-embed-after-editor{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.ske-embed-after-editor textarea{display:none;width:100%;min-height:120px;padding:4px 0 0;border:0;outline:0;resize:vertical;background:transparent;color:inherit;font:inherit;line-height:1.65}
.ske-embed-after-editor.editing textarea{display:block}
.ske-embed-after-editor.editing .ske-embed-after-rich{display:none}
.ske-embed-after-rich{min-height:120px;padding-top:4px;line-height:1.65;cursor:text;white-space:normal}


/* Empty continuation areas stay compact until the user chooses to write. */
.ske-embed-after-rich{min-height:0}
.ske-embed-after-editor.empty{min-height:0;margin:2px 0 8px}
.ske-embed-after-editor.empty textarea,
.ske-embed-after-editor.empty .ske-embed-after-rich{display:none}
.ske-start-continuation{display:none;width:auto;margin:0;padding:5px 8px;border:0;background:transparent;color:#66746e;font:inherit;font-size:.86rem;text-align:left}
.ske-embed-after-editor.empty .ske-start-continuation{display:inline-flex}
.ske-embed-after-editor.editing .ske-start-continuation{display:none}


/* Keep an unlabeled, nearly invisible tap target for optional continuation text. */
.ske-embed-after-editor.empty{min-height:10px;margin:0;cursor:text}
.ske-start-continuation{display:none!important}
