.area-portal {
  --ink: #17283e;
  --accent: #25486b;
  width: min(100% - 36px, 660px);
  margin: 0 auto;
  padding: clamp(32px, 9vh, 96px) 0 34px;
  color: var(--ink);
}
.area-portal [hidden], .area-portal[hidden] { display: none !important; }
.area-header { margin-bottom: 25px; }
.area-brand { color: #475d76; font-size: 1rem; font-weight: 700; }
.area-header h1 { font-size: clamp(2rem, 7vw, 3.25rem); margin: 8px 0 13px; line-height: 1.12; }
#areaChoices { display: grid; gap: 12px; }
.area-card {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; width: 100%; padding: 18px 15px;
  border: 1px solid #c6d0dc; border-radius: 16px; text-align: left;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 15px #17283e0d; cursor: pointer;
}
.area-card strong, .area-card small { display: block; }
.area-card strong { font-size: 1.1rem; }
.area-card small { margin-top: 5px; color: #46566a; font-size: .9rem; }
.area-card:hover { border-color: var(--accent); }
.area-symbol {
  border-radius: 12px; background: #e8eef6; color: var(--accent);
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.45rem;
}
.area-panel { background: #fff; border: 1px solid #c6d0dc; border-radius: 18px; padding: clamp(16px, 4vw, 28px); }
.area-panel label { display: grid; gap: 6px; font-weight: 650; min-width: 0; }
.area-panel input, .area-panel select {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px;
  background: #f8fafc; border: 1px solid #9caebf; border-radius: 9px; font: inherit;
}
#areaFields { display: grid; gap: 14px; margin: 18px 0; }
.area-primary, .area-secondary {
  min-height: 44px; padding: 9px 14px; border: 1px solid #7a91a8; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer;
}
.area-primary { background: var(--accent); color: #fff; width: 100%; margin-top: 12px; }
.area-secondary { margin-top: 8px; }
.area-date-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
#areaStatus { line-height: 1.45; }
/* A fejlécben a navigáció és az állapotjelzés külön sorban marad. */
.topbar .workspace-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
  max-width: 47%;
  overflow: visible;
}
.topbar .area-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #c8ab86;
  border-radius: 11px;
  background: #f4e6d2;
  color: #624023;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}
.topbar .area-return:hover { background: #ebd8bd; }
.topbar .area-return:focus-visible {
  outline: 2px solid #86512e;
  outline-offset: 2px;
}
.area-return-icon {
  flex: 0 0 14px;
  height: 14px;
  background:
    linear-gradient(currentColor,currentColor) 0 0 / 6px 6px,
    linear-gradient(currentColor,currentColor) 100% 0 / 6px 6px,
    linear-gradient(currentColor,currentColor) 0 100% / 6px 6px,
    linear-gradient(currentColor,currentColor) 100% 100% / 6px 6px;
  background-repeat: no-repeat;
}
.topbar .workspace-header-actions #statusBadge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (max-width: 350px) {
  .topbar .area-return { gap: 5px; padding-inline: 7px; font-size: .72rem; }
}
