/* Hanna seal branding and app tiles (kit workspace-brand-fix, 2026-10-31).
 * Sign-in: the small logo leaves the top-left corner and the seal becomes the hero of the left panel.
 * Signed-in Workspace: no logo in the top-left corner (the page's own hero seal stays).
 * App tiles: the whole tile reacts on hover and opens the app on click; the small arrow stays.
 * Shared Chat, Calendar, Email and Voice notes: the "hanna ✦" wordmark is replaced by the seal (in shared-workspace.html).
 * Colours come from the current Hanna theme (--ht-*), with the Classic greens as fallback. */

/* ---------- sign-in: hero seal ---------- */
.auth-story > .brand { display: none; }
.auth-story .story-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hb-hero-seal { display: block; margin: 0 0 clamp(24px, 4.5vh, 44px) -6px; line-height: 0; }
.hb-hero-seal hanna-seal {
  width: clamp(200px, 25vw, 340px) !important; height: clamp(200px, 25vw, 340px) !important;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--ht-accent, #236b57) 18%, transparent));
}
@media (max-height: 760px) and (min-width: 761px) {
  .hb-hero-seal hanna-seal { width: clamp(170px, 30vh, 260px) !important; height: clamp(170px, 30vh, 260px) !important; }
}
@media (max-width: 760px) {
  .hb-hero-seal { margin: 4px auto 18px; align-self: center; }
  .hb-hero-seal hanna-seal { width: 148px !important; height: 148px !important; }
  .auth-story .story-copy { padding-top: 8px; }
}

/* ---------- signed-in Workspace: no top-left logo ---------- */
.sidebar > .brand { display: none; }
.sidebar > .nav-label { margin-top: 6px; }

/* ---------- app tiles: the whole tile is the target ---------- */
.app-card.hb-tile {
  cursor: pointer; position: relative;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.app-card.hb-tile:hover, .app-card.hb-tile:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ht-accent, #236b57) 55%, var(--ht-line, #e3e9e4));
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--ht-accent, #236b57) 38%, transparent),
              0 2px 6px -2px color-mix(in srgb, var(--ht-text, #243e3b) 14%, transparent);
}
.app-card.hb-tile:active { transform: translateY(-1px); transition-duration: .06s; }
.app-card.hb-tile h3 { transition: color .18s ease; }
.app-card.hb-tile:hover h3, .app-card.hb-tile:focus-within h3 { color: var(--ht-accent, #236b57); }
.app-card.hb-tile .circle, .app-card.hb-tile .app-card-bottom a.secondary {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.app-card.hb-tile:hover .circle, .app-card.hb-tile:focus-within .circle {
  background: var(--ht-accent, #236b57); border-color: var(--ht-accent, #236b57); color: var(--ht-accent-ink, #fff);
  transform: translate(2px, -2px);
}
.app-card.hb-tile:hover .app-card-bottom a.secondary { color: var(--ht-accent, #236b57); }
.app-card.hb-tile .circle:focus-visible { outline: 2px solid var(--ht-accent, #236b57); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .app-card.hb-tile, .app-card.hb-tile .circle { transition: none; }
  .app-card.hb-tile:hover, .app-card.hb-tile:focus-within, .app-card.hb-tile:hover .circle { transform: none; }
}

/* ---------- shared Chat / Calendar / Email / Voice notes: standardized 360 top-left brand lockup ---------- */
.sw-header {
  position: relative !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  gap: 16px !important;
  display: flex !important;
  align-items: center !important;
}
.hm-master-typo-center {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
}
.sw-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.sw-header hanna-options {
  --ht-ok-h: 30px;
  --ht-ok-radius: 8px;
  --ht-ok-pad: 0 12px;
  --ht-ok-font: 600 12px/1 var(--ht-font, Inter, "Segoe UI", system-ui, sans-serif);
}
.sw-header-right > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ht-line-strong, rgba(148, 163, 184, 0.35));
  background: var(--ht-raised, rgba(148, 163, 184, 0.1));
  font: 600 12px/1 var(--ht-font, Inter, "Segoe UI", system-ui, sans-serif);
  color: var(--ht-text, #1b4d37);
  text-decoration: none;
  white-space: nowrap;
}
.sw-header-right > a:hover {
  background: var(--ht-hover, rgba(148, 163, 184, 0.18));
  border-color: var(--ht-accent, #046a5b);
}
#sw-context {
  font: 600 12.5px/1 var(--ht-font, Inter, "Segoe UI", system-ui, sans-serif) !important;
  color: var(--ht-text, #1e293b) !important;
  max-width: 220px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.hanna-brand-lockup-std {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.sw-brand,
.hanna-brand-lockup-std .app-mark.has-seal {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px 0 8px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(125, 211, 252, 0.55) !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 55%, #0d9488 100%) !important;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  text-decoration: none !important;
  color: #ffffff !important;
  --seal-ink: #ffffff !important;
  --seal-ring: rgba(255, 255, 255, 0.82) !important;
  font: 700 12px/1 var(--ht-font, Inter, "Segoe UI", system-ui, -apple-system, sans-serif) !important;
  letter-spacing: 0.04em !important;
}
.sw-brand hanna-seal,
.hanna-brand-lockup-std hanna-seal {
  width: 20px !important;
  height: 20px !important;
  --seal-size: 20px !important;
  --seal-ink: #ffffff !important;
  --seal-ring: rgba(255, 255, 255, 0.72) !important;
  flex-shrink: 0 !important;
  transition: transform .18s ease;
}
.sw-brand:hover hanna-seal { transform: scale(1.04); }
.sw-brand .workspace-brand-label,
.sw-brand .brand-title,
.hanna-brand-lockup-std .workspace-brand-label {
  font: 700 12px/1 var(--ht-font, Inter, "Segoe UI", system-ui, -apple-system, sans-serif) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.hanna-brand-lockup-std .app-mark.back-360-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(253, 230, 138, 0.55) !important;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  font: 700 12px/1 var(--ht-font, Inter, "Segoe UI", system-ui, sans-serif) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.sw-layout {
  min-height: calc(100vh - 48px) !important;
}
.sw-layout:has(> .sw-sidebar.hanna-panel-collapsed),
.sw-layout:has(> .sw-sidebar.hanna-is-popped-out) {
  grid-template-columns: 0px minmax(0, 1fr) !important;
}

/* ---------- the firm's logo in the Workspace top bar (from User & firm details) ---------- */
.topbar-right .hb-firm { height: 30px; max-width: 150px; object-fit: contain; margin-right: 6px; display: block; }
@media (max-width: 760px) { .topbar-right .hb-firm { display: none; } }
