/* Full text is the primary work surface; no line clamp or internal note scrolling. */
.cards,.family-grid{align-items:start;grid-auto-rows:auto!important}
.card-shell{height:auto;min-height:var(--card-height);align-self:stretch}
.card-shell>.card{height:100%;min-height:var(--card-height);contain:layout style;overflow:visible;content-visibility:visible}
.card .card-content,.custom-card .card-content{display:flex;flex-direction:column;flex:1 0 auto;overflow:visible;min-height:0}
.card .card-title,.card .product-title-text,.card .flavor,.card .product-spec{display:block;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:unset}
.card .card-title{font-size:calc(var(--card-font) * var(--text-scale,1));line-height:1.35}
.card .notes.reading-notes{display:flex;flex:0 0 auto;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;flex:0 0 auto!important;gap:0;padding:0;margin:12px 0;border:1px solid #e3e8ee;border-radius:14px;background:#fafbfd;cursor:default}
.card .reading-note-block{display:block;width:100%;padding:12px 13px;margin:0;border:0;flex:none;min-height:0;background:transparent;overflow:visible}
.card .reading-note-block+.reading-note-block{border-top:1px solid #e5eaf0}
.card .reading-note-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:calc(12px * var(--text-scale,1));font-weight:650;color:#68798d}
.card .reading-note-label button{font-size:calc(12px * var(--text-scale,1));min-height:max(40px,var(--display-touch-min,40px));padding:6px 12px;background:#e8f2fc;color:#0066cc;border-radius:10px}
html .card .reading-notes .note-preview-text{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;font-size:calc(16px * var(--text-scale,1));line-height:1.62;font-weight:500;color:#26364b;user-select:text;-webkit-user-select:text}
.card .reading-notes .blessing .note-preview-text{color:#174c80;font-weight:600}
.card .reading-review{display:flex;flex-direction:column;gap:4px;padding:12px 13px;border-radius:13px 13px 0 0;background:#fff2d9;color:#8a4800;font-size:calc(14px * var(--text-scale,1));line-height:1.5;white-space:normal}
.card .reading-review b{font-size:calc(12px * var(--text-scale,1))}
.reading-source{margin-bottom:10px}.reading-source small{display:block;color:#806d53;font-size:calc(12px * var(--text-scale,1));margin-bottom:3px}
.card .reading-notice{padding:0 13px 10px;color:#6e7785;font-size:calc(12px * var(--text-scale,1));line-height:1.5;white-space:normal}
.card .reading-details{display:flex;justify-content:space-between;align-items:center;width:100%;white-space:normal;text-align:left;border-radius:0 0 13px 13px;padding:9px 13px;background:#f0f4f8;color:#65758a;font-size:calc(12px * var(--text-scale,1));min-height:max(40px,var(--display-touch-min,40px))}
.card .card-links{margin-top:auto;flex-wrap:wrap;min-height:44px;gap:5px}
.card .finish,.card .select-card{height:auto;flex-shrink:0;min-height:max(48px,var(--display-touch-min,48px));white-space:normal}
.note-section p,.blessing-variant p,.original-text,.packing-list p{white-space:pre-wrap!important;overflow-wrap:anywhere}
.blessing-confirm{display:flex;align-items:flex-start;gap:10px;font-size:calc(14px * var(--text-scale,1));margin:12px 0;color:#705128}.blessing-confirm input{min-width:22px;width:22px;height:22px;margin-top:2px;accent-color:#0071e3}.note-copy:disabled{opacity:.42;cursor:not-allowed}
.reading-settings{max-width:640px;margin:auto;padding:4px}.reading-setting-heading{display:flex;justify-content:space-between;align-items:baseline;font-weight:600;font-size:calc(16px * var(--text-scale,1))}.reading-setting-heading output{color:#0071e3;font-size:calc(28px * var(--text-scale,1));font-variant-numeric:tabular-nums}.reading-settings input[type=range]{width:100%;height:48px;margin:12px 0;accent-color:#0071e3}.reading-scale-labels{display:flex;justify-content:space-between;color:#7d8692;font-size:calc(12px * var(--text-scale,1))}.reading-presets{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.reading-presets button{flex:1;border:1px solid #dce4ed;background:white}.reading-presets button[aria-pressed=true]{color:#0071e3;border-color:#0071e3;background:#edf5ff}.reading-sample{padding:22px;border:1px solid #dce5ef;border-radius:20px;background:#f8fafc;box-shadow:0 7px 24px #17304907}.reading-sample small{color:#7b8898;font-size:calc(12px * var(--text-scale,1))}.reading-sample h3{margin:8px 0 22px;font-size:calc(23px * var(--text-scale,1))}.reading-sample b{display:block;color:#718196;font-size:calc(12px * var(--text-scale,1));margin-top:16px}.reading-sample p{font-size:calc(16px * var(--text-scale,1));line-height:1.65;margin-top:5px}.reading-measure{position:fixed;left:-20000px;top:0;visibility:hidden;pointer-events:none;display:block;contain:layout style}.reading-measure>.card-shell{height:auto!important;min-height:var(--card-height);margin:0}.reading-measure .card{height:auto!important;min-height:var(--card-height)}
html[data-text-size] .toolbar,html[data-text-size] .category-bar{flex-wrap:wrap}
@media(max-width:580px){.reading-note-block{padding:10px}.dialog-head{align-items:flex-start}.dialog-foot{flex-wrap:wrap}}

html .card .reading-notes .note-preview-text{-webkit-line-clamp:unset!important;display:block!important;max-height:none!important;overflow:visible!important;white-space:pre-wrap!important}.card .card-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.card .card-title .product-title-text{display:inline}
/* Narrow screens keep a full-width reading surface and retain both reminder panels. */
@media(max-width:640px){
 #workspace{padding:10px;gap:12px;min-width:0}
 .toolbar,.toolbar-actions{flex-wrap:wrap;gap:7px;min-width:0;max-width:100%}
 .toolbar-actions{width:100%;justify-content:flex-start}
 .toolbar-actions button{min-width:0;white-space:normal;flex:0 1 auto}
 .category-bar{display:flex;flex-wrap:wrap;gap:8px;overflow:visible!important;max-height:none;margin:0;padding:0}
 .category-bar .scope-button{width:100%;min-width:0;flex:1 0 100%}
 .category-bar .categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:100%;min-width:0;max-width:100%;flex:1 0 100%;overflow:visible;padding:3px}
 .category-bar .categories button{min-width:0;white-space:normal;min-height:44px;justify-content:center;padding:7px 5px}
 .category-bar .production-top-actions{width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:7px}
 .category-bar .production-top-actions button{height:auto;min-height:44px;white-space:normal}
 .flow-calendar{flex:1 1 100%;min-width:0;max-width:100%;white-space:normal}
 .flow-calendar button{min-width:0;flex:1;white-space:normal}
 #workspace>.layout,#workspace.immersive>.layout{display:block;min-width:0;overflow:auto;overscroll-behavior:contain}
 #workspace>.layout>.board{width:100%;min-width:0;height:max(480px,65dvh);min-height:480px;display:flex;flex-direction:column}
 .board-heading{flex-wrap:wrap;gap:8px;align-items:flex-start}
 .board-heading>div{max-width:100%;min-width:0}
 .board-controls{display:flex;flex-wrap:wrap;gap:7px;width:100%;max-width:100%;min-width:0}
 .board-controls input{flex:1 0 100%;width:100%;min-width:0;max-width:100%}
 .active-filter{flex-wrap:wrap;gap:7px}.active-filter>span{min-width:0;flex:1 1 160px}.active-filter button{flex:0 1 auto;max-width:100%;white-space:normal}
 .card-scroller{min-height:0;flex:1}.cards{min-width:0}
 #workspace>.layout>.rail{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,250px);gap:12px;min-width:0;margin-top:14px;height:auto;overflow:visible}
 #workspace>.layout>.rail>.panel,#workspace>.layout>.rail>.panel:has(.empty){height:250px;min-height:250px;max-height:none;width:100%;min-width:0}
 .rail .panel header{flex-wrap:wrap;gap:7px}.panel-actions{flex-wrap:wrap}
 .voice-row{flex-wrap:wrap;gap:10px}.voice-row label{min-width:0;flex:1 1 100%}.voice-row select{max-width:100%;min-width:0}
 .dialog-head p{overflow-wrap:anywhere}.dialog-foot{gap:8px;align-items:flex-start}.dialog-footer-actions{flex-wrap:wrap}


}
