.demo-form { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr); gap:16px; align-items:start; }
.demo-form > .demo-card:nth-child(2) { grid-column:1; }
.demo-form-note { grid-column:2; grid-row:1 / span 2; }
.demo-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.demo-input { display:grid; gap:6px; min-width:0; color:#435348; font-size:.875rem; font-weight:650; }
.demo-input.wide { grid-column:1 / -1; }
.demo-input input,.demo-input select,.demo-input textarea { width:100%; min-width:0; min-height:44px; border:1px solid #b9c8bb; border-radius:9px; padding:10px 12px; background:#fff; color:#202c23; font:inherit; font-size:1rem; font-weight:400; }
.demo-input textarea { resize:vertical; }
.demo-input input:focus-visible,.demo-input select:focus-visible,.demo-input textarea:focus-visible,.demo-check input:focus-visible { outline:3px solid #276f31; outline-offset:2px; }
.demo-input input::placeholder,.demo-input textarea::placeholder { color:#68776c; }
.demo-check { display:flex; align-items:center; gap:10px; min-height:48px; margin-top:16px; color:#273b2a; font-weight:650; }
.demo-check input { width:22px; height:22px; accent-color:#26742d; }
.demo-conflict { margin-top:14px; padding:12px; border:1px solid #c58330; border-radius:9px; background:#fff8e9; color:#684213; font-size:.875rem; }
.demo-conflict[hidden] { display:none; }
.demo-form-actions { display:flex; justify-content:flex-end; gap:10px; grid-column:1 / -1; }
.demo-form-actions .btn { min-width:130px; }
.demo-single-column { grid-template-columns:1fr; }
.demo-details { margin-top:16px; }
.demo-details summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:1rem; font-weight:700; }
.demo-details summary::-webkit-details-marker { display:none; }
.demo-details summary::after { content:'⌄'; margin-left:auto; color:#526257; font-size:1.25rem; }
.demo-details[open] summary::after { transform:rotate(180deg); }
.demo-details[open] summary { margin-bottom:14px; }
.demo-history { max-width:100%; margin-top:16px; white-space:normal; overflow-wrap:anywhere; text-align:left; }
.demo-toast { position:fixed; z-index:20; right:22px; bottom:22px; display:flex; align-items:center; gap:16px; max-width:min(460px,calc(100vw - 24px)); padding:12px 16px; border-radius:12px; background:#1d3423; color:#fff; box-shadow:0 10px 30px #10241044; font-size:.875rem; }
.demo-toast button { border:0; background:transparent; color:#d1f3d2; font:inherit; font-weight:750; text-decoration:underline; min-height:40px; }
.demo-reset { display:block; max-width:100%; margin:20px 0 0; white-space:normal; overflow-wrap:anywhere; text-align:left; }
.demo-filter-caption { margin:16px 0 8px; color:#435348; font-size:.875rem; font-weight:700; }
.month-grid .event[draggable="true"] { cursor:grab; }
.month-grid .event.is-dragging { opacity:.45; }
.month-grid .cell.drop-target { background:#e8f4e8; outline:2px dashed #26742d; outline-offset:-3px; }
.day-time,.day-slot { height:auto; min-height:100px; }
.day-event { height:auto; min-height:82px; margin-top:0; margin-bottom:4px; }
@media(max-width:900px) { .demo-form { grid-template-columns:minmax(0,1fr); } .demo-form-note { grid-column:1; grid-row:auto; } }
@media(max-width:700px) { .demo-form-grid { grid-template-columns:1fr; } .demo-form > .demo-card:nth-child(2) { grid-column:1; } .demo-form-actions { position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); z-index:3; margin:-4px 0 0; padding:10px 0; background:#f4f6f4; border-top:1px solid #dce5dd; } .demo-form-actions .btn { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; } .demo-toast { left:12px; right:12px; bottom:calc(88px + env(safe-area-inset-bottom)); } }
