@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f5f5f2;
  --surface: #fff;
  --ink: #1e2731;
  --muted: #87909a;
  --line: #e7e9e8;
  --gold: #b18a54;
  --gold2: #e9d5b8;
  --dark: #141923;
  --shadow: 0 20px 55px #1e27310c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.side {
  background: #171d27;
  color: #d8dee5;
  padding: 29px 17px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 14px 38px;
}
.brand img {
  width: 41px;
  height: 41px;
}
.brand strong {
  display: block;
  letter-spacing: 3px;
  font: 800 17px Manrope;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a2abb5;
}
.side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #77818d;
  margin: 19px 14px 11px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav button {
  border: 0;
  background: transparent;
  color: #aeb7c2;
  text-align: left;
  padding: 11px 15px;
  border-radius: 10px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 16px;
}
nav button span {
  font-size: 13px;
}
nav button.active,
nav button:hover {
  background: #303743;
  color: white;
}
nav button.active {
  box-shadow: inset 3px 0 #caa871;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid #323b46;
  padding: 23px 14px 0;
  color: #9fa8b3;
  font-size: 12px;
}
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7abf9a;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 5px #7abf9a20;
}
main {
  min-width: 0;
}
.top {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
}
#breadcrumbs {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #87909a;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #69737e;
  font-size: 12px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 35px;
  height: 35px;
}
.avatar {
  background: var(--dark);
  color: #dec193;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.page {
  max-width: 1400px;
  padding: 38px 45px 65px;
  margin: auto;
  animation: rise 0.45s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 31px;
  letter-spacing: -1.1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.sub {
  color: var(--muted);
  font-size: 14px;
}
.hero {
  background: linear-gradient(112deg, #202936, #131a24);
  border-radius: 20px;
  min-height: 230px;
  padding: 36px 38px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border: 1px solid #d8bb8745;
  border-radius: 50%;
  width: 360px;
  height: 360px;
  right: -50px;
  top: -165px;
}
.hero:after {
  width: 270px;
  height: 270px;
  right: -5px;
  top: -120px;
}
.hero .eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: #d6b787;
  font-weight: 700;
}
.hero h1 {
  font-size: 35px;
  line-height: 1.2;
  max-width: 520px;
  margin: 15px 0;
}
.hero p {
  color: #b9c2cf;
  margin-bottom: 20px;
}
.hero .mark {
  font-size: 155px;
  color: #d2ac7650;
  line-height: 1;
  z-index: 1;
  transform: rotate(-13deg);
}
.primary {
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  background: #b89260;
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.primary:hover {
  background: #a37d4e;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 15px;
  color: var(--ink);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 20px 23px;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font: 800 28px Manrope;
  margin: 8px 0 2px;
}
.stat em {
  font-style: normal;
  font-size: 11px;
  color: var(--gold);
}
.grid2 {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}
.panel {
  padding: 24px;
}
.panel-head,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.panel-head {
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
}
.link {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.item {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.item:first-of-type {
  border-top: 0;
}
.item strong {
  display: block;
  font-size: 13px;
}
.item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.item .grow {
  flex: 1;
  min-width: 0;
}
.item p {
  font-size: 12px;
  color: #69737e;
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.check {
  width: 18px;
  height: 18px;
  accent-color: #b89260;
  flex: none;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f3eee8;
  color: #9b774d;
}
.item-actions {
  display: flex;
  gap: 5px;
}
.item-actions button {
  border: 0;
  background: transparent;
  color: #9aa3aa;
  font-size: 13px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick button {
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  border-radius: 13px;
  padding: 18px;
  color: var(--ink);
}
.quick button b {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--gold);
}
.quick button small {
  color: var(--muted);
}
.page-head {
  margin-bottom: 25px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: 15px 0 20px;
}
.toolbar input,
.field,
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.toolbar input {
  flex: 1;
}
.toolbar input:focus,
input:focus,
textarea:focus {
  border-color: #b89260;
}
.list {
  padding: 4px 23px;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 45px 20px;
  font-size: 13px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.day {
  min-height: 85px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  font-size: 11px;
  background: var(--surface);
}
.day.muted {
  opacity: 0.4;
}
.day.today {
  border-color: var(--gold);
}
.day b {
  display: block;
  margin-bottom: 8px;
}
.dot {
  display: block;
  background: #f5ede1;
  color: #997346;
  padding: 3px 5px;
  border-radius: 4px;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbox {
  max-width: 820px;
}
.toolbox .card {
  padding: 25px;
  margin-top: 19px;
}
.toolbox textarea {
  width: 100%;
  resize: vertical;
}
.toolbox input,
.toolbox select {
  max-width: 100%;
}
.toolbox form {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.result {
  white-space: pre-wrap;
  padding: 15px;
  border-radius: 9px;
  background: #f5f5f2;
  min-height: 70px;
  font-size: 13px;
  margin-top: 15px;
  overflow: auto;
}
.mapframe {
  width: 100%;
  height: 430px;
  border: 0;
  border-radius: 12px;
  background: #e9ece9;
  margin-top: 17px;
}
.codearea {
  width: 100%;
  min-height: 250px;
  background: #161e29 !important;
  color: #dfe8ef !important;
  font: 13px/1.6 monospace;
  padding: 18px;
}
.notice {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-grid label,
dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.settings-grid input,
.settings-grid select,
dialog input,
dialog textarea {
  width: 100%;
}
.settings-grid .card {
  padding: 24px;
}
.settings-grid .card label {
  margin: 15px 0;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(520px, calc(100% - 30px));
  box-shadow: 0 30px 90px #0004;
}
dialog::backdrop {
  background: #0d131db0;
}
dialog form {
  padding: 25px;
}
dialog label {
  margin: 17px 0;
}
.dialog-head,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
}
.dialog-head h2 {
  margin: 5px 0;
}
.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #222b36;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
body.dark {
  --bg: #101721;
  --surface: #202a35;
  --ink: #edf1f4;
  --muted: #a1adb8;
  --line: #384450;
  --shadow: none;
}
body.dark .top,
body.dark .quick button {
  background: var(--surface);
}
body.dark .result {
  background: #151e27;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 68px 1fr;
  }
  .side {
    padding: 22px 9px;
  }
  .brand {
    padding: 0 4px 35px;
  }
  .brand div,
  nav button span,
  .side-label,
  .side-foot {
    display: none;
  }
  .brand img {
    width: 40px;
  }
  .top {
    padding: 0 20px;
  }
  .page {
    padding: 25px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .hero .mark {
    display: none;
  }
  .hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 550px) {
  .shell {
    display: block;
  }
  .side {
    height: auto;
    position: relative;
    padding: 9px 12px;
    display: flex;
    flex-direction: row;
    overflow: auto;
  }
  .brand {
    padding: 0;
    margin-right: 15px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .side nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
  }
  .side nav button {
    padding: 8px 10px;
  }
  .side nav .side-label {
    display: none;
  }
  .top {
    height: 55px;
  }
  .top-actions #today {
    display: none;
  }
  .page {
    padding: 19px 15px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .quick {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 25px;
    min-height: 195px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .calendar .day {
    min-height: 55px;
    padding: 4px;
    font-size: 9px;
  }
  .dot {
    font-size: 8px;
  }
}
:root {
  --bg: #eaf0f7;
  --surface: #ffffffc9;
  --line: #ffffffbb;
  --shadow: 0 16px 45px #263b6518;
}
body {
  background:
    radial-gradient(circle at 12% 12%, #cbdcff 0, transparent 38%),
    radial-gradient(circle at 92% 22%, #f8dfeb 0, transparent 34%),
    linear-gradient(135deg, #edf2f9, #f7f8fb);
  background-attachment: fixed;
}
.shell {
  display: block;
}
.side {
  height: auto;
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: #ffffffb8;
  color: var(--ink);
  border-bottom: 1px solid #fff9;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.brand {
  padding: 0;
  flex: none;
}
.brand strong {
  color: var(--ink);
}
.brand small {
  color: var(--muted);
}
.side > .side-label,
.side-foot,
nav .side-label {
  display: none;
}
.side nav {
  display: flex;
  flex-direction: row;
  gap: 3px;
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
}
.side nav::-webkit-scrollbar {
  display: none;
}
nav button {
  flex: none;
  color: #536273;
  padding: 10px 12px;
  border-radius: 13px;
}
nav button span {
  font-size: 13px;
}
nav button.active,
nav button:hover {
  color: #1b3455;
  background: #fff9;
  box-shadow: 0 4px 16px #294a761a;
}
nav button.active {
  box-shadow:
    inset 0 -2px #7999d1,
    0 4px 16px #294a761a;
}
.top {
  height: 58px;
  background: transparent;
  border: 0;
  max-width: 1400px;
  margin: auto;
}
.card,
.quick button,
.icon-btn {
  background: var(--surface);
  border: 1px solid #ffffffc9;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero {
  background: linear-gradient(125deg, #253b65d9, #172c51ec);
  box-shadow: 0 25px 60px #1b396038;
}
.primary {
  background: linear-gradient(135deg, #667fbc, #38639c);
  box-shadow: 0 6px 18px #4d6fb845;
}
.primary:hover {
  background: linear-gradient(135deg, #5474b4, #28558f);
}
.toolbox {
  max-width: 1100px;
}
.toolbox .card {
  min-height: 230px;
}
.result {
  background: #f8faffaa;
}
.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.forecast > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  border-radius: 12px;
  background: #fff8;
}
.eyebrow {
  letter-spacing: 2px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}
button,
.card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}
button:hover {
  transform: translateY(-1px);
}
.card:hover {
  box-shadow: 0 20px 50px #263b6520;
}
body.dark {
  --bg: #121b2b;
  --surface: #26354bc9;
  --ink: #eef5ff;
  --line: #43546e;
  --shadow: 0 16px 45px #0002;
  background:
    radial-gradient(circle at 10% 10%, #263a60 0, transparent 35%), #111c2c;
}
body.dark .side {
  background: #1c2a3cce;
}
body.dark .brand strong,
body.dark nav button {
  color: #e0e8f3;
}
body.dark nav button.active {
  background: #ffffff21;
  color: white;
}
body.dark .forecast > div {
  background: #ffffff15;
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .side {
    padding: 10px 14px;
  }
  .brand {
    padding: 0;
  }
  .brand div {
    display: none;
  }
  .side nav {
    display: flex;
  }
  .side nav button span {
    display: inline;
  }
  .side nav .side-label {
    display: none;
  }
  .top {
    padding: 0 20px;
  }
  .page {
    padding: 24px 20px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .side {
    padding: 8px 10px;
  }
  .brand {
    margin-right: 3px;
  }
  .side nav button {
    padding: 8px 10px;
  }
  .side nav button span {
    display: none;
  }
  .top {
    height: 47px;
  }
  .page {
    padding: 16px 13px;
  }
  .forecast {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 180px;
  }
}
.auth-mode .side,
.auth-mode .top {
  display: none;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(430px, 100%);
  padding: 34px;
}
.auth-card h1 {
  margin: 15px 0 4px;
}
.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.auth-card label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.auth-card input {
  width: 100%;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.auth-tabs .selected {
  background: #dce8fa;
}
.auth-card #authError {
  min-height: 20px;
  color: #bc4c5b;
  font-size: 13px;
  margin-top: 12px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff66;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.gallery-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  font-size: 13px;
}
.gallery-grid button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.research-image {
  width: min(100%, 500px);
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 20px;
}
.html-preview {
  width: 100%;
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.weather-card {
  position: relative;
  overflow: hidden;
}
.weather-card:before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  opacity: 0.27;
  background-size: 150px 150px;
  animation: drift 18s linear infinite;
}
.weather-card[data-mood="snow"]:before {
  background-image:
    radial-gradient(circle, #fff 2px, transparent 3px),
    radial-gradient(circle, #d9edff 3px, transparent 4px);
  background-size:
    47px 47px,
    91px 91px;
}
.weather-card[data-mood="rain"]:before {
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0 25px,
    #86b9e5 26px 28px,
    transparent 29px 50px
  );
}
.weather-card[data-mood="sun"]:before {
  background: radial-gradient(circle at 80% 12%, #ffd78c 0, transparent 33%);
  animation: glow 6s ease-in-out infinite;
}
.weather-card[data-mood="cloud"]:before {
  background:
    radial-gradient(ellipse at 20% 10%, #d7e4f9 0, transparent 30%),
    radial-gradient(ellipse at 60% 17%, #c4d8f3 0, transparent 32%);
  animation: drift 18s ease-in-out infinite alternate;
}
.weather-card > * {
  position: relative;
}
.hero:before {
  animation: drift 22s ease-in-out infinite alternate;
}
.hero:after {
  animation: glow 5s ease-in-out infinite alternate;
}
body.dark .hero {
  background:
    radial-gradient(circle at 80% 12%, #7284ca55, transparent 35%),
    linear-gradient(125deg, #141f37, #10192d);
}
body.dark .hero .mark {
  text-shadow:
    0 0 20px #e8d7ff,
    0 0 55px #91b4ff;
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translate(35px, 20px);
  }
}
@keyframes glow {
  to {
    opacity: 0.55;
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .weather-card:before,
  .hero:before,
  .hero:after,
  .hero .mark {
    animation: none;
  }
}
.gallery-download {
  display: flex;
  gap: 7px;
  padding: 0 10px 12px;
}
.gallery-download select {
  min-width: 0;
  flex: 1;
  padding: 8px;
}
.gallery-download button {
  padding: 8px 10px;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 17% 20%, #ffffffb5 0 6%, transparent 14%),
    radial-gradient(ellipse at 62% 12%, #ffffffb0 0 8%, transparent 19%),
    radial-gradient(ellipse at 87% 38%, #ffffff9c 0 6%, transparent 16%);
  animation: skyMove 50s ease-in-out infinite alternate;
}
body.dark:before {
  background:
    radial-gradient(circle at 17% 16%, #ffffff 1px, transparent 2px),
    radial-gradient(circle at 64% 27%, #c6ddff 1px, transparent 2px),
    radial-gradient(circle at 85% 58%, #ffffff 1px, transparent 2px);
  background-size:
    170px 170px,
    230px 230px,
    310px 310px;
  filter: drop-shadow(0 0 5px #afcfff);
  animation: starGlow 5s ease-in-out infinite alternate;
}
@keyframes skyMove {
  to {
    transform: translateX(70px);
  }
}
@keyframes starGlow {
  to {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:before {
    animation: none;
  }
}
.side {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand groups" "nav nav";
  gap: 10px 22px;
  padding: 12px max(20px, calc((100vw - 1360px) / 2));
  background: linear-gradient(120deg, #ffffffdc, #f9fbffb8);
  box-shadow: 0 9px 34px #27466e14;
}
.brand {
  grid-area: brand;
}
.brand img {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 6px 10px #283d6a50);
}
.brand strong {
  font-size: 18px;
  letter-spacing: 2.4px;
}
.nav-groups {
  grid-area: groups;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.nav-groups button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #647189;
  padding: 9px 17px;
  font-size: 12px;
  font-weight: 700;
}
.nav-groups button.selected {
  color: #19385f;
  border-color: #ffffffc9;
  background: #ffffffb8;
  box-shadow: 0 4px 18px #45679622;
}
#nav {
  grid-area: nav;
  border-top: 1px solid #ffffffa6;
  padding-top: 7px;
}
#nav button[hidden] {
  display: none;
}
.top {
  max-width: 1360px;
}
.page {
  max-width: 1360px;
}
.avatar {
  cursor: pointer;
  background: linear-gradient(145deg, #315e91, #192b4d);
  box-shadow: 0 5px 15px #2c4b7c45;
}
.card {
  position: relative;
  overflow: hidden;
}
.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
}
.account-hero {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 27px;
  margin-bottom: 18px;
  background: linear-gradient(125deg, #fffdf1d9, #eaf2ffca);
}
.account-hero h2 {
  margin: 7px 0 2px;
  font-size: 24px;
}
.account-hero p {
  margin: 0 0 5px;
  color: var(--muted);
}
.account-hero small {
  color: var(--muted);
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #24446d, #162744);
  color: #ead3a7;
  font: 800 32px Manrope;
  box-shadow:
    inset 0 1px #fff6,
    0 12px 20px #27426330;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.account-stats .card {
  padding: 19px;
}
.account-stats b {
  display: block;
  font: 800 25px Manrope;
}
.account-stats span {
  text-transform: capitalize;
  color: var(--muted);
  font-size: 12px;
}
.account-form {
  display: grid;
  gap: 13px;
}
.account-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
}
.account-form input {
  width: 100%;
}
.account-form button {
  justify-self: start;
}
.account-form #passwordResult {
  font-size: 12px;
  color: var(--gold);
  min-height: 18px;
  margin: 0;
}
body.dark .side {
  background: linear-gradient(120deg, #172639e8, #1d2f44db);
}
body.dark .account-hero {
  background: linear-gradient(125deg, #273b55dc, #1b2e47d8);
}
body.dark .nav-groups button.selected {
  color: #f5e9ca;
  background: #ffffff20;
}
@media (max-width: 850px) {
  .side {
    padding: 9px 16px;
    gap: 7px 10px;
  }
  .nav-groups button {
    padding: 8px 12px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .account-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .side {
    padding: 8px;
  }
  .brand {
    margin: 0;
  }
  .nav-groups {
    gap: 0;
  }
  .nav-groups button {
    padding: 8px 9px;
    font-size: 11px;
  }
  .account-hero {
    padding: 18px;
  }
  .account-avatar {
    width: 55px;
    height: 55px;
    border-radius: 17px;
  }
}
[hidden] {
  display: none !important;
}
.brand img,
.auth-card img {
  animation: none;
}
.brand:hover img,
.auth-card img:hover {
  transform: none;
}
@keyframes logoBreathe {
  to {
    filter: drop-shadow(0 0 13px #d5c390);
  }
}
.news-panel {
  margin-top: 20px;
}
.news-panel .panel-head small {
  color: var(--muted);
  font-size: 12px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.news-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff78;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.22s,
    background 0.22s;
}
.news-item:hover {
  transform: translateY(-3px);
  background: #fff;
}
.news-item strong {
  font-size: 13px;
  line-height: 1.4;
}
.news-item small {
  color: var(--muted);
}
.profile-card {
  margin-top: 18px;
}
.profile-card form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-card label {
  display: grid;
  gap: 7px;
  min-width: 240px;
  font-size: 12px;
}
.profile-card input {
  width: 100%;
}
.profile-card #usernameResult {
  min-height: 18px;
  font-size: 12px;
  color: var(--gold);
}
body.dark .news-item {
  background: #ffffff12;
}
body.dark .news-item:hover {
  background: #ffffff20;
}
@media (max-width: 600px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand img,
  .auth-card img {
    animation: none;
  }
}
