/* ==========================================================================
   Chronos — modal d'édition / création d'une tâche ou d'un projet (préfixe `em-`)
   Disposition « V6 » : remarque en bulle sous le titre, pastilles de synthèse sur la ligne des
   onglets, description transparente en plein cadre, volet de propriétés rétractable.
   ========================================================================== */

/* ---------- Conteneur ---------------------------------------------------- */

#modal-scroll-container:has(#entity-edit-form) {
    width: min(1200px, calc(100vw - 40px));
    max-width: none;
    height: min(92vh, 900px);
    max-height: none;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #14161b;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
/* plein écran (bouton de l'en-tête, Ctrl+Maj+F) */
#modal-scroll-container:has(#entity-edit-form.is-full) { width: calc(100vw - 24px); height: calc(100vh - 24px); margin: 0 12px; transition: width 0.15s ease, height 0.15s ease; }
#entity-edit-form .em-ib-sq { width: 36px; padding: 0; justify-content: center; }
#modal-scroll-container:has(#entity-edit-form) #modal-content { display: flex; flex-direction: column; min-height: 0; flex: 1; }

#entity-edit-form.em {
    --em-line: rgba(255, 255, 255, 0.09);
    --em-muted: #9aa1ad;
    --em-faint: #6b7280;
    --em-text: #e6e9ef;
    --em-accent: #7aa7ff;
    --em-field: #0e1014;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    color: var(--em-text);
    font-size: 14px;
}
#entity-edit-form .dynamic_field, #entity-edit-form .em-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#entity-edit-form [hidden] { display: none !important; }
#entity-edit-form button { font-family: inherit; }

/* scrollbars discrètes dans le modal */
#modal-scroll-container:has(#entity-edit-form) * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
#modal-scroll-container:has(#entity-edit-form) *::-webkit-scrollbar { width: 8px; height: 8px; }
#modal-scroll-container:has(#entity-edit-form) *::-webkit-scrollbar-track { background: transparent; }
#modal-scroll-container:has(#entity-edit-form) *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
#modal-scroll-container:has(#entity-edit-form) *::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: padding-box; border: 2px solid transparent; }

/* ---------- En-tête ------------------------------------------------------ */

.em-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px 14px 26px; border-bottom: 1px solid var(--em-line); }
.em-emoji { position: relative; flex-shrink: 0; width: 54px; height: 54px; }
#entity-edit-form .em-emoji #emoji-input {
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 28px;
    text-align: center;
    background: var(--em-field) !important;
    border: 1px solid var(--em-line) !important;
    border-radius: 15px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
#entity-edit-form .em-emoji #emoji-input:focus { border-color: var(--em-accent) !important; }
#entity-edit-form .em-emoji #emoji-input.is-image { color: transparent; caret-color: #fff; background-repeat: no-repeat !important; background-position: center !important; background-size: 32px 32px !important; }
.em-emoji-btns { position: absolute; right: -8px; bottom: -8px; display: flex; gap: 2px; padding: 2px 3px; background: #23262e; border: 1px solid var(--em-line); border-radius: 9px; opacity: 0; transition: opacity 0.12s ease; }
.em-emoji:hover .em-emoji-btns, .em-emoji:focus-within .em-emoji-btns { opacity: 1; }
.em-emoji-btns button { padding: 0 2px; font-size: 13px; line-height: 1.4; background: none; border: none; cursor: pointer; border-radius: 5px; }
.em-emoji-btns button:hover { background: rgba(255, 255, 255, 0.12); }
.em-picker { position: absolute; top: 62px; left: 0; z-index: 10010; }

.em-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.em-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--em-accent); }
#entity-edit-form input.em-title {
    width: 100%;
    padding: 0 0 3px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease;
}
#entity-edit-form input.em-title:focus { border-bottom-color: var(--em-accent) !important; outline: none; }
#entity-edit-form input.em-title::placeholder { color: var(--em-faint); font-weight: 600; }

/* remarque : bulle orange sous le titre */
.em-rem { display: inline-flex; align-items: center; max-width: 100%; margin-top: 3px; min-height: 28px; }
.em-bub { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: #ffd98a; background: rgba(245, 185, 74, 0.12); border: 1px solid rgba(245, 185, 74, 0.4); border-radius: 99px; cursor: text; }
.em-bub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-bub:hover { background: rgba(245, 185, 74, 0.2); }
.em-bub.empty { color: var(--em-faint); font-weight: 500; background: none; border: 1px dashed var(--em-line); }
.em-bub.empty:hover { color: var(--em-muted); border-color: rgba(245, 185, 74, 0.4); }
#entity-edit-form input.em-rem-in { height: 28px; width: min(520px, 100%); padding: 0 12px; font-size: 12.5px; color: #ffe3a8; background: rgba(245, 185, 74, 0.1) !important; border: 1px solid rgba(245, 185, 74, 0.6) !important; border-radius: 99px; outline: none; }

.em-ib { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--em-muted); background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.em-ib:hover, .em-ib.on { color: #fff; background: rgba(122, 167, 255, 0.2); border-color: rgba(122, 167, 255, 0.4); }
.em-x { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 22px; color: var(--em-muted); background: transparent; border: none; border-radius: 10px; cursor: pointer; }
.em-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Corps -------------------------------------------------------- */

.em-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.em-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 12px 18px 0 26px; }

/* onglets à gauche, pastilles collées à droite ; elles passent dessous si la place manque */
.em-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; flex: none; margin-bottom: 6px; }
.em-tabs { display: flex; gap: 4px; flex: none; }
.em-tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; font-size: 13.5px; font-weight: 600; color: var(--em-muted); background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color 0.12s ease, color 0.12s ease; }
.em-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.em-tab.active { color: #fff; background: rgba(122, 167, 255, 0.16); border-color: rgba(122, 167, 255, 0.35); }
.em-tab i { font-size: 16px; }
.em-count { min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; text-align: center; color: #0b1220; background: var(--em-accent); border-radius: 999px; }
.em-dot { width: 8px; height: 8px; background: var(--em-accent); border-radius: 50%; }
.em-dot.e { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.em-dot.w { background: #ffb450; }

.em-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; min-width: 0; max-width: 100%; }
.em-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; font-size: 12.5px; font-weight: 600; color: var(--em-text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--em-line); border-radius: 99px; cursor: pointer; transition: background-color 0.12s, border-color 0.12s; }
.em-pill i { font-size: 14px; color: var(--em-muted); }
.em-pill:hover, .em-pill.open { background: rgba(122, 167, 255, 0.18); border-color: rgba(122, 167, 255, 0.5); }
.em-pick::after { content: "\25BE"; margin-left: 2px; font-size: 11px; color: var(--em-faint); }

.em-panels { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.em-panel { display: none; flex: 1; min-height: 0; flex-direction: column; }
.em-panel.active { display: flex; animation: emFade 0.16s ease; }
@keyframes emFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Description : transparente, plein cadre ---------------------- */

.em-desc { flex: 1; min-height: 0; overflow: auto; margin: 14px 0 0 -8px; padding: 6px 20px 28px 26px; background: transparent; border: 0; }

/* ---------- Attributs ---------------------------------------------------- */

.em-attrs-wrap { padding: 14px 0 0; max-width: 780px; overflow: auto; }
.em-attrs { display: flex; flex-direction: column; gap: 8px; }
.em-attr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 34px; gap: 8px; }
#entity-edit-form .em-attr input { height: 40px; padding: 0 12px; background: var(--em-field) !important; border: 1px solid var(--em-line) !important; border-radius: 10px; color: var(--em-text); }
#entity-edit-form .em-attr input:focus { border-color: var(--em-accent) !important; outline: none; }
.em-attr .delete-attribute { font-size: 20px; color: var(--em-faint); background: none; border: none; border-radius: 9px; cursor: pointer; }
.em-attr .delete-attribute:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.em-empty { margin: 4px 0 14px; padding: 20px; font-size: 13px; line-height: 1.55; color: var(--em-muted); text-align: center; border: 1px dashed var(--em-line); border-radius: 14px; }
.em-empty code { padding: 1px 6px; font-size: 12px; color: #f6c96b; background: rgba(255, 255, 255, 0.07); border-radius: 5px; }
.em-add { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-top: 10px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--em-muted); background: transparent; border: 1px dashed var(--em-line); border-radius: 10px; cursor: pointer; transition: color 0.12s ease, border-color 0.12s ease; }
.em-add:hover { color: #fff; border-color: var(--em-accent); }

/* ---------- Script ------------------------------------------------------- */

.em-script-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
#entity-edit-form .em-script-tools select { height: 34px; max-width: 260px; padding: 0 10px; font-size: 13px; background: var(--em-field); border: 1px solid var(--em-line); border-radius: 10px; color: var(--em-muted); color-scheme: dark; }
.em-spacer { flex: 1; }
.em-btn, .em-script-tools .d6-tg { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--em-text); background: rgba(255, 255, 255, 0.07); border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.1s ease; }
.em-btn:hover, .em-script-tools .d6-tg:hover { background: rgba(255, 255, 255, 0.13); }
.em-btn:active { transform: scale(0.97); }
.em-run { color: #86efac; background: rgba(34, 197, 94, 0.13); border-color: rgba(34, 197, 94, 0.4); }
.em-run:hover { background: rgba(34, 197, 94, 0.24); }

.em-script { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 0 0 14px; }
#entity-edit-form #script-output { flex: none; margin: 0 0 12px; padding: 12px 14px; max-height: 200px; overflow: auto; font: 12.5px/1.6 Consolas, 'Cascadia Mono', monospace; white-space: pre-wrap; background: #0b0d11 !important; border: 1px solid var(--em-line); border-radius: 12px; }
#entity-edit-form #script-output:empty { display: none; }
#entity-edit-form .sce .CodeMirror { height: auto !important; min-height: 400px; max-height: 66vh; background: #0d0f13 !important; border: 1px solid var(--em-line) !important; border-radius: 12px 12px 0 0 !important; font: 13px/1.65 'Cascadia Code', 'Cascadia Mono', Consolas, monospace; }
#entity-edit-form .sce .CodeMirror-scroll { min-height: 400px; max-height: 66vh; }
#entity-edit-form .sce .CodeMirror-gutters { background: #0b0d11 !important; border-right: 1px solid var(--em-line); }
#entity-edit-form .sce .ce-bar { background: #0b0d11; border-color: var(--em-line); }
#entity-edit-form .sce .pb { border-color: var(--em-line); background: #101216; }
#entity-edit-form .sce .pb:empty { display: none; }
#entity-edit-form .sce .asst { background: #101216; border-color: var(--em-line); border-radius: 12px; }
#entity-edit-form .sce .asst h4 { padding: 0 !important; margin: 12px 2px 4px; border: none !important; text-align: left; font-size: 11px; color: var(--em-faint); }
#entity-edit-form .sce .as-form label { color: var(--em-muted); }
#entity-edit-form .sce .as-form input, #entity-edit-form .sce .as-form select, #entity-edit-form .sce .asst input.q { background: #0b0d11 !important; border: 1px solid var(--em-line) !important; border-radius: 8px; color: var(--em-text); }
.em-script-hint { position: absolute; left: 74px; top: 20px; z-index: 3; max-width: 70%; font-size: 13px; line-height: 1.6; color: var(--em-faint); pointer-events: none; }
.em-script-hint kbd { margin: 0 2px; }

/* ---------- Volet de propriétés (rétractable) ---------------------------- */

.em-drawer { flex: none; width: 0; display: flex; overflow: hidden; transition: width 0.22s ease; }
.em-drawer.open { width: 320px; border-left: 1px solid var(--em-line); }
.em-rail { flex: none; width: 320px; height: 100%; overflow-y: auto; padding: 4px 18px 20px; background: rgba(0, 0, 0, 0.2); }

.em-acc { border-bottom: 1px solid var(--em-line); }
#entity-edit-form .em-acc-h { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--em-muted); background: none; border: 0; cursor: pointer; }
.em-acc-h i { margin-left: auto; font-size: 16px; transition: transform 0.15s; }
.em-acc.closed .em-acc-h i { transform: rotate(-90deg); }
.em-acc.closed .em-acc-b { display: none; }
.em-acc-b { padding: 2px 2px 10px; }

.em-field { margin-bottom: 12px; }
.em-field > label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--em-muted); }
.em-hint { margin-bottom: 8px; font-size: 12px; color: var(--em-muted); }

#entity-edit-form .em-rail select,
#entity-edit-form .em-rail input[type="text"],
#entity-edit-form .em-rail input[type="date"],
#entity-edit-form .em-rail input[type="time"] { width: 100%; height: 38px; padding: 0 11px; font-size: 13.5px; color: var(--em-text); background: var(--em-field); border: 1px solid var(--em-line); border-radius: 10px; color-scheme: dark; }
#entity-edit-form .em-rail select:focus,
#entity-edit-form .em-rail input:focus { border-color: var(--em-accent); box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18); outline: none; }

.em-dt { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 6px; }
.em-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.em-quick button { height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 600; color: var(--em-muted); background: rgba(255, 255, 255, 0.06); border: none; border-radius: 999px; cursor: pointer; }
.em-quick button:hover { color: #fff; background: rgba(122, 167, 255, 0.28); }

/* Choices.js (projet, parent, catégorie) */
#entity-edit-form .em-rail .choices { margin: 0; height: 38px !important; }
#entity-edit-form .em-rail .choices__inner { min-height: 38px; height: 38px !important; padding: 5px 11px !important; background: var(--em-field) !important; border: 1px solid var(--em-line) !important; border-radius: 10px !important; font-size: 13.5px; }
#entity-edit-form .em-rail .choices__list--single { padding: 0; }
#entity-edit-form .em-rail .choices__list--dropdown { background: #1b1d23 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; border-radius: 12px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); overflow: hidden; z-index: 40; }
#entity-edit-form .em-rail .choices__list--dropdown .choices__item { padding: 8px 12px; font-size: 13.5px; }
#entity-edit-form .em-rail .choices__input { background: transparent !important; color: var(--em-text); }

/* statut / priorité : icône + libellé (les icônes viennent de home.css) */
#entity-edit-form .status-cell, #entity-edit-form .priority-cell, .em-fmenu .status-cell, .em-fmenu .priority-cell {
    display: inline-flex !important; align-items: center; gap: 9px; padding: 0 !important;
    font-size: 13.5px !important; font-weight: 500; line-height: 1.4; white-space: nowrap;
    color: #d8dce4 !important; background: transparent !important; border-radius: 0;
}
#entity-edit-form .priority_off, .em-fmenu .priority_off { color: var(--em-faint) !important; }
#entity-edit-form .priority_urgent, .em-fmenu .priority_urgent { color: #fecaca !important; font-weight: 600; }
#entity-edit-form .status_archived, .em-fmenu .status_archived { color: #8a93a3 !important; }
#entity-edit-form .em-pill .status-cell, #entity-edit-form .em-pill .priority-cell { font-size: 12.5px !important; font-weight: 600; gap: 7px; }
.em-dd-btn { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 11px; background: var(--em-field); border: 1px solid var(--em-line); border-radius: 10px; text-align: left; cursor: pointer; }
.em-dd-btn:hover { border-color: rgba(255, 255, 255, 0.2); }
.em-dd-btn::after { content: "\25BE"; margin-left: auto; font-size: 12px; color: var(--em-faint); }
.em-fmenu { position: fixed; z-index: 10050; min-width: 200px; padding: 6px; background: #1b1d23; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); animation: emFade 0.12s ease; }
.em-fopt { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.em-fopt:hover, .em-fopt.on { background: rgba(122, 167, 255, 0.16); }

/* progression */
.em-slider { display: flex; align-items: center; gap: 12px; height: 38px; }
#entity-edit-form #progress-slider { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 8px; margin: 0; padding: 0; border: none !important; border-radius: 999px; opacity: 1; background: linear-gradient(to right, #3b82f6 0, #10b981 var(--pv, 0%), rgba(255, 255, 255, 0.14) var(--pv, 0%)) !important; }
#entity-edit-form #progress-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #fff; border: 3px solid #3b82f6; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); cursor: pointer; }
#entity-edit-form #progress-slider::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 3px solid #3b82f6; border-radius: 50%; cursor: pointer; }
.em-prog { min-width: 44px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* tags */
.em-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; min-height: 6px; }
#entity-edit-form .tag-chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 2px 6px 2px 10px !important; font-size: 12.5px !important; font-weight: 600; color: #a9c5ff !important; background: rgba(122, 167, 255, 0.14) !important; border: 1px solid rgba(122, 167, 255, 0.3); border-radius: 999px !important; }
#entity-edit-form .tag-chip .remove-tag-btn { margin: 0 !important; width: 18px; height: 18px; line-height: 1; font-size: 15px; color: #a9c5ff !important; background: none; border: none; border-radius: 50%; cursor: pointer; }
#entity-edit-form .tag-chip .remove-tag-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Pied --------------------------------------------------------- */

.em-foot { display: flex; align-items: center; gap: 14px; padding: 14px 24px 16px 28px; background: rgba(0, 0, 0, 0.25); border-top: 1px solid var(--em-line); }
.em-foot-left { min-width: 120px; }
.em-foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.em-state { flex: 1; font-size: 12.5px; color: var(--em-faint); }
.em-state.is-dirty { color: #ffc95c; }
.em-state.is-saved { color: #4ade80; }
.em-state.is-saving { color: var(--em-muted); }
.em-state.is-error { color: #f87171; }
.em-del { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #fca5a5; background: transparent; border: 1px solid rgba(220, 53, 69, 0.4); border-radius: 11px; cursor: pointer; transition: background-color 0.12s ease; }
.em-del:hover { background: rgba(220, 53, 69, 0.15); }
.em-foot .em-btn { height: 38px; padding: 0 18px; border-radius: 11px; font-size: 13.5px; }
.em-ghost { color: var(--em-muted); background: transparent; border-color: var(--em-line); }
.em-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.em-primary { color: #0b1220; background: var(--em-accent); box-shadow: 0 8px 22px -8px rgba(122, 167, 255, 0.7); }
.em-primary:hover { background: #9dbfff; }
.em-primary kbd { height: 17px; padding: 0 5px; font-size: 10px; font-weight: 600; color: #1d2a4a; background: rgba(0, 0, 0, 0.14); border: none; }

/* ---------- Écrans étroits ----------------------------------------------- */

@media (max-width: 860px) {
    .em-drawer.open { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; background: #14161b; }
    .em-body { position: relative; }
    .em-foot .em-primary kbd { display: none; }
}

/* ---------- Récurrence ---------------------------------------------------- */
.rec-inline { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--em-muted); font-size: 13px; }
.rec-inline input[type="number"] { width: 72px; }
.rec-inline select { flex: 1; min-width: 0; }
.rec-interval .rec-inline { margin-top: 0; }
.rec-days { display: flex; gap: 5px; }
.rec-days button { width: 32px; height: 32px; font-size: 12.5px; font-weight: 700; color: var(--em-muted); cursor: pointer; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
.rec-days button:hover { color: #fff; border-color: rgba(122, 167, 255, 0.5); }
.rec-days button.on { color: #0b1220; background: #7aa7ff; border-color: #7aa7ff; }
.rec-preview { margin: 4px 0 12px; padding: 9px 11px; background: rgba(122, 167, 255, 0.08); border: 1px solid rgba(122, 167, 255, 0.25); border-radius: 11px; }
.rec-label { font-size: 12.5px; font-weight: 700; color: #fff; }
.rec-next { margin-top: 3px; font-size: 12px; color: var(--em-muted); }
.rec-next i { color: #7aa7ff; }
.rec-hint { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--em-muted); }
.rec-hint code { padding: 0 4px; font-size: 11px; color: #f6c96b; background: rgba(255, 255, 255, 0.07); border-radius: 4px; }
[hidden].em-field, .em-field[hidden], .rec-inline[hidden], .rec-preview[hidden] { display: none !important; }
