/* Additions to the original exported Tailwind + glass theme. No remote assets. */
:root{color-scheme:dark}body{font-family:'Segoe UI','Malgun Gothic',sans-serif}button,input,select,textarea{font:inherit}button:disabled{opacity:.45;cursor:wait}button:focus-visible,[tabindex]:focus-visible{outline:2px solid #60a5fa;outline-offset:3px}input,select,textarea{min-width:0}header h1{flex-wrap:wrap}header{flex-shrink:0}main section{min-width:0}.desk-layout{display:grid;grid-template-columns:minmax(0,30fr) minmax(0,40fr) minmax(0,30fr);gap:20px;flex:1}.demo-notice{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:12px;padding:0 6px 16px}.demo-notice strong{color:#93c5fd;white-space:nowrap}.demo-dot{width:6px;height:6px;border-radius:50%;background:#60a5fa}.demo-notice #lastSynced{margin-left:auto;white-space:nowrap;font-size:11px}.refresh-period{color:#94a3b8;font-size:11px;padding:0 6px}.field-label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#94a3b8;margin-bottom:9px}.field{width:100%;padding:8px 10px;border:1px solid #334155;border-radius:8px;background:rgba(15,23,42,.7);color:#e2e8f0;font-size:12px;outline:none}.field:focus{border-color:#60a5fa}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-label{display:flex;align-items:center;gap:7px;color:#cbd5e1;font-size:12px;margin:10px 0}.check-label small{font-size:10px;color:#94a3b8}input[type=checkbox]{accent-color:#10b981;width:16px;height:16px;flex-shrink:0}input[type=date],input[type=time]{min-height:32px}#newEventTitle,#newTaskInput{min-width:0}.icon{display:inline-flex;width:1em;height:1em;vertical-align:-.12em}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.calendar-filter,.task-filter{margin-bottom:12px}#weeklyGrid{align-content:start;flex:0 0 auto;max-height:660px}#weeklyGrid>button{min-height:135px;text-align:left;width:100%;overflow:hidden}#dailyEventList{max-height:300px}#taskListContainer{max-height:490px;min-height:130px}.item-row{display:flex;gap:8px;align-items:center;padding:12px;border-radius:12px}.item-main{min-width:0;flex:1}.item-title{font-size:12px;white-space:normal;overflow-wrap:anywhere;color:#f1f5f9;line-height:1.55}.item-meta{font-size:10px;color:#94a3b8;margin-top:5px}.item-time{color:#93c5fd;background:#3b82f620;border:1px solid #60a5fa30;border-radius:6px;padding:3px 5px;font:11px Consolas,monospace;white-space:nowrap}.item-actions{display:flex;gap:2px}.icon-button{padding:5px;color:#94a3b8;border-radius:5px}.icon-button:hover{color:white;background:#334155}.icon-button.delete:hover{color:#fb7185}.completed .item-title{text-decoration:line-through;color:#8290a5}.list-heading{font-size:11px;font-weight:600;color:#6ee7b7;margin:14px 0 9px}.empty{color:#94a3b8;font-size:12px;text-align:center;padding:25px 10px;background:#0f172a66;border:1px solid #1e293b;border-radius:12px}.week-event{font-size:11px;padding:4px 6px;background:#1e293b;border:1px solid #334155;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.week-time{color:#60a5fa;margin-right:4px}.week-day{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:12px;font-weight:600}.today-pill{font-size:10px;background:#10b98120;color:#6ee7b7;padding:2px 5px;border-radius:5px}.week-card{border:1px solid #33415599;background:#0f172a73;padding:12px;border-radius:12px;transition:background .2s}.week-card:hover{border-color:#60a5fab3}.week-card.selected{border-color:#60a5fa;background:#17255466;box-shadow:0 0 0 1px #60a5fa44}.week-card.today:not(.selected){border-color:#10b98180}.week-card .week-event+.week-event{margin-top:4px}.upcoming{display:flex;gap:8px;align-items:center;width:100%;padding:8px 10px;border-radius:8px;border:1px solid #1e293b;background:#0f172a99;text-align:left;font-size:11px}.upcoming:hover{background:#1e293b}.upcoming-date{color:#fcd34d;font-family:Consolas,monospace;white-space:nowrap}.upcoming-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-time{color:#94a3b8;white-space:nowrap}.desk-dialog{position:fixed;inset:0;margin:auto;width:min(560px,90vw);max-height:90vh;overflow:auto;color:#e2e8f0;background:#182336;border:1px solid #475569;border-radius:18px;padding:26px;box-shadow:0 24px 80px #0008;font-size:13px}.desk-dialog::backdrop{background:#020617bb;backdrop-filter:blur(5px)}.desk-dialog h2{font-size:18px;font-weight:700;margin-bottom:14px}.desk-dialog h3{font-size:13px;font-weight:700;margin:16px 0}.desk-dialog p{line-height:1.8;margin:10px 0}.desk-dialog hr{border-color:#334155;margin-top:18px}.dialog-heading{display:flex;justify-content:space-between;align-items:start}.dialog-heading>button{font-size:22px;color:#94a3b8}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialog-actions button{border:1px solid #475569;padding:9px 16px;border-radius:9px;background:#273449;font-size:12px}.dialog-actions .primary{background:#2563eb;border-color:#3b82f6;color:white}.dialog-actions .danger{background:#be123c;border-color:#e11d48;color:white}.muted,small{color:#94a3b8}.settings-callout{padding:14px;border:1px solid #3b82f644;background:#2563eb11;border-radius:10px;color:#93c5fd}.inline-error{color:#fda4af;font-size:12px}#toastBanner.error{border-color:#fb718566;background:#88133744;color:#fecdd3}#toastBanner{user-select:text}#editIdentity{font-size:11px;overflow-wrap:anywhere}.sun{color:#fb7185}.sat{color:#60a5fa}#editEventFields>small{font-size:11px}.busy #syncSpinnerIcon{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.desk-layout{gap:12px}.desk-layout section{padding:14px}body{padding:16px}.demo-notice{flex-wrap:wrap}.demo-notice #lastSynced{margin-left:0}#weeklyGrid>button{min-height:125px}}@media(max-width:850px){.desk-layout{grid-template-columns:1fr}#weeklyGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep all primary panels in the window; individual lists scroll independently. */
body{height:100vh;overflow:hidden}.desk-layout{min-height:0}.desk-layout>section{overflow:hidden}#dailyPanel>div:first-child{display:flex;flex-direction:column;min-height:0;flex:1}#eventCreateForm{flex-shrink:0}#dailyEventList{flex:1;min-height:60px;max-height:none}#dailyPanel>div:last-child{flex:0 0 142px;margin-top:14px}#allUpcomingList{max-height:104px}#weeklyGrid{min-height:0;max-height:none;flex:1}#weeklyGrid>button{min-height:112px;display:flex;flex-direction:column;justify-content:space-between}.week-empty{font-size:11px}#tasksPanel>div:first-child{min-height:0}#taskListContainer{flex:1;min-height:80px;max-height:none}#tasksPanel>div:last-child{flex-shrink:0}#quickMemoArea{height:84px}#eventCreateForm .field-label{margin-bottom:0}#eventCreateForm .field-row{margin:10px 0}#eventCreateForm>div:first-child{margin-bottom:10px}@media(max-width:850px){body{height:auto;overflow:auto}.desk-layout>section{min-height:500px}}
#weeklyGrid>button{min-height:148px}#weeklyGrid>button>div{flex-shrink:0}
#weeklyGrid>button{min-height:176px}
#settingsDialog{width:min(740px,92vw);max-height:88vh;overflow-y:auto}#settingsDialog h3{margin:16px 0 10px;font-weight:700;color:#93c5fd}#settingsDialog h4{font-weight:600;margin:8px 0}#settingsDialog p{line-height:1.65}#settingsDialog .dialog-actions{flex-wrap:wrap;justify-content:flex-start}#settingsDialog details{margin:14px 0;padding:12px;background:#0f172a;border-radius:8px}#settingsDialog summary{cursor:pointer;color:#cbd5e1}#settingsDialog .check-label{align-items:flex-start;overflow-wrap:anywhere}#settingsDialog [hidden]{display:none!important}#writableCalendars,#writableTasklists{max-height:160px;overflow-y:auto;font-size:12px}button:disabled{opacity:.45;cursor:not-allowed}#workspaceNotice{flex:1}#lastSynced{white-space:nowrap}
