:root {
  --primary: #10243f;
  --secondary: #173354;
  --accent: #cf0a4e;
  --header-color: #fff;
  --breadcrumbs-bg: #fff;
  --breadcrumbs-link-fg: #10243f;
  --body-bg: #f4f7fb;
  --body-fg: #26354a;
  --link-fg: #b90946;
  --link-hover-color: #cf0a4e;
  --hairline-color: #e2e9f2;
  --border-color: #dbe4ef;
}

* { box-sizing: border-box; }
body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f7fb; }
a:link, a:visited { transition: color .16s ease, background .16s ease, border .16s ease, transform .16s ease; }

#header {
  min-height: 76px;
  padding: 12px clamp(16px, 3vw, 38px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, #10243f 0%, #081628 100%);
  box-shadow: 0 12px 30px rgba(8,22,40,.16);
}
#branding { display: flex; align-items: center; }
.wielebny-admin-brand { display: flex; align-items: center; gap: 12px; }
.wielebny-admin-brand img { width: 48px; height: 48px; padding: 3px; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.18); }
.wielebny-admin-brand span { display: flex; flex-direction: column; }
.wielebny-admin-brand strong { color: #fff; font-size: 17px; letter-spacing: .09em; }
.wielebny-admin-brand small { margin-top: 4px; color: #99adc5; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

#user-tools { color: #9db0c6; font-size: 10px; letter-spacing: .02em; }
#user-tools a { padding: 6px 8px; border-radius: 7px; color: #e5edf6; }
#user-tools a:hover { color: #fff; background: rgba(255,255,255,.09); }
.command-center-link { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255,255,255,.27); border-radius: 10px; color: #fff !important; font-size: 10px; font-weight: 800; }
.command-center-link:hover { border-color: #cf0a4e; background: #cf0a4e; transform: translateY(-1px); }

div.breadcrumbs { min-height: 46px; padding: 15px clamp(18px, 3vw, 38px); border-bottom: 1px solid #e3eaf3; color: #7b8798; background: #fff; font-size: 10px; }
div.breadcrumbs a { color: #a90841; font-weight: 750; }
#content { max-width: 1800px; padding: clamp(20px, 3vw, 38px); margin: 0 auto; }
#content h1 { color: #10243f; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.035em; }

.admin-welcome {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(207,10,78,.32), transparent 28%), linear-gradient(135deg, #10243f, #071525);
  box-shadow: 0 18px 45px rgba(16,36,63,.17);
}
.admin-welcome::after { content: ""; position: absolute; right: -105px; bottom: -190px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.admin-welcome > div:first-child { position: relative; z-index: 2; max-width: 760px; }
.admin-kicker { color: #e881a5; font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.admin-welcome h1 { margin: 11px 0 12px !important; color: #fff !important; font-size: clamp(28px, 3.5vw, 46px) !important; line-height: 1.08; }
.admin-welcome p { max-width: 680px; margin: 0; color: #bfd0e2; font-size: 13px; line-height: 1.7; }
.admin-welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.admin-primary-action, .admin-secondary-action { display: inline-flex; min-height: 42px; align-items: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 10px; font-weight: 850; }
.admin-primary-action:link, .admin-primary-action:visited { color: #fff; background: #cf0a4e; box-shadow: 0 9px 24px rgba(207,10,78,.28); }
.admin-primary-action:hover { background: #aa083f; transform: translateY(-1px); }
.admin-secondary-action:link, .admin-secondary-action:visited { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.05); }
.admin-secondary-action:hover { background: rgba(255,255,255,.12); }
.admin-welcome-mark { position: relative; z-index: 1; width: 150px; height: 150px; display: grid; flex: 0 0 150px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 36px; background: rgba(255,255,255,.07); transform: rotate(5deg); }
.admin-welcome-mark span { color: #fff; font-size: 72px; font-weight: 950; line-height: 1; }
.admin-welcome-mark small { position: absolute; bottom: 19px; color: #e881a5; font-size: 7px; font-weight: 850; letter-spacing: .25em; }

.admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 2px 16px; }
.admin-section-heading h2 { margin: 5px 0 0; color: #10243f; font-size: 20px; letter-spacing: -.025em; }
.admin-module-count { padding: 7px 10px; border-radius: 8px; color: #69768a; background: #e9eef5; font-size: 9px; font-weight: 800; }

.admin-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.admin-app-grid .module { margin: 0; }
.module, .inline-group {
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(16,36,63,.055);
}
.module caption, .module h2, .inline-group h2 { padding: 14px 17px; color: #fff; background: linear-gradient(135deg, #10243f, #173b62); font-size: 11px; font-weight: 850; letter-spacing: .02em; }
.module caption a:link, .module caption a:visited { color: #fff; }
.module table { border-collapse: collapse; }
.module th, .module td { padding: 12px 15px; border-bottom: 1px solid #edf1f6; }
.module tr:last-child th, .module tr:last-child td { border-bottom: 0; }
.module tr:hover th, .module tr:hover td { background: #fbfcfe; }
.module th a { color: #24364e; font-weight: 760; }
.addlink, .changelink, .viewlink { border-radius: 7px; font-size: 9px; font-weight: 750; }

.admin-help-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px; margin-top: 18px; border: 1px solid #ecd1da; border-radius: 14px; background: linear-gradient(135deg, #fff, #fff5f8); }
.admin-help-strip div { display: flex; flex-direction: column; }
.admin-help-strip strong { color: #10243f; font-size: 12px; }
.admin-help-strip span { margin-top: 4px; color: #728096; font-size: 10px; }
.admin-help-strip a { color: #cf0a4e; font-size: 10px; font-weight: 850; white-space: nowrap; }

#changelist { padding: 0; }
#changelist .changelist-form-container, #changelist-filter { border: 1px solid #dfe7f1; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(16,36,63,.045); }
#changelist-filter { overflow: hidden; }
#changelist-filter h2 { padding: 13px 15px; border-radius: 0; background: #10243f; }
#changelist-filter h3 { color: #526176; font-size: 10px; }
#changelist table thead th { padding: 12px; color: #758297; background: #f7f9fc; font-size: 9px; }
#changelist table tbody td, #changelist table tbody th { padding: 11px 12px; border-color: #edf1f6; }
#changelist table tbody tr:hover td, #changelist table tbody tr:hover th { background: #fff8fa; }
#toolbar { padding: 13px !important; border: 0 !important; border-bottom: 1px solid #e7edf5 !important; background: #fff !important; }
#toolbar form input[type="text"] { min-height: 38px; }
.paginator { border-top: 1px solid #e7edf5 !important; background: #fff !important; }

input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel], textarea, select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d5deea;
  border-radius: 9px;
  color: #26364d;
  background: #fff;
  outline: none;
}
textarea { min-height: 90px; }
input:focus, textarea:focus, select:focus { border-color: #cf0a4e; box-shadow: 0 0 0 3px rgba(207,10,78,.1); }
.form-row { padding: 14px 16px; border-color: #edf1f6; }
.form-row label { color: #435269; font-size: 10px; font-weight: 760; }
.help, p.help, form p.help { color: #8591a2; font-size: 9px; }

.button, input[type=submit], input[type=button], .submit-row input, a.button { min-height: 36px; padding: 8px 13px; border: 0; border-radius: 9px; color: #fff; background: #cf0a4e; font-size: 10px; font-weight: 800; }
.button:hover, input[type=submit]:hover, input[type=button]:hover, .submit-row input:hover { background: #aa083f; }
.button.default, input[type=submit].default, .submit-row input.default { background: #10243f; }
.button.default:hover, input[type=submit].default:hover { background: #173b62; }
.submit-row { padding: 13px; border: 1px solid #dfe7f1; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(16,36,63,.05); }
.object-tools a:link, .object-tools a:visited { min-height: 36px; display: inline-flex; align-items: center; border-radius: 9px; background: #10243f; font-size: 9px; font-weight: 800; }
.object-tools a:hover { background: #cf0a4e; }

.login { background: radial-gradient(circle at 80% 10%, rgba(207,10,78,.12), transparent 30%), #f4f7fb; }
.login #container { width: min(430px, calc(100% - 30px)); overflow: hidden; border: 1px solid #dfe7f1; border-radius: 20px; background: #fff; box-shadow: 0 20px 55px rgba(16,36,63,.14); }
.login #header { height: auto; justify-content: center; padding: 22px; }
.login #content { padding: 28px; }
.login .submit-row { padding: 0; border: 0; box-shadow: none; }

@media (max-width: 900px) {
  .admin-app-grid { grid-template-columns: 1fr; }
  .admin-welcome-mark { display: none; }
}
@media (max-width: 767px) {
  #header { min-height: 68px; padding: 9px 13px; }
  .wielebny-admin-brand img { width: 43px; height: 43px; }
  .command-center-link { display: none; }
  #content { padding: 16px; }
  .admin-welcome { min-height: 0; padding: 27px 21px; border-radius: 17px; }
  .admin-welcome h1 { font-size: 28px !important; }
  .admin-help-strip { align-items: flex-start; flex-direction: column; }
}
