/* Orbita — editor evento (sheet dal basso su iPhone, modale centrata ≥700px: base in app.css) */
.sheet.es { padding-top: 10px; }
.es-head { display: flex; align-items: center; gap: 12px; margin: 0 -18px 10px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, var(--bg2)), var(--bg2) 70%); position: relative; }
.es-head::before { content: ""; position: absolute; left: 18px; top: 0; width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.es-cat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 22%, var(--bg2)); flex: none; }
.es-pre { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.es-when { font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; }
.es-x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); color: var(--fg2); font-size: 14px; font-weight: 700; flex: none; }
.es-x:active { background: var(--line2); }
.es-sugg { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line2)); animation: fi .15s; }
.es-sugg b { color: var(--accent); flex: none; }
.es-sugg:active { background: color-mix(in srgb, var(--accent) 18%, var(--bg2)); }
.es-lbl { display: flex; justify-content: space-between; align-items: baseline; }
.es-link { font-size: 12px; font-weight: 700; color: var(--accent); padding: 0 2px; }
.es-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.es-av { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg2); color: var(--fg3); font-size: 12px; font-weight: 700; transition: .15s; }
.es-av .em { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--bg3); filter: grayscale(1); opacity: .7; transition: .15s; }
.es-av.on { border-color: var(--c); color: var(--fg); background: color-mix(in srgb, var(--c) 10%, var(--bg2)); }
.es-av.on .em { background: var(--c); filter: none; opacity: 1; box-shadow: 0 4px 12px -4px var(--c); }
.es-av:active .em { transform: scale(.92); }
.es-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 10px; }
.es-rr { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--fg2); flex-wrap: wrap; }
.es-rr input[type="number"] { width: 58px; padding: 7px 8px; text-align: center; }
.es-rr input[type="date"] { width: auto; flex: 1; min-width: 130px; padding: 7px 8px; }
.es-rr-u { margin-left: auto; }
.es-over { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--today) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--today) 35%, var(--line)); }
.es-over-t { font-size: 12px; font-weight: 800; color: var(--today); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.es-over-r { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.es-over-r .tm { flex: none; width: 86px; color: var(--fg2); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.es-over-w { margin-left: auto; display: flex; }
.es-over-w i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-style: normal; background: var(--c); border: 2px solid var(--bg2); margin-left: -6px; }
.es-cl-ctl { display: flex; gap: 2px; margin-left: auto; }
.es-cl-ctl .tiny { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.es-cl-ctl .tiny:disabled { opacity: .25; }
.es-cl-ctl .tiny:active { background: var(--bg3); }
.es-confirm { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--bg3); border: 1px solid var(--line); animation: up .18s; }
.es-confirm-b { display: flex; gap: 8px; margin-top: 10px; }
.es-confirm-b .btn { flex: 1; padding: 9px 10px; }
.es-dup-days { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.es-dup-days input { width: auto; flex: 1; min-width: 140px; padding: 6px 8px; }
.sheet .es-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 18px -18px calc(-20px - env(safe-area-inset-bottom)); padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sheet .es-actions .btn { flex: none; width: 46px; padding: 10px 0; font-size: 17px; }
.sheet .es-actions .btn.primary { flex: 1; width: auto; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.es-actions kbd { font: 600 11px/1 ui-monospace, monospace; opacity: .6; display: none; }
@media (min-width: 900px) { .es-actions kbd { display: inline; } }
.es-lock { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg3); font-size: 14px; color: var(--fg2); }
.es-notes { white-space: pre-wrap; }
@media (max-width: 380px) { .es-who { gap: 6px; } .es-av .em { width: 38px; height: 38px; font-size: 20px; } }
