:root {
  --bg: #eef2ef;
  --ink: #172126;
  --muted: #66747a;
  --line: #d8dfdc;
  --panel: rgba(255, 255, 255, .9);
  --green: #2f7254;
  --blue: #3c6f91;
  --gold: #b47b28;
  --red: #b34d43;
  --shadow: 0 18px 46px rgba(23, 33, 38, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(47, 114, 84, .18), transparent 42%),
    linear-gradient(315deg, rgba(60, 111, 145, .16), transparent 38%),
    var(--bg);
}

a { color: inherit; }

button,
input,
textarea {
  font: inherit;
}

.portal,
.admin {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero,
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  background: #264f42;
  box-shadow: 0 12px 28px rgba(38, 79, 66, .24);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
}

.hero > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.text-button,
.open-button,
.primary-submit {
  min-height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 740;
}

.text-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
  padding: 0 12px;
}

.status-overview {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 38, .1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-overview > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-overview h2 {
  margin-bottom: 3px;
  font-size: 20px;
}

.status-overview p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-count {
  border-radius: 999px;
  padding: 7px 11px;
  color: #1f5136;
  background: rgba(47, 114, 84, .14);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

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

.link-card,
.panel,
.empty,
.notice {
  border: 1px solid rgba(23, 33, 38, .1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.link-card {
  min-height: 230px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  background: var(--green);
}

.link-icon.cloud { background: var(--blue); }
.link-icon.homepage { background: var(--gold); }
.link-icon.intern { background: #566b70; }
.link-icon.support { background: var(--red); }

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  color: #1f5136;
  background: rgba(47, 114, 84, .14);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.status-pill.online {
  color: #1f5136;
  background: rgba(47, 114, 84, .14);
}

.status-pill.maintenance {
  color: #70430d;
  background: rgba(180, 123, 40, .18);
}

.status-pill.issue,
.status-pill.offline {
  color: #7d241e;
  background: rgba(179, 77, 67, .14);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 114, 84, .12);
}

.status-dot.maintenance {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(180, 123, 40, .14);
}

.status-dot.issue,
.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(179, 77, 67, .14);
}

.link-card h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.12;
}

.link-card p,
.muted {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.open-button,
.primary-submit {
  width: 100%;
  border: 0;
  color: #fff;
  background: #243f35;
  cursor: pointer;
}

.open-button {
  align-self: end;
}

.admin-head {
  align-items: center;
}

.admin-actions,
.form-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.panel,
.empty,
.notice {
  padding: 18px;
}

.login-panel {
  width: min(440px, 100%);
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  justify-content: space-between;
}

.notice {
  margin-bottom: 14px;
}

.notice.error {
  color: #7d241e;
  background: rgba(179, 77, 67, .12);
}

.notice.success {
  color: #1f5136;
  background: rgba(47, 114, 84, .12);
}

.admin-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.admin-link:first-of-type {
  border-top: 0;
}

.admin-link strong,
.admin-link span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  flex-shrink: 0;
}

.danger {
  color: #7d241e;
}

@media (max-width: 920px) {
  .link-grid,
  .admin-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .portal,
  .admin {
    padding: 16px;
  }

  .hero,
  .admin-head,
  .admin-link {
    display: grid;
  }

  .hero {
    gap: 14px;
  }

  .hero > p {
    max-width: none;
  }

  .status-overview {
    display: grid;
  }

  .link-grid,
  .admin-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 0;
  }

  .row-actions,
  .admin-actions,
  .form-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
