/* ShayOS generic item window 4.64.1 */
.shayos-item-window-open{overflow:hidden!important}.shayos-generic-item-overlay{position:fixed;inset:0;z-index:2147483000;background:#142b4499;display:flex;align-items:center;justify-content:center;direction:rtl}.shayos-generic-item-window{box-sizing:border-box;width:100%;height:100dvh;background:white;color:#173b62;display:flex;flex-direction:column;overflow:hidden}.shayos-generic-item-sticky{flex:none;padding:12px 16px 14px;border-bottom:1px solid #d3dce5;background:white;z-index:2}.shayos-generic-item-heading{display:grid;grid-template-columns:52px minmax(0,1fr) 58px;gap:10px;align-items:center;direction:ltr}.shayos-generic-item-heading h2{margin:0;text-align:center;direction:rtl;font-size:clamp(23px,5vw,34px);line-height:1.2;overflow-wrap:anywhere}.shayos-item-window-close{width:46px;height:46px;border-radius:50%;border:1px solid #ae8752;background:#f8e9d3;color:#173b62;font-size:25px}.shayos-item-window-logo{display:flex;justify-content:center;align-items:center;font-weight:700}.shayos-item-window-logo img{width:54px;height:54px;object-fit:contain}.shayos-generic-item-controls{display:flex;justify-content:center;gap:12px;margin-top:12px}.shayos-generic-item-controls button{width:54px;height:52px;border-radius:13px;border:1px solid #b18c57;background:linear-gradient(#fff9f0,#e7cba0);color:#173b62;font-size:25px}.shayos-generic-item-controls button:disabled{opacity:.35}.shayos-generic-item-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px}.shayos-generic-item-tags{display:flex;flex-wrap:wrap;gap:8px}.shayos-generic-item-tags span,.shayos-generic-item-schedule{border:1px solid #a9c0d0;background:#e7f1f9;border-radius:18px;padding:7px 12px}.shayos-generic-item-description{font-size:1.1rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0;min-height:40px}.shayos-generic-item-more{min-height:30vh}@media(min-width:800px) and (orientation:landscape){.shayos-generic-item-overlay{padding:20px}.shayos-generic-item-window{width:min(560px,90vw);height:min(900px,90dvh);border-radius:20px}}

.shayos-generic-item-editor{display:grid;gap:12px;margin-top:12px}.shayos-generic-item-editor[hidden]{display:none!important}.shayos-generic-item-editor label{display:grid;gap:5px;font-weight:600}.shayos-generic-item-editor input,.shayos-generic-item-editor textarea{width:100%;box-sizing:border-box;border:1px solid #a9c0d0;border-radius:12px;padding:12px;font:inherit;direction:rtl;background:#fff}.shayos-generic-item-editor button{min-height:46px;border:1px solid #ae8752;border-radius:12px;background:#f8e9d3;color:#173b62;font-size:22px}.shayos-generic-item-editor p{min-height:1.3em}
/* Generic item editor - all actions live in the sticky grid. */
.shayos-generic-item-editor{display:grid;gap:14px;direction:rtl}
.shayos-generic-item-editor label{display:grid;gap:5px;text-align:right}
.shayos-generic-item-editor input:not([type=checkbox]),.shayos-generic-item-editor textarea,.shayos-generic-item-editor select{width:100%;min-height:40px;border:1px solid #9ca3af;border-radius:8px;padding:8px;background:var(--shayos-surface,#fff);color:inherit}
.shayos-generic-item-schedule{display:grid;gap:10px;border:1px solid #cbd5e1;border-radius:10px;padding:12px}
.shayos-generic-item-repeat{display:grid;gap:10px}
.shayos-generic-item-weekdays{display:flex;flex-wrap:wrap;gap:12px}
.shayos-generic-item-type{margin-top:20px;padding-top:18px;border-top:1px solid #cbd5e1;display:grid;gap:12px}
.shayos-generic-item-type-fields{display:grid;gap:12px}
.shayos-generic-item-editor [hidden]{display:none!important}
.shayos-generic-item-add{border:1px solid currentColor;border-radius:50%;width:42px;height:42px;font-size:26px;display:grid;place-items:center;margin:10px;cursor:pointer}
.shayos-generic-item-status{min-height:1.5em}

/* Canonical task steps - input controls are fields; actions remain in sticky grid. */
.shayos-generic-item-steps{border:1px solid #cbd5e1;border-radius:14px;padding:14px;display:grid;gap:10px}
.shayos-generic-item-steps[hidden],.shayos-generic-item-controls button[hidden]{display:none!important}
.shayos-generic-step-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start}
.shayos-generic-step-row input[type=checkbox]{width:24px;height:24px;margin-top:10px}
.shayos-generic-step-row textarea{min-height:48px}
.shayos-generic-step-progress{font-weight:600}
.shayos-generic-item-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:8px}

/* Focused execution: one step, one decision, no action buttons in content. */
.shayos-generic-focus-mode{display:grid;gap:12px;padding:22px 16px;border:2px solid #91b5cc;border-radius:18px;background:#f2f8fc;min-height:180px;align-content:center;text-align:center}
.shayos-generic-focus-mode[hidden]{display:none!important}
.shayos-generic-focus-counter{font-size:.9rem;font-weight:700;color:#365b77}
.shayos-generic-focus-text{font-size:clamp(1.3rem,4vw,1.8rem);font-weight:700;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.shayos-generic-focus-feedback{font-size:.95rem;color:#365b77}
.shayos-generic-focus-mode.is-paused{opacity:.7}

/* Explicit corkboard note surface; navigation cards never inherit this. */
[data-shayos-item-surface="notes"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
[data-shayos-item-surface="notes"] > .shayos-corkboard-slot{min-width:0!important;width:100%!important;max-width:100%!important}
[data-shayos-item-surface="notes"] .shayos-generic-note{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
[data-shayos-item-surface="notes"] [data-focus-cork-direct-edit]{display:none!important}
@media(orientation:landscape) and (min-width:560px){[data-shayos-item-surface="notes"]{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important}}

/* Dedicated Shell corkboard note surface. Never target FOCUS navigation cards. */
[data-shayos-corkboard="1"][data-corkboard-owner="shayos-shell"].shayos-generic-note-board{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:10px!important;align-content:start;
}
[data-shayos-corkboard="1"].shayos-generic-note-board > .shayos-corkboard-slot{
 min-width:0!important;width:100%!important;max-width:none!important;
}
[data-shayos-corkboard="1"] .shayos-generic-note [data-focus-cork-direct-edit],
[data-shayos-corkboard="1"] .shayos-generic-note .focus-note__direct-edit{display:none!important}
@media (orientation:landscape) and (min-width:560px){
 [data-shayos-corkboard="1"][data-corkboard-owner="shayos-shell"].shayos-generic-note-board{
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
 }
}
