/* The private side of gustavodev.pt: same paper and type as the public site, laid out as a tool. */
.eu-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}

.eu-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 32px 0 0;
  font: 14px/1.4 var(--sans);
  color: var(--soft);
}

.eu-bar a {
  text-decoration: none;
}

.eu-bar button {
  font: inherit;
  color: var(--soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}

.eu-bar button:hover,
.eu-bar button:focus-visible {
  color: var(--ink);
}

.eu-title {
  font: 500 34px/1.15 var(--serif);
  margin: 48px 0 8px;
  text-wrap: balance;
}

.eu-lede {
  margin: 0 0 32px;
  color: var(--soft);
  font: 16px/1.6 var(--sans);
  max-width: 62ch;
}

.eu-lede b {
  color: var(--ink);
  font-weight: 500;
}

/* Sign-in */
.eu-signin {
  max-width: 380px;
  margin: 12vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
}

.eu-signin h1 {
  font: 500 30px/1.2 var(--serif);
  margin: 0;
}

.eu-signin p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}

.eu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--soft);
}

.eu-field input {
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--code);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
}

.eu-field input:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 1px;
}

.eu-button {
  font: 500 15px/1 var(--sans);
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
}

.eu-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.eu-button:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 2px;
}

.eu-error {
  color: #e88a7d;
  font-size: 14px;
  min-height: 1.4em;
}

/* World of projects */
.eu-world {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.eu-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--sans);
  min-width: 0;
}

a.eu-tile:hover,
a.eu-tile:focus-visible {
  border-color: var(--faint);
  background: var(--code);
}

.eu-tile-kind {
  font: 12px/1 var(--mono);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eu-tile-name {
  font: 500 22px/1.2 var(--serif);
  color: var(--ink);
}

.eu-tile-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}

/* Quote requests */
.eu-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.eu-stat {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  min-width: 0;
}

.eu-stat-label {
  font-size: 13px;
  color: var(--soft);
}

.eu-stat-value {
  font: 500 32px/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.eu-stat-note {
  font-size: 13px;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.eu-h2 {
  font: 500 22px/1.3 var(--serif);
  margin: 0 0 6px;
}

.eu-sub {
  margin: 0 0 14px;
  font: 14px/1.5 var(--sans);
  color: var(--faint);
}

.eu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.eu-chip {
  font: 13px/1 var(--sans);
  color: var(--soft);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.eu-chip[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.eu-chip:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 2px;
}

.eu-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 40px;
}

.eu-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font: 14px/1.5 var(--sans);
}

.eu-table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.eu-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.eu-table tr:last-child td {
  border-bottom: 0;
}

.eu-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.eu-muted {
  color: var(--faint);
}

.eu-company {
  font-weight: 500;
}

.eu-place {
  display: block;
  font-size: 12px;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.eu-feedback {
  max-width: 46ch;
  color: var(--soft);
}

.eu-pill {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--soft);
}

.eu-pill[data-status="orcamento"] {
  color: #9fd3a8;
  border-color: #3f6b48;
}

.eu-pill[data-status="respondeu"] {
  color: #e6c98a;
  border-color: #6b5a33;
}

.eu-pill[data-status="recusou"] {
  color: #e88a7d;
  border-color: #6b3a33;
}

.eu-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--faint);
  font: 14px/1.5 var(--sans);
}

@media (max-width: 560px) {
  .eu-title {
    font-size: 28px;
    margin-top: 32px;
  }
}
