/* WSM Panel theme on top of Wagtail admin: calm graphite + teal, Inter, more air, fewer borders. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* sidebar / primary: deep graphite */
  --w-color-primary-hue: 210; --w-color-primary-saturation: 20%; --w-color-primary-lightness: 12%;
  /* buttons, links, focus: teal */
  --w-color-secondary-hue: 175; --w-color-secondary-saturation: 100%; --w-color-secondary-lightness: 30%;
  --w-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wsm-radius: 14px;
}

body { -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }

/* sidebar: quieter items, clear active state */
.sidebar { --w-color-text-label-menus-default: #c7d0d8; }
.sidebar-menu-item__link, .sidebar-sub-menu-trigger-icon { border-radius: 10px; }
.sidebar-menu-item__link { margin: 1px 10px; padding-block: 10px !important; }
.sidebar-menu-item--active > .sidebar-menu-item__link { background: hsl(175 100% 30% / .22) !important; box-shadow: inset 3px 0 0 #00d1c1; }
.sidebar-logo, .sidebar-header { padding-block: 22px 18px; }
.wsm-logo { display: flex; align-items: center; justify-content: center; gap: 10px; color: #f3f6f8; text-decoration: none; }
.wsm-logo svg { width: 46px; height: 46px; flex: none; }
.sidebar--slim .wsm-logo span { display: none; }
.wsm-logo span { font: 700 17px/1.1 var(--w-font-sans); letter-spacing: .02em; }
.wsm-logo small { display: block; font-weight: 500; font-size: 11.5px; opacity: .6; letter-spacing: .04em; }

/* calmer content: softer cards and buttons */
.button { border-radius: 999px; font-weight: 600; }
.w-panel, .listing, .w-dashboard section.panel { border-radius: var(--wsm-radius); }
.w-header, header.w-header { border-bottom-color: transparent; }
.help-block, .help-info { border-radius: 10px; }

/* login */
body.login { min-height: 100vh; background: radial-gradient(900px 600px at 80% -10%, rgba(0,209,193,.20), transparent 60%), #0f1418 !important; }
body.login .content-wrapper { max-width: 420px; margin: 9vh auto 40px; padding: 36px 34px 30px !important; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
body.login h1 { font: 700 26px/1.2 var(--w-font-sans); margin: 8px 0 22px; color: #12171c; text-align: left; }
body.login .wsm-login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: #12171c; }
body.login .wsm-login-logo svg { width: 44px; height: 44px; }
body.login .wsm-login-logo b { font-size: 16px; } body.login .wsm-login-logo small { display: block; color: #66707a; font-size: 13px; font-weight: 500; }
body.login .login-logo { display: none; }
body.login .form-actions .button { width: 100%; justify-content: center; }
body.login .wsm-login-foot { margin-top: 18px; color: #66707a; font-size: 13px; text-align: center; }

/* dashboard */
.wsm-dash { display: grid; gap: 28px; margin-top: 8px; }
.wsm-hello { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--w-font-sans); margin: 0; }
.wsm-sub { color: var(--w-color-text-meta); margin: 6px 0 0; font-size: 16px; }
.wsm-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wsm-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--wsm-radius); text-decoration: none !important;
  color: var(--w-color-text-context) !important; background: var(--w-color-surface-page); border: 1px solid var(--w-color-border-furniture);
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.wsm-tile:hover { transform: translateY(-2px); border-color: hsl(175 100% 30%); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.wsm-tile .ic { font-size: 22px; line-height: 1; }
.wsm-tile b { font-size: 16px; } .wsm-tile span { color: var(--w-color-text-meta); font-size: 13.5px; }
.wsm-tile .badge { align-self: flex-start; margin-top: auto; background: hsl(175 100% 30%); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.wsm-tile.primary { background: linear-gradient(140deg, hsl(175 100% 30%), hsl(190 80% 34%)); border-color: transparent; color: #fff !important; }
.wsm-tile.primary span { color: rgba(255,255,255,.85); }
.wsm-box { border: 1px solid var(--w-color-border-furniture); border-radius: var(--wsm-radius); padding: 20px 22px; background: var(--w-color-surface-page); }
.wsm-box h2 { font-size: 18px; margin: 0 0 12px; }
.wsm-sites { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wsm-sites th { text-align: left; font-weight: 600; color: var(--w-color-text-meta); font-size: 12.5px; padding: 6px 8px; }
.wsm-sites td { padding: 10px 8px; border-top: 1px solid var(--w-color-border-furniture); vertical-align: middle; }
.wsm-sites a { font-weight: 600; }
.wsm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #94a3b8; }
.wsm-dot.ok { background: #16a34a; } .wsm-dot.err { background: #dc2626; }
.wsm-two { display: grid; gap: 20px; } @media (min-width: 1100px) { .wsm-two { grid-template-columns: 3fr 2fr; align-items: start; } }
.wsm-leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wsm-leads li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--w-color-border-furniture); }
.wsm-leads li:last-child { border-bottom: 0; } .wsm-leads small { color: var(--w-color-text-meta); }
.wsm-search { max-width: 520px; }
body.login .w-field__wrapper { margin-bottom: 16px; }
body.login .w-field__label { display: block; font-weight: 600; margin-bottom: 6px; color: #12171c; }
body.login input[type=text], body.login input[type=password] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9e0e6; font: inherit; }
body.login input:focus { outline: 2px solid hsl(175 100% 30%); outline-offset: 1px; }
