/* INNOQ styleguide palette: petrol #004153, apricot #ff9c66, blue #24244c. */
:root {
  --petrol: #004153;
  --petrol-dark: #002f3d;
  --apricot: #ff9c66;
  --apricot-soft: #fff0e7;
  --blue: #24244c;
  --green: #167b66;
  --green-soft: #e2f7f0;
  --red: #a82545;
  --red-soft: #ffedf1;
  --yellow: #916b00;
  --yellow-soft: #fff8d6;
  --gray-90: #242424;
  --gray-70: #646465;
  --gray-50: #979798;
  --gray-25: #d8d8d8;
  --gray-10: #f7f7f7;
  --white: #fff;
  --shadow: 0 1px 2px rgba(36, 36, 76, .05), 0 8px 24px rgba(36, 36, 76, .04);
  --radius: 12px;
  --font-sans: "FFMarkWebPro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "FreightTextPro", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--gray-90); background: var(--white); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-dark); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--blue); line-height: 1.14; }
h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.045em; }
h2 { margin-bottom: .7rem; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.1rem; }
.shell { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }
.narrow-shell { max-width: 980px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; background: var(--apricot); color: var(--blue); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }

/* Header */
.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 1px solid rgba(0, 65, 83, .12); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--blue); text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { margin-top: .25rem; color: var(--gray-70); font-size: .67rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-link { color: var(--blue); font-weight: 650; text-decoration: none; }
.nav-link:hover { color: var(--petrol); text-decoration: underline; }
.hero-toggle { border: 0; background: transparent; padding: .35rem 0; color: var(--gray-70); font-size: .8rem; font-weight: 500; }
.user-menu { display: flex; align-items: center; gap: .65rem; border-left: 1px solid var(--gray-25); padding-left: 1.5rem; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); color: white; font-size: .8rem; font-weight: 800; }
.user-name { max-width: 150px; overflow: hidden; color: var(--gray-70); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.link-button { border: 0; background: transparent; color: var(--gray-70); padding: .25rem 0; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--petrol); }
.role-badge { display: inline-flex; align-items: center; border: 1px solid var(--gray-25); border-radius: 99px; background: var(--gray-10); padding: .35rem .65rem; color: var(--gray-70); font-size: .72rem; font-weight: 650; line-height: 1.2; white-space: nowrap; }

/* Buttons */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .6rem; border: 1px solid transparent; border-radius: 5px; padding: .65rem 1.1rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button--small { min-height: 38px; padding: .5rem .9rem; font-size: .88rem; }
.button--apricot { background: var(--apricot); color: var(--blue); }
.button--apricot:hover { background: #ffad83; color: var(--blue); box-shadow: 0 4px 14px rgba(255, 156, 102, .28); }
.button--primary { background: var(--petrol); color: var(--white); }
.button--primary:hover { background: var(--petrol-dark); color: var(--white); }
.button--secondary { border-color: rgba(0, 65, 83, .25); background: var(--white); color: var(--petrol); }
.button--secondary:hover { border-color: var(--petrol); background: var(--gray-10); }
.button--ghost { color: var(--gray-70); }
.button--ghost:hover { background: var(--gray-10); }

/* Hero */
.hero { overflow: hidden; background: var(--petrol); color: white; }
.hero-inner { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 2.8rem 3.4rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: var(--apricot); font-size: .73rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 3px; background: currentColor; }
.eyebrow--dark { color: var(--petrol); }
.hero h1 { max-width: 850px; color: var(--white); font-size: clamp(2rem, 4.05vw, 3.65rem); font-weight: 800; }
.hero h1 span { color: var(--apricot); }
.hero-lead { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.82); font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.6; }
.hero-mark { flex: 0 0 265px; align-self: center; appearance: none; border: 0; border-radius: 12px; background: transparent; padding: 8px; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hero-mark img { display: block; width: 100%; max-width: 240px; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.15)); transition: transform .18s ease; }
.hero-mark img[hidden] { display: none; }
.hero-mark:hover img { transform: translateY(-3px); }
.hero-mark:focus-visible { outline-color: var(--apricot); outline-offset: 5px; }
.hero-mark--revealed { cursor: default; }
.hero-mark--revealed img { animation: terminal-reveal .35s ease-out; }
@keyframes terminal-reveal { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* Stats and filters */
.dashboard-content { padding-bottom: 5rem; }
.hero[hidden] { display: none; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: -1.5rem; margin-bottom: 3.5rem; }
.hero[hidden] + .dashboard-content .stats-grid { margin-top: 1.5rem; }
.stat-card { position: relative; min-height: 145px; display: flex; flex-direction: column; border: 1px solid rgba(36,36,76,.08); border-top: 4px solid var(--gray-25); border-radius: 7px; background: white; padding: 1rem 1.15rem; color: var(--blue); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-3px); color: var(--blue); box-shadow: 0 10px 28px rgba(36,36,76,.11); }
.stat-card strong { margin-block: .15rem auto; font-size: 2.65rem; line-height: 1.1; letter-spacing: -.05em; }
.stat-card small { color: var(--gray-70); font-size: .76rem; }
.stat-label { display: flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.stat-label i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stat-card--total { border-top-color: var(--petrol); background: linear-gradient(145deg, white, #f2f8f9); }
.stat-card--ok { border-top-color: #55cdaf; }
.stat-card--ok .stat-label { color: var(--green); }
.stat-card--warning { border-top-color: #e3b600; }
.stat-card--warning .stat-label { color: var(--yellow); }
.stat-card--critical { border-top-color: #ff4d67; }
.stat-card--critical .stat-label { color: var(--red); }
.stat-card--unknown { border-top-color: var(--gray-50); }
.stat-card--unknown .stat-label { color: var(--gray-70); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; font-size: 2rem; }
.section-heading .eyebrow { margin-bottom: .45rem; }
.freshness-note { margin: 0; color: var(--gray-70); font-size: .8rem; }
.freshness-note span { color: var(--petrol); margin-right: .3rem; }
.section-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.view-toggle { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--gray-25); border-radius: 4px; background: var(--white); padding: .4rem .6rem; color: var(--petrol); font-size: .76rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.view-toggle:hover { border-color: var(--petrol); background: #edf4f5; }
.filter-bar { display: flex; align-items: center; gap: .7rem; border: 1px solid rgba(36,36,76,.1); border-radius: 7px; background: var(--gray-10); padding: .75rem; margin-bottom: 1.1rem; }
.search-field { flex: 1; display: flex; align-items: center; gap: .65rem; border: 1px solid var(--gray-25); border-radius: 4px; background: var(--white); padding: 0 .8rem; }
.search-field > span:not(.sr-only) { color: var(--petrol); font-size: 1.3rem; }
.search-field input { width: 100%; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--gray-90); }
.search-field:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 2px rgba(0,65,83,.12); }
.status-filter select { min-height: 42px; border: 1px solid var(--gray-25); border-radius: 4px; background: white; padding: 0 2rem 0 .7rem; color: var(--gray-90); }
.clear-filter { font-size: .82rem; white-space: nowrap; }
.result-count { margin-left: auto; padding-inline: .5rem; color: var(--gray-70); font-size: .8rem; white-space: nowrap; }

/* Application inventory */
.compact-table-wrap { overflow-x: auto; border: 1px solid rgba(36,36,76,.1); border-radius: 8px; background: var(--white); box-shadow: 0 2px 8px rgba(36,36,76,.025); }
.compact-table { width: 100%; min-width: 1060px; border-collapse: collapse; text-align: left; }
.compact-table th { border-bottom: 1px solid rgba(36,36,76,.12); background: #edf4f5; padding: .65rem .75rem; color: var(--gray-70); font-size: .65rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.compact-table th:nth-child(n+3), .compact-table td.compact-check { text-align: center; }
.compact-table th abbr { text-decoration: none; cursor: help; }
.compact-table td { border-bottom: 1px solid rgba(36,36,76,.075); padding: .55rem .75rem; vertical-align: middle; }
.compact-table tbody tr:last-child td { border-bottom: 0; }
.compact-table tbody tr:hover { background: #fafcfc; }
.compact-application { min-width: 220px; }
.compact-application > a { display: block; color: var(--blue); font-size: .9rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.compact-application > a:hover { color: var(--petrol); text-decoration: underline; }
.compact-application > span { display: block; color: var(--gray-50); font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; }
.compact-application > small { display: inline-block; margin-top: .22rem; color: var(--petrol); font-family: "SFMono-Regular", Consolas, monospace; font-size: .61rem; }
.compact-host { min-width: 165px; }
.compact-host strong, .compact-host span { display: block; overflow: hidden; max-width: 210px; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.compact-host strong { color: var(--blue); font-weight: 650; }
.compact-host span { color: var(--gray-70); font-size: .65rem; }
.compact-status-link { display: inline-flex; width: 40px; height: 38px; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; }
.compact-status-link > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #ededed; color: var(--gray-70); font-size: .78rem; font-weight: 850; }
.compact-status-link:hover { background: var(--gray-10); outline: 1px solid var(--gray-25); }
.compact-status-link--ok > span { background: var(--green-soft); color: var(--green); }
.compact-status-link--warning > span { background: var(--yellow-soft); color: var(--yellow); }
.compact-status-link--critical > span { background: var(--red-soft); color: var(--red); }
.compact-overall { display: inline-block; border-radius: 99px; background: #ededed; padding: .28rem .55rem; color: var(--gray-70); font-size: .64rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.compact-overall--ok { background: var(--green-soft); color: var(--green); }
.compact-overall--warning { background: var(--yellow-soft); color: var(--yellow); }
.compact-overall--critical { background: var(--red-soft); color: var(--red); }
.application-list { display: grid; gap: .85rem; }
.application-card { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(430px, 2fr) 145px; align-items: center; gap: 1.5rem; border: 1px solid rgba(36,36,76,.1); border-radius: var(--radius); background: var(--white); padding: 1.35rem 1.5rem; box-shadow: 0 2px 8px rgba(36,36,76,.025); transition: border-color .15s, box-shadow .15s; }
.application-card:hover { border-color: rgba(0,65,83,.3); box-shadow: var(--shadow); }
.application-title-line { display: flex; align-items: flex-start; gap: .75rem; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: .45rem; border-radius: 50%; background: var(--gray-50); box-shadow: 0 0 0 4px var(--gray-10); }
.status-dot--ok { background: #299c80; box-shadow: 0 0 0 4px var(--green-soft); }
.status-dot--warning { background: #d4a500; box-shadow: 0 0 0 4px var(--yellow-soft); }
.status-dot--critical { background: #ff4d67; box-shadow: 0 0 0 4px var(--red-soft); }
.application-title { color: var(--blue); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.application-title:hover { color: var(--petrol); text-decoration: underline; }
.application-slug { display: block; margin-top: .1rem; color: var(--gray-50); font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; }
.application-runtime { display: inline-block; margin-top: .4rem; border-radius: 3px; background: #edf4f5; padding: .16rem .4rem; color: var(--petrol); font-family: "SFMono-Regular", Consolas, monospace; font-size: .66rem; font-weight: 650; }
.application-description { margin: .65rem 0 .55rem; color: var(--gray-70); font-family: var(--font-serif); font-size: .9rem; line-height: 1.45; }
.host-line { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--gray-70); font-size: .72rem; }
.host-line > span:first-child { color: var(--petrol); }
.host-line strong { color: var(--blue); font-weight: 650; }
.host-line--access { margin-top: .3rem; }
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .85rem; }
.criterion { display: flex; min-width: 0; align-items: flex-start; gap: .55rem; }
.criterion-icon { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--gray-10); color: var(--gray-70); font-size: .8rem; font-weight: 850; }
.criterion-copy { display: grid; min-width: 0; line-height: 1.2; }
.criterion-copy strong { color: var(--gray-90); font-size: .78rem; font-weight: 700; }
.criterion-copy small { max-width: 220px; margin-top: .23rem; overflow: hidden; color: var(--gray-70); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.criterion--ok .criterion-icon { background: var(--green-soft); color: var(--green); }
.criterion--warning .criterion-icon { background: var(--yellow-soft); color: var(--yellow); }
.criterion--critical .criterion-icon { background: var(--red-soft); color: var(--red); }
.criterion--critical .criterion-copy small { color: var(--red); }
.criterion-copy small a { color: inherit; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.criterion-copy small a:hover { color: var(--petrol); }
.criterion-copy small a:focus-visible { outline: 2px solid var(--petrol); outline-offset: 1px; border-radius: 2px; }
.criterion--unknown .criterion-icon { background: #ededed; color: var(--gray-70); }
.application-status { display: flex; min-height: 85px; flex-direction: column; align-items: flex-end; justify-content: space-between; border-left: 1px solid rgba(36,36,76,.08); padding-left: 1.2rem; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 99px; background: #ededed; padding: .35rem .7rem; color: var(--gray-70); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status-badge > span { font-size: .9rem; }
.status-badge--ok { background: var(--green-soft); color: var(--green); }
.status-badge--warning { background: var(--yellow-soft); color: var(--yellow); }
.status-badge--critical { background: var(--red-soft); color: var(--red); }
.detail-link { font-size: .78rem; font-weight: 700; text-decoration: none; }
.detail-link span { margin-left: .2rem; }
.empty-state { border: 2px dashed var(--gray-25); border-radius: var(--radius); background: var(--gray-10); padding: 3.5rem 1rem; text-align: center; }
.empty-state img { display: block; margin: 0 auto 1rem; }
.empty-state h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.empty-state p { color: var(--gray-70); }

/* Forms */
.page-muted { background: var(--gray-10); }
.form-page, .detail-page { padding-block: 2rem 5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; font-weight: 650; text-decoration: none; }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { margin-bottom: .7rem; font-size: 2.65rem; }
.page-heading > p:last-child { max-width: 680px; color: var(--gray-70); font-family: var(--font-serif); }
.required { color: var(--red); font-weight: 700; }
.alert { border-left: 4px solid; border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.alert--error { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.alert--info { border-color: var(--petrol); background: #edf4f5; color: var(--blue); }
.application-form { display: grid; gap: 1.25rem; }
.form-section { border: 1px solid rgba(36,36,76,.1); border-radius: var(--radius); background: white; padding: 1.8rem; box-shadow: var(--shadow); }
.form-section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(36,36,76,.08); }
.form-section-heading > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--apricot-soft); color: var(--petrol); font-size: .75rem; font-weight: 800; }
.form-section-heading h2 { margin-bottom: .2rem; font-size: 1.4rem; }
.form-section-heading p { margin: 0; color: var(--gray-70); font-family: var(--font-serif); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; min-width: 0; flex-direction: column; gap: .4rem; color: var(--blue); font-size: .82rem; font-weight: 650; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--gray-25); border-radius: 4px; background: var(--white); padding: .65rem .75rem; color: var(--gray-90); font-weight: 400; }
.field input, .field select { min-height: 44px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); outline: 2px solid rgba(0,65,83,.12); }
.field small { color: var(--gray-70); font-size: .72rem; font-weight: 400; line-height: 1.4; }
.checkbox-field { display: flex; align-items: flex-start; gap: .75rem; border-radius: 6px; background: var(--apricot-soft); padding: 1rem; cursor: pointer; }
.checkbox-field input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--petrol); margin-top: .15rem; }
.checkbox-field > span { display: grid; gap: .2rem; }
.checkbox-field strong { color: var(--blue); font-size: .84rem; }
.checkbox-field small { color: var(--gray-70); font-size: .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .5rem; }

/* Detail page */
.detail-topline { display: flex; align-items: flex-start; justify-content: space-between; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: .7rem; }
.detail-heading h1 { margin-bottom: .5rem; font-size: 2.75rem; }
.detail-heading p:last-child { max-width: 760px; margin-bottom: 0; color: var(--gray-70); font-family: var(--font-serif); font-size: 1.05rem; }
.detail-heading > .status-badge { margin-top: 1.5rem; padding: .5rem .9rem; }
.detail-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.7rem; font-size: .8rem; font-weight: 700; }
.detail-panel { border: 1px solid rgba(36,36,76,.1); border-radius: var(--radius); background: white; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(36,36,76,.08); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.panel-heading h2 { margin: 0; font-size: 1.4rem; }
.panel-heading .eyebrow { margin-bottom: .3rem; font-size: .65rem; }
.panel-heading > span { color: var(--gray-70); font-size: .72rem; text-align: right; }
.privacy-input { border-left: 4px solid var(--apricot); background: var(--apricot-soft); padding: 1rem; }
.detail-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-criteria .criterion { border-radius: 7px; background: var(--gray-10); padding: .9rem; }
.detail-criteria .criterion-copy small { max-width: none; margin-top: .35rem; overflow: visible; font-size: .72rem; line-height: 1.35; text-overflow: initial; white-space: normal; }
.detail-criterion-anchor { border-radius: 7px; scroll-margin-top: 1rem; }
.detail-criterion-anchor .criterion { height: 100%; }
.detail-criterion-anchor:target .criterion { outline: 2px solid var(--petrol); outline-offset: 2px; background: #edf4f5; }
#criteria { scroll-margin-top: 1rem; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1.25rem; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.source-card { border: 1px solid rgba(36,36,76,.1); border-radius: 7px; padding: 1rem; }
.source-card-heading, .source-card-heading > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.source-card-heading h3 { margin: 0; font-size: .95rem; }
.source-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 5px; background: var(--blue); color: white; font-size: .7rem; font-weight: 850; }
.source-icon--petrol { background: var(--petrol); }
.mini-badge { border-radius: 3px; background: var(--gray-10); padding: .15rem .35rem; color: var(--gray-70); font-size: .61rem; font-weight: 750; text-transform: uppercase; }
.mini-badge--ok { background: var(--green-soft); color: var(--green); }
.mini-badge--warning { background: var(--yellow-soft); color: var(--yellow); }
.mini-badge--critical { background: var(--red-soft); color: var(--red); }
.source-card p { margin: .9rem 0; color: var(--gray-70); font-size: .8rem; }
/* Own DependencyTrack badge, rendered from the parsed numbers (no external images). */
.dt-badge { display: grid; gap: .3rem; margin: .1rem 0 .6rem; }
.dt-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.dt-badge-label { min-width: 62px; color: var(--gray-70); font-size: .64rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dt-chip { display: inline-flex; align-items: baseline; gap: .25rem; border: 1px solid rgba(36,36,76,.12); border-radius: 4px; padding: .16rem .4rem; font-size: .66rem; font-weight: 700; line-height: 1.2; }
.dt-chip strong { font-size: .76rem; font-weight: 850; }
.dt-chip--critical { border-color: #dc0000; background: #fdecec; color: #a40000; }
.dt-chip--high { border-color: #fd8c00; background: #fff4e6; color: #94520a; }
.dt-chip--medium, .dt-chip--warn { border-color: #d4a500; background: #fff9e0; color: #7a5c00; }
.dt-chip--low { border-color: #4cae4c; background: #edf8ed; color: #2c6b2c; }
.dt-chip--unassigned { border-color: #a0a0a0; background: #f3f3f3; color: #555; }
.dt-chip--fail { border-color: #dc0000; background: #fdecec; color: #a40000; }
.dt-chip--info { border-color: #20a8d8; background: #eaf7fc; color: #14607c; }
.dt-badge--compact { margin: .35rem 0 0; }
.dt-badge--compact .dt-chip { padding: .1rem .3rem; font-size: .6rem; }
.dt-badge--compact .dt-badge-label { min-width: 54px; font-size: .58rem; }
.dt-badge-note { color: var(--gray-70); font-size: .68rem; }
.source-summary { margin: .2rem 0 .6rem; color: var(--gray-70); font-size: .8rem; line-height: 1.4; }
.source-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.source-card-actions form { margin: 0; }
.source-card dl, .metadata-panel dl { margin: 0; }
.source-card dl > div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .25rem; font-size: .68rem; }
dt { color: var(--gray-70); }
dd { margin: 0; color: var(--blue); font-weight: 600; }
.source-card code { display: block; overflow: hidden; color: var(--petrol); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--gray-70) !important; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: .8rem; padding-bottom: 1.2rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: 12px; bottom: -2px; left: 4px; width: 1px; background: var(--gray-25); }
.timeline-dot { z-index: 1; flex: 0 0 auto; width: 9px; height: 9px; margin-top: .35rem; border: 2px solid white; border-radius: 50%; background: var(--petrol); box-shadow: 0 0 0 1px var(--petrol); }
.timeline-content { flex: 1; min-width: 0; }
.timeline-content > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.timeline-content strong { color: var(--blue); font-size: .79rem; font-weight: 650; }
.timeline-content time { flex: 0 0 auto; color: var(--gray-70); font-size: .66rem; }
.timeline-content p { margin: .3rem 0 0; color: var(--gray-70); font-size: .68rem; }
.event-type { color: var(--petrol); font-family: monospace; }
.audit-changes { display: grid; gap: .3rem; margin: .5rem 0 0; padding: .55rem .65rem; border: 1px solid rgba(36,36,76,.1); border-radius: 6px; background: #f8fbfb; list-style: none; }
.audit-changes li { display: grid; gap: .15rem; font-size: .68rem; line-height: 1.35; }
.audit-change-field { color: var(--gray-70); font-size: .62rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.audit-change-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; overflow-wrap: anywhere; }
.audit-change-before { color: var(--gray-70); }
.audit-change-after { color: var(--blue); font-weight: 650; text-decoration: none; }
.metadata-panel h2, .notes-panel h2 { font-size: 1.3rem; }
.metadata-panel dl > div { border-bottom: 1px solid rgba(36,36,76,.07); padding-block: .7rem; }
.metadata-panel dt { margin-bottom: .15rem; font-size: .68rem; }
.metadata-panel dd { overflow-wrap: anywhere; font-size: .8rem; }
.metadata-panel dd.personal-data { white-space: pre-wrap; }
.text-critical { color: var(--red); }
.notes-panel p:last-child { margin: 0; color: var(--gray-70); font-family: var(--font-serif); font-size: .9rem; white-space: pre-wrap; }
.integration-hint { display: flex; gap: .8rem; border-radius: var(--radius); background: var(--petrol); padding: 1.2rem; color: white; }
.integration-hint > span { color: var(--apricot); font-size: 1.5rem; }
.integration-hint h3 { margin-bottom: .35rem; color: white; font-size: .9rem; }
.integration-hint p { margin: 0; color: rgba(255,255,255,.75); font-size: .75rem; }
.empty-inline { padding: 1rem; color: var(--gray-70); text-align: center; }
.error-page { padding-block: 5rem; text-align: center; }
.error-page img { display: block; margin: 0 auto 1rem; }
.error-page .eyebrow { justify-content: center; }
.error-page > p:not(.eyebrow) { margin-inline: auto; max-width: 600px; color: var(--gray-70); font-family: var(--font-serif); }

/* Public login */
.login-page { min-height: 100vh; min-height: 100dvh; background-color: var(--petrol-dark); background-image: linear-gradient(rgba(85,205,175,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(85,205,175,.045) 1px, transparent 1px), radial-gradient(circle at 15% 20%, rgba(85,205,175,.12), transparent 32rem), radial-gradient(circle at 85% 75%, rgba(255,156,102,.12), transparent 30rem); background-size: 34px 34px, 34px 34px, auto, auto; }
.login-layout { width: min(100% - 32px, 560px); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-inline: auto; padding-block: 2.5rem; }
.login-card { width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: var(--white); box-shadow: 0 26px 70px rgba(0,0,0,.28), 0 0 0 6px rgba(255,156,102,.04); }
.login-window-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; background: #082f3b; padding: 0 1rem; color: rgba(255,255,255,.45); }
.login-window-bar code { margin-left: auto; font-size: .65rem; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-50); }
.window-dot--red { background: #ff6f80; }
.window-dot--yellow { background: #f8ce46; }
.window-dot--green { background: #55cdaf; }
.login-card-body { padding: 1.5rem 2.2rem 1.7rem; text-align: center; }
.login-mascot { position: relative; width: fit-content; margin: 0 auto .7rem; }
.login-mascot img { display: block; width: 118px; height: 118px; filter: drop-shadow(0 7px 8px rgba(36,36,76,.1)); }
.login-system-status { position: absolute; right: -54px; bottom: 4px; display: flex; align-items: center; gap: .3rem; border: 1px solid #c9e9de; border-radius: 3px; background: #f0faf6; padding: .2rem .35rem; color: var(--green); font-family: monospace; font-size: .58rem; white-space: nowrap; transform: rotate(-3deg); }
.login-system-status i { width: 5px; height: 5px; border-radius: 50%; background: #2aa380; }
.login-kicker { margin-bottom: .35rem; color: var(--petrol); font-size: .66rem; font-weight: 800; letter-spacing: .19em; }
.login-content h1 { margin-bottom: .7rem; font-size: clamp(2rem, 8vw, 2.65rem); font-weight: 850; }
.login-cursor { color: var(--apricot); animation: login-cursor-blink 1.3s steps(1) infinite; }
.login-intro { margin-bottom: 1.4rem; color: var(--gray-70); font-family: var(--font-serif); font-size: .99rem; line-height: 1.55; }
.login-sso { display: flex; min-height: 50px; align-items: center; gap: .8rem; border: 1px solid #eb864b; border-radius: 5px; background: var(--apricot); padding: .75rem .9rem; color: var(--blue); font-size: .96rem; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #d87642; transition: transform .12s, box-shadow .12s, background .12s; }
.login-sso:hover { background: #ffad83; color: var(--blue); box-shadow: 0 5px 0 #d87642; transform: translateY(-1px); }
.login-sso:active { box-shadow: 0 2px 0 #d87642; transform: translateY(2px); }
.login-sso-icon { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(36,36,76,.22); border-radius: 50%; }
.login-sso-shortcut { margin-left: auto; border: 1px solid rgba(36,36,76,.18); border-radius: 3px; padding: .05rem .35rem; color: rgba(36,36,76,.55); font-family: monospace; font-size: .85rem; }
.login-access { margin: 1.15rem 0 0; color: var(--gray-70); font-size: .66rem; }
.login-access code { color: var(--petrol); font-size: .62rem; }
.login-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--gray-25); background: var(--gray-10); padding: .75rem 1.3rem; color: var(--gray-70); font-family: monospace; font-size: .58rem; }
.login-card-footer > span:first-child { display: flex; align-items: center; gap: .35rem; }
.login-card-footer i { width: 6px; height: 6px; border-radius: 50%; background: #2aa380; box-shadow: 0 0 0 3px var(--green-soft); }
.login-footnote { margin: 1.5rem 0 0; color: rgba(255,255,255,.55); font-family: var(--font-serif); font-size: .8rem; text-align: center; }
.login-footnote span { margin-right: .35rem; color: var(--apricot); font-family: monospace; }
@keyframes login-cursor-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }

/* Identity */
.role-badge--admin { border-color: #b4e4d4; background: var(--green-soft); color: var(--green); }
.owner-team { display: block; margin-top: .25rem; color: var(--gray-70); font-size: .68rem; font-weight: 400; }
.owner-mail-link { color: inherit; text-decoration-color: rgba(0,65,83,.35); text-underline-offset: 2px; }
.owner-mail-link:hover { color: var(--petrol); text-decoration-color: currentColor; }
.notes-hint { margin: 0 0 .8rem; color: var(--gray-70); font-family: var(--font-serif); font-size: .8rem; }
.notes-form { display: grid; gap: .7rem; }
.notes-form textarea { font-size: .85rem; }

/* Steckbrief import */
.import-problems { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.import-problems li { overflow-wrap: anywhere; font-family: monospace; font-size: .8rem; }
.import-hints { margin-top: 1.25rem; }
.import-hints ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--gray-70); font-size: .88rem; }
.import-hints code { font-size: .8rem; }
.detail-topline-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }

/* Footer */
.site-footer { border-top: 1px solid rgba(36,36,76,.1); background: white; }
.footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--gray-70); font-size: .75rem; }
.footer-inner strong { color: var(--petrol); }
.footer-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .7rem 1rem; }
.footer-legal { display: inline-flex; align-items: center; gap: .65rem; }
.footer-legal a { color: var(--petrol); font-weight: 700; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal > span { color: var(--gray-25); }
.footer-tech { color: var(--gray-50); font-family: monospace; font-size: .68rem; }
.footer-version { display: inline-flex; border: 1px solid var(--gray-25); border-radius: 3px; background: var(--gray-10); padding: .16rem .4rem; color: var(--petrol); font-family: monospace; font-size: .68rem; font-weight: 750; }

@media (max-width: 1240px) {
  .application-card { grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.6fr) 125px; gap: 1rem; padding-inline: 1.1rem; }
  .criterion-copy small { max-width: 160px; }
  .hero-mark { flex-basis: 235px; }
}
@media (max-width: 1050px) {
  .user-name { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card:nth-child(4), .stat-card:nth-child(5) { min-height: 120px; }
  .application-card { grid-template-columns: 1fr 1.5fr; }
  .application-status { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; border-top: 1px solid rgba(36,36,76,.08); border-left: 0; padding: .75rem 0 0; }
  .hero-mark { display: none; }
  .detail-criteria { grid-template-columns: 1fr 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .integration-hint { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1420px); }
  .header-inner { min-height: 70px; gap: .8rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 1.05rem; }
  .brand-copy small { display: none; }
  .main-nav { gap: .7rem; }
  .main-nav > .nav-link:not(.hero-toggle), .user-menu { display: none; }
  .hero-inner { min-height: 290px; padding-block: 2.4rem 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-lead { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 2.5rem; }
  .stat-card { min-height: 125px; padding: .85rem; }
  .stat-card:first-child { grid-column: 1 / -1; min-height: 110px; }
  .stat-card strong { font-size: 2.2rem; }
  .stat-label { font-size: .67rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading-actions { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .status-filter { flex: 1; }
  .status-filter select { width: 100%; }
  .result-count { margin-left: 0; }
  .application-card { grid-template-columns: 1fr; gap: 1.1rem; }
  .criterion-copy small { max-width: none; }
  .application-status { grid-column: auto; }
  .form-section { padding: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .page-heading h1 { font-size: 2.2rem; }
  .detail-heading { flex-direction: column; gap: .6rem; }
  .detail-heading h1 { font-size: 2.2rem; }
  .detail-heading > .status-badge { margin-top: 0; }
  .detail-criteria { grid-template-columns: 1fr; }
  .source-list, .detail-sidebar { grid-template-columns: 1fr; }
  .integration-hint { grid-column: auto; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .panel-heading > span { text-align: left; }
  .timeline-content > div { flex-direction: column; gap: .25rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1.2rem; }
  .footer-meta { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: .6rem; }
  .detail-topline { flex-direction: column; gap: .6rem; }
  .detail-topline-actions { justify-content: flex-start; }
  .login-layout { padding-block: 1.25rem; }
  .login-card-body { padding: 1.2rem 1.25rem 1.35rem; }
  .login-window-bar code { font-size: .55rem; }
  .login-card-footer { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
