:root {
  --primary: #126658; --secondary: #126658; --accent: #126658;
  --primary-fg: #fff; --body-fg: #192c30; --body-bg: #f6f8f7;
  --body-quiet-color: #627276; --header-color: #192c30;
  --header-branding-color: #192c30; --header-bg: #fff;
  --header-link-color: #126658; --breadcrumbs-fg: #415c58;
  --breadcrumbs-bg: #edf4f1; --link-fg: #126658;
  --link-hover-color: #0a5046; --link-selected-fg: #126658;
  --button-bg: #126658; --button-hover-bg: #0a5046;
  --default-button-bg: #126658; --default-button-hover-bg: #0a5046;
  --border-color: #dfe7e5; --hairline-color: #dfe7e5;
  --selected-row: #eaf5f1; color-scheme: light;
}
html, body { min-width: 320px; overflow-x: auto; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Myanmar", sans-serif !important; background: #f6f8f7 !important; color: #192c30; }
#header { min-height: 76px; flex-shrink: 0 !important; padding: 14px max(20px, calc((100vw - 920px) / 2)); gap: 20px; border-bottom: 1px solid #dfe7e5; box-sizing: border-box; }
#branding h1 { margin: 0 !important; font-size: 1.05rem !important; line-height: 1.2 !important; }
#branding h1 a { display: flex; align-items: center; gap: 11px; color: #192c30 !important; text-decoration: none; }
#branding img { width: 40px; height: 40px; }
#branding small { display: block; margin-top: 3px; color: #627276; font-size: .72rem; font-weight: 500; }
#user-tools { color: #627276; font-size: .78rem; line-height: 1.8; }
#user-tools a { color: #126658 !important; }
.dashboard #content-main .module td a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 9px; border: 1px solid #c8dcd5; border-radius: 6px; background: #f4f9f7; text-decoration: none; font-weight: 650; }
#main { display: block !important; }
#nav-sidebar, .toggle-nav-sidebar, #content-related { display: none !important; }
#content-start { width: min(100% - 40px, 920px); margin: 34px auto 80px !important; padding: 0 !important; float: none !important; }
#content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; }
#content h1 { margin-bottom: 23px; color: #192c30; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.04em; }
#content h2 { color: #192c30; }
.breadcrumbs { padding: 12px max(20px, calc((100vw - 920px) / 2)); border-bottom: 1px solid #dfe7e5; }
.module, .inline-group, #changelist, .dashboard #content-main, .login #content-main {
  width: 100% !important; max-width: none !important; box-sizing: border-box !important;
  background: #fff !important; border: 1px solid #dfe7e5 !important;
  border-radius: 12px !important; box-shadow: none !important; overflow: hidden;
}
.module h2, .module caption, .inline-group h2 { padding: 14px 18px !important; color: #192c30 !important; background: #f4f7f5 !important; font-size: .94rem !important; }
.module table { width: 100%; }
.module th, .module td { padding: 13px 16px !important; }
.dashboard #content-main { float: none !important; }
.dashboard #content-main .module { margin: 0 !important; border: 0 !important; border-bottom: 1px solid #dfe7e5 !important; border-radius: 0 !important; }
.dashboard #content-main .module:last-child { border-bottom: 0 !important; }
.dashboard #content-main .module h2 { margin: 0 !important; }
.admin-section-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #dfe7e5; text-decoration: none; }
.admin-section-list a:last-child { border-bottom: 0; }
.admin-section-list a:hover { background: #f4f9f7; }
.admin-section-list strong { color: #126658; font-size: 1rem; }
.admin-section-list span { color: #627276; font-size: .87rem; }
input, textarea, select { max-width: 100%; box-sizing: border-box; border-color: #bfcfc9 !important; border-radius: 7px !important; font: inherit !important; }
:focus-visible { outline: 3px solid #e1ab46 !important; outline-offset: 2px; }
.form-row { padding: 17px 20px !important; overflow: visible !important; }
.form-row label { color: #192c30; }
.aligned .form-row > div { width: 100%; box-sizing: border-box; }
.aligned .form-row input:not([type="checkbox"]), .aligned .form-row select, .aligned .form-row textarea { width: min(100%, 610px) !important; max-width: 100% !important; }
.form-row .help { color: #627276 !important; }
.submit-row { display: grid !important; gap: 10px; padding: 18px !important; margin-top: 18px !important; background: #fff !important; border: 1px solid #dfe7e5 !important; border-radius: 12px !important; }
.submit-row input, .submit-row a { width: 100% !important; min-height: 44px !important; margin: 0 !important; box-sizing: border-box !important; float: none !important; text-align: center !important; border-radius: 7px !important; font-weight: 700 !important; }
.submit-row .deletelink-box { width: 100% !important; margin: 0 !important; float: none !important; }
.submit-row a.deletelink { display: block; color: #fff !important; background: #a63f42 !important; }
.button, input[type="submit"], button[type="submit"], .object-tools a { border-radius: 7px !important; min-height: 42px !important; font-weight: 700 !important; }
.object-tools { float: none !important; display: flex !important; gap: 9px; flex-wrap: wrap; margin: 0 0 18px !important; padding: 0 !important; }
.object-tools li { height: auto !important; margin: 0 !important; flex: 1 1 200px; }
.object-tools a { display: flex !important; justify-content: center; align-items: center; width: 100%; box-sizing: border-box; background: #126658 !important; color: #fff !important; }
#changelist { display: block !important; padding: 16px !important; overflow-x: auto !important; }
#changelist .changelist-form-container { float: none !important; width: 100% !important; }
#changelist #changelist-filter { position: static !important; float: none !important; width: 100% !important; margin: 16px 0 !important; border: 1px solid #dfe7e5; border-radius: 8px; }
#changelist-form .results { overflow-x: auto !important; }
#result_list { min-width: 620px; }
#toolbar { background: #f4f7f5 !important; border-radius: 8px; }
#changelist-search { display: flex; flex-wrap: wrap; gap: 8px; }
#changelist-search input { max-width: 100%; }
.login #container { width: min(460px, calc(100% - 32px)) !important; min-width: 0 !important; box-sizing: border-box !important; }
.login #content-start, .login #content, .login #content-main { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
.login #content-start { margin: 28px auto 50px !important; }
.login #content-main { margin: 0 !important; padding: 20px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.login .form-row { padding: 11px 0 !important; }
.login .form-row input { width: 100% !important; box-sizing: border-box !important; }
.login .submit-row { border: 0 !important; margin-top: 12px !important; padding: 0 !important; }
.password-reset-link { margin-top: 10px; text-align: center; }
.admin-notice-modal { width: min(92vw, 460px); max-height: 75vh; padding: 30px; overflow: auto; border: 1px solid #dfe7e5; border-radius: 14px; background: #fff; color: #192c30; text-align: center; box-shadow: 0 20px 70px #152b3555; }
.admin-notice-modal::backdrop { background: #0b202e80; }
.admin-notice-modal h2 { margin: 0 0 12px; color: #192c30 !important; }
.admin-notice-modal p { margin: 0 0 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-notice-modal button { min-width: 140px; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 7px; background: #126658; color: #fff; cursor: pointer; }
@media (max-width: 700px) {
  #header { height: auto !important; align-items: flex-start; flex-direction: column; padding: 13px 17px !important; gap: 8px; }
  #user-tools { position: static !important; width: 100%; margin: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal !important; }
  .breadcrumbs { padding-inline: 17px; }
  #content-start { width: min(100% - 30px, 920px); margin-top: 23px !important; }
  .module th, .module td { padding: 10px !important; }
  .form-row { padding: 15px !important; }
  .login #content-main { padding: 18px !important; }
  .admin-section-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
}
