.account-main {
  background: #f5f7f3;
  min-height: 70vh;
  padding-bottom: 70px;
}
.account-main [hidden] {
  display: none !important;
}
.account-intro {
  padding-block: 45px 30px;
}
.account-intro h1 {
  font-size: 44px;
  letter-spacing: -1px;
}
.account-intro > p:last-child {
  color: var(--muted);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
.auth-copy {
  padding-top: 35px;
  max-width: 470px;
}
.auth-copy h2 {
  font-size: 34px;
}
.auth-copy p {
  color: var(--muted);
}
.account-demo-info {
  margin-top: 35px;
  padding: 20px;
  border-left: 3px solid var(--brand);
  background: #eaf1e9;
  font-size: 13px;
}
.account-card {
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  min-width: 0;
}
.account-card h2 {
  font-size: 28px;
}
.account-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-block: 17px;
}
.account-card input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  margin-top: 6px;
  background: white;
  color: var(--text);
}
.account-card small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.account-card .button {
  cursor: pointer;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
  padding-bottom: 15px;
}
.auth-tabs button,
.account-nav button {
  font: inherit;
  border: 0;
  background: transparent;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
}
.auth-tabs button[aria-pressed="true"],
.account-nav button[aria-pressed="true"] {
  background: #e9f1e9;
  color: var(--brand);
  font-weight: 700;
}
.account-text {
  background: none;
  border: 0;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  padding: 15px 0;
  display: block;
  font: inherit;
  font-size: 13px;
}
.dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
}
.account-nav {
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  overflow-wrap: anywhere;
}
.account-nav button {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 6px;
}
.account-nav p {
  font-size: 13px;
}
.account-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}
.account-shortcuts button {
  font: inherit;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f6f8f4;
  cursor: pointer;
}
.account-shortcuts strong,
.account-shortcuts span {
  display: block;
}
.account-shortcuts span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.account-empty {
  padding-block: 30px;
}
.account-empty p {
  max-width: 550px;
  color: var(--muted);
}
.account-card .muted {
  font-size: 13px;
  color: var(--muted);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #b68b25;
  outline-offset: 3px;
}
@media (max-width: 950px) {
  .auth-layout {
    gap: 35px;
  }
  .dashboard {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .auth-layout,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .auth-copy {
    padding: 0;
  }
  .auth-copy h2 {
    font-size: 28px;
  }
  .auth-copy h2 br {
    display: none;
  }
  .account-card {
    padding: 24px;
  }
  .account-shortcuts {
    grid-template-columns: 1fr;
  }
  .account-card input {
    font-size: 16px;
  }
  .account-intro h1 {
    font-size: 36px;
  }
}
/* Dopracowany wygląd konta klienta */
.account-main {
  background: #f5f7f4;
  padding-bottom: 85px;
}
.account-intro {
  padding-block: 48px 34px;
}
.account-intro h1 {
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 12px;
}
.account-intro > p:last-child {
  margin: 0;
  font-size: 16px;
}
.auth-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 60px;
  align-items: stretch;
}
.auth-copy {
  max-width: none;
  padding: 48px 40px;
  background: linear-gradient(145deg, #19362a, #2c5945);
  color: white;
  border-radius: 14px;
}
.auth-copy h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.auth-copy p {
  color: #d5e2d9;
  line-height: 1.8;
}
.auth-copy .text-link {
  color: #fff;
  display: inline-block;
  margin-top: 12px;
}
.account-demo-info {
  background: #ffffff0a;
  color: #d5e2d9;
  border-left-color: #a9c6b3;
  border-radius: 0 7px 7px 0;
  margin-top: 32px;
  font-size: 12px;
}
.account-card {
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 8px 30px #16372605;
}
.auth-layout > .account-card {
  max-width: 580px;
  width: 100%;
}
.auth-tabs {
  background: #f0f4ef;
  padding: 5px;
  border: 0;
  border-radius: 9px;
  gap: 5px;
  margin-bottom: 30px;
}
.auth-tabs button {
  flex: 1;
  padding: 11px 16px;
  font-size: 14px;
}
.auth-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--green, #285b47);
  box-shadow: 0 2px 6px #1729230d;
}
.account-card h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.account-card label {
  color: #34473c;
  font-size: 13px;
  margin-block: 19px;
}
.account-card input {
  min-height: 48px;
  border-color: #dbe4dc;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.account-card input:focus {
  border-color: var(--brand);
}
.account-card small {
  line-height: 1.6;
  margin-top: 8px;
}
.auth-layout form > .button {
  width: 100%;
  min-height: 49px;
  margin-top: 7px;
}
.account-text {
  margin: 4px auto 0;
  font-size: 13px;
  text-underline-offset: 4px;
}
.dashboard {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.account-nav {
  padding: 24px 18px;
  border-radius: 14px;
}
.account-nav > strong,
.account-nav > p {
  margin-inline: 12px;
}
.account-nav > strong {
  display: block;
  font-size: 17px;
}
.account-nav > p.eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.account-nav > p.muted {
  font-size: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.account-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 7px;
}
.account-nav button::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #b8c6bb;
}
.account-nav button[aria-pressed="true"]::before {
  background: var(--brand);
}
.account-nav #logout {
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin-top: 18px;
  padding-top: 19px;
  color: var(--muted);
  font-size: 12px;
}
.account-nav #logout::before {
  display: none;
}
.dashboard > .account-card {
  min-height: 390px;
}
.account-shortcuts {
  gap: 16px;
  margin: 28px 0;
}
.account-shortcuts button {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.account-shortcuts button:hover {
  border-color: #94b19d;
  background: #f7faf6;
}
.account-shortcuts strong {
  font-size: 16px;
  color: var(--brand);
}
.account-empty {
  padding: 32px 25px;
  margin-top: 22px;
  border: 1px dashed #cad8cc;
  background: #f8faf7;
  border-radius: 10px;
}
.account-empty h3 {
  font-size: 21px;
}
.account-empty p {
  font-size: 14px;
  line-height: 1.8;
}
#profile-form h3 {
  padding-top: 25px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  font-size: 18px;
}
#profile-result,
#reset-result,
#auth-status {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brand);
  margin-top: 15px;
}
#profile-result:empty,
#reset-result:empty,
#auth-status:empty {
  display: none;
}
@media (max-width: 950px) {
  .auth-layout {
    gap: 28px;
  }
  .auth-copy {
    padding: 32px 28px;
  }
  .account-card {
    padding: 28px;
  }
  .dashboard {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .account-intro {
    padding-block: 32px 24px;
  }
  .auth-layout,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .auth-copy {
    padding: 26px;
  }
  .auth-copy h2 br {
    display: none;
  }
  .account-demo-info {
    margin-top: 20px;
    padding: 12px 16px;
  }
  .auth-layout > .account-card {
    max-width: none;
  }
  .account-card {
    padding: 24px;
  }
  .account-nav {
    padding: 20px 15px;
  }
  .account-nav button {
    min-height: 44px;
  }
  .dashboard > .account-card {
    min-height: 0;
  }
  .account-shortcuts {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-card input,
  .account-shortcuts button {
    transition: none;
  }
}
.account-state-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: #eaf2e9;
  color: var(--brand);
  font-size: 28px;
}
.activation-demo-box {
  background: #f4f7f1;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-block: 24px;
}
.activation-demo-box p {
  font-size: 13px;
  color: var(--muted);
}
#activation-email {
  overflow-wrap: anywhere;
}
#activation-status {
  font-size: 13px;
  color: var(--brand);
}
.password-wrap {
  position: relative;
}
.account-card .password-wrap input {
  padding-right: 70px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding-inline: 8px;
}
#new-password-status {
  color: var(--brand);
  font-size: 13px;
}
/* Konto serwerowe — historia oraz informacja o połączeniu. */
[hidden] { display:none !important; }
.account-connection { padding-block:12px; color:#64765b; font-size:13px; overflow-wrap:anywhere; }
.customer-order { margin-block:14px; border:1px solid #dae5d3; border-radius:8px; padding:17px; overflow-wrap:anywhere; }
.customer-order summary { cursor:pointer; display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; font-size:13px; }
.customer-order summary span { color:#74856b; }
.customer-order p { white-space:pre-wrap; font-size:13px; }
.customer-order li { margin-block:10px; font-size:13px; }
#auth-status,#profile-result,#password-result { overflow-wrap:anywhere; white-space:pre-line; }
@media (max-width:550px) { .customer-order {padding:12px;} }

/* Uprawnienia ustala serwer; ukryty link nie zajmuje miejsca. */
#staff-panel-link[hidden] { display: none !important; }
#staff-panel-link { margin-block: 12px; text-align: center; }
