.owner-page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.owner-main { width: min(1120px, 100%); flex: 1; margin: 0 auto; padding: 54px 28px 74px; }
.owner-hero { padding: 0 0 34px; border-bottom: 1px solid var(--line); }
.owner-hero h1 { margin: 15px 0 8px; font-family: var(--font-display); font-size: clamp(42px, 6vw, 64px); line-height: .95; }
.owner-hero h1 span { color: var(--lime); }
.owner-hero-copy > p { max-width: 620px; margin: 0; color: #aeb4bf; font-size: 16px; line-height: 1.65; }
.owner-hero-inner { max-width: 1120px; margin: 0 auto; }
.owner-add-benefits, .owner-add-visual, .owner-add-cta, .owner-account-visual { display: none; }
.owner-page .owner-main { padding-top: 0; }
.owner-page .owner-hero {
  position: relative;
  z-index: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 48px max(20px, calc((100vw - 1120px) / 2)) 58px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(ellipse at 72% 40%, rgba(154,203,60,.2), transparent 37%),
    radial-gradient(ellipse at 13% 110%, rgba(114,156,43,.2), transparent 45%),
    linear-gradient(110deg, #141c13, #20291a 55%, #151b14);
}
.owner-page .owner-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(154,203,60,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(154,203,60,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, black 55%, transparent);
}
.owner-page .owner-hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 17px;
  background: var(--bg);
  clip-path: polygon(0 35%, 18% 85%, 48% 35%, 76% 85%, 100% 30%, 100% 100%, 0 100%);
  content: "";
}
.owner-page .owner-hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: 52px; }
.owner-page .owner-hero h1 { margin-top: 14px; }
.owner-page .owner-hero-copy > p { max-width: 620px; margin: 0; color: #c3c9bd; font-size: 16px; line-height: 1.65; }
.owner-add-page .owner-add-benefits { display: grid; gap: 10px; margin: 20px 0 23px; padding: 0; list-style: none; }
.owner-add-page .owner-add-benefits li { display: flex; align-items: center; gap: 10px; color: #e5eadf; font-size: 14px; font-weight: 600; }
.owner-add-page .owner-add-benefits li > span { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(154,203,60,.55); border-radius: 50%; background: rgba(154,203,60,.14); color: var(--lime); }
.owner-add-page .owner-add-cta { display: inline-flex; }
.owner-add-page .owner-add-visual { display: grid; gap: 10px; }
.owner-page:not(.owner-add-page) .owner-account-visual { display: grid; gap: 10px; max-width: 440px; width: 100%; justify-self: end; padding: 17px; border: 1px solid rgba(220,231,206,.14); border-radius: 8px; background: rgba(10,14,9,.42); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.owner-account-visual-heading { display: grid; gap: 5px; padding: 3px 2px 10px; }
.owner-account-visual-heading > span { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.owner-account-visual-heading > strong { color: #f1f2ec; font-family: var(--font-display); font-size: 21px; letter-spacing: .03em; }
.owner-account-feature { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(220,231,206,.1); border-radius: 5px; background: rgba(240,247,230,.035); }
.owner-account-feature-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(154,203,60,.25); border-radius: 5px; background: rgba(154,203,60,.08); color: var(--lime); font-size: 18px; }
.owner-account-feature > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.owner-account-feature strong { color: #f1f2ec; font-size: 13px; }
.owner-account-feature small { color: #aab3a0; font-size: 11px; }
.owner-rank-card { min-height: 54px; display: flex; align-items: center; gap: 13px; padding: 10px 13px; border: 1px solid rgba(220,231,206,.12); border-radius: 8px; background: rgba(240,247,230,.045); }
.owner-rank-card > span { min-width: 38px; padding: 4px 6px; border: 1px solid rgba(220,231,206,.18); border-radius: 16px; color: #a8b29d; font-size: 11px; font-weight: 700; text-align: center; }
.owner-rank-card > i { width: 54%; height: 8px; border-radius: 8px; background: rgba(220,231,206,.12); }
.owner-rank-card > i::after { display: block; width: 65%; height: 8px; margin-top: 13px; border-radius: 8px; background: rgba(220,231,206,.08); content: ""; }
.owner-rank-highlight { min-height: 64px; border: 1px dashed var(--lime); background: rgba(154,203,60,.09); box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.owner-rank-highlight > span { border-color: rgba(154,203,60,.45); color: var(--lime); }
.owner-rank-highlight > div { display: grid; flex: 1; gap: 2px; }
.owner-rank-highlight strong { color: #f1f2ec; font-size: 14px; }
.owner-rank-stars { color: var(--lime); font-size: 12px; letter-spacing: .08em; }
.owner-rank-highlight > b { padding: 8px 12px; border-radius: 5px; background: var(--lime); color: #11140b; font-size: 12px; }
.owner-auth-panel, .owner-section { margin-top: 26px; padding: 25px; border: 1px solid #292e38; border-radius: 6px; background: linear-gradient(135deg,#141820,#101319 72%); }
.owner-auth-panel { max-width: 680px; }
.owner-panel-heading h2, .owner-welcome h2 { margin: 9px 0 5px; font-family: var(--font-display); font-size: 30px; }
.owner-panel-heading > p { margin: 0; color: #a0a7b2; font-size: 14px; line-height: 1.6; }
.owner-form { display: grid; gap: 16px; margin-top: 22px; }
.owner-form label { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: #c4c9d2; font-size: 14px; font-weight: 600; }
.owner-form label small { color: #929aa6; font-size: 12px; font-weight: 400; }
.owner-form input, .owner-form select, .owner-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #343944; border-radius: 4px; outline: 0; background: #0c0f14; color: var(--text); font: inherit; }
.owner-form textarea { resize: vertical; line-height: 1.55; }
.owner-form input:focus, .owner-form select:focus, .owner-form textarea:focus { border-color: var(--lime); }
.owner-form input[type="file"] { padding: 8px; color: #aab1bc; }
.owner-form .button { justify-self: start; }
.owner-switch { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: var(--lime); cursor: pointer; font: inherit; }
.owner-reset-link { text-decoration: none; }
.owner-form-note { margin: 0; color: #8d95a1; font-size: 13px; line-height: 1.55; }
.owner-dashboard { display: grid; gap: 8px; }
.owner-welcome { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; padding: 20px 24px; border: 1px solid rgba(154,203,60,.2); border-radius: 5px; background: rgba(154,203,60,.035); }
.owner-welcome h2 { overflow-wrap: anywhere; margin-bottom: 0; font-family: var(--font-body); font-size: 17px; font-weight: 700; }
.owner-account-status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(232,196,123,.3); border-radius: 3px; color: var(--gold); font-size: 12px; }
.owner-account-status.verified { border-color: rgba(154,203,60,.35); color: var(--lime); }
.owner-verification { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 16px; padding: 20px; border: 1px solid rgba(232,196,123,.35); border-radius: 5px; background: rgba(232,196,123,.06); }
.owner-verification h3 { margin: 0 0 6px; color: #f0d393; font-size: 16px; }
.owner-verification p { margin: 0; color: #bdb5a3; font-size: 13px; line-height: 1.6; }
.owner-verification-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 8px; }
.owner-verification-actions .button { font-size: 12px; }
.owner-section { scroll-margin-top: 25px; }
.owner-server-form.owner-form { margin-top: 24px; }
.owner-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.owner-field-wide { grid-column: 1 / -1; }
.owner-description-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.owner-form-label { color: #c4c9d2; font-size: 14px; font-weight: 600; }
.description-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #343944; border-bottom: 0; border-radius: 4px 4px 0 0; background: #151922; }
.description-toolbar button { min-height: 34px; padding: 5px 9px; border: 1px solid #343944; border-radius: 3px; background: #0c0f14; color: #d4d9e1; cursor: pointer; font: inherit; }
.description-toolbar button:hover, .description-toolbar button:focus-visible { border-color: var(--lime); color: var(--lime); }
.owner-description-field .description-toolbar { position: relative; }
.emoji-picker { position: absolute; z-index: 20; top: calc(100% + 5px); left: 8px; width: min(520px, calc(100vw - 32px)); padding: 14px; border: 1px solid #3a414d; border-radius: 6px; background: #141820; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.emoji-picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; color: #eef1e8; font-size: 14px; }
.emoji-picker-heading button { width: 32px; min-height: 30px; padding: 0; font-size: 21px; }
.emoji-picker-categories { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #2f3540; }
.emoji-picker-categories button { display: flex; justify-content: flex-start; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; text-align: left; font-size: 13px; }
.emoji-picker-categories button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-picker-categories button[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); background: rgba(154,203,60,.08); }
.emoji-picker h3 { margin: 9px 0; color: #aeb6c1; font-size: 12px; font-weight: 600; }
.emoji-picker-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 3px; max-height: 220px; overflow-y: auto; }
.emoji-picker-grid button { min-width: 0; min-height: 38px; padding: 2px; border-color: transparent; background: transparent; font-size: 22px; }
.emoji-picker-grid button:hover, .emoji-picker-grid button:focus-visible { border-color: var(--lime); background: rgba(154,203,60,.08); }
.description-editor { min-height: 190px; max-height: 560px; overflow-y: auto; padding: 13px; border: 1px solid #343944; border-radius: 0 0 4px 4px; outline: 0; background: #0c0f14; color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.description-editor:focus { border-color: var(--lime); }
.description-editor:empty::before { content: attr(data-placeholder); color: #707887; pointer-events: none; }
.description-editor h2, .description-editor h3 { margin: 10px 0 6px; color: #edf1e5; line-height: 1.2; }
.description-editor h2 { font-size: 23px; }
.description-editor h3 { font-size: 19px; }
.description-editor p { margin: 0 0 9px; }
.description-editor ul, .description-editor ol { padding-left: 24px; }
.description-editor img { display: block; max-width: min(100%, 620px); max-height: 350px; margin: 10px 0; object-fit: contain; }
.owner-description-field > small { color: #929aa6; font-size: 12px; }
.owner-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-locked-notice { margin-top: 20px; padding: 16px; border: 1px dashed #44434a; border-radius: 4px; color: #b0b4bd; font-size: 14px; line-height: 1.6; }
.owner-server-list { display: grid; gap: 12px; margin-top: 20px; }
.owner-discord-link { margin-top: 18px; }
.owner-server-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid #2b303a; border-radius: 4px; background: rgba(10,12,17,.55); }
.owner-server-details { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 15px; align-items: center; min-width: 0; }
.owner-server-logo { position: relative; width: 58px; height: 58px; overflow: hidden; display: grid; place-items: center; border: 1px solid #3b414c; border-radius: 4px; background: #1b2029; color: var(--lime); font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.owner-server-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.owner-server-copy { min-width: 0; }
.owner-server-copy h3 { overflow-wrap: anywhere; margin: 0 0 6px; font-size: 16px; }
.owner-server-copy p { margin: 0 0 8px; color: #a3aab5; font-size: 13px; line-height: 1.55; }
.owner-server-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #8d95a1; font-size: 12px; }
.owner-server-meta .published { color: var(--lime); }
.owner-server-meta .rejected { color: #ff9ca2; }
.owner-server-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.owner-server-actions .button { padding: 10px 13px; font-size: 12px; }
.owner-server-stats { grid-column: 1 / -1; min-width: 0; padding-top: 15px; border-top: 1px solid #292e38; }
.owner-server-stats h4 { margin: 0 0 12px; color: #e5e9df; font-size: 15px; }
.owner-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.owner-stats-chart { min-width: 0; padding: 14px; border: 1px solid #30313c; border-radius: 5px; background: #171620; }
.owner-stats-chart h5 { margin: 0 0 13px; color: #eef0ed; font-size: 13px; font-weight: 600; text-align: center; }
.owner-stats-plot { height: 150px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 5px; }
.owner-stats-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.owner-stats-baseline { stroke: #383541; stroke-width: 1; }
.owner-stats-vote-bar { fill: #ff641d; }
.owner-stats-click-bar { fill: #9acb3c; }
.owner-stats-tooltip { opacity: 0; pointer-events: none; transition: opacity .12s ease-out; }
.owner-stats-bar-group:hover .owner-stats-tooltip { opacity: 1; }
.owner-stats-tooltip rect { fill: #292633; stroke: #514c60; stroke-width: 1; }
.owner-stats-tooltip text { fill: #fff; font: 600 12px "DM Sans", sans-serif; text-anchor: middle; }
.owner-stats-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.owner-stats-month-plot .owner-stats-labels { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.owner-stats-label { overflow: hidden; padding-top: 5px; color: #bdc0c8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.owner-stats-month-plot .owner-stats-label { font-size: 8px; }
.owner-stats-legend { display: flex; gap: 16px; margin-top: 11px; color: #c8cad0; font-size: 10px; }
.owner-stats-legend span { display: inline-flex; align-items: center; gap: 6px; }
.owner-stats-legend i { width: 9px; height: 9px; border-radius: 2px; background: #ff641d; }
.owner-stats-legend span + span i { background: #9acb3c; }
.owner-empty { padding: 25px; border: 1px dashed #343944; border-radius: 4px; color: #a0a7b2; font-size: 14px; line-height: 1.6; text-align: center; }
.owner-server-list .upload-preview { margin-top: 6px; }

@media (max-width: 700px) {
  .owner-main { padding: 38px 16px 52px; }
  .owner-hero { padding-bottom: 25px; }
  .owner-page .owner-hero { padding: 36px 16px 48px; }
  .owner-page .owner-hero-inner { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .owner-page .owner-add-visual { max-width: 440px; }
  .owner-page:not(.owner-add-page) .owner-account-visual { justify-self: stretch; }
  .owner-auth-panel, .owner-section { padding: 19px 16px; }
  .owner-welcome, .owner-verification { align-items: flex-start; flex-direction: column; }
  .owner-verification-actions { flex: auto; }
  .owner-form-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .owner-field-wide { grid-column: auto; }
  .owner-server-card { grid-template-columns: minmax(0,1fr); }
  .owner-server-actions { justify-content: flex-start; }
  .owner-stats-grid { grid-template-columns: minmax(0,1fr); }
}
