:root { --ink: #2c1e12; --gold: #d69e3f; --gold-light: #f4d48a; --paper: #fff8e7; --forest: #173b32; --forest-deep: #102b25; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; background: #142e28 url("assets/cozy-gielinor-background.png") center / cover fixed no-repeat; }
.login-page, .home-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: radial-gradient(ellipse at center, rgba(11, 40, 31, .16), rgba(7, 26, 21, .72)); }
.login-card, .home-card { width: min(100%, 410px); padding: 40px 35px 34px; border: 2px solid #9d7744; border-radius: 20px; background: linear-gradient(rgba(255, 248, 231, .96), rgba(238, 223, 192, .98)); box-shadow: 0 28px 70px rgba(3, 19, 14, .48), inset 0 0 0 4px rgba(255, 247, 225, .65); text-align: center; }
.clan-logo { display: block; width: 144px; height: 144px; margin: 0 auto 16px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(66,42,18,.24)); }.eyebrow { margin: 0 0 9px; color: #aa6d28; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }.login-card h1, .home-card h1 { margin: 0; color: #543514; font-family: "MedievalSharp", Georgia, serif; font-size: 39px; font-weight: 400; }.intro { margin: 12px 0 26px; color: #756147; font-size: 13px; line-height: 1.55; }
.discord-button { display: inline-flex; width: 100%; height: 50px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #44517c; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #6373af, #50629d); box-shadow: 0 8px 15px rgba(51, 62, 102, .22), inset 0 1px rgba(255,255,255,.22); font-size: 13px; font-weight: 700; text-decoration: none; }.discord-button:hover { filter: brightness(1.08); transform: translateY(-1px); }.discord-button svg { width: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }.login-error { min-height: 16px; margin: 14px 0 0; color: #a54e35; font-size: 11px; font-weight: 700; }
.website-home-link { display: inline-block; margin-top: 16px; color: #716249; font-size: 11px; font-weight: 700; text-decoration: none; }
.website-home-link:hover { color: #4f6b48; text-decoration: underline; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 238px minmax(0, 1fr); background: rgba(8, 29, 23, .58); }.sidebar { display: flex; min-height: 100vh; flex-direction: column; padding: 25px 15px 22px; border-right: 1px solid rgba(243, 214, 151, .17); background: rgba(8, 31, 25, .87); backdrop-filter: blur(13px); }.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; color: #fff5df; font-family: "MedievalSharp", Georgia, serif; font-size: 18px; text-decoration: none; }.sidebar-brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.32)); }.sidebar-nav { display: grid; gap: 5px; margin-top: 47px; }.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; color: rgba(235, 244, 226, .68); font-size: 12px; font-weight: 700; text-decoration: none; }.sidebar-nav a.active, .sidebar-nav a:hover { border-color: rgba(231, 191, 106, .28); color: #fff7e6; background: rgba(245, 210, 141, .12); }.sidebar-nav svg { width: 18px; stroke: #e3bd71; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }.sidebar-note { margin: auto 9px 2px; color: rgba(232, 240, 221, .39); font-size: 10px; line-height: 1.55; }.app-main { min-width: 0; background: linear-gradient(115deg, rgba(237, 244, 234, .94), rgba(247, 249, 244, .91)); }.topbar { display: flex; height: 74px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 56px); border-bottom: 1px solid #dce5d9; background: rgba(255,255,255,.53); }.topbar-logo, .mobile-menu { display: none; }.topbar-actions { display: flex; align-items: center; gap: 17px; margin-left: auto; }.notification-button { position: relative; display: grid; width: 35px; height: 35px; padding: 0; place-items: center; border: 1px solid #d6e0d4; border-radius: 9px; color: #53695b; background: #fff; cursor: pointer; }.notification-button:hover { background: #f1f6ee; }.notification-button svg { width: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #d96c45; }.topbar-profile { display: flex; align-items: center; gap: 9px; color: #3c4e43; font-size: 12px; font-weight: 700; }.topbar-profile img { width: 33px; height: 33px; border-radius: 50%; object-fit: cover; }.dashboard-content { width: min(100%, 1100px); margin: 0 auto; padding: clamp(43px, 7vw, 76px) clamp(22px, 4vw, 56px) 52px; }.dashboard-kicker { margin: 0 0 9px; color: #a76d29; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }.dashboard-content h1 { margin: 0; color: #243a2e; font-family: "MedievalSharp", Georgia, serif; font-size: clamp(31px, 4.5vw, 45px); font-weight: 400; }.dashboard-intro { margin: 11px 0 28px; color: #6a7970; font-size: 14px; }.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.panel { min-height: 250px; padding: 22px; border: 1px solid #d6e0d4; border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 10px 24px rgba(43,75,56,.08); }.panel-heading { display: flex; align-items: center; gap: 10px; }.panel-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #d8c08a; border-radius: 9px; color: #82602c; background: #fff6db; }.panel-icon svg { width: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }.panel-heading p { margin: 0 0 3px; color: #8a9a8f; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.panel-heading h2 { margin: 0; color: #35483b; font-family: "MedievalSharp", Georgia, serif; font-size: 20px; font-weight: 400; }.account-summary { display: flex; align-items: center; gap: 12px; margin-top: 23px; }.account-summary img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 9px rgba(33,55,43,.14); }.account-summary strong { display: block; color: #33463a; font-size: 14px; }.account-summary span { display: block; margin-top: 3px; color: #829087; font-size: 11px; }.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 19px 0 0; }.stat-list div { padding: 10px; border: 1px solid #e0e8df; border-radius: 8px; background: #fafcf9; }.stat-list dt { color: #839087; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.stat-list dd { margin: 5px 0 0; color: #405345; font-size: 12px; font-weight: 700; }.status-yes { color: #4d854c !important; }.status-no { color: #a65c3e !important; }.empty-task { display: grid; min-height: 139px; place-content: center; margin-top: 20px; border: 1px dashed #cbd9ca; border-radius: 10px; color: #738279; text-align: center; }.empty-task span { color: #c07b39; font-size: 19px; }.empty-task strong { margin-top: 7px; color: #495c50; font-size: 12px; }.empty-task small { max-width: 215px; margin: 5px auto 0; font-size: 10px; line-height: 1.4; }.mee6-panel { background: linear-gradient(145deg, rgba(250,247,235,.94), rgba(255,255,255,.86)); }.mee6-placeholder { margin-top: 27px; color: #778178; font-size: 12px; line-height: 1.5; }.mee6-placeholder p { margin: 0 0 13px; }.mee6-placeholder a, .achievement-link { color: #637c51; font-size: 11px; font-weight: 700; text-decoration: none; }.mee6-placeholder a:hover, .achievement-link:hover { text-decoration: underline; text-underline-offset: 3px; }.level-row { display: flex; align-items: center; justify-content: space-between; color: #475b4c; font-size: 13px; font-weight: 700; }.level-row strong { color: #b1742d; }.progress-track { height: 10px; overflow: hidden; margin: 11px 0 8px; border-radius: 99px; background: #e3e9df; }.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #799e69, #b9d484); }.mee6-placeholder > p:not(:first-child) { color: #829087; font-size: 11px; }.achievement-copy { max-width: 275px; margin: 25px 0 26px; color: #718077; font-size: 12px; line-height: 1.55; }.achievement-link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 11px; border: 1px solid #cbd8c6; border-radius: 8px; background: #f8fbf6; }.achievement-link span { color: #b47733; font-size: 15px; }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; }.sidebar { display: none; }.topbar-logo { display: block; width: 39px; height: 39px; object-fit: contain; }.mobile-menu { display: grid; width: 35px; height: 35px; padding: 0; place-items: center; border: 1px solid #d6e0d4; border-radius: 8px; color: #53695b; background: #fff; }.mobile-menu svg { width: 18px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.65; }.topbar { padding: 0 19px; }.topbar-actions { gap: 10px; }.topbar-profile span { display: none; }.dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .login-card { padding: 33px 24px 28px; }.clan-logo { width: 124px; height: 124px; }.login-card h1 { font-size: 34px; }.notification-button { display: none; }.panel { padding: 19px; } }

.view-as-control { position: relative; display: flex; align-items: end; gap: .4rem; padding: .32rem .42rem; border: 1px solid #cbd9c7; border-radius: 9px; background: rgba(255,255,255,.82); }
.view-as-control.is-active { border-color: #bf8d35; background: #fff7df; box-shadow: 0 0 0 2px rgba(191,141,53,.12); }
.view-as-control label { display: grid; gap: .12rem; }
.view-as-control label > span { color: #6c7c70; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.view-as-control select { width: min(210px,24vw); min-height: 31px; padding: 0 1.6rem 0 .5rem; border: 1px solid #c7d5c3; border-radius: 6px; outline: none; color: #3f5545; background: #fff; font: inherit; font-size: 12px; font-weight: 700; }
.view-as-control select:focus-visible { border-color: #759563; box-shadow: 0 0 0 3px rgba(117,149,99,.2); }
.view-as-control button { min-height: 31px; padding: 0 .58rem; border: 1px solid #b88635; border-radius: 6px; color: #674818; background: #fff9e9; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.view-as-control > small { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; max-width: 280px; color: #7d6237; background: #fff; font-size: 11px; white-space: nowrap; }
.view-as-control > small:empty { display: none; }
.view-as-control > small.is-error { color: #9b4f45; }
.view-as-banner { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 1rem; padding: .55rem clamp(1rem,4vw,3rem); border-bottom: 1px solid #c79744; color: #5b411a; background: linear-gradient(110deg,#fff8df,#f4e3af); }
.view-as-banner div { display: grid; gap: .12rem; }
.view-as-banner strong { font-size: 13px; }
.view-as-banner span { font-size: 12px; }
.view-as-banner button { min-height: 34px; padding: 0 .72rem; border: 1px solid #a77529; border-radius: 7px; color: #fff; background: #926927; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.view-as-restricted { width: min(620px,calc(100% - 2rem)); margin: clamp(2rem,8vw,6rem) auto; padding: 2rem; border: 1px solid #d6c48e; border-radius: 15px; color: #4d5f50; background: #fffdf6; box-shadow: 0 14px 35px rgba(45,67,49,.1); text-align: center; }
.view-as-restricted > span { font-size: 1.6rem; }
.view-as-restricted h1 { margin: .65rem 0 .45rem; color: #334a3a; font-family: "MedievalSharp",Georgia,serif; font-size: 1.8rem; font-weight: 400; }
.view-as-restricted p { margin: 0; font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .view-as-control label > span { display: none; }
  .view-as-control select { width: min(175px,25vw); }
}
@media (max-width: 760px) {
  .view-as-control { order: -1; padding: .22rem; }
  .view-as-control select { width: min(145px,34vw); min-height: 34px; }
  .view-as-control button { min-height: 34px; }
  .view-as-banner { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .view-as-banner button { width: 100%; }
}
@media (max-width: 430px) {
  .view-as-control select { width: 128px; }
  .view-as-control button { display: none; }
  .view-as-active .topbar-profile { display: none; }
}
