/* TickNotes additional paper layouts. Inherits StudyTick colors and privacy controls. */
.tick-layout-chooser{background:var(--tick-ui);border:1px solid var(--sc-border,#d5ddd7);border-radius:16px;margin:0 0 18px;padding:17px 19px;box-shadow:0 3px 15px rgba(23,39,31,.035)}
.tick-layout-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--tick-accent);margin:0 0 11px}
#tickLayoutChoices{display:flex;gap:8px;flex-wrap:wrap}
#tickLayoutChoices button{min-height:42px;padding:9px 13px;background:var(--sc-button-bg,#e8f3ec);border:1px solid var(--sc-button-border,#b5d4c3);border-radius:12px;color:var(--sc-button-text,#285c48);font-weight:680;font-size:13px}
#tickLayoutChoices button:hover{background:var(--sc-accent-hover,#d6ede0)}
#tickLayoutChoices button[aria-pressed="true"]{background:var(--sc-accent-soft,#dcefe5);border-color:var(--tick-accent);box-shadow:inset 0 -2px 0 var(--tick-accent);font-weight:800}
.tick-layout-caption{font-size:12px;color:var(--tick-muted);margin:10px 0 0}
.tick-layout-paper{padding:clamp(20px,3vw,38px);min-height:630px}
.tick-layout-paper .tick-paper-title{margin-bottom:8px}
.tick-layout-paper .tick-paper-title h2{letter-spacing:.075em;font-size:clamp(22px,3vw,34px)}
.tick-layout-date{text-align:right;color:var(--tick-muted);font-size:12px;margin:0 0 19px}
.tick-layout-field{display:flex;flex-direction:column;gap:5px;min-width:0;color:inherit}
.tick-layout-field-label{font-size:12px;font-weight:720;color:var(--tick-paper-ink)}
.tick-layout-input{width:100%;min-width:0;max-width:100%;min-height:37px;padding:8px 10px;border:1px solid var(--tick-paper-line);border-radius:7px;background:transparent;color:var(--tick-paper-ink);font:400 14px/1.5 Inter,"Segoe UI",sans-serif;outline:0}
.tick-layout-input::placeholder{color:var(--tick-paper-ink);opacity:.4}
textarea.tick-layout-input{resize:vertical;min-height:55px}
.tick-layout-input:focus{border-color:var(--tick-accent);box-shadow:0 0 0 2px rgba(41,145,104,.12)}
.tick-book-spread{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:0;border:1px solid var(--tick-paper-line);border-radius:3px;background:var(--tick-page)}
.tick-book-leaf{padding:17px 15px 20px;min-width:0;overflow:hidden}
.tick-book-leaf:first-child{border-right:1px solid var(--tick-paper-line)}
.tick-book-heading{color:#aa94c3;font:800 clamp(21px,3vw,29px)/1.2 Inter,"Segoe UI",sans-serif;text-decoration:underline;text-underline-offset:5px;letter-spacing:.02em;margin:0 0 15px}
html[data-theme="dark"] .tick-book-heading{color:#d8bee6}
.tick-book-spiral{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:2px;padding:18px 0;background:linear-gradient(to right,transparent 0%,rgba(92,110,99,.13) 40%,rgba(233,238,235,.38) 50%,rgba(92,110,99,.13) 60%,transparent 100%)}
.tick-book-spiral>span{display:block;width:27px;height:9px;border:2px solid #829189;border-radius:50%;background:linear-gradient(#f8fbfa,#a0aaa3 47%,#f7f7f5);box-shadow:0 1px 2px #0002}
.tick-box-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-left:1px solid var(--tick-paper-line);border-top:1px solid var(--tick-paper-line)}
.tick-box-cell{display:flex;flex-direction:column;gap:4px;height:96px;border-right:1px solid var(--tick-paper-line);border-bottom:1px solid var(--tick-paper-line);padding:7px 8px;min-width:0}
.tick-box-number{font-size:11px;font-style:italic;color:var(--tick-paper-ink);opacity:.75}
.tick-box-cell textarea{flex:1;min-width:0;width:100%;resize:none;line-height:1.35;background:transparent;border:0;outline:none;color:var(--tick-paper-ink);font:13px/1.3 Inter,"Segoe UI",sans-serif}
.tick-box-cell:focus-within{outline:2px solid var(--tick-accent);outline-offset:-2px}
.tick-bullet-grid{display:grid;grid-template-columns:minmax(0,1fr)}
.tick-bullet-line{display:flex;align-items:center;min-height:43px;gap:10px;border-bottom:1px solid var(--tick-paper-line)}
.tick-bullet-line input[type=checkbox]{appearance:none;flex:0 0 23px;width:23px;height:23px;margin:0;border:1px solid var(--tick-paper-ink);border-radius:50%;background:transparent;cursor:pointer}
.tick-bullet-line input[type=checkbox]:checked{background:var(--tick-accent);box-shadow:inset 0 0 0 5px var(--tick-page)}
.tick-bullet-line input[type=text]{flex:1;width:100%;min-width:0;background:transparent;border:0;outline:0;color:var(--tick-paper-ink);font:13px Inter,"Segoe UI",sans-serif;padding:9px 0}
.tick-bullet-line:has(input:checked) input[type=text]{text-decoration:line-through;opacity:.62}
.tick-layout-add{display:block;margin:16px auto 0;padding:9px 14px;border:1px solid var(--tick-paper-line);border-radius:9px;color:var(--tick-paper-ink);background:transparent;font-size:13px;font-weight:700}
.tick-layout-add:hover:not(:disabled){border-color:var(--tick-accent);background:var(--sc-accent-soft,#dcefe5)}
.tick-layout-add:disabled{opacity:.45;cursor:default}
.tick-cornell-page,.tick-outline-page{width:min(980px,100%);margin:auto}
.tick-cornell-page> .tick-layout-field:first-child{padding:10px 12px 14px;background:rgba(219,163,184,.16);border:1px solid var(--tick-paper-line);margin-bottom:12px}
.tick-cornell-page> .tick-layout-field:first-child .tick-layout-input{background:var(--tick-page);font-size:16px}
.tick-cornell-columns{display:grid;grid-template-columns:minmax(175px,31%) minmax(0,1fr);gap:12px;min-height:470px}
.tick-cornell-cues,.tick-cornell-notes,.tick-cornell-summary{padding:15px;border:1px solid var(--tick-paper-line)}
.tick-cornell-page h3{font:750 16px Georgia,serif;color:var(--tick-paper-ink);margin:0 0 12px;display:inline-block;border-bottom:2px solid var(--tick-accent);padding:0 0 3px}
.tick-cornell-cues .tick-layout-input,.tick-cornell-notes .tick-layout-input{min-height:365px;border:0;border-radius:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,var(--tick-paper-line) 29px,var(--tick-paper-line) 30px);line-height:30px;resize:vertical;padding:0 4px}
.tick-cornell-summary{margin-top:12px}
.tick-cornell-summary .tick-layout-input{min-height:120px}
.tick-outline-page{max-width:850px}
.tick-outline-page> .tick-layout-field{padding:10px 0 22px;border-bottom:1px solid var(--tick-paper-line)}
.tick-outline-section{padding:12px 0 9px}
.tick-outline-section h3{font:800 22px/1.2 Georgia,serif;margin:4px 0 17px;color:var(--tick-paper-ink)}
.tick-outline-section .tick-layout-field{flex-direction:row;align-items:center;margin:9px 0;gap:14px}
.tick-outline-section .tick-layout-field-label{flex:0 0 24px;white-space:nowrap;font:700 16px Georgia,serif}
.tick-outline-section .tick-layout-input{border:0;border-bottom:1px solid var(--tick-paper-line);border-radius:0;padding:6px 4px;background:transparent}
.tick-outline-subsection{margin:10px 0 17px 26px}
.tick-outline-nested{margin-left:40px}
.tick-map-scroll{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--tick-paper-line);border-radius:12px;background:radial-gradient(circle,rgba(139,185,163,.09),transparent 73%);padding:0}
.tick-map-board{width:100%;min-width:760px;aspect-ratio:10/7;position:relative}
.tick-map-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tick-map-connectors line{stroke:var(--tick-paper-ink);stroke-width:1.6;opacity:.58}
.tick-map-node{position:absolute;width:21%;height:16%;padding:9px;border:1.5px solid var(--tick-paper-ink);border-radius:16px;background:var(--tick-page);display:flex;flex-direction:column;justify-content:center;box-shadow:0 4px 14px #0000000a}
.tick-map-node .tick-layout-field-label{font-size:10px}
.tick-map-node textarea.tick-layout-input{font-size:12px;line-height:1.2;padding:5px;resize:none;min-height:0;flex:1;border:0;overflow:auto}
.tick-map-center{width:25%;height:23%;left:37.5%;top:38.5%;border-width:2px;background:var(--sc-accent-soft,#e6f3eb);color:var(--tick-paper-ink)}
html[data-theme="dark"] .tick-map-center{background:#2b4b3c}
.tick-map-node-1{left:39.5%;top:3%}.tick-map-node-2{left:68%;top:16%}.tick-map-node-3{left:78%;top:42%}.tick-map-node-4{left:68%;top:68%}.tick-map-node-5{left:39.5%;top:81%}.tick-map-node-6{left:11%;top:68%}.tick-map-node-7{left:1%;top:42%}.tick-map-node-8{left:11%;top:16%}
.tick-map-hint{font-size:12px;color:var(--tick-muted);margin:12px 0 0}
@media(max-width:780px){
 #tickLayoutChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 #tickLayoutChoices button{font-size:12px;padding:9px 4px}
 .tick-book-spread{grid-template-columns:minmax(0,1fr)}.tick-book-spiral{display:none}
 .tick-book-leaf:first-child{border-right:0;border-bottom:3px double var(--tick-paper-line)}
 .tick-cornell-columns{grid-template-columns:minmax(0,1fr)}.tick-cornell-cues .tick-layout-input,.tick-cornell-notes .tick-layout-input{min-height:210px}
}
@media(max-width:420px){
 #tickLayoutChoices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tick-layout-paper{padding:16px 11px}
 .tick-book-leaf{padding:14px 8px}.tick-box-cell{height:90px}
 .tick-outline-nested{margin-left:16px}.tick-outline-subsection{margin-left:12px}
}
@media print{
 .tick-layout-chooser{display:none!important}
 body.ticknotes-page[data-tick-print-allowed="false"] .tick-layout-paper{display:none!important}
 .tick-layout-paper{background:#fff!important;color:#111;box-shadow:none;min-height:0;break-inside:auto}
 .tick-layout-paper .tick-layout-input,.tick-layout-paper textarea,.tick-layout-paper input{color:#111!important}
 .tick-map-scroll{overflow:visible}.tick-map-board{min-width:0;width:100%}
 .tick-book-leaf{break-inside:avoid}
}
