.calc-catalogo,
:root {
  --calc-page-width: min(1488px, calc(100% - 112px));
  --calc-ink: #122033;
  --calc-muted: #5c6b7f;
  --calc-border: #d8e0e8;
  --calc-primary: #1f2933;
  --calc-primary-strong: #111827;
  --calc-blue: #d89a00;
  --calc-surface: #ffffff;
  --calc-surface-soft: #f7f2e8;
  --calc-shadow: 0 18px 42px rgba(18, 32, 51, 0.10);
}

.calc-catalogo {
  background:
    linear-gradient(90deg, rgba(216, 154, 0, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 48%, #f7f2e8 100%);
  background-size: 72px 72px, auto;
  color: var(--calc-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.calc-materiais,
.calc-shell,
.drywall-shell {
  --calc-ink: #122033;
  --calc-muted: #5c6b7f;
  --calc-border: #d8e0e8;
  --calc-primary: #1f2933;
  --calc-primary-strong: #111827;
  --calc-blue: #d89a00;
  --calc-surface: #ffffff;
  --calc-surface-soft: #f7f2e8;
  --calc-shadow: 0 18px 42px rgba(18, 32, 51, 0.10);
}

.calc-public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--calc-border);
  backdrop-filter: blur(12px);
}

.calc-public-header-inner {
  width: var(--calc-page-width);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.calc-public-brand img {
  display: block;
  height: 34px;
  width: auto;
}

.calc-public-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.calc-public-brand .brand-wordmark {
  display: none;
  align-items: baseline;
  gap: 0.35rem;
  color: #1f2933;
  font-weight: 900;
  line-height: 1;
}

.calc-public-brand .brand-wordmark span {
  color: #d89a00;
}

.calc-public-brand .brand-wordmark strong {
  color: #1f2933;
}

.calc-public-nav,
.calc-public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-public-nav {
  justify-content: center;
}

.calc-public-nav a {
  color: #34465d;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.calc-public-nav a:hover {
  color: var(--calc-blue);
}

.calc-public-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.calc-public-btn-primary {
  color: #fff;
  background: var(--calc-primary);
  border-color: var(--calc-primary);
}

.calc-public-btn-primary:hover {
  color: #fff;
  background: var(--calc-primary-strong);
}

.calc-public-btn-secondary {
  color: var(--calc-primary);
  background: #fff;
  border-color: #b9c8d8;
}

.calc-public-btn-secondary:hover {
  color: var(--calc-primary);
  background: #fff4d2;
  border-color: var(--calc-blue);
}

.calc-shell {
  min-height: 100vh;
  width: min(1320px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body:not(.has-hub-sidebar) .calc-shell {
  width: var(--calc-page-width);
}

.calc-shell.container {
  padding-left: 0;
  padding-right: 0;
}

.calc-tools-catalog {
  width: var(--calc-page-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body.has-hub-sidebar .calc-tools-catalog {
  width: calc(100% - 32px);
}

body.has-hub-sidebar .calc-shell {
  width: calc(100% - 32px);
}

.calc-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216, 154, 0, 0.06) 0 1px, transparent 1px 100%),
    var(--calc-surface);
  background-size: 36px 36px, auto;
  box-shadow: var(--calc-shadow);
}

.calc-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  margin-bottom: 0.75rem;
}

.calc-hero-brand img {
  display: block;
  height: 34px;
  width: auto;
}

.calc-hero-brand span {
  display: none;
}

.calc-kicker {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--calc-blue);
  margin-bottom: 0.45rem;
}

.calc-hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.1rem, 3.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
  max-width: 860px;
}

.calc-hero p {
  margin: 0.75rem 0 0;
  max-width: 640px;
  color: var(--calc-muted);
}

.calc-hero-actions {
  display: flex;
  align-items: flex-start;
}

.calc-app-hero {
  align-items: start;
}

.calc-app-hero .calc-hero-actions {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 28px;
  min-width: min(560px, 46vw);
}

.calc-app-hero-back,
.calc-app-hero-actions,
.calc-app-hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calc-app-hero-actions .calc-btn,
.calc-app-hero-secondary-actions .calc-btn {
  white-space: nowrap;
}

.calc-card {
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: var(--calc-surface);
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.calc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(216, 154, 0, 0.12);
  border-color: rgba(216, 154, 0, 0.34);
}

.calc-tool-item.is-blocked {
  position: relative;
  cursor: not-allowed;
}

.calc-tool-item.is-blocked:hover {
  transform: none;
  border-color: var(--calc-border);
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
}

.calc-tool-item.is-blocked .calc-card-visual,
.calc-tool-item.is-blocked .card-body {
  filter: grayscale(0.2);
  opacity: 0.72;
}

.calc-tool-blocked-badge {
  position: absolute;
  top: 18px;
  right: -48px;
  z-index: 3;
  width: 190px;
  padding: 7px 12px;
  transform: rotate(35deg);
  background: #111827;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
}

.calc-card-muted {
  background: var(--calc-surface-soft);
}

.calc-card .card-body {
  padding: 1.25rem;
}

.calc-tool-link {
  color: inherit;
  text-decoration: none;
}

.calc-tool-link:hover,
.calc-tool-link:focus {
  color: inherit;
}

.calc-card-visual {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f1f5f9;
  color: var(--tool-color);
}

.calc-card-visual svg,
.calc-card-visual i {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calc-card-visual img {
  display: none;
}

.calc-card-visual .calc-card-image {
  width: 34px;
  height: 34px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--tool-image) center / contain no-repeat;
  mask: var(--tool-image) center / contain no-repeat;
}

.calc-my-tool-icon .calc-card-image {
  width: 34px;
  height: 34px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--tool-image) center / contain no-repeat;
  mask: var(--tool-image) center / contain no-repeat;
}

.calc-tool-link-horizontal {
  --tool-color: #d89a00;
  min-height: 246px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: 18px;
  row-gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

.calc-tool-link-horizontal.tone-blue {
  --tool-color: #2563eb;
}

.calc-tool-link-horizontal.tone-green {
  --tool-color: #16a34a;
}

.calc-tool-link-horizontal.tone-gold {
  --tool-color: #d89a00;
}

.calc-tool-link-horizontal.tone-cyan {
  --tool-color: #0891b2;
}

.calc-tool-link-horizontal.tone-orange {
  --tool-color: #d89a00;
}

.calc-tool-link-horizontal.tone-slate {
  --tool-color: #475569;
}

.calc-tool-link-horizontal.tone-teal {
  --tool-color: #0f766e;
}

.tone-emerald {
  --tool-color: #059669;
  --tool-color-2: #34d399;
  --tool-bg: #ecfdf5;
  --tool-chip-bg: #ecfdf5;
  --tool-border: #a7f3d0;
}

.tone-rose {
  --tool-color: #e11d48;
  --tool-color-2: #fb7185;
  --tool-bg: #fff1f2;
  --tool-chip-bg: #fff1f2;
  --tool-border: #fecdd3;
}

.calc-section-subtitle {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--calc-muted);
  font-weight: 650;
}

.calc-my-tools-section {
  margin-bottom: 28px;
}

.calc-my-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.calc-my-tool-card {
  --tool-color: #2563eb;
  --tool-color-2: #60a5fa;
  position: relative;
  min-height: 246px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 14px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  color: var(--calc-ink);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calc-my-tool-card:hover,
.calc-my-tool-card:focus {
  color: var(--calc-ink);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tool-color) 28%, var(--calc-border));
  background: #fff;
  box-shadow: 0 18px 34px rgba(18, 32, 51, 0.10);
}

.calc-my-tool-card.tone-blue {
  --tool-color: #2563eb;
  --tool-color-2: #93c5fd;
}

.calc-my-tool-card.tone-gold {
  --tool-color: #d89a00;
  --tool-color-2: #facc15;
}

.calc-my-tool-card.tone-emerald {
  --tool-color: #059669;
  --tool-color-2: #6ee7b7;
}

.calc-my-tool-card.tone-rose {
  --tool-color: #e11d48;
  --tool-color-2: #fda4af;
}

.calc-my-tool-glow {
  display: none;
}

.calc-my-tool-icon {
  width: 60px;
  height: 60px;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--tool-color);
  background: var(--tool-bg, color-mix(in srgb, var(--tool-color) 9%, #fff));
  border: 1px solid var(--tool-border, color-mix(in srgb, var(--tool-color) 24%, #e5e7eb));
  box-shadow: none;
}

.calc-my-tool-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.65;
}

.calc-my-tool-card .calc-card-tag {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 100%;
  padding-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-my-tool-title {
  display: block;
  grid-column: 1 / -1;
  margin: 0 0 0.6rem;
  font-size: clamp(1.1rem, 1.16vw, 1.32rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.calc-my-tool-desc {
  display: -webkit-box;
  grid-column: 1 / -1;
  min-height: 58px;
  overflow: hidden;
  color: var(--calc-muted);
  font-weight: 400;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.calc-my-tool-action {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--tool-color);
  font-weight: 900;
}

.calc-my-tool-action svg {
  width: 18px;
  height: 18px;
}

.calc-tool-link-horizontal .card-body {
  display: contents !important;
  padding: 0;
  min-width: 0;
}

.calc-catalog-section {
  margin-bottom: 22px;
}

.calc-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.calc-catalog-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  font-weight: 850;
  letter-spacing: 0;
}

.calc-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.calc-tool-grid:not(.is-expanded) .calc-tool-item.is-extra {
  display: none;
}

.calc-my-tools-grid:not(.is-expanded) .calc-my-tool-card.is-extra {
  display: none;
}

.calc-tool-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 850;
}

.calc-tool-title {
  display: block;
  grid-column: 1 / -1;
  margin: 0 0 0.6rem;
  font-size: clamp(1.1rem, 1.16vw, 1.32rem);
  line-height: 1.18;
  font-weight: 900;
  color: var(--calc-ink);
}

.calc-tool-item p {
  min-height: 42px;
}

.calc-tool-link-horizontal .text-muted {
  display: -webkit-box;
  grid-column: 1 / -1;
  min-height: 58px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.calc-tool-meta {
  display: block;
  margin: -2px 0 12px;
  color: var(--calc-muted);
  font-weight: 700;
}

.calc-doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-doc-search {
  min-width: min(360px, 38vw);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #b9c8d8;
  border-radius: 6px;
  background: #fff;
  color: var(--calc-muted);
}

.calc-doc-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--calc-ink);
  background: transparent;
  font: inherit;
}

.calc-empty-state {
  padding: 22px;
  border: 1px dashed #b9c8d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--calc-muted);
  font-weight: 700;
}

.calc-system-workspace {
  padding-bottom: 48px;
}

body.calc-my-tools-page .calc-system-workspace {
  padding-top: 28px !important;
}

.calc-system-hero {
  --tool-color: #2563eb;
  --tool-color-2: #60a5fa;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--calc-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(31, 41, 51, 0.08);
}

body.calc-my-tools-page .calc-system-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border-color: #dfe4ea;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.calc-system-hero.tone-blue {
  --tool-color: #2563eb;
  --tool-color-2: #93c5fd;
}

.calc-system-hero.tone-gold {
  --tool-color: #d89a00;
  --tool-color-2: #facc15;
}

.calc-system-hero.tone-emerald {
  --tool-color: #059669;
  --tool-color-2: #6ee7b7;
}

.calc-system-hero.tone-rose {
  --tool-color: #e11d48;
  --tool-color-2: #fda4af;
}

.calc-system-hero-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tool-border, #e5e7eb);
  border-radius: 12px;
  color: var(--tool-color);
  background: var(--tool-bg, #f8fafc);
  box-shadow: none;
}

body.calc-my-tools-page .calc-system-hero-icon {
  display: none;
}

.calc-system-hero-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.65;
}

.calc-system-hero-copy h1 {
  margin: 2px 0 6px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

body.calc-my-tools-page .calc-system-hero-copy h1 {
  margin: 2px 0 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  line-height: 1.08;
  font-weight: 850;
}

.calc-system-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--calc-muted);
  font-size: 0.98rem;
  font-weight: 600;
}

body.calc-my-tools-page .calc-system-hero-copy p {
  color: #5f6b7a;
  font-weight: 600;
}

.calc-system-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.calc-system-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--calc-muted);
  font-weight: 750;
}

body.calc-my-tools-page .calc-system-hero-stats span {
  border-color: #dfe4ea;
  background: #f8fafc;
  color: #64748b;
}

.calc-system-hero-stats strong {
  color: var(--tool-color);
  font-size: 1.05rem;
}

body.calc-my-tools-page .calc-system-hero-stats strong {
  color: #334155;
}

body.calc-my-tools-page .calc-system-hero-actions i,
body.calc-my-tools-page .calc-system-project-actions i {
  display: none;
}

body.calc-my-tools-page .calc-btn-primary {
  color: #111827;
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
}

body.calc-my-tools-page .calc-btn-primary:hover,
body.calc-my-tools-page .calc-btn-primary:focus,
body.calc-my-tools-page .calc-btn-outline:hover,
body.calc-my-tools-page .calc-btn-outline:focus {
  color: #111827;
  background: #eef2f7;
  border-color: #b8c2d0;
  box-shadow: none;
}

.calc-system-hero-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-system-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.calc-my-tools-page .calc-system-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calc-system-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--calc-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--calc-ink);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(18, 32, 51, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

body.calc-my-tools-page .calc-system-service-card {
  display: block;
  min-height: 104px;
  padding: 20px 22px;
  border-color: #dfe4ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.calc-system-service-card:hover,
.calc-system-service-card:focus {
  color: var(--calc-ink);
  transform: translateY(-2px);
  border-color: rgba(216, 154, 0, 0.38);
}

body.calc-my-tools-page .calc-system-service-card:hover,
body.calc-my-tools-page .calc-system-service-card:focus {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.calc-system-service-icon,
.calc-system-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #d89a00;
  background: #fff6d8;
}

body.calc-my-tools-page .calc-system-service-icon,
body.calc-my-tools-page .calc-system-item-icon,
body.calc-my-tools-page .calc-system-open {
  display: none;
}

.calc-system-service-icon {
  width: 48px;
  height: 48px;
}

.calc-system-service-icon svg,
.calc-system-item-icon svg {
  width: 24px;
  height: 24px;
}

.calc-system-service-card strong,
.calc-system-item-link strong {
  display: block;
  color: var(--calc-ink);
  font-weight: 900;
}

.calc-system-service-card small,
.calc-system-item-link small {
  display: block;
  color: var(--calc-muted);
  font-weight: 650;
  line-height: 1.35;
}

.calc-system-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.calc-my-tools-page .calc-system-project-grid {
  gap: 18px;
}

.calc-system-project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--calc-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(18, 32, 51, 0.07);
}

body.calc-my-tools-page .calc-system-project-card {
  gap: 14px;
  padding: 22px;
  border-color: #dfe4ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.calc-system-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.calc-system-project-head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.22rem, 1.5vw, 1.65rem);
  line-height: 1.12;
  font-weight: 950;
}

body.calc-my-tools-page .calc-system-project-head h3 {
  margin-top: 8px;
  font-size: clamp(1.22rem, 1.5vw, 1.55rem);
  line-height: 1.12;
  font-weight: 850;
}

.calc-system-open {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--calc-border);
  border-radius: 999px;
  color: var(--calc-ink);
  background: #fff;
  text-decoration: none;
}

.calc-system-open:hover {
  color: #d89a00;
  border-color: rgba(216, 154, 0, 0.45);
}

.calc-system-open svg {
  width: 20px;
  height: 20px;
}

.calc-system-item-list {
  display: grid;
  gap: 9px;
}

.calc-system-item-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

body.calc-my-tools-page .calc-system-item-link {
  display: block;
  padding: 14px 16px;
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.calc-system-item-link:hover {
  color: inherit;
  border-color: rgba(216, 154, 0, 0.34);
  background: #fffaf0;
}

body.calc-my-tools-page .calc-system-item-link:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.calc-system-item-icon {
  width: 40px;
  height: 40px;
}

.calc-system-item-empty {
  padding: 16px;
  border: 1px dashed #b9c8d8;
  border-radius: 14px;
  color: var(--calc-muted);
  background: #fff;
  font-weight: 700;
}

body.calc-my-tools-page .calc-system-item-empty {
  border-color: #d8e0e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

body.calc-my-tools-page .calc-card-tag {
  color: #475569;
  background: transparent;
  border-color: transparent;
}

body.calc-my-tools-page .calc-catalog-section {
  margin-bottom: 24px;
}

.calc-system-project-actions {
  margin-top: auto;
}

.calc-system-empty {
  display: grid;
  gap: 10px;
  align-items: start;
}

.calc-system-table-stack {
  display: grid;
  gap: 16px;
}

.calc-system-project-table-card {
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.calc-system-project-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
}

.calc-system-project-table-head h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1.15;
  font-weight: 850;
}

.calc-system-table-wrap {
  overflow-x: auto;
}

.calc-system-data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.calc-system-data-table th {
  padding: 12px 20px;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calc-system-data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f5;
  color: #334155;
  vertical-align: middle;
}

.calc-system-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.calc-system-table-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, 52vw);
  color: #0f172a;
  font-weight: 800;
}

.calc-system-table-title svg {
  width: 18px;
  height: 18px;
  color: #f4b000;
  flex: 0 0 auto;
}

.calc-system-table-empty {
  color: #64748b;
  font-weight: 700;
}

.calc-btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: .88rem;
}

.calc-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  min-height: auto;
  padding: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tool-color);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.calc-card-tag svg,
.hub-card-tag svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.calc-btn {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calc-btn-primary {
  background: var(--calc-primary);
  border-color: var(--calc-primary);
  color: #fff;
}

.calc-btn-primary:hover,
.calc-btn-primary:focus {
  background: var(--calc-primary-strong);
  border-color: var(--calc-primary-strong);
  color: #fff;
}

.calc-btn-outline {
  border-color: #b9c8d8;
  color: var(--calc-primary);
  background: #fff;
}

.calc-btn-outline:hover,
.calc-btn-outline:focus {
  border-color: var(--calc-blue);
  color: var(--calc-primary);
  background: #fff4d2;
}

.calc-standard-steps {
  display: grid;
  grid-template-columns: repeat(var(--calc-steps, 5), minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.calc-standard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--calc-border);
  border-radius: 6px;
  background: #fff;
  color: #30445b;
  text-align: left;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.calc-standard-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c8d8;
  border-radius: 4px;
  background: #f6f9fc;
  color: var(--calc-primary);
}

.calc-standard-step strong {
  min-width: 0;
  font-size: 0.92rem;
}

.calc-standard-step.is-active,
.calc-standard-step.active,
.calc-standard-step:hover {
  border-color: var(--calc-blue);
  color: var(--calc-primary-strong);
  box-shadow: 0 10px 22px rgba(18, 32, 51, 0.08);
}

.calc-standard-step.is-active span,
.calc-standard-step.active span {
  border-color: var(--calc-blue);
  background: var(--calc-blue);
  color: #fff;
}

.calc-standard-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
}

.calc-standard-file-status {
  color: var(--calc-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.calc-standard-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 35%);
}

.calc-standard-bottom-nav > :first-child {
  justify-self: start;
}

.calc-standard-bottom-nav > :nth-child(2) {
  justify-self: center;
}

.calc-standard-bottom-nav > :last-child {
  justify-self: end;
}

.border-dashed {
  border: 1px dashed #b9c8d8 !important;
}

.calc-catalogo .text-muted {
  color: var(--calc-muted) !important;
}

@media (max-width: 768px) {
  .calc-public-header-inner {
    width: min(100% - 24px, 1320px);
    min-height: auto;
    padding: 12px 0;
    grid-template-columns: 1fr;
  }

  .calc-public-nav {
    display: none;
  }

  .calc-public-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .calc-public-btn {
    width: 100%;
  }

  .calc-public-brand img {
    height: 44px;
  }

  .calc-public-header-inner {
    width: min(100% - 24px, 1320px);
  }

  .calc-shell {
    width: min(100% - 24px, 1320px);
  }

  body:not(.has-hub-sidebar) .calc-shell {
    width: calc(100% - 24px);
  }

  .calc-tools-catalog {
    width: calc(100% - 24px);
  }

  .calc-hero {
    padding: 1.15rem;
    border-radius: 8px;
  }

  .calc-hero-actions {
    width: 100%;
  }

  .calc-hero-actions .calc-btn {
    width: 100%;
  }

  .calc-app-hero .calc-hero-actions {
    justify-items: stretch;
    gap: 12px;
    min-width: 0;
  }

  .calc-app-hero-back,
  .calc-app-hero-actions,
  .calc-app-hero-secondary-actions {
    justify-content: flex-start;
  }

  .calc-catalog-head,
  .calc-catalog-head-search,
  .calc-doc-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .calc-doc-search {
    min-width: 0;
    width: 100%;
  }

  .calc-tool-grid {
    grid-template-columns: 1fr;
  }

  .calc-my-tools-grid,
  .calc-system-service-grid,
  .calc-system-project-grid {
    grid-template-columns: 1fr;
  }

  .calc-my-tool-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 14px;
    row-gap: 12px;
    min-height: 190px;
    padding: 16px;
  }

  .calc-system-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .calc-system-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .calc-system-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .calc-system-hero-actions .calc-btn {
    width: 100%;
  }

  .calc-tool-link-horizontal {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 12px;
    padding: 16px;
    min-height: 190px;
  }

  .calc-card-visual {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .calc-card-visual svg {
    width: 40px;
    height: 40px;
  }

  .calc-tool-title {
    font-size: 1.08rem;
  }

  .calc-card-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .calc-tool-link-horizontal .text-muted {
    min-height: 0;
    -webkit-line-clamp: 4;
  }

  .calc-standard-steps {
    grid-template-columns: 1fr;
  }

  .calc-standard-bottom-nav {
    grid-template-columns: 1fr;
  }

  .calc-standard-bottom-nav > * {
    justify-self: stretch !important;
  }
}

@media (max-width: 420px) {
  .calc-tool-link-horizontal {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 14px;
    min-height: 184px;
  }

  .calc-card-visual {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .calc-card-visual svg {
    width: 34px;
    height: 34px;
  }

  .calc-card-visual img {
    object-fit: contain;
  }

  .calc-tool-title {
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .calc-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-my-tools-grid,
  .calc-system-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-system-project-grid {
    grid-template-columns: 1fr;
  }

  .calc-system-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .calc-system-hero-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .calc-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calc-my-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .calc-tool-title {
    font-size: 1.18rem;
  }
}
