* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; background: #f6f7f8; color: #222; font: 16px system-ui, sans-serif; letter-spacing: 0; }
header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 24px; background: #fff; border-bottom: 1px solid #ccd1d5; font-size: 14px; line-height: 22px; }
h1 { font-size: 18px; line-height: 22px; margin: 0; }
header form { margin-left: auto; }
main { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px; }
.site-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; height: calc(26px + env(safe-area-inset-bottom, 0px)); padding: 0 16px env(safe-area-inset-bottom, 0px); display: flex; align-items: center; justify-content: center; border-top: 1px solid #ccd1d5; background: #fff; color: #505b62; text-align: center; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
h2 { font-size: 22px; } h3 { font-size: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #ccd1d5; }
a { color: #165c91; overflow-wrap: anywhere; }
a[aria-current] { font-weight: bold; color: #222; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
label { display: block; font-size: 14px; }
input, select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px; font: inherit; border: 1px solid #7c858b; border-radius: 4px; background: white; color: #222; }
button { min-height: 22px; padding: 4px 18px; border: 0; border-radius: 4px; background: #196647; color: white; font: 12px/14px system-ui, sans-serif; cursor: pointer; }
button:hover { background: #124c35; }
:focus-visible { outline: 3px solid #d99b14; outline-offset: 3px; }
.login { max-width: 400px; display: grid; gap: 18px; }
.password-field { position: relative; margin-top: 6px; }
.password-field input { margin-top: 0; padding-right: 48px; }
#password-toggle { position: absolute; right: 1px; top: 1px; width: 42px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; background: transparent; color: #505b62; }
#password-toggle[hidden] { display: none; }
#password-toggle:hover { background: #edf2ef; }
#password-toggle .password-eye-off { display: none; }
.password-field input[type="text"] ~ button .password-eye { display: none; }
.password-field input[type="text"] ~ button .password-eye-off { display: block; }
.error { color: #a21e24; }
.table-scroll { overflow-x: auto; margin-top: 32px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: white; }
th { white-space: nowrap; }
td small { display: block; margin-top: 6px; color: #505b62; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #ccd1d5; overflow-wrap: anywhere; }
.delete { margin-top: 12px; }
.delete input { display: inline; width: auto; min-height: 0; }
.delete button { background: #9c2830; margin-top: 8px; }
.heading-row, .node-actions, .resource-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.command { display: inline-block; padding: 4px 14px; border: 1px solid #196647; border-radius: 4px; color: #196647; text-decoration: none; font-size: 12px; line-height: 14px; }
.address-node { border-top: 1px solid #ccd1d5; padding: 20px 0; }
summary { cursor: pointer; padding: 8px 0; overflow-wrap: anywhere; }
summary strong { font-size: 18px; }
summary span { margin-left: 12px; color: #505b62; }
.node-actions { justify-content: flex-start; margin: 8px 0 16px; }
.facility-tree, .resource-tree { list-style: none; margin: 0 0 0 12px; padding: 0 0 0 20px; border-left: 2px solid #c4cec9; }
.facility-tree > li { padding: 8px 0 16px; }
.resource-tree > li { padding: 12px 0; border-bottom: 1px solid #e0e4e1; }
.resource-row div { min-width: 0; overflow-wrap: anywhere; }
.resource-row small { display: block; margin-top: 6px; color: #505b62; }
.empty-state { color: #505b62; }
.breadcrumb { overflow-wrap: anywhere; line-height: 1.7; }
.breadcrumb > a { display: inline-block; padding: 4px 14px; border: 1px solid #196647; border-radius: 4px; text-decoration: none; font-size: 12px; line-height: 14px; }
.address-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 20px 0; }
.address-selector form { min-width: 0; }
.address-selector button { margin-top: 8px; }
@media (max-width: 500px) { main { padding: 16px; } .facility-tree, .resource-tree { margin-left: 4px; padding-left: 12px; } summary span { display: block; margin-left: 0; } }
