/* Shared public-panel polish. Embedded PUS/event pages do not load this file. */
.public-panel { color: #d5d5d5; }
.public-panel .textwhiteSmall,
.public-panel .textSmallEvent { font: 13px/1.55 serverdetails, Georgia, "Times New Roman", serif; color: #d5d5d5; }
.public-panel #subTableRepetable { line-height: 1.55; }
.public-panel #subTableRepetable a { color: #dfcfad; font: inherit; }
.public-panel #subTableRepetable a:hover { color: #fff0d1; text-decoration: underline; }
/* Match hover in the geometry rule too: legacy pseudo-class selectors must not
   restore their old widths/heights/fonts over the public form styles. */
.public-panel input[type="submit"], .public-panel input[type="button"],
.public-panel button#myKOL,
.public-panel input[type="submit"]:hover, .public-panel input[type="button"]:hover,
.public-panel button#myKOL:hover {
    box-sizing: border-box;
    min-height: 34px; height: auto; padding: 7px 12px;
    border: 1px solid #786c5c; border-radius: 0;
    background: #2d1f17 url(images/button.png) center / 100% 100% no-repeat;
    color: #d5d5d5; box-shadow: none;
    font: normal 12px/1.4 serverdetails, Georgia, "Times New Roman", serif;
    cursor: pointer;
}
.public-panel input[type="submit"]:hover, .public-panel input[type="button"]:hover,
.public-panel button#myKOL:hover { background: #422d22 url(images/button_hover.png) center / 100% 100% no-repeat; border-color: #958363; color: #fff0d1; }
.public-panel :focus-visible { outline: 2px solid #b69a69; outline-offset: 3px; }
.public-panel .ui-tooltip { border: 1px solid #786c5c; border-radius: 0; background: #241b15; color: #d5d5d5; padding: 8px 12px; box-shadow: 0 2px 5px #0008; font: 12px/1.5 serverdetails, Georgia, "Times New Roman", serif; }
.public-panel #subTableRepetable input[type="submit"],
.public-panel #subTableRepetable input[type="button"],
.public-panel #subTableRepetable button#myKOL,
.public-panel #subTableRepetable input[type="submit"]:hover,
.public-panel #subTableRepetable input[type="button"]:hover,
.public-panel #subTableRepetable button#myKOL:hover {
    width: auto; max-width: 100%; min-width: 150px;
}
.public-panel .panel-card {
    box-sizing: border-box; padding: 0; margin: 0 0 28px;
    color: #d5d5d5; background: transparent;
    border: 0; border-radius: 0; box-shadow: none; text-align: left;
    font: 13px/1.55 serverdetails, Georgia, "Times New Roman", serif;
}
.public-panel .panel-card:last-child { margin-bottom: 0; }
.public-panel .panel-card h2, .public-panel .panel-card h3 {
    margin: 0 0 12px; padding: 0 0 7px; border-bottom: 1px solid #786c5c;
    color: #d5d5d5; font: normal 18px/1.35 serverdetails, Georgia, "Times New Roman", serif;
}
.panel-card .panel-muted { color: #bfb8ac; margin: 6px 0 14px; font-size: 12px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.panel-button, .public-panel #subTableRepetable .panel-button {
    display: inline-block; padding: 8px 14px; color: #d5d5d5;
    background: #2d1f17 url(images/button.png) center / 100% 100% no-repeat;
    border: 1px solid #786c5c; border-radius: 0;
    font: normal 12px/1.4 serverdetails, Georgia, "Times New Roman", serif; text-decoration: none;
}
.public-panel #subTableRepetable .panel-button:hover { background: #422d22 url(images/button_hover.png) center / 100% 100% no-repeat; border-color: #958363; color: #fff0d1; text-decoration: none; }
.account-overview { width: 94%; margin: 0 auto; }
/* Account pages share one inset inside the native frame, including desktop width overrides. */
.public-panel #subTableRepetable .account-view {
    box-sizing: border-box; width: 100%; margin: 0; padding: 8px 24px 12px;
}
.account-form-view form { margin: 0; }
.account-form-view .account-form-row {
    display: grid; grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.3fr);
    align-items: center; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid #786c5c55;
}
.account-form-view .account-form-row label { font: inherit; color: #dfcfad; overflow-wrap: anywhere; }
.public-panel .account-form-view .inputField,
.public-panel .account-form-view select {
    box-sizing: border-box; width: 100%; max-width: 320px; min-width: 0;
    height: auto; min-height: 36px; margin: 0; padding: 7px 10px;
    border: 1px solid #786c5c; border-radius: 0; background: #2d1f17;
    color: #d5d5d5; box-shadow: none; font: inherit;
}
.account-form-view .account-form-message { margin: 0 0 12px; color: #e5d3ad; overflow-wrap: anywhere; }
.account-form-view .account-form-message:empty { display: none; }
.account-form-view .panel-actions { margin-top: 18px; }
.account-form-view .class-stat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.public-panel .account-form-view .inputField.class-stat-value {
    width: 64px; max-width: 64px; text-align: center; opacity: 1;
    -webkit-text-fill-color: #d5d5d5;
}
/* Compact allocation controls keep the same geometry on hover as other actions. */
.public-panel #subTableRepetable .class-stat-controls input[type="button"],
.public-panel #subTableRepetable .class-stat-controls input[type="button"]:hover {
    width: 36px; min-width: 36px; min-height: 36px; margin: 0; padding: 7px 0;
}
.public-panel #subTableRepetable .class-stat-controls input.class-stat-max,
.public-panel #subTableRepetable .class-stat-controls input.class-stat-max:hover {
    width: auto; min-width: 56px; padding: 7px 10px;
}
.account-form-view .account-login-history th:first-child { width: 38px; }
.account-form-view .account-login-history th:nth-child(2) { width: 45px; }
.account-form-view .account-login-history td img { vertical-align: middle; }
.account-characters { padding: 0; margin: 0; list-style: none; border: 1px solid #786c5c; }
.account-characters li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #786c5c; }
.account-characters li:nth-child(even) { background: #38271d55; }
.account-characters li:last-child { border-bottom: 0; }
.account-characters span { color: #bfb8ac; }
.panel-table-scroll { max-width: 100%; overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; color: #d5d5d5; font: 13px/1.5 serverdetails, Georgia, "Times New Roman", serif; }
.panel-table th { color: #d5d5d5; text-align: left; background: #2d1f17; font-size: 12px; }
.panel-table th, .panel-table td { padding: 8px 12px; border: 1px solid #786c5c; vertical-align: middle; overflow-wrap: anywhere; }
.panel-table tbody tr:nth-child(even) { background: #38271d55; }
.account-summary th { width: 140px; font-weight: normal; }
.account-summary strong { color: #e5d3ad; font: inherit; }
.payment-status { display: inline-block; padding: 2px 7px; border: 1px solid #786c5c; border-radius: 0; background: #2d1f17; font-size: 11px; }
.payment-status--done { color: #c9d0b1; }
.payment-status--pending { color: #e5d3ad; }
.payment-status--failed { color: #f2b3a7; }
/* Navigation keeps its original red banners; only active/focus states change. */
.public-panel #demo1 ul[hidden], .public-panel #demo2 ul[hidden], .public-panel #demo3 ul[hidden] { display: none !important; }
.public-panel .nav a, .public-panel .nav2 a, .public-panel .nav3 a { border-radius: 0; }
.public-panel .nav li.active > a, .public-panel .nav2 li.active > a, .public-panel .nav3 li.active > a { background: #2d1f1780; color: #eee4d1; }
.public-panel .nav a:hover, .public-panel .nav2 a:hover, .public-panel .nav3 a:hover { background: #2d1f1766; color: #fff0d1; }
.public-panel .nav a[aria-current="page"], .public-panel .nav2 a[aria-current="page"], .public-panel .nav3 a[aria-current="page"] { text-decoration: none; }
.public-panel .nav a:focus-visible, .public-panel .nav2 a:focus-visible, .public-panel .nav3 a:focus-visible { outline: 2px solid #b69a69; outline-offset: 2px; }
/* Keep submenu text indented, but align its full highlight with the category above.
   Only link boxes move; search controls and nested download lists keep their offsets. */
.public-panel .nav > li > ul > li > a { box-sizing: border-box; width: 137px; margin-left: -18px; padding-left: 18px; }
.public-panel .nav2 > li > ul > li > a { box-sizing: border-box; width: 115px; margin-left: -3px; padding-left: 3px; }
.desktop-panel #demo3 ul { margin-left: 5px; }
.desktop-panel #demo3 > li > ul > li { margin-left: 0; margin-right: 0; }
.desktop-panel #demo3 > li > ul > li > a { box-sizing: border-box; width: 137px; margin-left: -5px; padding-left: 5px; line-height: 1.45; }
.event-schedule { width: 451px; margin: 40px 0 0 63px; color: #d5d5d5; font: 12px/1.35 serverdetails, Georgia, "Times New Roman", serif; }
.event-schedule h2 { margin: 0; padding: 0; color: #d5d5d5; text-align: center; font: normal 23px/32px serverdetails, Georgia, "Times New Roman", serif; }
.event-schedule .event-schedule-zone { margin: 58px 0 8px; padding: 0; color: #bfb8ac; text-align: center; font-size: 11px; line-height: 18px; }
.public-panel #scheduledevents { position: static; width: 100%; height: auto; table-layout: fixed; border-collapse: collapse; color: #d5d5d5; font: inherit; }
.public-panel #scheduledevents tr { text-align: left; border-bottom: 1px solid #786c5c; }
.public-panel #scheduledevents th, .public-panel #scheduledevents td { padding: 7px; vertical-align: middle; }
.public-panel #scheduledevents th { background: #2d1f17; color: #d5d5d5; font-weight: bold; font-size: 11px; }
.public-panel #scheduledevents tbody tr:nth-child(even) { background: #38271d55; }
.public-panel #scheduledevents tr:last-child { border-bottom: none; }
.public-panel #scheduledevents a { color: #c7b393; font: inherit; }
.public-panel #scheduledevents a:hover { color: #fff0d1; text-decoration: underline; }
.event-countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Low-risk interim mobile support: preserve the legacy 990px artwork layout,
   allow horizontal access, and keep the new components internally flexible.
   A true one-column public shell remains a separate TODO. */
@media (max-width: 1000px) {
    .public-panel { overflow-x: auto; margin: 0; }
}
