/* CONQUISTEI 0.25.10 — Smart Post-it + Topic Tree + Timer Visibility */

/* Floating timer: optional visible readout; clock button always remains available. */
.cq-floating-timer-readout{display:flex!important;align-items:center;gap:7px;min-height:42px!important;padding:8px 12px!important;border:1px solid var(--cq-ui-line)!important;border-radius:999px!important;background:var(--cq-ui-strong)!important;color:var(--cq-ui-on-strong)!important;box-shadow:0 12px 30px rgba(15,23,42,.18)!important;font:inherit;font-weight:900;font-variant-numeric:tabular-nums}
.cq-floating-timer-readout[hidden]{display:none!important}.cq-floating-timer-readout .dashicons{color:inherit!important}.cq-tool-toggle{display:flex;align-items:flex-start;gap:8px;margin:10px 0 13px;color:var(--cq-ui-text)!important;font-size:.86rem;line-height:1.35}.cq-tool-toggle input{margin-top:2px;accent-color:var(--cq-ui-accent)}

/* Smart Post-it board */
.cq-sticky-panel{width:min(440px,calc(100vw - 24px));max-height:min(78vh,720px);overflow:auto}.cq-sticky-panel .cq-study-tool-head>div{display:grid;gap:2px}.cq-sticky-panel .cq-study-tool-head small{color:var(--cq-ui-muted)!important;font-weight:500}.cq-sticky-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px}.cq-tool-new-sticky{min-height:38px!important;padding:7px 11px!important;border-radius:10px!important;background:var(--cq-ui-strong)!important;color:var(--cq-ui-on-strong)!important;border:0!important;font-weight:850}.cq-sticky-toolbar>span{font-size:.76rem;color:var(--cq-ui-muted)}
.cq-sticky-board{display:grid;gap:12px}.cq-sticky-empty{display:grid;gap:5px;padding:22px;border:1px dashed var(--cq-ui-line);border-radius:14px;text-align:center;background:var(--cq-ui-surface-2)}.cq-sticky-empty span{color:var(--cq-ui-muted);font-size:.86rem}
.cq-smart-sticky{--sticky-bg:#fff2a8;--sticky-ink:#4e401d;--sticky-line:#dfc96b;position:relative;padding:13px;border:1px solid var(--sticky-line);border-radius:6px 16px 9px 14px;background:linear-gradient(145deg,var(--sticky-bg),color-mix(in srgb,var(--sticky-bg) 88%,#fff));color:var(--sticky-ink);box-shadow:0 10px 22px rgba(54,44,16,.13);overflow:hidden}.cq-smart-sticky:after{content:"";position:absolute;top:0;right:0;width:24px;height:24px;background:linear-gradient(225deg,rgba(255,255,255,.72) 0 48%,rgba(0,0,0,.06) 50% 100%);pointer-events:none}.cq-smart-sticky[data-color="salmon"]{--sticky-bg:#f7c9c2;--sticky-ink:#58323a;--sticky-line:#d58e87}.cq-smart-sticky[data-color="mint"]{--sticky-bg:#ccf0df;--sticky-ink:#23483b;--sticky-line:#82c9aa}.cq-smart-sticky[data-color="sky"]{--sticky-bg:#d5eaff;--sticky-ink:#26445f;--sticky-line:#8bbce4}.cq-smart-sticky[data-color="lilac"]{--sticky-bg:#e5d8ff;--sticky-ink:#493a67;--sticky-line:#b39adf}
.cq-sticky-top{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.cq-sticky-top input,.cq-smart-sticky textarea,.cq-sticky-field select,.cq-sticky-field input{background:rgba(255,255,255,.34)!important;color:var(--sticky-ink)!important;-webkit-text-fill-color:var(--sticky-ink)!important;border:1px solid color-mix(in srgb,var(--sticky-line) 75%,transparent)!important;box-shadow:none!important}.cq-sticky-top input{width:100%;padding:6px 8px!important;border-radius:8px!important;font-weight:900;font-size:.95rem}.cq-sticky-pin{display:grid;place-items:center}.cq-sticky-pin input{position:absolute;opacity:0}.cq-sticky-pin{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.45);font-size:1.1rem;cursor:pointer}.cq-sticky-pin:has(input:checked){background:rgba(255,255,255,.85);color:#a06b00}.cq-smart-sticky textarea{width:100%;min-height:110px;margin:8px 0 9px;padding:10px!important;border-radius:10px!important;resize:vertical;font:inherit;line-height:1.45}.cq-sticky-colors{display:flex;gap:7px;margin-bottom:9px}.cq-sticky-color{width:24px!important;height:24px!important;min-height:0!important;padding:0!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.8)!important;box-shadow:0 0 0 1px rgba(0,0,0,.12)!important}.cq-sticky-color.is-active{outline:2px solid var(--sticky-ink);outline-offset:2px}.cq-sticky-color-yellow{background:#f4da65!important}.cq-sticky-color-salmon{background:#dc8e87!important}.cq-sticky-color-mint{background:#82c9aa!important}.cq-sticky-color-sky{background:#8bbce4!important}.cq-sticky-color-lilac{background:#b39adf!important}.cq-sticky-field{display:grid;gap:4px;margin:7px 0;color:var(--sticky-ink)!important;font-size:.75rem;font-weight:800}.cq-sticky-field select,.cq-sticky-field input{min-height:36px!important;padding:6px 8px!important;border-radius:9px!important;font:inherit}.cq-sticky-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-top:10px}.cq-sticky-actions button{min-height:36px!important;padding:6px 8px!important;border:1px solid color-mix(in srgb,var(--sticky-line) 80%,transparent)!important;border-radius:9px!important;background:rgba(255,255,255,.5)!important;color:var(--sticky-ink)!important;font-size:.73rem!important;font-weight:850}.cq-sticky-actions .cq-sticky-archive{width:38px;padding:0!important;font-size:0!important}.cq-sticky-actions .cq-sticky-archive:after{content:"×";font-size:1rem}.cq-sticky-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:.7rem;color:color-mix(in srgb,var(--sticky-ink) 75%,transparent)}.cq-sticky-converted{font-weight:800}.cq-sticky-launcher .dashicons{transform:rotate(-3deg)}

/* Topic tree: Discipline > Topic > Subtopic > sub-subtopic, without requiring deep setup. */
.cq-topic-tree{display:grid;gap:7px}.cq-topic-branch{display:grid;gap:7px}.cq-topic-node{margin-left:calc(var(--cq-topic-depth,0) * 18px)}.cq-topic-row-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.cq-topic-row{display:grid!important;grid-template-columns:auto minmax(130px,1fr) minmax(110px,150px) auto!important;gap:7px!important;align-items:center!important;padding:8px!important;border:1px solid var(--cq-ui-line)!important;border-radius:11px!important;background:var(--cq-ui-surface)!important}.cq-topic-level{min-width:12px;color:var(--cq-ui-accent)!important;font-weight:950}.cq-topic-start-form{margin:0!important}.cq-topic-start{display:grid!important;place-items:center!important;width:38px;height:38px;min-height:0!important;padding:0!important;border-radius:50%!important;background:var(--cq-ui-strong)!important;color:var(--cq-ui-on-strong)!important;border:0!important}.cq-subtopic-add{margin:5px 0 2px calc(var(--cq-topic-depth,0) * 18px + 18px);font-size:.82rem}.cq-subtopic-add>summary{cursor:pointer;color:var(--cq-ui-accent)!important;font-weight:800}.cq-subtopic-add form{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:7px;align-items:end;margin-top:7px}.cq-subtopic-add label{display:grid;gap:4px}.cq-focus-topic-picker{margin-top:10px;border-top:1px solid var(--cq-ui-line);padding-top:9px}.cq-focus-topic-picker>summary{cursor:pointer;font-weight:800;color:var(--cq-ui-accent)!important}.cq-focus-topic-options{display:grid;gap:5px;margin-top:7px}.cq-focus-topic-options form{margin:0}.cq-focus-topic-options button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;padding:8px 10px 8px calc(10px + var(--cq-topic-depth,0)*12px)!important;min-height:38px!important;border:1px solid var(--cq-ui-line)!important;border-radius:9px!important;background:var(--cq-ui-surface-2)!important;color:var(--cq-ui-text)!important}.cq-focus-topic-options button b{color:var(--cq-ui-accent)!important}

/* Salmon should never inherit navy from the topic/focus/sticky additions. */
.cq-app.cq-theme-salmon .cq-topic-row,.cq-app.cq-theme-salmon .cq-focus-topic-options button{background:#fffaf8!important;color:#4a3038!important;border-color:#e6c4bd!important}.cq-app.cq-theme-salmon .cq-topic-row :is(input,select),.cq-app.cq-theme-salmon .cq-subtopic-add input{background:#fffdfc!important;color:#4a3038!important;-webkit-text-fill-color:#4a3038!important;border-color:#e2b7b0!important}.cq-app.cq-theme-salmon .cq-topic-start,.cq-app.cq-theme-salmon .cq-floating-timer-readout{background:#7a3f4c!important;color:#fffaf8!important}.cq-app.cq-theme-salmon .cq-sticky-panel{background:#fffdfc!important;color:#4a3038!important;border-color:#e8c7c0!important}

@media(max-width:700px){
  .cq-sticky-panel{max-height:72vh}.cq-sticky-actions{grid-template-columns:1fr 1fr 38px}.cq-topic-node{margin-left:calc(var(--cq-topic-depth,0) * 8px)}.cq-topic-row{grid-template-columns:auto minmax(0,1fr)!important}.cq-topic-row select,.cq-topic-row .cq-link-button{grid-column:2}.cq-topic-level{grid-row:1 / span 3;align-self:start;margin-top:8px}.cq-topic-row-wrap{grid-template-columns:minmax(0,1fr) 36px}.cq-topic-start{width:34px;height:34px}.cq-subtopic-add{margin-left:calc(var(--cq-topic-depth,0) * 8px + 10px)}.cq-subtopic-add form{grid-template-columns:1fr}.cq-floating-timer-readout{min-height:38px!important;padding:6px 10px!important;font-size:.82rem}
}

/* Smart reminder signal: due notes rise visually without becoming intrusive. */
.cq-sticky-launcher{position:relative!important}.cq-sticky-reminder-badge{position:absolute;top:-5px;right:-5px;z-index:2;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid var(--cq-ui-surface);border-radius:999px;background:#b74455;color:#fff;font-size:.62rem;font-weight:950;line-height:1}.cq-sticky-reminder-badge[hidden]{display:none!important}.cq-smart-sticky.is-due{outline:2px solid #b74455;outline-offset:2px}.cq-sticky-due{display:inline-flex;align-items:center;gap:4px;margin-right:6px;padding:2px 6px;border-radius:999px;background:rgba(183,68,85,.12);color:#8e3342;font-weight:900}.cq-sticky-foot>span{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
