:root {
  font-family: Lato, "Segoe UI", Arial, sans-serif;
  color: #111111;
  background: #f4f3f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #333333;
  --green-dark: #000000;
  --ink: #111111;
  --muted: #595959;
  --line: #e2e2e2;
  --paper: #ffffff;
  --gold: #8f8f8f;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

/* Identidad Encajes (www.encajes.com): negro y gris, Playfair Display, Lato y Montserrat */
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #000;
  background: #e8e6e6;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid #b0b0b0; border-radius: 50%; color: #111111;
  font: 600 21px/1 'Playfair Display', Georgia, serif;
}
.brand-name { font: 600 14px/1.2 'Playfair Display', Georgia, serif; letter-spacing: .16em; }
.brand-name span { display: block; margin-top: 4px; color: #595959; font: 500 9px/1 Arial, sans-serif; letter-spacing: .2em; }
.account { display: flex; align-items: center; gap: 16px; font-size: 13px; }

main { width: min(1280px, calc(100% - 40px)); margin: 46px auto 72px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--green-dark); font: 500 clamp(27px, 3vw, 38px)/1.15 'Playfair Display', Georgia, serif; }
h2 { margin: 0; color: var(--green-dark); font: 500 22px/1.2 'Playfair Display', Georgia, serif; }
.eyebrow { margin-bottom: 10px; font-family: Montserrat, Lato, sans-serif; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }

.login-card {
  max-width: 570px; margin: 10vh auto; padding: clamp(28px, 5vw, 50px);
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 16px 48px #00000012;
}
.login-card .button { margin-top: 12px; }
.message { min-height: 20px; color: #a43d35; font-size: 13px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading .muted { margin: 0; }
#configure-view { padding-bottom: 112px; }
.save-actions {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 18px #11111110;
}
.save-actions .button { min-width: 150px; }
.save-actions .notice { flex: 1; margin: 0; }
.view-tabs { display: flex; gap: 6px; margin: 24px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.view-tab { min-height: 42px; padding: 0 16px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: 600 11px Montserrat, Lato, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.view-tab:hover, .view-tab.active { color: var(--green-dark); }
.view-tab.active { border-bottom-color: var(--gold); }

.button {
  min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 3px;
  cursor: pointer; font-size: 13px; font-weight: 650; transition: background .15s ease, border-color .15s ease;
}
.button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #11111155; outline-offset: 2px; }
.button-primary { color: #fff; background: var(--green-dark); }
.button-primary:hover { background: #2b2b2b; }
.button-secondary { color: var(--green-dark); background: #ececec; border-color: #dcdcdc; }
.button-secondary:hover { background: #e0dfdf; }
.button-quiet { min-height: 34px; color: inherit; background: transparent; border-color: #00000055; }
.button-quiet:hover { background: #0000000a; }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.summary-card, .panel { background: var(--paper); border: 1px solid var(--line); }
.summary-card { min-height: 120px; padding: 19px 21px; }
.summary-card span, .summary-card small { display: block; color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; margin: 11px 0 6px; color: var(--green-dark); font: 500 19px 'Playfair Display', Georgia, serif; }
.summary-card code { color: var(--green); font-size: 11px; }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.profiles-panel { max-width: 100%; }
.profile-setup { max-width: 760px; }
.profile-picker-label { max-width: 420px; margin: 0 0 10px; }
.profile-rename-row { margin: 14px 0 6px; }
.profile-edit-help { margin: 0 0 10px; font-size: 12px; }
.profile-section { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.application-picker-label { max-width: 520px; margin-bottom: 12px; }
.select-label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
select, input[type="text"], input[type="email"], input[type="search"] {
  min-height: 39px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 3px;
}
.select-label select { width: 100%; min-width: 150px; }
.application-description { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 12px; border: 1px solid var(--line); background: #f8f8f8; color: var(--green-dark); font-size: 13px; }
.application-description span { color: var(--muted); font-size: 11px; }
.application-description a { color: var(--green); }
.create-row { display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; align-items: center; gap: 9px; margin-bottom: 17px; }
.create-row label { color: var(--muted); font-size: 12px; }
.user-create-row { grid-template-columns: auto minmax(120px, 1fr) auto; }
.profile-description { min-height: 20px; margin-bottom: 0; }
.permission-head { display: flex; justify-content: space-between; gap: 14px; }
.permission-head { padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tab-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 10px; }
.permission-check { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 2px 8px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.permission-check input { grid-row: span 2; }
.permission-check span { color: var(--ink); font-size: 12px; font-weight: 650; }
.permission-check small { color: var(--muted); font-size: 10px; }
.permission-check:has(input:checked) { border-color: #9a9a9a; background: #f6f6f6; }
.permission-check:has(input:checked) small { color: #526b58; }
.check-label { display: flex; align-items: center; gap: 7px; color: #42544b; font-size: 12px; cursor: pointer; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green); }
.user-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 9px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 12px 9px; border-bottom: 1px solid #ececec; vertical-align: top; }
td:first-child { color: var(--green-dark); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.admin-badge { display: inline-block; margin-top: 6px; padding: 4px 7px; color: #765d31; background: #f4eee2; border-radius: 2px; font: 10px Arial, sans-serif; }
.consult-panel { margin-bottom: 18px; }
.consult-panel > .muted { margin: -8px 0 18px; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.consult-filters { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) minmax(180px, 1fr); gap: 12px; margin-bottom: 18px; padding: 14px; background: #f8f8f8; border: 1px solid var(--line); }
.consult-filters input { width: 100%; }
.consult-table { min-width: 760px; }
.consult-table td:first-child { min-width: 150px; }
.consult-table td:first-child strong, .consult-table td:first-child small { display: block; }
.consult-table td:first-child small { margin-top: 4px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.access-chip, .user-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 5px 8px; color: var(--green-dark); background: #efeeee; border: 1px solid #dedede; border-radius: 3px; font-size: 11px; }
.user-chip { background: #f2f2f2; border-color: var(--line); }
.empty-results { padding: 24px 12px; color: var(--muted); text-align: center; }
.notice { margin: -7px 0 18px; padding: 11px 14px; border-left: 3px solid var(--gold); color: var(--green-dark); background: #efeeee; font-size: 13px; }
.notice.error { border-color: #a43d35; color: #8c2f29; background: #f8e9e7; }
.audit-panel { margin-top: 18px; }
.audit-list { display: grid; gap: 9px; }
.audit-entry { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 9px; border-bottom: 1px solid #ececec; color: #45574e; font-size: 12px; }
.audit-entry time { flex: none; color: var(--muted); font-size: 11px; }
.footer-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 650px) {
  main { width: min(100% - 24px, 1280px); margin-top: 27px; }
  .topbar { height: 66px; padding: 0 14px; }
  .account { gap: 8px; font-size: 11px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .view-tabs { gap: 0; }
  .view-tab { flex: 1; padding: 0 8px; font-size: 12px; }
  .summary { grid-template-columns: 1fr; gap: 9px; }
  .summary-card { min-height: 96px; }
  .panel { padding: 17px 14px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .create-row, .user-create-row { grid-template-columns: 1fr auto; }
  .create-row label { grid-column: 1 / -1; }
  .create-row input { min-width: 0; }
  .tab-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-filters { grid-template-columns: 1fr; }
  .consult-panel .panel-heading { flex-direction: row; align-items: center; }
  .save-actions { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .save-actions .button { align-self: flex-end; }
}

/* Vista de configuración: lista de perfiles + detalle */
.summary-line { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.summary-line strong { color: var(--green-dark); }
.workspace { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-list-panel { position: sticky; top: 14px; padding: 18px 14px; max-height: calc(100vh - 140px); overflow-y: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.side-head h2 { font-size: 19px; }
.side-head .button { min-height: 34px; }
.new-profile-form { display: grid; gap: 8px; margin-bottom: 14px; padding: 12px; background: #f8f8f8; border: 1px solid var(--line); }
.new-profile-form label { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; gap: 8px; }
.profile-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-item { display: grid; gap: 3px; width: 100%; padding: 10px 12px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 3px; cursor: pointer; }
.profile-item:hover { background: #f8f8f8; }
.profile-item.active { background: #efeeee; border-color: #b8b8b8; border-left-color: var(--gold); }
.profile-item strong { font-size: 13px; }
.profile-item small { color: var(--muted); font-size: 11px; }
.profile-item:focus-visible, .acc-toggle:focus-visible, .subtab:focus-visible, .link-button:focus-visible { outline: 3px solid #11111155; outline-offset: 2px; }
.profile-detail { min-width: 0; }
.profile-detail h2 { font-size: 26px; }
.profile-meta { margin: 6px 0 0; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 18px; border-bottom: 1px solid var(--line); }
.subtab { min-height: 38px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.subtab:hover, .subtab.active { color: var(--green-dark); }
.subtab.active { border-bottom-color: var(--gold); }
.pane-help { margin: 0 0 12px; font-size: 13px; }
.accordion { display: grid; gap: 8px; }
.acc-item { background: #fff; border: 1px solid var(--line); }
.acc-item.has-access { border-left: 3px solid var(--gold); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 12px; }
.acc-toggle { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; text-align: left; color: var(--green-dark); background: transparent; border: 0; cursor: pointer; }
.acc-toggle strong { font-size: 13px; }
.acc-state { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.acc-item.has-access .acc-state { color: #526b58; font-weight: 650; }
.chev { display: inline-block; color: var(--gold); font-size: 11px; transition: transform .15s ease; }
.acc-item.open .chev { transform: rotate(90deg); }
.acc-actions { display: flex; align-items: center; gap: 4px; }
.link-button { padding: 6px 8px; color: var(--green); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 11px; font-weight: 650; text-decoration: none; }
.link-button:hover { background: #ececec; }
.acc-item .tab-options { padding: 4px 12px 14px; }
.user-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.user-tools input { flex: 1; max-width: 340px; }
.notice.pending { border-color: #b38a4b; color: #765d31; background: #f7f0e3; }
.save-actions .button[disabled] { opacity: .45; cursor: not-allowed; }

@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .profile-list-panel { position: static; max-height: none; }
  .profile-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 650px) {
  .acc-head { flex-wrap: wrap; padding: 0 0 6px; }
  .acc-actions { padding-left: 12px; }
  .acc-item .tab-options { grid-template-columns: 1fr; }
  .save-actions .button { align-self: stretch; }
}

.audit-filters { grid-template-columns: minmax(200px, 1fr) auto auto; align-items: end; }
.audit-filters .button { min-height: 39px; }
.result-badge { display: inline-block; padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: 650; }
.result-badge.ok { color: #3f5f48; background: #e9f1ea; }
.result-badge.denied { color: #8c2f29; background: #f8e9e7; }
@media (max-width: 650px) { .audit-filters { grid-template-columns: 1fr; } }

/* Directorio de usuarios */
.users-panel { margin-bottom: 18px; padding-bottom: 28px; }
.users-panel > .muted { margin: -8px 0 18px; }
.create-user-box { display: grid; gap: 10px; margin-bottom: 22px; padding: 16px; background: #f8f8f8; border: 1px solid var(--line); }
.create-user-box > label { color: var(--green-dark); font-size: 12px; font-weight: 650; }
.create-user-box small { color: var(--muted); font-weight: 400; }
textarea { width: 100%; padding: 9px 10px; color: var(--ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 3px; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
textarea:focus-visible { outline: 3px solid #11111155; outline-offset: 2px; }
.assign-profiles { margin: 0; padding: 0; border: 0; }
.assign-profiles legend { padding: 0 0 6px; color: var(--muted); font-size: 11px; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--green-dark); background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; cursor: pointer; }
.chip-check:has(input:checked) { background: #efeeee; border-color: #b8b8b8; }
.directory-table td:nth-child(2) { min-width: 180px; }
.directory-table td:first-child { min-width: 220px; }
.row-actions { white-space: nowrap; text-align: right; }
.editor-row td { padding: 10px 9px 16px; background: #f8f8f8; }
.link-button.danger { color: #8c2f29; }
.link-button.danger:hover { background: #f8e9e7; }
.confirm-inline { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.small { font-size: 11px; }
.pane-help .link-button { margin-left: 4px; padding: 0 2px; font-size: 13px; text-decoration: underline; }
@media (max-width: 650px) { .row-actions { white-space: normal; } }

/* Importación y eliminación */
.import-box { margin-bottom: 22px; padding: 14px 16px; border: 1px dashed #b8b8b8; background: #ffffff; }
.import-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.import-head p { margin: 4px 0 0; font-size: 12px; }
.file-button { display: inline-flex; align-items: center; flex: none; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #11111155; outline-offset: 2px; }
.import-preview { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 14px; }
.import-grid h4 { margin: 0 0 6px; color: var(--green-dark); font-size: 12px; }
.import-grid ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.import-grid .warn h4 { color: #8c2f29; }
.button-danger { color: #fff; background: #8c2f29; }
.button-danger:hover { background: #73231f; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.danger-zone { margin-top: 28px; padding: 16px; border: 1px solid #e6c9c5; background: #fdf6f5; }
.danger-zone h3 { margin: 0 0 6px; color: #8c2f29; font-size: 14px; }
.danger-zone .muted { margin: 0 0 12px; font-size: 12px; }
.delete-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #8c2f29; }
@media (max-width: 650px) { .import-head { flex-direction: column; align-items: stretch; } }

/* Aplicaciones */
.app-badges { margin: 8px 0 16px; }
.app-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 6px; }
.app-form label { display: grid; gap: 5px; color: var(--green-dark); font-size: 12px; font-weight: 650; }
.app-form label small { color: var(--muted); font-weight: 400; }
.app-form .wide { grid-column: 1 / -1; }
.app-form input:disabled, .tab-row input:disabled { color: var(--muted); background: #f0f0f0; }
.sub-h { margin: 22px 0 8px; color: var(--green-dark); font: 600 13px Arial, sans-serif; }
.tab-rows { display: grid; gap: 6px; margin-bottom: 10px; }
.tab-row { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tab-row input { min-width: 0; }
.app-hint { margin: 14px 0; padding: 10px 12px; background: #f8f8f8; border-left: 3px solid var(--gold); font-size: 12px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.export-box { margin-top: 14px; padding: 14px; border: 1px dashed #b8b8b8; background: #ffffff; }
.export-box textarea { margin-top: 10px; font-size: 12px; }
.tone-ok { color: #3f5f48; } .tone-warn { color: #8a6a1f; } .tone-bad { color: #8c2f29; }
.tone-bg-ok { color: #3f5f48; background: #e9f1ea; } .tone-bg-warn { color: #7a5c14; background: #f7f0e3; } .tone-bg-bad { color: #8c2f29; background: #f8e9e7; }
@media (max-width: 650px) { .app-form { grid-template-columns: 1fr; } .tab-row { grid-template-columns: 1fr; } }

/* Portada "Mis aplicaciones" y marca */
body { background: #f4f3f3; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand { gap: 16px; }
.brand-tag { padding-left: 16px; border-left: 1px solid #00000040; color: #333; font: 600 10px Montserrat, Lato, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.login-logo { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 26px; }
.login-card { text-align: center; border-top: 3px solid #000; }
.login-card .button { margin-top: 18px; }
body:not([data-admin]) .admin-only { display: none !important; }
body:not([data-admin]) .view-tabs { display: none; }
.home-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.home-tools input { width: min(380px, 100%); min-height: 44px; border-color: #d4d4d4; font-weight: 300; }
.home-group { margin-bottom: 38px; }
.group-title { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; color: #000; font: 600 12px Montserrat, Lato, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.group-title::after { content: ""; flex: 1; height: 1px; background: #d9d9d9; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 22px 22px 18px; color: #111; text-decoration: none; background: #fff; border: 1px solid #e2e2e2; border-top: 3px solid #000; transition: transform .15s ease, box-shadow .15s ease; }
.app-card:hover, .app-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px #00000014; }
.app-card:focus-visible { outline: 3px solid #11111166; outline-offset: 3px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-name { font: 500 21px/1.2 'Playfair Display', Georgia, serif; }
.draft-pill { flex: none; padding: 3px 8px; color: #7a5c14; background: #f7f0e3; font: 600 9px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.card-desc { color: #595959; font-weight: 300; font-size: 15px; line-height: 1.55; }
.card-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.access-chip.more { color: #595959; background: transparent; }
.card-open { margin-top: 6px; font: 600 10px Montserrat, Lato, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.app-card:hover .card-open { text-decoration: underline; text-underline-offset: 4px; }
.home-empty { padding: 60px 20px; text-align: center; background: #fff; border: 1px solid #e2e2e2; }
.home-empty h2 { margin-bottom: 8px; }
@media (max-width: 650px) { .brand-tag { display: none; } .home-tools { flex-direction: column; align-items: stretch; } .card-grid { grid-template-columns: 1fr; } }
.app-card, .card-grid > * { min-width: 0; }
.card-name, .card-desc { overflow-wrap: anywhere; }
.app-card { min-height: 160px; }
@media (max-width: 650px) {
  .brand-logo { height: 24px; }
  #account-name { display: none; }
  .account { flex: none; }
  .topbar { gap: 10px; }
  main { overflow-x: clip; }
}

.health-subtitle { margin: 24px 0 8px; font-size: 15px; }
