@font-face { font-family: "Catamaran"; src: url("/static/catamaran-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Catamaran"; src: url("/static/catamaran-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6f8;
  color: #173042;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; background: #f3f6f8; }
a { color: #0d6b62; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(145deg, #edf3f5 0%, #f9fbfc 55%, #e7f0ef 100%);
}

.panel {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(23, 48, 66, .09);
}

.mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #0d6b62;
  color: #fff;
  font-weight: 750;
  letter-spacing: .05em;
}

.eyebrow { margin: 0 0 .35rem; color: #52707e; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.05; }
p { max-width: 55ch; line-height: 1.65; color: #48616e; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-top: .5rem; font-size: .9rem; font-weight: 650; color: #285f58; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: #2ba37f; box-shadow: 0 0 0 4px #dff4ec; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: .9rem clamp(1rem, 4vw, 3rem); background: #14394a; color: #fff; }
.brand { color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.topbar nav a, .link-button { color: #eaf4f5; font: inherit; text-decoration: none; }
.link-button { border: 0; background: none; padding: 0; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.admin-action { color: var(--brand-blue); text-transform: none; letter-spacing: 0; }
.discovery-action { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.page { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 4rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading h1, .content-narrow h1, .content-wide h1 { margin: 0; }
.user-chip, .badge { display: inline-flex; border-radius: 99px; padding: .35rem .7rem; font-size: .82rem; font-weight: 700; background: #e2eaed; }
.badge.ok { color: #17624e; background: #daf2e9; }
.badge.off { color: #8a3535; background: #f7dddd; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
.site-card, .empty-state, .panel-form, .table-wrap { background: #fff; border: 1px solid #dce5e9; border-radius: 14px; box-shadow: 0 8px 28px rgba(23, 48, 66, .06); }
.site-card { padding: 1.25rem; }
.site-card-header { display: flex; justify-content: space-between; gap: .75rem; }
.site-card h2 { margin: 0; }
dl div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #edf1f3; }
dt { color: #607783; } dd { margin: 0; font-weight: 650; }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(430px, 100%); padding: 2rem; background: #fff; border: 1px solid #dce5e9; border-radius: 18px; box-shadow: 0 18px 50px rgba(23, 48, 66, .1); }
.login-card .mark { margin-bottom: 1.5rem; }
.login-card h1 { margin: 0; }
.muted, .help { color: #617782; }
.form-stack, .panel-form { display: grid; gap: 1rem; }
.panel-form { padding: 1.5rem; margin-top: 1.5rem; }
label { display: grid; gap: .4rem; color: #294858; font-weight: 650; }
input, select, textarea { width: 100%; padding: .72rem .8rem; border: 1px solid #bdcbd1; border-radius: 8px; color: #173042; background: #fff; font: inherit; }
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(13, 107, 98, .16); border-color: #0d6b62; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #9fb2ba; border-radius: 8px; padding: .68rem 1rem; background: #fff; color: #173042; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button.primary, .button.primary { border-color: #0d6b62; background: #0d6b62; color: #fff; }
.alert { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid #bd3e3e; background: #fff0f0; color: #742929; }
.content-narrow { max-width: 600px; margin: 0 auto; }
.content-wide { max-width: 1000px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
fieldset { border: 1px solid #dce5e9; border-radius: 10px; padding: 1rem; }
.permission-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(6, minmax(90px, 1fr)); align-items: center; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid #edf1f3; }
.permission-row label { display: flex; font-size: .84rem; }
.permission-row input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #e6ecef; }
th { color: #526d7a; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.details { max-width: 340px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .78rem; }
.status-value { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 800; }
.status-value::before { content: ""; width: .52rem; height: .52rem; border-radius: 50%; background: #81919a; }
.status-value.online { color: #17624e; }
.status-value.online::before { background: #2ba37f; box-shadow: 0 0 0 3px #dff4ec; }
.status-value.offline { color: #8a3535; }
.status-value.offline::before { background: #c85151; box-shadow: 0 0 0 3px #f7dddd; }
.status-value.unknown { color: #647883; }
.button.disabled { opacity: .55; cursor: not-allowed; user-select: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.card-actions .button { padding: .52rem .68rem; font-size: .82rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.info-panel { padding: 1.35rem; background: #fff; border: 1px solid #dce5e9; border-radius: 14px; box-shadow: 0 8px 28px rgba(23, 48, 66, .06); }
.info-panel h2 { margin-top: 0; }
.page-actions { margin-top: 1rem; }
.span-two { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: .6rem; }
.checkbox input { width: auto; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }

@media (max-width: 560px) {
  .panel { grid-template-columns: 1fr; }
  .topbar, .page-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: 1fr 1fr; }
}

/* Dyckerhoff-oriented corporate theme */
:root {
  font-family: "Catamaran", Arial, sans-serif;
  --brand-blue: #0070b9;
  --brand-blue-dark: #00568f;
  --brand-gray: #979795;
  --ink: #333;
  --line: #dedede;
  background: #f5f5f5;
  color: var(--ink);
}
body { background: #f5f5f5; color: var(--ink); font-size: 16px; }
a { color: var(--brand-blue); }
h1, h2, h3 { color: #333; font-weight: 400; }
h1 { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.12; }
.eyebrow { color: var(--brand-blue); font-size: .78rem; letter-spacing: .12em; }
.topbar {
  min-height: 102px;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: #fff;
  color: #333;
  border-bottom: 4px solid var(--brand-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.brand { display: flex; align-items: center; gap: 1.4rem; color: #333; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brand img { width: min(250px, 36vw); height: auto; display: block; }
.brand span { padding-left: 1.25rem; border-left: 1px solid var(--brand-gray); }
.topbar nav { align-self: stretch; gap: 0; }
.topbar nav a, .topbar .link-button {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: .5rem .85rem;
  color: #333;
  border-bottom: 3px solid transparent;
}
.topbar nav a:hover, .topbar nav a:focus, .topbar .link-button:hover, .topbar .link-button:focus { color: var(--brand-blue); border-bottom-color: var(--brand-blue); text-decoration: none; }
.page { width: min(1240px, calc(100% - 2rem)); }
.site-card, .empty-state, .panel-form, .table-wrap, .info-panel {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .045);
}
.site-card { position: relative; padding: 1.5rem; border-top: 5px solid var(--brand-blue); }
.site-card h2 { color: var(--brand-blue); }
.badge, .user-chip { border-radius: 0; }
.badge.ok { color: #1f603f; background: #e3f2e8; }
.badge.off { color: #873737; background: #f8e5e5; }
button, .button { border-radius: 0; text-transform: uppercase; letter-spacing: .035em; }
button.primary, .button.primary { border-color: var(--brand-blue); background: var(--brand-blue); }
button.primary:hover, .button.primary:hover { border-color: var(--brand-blue-dark); background: var(--brand-blue-dark); }
input, select, textarea { border-radius: 0; border-color: #a7a7a7; }
input:focus, select:focus, textarea:focus { outline-color: rgba(0, 112, 185, .18); border-color: var(--brand-blue); }
.login-shell {
  background:
    linear-gradient(120deg, rgba(0, 112, 185, .10), transparent 45%),
    linear-gradient(300deg, rgba(151, 151, 149, .12), transparent 48%),
    #f5f5f5;
}
.login-card { width: min(470px, 100%); padding: 2.5rem; border-radius: 0; border-top: 6px solid var(--brand-blue); box-shadow: 0 20px 55px rgba(0, 0, 0, .12); }
.login-logo { display: block; width: min(310px, 90%); height: auto; margin: 0 0 2.3rem; }
.form-stack button { margin-top: .4rem; }
th { color: #333; background: #eaeaea; }
tbody tr:hover { background: #fafafa; }
.status-value.online { color: #21724d; }
.status-value.online::before { background: #2f9b66; }
.status-value.offline { color: #a33b3b; }
.status-value.offline::before { background: #c64c4c; }

@media (max-width: 800px) {
  .topbar { align-items: flex-start; flex-direction: column; min-height: 0; }
  .brand img { width: 220px; }
  .topbar nav { width: 100%; overflow-x: auto; }
  .topbar nav a, .topbar .link-button { white-space: nowrap; padding: .65rem .65rem; }
}

@media (max-width: 560px) {
  .brand { width: 100%; justify-content: space-between; gap: .7rem; }
  .brand img { width: 190px; }
  .brand span { font-size: .78rem; padding-left: .7rem; }
  .login-card { padding: 1.6rem; }
}
