/* Lecturile mele: semnul + canonul pe zile (compact), alegerea rapidă și tipărirea. */
.canon-print { --c-accent:#762333; --c-gold:#C9A24A; --c-edge:#EADFCF; max-width: 52rem; }
.canon-h1 { margin: .2rem 0 1rem; }

.canon-continue { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; padding: .8rem 1rem;
    background: #FFF6E0; border: 1px solid #EBD9AE; border-radius: 14px; }
.canon-continue[hidden] { display: none; }
.canon-continue-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; border-radius: 50%; background: #fff; color: var(--c-gold); }
.canon-continue-ico svg { fill: currentColor; }
.canon-continue > div { flex: 1; min-width: 0; }
.canon-continue small { display: block; color: #7A6A55; }
.canon-continue a { font-weight: 600; color: var(--c-accent); text-decoration: none; overflow-wrap: anywhere; }
.canon-continue a:hover { text-decoration: underline; }
.canon-x { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: transparent; color: #7A6A55; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.canon-x:hover { background: #0000000d; color: var(--c-accent); }

.canon-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.canon-head h2 { margin: 0 !important; font-size: 1.45rem !important; }
.canon-head .library-pill { cursor: pointer; }

.canon-week { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--c-edge); border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(42,36,32,.06), 0 6px 18px rgba(42,36,32,.07); }
.canon-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .55rem .7rem; border-bottom: 1px solid #F1E9DD; }
.canon-row:last-child { border-bottom: 0; }
.canon-row.is-today { background: #FFFBF3; box-shadow: inset 4px 0 0 #C8102E; }
.canon-dayname { justify-self: start; padding: .4rem .5rem; border: 0; border-radius: .5rem; background: transparent; color: #312520; font-weight: 600; text-align: left; cursor: pointer; }
.canon-dayname:hover { background: #F6EADF; color: var(--c-accent); }
.canon-dayname small { margin-left: .25rem; padding: .05rem .45rem; border-radius: 999px; background: #C8102E; color: #fff; font-size: .72em; vertical-align: middle; }
.canon-items { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; min-width: 0; }
.canon-items li { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--c-edge); border-radius: 999px; background: #FBF7F0; }
.canon-items a { padding: .3rem 0 .3rem .75rem; color: #312520; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canon-items a:hover { color: var(--c-accent); text-decoration: underline; }
.canon-rm { flex: 0 0 auto; width: 2rem; height: 2rem; margin-left: .1rem; border: 0; border-radius: 50%; background: transparent; color: #9A8B7B; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.canon-rm:hover { color: #C8102E; background: #0000000a; }
.canon-row.is-empty .canon-items::before { content: "—"; color: #B8AA98; padding-left: .2rem; }
.canon-add { padding: .4rem .8rem; min-height: 2.4rem; border: 1px dashed #D5C2A6; border-radius: 999px; background: transparent; color: var(--c-accent); font-weight: 600; cursor: pointer; white-space: nowrap; }
.canon-add:hover { border-style: solid; border-color: var(--c-gold); background: #FBF3EA; }
.canon-feedback:not(:empty) { margin-top: .8rem; padding: .6rem .9rem; background: #eef5eb; border-left: 4px solid #507746; border-radius: .35rem; color: #284422; }

.canon-dayname, .canon-add, .canon-rm, .canon-x, .picker-item { font: inherit; }
.canon-dayname, .canon-add { font-weight: 600; }

/* alegerea rapidă */
.canon-picker { width: min(34rem, calc(100vw - 1.5rem)); max-height: min(40rem, calc(100vh - 3rem)); padding: 0; border: 0; border-radius: 18px;
    background: #fffdf8; color: #312520; box-shadow: 0 24px 60px rgba(42,36,32,.35); overflow: hidden; }
.canon-picker[open] { display: flex; flex-direction: column; }
.canon-picker::backdrop { background: rgba(40,20,24,.45); }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem .4rem 1.2rem; }
.picker-head h2 { margin: 0 !important; font-size: 1.25rem !important; }
.picker-head h2 span { color: var(--c-accent); }
.picker-search { position: relative; margin: .3rem 1rem 0; }
.picker-search .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--c-accent); }
.picker-search input { width: 100%; min-height: 48px; padding: 0 1rem 0 2.6rem; border: 1px solid #D8CCBA; border-radius: 12px; background: #fff; font-size: 1rem; }
.picker-search input:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px #7623331f; }
.picker-all { display: flex !important; align-items: center; gap: .45rem; margin: .55rem 1.1rem 0 !important; font-weight: 400 !important; cursor: pointer; }
.picker-all input { width: 1.1rem; height: 1.1rem; accent-color: var(--c-accent); }
.picker-hint { margin: .6rem 1.2rem .3rem; color: #6B5E52; font-size: .9rem; }
.picker-hint:empty { display: none; }
.picker-results { flex: 1; overflow-y: auto; margin: 0; padding: .2rem .6rem 1rem; list-style: none; }
.picker-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .7rem; width: 100%; padding: .65rem .7rem;
    border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.picker-item:hover, .picker-item:focus-visible { background: #F6EADF; outline: 0; }
.picker-item strong { grid-column: 1; font-weight: 600; overflow-wrap: anywhere; }
.picker-item small { grid-column: 1; color: #7A6A55; }
.picker-state { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #D5C2A6; border-radius: 50%; color: var(--c-accent); font-weight: 700; }
.picker-item.is-added .picker-state { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

@media (max-width: 640px) {
    .canon-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day add" "items items"; row-gap: .3rem; }
    .canon-dayname { grid-area: day; }
    .canon-add { grid-area: add; }
    .canon-items { grid-area: items; }
    .canon-row.is-empty .canon-items { display: none; }
    .canon-add span { display: none; }
    .canon-add { width: 2.6rem; padding: 0; font-size: 1.25rem; }
    .canon-picker { width: 100vw; max-width: none; max-height: 85vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}

@media print {
    body > header, body > footer, .canon-continue, .canon-head .library-pill, .canon-add, .canon-rm, .canon-feedback, .canon-picker { display: none !important; }
    .canon-print { margin: 0; color: #000; max-width: none; }
    .canon-week { border: 0; box-shadow: none; }
    .canon-row { grid-template-columns: 8rem 1fr; padding: .3rem 0; break-inside: avoid; background: none !important; box-shadow: none !important; }
    .canon-row.is-empty { display: none; }
    .canon-dayname small { display: none; }
    .canon-items { display: block; }
    .canon-items li { display: list-item; margin-left: 1rem; border: 0; background: none; }
    .canon-items a { color: #000; padding: 0; white-space: normal; }
}

/* favorite */
.fav-box { margin: 0 0 1.6rem; }
.fav-list { background: #fff; border: 1px solid var(--c-edge); border-radius: 16px; padding: .4rem 1rem .8rem;
    box-shadow: 0 1px 2px rgba(42,36,32,.06), 0 6px 18px rgba(42,36,32,.07); }
.fav-group h3 { margin: .7rem 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #8A7A66; }
.fav-group ul { list-style: none; margin: 0; padding: 0; }
.fav-group li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #F3ECE1; }
.fav-group li:last-child { border-bottom: 0; }
.fav-group a { color: #312520; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fav-group a:hover { color: var(--c-accent); text-decoration: underline; }
.fav-empty { margin: .5rem 0 .1rem; color: #7A6A55; }
@media print { .fav-box { display: none !important; } }
.canon-intro { margin: -.4rem 0 1.2rem; color: #6A5B4A; max-width: 60ch; }
