becd42508a6f1b304ffd836874069391a1ea0f105e8f6d4ffbe661d18bba1a68

/* =========================================================
   ROOT / RESET
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #10233f;
    line-height: 1.5;
}

/* =========================================================
   GLOBAL SITE
========================================================= */
.site-body {
    background: #f4f7fb;
    color: #10233f;
}

.site-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================================================
   HEADER
========================================================= */
.header-nav {
    background: #0f2747;
    border-bottom: 1px solid #18375f;
    box-shadow: 0 2px 10px rgba(10, 28, 52, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-logo a {
    color: #ffffff;
    text-decoration: none;
}

.header-logo a:hover {
    opacity: 0.9;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce8f7;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-link i {
    font-size: 0.95rem;
}

.header-link:hover {
    background: #17375f;
    color: #ffffff;
    transform: translateY(-1px);
}

.header-link-logout {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   HOME PAGE
========================================================= */
.home-page {
    padding-top: 36px;
    padding-bottom: 48px;
}

.home-hero {
    background: linear-gradient(135deg, #13345d 0%, #0f2747 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.12);
}

.home-hero-content {
    max-width: 720px;
}

.home-hero-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #b7d0ee;
    margin-bottom: 10px;
}

.home-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    word-break: break-word;
}

.home-hero-text {
    font-size: 1rem;
    color: #dbe8f7;
    max-width: 640px;
    line-height: 1.6;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-card {
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
}

.home-card-header {
    padding: 20px 22px 14px 22px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.home-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2747;
    line-height: 1.35;
    word-break: break-word;
}

.home-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.home-card-text {
    color: #35506f;
    font-size: 0.98rem;
    line-height: 1.6;
}

.home-statistics-summary {
    color: #284463;
    font-size: 0.98rem;
    line-height: 1.6;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
    border-radius: 12px;
    padding: 14px 16px;
    overflow-wrap: anywhere;
}

.home-date-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-date-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #17375f;
}

.home-date-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-date-input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.home-date-input:focus {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.home-date-submit-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    text-align: center;
    max-width: 100%;
}

.home-button:hover {
    transform: translateY(-1px);
}

.home-button-primary {
    background: #12345b;
    color: #ffffff;
    padding: 0 18px;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
}

.home-button-primary:hover {
    background: #173f70;
}

.home-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    background: #eef4fb;
    color: #12345b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #c9d9eb;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.08);
}

.home-button-secondary:hover {
    background: #dde9f6;
    color: #12345b;
    text-decoration: none;
}

.home-button-icon {
    width: 46px;
    min-width: 46px;
    padding: 0;
    background: #e8f0f8;
    color: #12345b;
    flex-shrink: 0;
}

.home-button-icon:hover {
    background: #d8e6f4;
}

.home-button-full-mobile {
    width: auto;
}

.home-plex-status-box {
    background: #f4f8fd;
    border: 1px solid #dce7f4;
    border-radius: 12px;
    padding: 14px 16px;
}

.home-plex-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #55718f;
    margin-bottom: 6px;
}

.home-plex-status-text {
    font-size: 0.98rem;
    color: #1a3554;
    line-height: 1.5;
}

.home-card-actions-update {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.home-card-button-update {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    background: #10233f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
}

.home-card-button-update:hover {
    background: #1b3b68;
}

/* =========================================================
   PROFILE PAGE
========================================================= */
.profile-page {
    padding-top: 36px;
    padding-bottom: 48px;
}

.profile-hero {
    background: linear-gradient(135deg, #13345d 0%, #0f2747 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.12);
}

.profile-hero-content {
    max-width: 720px;
}

.profile-hero-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #b7d0ee;
    margin-bottom: 10px;
}

.profile-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-hero-text {
    font-size: 1rem;
    color: #dbe8f7;
    max-width: 640px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
    overflow: hidden;
}

.profile-card-header {
    padding: 20px 22px 14px 22px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2747;
}

.profile-card-body {
    padding: 22px;
}

.profile-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #edf5fd;
    border: 1px solid #cfe0f1;
    color: #1d4068;
    font-size: 0.95rem;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #dce7f4;
    border-radius: 14px;
    background: #f9fbfe;
}

.profile-info-main {
    flex: 1;
}

.profile-info-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #5a7493;
    margin-bottom: 6px;
}

.profile-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #17375f;
    word-break: break-word;
}

.profile-info-action {
    flex-shrink: 0;
}

.profile-info-action-empty {
    width: 60px;
}

.profile-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #e8f0f8;
    color: #12345b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-action-link:hover {
    background: #d8e6f4;
    transform: translateY(-1px);
}

.profile-form-wrap {
    margin-top: -4px;
    padding: 20px;
    border: 1px solid #dce7f4;
    border-radius: 14px;
    background: #ffffff;
}

.profile-hidden {
    display: none;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #17375f;
}

.profile-form-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-input:focus {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.profile-form-actions {
    display: flex;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-button:hover {
    transform: translateY(-1px);
}

.profile-button-primary {
    background: #12345b;
    color: #ffffff;
    padding: 0 18px;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
}

.profile-button-primary:hover {
    background: #173f70;
}

/* =========================================================
   INDEX PAGE / LOGIN
========================================================= */
.index-body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 39, 71, 0.96) 0%, rgba(19, 52, 93, 0.94) 100%);
    color: #10233f;
}

.index-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.index-shell {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: stretch;
}

.index-brand-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 48px;
    color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
}

.index-brand-content {
    max-width: 520px;
}

.index-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #bfd5f0;
    margin-bottom: 14px;
}

.index-title {
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 16px;
}

.index-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #e0ebf8;
}

.index-login-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #d9e4f1;
    box-shadow: 0 18px 40px rgba(7, 24, 46, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.index-login-header {
    padding: 30px 30px 18px 30px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.index-login-title {
    font-size: 1.7rem;
    color: #0f2747;
    margin-bottom: 8px;
}

.index-login-subtitle {
    color: #5a7493;
    font-size: 0.96rem;
}

.index-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.index-form-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: stretch;
    border: 1px solid #bfd0e4;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.index-form-row:focus-within {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.index-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
    color: #12345b;
    font-size: 1rem;
}

.index-form-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 0.98rem;
    color: #10233f;
    background: #ffffff;
}

.index-form-input::placeholder {
    color: #7d93ad;
}

.index-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.index-login-button,
.index-register-button {
    width: 50%;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.index-login-button {
    background: #5f7085;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(60, 78, 99, 0.18);
}

.index-login-button:hover {
    background: #526274;
    transform: translateY(-1px);
}

.index-register-button {
    background: #eef4fb;
    color: #12345b;
    border: 1px solid #cfdbea;
    box-shadow: 0 8px 18px rgba(18, 52, 91, 0.08);
}

.index-register-button:hover {
    background: #e3edf8;
    transform: translateY(-1px);
}

.index-info-box {
    margin: 0 30px 30px 30px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
}

.index-info-copy {
    color: #12345b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.index-info-text {
    color: #35506f;
    font-size: 0.94rem;
    margin-bottom: 10px;
}

.index-privacy-link {
    border: none;
    background: none;
    color: #12345b;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.index-privacy-link:hover {
    color: #173f70;
}

.index-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    padding: 24px;
}

.index-modal.index-modal-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.index-modal-content {
    width: 100%;
    max-width: 720px;
    margin-top: 6vh;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #d9e4f1;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
    padding: 28px;
}

.index-modal-title {
    color: #0f2747;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.index-modal-text {
    color: #284463;
    font-size: 0.96rem;
    line-height: 1.7;
}

.index-modal-text p,
.index-modal-text ul {
    margin-bottom: 14px;
}

.index-modal-text ul {
    padding-left: 22px;
}

.index-modal-close-button {
    margin-top: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #12345b;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.index-modal-close-button:hover {
    background: #173f70;
    transform: translateY(-1px);
}

/* =========================================================
   LOGS PAGE
========================================================= */
.logs-page {
    padding-top: 36px;
    padding-bottom: 48px;
}

.logs-hero {
    background: linear-gradient(135deg, #13345d 0%, #0f2747 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.12);
}

.logs-hero-content {
    max-width: 720px;
}

.logs-hero-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #b7d0ee;
    margin-bottom: 10px;
}

.logs-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.logs-hero-text {
    font-size: 1rem;
    color: #dbe8f7;
    max-width: 640px;
}

.logs-card {
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.logs-card-header {
    padding: 20px 22px 14px 22px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.logs-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2747;
}

.logs-card-body {
    padding: 22px;
}

.logs-card-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logs-import-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #12345b;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.logs-import-link:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.logs-search-form {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.logs-search-input-wrap {
    flex: 1;
    min-width: 280px;
}

.logs-search-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logs-search-input:focus {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.logs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.logs-button:hover {
    transform: translateY(-1px);
}

.logs-button-primary {
    background: #12345b;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
}

.logs-button-primary:hover {
    background: #173f70;
}

.logs-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e7eef7;
}

.logs-period-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logs-period-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d6dee8;
    background: #f0f3f8;
    text-decoration: none;
    color: #17375f;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.logs-period-chip:hover {
    background: #e3ebf5;
}

.logs-period-chip-active {
    background: #12345b;
    color: #ffffff;
    border-color: #12345b;
}

.logs-stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logs-stat-item,
.logs-stat-empty {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
    color: #284463;
    font-size: 0.9rem;
    font-weight: 600;
}

.logs-table-card {
    margin-bottom: 0;
}

.logs-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.92rem;
}

.logs-table th,
.logs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e7eef7;
    text-align: left;
    vertical-align: middle;
    color: #17375f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logs-table th {
    background: #f9fbfe;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f2747;
}

.logs-table tbody tr:hover {
    background: #fbfdff;
}

.logs-sort-link {
    color: #0f2747;
    text-decoration: none;
}

.logs-sort-link:hover {
    color: #173f70;
}

.logs-table-trunc {
    max-width: 180px;
}

.logs-cell-button {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eef2f7;
    color: #17375f;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logs-cell-button:hover {
    background: #dde6f0;
}

.logs-pagination {
    padding: 18px 22px 22px 22px;
}

.logs-pagination-text {
    color: #4c6786;
    font-size: 0.94rem;
}

.logs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 23, 42, 0.48);
    z-index: 9999;
}

.logs-modal:target {
    display: block;
}

.logs-modal-box {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    width: min(820px, 92vw);
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    padding: 24px;
}

.logs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    text-decoration: none;
    font-size: 1rem;
    background: #eef2f7;
    color: #17375f;
    padding: 8px 11px;
    border-radius: 10px;
}

.logs-modal-close:hover {
    background: #dde6f0;
}

.logs-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2747;
    margin-bottom: 14px;
    padding-right: 48px;
}

.logs-modal-value {
    color: #284463;
    font-size: 0.96rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
}

/* =========================================================
   SHARE PAGE
========================================================= */
.share-page {
    padding-top: 36px;
    padding-bottom: 48px;
}

.share-hero {
    background: linear-gradient(135deg, #13345d 0%, #0f2747 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.12);
}

.share-hero-content {
    max-width: 720px;
}

.share-hero-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #b7d0ee;
    margin-bottom: 10px;
}

.share-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    word-break: break-word;
}

.share-hero-text {
    font-size: 1rem;
    color: #dbe8f7;
    max-width: 640px;
    line-height: 1.6;
}

.share-card {
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
    overflow: hidden;
    min-width: 0;
}

.share-card-header {
    padding: 20px 22px 14px 22px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.share-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2747;
    line-height: 1.35;
}

.share-card-body {
    padding: 22px;
    min-width: 0;
}

.share-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid;
}

.share-alert-success {
    background: #edf5fd;
    border-color: #cfe0f1;
    color: #1d4068;
}

.share-alert-error {
    background: #fff1f1;
    border-color: #f0c7c7;
    color: #8a2f2f;
}

.share-path-card {
    margin-bottom: 24px;
}

.share-path-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.share-path-content {
    min-width: 0;
    width: 100%;
}

.share-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.share-breadcrumb-link {
    color: #12345b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-word;
}

.share-breadcrumb-link:hover {
    color: #173f70;
    text-decoration: underline;
}

.share-breadcrumb-separator {
    color: #6c86a3;
    font-weight: 700;
}

.share-back-wrap {
    margin-top: 6px;
}

.share-back-link,
.share-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #eef4fb;
    color: #12345b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.share-back-link:hover,
.share-open-link:hover {
    background: #dde9f6;
    transform: translateY(-1px);
}

.share-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.share-summary-grid-compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
}

.share-upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-file-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
}

.share-upload-actions {
    display: flex;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.share-button:hover {
    transform: translateY(-1px);
}

.share-button-primary {
    background: #12345b;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
}

.share-button-primary:hover {
    background: #173f70;
}

.share-button-secondary {
    background: #eef4fb;
    color: #12345b;
    border: 1px solid #c9d9eb;
    box-shadow: none;
}

.share-button-secondary:hover {
    background: #dde9f6;
}

.share-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.share-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7eef7;
}

.share-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.share-info-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #5a7493;
}

.share-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #17375f;
    text-align: right;
    overflow-wrap: anywhere;
}

.share-files-card {
    margin-bottom: 0;
}

.share-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.share-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.share-search-input {
    flex: 1;
    min-width: 260px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
    outline: none;
}

.share-search-input:focus {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.share-per-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-per-page-label {
    color: #5a7493;
    font-size: 0.92rem;
    font-weight: 700;
}

.share-per-page-select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
}

.share-clear-link {
    color: #12345b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.share-clear-link:hover {
    text-decoration: underline;
}

.share-empty-box {
    padding: 18px;
    border-radius: 12px;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
    color: #284463;
    font-size: 0.95rem;
}

.share-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.share-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.93rem;
}

.share-table th,
.share-table td {
    border-bottom: 1px solid #e7eef7;
    text-align: left;
    vertical-align: middle;
    color: #17375f;
    padding: 12px;
}

.share-table th:nth-child(1),
.share-table td:nth-child(1) {
    width: auto;
}

.share-table th:nth-child(2),
.share-table td:nth-child(2) {
    width: 110px;
    white-space: nowrap;
}

.share-table th:nth-child(3),
.share-table td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
}

.share-table th:nth-child(4),
.share-table td:nth-child(4) {
    width: 130px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.share-table th:nth-child(5),
.share-table td:nth-child(5) {
    width: 260px;
}

.share-folder-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: #12345b;
    text-decoration: none;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.share-folder-link i {
    color: #d49a00;
    flex-shrink: 0;
}

.share-folder-link:hover {
    color: #173f70;
}

.share-file-name-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.share-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #e8f0f8;
    color: #12345b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.share-download-link:hover {
    background: #d8e6f4;
    transform: translateY(-1px);
}

.share-delete-form {
    margin: 0;
}

.share-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #fbeaea;
    color: #8e2f2f;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.share-delete-button:hover {
    background: #f4d6d6;
    transform: translateY(-1px);
}

.share-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e7eef7;
}

.share-pagination-info {
    color: #5a7493;
    font-size: 0.92rem;
    font-weight: 600;
}

.share-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    min-width: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #eef4fb;
    color: #12345b;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.share-pagination-link:hover {
    background: #dde9f6;
    transform: translateY(-1px);
}

.share-pagination-link-active {
    background: #12345b;
    color: #ffffff;
}

.share-sort-link {
    color: #17375f;
    text-decoration: none;
    font-weight: 700;
}

.share-sort-link:hover {
    color: #0f2747;
    text-decoration: underline;
}

/* =========================================================
   SEARCH PAGE
========================================================= */
.search-page {
    padding-top: 36px;
    padding-bottom: 48px;
}

.search-hero {
    background: linear-gradient(135deg, #13345d 0%, #0f2747 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.12);
}

.search-hero-content {
    max-width: 720px;
}

.search-hero-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #b7d0ee;
    margin-bottom: 10px;
}

.search-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.search-hero-text {
    font-size: 1rem;
    color: #dbe8f7;
    max-width: 640px;
}

.search-card {
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.search-card-header {
    padding: 20px 22px 14px 22px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.search-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2747;
}

.search-card-body {
    padding: 22px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-form-main {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 280px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #bfd0e4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f2747;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.search-button {
    min-height: 46px;
    padding: 0 18px;
    background: #12345b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(18, 52, 91, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-button:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.search-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #284463;
    font-size: 0.94rem;
    font-weight: 600;
}

.search-summary-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
    color: #284463;
    font-size: 0.94rem;
    line-height: 1.6;
}

.search-mini-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d9e4f1;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 39, 71, 0.06);
}

.search-mini-bar-text {
    color: #284463;
    font-size: 0.94rem;
    font-weight: 600;
}

.search-toggle-button {
    background: #12345b;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-toggle-button:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.search-hidden {
    display: none;
}

.search-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.search-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.93rem;
}

.search-table thead th {
    background: #12345b;
    color: #ffffff;
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
}

.search-table tbody td {
    color: #17375f;
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
    border-bottom: 1px solid #e7eef7;
}

.search-table tbody tr:nth-child(odd) {
    background: #f9fbfe;
}

.search-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.search-table tbody tr:hover {
    background: #eef4fb;
}

.search-addr-small {
    color: #5a7493;
    font-size: 0.84rem;
}

.search-sort-link {
    color: inherit;
    text-decoration: none;
}

.search-sort-link:hover {
    text-decoration: underline;
}

.search-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.search-pager-meta {
    margin-right: auto;
    color: #5a7493;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-pager-link {
    text-decoration: none;
    padding: 9px 13px;
    background: #12345b;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-pager-link:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.search-pager-link-disabled {
    opacity: .35;
    pointer-events: none;
}

.search-raw-intro {
    margin: 0 0 12px;
    color: #5a7493;
    font-size: 0.9rem;
}

.search-raw-table td {
    text-align: left;
    vertical-align: top;
}

.search-raw-preview {
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 820px;
}

.search-raw-actions {
    white-space: nowrap;
    text-align: right;
}

.search-raw-button {
    background: #12345b;
    color: #fff;
    border: none;
    padding: 7px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.86rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-raw-button:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.search-table mark {
    background: #ffef99;
    padding: 0 2px;
    border-radius: 3px;
}

.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
}

.search-modal.search-modal-open {
    display: flex;
}

.search-modal-card {
    background: #fff;
    width: min(960px,95vw);
    max-height: 85vh;
    overflow: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    padding: 16px 18px;
}

.search-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.search-modal-title {
    font-weight: 800;
    color: #233;
}

.search-modal-close {
    border: none;
    background: #eef2f7;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #17375f;
}

.search-modal-body {
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #111;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
    .site-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .index-shell,
    .register-shell {
        grid-template-columns: 1fr;
    }

    .index-brand-panel,
    .register-brand-panel,
    .index-login-card,
    .register-card {
        border-radius: 20px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .share-summary-grid-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .header-container {
        gap: 18px;
    }

    .header-menu {
        gap: 8px;
    }

    .search-form-main {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: 100%;
    }

    .profile-info-row {
        align-items: flex-start;
    }

    .logs-card-header-actions,
    .share-toolbar,
    .search-mini-bar {
        align-items: flex-start;
    }

    .index-brand-panel,
    .register-brand-panel {
        padding: 36px;
    }

    .index-title,
    .register-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .site-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-container {
        min-height: auto;
        align-items: flex-start;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-brand {
        width: 100%;
    }

    .header-logo {
        font-size: 1.2rem;
    }

    .header-menu {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .header-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
    }

    .home-page,
    .profile-page,
    .logs-page,
    .share-page,
    .search-page {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .home-hero,
    .profile-hero,
    .logs-hero,
    .share-hero,
    .search-hero {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .home-hero-title,
    .profile-hero-title,
    .logs-hero-title,
    .share-hero-title,
    .search-hero-title {
        font-size: 1.55rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .home-card,
    .profile-card,
    .logs-card,
    .share-card,
    .search-card {
        border-radius: 14px;
    }

    .home-card-header,
    .profile-card-header,
    .logs-card-header,
    .share-card-header,
    .search-card-header {
        padding: 16px 18px 12px;
    }

    .home-card-body,
    .profile-card-body,
    .logs-card-body,
    .share-card-body,
    .search-card-body {
        padding: 18px;
    }

    .home-date-controls {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .home-date-input {
        min-width: 0;
    }

    .home-date-submit-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .home-button-full-mobile,
    .home-button-primary,
    .home-button-secondary,
    .home-card-button-update,
    .profile-action-link,
    .profile-button,
    .logs-button,
    .logs-import-link,
    .share-button,
    .search-button,
    .search-toggle-button {
        width: 100%;
    }

    .home-card-actions-update {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .profile-info-action,
    .profile-info-action-empty {
        width: 100%;
    }

    .profile-form-wrap {
        padding: 16px;
    }

    .profile-form-actions {
        width: 100%;
    }

    .index-page,
    .register-page {
        padding: 20px 14px;
        align-items: stretch;
    }

    .index-shell,
    .register-shell {
        gap: 20px;
    }

    .index-brand-panel,
    .register-brand-panel {
        padding: 28px 22px;
    }

    .index-title,
    .register-title {
        font-size: 2rem;
    }

    .index-login-header,
    .register-header,
    .index-form,
    .register-form,
    .index-info-box,
    .register-info-box {
        padding-left: 22px;
        padding-right: 22px;
    }

    .index-login-header,
    .register-header {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .index-form,
    .register-form {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .index-info-box,
    .register-info-box {
        margin-left: 22px;
        margin-right: 22px;
    }

    .register-alert {
        margin-left: 22px;
        margin-right: 22px;
    }

    .index-form-actions {
        flex-direction: column;
    }

    .index-login-button,
    .index-register-button {
        width: 100%;
    }

    .logs-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-search-input-wrap {
        min-width: 100%;
    }

    .logs-toolbar {
        gap: 14px;
    }

    .logs-period-list,
    .logs-stats-list {
        gap: 8px;
    }

    .logs-modal-box {
        top: 4%;
        width: 94vw;
        padding: 20px;
    }

    .share-summary-grid,
    .share-summary-grid-compact {
        grid-template-columns: 1fr;
    }

    .share-upload-actions {
        width: 100%;
    }

    .share-info-row {
        flex-direction: column;
    }

    .share-info-value {
        text-align: left;
    }

    .share-path-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .share-search-form,
    .share-per-page-form {
        width: 100%;
    }

    .share-search-input {
        min-width: 100%;
    }

    .share-per-page-form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .share-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-mini-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-pager {
        flex-direction: column;
        align-items: stretch;
    }

    .search-pager-meta {
        margin-right: 0;
    }

    .search-pager-link {
        width: 100%;
        text-align: center;
    }

    .search-modal-card {
        width: 94vw;
        padding: 14px;
    }

    .search-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .index-page,
    .register-page {
        padding: 18px 12px;
    }

    .index-brand-panel,
    .register-brand-panel {
        padding: 22px 18px;
    }

    .index-login-header,
    .register-header,
    .index-form,
    .register-form,
    .index-info-box,
    .register-info-box {
        padding-left: 18px;
        padding-right: 18px;
    }

    .index-info-box,
    .register-info-box {
        margin-left: 18px;
        margin-right: 18px;
    }

    .register-alert {
        margin-left: 18px;
        margin-right: 18px;
    }

    .index-form-row,
    .register-form-row {
        grid-template-columns: 50px 1fr;
    }

    .index-title,
    .register-title {
        font-size: 1.75rem;
    }

    .index-text,
    .register-text {
        font-size: 0.96rem;
    }
}

@media (max-width: 480px) {
    .site-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-container {
        gap: 12px;
    }

    .header-logo {
        font-size: 1.1rem;
    }

    .header-link {
        font-size: 0.92rem;
        padding: 10px 12px;
    }

    .home-hero,
    .profile-hero,
    .logs-hero,
    .share-hero,
    .search-hero {
        padding: 18px 16px;
    }

    .home-hero-title,
    .profile-hero-title,
    .logs-hero-title,
    .share-hero-title,
    .search-hero-title {
        font-size: 1.35rem;
    }

    .home-hero-text,
    .profile-hero-text,
    .logs-hero-text,
    .share-hero-text,
    .search-hero-text,
    .home-card-text,
    .home-statistics-summary,
    .home-plex-status-text,
    .profile-info-value,
    .logs-pagination-text,
    .search-summary-box,
    .share-info-value {
        font-size: 0.95rem;
    }

    .home-card-header,
    .profile-card-header,
    .logs-card-header,
    .share-card-header,
    .search-card-header {
        padding: 14px 16px 10px;
    }

    .home-card-body,
    .profile-card-body,
    .logs-card-body,
    .share-card-body,
    .search-card-body {
        padding: 16px;
    }

    .home-card-body {
        gap: 14px;
    }

    .home-date-controls {
        gap: 8px;
    }

    .home-button-icon {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .home-date-input,
    .home-button,
    .home-button-secondary,
    .home-card-button-update,
    .profile-form-input,
    .profile-button,
    .logs-search-input,
    .logs-button,
    .logs-import-link,
    .share-search-input,
    .share-button,
    .share-per-page-select,
    .share-file-input,
    .search-input,
    .search-button,
    .search-toggle-button {
        min-height: 44px;
    }

    .profile-info-row {
        padding: 14px;
        gap: 14px;
    }

    .profile-form-wrap {
        padding: 14px;
    }

    .index-brand-panel,
    .register-brand-panel {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .index-login-card,
    .register-card {
        border-radius: 16px;
    }

    .index-login-header,
    .register-header,
    .index-form,
    .register-form,
    .index-info-box,
    .register-info-box {
        padding-left: 16px;
        padding-right: 16px;
    }

    .index-info-box,
    .register-info-box {
        margin-left: 16px;
        margin-right: 16px;
    }

    .register-alert {
        margin-left: 16px;
        margin-right: 16px;
    }

    .index-login-title,
    .register-card-title {
        font-size: 1.35rem;
    }

    .index-login-subtitle,
    .register-card-subtitle {
        font-size: 0.92rem;
    }

    .logs-card-header-actions,
    .search-mini-bar,
    .share-toolbar {
        gap: 12px;
    }

    .logs-period-chip,
    .logs-stat-item,
    .logs-stat-empty,
    .share-pagination-link,
    .search-pager-link {
        font-size: 0.86rem;
    }

    .logs-modal-box {
        width: 96vw;
        padding: 16px;
    }

    .logs-modal-title {
        font-size: 1rem;
    }

    .share-pagination-links,
    .search-pager {
        gap: 8px;
    }

    .share-pagination-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0 10px;
    }

    .search-modal {
        padding: 10px;
    }

    .search-modal-card {
        width: 100%;
        max-height: 90vh;
        padding: 12px;
    }

    .search-modal-body,
    .search-raw-preview {
        font-size: 11px;
    }
}

/* =========================================================
   REGISTER PAGE
========================================================= */
.register-body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 39, 71, 0.96) 0%, rgba(19, 52, 93, 0.94) 100%);
    color: #10233f;
}

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.register-shell {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: stretch;
}

.register-brand-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 48px;
    color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
}

.register-brand-content {
    max-width: 520px;
}

.register-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #bfd5f0;
    margin-bottom: 14px;
}

.register-title {
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 16px;
}

.register-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #e0ebf8;
}

.register-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #d9e4f1;
    box-shadow: 0 18px 40px rgba(7, 24, 46, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.register-header {
    padding: 30px 30px 18px 30px;
    border-bottom: 1px solid #e7eef7;
    background: #f9fbfe;
}

.register-card-title {
    font-size: 1.7rem;
    color: #0f2747;
    margin-bottom: 8px;
}

.register-card-subtitle {
    color: #5a7493;
    font-size: 0.96rem;
}

.register-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-form-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: stretch;
    border: 1px solid #bfd0e4;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.register-form-row:focus-within {
    border-color: #1c4f87;
    box-shadow: 0 0 0 3px rgba(28, 79, 135, 0.14);
}

.register-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
    color: #12345b;
    font-size: 1rem;
}

.register-form-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 0.98rem;
    color: #10233f;
    background: #ffffff;
}

.register-form-input::placeholder {
    color: #7d93ad;
}

.register-form-actions {
    display: flex;
    margin-top: 4px;
}

.register-submit-button {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    background: #12345b;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(18, 52, 91, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.register-submit-button:hover {
    background: #173f70;
    transform: translateY(-1px);
}

.register-info-box {
    margin: 0 30px 30px 30px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f4f8fd;
    border: 1px solid #dce7f4;
}

.register-info-copy {
    color: #12345b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.register-info-text {
    color: #35506f;
    font-size: 0.94rem;
    margin-bottom: 10px;
}

.register-back-link {
    color: #12345b;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: underline;
}

.register-back-link:hover {
    color: #173f70;
}

.register-alert {
    margin: 24px 30px 0 30px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.register-alert-error {
    background: #fff1f1;
    border: 1px solid #efc2c2;
    color: #9f1f1f;
}

.register-alert-success {
    background: #eefaf1;
    border: 1px solid #bfe4c8;
    color: #1d6b34;
}

.register-alert-link-wrap {
    margin-top: 8px;
}

.register-alert-link {
    color: #1d6b34;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .register-shell {
        grid-template-columns: 1fr;
    }

    .register-brand-panel,
    .register-card {
        border-radius: 20px;
    }

    .register-brand-panel {
        padding: 32px;
    }

    .register-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 560px) {
    .register-page {
        padding: 18px 12px;
    }

    .register-brand-panel,
    .register-header,
    .register-form,
    .register-info-box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .register-form-row {
        grid-template-columns: 50px 1fr;
    }
}