/* Notice Board Preferences Modal Styles */

#noticePrefModal.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.18s;
}
#noticePrefModal.active {
    display: block;
}
#noticePrefModal .modal-content {
    background: #f8fafc;
    margin: 4% auto;
    padding: 2.2em 2.2em 2em 2.2em;
    border-radius: 18px;
    max-width: 480px;
    width: 97%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(97,170,255,0.08);
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    border: 1.5px solid #e0e6ef;
    animation: fadeIn 0.18s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#noticePrefModal .close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7em;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
    width: 2em; height: 2em;
    display: flex; align-items: center; justify-content: center;
}
#noticePrefModal .close-btn:hover {
    color: #fff;
    background: #359639;
}
#noticePrefModal label {
    font-weight: 500;
    color: #3a4a5d;
    margin-bottom: 0.2em;
}
#noticePrefModal select#preferred_priorities[multiple] {
    min-height: 90px;
    max-height: 180px;
    overflow-y: auto;
    border: 1.2px solid #d1dbe8;
    border-radius: 6px;
    font-size: 1em;
    background: #fff;
    margin-bottom: 0.5em;
    transition: border 0.2s, box-shadow 0.2s;
}
#noticePrefModal select#preferred_priorities[multiple]:focus {
    border-color: #47a54b;
    box-shadow: 0 0 0 2px #47a54b33;
}
#noticePrefModal input[type="checkbox"] {
    accent-color: #47a54b;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
}
#noticePrefModal .btn-primary {
    background: linear-gradient(90deg, #47a54b 60%, #359639 100%);
    color: #fff;
    border: none;
    padding: 0.7em 1.6em;
    border-radius: 24px;
    font-size: 1.13em;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(97,170,255,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
#noticePrefModal .btn-primary:hover, #noticePrefModal .btn-primary:focus {
    background: #359639;
    color: #fff;
    box-shadow: 0 4px 16px rgba(53,150,57,0.13);
}
#noticePrefModal small {
    color: #888;
    margin-bottom: 0.5em;
}
#noticePrefModal hr {
    border: none;
    border-top: 1px solid #e0e6ef;
    margin: 0.7em 0;
}
@media (max-width: 600px) {
    #noticePrefModal .modal-content {
        max-width: 99vw;
        padding: 1em 0.5em;
    }
}

/* Preferences trigger button */
.btn-secondary.notice-pref-trigger {
    background: linear-gradient(90deg, #e9ecef 60%, #d4e9d7 100%);
    color: #1a4d1a;
    border: 1.5px solid #b4bcc2;
    border-radius: 20px;
    padding: 0.7em 1.5em;
    font-size: 1.08em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    box-shadow: 0 1.5px 8px rgba(97,170,255,0.08);
}
.btn-secondary.notice-pref-trigger:hover, .btn-secondary.notice-pref-trigger:focus {
    background: linear-gradient(90deg, #d4e9d7 60%, #b4e9c7 100%);
    color: #359639;
    box-shadow: 0 4px 16px rgba(53,150,57,0.13);
}

/* Tooltip style for accessibility */
.btn-secondary.notice-pref-trigger[title]:hover:after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 110%;
    background: #222;
    color: #fff;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    font-size: 0.95em;
    white-space: nowrap;
    z-index: 3000;
    opacity: 0.95;
}

/* Option icons (if browser supports) */
#noticePrefModal select option {
    padding-left: 0.5em;
    font-size: 1em;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: #e6f4ea;
    color: #256029;
    border-radius: 16px;
    padding: 0.18em 0.7em 0.18em 0.7em;
    margin: 0 0.1em 0.1em 0;
    font-size: 0.98em;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(60,120,80,0.07);
    transition: background 0.18s;
}
.chip-close {
    background: none;
    border: none;
    color: #256029;
    font-size: 1.1em;
    margin-left: 0.3em;
    cursor: pointer;
    border-radius: 50%;
    width: 1.3em;
    height: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}
.chip-close:hover, .chip-close:focus {
    background: #cbead6;
    color: #1a3d1a;
}
button[onclick^="clearTeacherSelect"], button[onclick^="clearModuleSelect"] {
    font-size: 0.97em;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.1em 0.5em;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
button[onclick^="clearTeacherSelect"]:hover, button[onclick^="clearModuleSelect"]:hover {
    background: #f2f2f2;
    color: #256029;
}
@media (max-width: 600px) {
    .chip {
        font-size: 0.93em;
        padding: 0.13em 0.5em 0.13em 0.5em;
    }
}

.chip.dragging {
    opacity: 0.5;
    background: #b7e4c7;
}
.chip:focus {
    outline: 2px solid #359639;
    background: #d2f3e3;
    color: #1a3d1a;
    z-index: 2;
}
.chip.drop-target {
    border: 2px dashed #359639;
    background: #e0f7ef;
} 

@media (max-width: 700px) {
  .news-cards-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 1.4em;
    margin: 1.3em 0 1.8em 0;
  }
  .news-card {
    background: linear-gradient(120deg, #fafdff 70%, #f0f4fa 100%), repeating-linear-gradient(135deg, #fafdff 0 2px, #f0f4fa 3px 6px);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(44,62,80,0.15), 0 2px 12px rgba(97,170,255,0.10);
    border: 1.5px solid #e3eaf7;
    padding: 1.5em 1.3em 1.3em 1.3em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    border-left: 8px solid #3498db;
    position: relative;
    font-size: 1.06em;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s, background 0.18s;
    touch-action: manipulation;
    cursor: pointer;
    overflow: hidden;
    will-change: transform, box-shadow;
  }
  .news-card:active, .news-card:focus, .news-card:hover {
    box-shadow: 0 16px 40px rgba(44,62,80,0.22), 0 4px 16px rgba(97,170,255,0.13);
    transform: translateY(-2px) scale(1.012);
    border-color: #1976d2;
    background: linear-gradient(120deg, #fafdff 60%, #e3f2fd 100%);
  }
  .news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.13em;
    font-weight: 700;
    color: #1a3557;
    gap: 0.9em;
    margin-bottom: 0.13em;
    border-bottom: 1.5px solid #e3eaf7;
    padding-bottom: 0.3em;
  }
  .news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    color: #1976d2;
    font-size: 1.04em;
    letter-spacing: 0.01em;
    position: relative;
  }
  .news-card-author::before {
    content: '';
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    background: #3498db;
    margin-right: 0.38em;
    box-shadow: 0 0 4px #3498db55;
    vertical-align: middle;
  }
  .external-news-card .news-card-author {
    color: #7c3aed;
  }
  .external-news-card .news-card-author::before {
    background: #7c3aed;
    box-shadow: 0 0 6px #7c3aed55;
  }
  .news-card-date {
    font-size: 1em;
    color: #7b8ca6;
    font-weight: 400;
    background: #e3f2fd;
    border-radius: 8px;
    padding: 0.15em 0.8em;
    margin-left: 0.3em;
  }
  .news-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.9em;
    margin-bottom: 0.22em;
    margin-top: 0.1em;
  }
  .news-card-title {
    font-size: 1.22em;
    font-weight: 900;
    color: #1a3557;
    flex: 1;
    letter-spacing: 0.01em;
    line-height: 1.18;
    text-shadow: 0 1px 0 #fafdff, 0 2px 8px #e3f2fd44;
  }
  .news-card-priority {
    display: inline-block;
    font-size: 1.01em;
    font-weight: 900;
    border-radius: 999px;
    padding: 0.2em 1.2em;
    margin-left: 0.3em;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 16px rgba(44,62,80,0.13);
    border: 2.5px solid #e0e6ef;
    background: #f7fafb;
    color: #1976d2;
    text-transform: uppercase;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
  }
  .priority-high {
    background: #ffe0e0;
    color: #d32f2f;
    border-color: #d32f2f;
  }
  .priority-medium {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
  }
  .priority-low {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #388e3c;
  }
  .priority-kritisch, .priority-critical {
    background: linear-gradient(90deg, #ff1744 60%, #ff616f 100%);
    color: #fff;
    border-color: #ff1744;
    text-shadow: 0 1px 4px #b71c1c44;
    font-size: 1.09em;
    letter-spacing: 0.05em;
    padding: 0.2em 1.4em;
    box-shadow: 0 2px 18px #ff174422;
  }
  .priority-external {
    background: linear-gradient(90deg, #7c3aed 60%, #a78bfa 100%);
    color: #fff;
    border-color: #7c3aed;
    font-size: 1.09em;
    letter-spacing: 0.05em;
    padding: 0.2em 1.4em;
    box-shadow: 0 2px 18px #7c3aed22;
  }
  .external-news-card {
    border-left: 10px solid #7c3aed !important;
    background: linear-gradient(120deg, #f6f3ff 70%, #e3e2fd 100%) !important;
    box-shadow: 0 10px 32px rgba(124,58,237,0.13), 0 2px 12px rgba(97,170,255,0.10);
    border: 1.5px solid #e0e6ef;
  }
  .external-news-icon {
    color: #7c3aed;
    font-size: 1.22em;
    margin-right: 0.25em;
    filter: drop-shadow(0 0 8px #7c3aed88);
  }
  .news-card-content {
    color: #2d3a4a;
    font-size: 1.09em;
    margin-bottom: 0.25em;
    line-height: 1.6;
    word-break: break-word;
    padding-left: 0.12em;
    padding-top: 0.18em;
    border-bottom: 1.5px solid #e3eaf7;
    padding-bottom: 0.5em;
  }
  .news-card-meta {
    font-size: 1.01em;
    color: #7b8ca6;
    margin-bottom: 0.2em;
    padding-left: 0.12em;
    margin-top: 0.18em;
    display: flex;
    gap: 1.2em;
    align-items: center;
  }
  .news-card-checkbox {
    margin-top: 0.25em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding-left: 1.2em;
    justify-content: flex-start;
    padding-right: 0;
    z-index: 1;
  }
  .checkbox-list__item {
    margin: 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .checkbox-list__check {
    margin-left:  250px;
    margin-right: 0.1em;
    box-shadow: 0 2px 8px #e0e6ef44;
    border: 3px solid #b4bcc2;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
  }
  .checkbox-list__check:before {
    font-size: 22px;
    left: 1px;
    top: -2px;
  }
  .news-card-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.13em;
    font-weight: 900;
    border-radius: 999px;
    padding: 0.23em 1.5em 0.23em 1.1em;
    margin-left: 0.3em;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 18px rgba(44,62,80,0.13), 0 1.5px 8px #e0e6ef33;
    border: 2.5px solid #e0e6ef;
    background: linear-gradient(90deg, #f7fafb 60%, #e3eaf7 100%);
    color: #1976d2;
    text-transform: uppercase;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    position: relative;
    min-width: 3.5em;
  }
  .news-card-priority .priority-icon {
    font-size: 1.15em;
    margin-right: 0.18em;
    filter: drop-shadow(0 1px 2px #e0e6ef88);
    vertical-align: middle;
  }
  .priority-high {
    background: linear-gradient(90deg, #ffe0e0 60%, #ffd6d6 100%);
    color: #d32f2f;
    border-color: #d32f2f;
  }
  .priority-high .priority-icon {
    color: #d32f2f;
    content: '\f071'; /* fa-exclamation-triangle */
  }
  .priority-medium {
    background: linear-gradient(90deg, #e3f2fd 60%, #bbdefb 100%);
    color: #1976d2;
    border-color: #1976d2;
  }
  .priority-medium .priority-icon {
    color: #1976d2;
    content: '\f05a'; /* fa-info-circle */
  }
  .priority-low {
    background: linear-gradient(90deg, #e8f5e9 60%, #c8e6c9 100%);
    color: #388e3c;
    border-color: #388e3c;
  }
  .priority-low .priority-icon {
    color: #388e3c;
    content: '\f058'; /* fa-check-circle */
  }
  .priority-kritisch, .priority-critical {
    background: linear-gradient(90deg, #ff1744 60%, #ff616f 100%);
    color: #fff;
    border-color: #ff1744;
    text-shadow: 0 1px 4px #b71c1c44;
    font-size: 1.18em;
    letter-spacing: 0.07em;
    padding: 0.23em 1.7em 0.23em 1.2em;
    box-shadow: 0 4px 24px #ff174422;
  }
  .priority-kritisch .priority-icon, .priority-critical .priority-icon {
    color: #fff;
    content: '\f06a'; /* fa-exclamation-circle */
    filter: drop-shadow(0 0 4px #b71c1c88);
  }
  .priority-external {
    background: linear-gradient(90deg, #7c3aed 60%, #a78bfa 100%);
    color: #fff;
    border-color: #7c3aed;
    font-size: 1.18em;
    letter-spacing: 0.07em;
    padding: 0.23em 1.7em 0.23em 1.2em;
    box-shadow: 0 4px 24px #7c3aed22;
  }
  .priority-external .priority-icon {
    color: #fff;
    content: '\f0ac'; /* fa-globe */
    filter: drop-shadow(0 0 4px #7c3aed88);
  }
}

@media (max-width: 700px) {
  .news-cards-mobile {
    display: flex !important;
  }
}

@media (min-width: 701px) {
  .news-cards-mobile {
    display: none !important;
  }
} 

.mobile-hide {
  display: block;
}
@media (max-width: 700px) {
  .mobile-hide {
    display: none !important;
  }
} 

@media (max-width: 700px) {
  .priority-kritisch, .priority-critical {
    font-size: 0.98em !important;
    padding: 0.13em 0.9em 0.13em 0.7em !important;
    min-width: 2.2em !important;
    box-shadow: 0 2px 8px #ff174422 !important;
  }
  .priority-kritisch .priority-icon, .priority-critical .priority-icon {
    font-size: 0.93em !important;
    margin-right: 0.11em !important;
  }
} 

@media (max-width: 700px) {
  .news-card-priority {
    font-size: 0.98em !important;
    padding: 0.13em 0.9em 0.13em 0.7em !important;
    min-width: 2.2em !important;
    box-shadow: 0 2px 8px #e0e6ef33 !important;
  }
  .news-card-priority .priority-icon {
    font-size: 0.93em !important;
    margin-right: 0.11em !important;
  }
} 

desktop-arrow { display: inline; }
.mobile-arrow { display: none; }
@media (max-width: 700px) {
  .desktop-arrow { display: none !important; }
  .mobile-arrow { display: inline !important; }
} 

@media (max-width: 700px) {
  #noticePrefModal .modal-content {
    max-width: 99vw;
    min-width: 0;
    width: 98vw;
    padding: 1.1em 0.5em 1.1em 0.5em;
    border-radius: 10px;
    margin: 2% auto;
    box-sizing: border-box;
    min-height: 0;
    max-height: 95vh;
    overflow-y: auto;
  }
} 

@media (min-width: 801px) {
  .semester-title {
    display: inline-block;
    background: linear-gradient(90deg, #eaf3fb 60%, #b3d1f7 100%);
    color: #1a355e;
    font-size: 1.18em;
    font-weight: 800;
    padding: 0.45em 1.5em 0.45em 1.2em;
    border-radius: 1.5em;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    border: 2.5px solid #b3d1f7;
    letter-spacing: 0.04em;
    margin-top: 1.2em !important;
    margin-bottom: 0.7em;
    margin-left: 0;
    margin-right: 0;
    transition: box-shadow 0.18s, background 0.18s, border 0.18s;
  }
  .semester-title:hover {
    box-shadow: 0 4px 24px rgba(44,62,80,0.13);
    background: linear-gradient(90deg, #b3d1f7 60%, #eaf3fb 100%);
    border-color: #1976d2;
  }
} 

@media (max-width: 700px) {
  .semester-title {
    display: block;
    font-size: 1.13em;
    font-weight: 800;
    color: #1976d2;
    margin: 0.7em 0 0.3em 0;
    letter-spacing: 0.01em;
  }
} 

@media (max-width: 700px) {
  .subscription-responsive-table,
  .subscription-responsive-table table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: none !important;
  }
  .subscription-responsive-table tr,
  .subscription-responsive-table .new {
    display: block !important;
    width: 100% !important;
    background: #fafdff !important;
    margin-bottom: 1.1em;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e0e6ef22;
    padding: 0.7em 0.9em 0.7em 0.9em;
  }
  .subscription-responsive-table td {
    display: block !important;
    width: 100% !important;
    padding: 0.3em 0 0.3em 0 !important;
    border: none !important;
    background: none !important;
  }
  .subscription-responsive-table .bold {
    font-size: 1.13em;
    font-weight: 800;
    margin-bottom: 0.3em;
    margin-top: 0.7em;
    color: #1976d2;
    letter-spacing: 0.01em;
    display: block;
  }
  .subscription-responsive-table .new td:not(.bold) {
    font-size: 1.09em;
    font-weight: 700;
    color: #2d3a4a;
    margin-bottom: 0.2em;
    margin-top: 0.4em;
    display: block;
  }
  .subscription-responsive-table input[type="checkbox"] {
    width: 1.3em;
    height: 1.3em;
    accent-color: #1976d2;
    margin-right: 0.5em;
    margin-bottom: 0.2em;
  }
  .subscription-responsive-table label {
    font-size: 1.08em;
    margin-bottom: 0.3em;
    display: inline-block;
    vertical-align: middle;
    color: #2d3a4a;
  }
  .subscription-responsive-table input[type="submit"] {
    width: 100%;
    font-size: 1.13em;
    padding: 0.7em 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #47a54b 60%, #359639 100%);
    color: #fff;
    border: none;
    font-weight: 900;
    margin-top: 1.1em;
    box-shadow: 0 2px 8px #47a54b22;
    text-shadow: 0 1px 4px #35963999, 0 0.5px 0 #fff;
    letter-spacing: 0.02em;
  }
  .subscription-responsive-table p {
    font-size: 1.08em;
    margin-bottom: 0.7em;
    color: #4a5a6a;
  }
} 

@media (max-width: 700px) {
  .subscription-responsive-table .new {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #fafdff !important;
    margin-bottom: 1.1em;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e0e6ef22;
    padding: 0.7em 0.9em 0.7em 0.9em;
  }
  .subscription-responsive-table .new td {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    text-align: left !important;
  }
  .subscription-responsive-table .new td.bold {
    margin-bottom: 0.7em;
    margin-top: 0;
  }
} 

@media (max-width: 700px) {
  .subscription-responsive-table label {
    font-weight: 400 !important;
    font-size: 1.08em;
    margin-bottom: 0.3em;
    display: inline-block;
    vertical-align: middle;
    color: #2d3a4a;
    font-style: normal !important;
  }
} 

@media (max-width: 700px) {
  .subscription-responsive-table td {
    border: 1px solid #e0e6ef !important;
    border-radius: 8px;
    margin-bottom: 0.5em;
    background: #fff;
    box-shadow: 0 1px 4px #e0e6ef22;
  }
} 

@media (max-width: 700px) {
  .subscription-responsive-table label {
    border-bottom: 1px solid #e0e6ef;
    display: block;
    padding-bottom: 0.4em;
    margin-bottom: 0.4em;
  }
  /* Remove border for the last label in a cell, if needed */
  .subscription-responsive-table td label:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
} 

/* --- Legal/Public Notices Tile (Hochschulöffentliche Mitteilungen) --- */
.legal-public-notices-tile {
    margin-top: 2em;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    background: #fafbfc;
    padding: 0.7em 1.1em;
}
.legal-public-notices-tile h4 {
    color: #555;
    font-size: 1.08em;
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.legal-public-notices-tile .fa-bullhorn {
    color: #888;
    margin-right: 0.4em;
}
.legal-public-notices-tile ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.legal-public-notices-tile li {
    margin-bottom: 0.7em;
    font-size: 0.97em;
    color: #444;
    position: relative;
}
.legal-public-notices-tile .legal-public-notice-divider {
    border-bottom: 1px dashed #e0e0e0;
    margin: 0.7em 0;
    display: block;
}
.legal-public-notices-tile .legal-public-notice-author {
    color: #888;
    font-size: 0.95em;
    margin-right: 0.4em;
}
.legal-public-notices-tile .legal-public-notice-topic {
    font-weight: 500;
}
.legal-public-notices-tile .legal-public-notice-content {
    color: #666;
}
.legal-public-notices-tile .legal-public-notice-validity {
    font-size: 0.93em;
    color: #888;
} 

.notice-pref-inline-form {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.2em 0;
    background: #f7fafb;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    border: 1px solid #e0e6ef;
    padding: 1.1em 1.2em 0.7em 1.2em;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.notice-pref-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.4em;
}
.notice-pref-header i {
    font-size: 1.1em;
    color: #359639;
}
.notice-pref-header h2 {
    margin: 0;
    font-size: 1.08em;
    font-weight: 700;
    color: #2d3a4a;
    letter-spacing: 0.01em;
}
.notice-pref-desc {
    font-size: 0.97em;
    color: #4a5a6a;
    margin-bottom: 0.7em;
}
.notice-pref-form {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}
.notice-pref-group {
    display: flex;
    flex-direction: column;
    gap: 0.18em;
    max-width: 700px;
}
.notice-pref-group-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.4em;
}
.notice-pref-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
    margin-top: 0.1em;
}
.notice-pref-inline-form label {
    font-weight: 500;
    color: #3a4a5d;
    margin-bottom: 0.1em;
    font-size: 0.97em;
}
.notice-pref-inline-form input[type="text"],
.notice-pref-inline-form select[multiple] {
    padding: 0.35em 0.7em;
    border: 1px solid #d1dbe8;
    border-radius: 5px;
    font-size: 0.97em;
    background: #fff;
    min-height: 2em;
    margin-bottom: 0.15em;
}
.notice-pref-inline-form button[type="button"] {
    margin-top: 0.1em;
    align-self: flex-end;
    font-size: 0.93em;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.08em 0.4em;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
}
.notice-pref-inline-form button[type="button"]:hover {
    background: #f2f2f2;
    color: #256029;
}
.notice-pref-inline-form .btn.btn-primary {
    background: linear-gradient(90deg, #47a54b 60%, #359639 100%);
    color: #fff;
    border: none;
    padding: 0.35em 1em;
    border-radius: 14px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(97,170,255,0.09);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}
.notice-pref-inline-form .btn.btn-primary:hover, .notice-pref-inline-form .btn.btn-primary:focus {
    background: #359639;
    color: #fff;
    box-shadow: 0 2px 8px rgba(53,150,57,0.10);
}
.notice-pref-inline-form hr {
    border: none;
    border-top: 1px solid #e0e6ef;
    margin: 0.4em 0;
}
.notice-pref-form-row {
    display: flex;
    flex-direction: row;
    gap: 2em;
    flex-wrap: wrap;
    align-items: flex-start;
}
.notice-pref-form-row .notice-pref-group {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    background: #fafdff;
    border: 1.5px solid #e0e6ef;
    margin: 0;
    padding: 1.1em 1em 0.7em 1em;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    border-radius: 14px;
    transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
    display: flex;
    flex-direction: column;
    gap: 0.18em;
}
.notice-pref-form-row .notice-pref-group:not(:last-child) {
    margin-right: 2em;
}
.notice-pref-form-row .notice-pref-group:hover, .notice-pref-form-row .notice-pref-group:focus-within {
    box-shadow: 0 6px 24px rgba(44,62,80,0.13);
    border-color: #47a54b;
    background: #f4fbf7;
}
.notice-pref-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.5em;
    margin-top: 0.7em;
    align-self: flex-start;
}
.notice-pref-inline-form .btn.btn-primary {
    background: linear-gradient(90deg, #47a54b 60%, #359639 100%);
    color: #fff;
    border: none;
    padding: 0.55em 1.5em;
    border-radius: 18px;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(97,170,255,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-width: 0;
    align-self: flex-start;
    width: auto;
    max-width: none;
}
.notice-pref-inline-form .btn.btn-primary i {
    font-size: 1.15em;
}
@media (max-width: 1000px) {
    .notice-pref-form-row {
        flex-direction: column;
        gap: 1.2em;
    }
    .notice-pref-form-row .notice-pref-group {
        max-width: 100%;
        min-width: 0;
        margin-right: 0 !important;
    }
}
@media (max-width: 900px) {
    .notice-pref-inline-form {
        padding: 0.7em 0.3em 0.7em 0.3em;
    }
}
@media (max-width: 600px) {
    .notice-pref-inline-form {
        padding: 0.4em 0.1em 0.4em 0.1em;
        border-radius: 6px;
    }
    .notice-pref-header h2 {
        font-size: 0.98em;
    }
    .notice-pref-group {
        max-width: 100%;
    }
} 
.notice-pref-inline-form-container {
    position: relative;
}
#showPrefSectionInfo {
    position: absolute;
    bottom: 2.5em;
    right: 0.2em;
    color: #2d7a46;
    background: #eafaf1;
    border: 1.5px solid #47a54b;
    border-radius: 16px 16px 16px 0;
    padding: 0.55em 1.3em 0.55em 1.1em;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(71,165,75,0.10);
    z-index: 1002;
    display: none;
    align-items: flex-start;
    gap: 0.6em;
    transition: opacity 0.25s;
    opacity: 0;
    min-width: 270px;
    max-width: 340px;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
    margin-top: 0.5em;
}
#showPrefSectionInfo .fas.fa-info-circle {
    color: #47a54b;
    margin-right: 0.5em;
}
#showPrefSectionInfo .bubble-arrow {
    position: absolute;
    left: 2.2em;
    bottom: -13px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #eafaf1;
    filter: drop-shadow(0 1px 2px #47a54b22);
}
@media (max-width: 600px) {
    #showPrefSectionInfo {
        min-width: 180px;
        max-width: 98vw;
        right: 0.2em;
        left: auto;
        font-size: 0.97em;
        padding: 0.45em 0.7em 0.45em 0.7em;
    }
    #showPrefSectionInfo .bubble-arrow {
        left: 1.2em;
    }
} 

@media (max-width: 700px) {
  #mobilePrefToggleBtn {
    display: block !important;
  }
  .notice-pref-toggle-btn {
    display: none !important;
  }
}
@media (min-width: 701px) {
  #mobilePrefToggleBtn {
    display: none !important;
  }
} 

@media (max-width: 700px) {
  #noticePrefSection {
    display: none !important;
  }
} 

@media (max-width: 700px) {
  .notice-pref-form-row {
    flex-direction: column;
    gap: 1.2em;
  }
  .notice-pref-form-row .notice-pref-group {
    max-width: 100%;
    min-width: 0;
    margin-right: 0 !important;
    margin-bottom: 1.1em;
    background: #fafdff;
    border: 1.5px solid #d1dbe8;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(44,62,80,0.10);
    padding: 1.2em 0.7em 1em 0.7em;
    gap: 0.5em;
    transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
  }
  .notice-pref-form-row .notice-pref-group:active,
  .notice-pref-form-row .notice-pref-group:focus-within {
    box-shadow: 0 8px 32px rgba(44,62,80,0.16);
    border-color: #47a54b;
    background: #f4fbf7;
  }
  .notice-pref-group label,
  .notice-pref-group input,
  .notice-pref-group select,
  .notice-pref-group button {
    font-size: 1.08em;
  }
  .notice-pref-group input[type="text"],
  .notice-pref-group select[multiple] {
    min-height: 2.4em;
    padding: 0.5em 0.9em;
    font-size: 1.08em;
  }
  .notice-pref-group button[type="button"] {
    font-size: 1.05em;
    padding: 0.3em 0.9em;
    border-radius: 8px;
  }
  .notice-pref-actions {
    margin-top: 1.1em;
  }
} 

.notice-filter-active-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: #47a54b;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(53,150,57,0.18);
  border: 2px solid #fff;
  margin-left: 0.5em;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.notice-filter-active-dot[title]:hover::after,
.notice-filter-active-dot[title]:focus::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 140%;
  background: #222;
  color: #fff;
  padding: 0.4em 1em;
  border-radius: 7px;
  font-size: 1.05em;
  white-space: pre-line;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(44,62,80,0.18);
  min-width: 90px;
  max-width: 220px;
  text-align: center;
}
@media (max-width: 700px) {
  .notice-filter-active-dot[title]:hover::after,
  .notice-filter-active-dot[title]:focus::after {
    font-size: 1em;
    min-width: 70px;
    max-width: 90vw;
    left: 50%;
    top: auto;
    bottom: 140%;
    transform: translateX(-50%);
  }
} 

@media (min-width: 701px) {
  #noticeFilterActiveIndicatorMobile {
    display: none !important;
  }
  #noticeFilterActiveIndicatorDesktop {
    right: 4.2em !important;
    top: 1.60em !important;
    left: auto !important;
    transform: none !important;
  }
} 

@media (max-width: 700px) {
  #noticeFilterActiveIndicatorDesktop {
    display: none !important;
  }
} 

