:root {
  color: #163247;
  background: #edf4f8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 183, 67, .22), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(243, 112, 33, .17), transparent 30%),
    linear-gradient(145deg, #edf5fa 0%, #f9fbfd 52%, #e9f2f7 100%);
}

.shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.brand-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  padding: 26px 30px;
  border-bottom: 5px solid #70b743;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(116deg, #052d4a 0%, #075b91 62%, #0b7bb9 100%);
  box-shadow: 0 24px 55px rgba(10, 56, 87, .22);
}

.brand-panel img { width: 190px; max-height: 72px; object-fit: contain; }
.brand-panel h1 { margin: 4px 0 8px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.035em; }
.brand-panel p { max-width: 650px; margin: 0; color: #d9edf9; line-height: 1.5; }
.eyebrow, .section-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: #bce9ff; }

.card, .session-bar {
  border: 1px solid #d1e0e9;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(18, 67, 96, .1);
}

.card { width: min(480px, 100%); margin: 0 auto; padding: 30px; }
.card h2 { margin: 5px 0 7px; font-size: 25px; }
.section-label { color: #0872b9; }
.muted { margin: 0 0 22px; color: #607684; }
.status-card { display: flex; align-items: center; justify-content: center; gap: 12px; }

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #c8dce8;
  border-top-color: #0872b9;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

form { display: grid; gap: 15px; }
label { display: grid; gap: 6px; color: #526978; font-size: 13px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfcfd9;
  border-radius: 9px;
  color: #163247;
  background: #fff;
  font: inherit;
}
input:focus, select:focus { outline: 3px solid rgba(8, 114, 185, .16); border-color: #0872b9; }

button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(110deg, #07578b, #0879ba);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
button.secondary { border: 1px solid #bed0dc; color: #284a60; background: #fff; }
.form-status { min-height: 20px; margin: 0; color: #b42318; font-size: 13px; }

.portal { display: grid; gap: 20px; }
.session-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.session-bar div { display: grid; gap: 2px; }
.session-bar span { color: #687d8b; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.session-bar small { color: #607684; }

.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 245px;
  padding: 28px;
  border: 1px solid #d1e0e9;
  border-radius: 17px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(18, 67, 96, .09);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(18, 67, 96, .15); }
.tool-card h2 { margin: 4px 0 9px; font-size: 25px; }
.tool-card p { margin: 0 0 22px; color: #607684; line-height: 1.55; }
.tool-card small { color: #0872b9; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tool-card b { color: #075b91; }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #fff; font-size: 22px; font-weight: 900; }
.courses .tool-icon { background: linear-gradient(135deg, #4f9d2d, #76bb43); }
.licenses .tool-icon { background: linear-gradient(135deg, #df5c12, #f58a3e); }

@media (max-width: 760px) {
  .brand-panel { align-items: flex-start; flex-direction: column; }
  .brand-panel img { width: 165px; }
  .tools-grid { grid-template-columns: 1fr; }
  .session-bar { align-items: stretch; flex-direction: column; }
  .signed-user { align-items: flex-start; }
}
