:root { font-family: Arial, 'Malgun Gothic', sans-serif; color: #22282c; background: #f6f8f9; font-size: 14px; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
.access-gate { max-width: 640px; padding: 32px 24px; margin: 24px auto; }
.access-gate p { line-height: 1.8; }
.access-gate div { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
a { color: #176593; text-decoration: none; }
a:hover { text-decoration: underline; }
button,input,select,textarea { font: inherit; }
button { padding: 9px 14px; border: 1px solid #c6cfd3; border-radius: 5px; background: white; color: #252d31; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover:not(:disabled) { background: #eef3f5; }
button.primary { background: #176c56; border-color: #176c56; color: white; }
button.danger { color: #a12832; border-color: #dba7ac; }
:focus-visible { outline: 3px solid #79b9e2; outline-offset: 2px; }
.topbar { height: 88px; padding: 12px 28px; border-bottom: 1px solid #dce2e5; background: white; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #212b31; font-size: 22px; font-weight: bold; }
.brand img { flex: none; object-fit: contain; }
.brand small { display: block; font-size: 12px; font-weight: normal; margin-top: 4px; color: #616d75; }
.workspace { display: grid; grid-template-columns: 170px minmax(0,1fr); }
nav { padding: 24px 16px; background: white; border-right: 1px solid #dce2e5; }
nav a { display: block; padding: 12px; color: #37454c; }
main { padding: 28px 32px 60px; min-width: 0; max-width: 1500px; width: 100%; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 18px; margin: 0; }
.page-heading,.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
#status { margin: 18px 0; padding: 12px 14px; border-left: 3px solid #2976a3; background: #eaf3f8; line-height: 1.6; }
#status[data-error="true"] { border-color: #ba4b54; background: #fff0f1; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0; margin: 0; border-bottom: 1px solid #d5dde1; }
.metrics div { padding: 0 16px; border-right: 1px solid #d5dde1; }
.metrics div:first-child { padding-left: 0; }.metrics div:last-child { border: 0; }
dt { color: #63727a; font-size: 13px; }dd { margin: 8px 0 0; font-size: 26px; font-weight: bold; }
section { padding: 28px 0; border-bottom: 1px solid #d5dde1; scroll-margin-top: 20px; }
.table-scroll { overflow-x: auto; margin-top: 16px; background: white; border: 1px solid #dbe2e6; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 580px; }
th { font-size: 12px; color: #5e6b72; background: #f0f4f6; white-space: nowrap; }
th,td { padding: 13px 14px; border-bottom: 1px solid #e3e8ea; vertical-align: top; }
td { line-height: 1.6; max-width: 260px; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }.empty { text-align: center; color: #7b878e; padding: 32px; }
.badge { display: inline-block; padding: 2px 6px; font-size: 12px; background: #e9f2ed; color: #216348; white-space: nowrap; }
.badge.confirmed { background: #e6f1fa; color: #256690; }.badge.cancelled { background: #f4e8ea; color: #963a48; }
.search-label { margin-top: 18px; max-width: 380px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #4e5d65; }
input,select,textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #c7d2d8; border-radius: 4px; color: #202d34; background: white; }
textarea { resize: vertical; }
dialog { width: min(620px,calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #ccd6db; border-radius: 6px; color: #26343d; }
dialog::backdrop { background: #101a2473; }dialog h2 { margin-bottom: 22px; }dialog p { line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.span-all { grid-column: 1/-1; }.confirmation { flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 16px; line-height: 1.5; }.confirmation input { width: 18px; height: 18px; flex: none; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }.form-status { color: #a12832; margin: 12px 0 0; }
@media(max-width:700px) { .topbar { padding: 12px 16px; }.brand { font-size: 18px; }.brand img { width: 48px; height: 48px; }.workspace { display: block; }nav { display: flex; overflow-x: auto; padding: 8px; border: 0; border-bottom: 1px solid #dce2e5; }nav a { white-space: nowrap; padding: 10px; }main { padding: 22px 16px 40px; }.metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }.metrics div { padding-left: 0; border: 0; }h1 { font-size: 22px; }dialog { padding: 20px; }.form-grid { grid-template-columns: minmax(0,1fr); }.dialog-actions { flex-wrap: wrap; }.dialog-actions button { max-width: 100%; } }
