:root { color: #20352e; background: #f5f5ee; font: 15px/1.5 system-ui,sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body,h1,h2,p { margin: 0; }
:focus-visible { outline: 3px solid #a47524; outline-offset: 4px; }
.hub { display: grid; grid-template-columns: var(--module-rail-width, 58px) minmax(0,1fr); min-height: 100dvh; }
.hub-body { width: min(1080px,100%); margin-inline: auto; padding: clamp(24px,5vw,60px); }
.hub-header { margin-bottom: 24px; }
.hub-header h1 { font-size: clamp(28px,4vw,42px); letter-spacing: -.045em; line-height: 1.15; }
.hub-header p { margin-top: 5px; color: #556960; }
.hub-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.hub-card,.tasks-intro { background: #fffefa; border: 1px solid #dce3d9; border-radius: 15px; }
.hub-card { --card-ink: #245743; --card-icon: #e4f1e9; }
.internal { --card-ink: #314e97; --card-icon: #e8efff; }
.tasks,.tasks-intro { --card-ink: #6c4c27; --card-icon: #f6ebdb; }
.hub-card > a:first-child { display: block; min-height: 175px; padding: 19px; color: inherit; text-decoration: none; border-radius: inherit; }
.hub-card:hover { border-color: var(--card-ink); }
.hub-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: var(--card-icon); color: var(--card-ink); margin-bottom: 13px; }
.hub-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hub-card h2,.tasks-intro h2 { font-size: 18px; }
.hub-card p,.tasks-intro p { margin-top: 4px; color: #52655c; }
.hub-card p[data-alert="true"] { color: var(--card-ink); font-weight: 650; }
.hub-secondary { display: block; padding: 10px 19px; border-top: 1px solid #e3ebe6; color: var(--card-ink); font-size: 13px; }
.tasks-intro { padding: 24px; max-width: 460px; }
.tasks-intro a { display: inline-block; margin-top: 14px; color: #245743; }
#hub-error { margin-top: 16px; color: #8d333c; }
@media(max-width: 760px) {
  .hub { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; }
  .hub-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 10px; }
}

.hub-landing {
  display: block;
  border-top: 4px solid var(--gr-orange);
  background: radial-gradient(ellipse 85% 70% at 100% 0%,#f5e8ca 0%,transparent 72%), #f9f6ef;
  color: #2e2a25;
}
.hub-landing > .module-rail { display: none; }
.hub-landing .hub-body { width: min(1420px,100%); padding: clamp(20px,4vw,56px) clamp(18px,5vw,72px) clamp(80px,12vw,170px); }
.home-top,.home-brand,.home-actions { display: flex; align-items: center; }
.home-top { justify-content: space-between; gap: 12px; }
.home-brand { display: grid; gap: 7px; min-width: 0; }
.home-brand img { width: min(100%,310px); height: auto; }
.home-brand p { color: #5e5549; }
.home-welcome h1 span { color: #8d5b0a; }
.home-actions { gap: 12px; flex: none; }
.home-notices { position: relative; }
.home-notices summary,.home-profile,.home-admin {
  position: relative; width: 43px; height: 43px; display: grid; place-items: center;
  color: #302a22; border: 1px solid #c4a675; border-radius: 12px; text-decoration: none; cursor: pointer;
}
.home-notices summary::-webkit-details-marker { display: none; }
.home-notices summary svg,.home-admin svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-profile { background: transparent; font: inherit; border-radius: 50%; font-weight: 700; }
.home-actions :is(summary,.home-profile,.home-admin):hover { background: #f5e7cb; }
#home-notice-dot { position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: #f8b548; border: 1px solid #885b14; }
.home-notice-panel { position: absolute; z-index: 2; top: calc(100% + 8px); right: 0; width: min(265px,75vw); padding: 12px; border-radius: 12px; background: #fffefa; box-shadow: 0 8px 26px #001b2250; }
.home-notice-panel a { display: block; padding: 7px; color: #175644; }
.home-welcome { margin: clamp(28px,6vw,75px) 0 clamp(22px,4vw,46px); color: #302a22; }
.home-welcome h1 { font: 400 1em/1.12 Georgia,serif; font-size: clamp(28px,4.2vw,49px); line-height: 1.12; letter-spacing: -.025em; }
.home-welcome::after { content: ""; display: block; width: 58px; height: 4px; border-radius: 4px; background: var(--gr-orange); margin-top: 17px; }
.hub-landing .hub-cards { gap: clamp(12px,2vw,26px); }
.hub-landing .hub-card {
  --card-accent: #176049; --card-wash: #dcebe0;
  display: flex; flex-direction: column; border-radius: 21px; color: #302a22;
  background: radial-gradient(ellipse 69% 70% at 110% -34%,var(--card-wash) 0 79%,transparent 80%), #ffffff;
  box-shadow: 0 13px 24px #50361317;
}
.hub-landing .internal { --card-accent: #6b6054; --card-wash: #ece6de; }
.hub-landing .tasks { --card-accent: #845a1e; --card-wash: #f2e7d0; }
.hub-landing .hub-card > a:first-child { position: relative; display: flex; flex: 1; flex-direction: column; padding: 22px 20px 0; }
.hub-landing .hub-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--card-accent); color: #ffffff; }
.hub-landing .hub-icon svg { width: 34px; height: 34px; }
.hub-landing .hub-card h2 { font-size: clamp(19px,2.3vw,30px); letter-spacing: -.035em; }
.hub-landing .hub-card p { flex: 1; }
.home-card-status { display: block; margin: 19px -20px 0; padding: 14px 20px; border-top: 1px solid #e6ded0; color: var(--card-ink); font-size: 14px; }
.home-card-status[data-alert="true"] { font-weight: 700; }
.home-soon { border-radius: 9px; background: #f3e8d2; padding: 3px 8px; }
.hub-landing #hub-error { color: #fffaf0; background: #703339; padding: 10px 14px; border-radius: 8px; }
@media(max-width: 560px) {
  .home-brand p { font-size: 12px; }
  .home-actions { gap: 7px; }
  .home-notices summary,.home-profile,.home-admin { width: 36px; height: 36px; }
  .hub-landing .hub-cards { grid-template-columns: 1fr; }
}
.home-push-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; padding: 14px 18px; border: 1px solid #ecd4b4;
  border-radius: 14px; background: #fff8eb;
}
.home-push-banner p { color: #5e5549; }
.home-push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-push-actions button,.home-notice-panel button {
  padding: 8px 12px; border: 1px solid #e4ceb1; border-radius: 8px;
  background: #fffefa; color: #302a22; font: inherit; cursor: pointer;
}
.home-push-actions .hub-primary { background: var(--gr-orange); color: var(--gr-orange-ink); font-weight: 650; }
.home-push-actions .hub-primary:hover:not(:disabled) { background: var(--gr-orange-hover); }
.home-notice-panel button { margin-top: 8px; text-align: left; }
.home-feedback:not(:empty) { margin: 0 0 16px; color: #66441a; }
#home-profile-dialog {
  width: min(440px,calc(100% - 32px)); padding: 22px; border: 1px solid #e4ceb1;
  border-radius: 16px; background: #fffefa; color: #302a22;
}
#home-profile-dialog::backdrop { background: #27292c70; }
#home-profile-form { display: grid; gap: 10px; }
#home-profile-name { width: 100%; padding: 9px; border: 1px solid #c9ae88; border-radius: 8px; font: inherit; }
#home-profile-error { color: #8d333c; }
#home-profile-form .home-push-actions { justify-content: flex-end; }
.home-admin { background: transparent; font: inherit; }
#home-users-dialog {
  width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 22px; border: 1px solid #e4ceb1; border-radius: 16px; background: #fffefa; color: #302a22;
}
#home-users-dialog::backdrop { background: #27292c70; }
#home-users-form,#home-users-fields,.agent-directory { display: grid; gap: 10px; }
#home-users-fields button { font: inherit; border: 1px solid #e4ceb1; border-radius: 8px; background: #fff8eb; cursor: pointer; padding: 7px 10px; }
#home-users-fields > button { background: var(--gr-orange); justify-self: start; }
#home-users-fields .agent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; border-bottom: 1px solid #eee2d4; padding-block: 8px; }
.agent-row > div { flex: 1; min-width: 125px; overflow-wrap: anywhere; }
.agent-row small { display: block; }
#home-users-fields label { display: grid; gap: 4px; margin-block: 8px; }
#home-users-fields :is(input,select) { max-width: 100%; padding: 8px; border: 1px solid #c9ae88; border-radius: 7px; font: inherit; }
#home-users-fields h3 { margin: 0 0 6px; }
#home-users-error { color: #8d333c; }
@media (max-width: 560px) {
  .home-top { flex-wrap: wrap; }
}

.backup-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee2d4; }
.backup-status { color: #5e5549; font-size: 13px; margin-bottom: 8px; }
.backup-list { display: grid; gap: 2px; margin-bottom: 10px; }
.backup-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f1e8da; font-size: 13px; }
.backup-row a { color: #8d5b0a; font-weight: 650; }
.backup-offsite { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fff8eb; }
.backup-offsite p { color: #5e5549; font-size: 13px; margin: 4px 0 8px; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.45; }
.backup-steps li + li { margin-top: 4px; }

/* Mi día */
.home-day { margin-bottom: clamp(18px,3vw,30px); padding: 18px 20px; border-radius: 18px; background: #fffefb; box-shadow: 0 10px 22px #50361312; border: 1px solid #efe4d2; }
.home-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.home-day-head h2 { font: 400 26px/1.1 Georgia,serif; color: #302a22; }
.home-day-head span { color: #7a6c58; font-size: 14px; }
.home-day-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 22px; }
.home-day-col h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #7a6c58; text-transform: uppercase; letter-spacing: .04em; }
.home-day-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.home-day-col a { display: grid; gap: 1px; padding: 7px 10px; border-radius: 9px; color: #2e2a25; text-decoration: none; border-left: 3px solid #e7ddce; background: #faf6ee; }
.home-day-col a:hover { background: #f5ecdc; }
.home-day-col a small { color: #7a6c58; font-size: 12px; }
.home-day-col a[data-tone="late"] { border-left-color: #c9372c; }
.home-day-col a[data-tone="late"] small { color: #a3282a; font-weight: 650; }
.home-day-col a[data-tone="today"] { border-left-color: #e8a43a; }
.home-day-col a[data-tone="wait"] { border-left-color: #7b4d07; }
.home-day-col a[data-tone="info"] { border-left-color: #8d5b0a; }
.day-empty { padding: 7px 10px; color: #7a6c58; font-size: 13px; }
@media (max-width: 860px) { .home-day-grid { grid-template-columns: minmax(0,1fr); } }

/* Cuatro módulos en Inicio */
.hub-landing .hub-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.calls { --card-ink: #7b4d07; --card-icon: #fbe7b5; }
.hub-landing .calls { --card-accent: #b0641a; --card-wash: #fbe2c4; }
@media (max-width: 1100px) { .hub-landing .hub-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .hub-landing .hub-cards { grid-template-columns: 1fr; } }

.manual { --card-ink: #5b2d7a; --card-icon: #efe3f7; }
.hub-landing .manual { --card-accent: #6d3a8f; --card-wash: #efe3f7; }
/* Cinco módulos en Inicio */
.hub-landing .hub-cards { grid-template-columns: repeat(5,minmax(0,1fr)); }
.hub-landing .hub-card h2 { font-size: clamp(18px,1.5vw,26px); }
@media (max-width: 1250px) { .hub-landing .hub-cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .hub-landing .hub-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .hub-landing .hub-cards { grid-template-columns: 1fr; } }

.home-profile-push { display: grid; gap: 8px; margin-top: 6px; padding: 12px 14px; border: 1px solid #ecd4b4; border-radius: 12px; background: #fff8eb; }
.home-profile-push h3 { margin: 0; font-size: 15px; }
#home-profile-push-status { margin: 0; font-weight: 600; }
#home-profile-push-status[data-state="active"] { color: #22683d; }
#home-profile-push-status[data-state="blocked"],#home-profile-push-status[data-state="inactive"] { color: #8d5b0a; }
.home-profile-hint { margin: 0; color: #6a5f50; font-size: 12.5px; }
.home-profile-push .home-push-actions { justify-content: flex-start; }

#home-password-dialog { width: min(440px,calc(100vw - 24px)); padding: 22px; border: 0; border-radius: 16px; background: #fffefa; color: #302a22; box-shadow: 0 20px 50px #0005; }
#home-password-dialog::backdrop { background: #27292c99; }
#home-password-form { display: grid; gap: 10px; }
#home-password-form h2 { margin: 0; font-size: 21px; }
#home-password-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
#home-password-form input { width: 100%; padding: 9px; border: 1px solid #c9ae88; border-radius: 8px; font: inherit; font-weight: 400; }
#home-password-error { margin: 0; color: #8d333c; }
#home-password-error:empty { display: none; }
#home-password-form .home-push-actions { justify-content: flex-end; }
.settings-hint { margin: 4px 0 0; color: #6a5f50; font-size: 12.5px; }
.settings-hint.request { padding: 8px 10px; border-radius: 9px; background: #fff3d6; color: #6d4b00; font-weight: 600; }
.reset-request { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #fbe7b5; color: #6d4b00; font-size: 12px; font-weight: 700; }
.settings-secondary { justify-self: start; padding: 6px 12px; border: 1px dashed #b89a68; border-radius: 9px; background: #fffefa; font: inherit; font-size: 13px; cursor: pointer; }
#home-users[data-alert="true"] { box-shadow: 0 0 0 2px #e2483d; }

#home-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
#home-profile-dialog { max-height: calc(100dvh - 30px); overflow-y: auto; }
.home-avatar-editor { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #e6dac6; border-radius: 12px; background: #fffdf8; }
.avatar-head { display: flex; align-items: center; gap: 14px; }
.avatar-head h3 { margin: 0; font-size: 15px; }
.avatar-preview { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--av-bg,#ccc); color: var(--av-ink,#fff);
  font-size: 24px; font-weight: 750; overflow: hidden; box-shadow: 0 3px 10px #4a351833; letter-spacing: -.02em; }
.avatar-preview[data-av-len="3"] { font-size: 19px; }
.avatar-preview[data-av-len="emoji"] { font-size: 32px; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-label { font-size: 12px; font-weight: 700; color: #8d5b0a; text-transform: uppercase; letter-spacing: .05em; }
.avatar-colors,.avatar-kinds,.avatar-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-swatch { width: 28px; height: 28px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #d8c3a0; cursor: pointer; }
.avatar-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #2e2620; }
.avatar-kinds button { padding: 5px 11px; border: 1px solid #e0cfb2; border-radius: 999px; background: #fffefa; font: inherit; font-size: 13px; cursor: pointer; }
.avatar-kinds button[aria-checked="true"] { background: #302a22; border-color: #302a22; color: #fff; }
.avatar-emojis button { width: 36px; height: 36px; padding: 0; border: 1px solid #e6dac6; border-radius: 9px; background: #fff; font-size: 19px; cursor: pointer; }
.avatar-emojis button[aria-checked="true"] { border-color: #2e2620; box-shadow: 0 0 0 1px #2e2620; background: #fff3d6; }
.avatar-text-row { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.avatar-text-row input { width: 110px; padding: 7px 9px; border: 1px solid #c9ae88; border-radius: 8px; font: inherit; font-size: 16px; }
.avatar-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar-photo-row button { padding: 6px 12px; border: 1px dashed #b89a68; border-radius: 9px; background: #fffefa; font: inherit; font-size: 13px; cursor: pointer; }
#home-profile-form .home-profile-push .home-push-actions { justify-content: flex-start; }
/* El icono personal ocupa el círculo entero del botón de perfil */
.home-profile { padding: 2px; overflow: hidden; }
#home-initials { box-sizing: border-box; width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; line-height: 1; }

/* Inicio sin título de bienvenida: solo la línea naranja separa la cabecera del contenido */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-landing .home-welcome { margin: clamp(10px,2vw,22px) 0 clamp(18px,3vw,30px); }
.hub-landing .home-welcome::after { margin-top: 0; }

#home-email-dialog { width: min(440px,calc(100% - 32px)); padding: 22px; border: 1px solid #e4ceb1; border-radius: 16px; background: #fffefa; color: #302a22; }
#home-email-dialog::backdrop { background: #27292c70; }
#home-email-form, #home-email-form label { display: grid; gap: 8px; }
#home-email-request { display: grid; gap: 10px; }
#home-email-form input { width: 100%; padding: 9px; border: 1px solid #c9ae88; border-radius: 8px; font: inherit; }
#home-profile-email { overflow-wrap: anywhere; }
.audit-list { margin: 0; padding: 0; list-style: none; }
.audit-list li { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid #eee2d4; overflow-wrap: anywhere; }

.hub-landing .hub-cards { grid-template-columns:repeat(6,minmax(0,1fr)); }
.hub-landing .hub-card { grid-column:span 2; }
.hub-landing .hub-card.whatsapp { order:1; }
.hub-landing .hub-card.internal { order:2; }
.hub-landing .hub-card.calls { order:3; }
.hub-landing .hub-card.tasks { order:4; }
.hub-landing .hub-card.manual { order:5; }
.hub-landing .hub-card.quotes { order:6; --card-accent:#aa4608; --card-wash:#ffe5cc; --card-ink:#853909; }
.hub-landing .hub-card[hidden] { display:none; }
.hub-landing .hub-card > a:first-child { padding-top:16px; }
.hub-landing .hub-card .hub-icon { height:45px; width:45px; border-radius:12px; }
.hub-landing .hub-icon svg { width:27px; height:27px; }
.hub-landing:not(.hub-admin) .hub-card.tasks { grid-column:2/span 2; }
@media(max-width:950px) {
  .hub-landing .hub-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hub-landing .hub-card,.hub-landing:not(.hub-admin) .hub-card.tasks { grid-column:auto; }
}
@media(max-width:560px) {
  .hub-landing .hub-cards { grid-template-columns:1fr; }
}
.hub-landing .hub-card { position:relative; padding-bottom:37px; }
.hub-landing .hub-card .hub-secondary { position:absolute; inset:auto 0 0; padding-top:8px; padding-bottom:8px; }

/* v93 · móvil: el desplegable de avisos no se sale de la pantalla */
@media (max-width: 760px) {
  .home-notice-panel { position: fixed; left: 12px; right: 12px; width: auto; top: auto; margin-top: 8px; z-index: 30; }
}

/* v93 · iconos de la cabecera de Inicio centrados también en Safari/iPhone (no depende de grid en <summary>) */
.home-actions :is(.home-admin,.home-notices summary) { position: relative; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; line-height: 0; }
.home-actions :is(.home-admin,.home-notices summary) svg {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: 0; transform: translate(-50%,-50%); display: block;
}
@media (max-width: 560px) {
  .home-actions :is(.home-admin,.home-notices summary) svg { width: 19px; height: 19px; }
}

/* v103 · Inicio en el móvil: iconos de módulos con globitos
   v172 · También en el ordenador: una sola fila de iconos grandes (hasta 8 por fila, centrados; con 9 o más se reparten entre filas) */
.hub-cards { display: none !important; }
.home-apps { --per-row: 8; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 0; width: 100%; max-width: none; margin: 28px 0 12px; padding: 32px 18px; border: 1px solid #ecdfcb; border-radius: 24px; background: #fffdf9; box-sizing: border-box; }
.home-apps a { display: grid; justify-items: center; align-content: start; gap: 12px; flex: 0 0 calc(100% / var(--per-row)); min-width: 0; padding: 0 6px; box-sizing: border-box; color: #302a22; font-size: clamp(14.5px, 1.15vw, 17px); font-weight: 650; text-align: center; text-decoration: none; line-height: 1.2; border-radius: 18px; }
.home-apps a[hidden] { display: none; }
.home-apps a:focus-visible { outline: 3px solid #f4a450; outline-offset: 4px; }
.home-app-icon { position: relative; display: block; width: clamp(88px, 8vw, 124px); height: clamp(88px, 8vw, 124px); border-radius: 28%; background: #2f5470; color: #fff; box-shadow: 0 4px 14px #4a351822; transition: transform .15s ease, box-shadow .15s ease; }
.home-apps a:hover .home-app-icon { transform: translateY(-3px); box-shadow: 0 10px 22px #4a35182e; }
.home-app-icon svg { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-app-icon[data-app="whatsapp"] { background: #1f6b4f; color: #fff; }
.home-app-icon[data-app="team"] { background: #f4a450; color: #2e2620; }
.home-app-icon[data-app="tasks"] { background: #6e4a1d; color: #fff; }
.home-app-icon[data-app="calls"] { background: #c46a2b; color: #fff; }
.home-app-icon[data-app="manual"] { background: #3b3a37; color: #fff; }
.home-app-icon[data-app="jornada"] { background: #2f5470; color: #fff; }
.home-app-icon[data-app="quotes"] { background: #c19a54; color: #fff; }
.home-app-icon b { position: absolute; top: -8px; right: -8px; min-width: 28px; height: 28px; padding: 0 7px; border: 3px solid #fffdf9; border-radius: 999px; background: #d93025; color: #fff; font-size: 13.5px; font-weight: 750; line-height: 22px; text-align: center; }
.home-app-icon b[hidden] { display: none; }
.home-apps a:active .home-app-icon { transform: scale(.95); }
@media (max-width: 760px) {
  .home-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; max-width: none; margin: 14px 0 18px; padding: 16px 8px; border-radius: 18px; }
  .home-apps a { flex: none; width: auto; padding: 0; gap: 7px; font-size: 12.5px; font-weight: 600; }
  .home-app-icon { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 2px 6px #4a351818; }
  .home-app-icon svg { width: 28px; height: 28px; }
  .home-apps a:hover .home-app-icon { transform: none; }
  .home-app-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
  .home-app-icon b { top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-width: 2px; font-size: 12px; font-weight: 700; line-height: 18px; }
}

/* v103 · Usuarios y administración (misma línea que Presupuestos) */
#home-users-dialog.ua-wide { width: min(1080px, calc(100vw - 32px)); max-width: none; }
#home-users-dialog.ua-wide #home-users-title { font: 400 30px/1.1 Georgia, "Times New Roman", serif; color: #252524; }
#home-users-dialog .ua-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 2px 0 6px; border-bottom: 1px solid #e5e0d9; }
#home-users-dialog .ua-tabs button { padding: 8px 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #6d675f; font: inherit; font-weight: 600; cursor: pointer; }
#home-users-dialog .ua-tabs button[aria-current="page"] { color: #252524; border-bottom-color: #F4A450; }
#home-users-dialog .ua-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#home-users-dialog .ua-search { flex: 0 1 380px; min-width: 200px; height: 40px; padding: 0 12px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; font: inherit; }
#home-users-dialog .ua-create { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #F4A450; color: #252524; font: inherit; font-weight: 700; cursor: pointer; }
#home-users-dialog .ua-create:hover { background: #e48f35; }
#home-users-dialog .ua-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #6d675f; font-size: 13.5px; }
#home-users-dialog .ua-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #efedea; color: #4b4741; font-size: 12px; font-weight: 650; white-space: nowrap; }
#home-users-dialog .ua-pill.warn { background: #fdf3e6; color: #8a4b0e; }
#home-users-dialog .ua-pill.alert { background: #f9e1df; color: #8c2c26; }
#home-users-dialog .ua-table-wrap { overflow-x: auto; border: 1px solid #e5e0d9; border-radius: 12px; background: #fff; }
#home-users-dialog .ua-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#home-users-dialog .ua-table th { padding: 11px 14px; background: #F8F7F4; color: #6d675f; font-size: 12.5px; font-weight: 600; text-align: left; border-bottom: 1px solid #e5e0d9; }
#home-users-dialog .ua-table td { padding: 10px 14px; border-bottom: 1px solid #efe9e0; vertical-align: middle; }
#home-users-dialog .ua-table tbody tr { cursor: pointer; }
#home-users-dialog .ua-table tbody tr:hover td { background: #fdf3e6; }
#home-users-dialog .ua-table tr.ua-off td { color: #8a847b; }
#home-users-dialog .ua-person { display: flex; align-items: center; gap: 10px; }
#home-users-dialog .ua-person > span:last-child { display: grid; }
#home-users-dialog .ua-person small { color: #6d675f; font-size: 12px; }
#home-users-dialog .ua-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f4e9d6; color: #6f4b19; font-size: 13px; font-weight: 700; }
#home-users-dialog .ua-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
#home-users-dialog .ua-role,#home-users-dialog .ua-state { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #efedea; color: #4b4741; font-size: 12.5px; font-weight: 650; }
#home-users-dialog .ua-role.admin { background: #fbe7cf; color: #7a420e; }
#home-users-dialog .ua-state.on { background: #e3f1e5; color: #22603a; }
#home-users-dialog .ua-state.off { background: #efedea; color: #6d675f; }
#home-users-dialog .ua-mail { overflow-wrap: anywhere; }
#home-users-dialog .ua-actions { width: 48px; text-align: right; }
#home-users-dialog .ua-menu { position: relative; display: inline-block; }
#home-users-dialog .ua-menu summary { list-style: none; display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; color: #6d675f; font-weight: 700; cursor: pointer; }
#home-users-dialog .ua-menu summary::-webkit-details-marker { display: none; }
#home-users-dialog .ua-menu[open] summary,#home-users-dialog .ua-menu summary:hover { background: #F8F7F4; }
#home-users-dialog .ua-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; min-width: 140px; padding: 5px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #25252422; }
#home-users-dialog .ua-menu-list button { padding: 8px 10px; border: 0; border-radius: 7px; background: none; font: inherit; text-align: left; cursor: pointer; }
#home-users-dialog .ua-menu-list button:hover { background: #F8F7F4; }
#home-users-dialog .ua-empty { padding: 18px; color: #6d675f; }
#home-users-dialog .ua-intro { flex: 1 1 420px; margin: 0; color: #6d675f; font-size: 13.5px; }
#home-users-dialog .ua-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
#home-users-dialog .ua-dept { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid #e5e0d9; border-radius: 12px; background: #fff; }
#home-users-dialog .ua-dept header { display: flex; align-items: center; gap: 8px; }
#home-users-dialog .ua-dept header small { margin-left: auto; color: #6d675f; }
#home-users-dialog .ua-dept-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
#home-users-dialog .ua-dept-people { margin: 0; font-size: 14px; }
#home-users-dialog .ua-dept-hint { margin: 0; color: #6d675f; font-size: 12px; }
#home-users-dialog .ua-dept button { justify-self: start; padding: 6px 12px; border: 1px solid #d9d2c8; border-radius: 8px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
#home-users-dialog .ua-swatches { display: flex; gap: 8px; }
#home-users-dialog .ua-swatches button { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d9d2c8; cursor: pointer; }
#home-users-dialog .ua-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px #252524; }
#home-users-dialog .ua-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
#home-users-dialog .ua-person-check { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e5e0d9; border-radius: 9px; background: #fff; cursor: pointer; }
#home-users-dialog .ua-danger { justify-self: start; padding: 7px 12px; border: 1px solid #e6b3ae; border-radius: 8px; background: #fff; color: #a3282a; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  #home-users-dialog.ua-wide { width: 100vw; }
  #home-users-dialog .ua-table thead { display: none; }
  #home-users-dialog .ua-table,#home-users-dialog .ua-table tbody { display: block; }
  #home-users-dialog .ua-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid #efe9e0; }
  #home-users-dialog .ua-table td { display: block; padding: 0; border: 0; }
  #home-users-dialog .ua-table td.ua-person { display: flex; }
  #home-users-dialog .ua-table td.ua-person { grid-column: 1; }
  #home-users-dialog .ua-table td.ua-actions { grid-column: 2; grid-row: 1; }
  #home-users-dialog .ua-table td:not(.ua-person):not(.ua-actions) { grid-column: 1 / -1; display: inline-block; }
}

/* v105 · Usuarios: mismo tamaño en todas las secciones, X para cerrar */
#home-users-dialog.ua-wide { height: min(780px, calc(100dvh - 32px)); overflow-y: auto; }
#home-users-dialog, #home-profile-dialog { position: fixed; }
#home-users-dialog #home-users-fields > .settings-section, #home-users-dialog #home-users-fields > label { max-width: 820px; }
.dialog-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: #f4ede2; color: #302a22; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.dialog-x:hover { background: #ebe1d2; }
#home-users-title, #home-profile-title { padding-right: 44px; }
@media (max-width: 760px) { #home-users-dialog.ua-wide { height: 100dvh; max-height: 100dvh; } }

/* v108 · Usuarios y administración: cabecera (título y pestañas) fija */
#home-users-dialog.ua-wide { padding-top: 0; }
#ua-head { position: sticky; top: 0; z-index: 4; display: grid; gap: 6px; margin: 0 -22px; padding: 18px 22px 0; background: #fffefa; box-shadow: 0 8px 10px -10px #30251a40; }
/* v172 · Pestañas cortas con icono que bajan de línea si no caben; en móvil, desplegable */
#ua-head .ua-tabs { margin: 0; flex-wrap: wrap; gap: 0 18px; }
#ua-head .ua-tabs button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ua-tab-icon { font-size: 15px; line-height: 1; filter: saturate(.85); }
#ua-head .ua-tabs button:not([aria-current="page"]) .ua-tab-icon { opacity: .75; }
#ua-head .ua-tabs-select { display: none; }
@media (max-width: 760px) {
  #ua-head .ua-tabs { border-bottom: 0; padding-bottom: 10px; }
  #ua-head .ua-tabs > button { display: none; }
  #ua-head .ua-tabs-select { display: block; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #e0c9a3; border-radius: 12px; background: #fff; font: inherit; font-weight: 650; color: #252524; }
}
#ua-head .dialog-x { top: 14px; right: 18px; }
#home-users-form { padding-top: 0; }

/* v110: en ordenador, la cabecera de Inicio (logo, avisos, usuarios, perfil) queda fija al hacer scroll */
@media (min-width: 761px) {
  .hub-landing #hub-home .home-top { position: sticky; top: 0; z-index: 40; margin: calc(-1 * clamp(20px,4vw,56px)) calc(-1 * clamp(18px,5vw,72px)) 0; padding: clamp(14px,2.4vw,30px) clamp(18px,5vw,72px) 14px; background: #f9f6ef; transition: box-shadow .2s; }
  .hub-landing #hub-home .home-top.is-stuck { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 14px -14px #30251a66; }
  .hub-landing #hub-home .home-top.is-stuck .home-brand img { width: 170px; }
  .hub-landing #hub-home .home-top.is-stuck .home-brand p { display: none; }
}
/* v120 · Copia automática: estado claro */
.backup-state { margin: 8px 0 6px !important; padding: 8px 10px; border-radius: 8px; font-weight: 700; font-size: 14px !important; }
.backup-state-ok { background: #e7f4ea; color: #1f6b35 !important; }
.backup-state-warn { background: #fde9d6; color: #8a4b0e !important; }
.backup-state-wait, .backup-state-unknown { background: #f3efe8; color: #5e5549 !important; font-weight: 600; }
.backup-facts { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: #5e5549; line-height: 1.5; }
.backup-advice { font-size: 13px; }
.backup-actions .backup-link { border: 0 !important; background: none !important; padding: 4px 2px !important; color: #8d5b0a; text-decoration: underline; font-size: 13px; box-shadow: none !important; }
.backup-command { display: flex; gap: 6px; align-items: center; margin: 5px 0; }
.backup-command code { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 6px; background: #2b2a28; color: #f6efe3; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.backup-command button { flex: none; padding: 4px 9px; font-size: 12px; }

/* v120 · Espacio y limpieza / revisión de archivos */
.gr-files-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px #0005; overflow: hidden; display: none; flex-direction: column; }
.gr-files-dialog[open] { display: flex; }
.gr-files-dialog::backdrop { background: #1d1b1866; }
.gr-files-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eee2d4; background: #fffaf2; }
.gr-files-head h2 { margin: 0; font-size: 20px; }
.gr-files-later { border: 0; background: none; color: #8d5b0a; text-decoration: underline; cursor: pointer; font-size: 14px; }
.gr-files-body { padding: 14px 20px 20px; overflow-y: auto; }
.gr-files-body h3 { margin: 20px 0 8px; font-size: 15px; }
.gr-files-intro { color: #4c463e; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.gr-file-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 2px; font-size: 13px; }
.gr-file-count { color: #6d675f; font-size: 13px; }
.gr-file-list { display: grid; gap: 4px; margin-bottom: 10px; }
.gr-file-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #eee2d4; border-radius: 10px; background: #fff; }
.gr-file-row input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: #c46a2b; }
.gr-file-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.gr-file-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-file-main strong a { color: #252524; }
.gr-file-main small { color: #6d675f; font-size: 12px; }
.gr-file-row > button { flex: none; padding: 6px 10px; font-size: 13px; }
.gr-file-choices { display: grid; gap: 8px; margin-top: 12px; }
.gr-file-choices-label { margin: 0; font-size: 13px; font-weight: 700; color: #4c463e; }
.gr-file-choice { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid #e5dccd; background: #fff; cursor: pointer; }
.gr-file-choice strong { font-size: 15px; }
.gr-file-choice small { color: #6d675f; font-size: 12.5px; line-height: 1.35; font-weight: 400; }
.gr-file-choice-keep:hover { border-color: #3d8b56; background: #f1f8f2; }
.gr-file-choice-archive:hover { border-color: #c46a2b; background: #fdf3e6; }
.gr-file-choice-delete strong { color: #a3282a; }
.gr-file-choice-delete:hover { border-color: #a3282a; background: #fbeeee; }
.gr-space-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.gr-space-stat { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #eee2d4; border-radius: 12px; background: #fffaf2; }
.gr-space-stat small { color: #6d675f; font-size: 12px; }
.gr-space-stat strong { font-size: 20px; }
.gr-space-stat span { color: #8a8378; font-size: 11.5px; }
.gr-space-h { margin: 18px 0 6px; font-size: 15px; }
.gr-space-bars { display: grid; gap: 6px; }
.gr-space-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px; gap: 10px; align-items: center; font-size: 13px; }
.gr-space-bar b { display: block; height: 10px; border-radius: 99px; background: #f1e8da; overflow: hidden; }
.gr-space-bar b i { display: block; height: 100%; border-radius: 99px; background: #F4A450; }
.gr-space-bar small { color: #6d675f; }
.gr-space-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fdf3e6; color: #8a4b0e; font-size: 13px; }
.gr-space-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gr-space-filters select { min-width: 0; flex: 1 1 160px; }
.gr-space-results { max-height: 380px; overflow-y: auto; padding-right: 2px; }
.gr-space-propose { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gr-space-footer { margin-top: 8px; }
@media (max-width: 760px) {
  .gr-files-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .gr-space-bar { grid-template-columns: 90px minmax(0, 1fr); }
  .gr-space-bar small { grid-column: 1 / -1; margin-top: -4px; }
}
#home-users-fields label.gr-file-row { display: flex; margin: 0; gap: 10px; }
#home-users-fields .gr-file-choice { display: grid; text-align: left; padding: 10px 14px; border-radius: 12px; border-color: #e5dccd; background: #fff; }
#home-users-fields .gr-file-choice-delete:hover { border-color: #a3282a; background: #fbeeee; }
#home-users-fields .gr-file-choice-archive:hover { border-color: #c46a2b; background: #fdf3e6; }
#home-users-fields .gr-file-choice-keep:hover { border-color: #3d8b56; background: #f1f8f2; }
.gr-space-done { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #e7f4ea; color: #1f6b35; font-size: 13px; }
.gr-files-later-row { margin: 14px 0 0; text-align: center; }
.gr-files-head { padding-right: 56px; }

/* v124 · permisos adicionales */
.ua-perms { display: grid; gap: 8px; }
.ua-perm { display: flex !important; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid #eadfcd; border-radius: 11px; background: #fffefa; cursor: pointer; }
.ua-perm input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ua-perm span { display: grid; gap: 2px; }
.ua-perm b { font-size: 14px; }
.ua-perm small { color: #6a5f50; font-size: 12.5px; font-weight: 400; }
.ua-perm:has(input:checked) { border-color: #e2b04f; background: #fff7e6; }
.ua-perm:has(input:disabled) { opacity: .6; cursor: default; }
.ua-perm-note { color: #6a5f50; font-size: 12.5px; margin: 0; }
.ua-pill.perm { background: #eef2fb; color: #2b4f86; }
.hub-card.jornada .hub-icon { background:#375b70; color:#fff; }
.hub-landing .hub-card.jornada { order:5; }
#home-users-fields .ua-schedule-day { grid-template-columns:90px minmax(120px, 1fr) minmax(65px, 90px); align-items:center; }
.home-app-icon[data-app="jornada"] { background:#375b70; color:#fff; }
.hub-landing .hub-card.jornada { --card-accent:#375b70; --card-wash:#dfeaf0; --card-ink:#29495b; }

.hub-landing .hub-cards { grid-template-columns:repeat(var(--hub-tracks,4),minmax(0,1fr)); }
#home-users-fields .ua-jornada { box-sizing:border-box; width:100%; max-width:none; padding:clamp(14px,2vw,22px); border:1px solid #e8dfd3; border-radius:14px; background:#fffdf9; }
.ua-jornada-header { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-bottom:12px; }
.ua-jornada fieldset { min-width:0; margin:0; padding:6px 12px 10px; border:1px solid #e8dfd3; border-radius:10px; }
.ua-jornada legend { padding:0 6px; color:#5f5041; font-weight:650; }
.ua-jornada-people { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:8px; }
.ua-jornada-link,.ua-jornada-person { color:#302a22; text-decoration:none; border:1px solid #e8dfd3; border-radius:9px; background:white; }
.ua-jornada-link { padding:7px 10px; font-size:13px; font-weight:650; }
.ua-jornada-person { display:flex; align-items:center; gap:8px; padding:9px 12px; font-size:14px; }
.ua-jornada-person strong { flex:1; overflow-wrap:anywhere; }
.ua-jornada-link:hover,.ua-jornada-person:hover { background:#fff3e2; border-color:#e7bd86; }
.ua-jornada-chevron { color:#95601f; font-size:19px; line-height:1; }
#home-users-fields .ua-jornada input { box-sizing:border-box; min-width:0; width:100%; }
@media(max-width:480px) {
  #home-users-fields .ua-schedule-day { grid-template-columns:minmax(0,1fr) 61px; }
  #home-users-fields .ua-schedule-day input:first-of-type { grid-column:1; }
}
/* v168 · Modo demostración */
.ua-demo { border-color: #d9cdf0 !important; background: #faf8ff !important; }
.ua-demo p { font-size: 13.5px; color: #4d4458; }
.ua-demo-on { font-weight: 650; color: #4a2f86 !important; }
.ua-demo-people { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
#home-users-fields .ua-demo-person { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500; }
#home-users-fields .ua-demo-person input { width: 17px; height: 17px; min-height: 0; }
.ua-demo-person small { color: #8a7c66; }
#home-users-fields .ua-demo-at { display: grid; gap: 4px; max-width: 260px; }
.ua-demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ua-demo-review { margin-top: 10px; padding: 12px 14px; border: 1px solid #d9cdf0; border-radius: 12px; background: #fff; }
.ua-demo-review h4 { margin: 0 0 6px; font-size: 15px; color: #4a2f86; }
.ua-demo-review h5 { margin: 10px 0 4px; font-size: 13px; }
.ua-demo-kind-nuevo { color: #a3361f; } .ua-demo-kind-cambiado { color: #7a5a00; } .ua-demo-kind-borrado { color: #1f6b3a; }
.ua-demo-review ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.ua-demo-review li { margin: 3px 0; }
.ua-demo-review li small { color: #6f6580; }
.ua-demo-samples { color: #5d5468; font-size: 12.5px !important; }
.ua-demo-note { font-size: 12.5px !important; color: #6f6580 !important; }
/* v176 · Comparar con A3 */
.a3-section > p { max-width: 75ch; }
.a3-status { padding: 10px 14px; border-radius: 12px; background: #eef6ee; color: #2f5d34; font-weight: 600; }
.a3-status.warn { background: #fdf0de; color: #8a4b0e; }
.a3-done { padding: 10px 14px; border-radius: 12px; background: #eef6ee; color: #2f5d34; }
.a3-paste { width: 100%; box-sizing: border-box; font: 12.5px/1.4 ui-monospace, monospace; border: 1px dashed #d8c7ad; border-radius: 12px; padding: 10px; background: #fffdf8; resize: vertical; }
.a3-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 8px; }
.a3-file { display: flex; gap: 8px; align-items: center; font-weight: 600; color: #5b5145; }
.a3-summary { font-weight: 700; margin-top: 14px; }
.a3-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.a3-tools .ua-create { margin-left: auto; }
.a3-card { border: 1px solid #e8dccb; border-radius: 14px; background: #fff; padding: 12px 14px; margin-bottom: 10px; }
.a3-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.a3-diff { display: grid; grid-template-columns: auto 110px minmax(0,1fr) auto minmax(0,1fr); gap: 4px 10px; align-items: start; padding: 6px 0; border-top: 1px solid #f1e9dc; cursor: pointer; }
.a3-field { font-weight: 700; color: #5b5145; }
.a3-cur { color: #8a8378; overflow-wrap: anywhere; }
.a3-old { color: #8a8378; text-decoration: line-through; text-decoration-color: #c9bfb0; overflow-wrap: anywhere; }
.a3-new { color: #2f5d34; font-weight: 600; overflow-wrap: anywhere; }
.a3-arrow { color: #c08a3e; }
.a3-note { margin: 6px 0 0; color: #8a4b0e; font-size: 13px; }
.a3-missing { margin-top: 12px; }
.a3-missing ul { columns: 2; font-size: 13px; color: #5b5145; }
@media (max-width: 680px) {
  .a3-diff { grid-template-columns: auto minmax(0,1fr); }
  .a3-old, .a3-cur, .a3-arrow, .a3-new { grid-column: 2; }
  .a3-arrow { display: none; }
  .a3-missing ul { columns: 1; }
}
/* v176 · Iconos de línea en las secciones de administración */
#ua-head .ua-tabs .gr-ico { width: 18px; height: 18px; color: #8a8378; }
#ua-head .ua-tabs button[aria-current="page"] .gr-ico { color: #d97a1e; }
#ua-head .ua-tabs button:hover .gr-ico { color: #5b5145; }
#ua-head .ua-tabs button:focus-visible { outline: 2px solid #f4a45099; outline-offset: 3px; border-radius: 6px; }

/* v184 · Cuadro de mando › Sugerencias */
#home-users-dialog #home-users-fields > .sg-section { max-width: none; } .sg-section { padding: 0 !important; border: 0 !important; background: transparent !important; }
#home-users-fields .sg-root { display: grid; gap: 12px; }
#home-users-fields .sg-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
#home-users-fields .sg-head h3 { margin: 0 0 2px; font-size: 18px; }
#home-users-fields .sg-muted { margin: 0; color: #6d655b; font-size: 13px; }
#home-users-fields .sg-exports { display: flex; align-items: center; gap: 8px; }
#home-users-fields .sg-export { min-height: 36px; padding: 0 14px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; color: #2f2b26; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
#home-users-fields .sg-export:hover:not(:disabled) { background: #faf6f0; border-color: #e9c9a3; }
#home-users-fields .sg-export:disabled { opacity: .5; cursor: default; }
#home-users-fields .sg-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#home-users-fields .sg-summary span { padding: 8px 14px; border: 1px solid #e5e0d9; border-radius: 12px; background: #fff; color: #6d655b; font-size: 13px; }
#home-users-fields .sg-summary b { margin-right: 4px; color: #2f2b26; font-size: 17px; }
#home-users-fields .sg-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#home-users-fields .sg-filters input, #home-users-fields .sg-filters select, #home-users-fields .sg-manage input, #home-users-fields .sg-manage select, #home-users-fields .sg-manage textarea, #home-users-fields .sg-related select {
  min-height: 36px; padding: 0 10px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; color: #2f2b26; font: inherit; font-size: 13.5px; box-sizing: border-box; }
#home-users-fields .sg-filters .sg-search { flex: 1 1 220px; }
#home-users-fields .sg-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #6d655b; font-size: 13px; }
#home-users-fields .sg-listhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
#home-users-fields .sg-count { font-weight: 700; }
#home-users-fields .sg-bulk { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #f0cba7; border-radius: 12px; background: #fdf3e6; box-shadow: 0 6px 18px #3c32281f; }
#home-users-fields .sg-bulk[hidden] { display: none; }
#home-users-fields .sg-bulk-count { margin-right: 6px; }
#home-users-fields .sg-bulk button, #home-users-fields .sg-bulk select { min-height: 34px; padding: 0 12px; border: 1px solid #e5e0d9; border-radius: 9px; background: #fff; color: #2f2b26; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
#home-users-fields .sg-bulk button:disabled { opacity: .45; cursor: default; }
#home-users-fields .sg-bulk .sg-danger { color: #a32d23; border-color: #efc6c0; }
#home-users-fields .sg-bulk .sg-link { border: 0; background: none; }
#home-users-fields .sg-list { display: grid; border: 1px solid #e5e0d9; border-radius: 14px; background: #fff; overflow: hidden; }
#home-users-fields .sg-empty { margin: 0; padding: 28px 18px; color: #6d655b; text-align: center; }
#home-users-fields .sg-case { border-top: 1px solid #e5e0d9; }
#home-users-fields .sg-case:first-child { border-top: 0; }
#home-users-fields .sg-case > summary { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 16px 13px 14px; list-style: none; cursor: pointer; border-left: 4px solid transparent; }
#home-users-fields .sg-case > summary::-webkit-details-marker { display: none; }
#home-users-fields .sg-case > summary:hover { background: #fbfaf7; }
#home-users-fields .sg-case[data-block="true"] > summary { border-left-color: #c0473a; }
#home-users-fields .sg-case[open] > summary { background: #fdf8f1; }
#home-users-fields .sg-check input { width: 17px; height: 17px; margin: 0; accent-color: #e48f35; }
#home-users-fields .sg-main { display: grid; gap: 3px; min-width: 0; }
#home-users-fields .sg-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
#home-users-fields .sg-meta { color: #6d655b; font-size: 12.5px; }
#home-users-fields .sg-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 460px; }
#home-users-fields .sg-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border-radius: 999px; background: #efedea; color: #4b4741; font-size: 12px; font-weight: 650; white-space: nowrap; }
#home-users-fields .sg-chip[data-tone="block"] { background: #fbe9e6; color: #9b2d22; }
#home-users-fields .sg-chip[data-tone="new"] { background: #fdf3e6; color: #8a4a10; }
#home-users-fields .sg-chip[data-tone="progress"] { background: #e6eef8; color: #24466f; }
#home-users-fields .sg-chip[data-tone="info"], #home-users-fields .sg-chip[data-tone="group"] { background: #efe9f8; color: #4d3a78; }
#home-users-fields .sg-chip[data-tone="ok"] { background: #e3f1e5; color: #22603a; }
#home-users-fields .sg-chip[data-tone="news"] { background: #f4a450; color: #2e2620; }
#home-users-fields .sg-chip[data-tone="kind"] { background: #f3efe8; color: #6d5a3f; }
#home-users-fields .sg-detail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; padding: 4px 16px 16px 50px; background: #fdf8f1; }
#home-users-fields .sg-members { display: grid; gap: 10px; align-content: start; }
#home-users-fields .sg-member { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #e5e0d9; border-radius: 12px; background: #fff; }
#home-users-fields .sg-member > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#home-users-fields .sg-member > header .sg-link { margin-left: auto; }
#home-users-fields .sg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
#home-users-fields .sg-files { display: flex; flex-wrap: wrap; gap: 8px; }
#home-users-fields .sg-thumb img { display: block; width: 120px; height: 80px; object-fit: cover; border: 1px solid #e5e0d9; border-radius: 8px; }
#home-users-fields .sg-file { color: #a4570c; font-size: 13px; font-weight: 600; text-decoration: none; }
#home-users-fields .sg-addendum { padding: 8px 12px; border-left: 3px solid #f0cba7; border-radius: 0 8px 8px 0; background: #fffaf3; }
#home-users-fields .sg-addendum small { color: #7b7064; }
#home-users-fields .sg-addendum p { margin: 2px 0 0; white-space: pre-wrap; }
#home-users-fields .sg-tech { font-size: 12.5px; color: #5d5144; }
#home-users-fields .sg-tech summary { cursor: pointer; color: #6d655b; font-weight: 600; }
#home-users-fields .sg-tech dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 8px 0 0; }
#home-users-fields .sg-tech dt { font-weight: 650; }
#home-users-fields .sg-tech dd { margin: 0; overflow-wrap: anywhere; }
#home-users-fields .sg-errors { margin: 8px 0 0; padding-left: 18px; color: #9b2d22; font-family: ui-monospace, monospace; font-size: 11.5px; }
#home-users-fields .sg-manage { display: grid; gap: 12px; align-content: start; padding: 14px; border: 1px solid #e5e0d9; border-radius: 12px; background: #fff; }
#home-users-fields .sg-manage label { display: grid; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 650; color: #4f473e; }
#home-users-fields .sg-manage label small { font-weight: 500; color: #7b7064; }
#home-users-fields .sg-manage textarea { min-height: 84px; padding: 8px 10px; resize: vertical; }
#home-users-fields .sg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#home-users-fields .sg-label { font-size: 12.5px; font-weight: 650; color: #4f473e; }
#home-users-fields .sg-related { display: grid; gap: 6px; }
#home-users-fields .sg-related ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#home-users-fields .sg-related li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
#home-users-fields .sg-related li .sg-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
#home-users-fields .sg-link { min-height: 0; padding: 0; border: 0; background: none; color: #a4570c; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; text-decoration: underline; }
#home-users-fields .sg-x { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6d655b; font-size: 16px; cursor: pointer; }
#home-users-fields .sg-x:hover { background: #f3efe8; }
#home-users-fields .sg-saved { min-height: 16px; color: #22603a; font-size: 12px; }
.sg-dialog { width: min(520px, calc(100vw - 24px)); padding: 20px; border: 1px solid #e5e0d9; border-radius: 16px; background: #fffdf9; color: #2f2b26; box-shadow: 0 24px 60px #2e26203d; font: 14px/1.45 Inter, system-ui, sans-serif; }
.sg-dialog::backdrop { background: #2e262073; }
.sg-dialog h3 { margin: 0 0 4px; font-size: 18px; }
.sg-radios { display: grid; gap: 8px; margin: 14px 0; }
.sg-radio { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; cursor: pointer; }
.sg-radio:has(input:checked) { border-color: #e48f35; background: #fdf0e0; }
.sg-radio span { display: grid; gap: 2px; }
.sg-radio small { color: #6d655b; }
.sg-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sg-dialog-actions button { min-height: 38px; padding: 0 16px; border: 1px solid #e5e0d9; border-radius: 10px; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.sg-dialog-actions .sg-primary { border: 0; background: #f4a450; color: #2e2620; }
@media (max-width: 860px) {
  #home-users-fields .sg-case > summary { grid-template-columns: 22px minmax(0,1fr); }
  #home-users-fields .sg-chips { grid-column: 2; justify-content: flex-start; max-width: none; }
  #home-users-fields .sg-detail { grid-template-columns: 1fr; padding: 4px 12px 14px; }
  #home-users-fields .sg-title { white-space: normal; }
}

#home-users-fields .sg-root label { margin: 0; }
#home-users-fields .sg-root :is(input,select,textarea) { border-color: #e5e0d9; border-radius: 10px; }
#home-users-fields .sg-manage :is(input,select,textarea) { width: 100%; min-width: 0; padding: 8px 10px; }
#home-users-fields .sg-two > * { min-width: 0; }
#home-users-fields .sg-root input[type="checkbox"] { padding: 0; }
#home-users-fields .sg-detail > * { min-width: 0; }
#home-users-fields .sg-manage, #home-users-fields .sg-manage > *, #home-users-fields .sg-manage label, #home-users-fields .sg-related { min-width: 0; }
#home-users-fields .sg-manage :is(input,select,textarea) { max-width: 100%; box-sizing: border-box; }
#home-users-fields .sg-related li { min-width: 0; }
.sg-dialog .sg-muted { margin: 0; color: #6d655b; font-size: 13px; }
