.a2-portal {
  --portal-bg: #0c1316;
  --portal-panel: #111b1f;
  --portal-line: rgba(191,196,200,.18);
  --portal-teal: #1aa3ab;
  --portal-copper: #a97443;
  width: 100%;
  padding: clamp(34px, 6vw, 90px) clamp(18px, 4vw, 72px);
  color: #f2f5f6;
  background: #080d10;
}
.a2-portal * { box-sizing: border-box; }
.a2p-kicker { margin: 0 0 10px; color: var(--portal-teal); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.a2-portal h1, .a2-portal h2, .a2-portal h3 { margin-top: 0; color: #f5f7f8; }
.a2-portal h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.a2-portal h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.a2p-auth-intro { max-width: 760px; margin-bottom: 40px; }
.a2p-auth-intro > p:last-child, .a2p-toolbar p { color: #9eaaaf; }
.a2p-auth-grid, .a2p-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.a2p-panel { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--portal-line); background: var(--portal-panel); }
.a2p-panel label { display: block; margin: 18px 0; color: #cdd4d6; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.a2p-panel input, .a2p-panel textarea, .a2p-panel select {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  border: 1px solid var(--portal-line); border-radius: 3px;
  outline: none; color: #fff; background: #080d10;
}
.a2p-panel input:focus, .a2p-panel textarea:focus { border-color: var(--portal-teal); }
.a2p-panel input[type="file"] { padding: 10px; }
.a2p-panel button, .a2p-logout, .a2p-list-item > a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 19px; border: 1px solid var(--portal-teal);
  border-radius: 3px; color: #7cd5d9; background: rgba(11,79,84,.12);
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
}
.a2p-panel button:hover, .a2p-logout:hover, .a2p-list-item > a:hover { color: #fff; background: #0b4f54; }
.a2p-small { color: #879399; font-size: 12px; }
.a2p-small a { color: #74cbd0; }
.a2p-notice { margin-bottom: 24px; padding: 14px 18px; border: 1px solid; }
.a2p-notice.error { color: #ffc1b8; border-color: #8d463d; background: rgba(141,70,61,.12); }
.a2p-notice.success { color: #a8e7cc; border-color: #337f69; background: rgba(51,127,105,.12); }
.a2p-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.a2p-toolbar h1 { margin-bottom: 4px; }
.a2p-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--portal-line); }
.a2p-stats > div { padding: 25px; border-right: 1px solid var(--portal-line); background: var(--portal-panel); }
.a2p-stats > div:last-child { border-right: 0; }
.a2p-stats strong { display: block; color: #fff; font-size: 2rem; }
.a2p-stats span { color: #8f9ba0; font-size: 13px; }
.a2p-section { margin-top: clamp(60px, 7vw, 100px); }
.a2p-section-head { margin-bottom: 26px; }
.a2p-section-head h2 { margin-bottom: 0; }
.a2p-list, .a2p-thread { display: grid; gap: 12px; }
.a2p-list-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--portal-line); }
.a2p-list-item strong, .a2p-list-item span { display: block; }
.a2p-list-item span { margin-top: 4px; color: #839095; font-size: 12px; }
.a2p-list-item p { margin-bottom: 0; color: #aeb7ba; font-size: 14px; }
.a2p-list-item > a { min-height: 38px; align-self: center; }
.a2p-empty { color: #8f9ba0; }
.a2p-message { max-width: 86%; padding: 18px; border: 1px solid var(--portal-line); background: #0b1114; }
.a2p-message.client { margin-left: auto; border-color: rgba(169,116,67,.42); }
.a2p-message.admin { border-color: rgba(26,163,171,.45); }
.a2p-message span, .a2p-message strong { display: block; }
.a2p-message span { margin-bottom: 6px; color: #819095; font-size: 11px; text-transform: uppercase; }
.a2p-message p { margin-bottom: 0; color: #c5cccf; }
.a2p-services { display: grid; gap: 18px; }
.a2p-service { padding: clamp(25px, 4vw, 46px); border: 1px solid var(--portal-line); background: var(--portal-panel); }
.a2p-service-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; color: #88959a; font-size: 12px; text-transform: uppercase; }
.a2p-service-meta .status { color: #68c7cc; }
.a2p-service h3 { font-size: 1.5rem; }
.a2p-service-body { color: #b8c1c4; }

@media (max-width: 820px) {
  .a2p-auth-grid, .a2p-two-col { grid-template-columns: 1fr; }
  .a2p-toolbar { flex-direction: column; }
}
@media (max-width: 540px) {
  .a2p-stats { grid-template-columns: 1fr; }
  .a2p-stats > div { border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .a2p-stats > div:last-child { border-bottom: 0; }
  .a2p-list-item { flex-direction: column; }
  .a2p-list-item > a { align-self: flex-start; }
  .a2p-message { max-width: 100%; }
}
