*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #1a56db;
    --blue-light: #e8effc;
    --green: #057a55;
    --green-light: #def7ec;
    --red: #c81e1e;
    --red-light: #fde8e8;
    --yellow: #c27803;
    --yellow-light: #fef3c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px 12px;
    position: sticky;
    top: 0;
    background: var(--gray-50);
    z-index: 10;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    transition: background 0.3s;
    flex-shrink: 0;
}

.conn-dot.offline {
    background: var(--red);
}

.conn-dot.connecting {
    background: var(--yellow);
    animation: pulse 0.8s ease-in-out infinite;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
}

.btn-small {
    font-size: 0.8rem;
    padding: 6px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 20px;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-small:hover {
    background: var(--gray-100);
}

.btn-small:active {
    background: var(--gray-200);
}

/* --- Sound toggle --- */
.sound-checkbox {
    display: none;
}

.sound-label {
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
    line-height: 1;
}

.sound-checkbox:checked + .sound-label {
    opacity: 1;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    margin-bottom: 12px;
}

.tab {
    flex: 1;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: white;
    color: var(--gray-500);
    transition: all 0.15s;
    text-align: center;
}

.tab.active {
    background: var(--blue);
    color: white;
}

.tab:hover:not(.active) {
    background: var(--gray-100);
}

/* --- Status bar --- */
.status-bar {
    min-height: 20px;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    padding: 0 4px;
}

/* --- Date Navigator --- */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.nav-arrow {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50%;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--gray-100);
}

.nav-arrow:active {
    background: var(--gray-200);
}

.date-display {
    position: relative;
}

#date-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    padding: 8px 14px;
    cursor: pointer;
    display: block;
    user-select: none;
}

#date-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- Mini Month --- */
.mini-month {
    background: white;
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    display: none;
}

.mini-month.open {
    display: block;
}

.mini-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#mm-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
}

.mm-nav {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mm-nav:hover {
    background: var(--gray-100);
}

.mini-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.mm-day-header {
    font-size: 0.68rem;
    color: var(--gray-500);
    font-weight: 600;
    padding: 4px 0;
}

.mm-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.12s;
    position: relative;
}

.mm-day:hover {
    background: var(--gray-100);
}

.mm-day.other-month {
    color: var(--gray-300);
    cursor: default;
}

.mm-day.today {
    font-weight: 800;
    box-shadow: inset 0 0 0 2px var(--blue);
}

.mm-day.selected {
    background: var(--blue);
    color: white;
    font-weight: 700;
}

.mm-day.selected.today {
    box-shadow: inset 0 0 0 2px white;
}

.mm-day.has-visits:not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
}

/* --- Timeline --- */
.timeline-container {
    background: white;
    border-radius: var(--radius);
    padding: 14px 14px 10px;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
}

.timeline-container h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.timeline {
    position: relative;
    min-height: 38px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.timeline-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.timeline-block {
    position: absolute;
    border-radius: 4px;
    opacity: 0.85;
    min-width: 4px;
    z-index: 1;
}

.timeline-now {
    position: relative;
    height: 0;
    z-index: 2;
    pointer-events: none;
    display: none;
}

.timeline-now.visible {
    display: block;
}

.timeline-now::after {
    content: '';
    position: absolute;
    top: -40px;
    width: 2px;
    height: 46px;
    background: var(--red);
    opacity: 0.7;
    border-radius: 1px;
}

.visitor-count {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 6px;
    margin-top: -4px;
    padding: 0 2px;
    min-height: 18px;
}

.timeline-hours {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-top: 4px;
    padding: 0 1px;
}

/* --- Booking Form --- */
.booking-form {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
}

.booking-form h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row label {
    width: 72px;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-row input[type="time"] {
    width: 130px;
    padding: 8px 10px;
    font-size: 1rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-900);
}

.form-row input[type="date"] {
    width: 160px;
    padding: 8px 10px;
    font-size: 1rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-900);
}

.form-row input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    font-size: 1rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-900);
}

.form-row input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

/* --- Autocomplete --- */
.autocomplete-wrapper {
    position: relative;
    flex: 1;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.autocomplete-dropdown.open {
    display: block;
}

.autocomplete-item {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.1s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--blue-light);
    color: var(--blue);
}

.autocomplete-item .hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-left: 8px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    background: var(--blue);
    color: white;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #1a4bc4;
}

.btn-primary:active {
    background: #1640aa;
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.form-message {
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
}

.form-message.error {
    display: block;
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #f5c6c6;
}

.form-message.success {
    display: block;
    background: var(--green-light);
    color: var(--green);
    border: 1px solid #b7e4cf;
}

.form-message.warning {
    display: block;
    background: var(--yellow-light);
    color: var(--yellow);
    border: 1px solid #fde8a8;
}

.btn-ics {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
    transition: all 0.2s;
    text-align: center;
}

.btn-ics:disabled:hover {
    background: var(--gray-100);
}

.btn-ics:enabled {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
    cursor: pointer;
}

.btn-ics:enabled:hover {
    background: var(--green);
    color: white;
}

/* --- Visit Lists --- */
.visits-section {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
}

.visits-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.visit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-msg {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-align: center;
    padding: 16px 0;
}

.visit-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.visit-card .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.visit-card .info {
    flex: 1;
    min-width: 0;
}

.visit-card .info .name {
    font-weight: 700;
    font-size: 0.95rem;
}

.visit-card .info .time {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.visit-card .info .note-line {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 2px;
}

.visit-card .cancel-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--red);
    border-radius: 6px;
    background: white;
    color: var(--red);
    cursor: pointer;
    transition: all 0.15s;
}

.visit-card .cancel-btn:hover {
    background: var(--red-light);
}

.visit-card .cancel-btn:active {
    background: var(--red);
    color: white;
}

.visit-card .release-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: white;
    color: var(--green);
    cursor: pointer;
    transition: all 0.15s;
}

.visit-card .release-btn:hover {
    background: var(--green-light);
}

.visit-card .release-btn:active {
    background: var(--green);
    color: white;
}

.ics-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    padding: 2px;
}

.ics-icon:hover {
    opacity: 1;
}

.visit-card .past-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-style: italic;
}

/* --- Status Updates --- */
.status-section {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
}

.status-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.status-hint {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-style: italic;
}

.status-time-options {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-700);
    cursor: pointer;
    flex-wrap: wrap;
}

.status-radio input[type="radio"] {
    accent-color: var(--blue);
    flex-shrink: 0;
}

.status-radio span {
    flex-shrink: 0;
    font-weight: 500;
}

.status-select {
    padding: 4px 8px;
    font-size: 0.82rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    color: var(--gray-900);
    min-width: 0;
    flex: 1;
}

.status-time {
    width: 180px;
    padding: 4px 8px;
    font-size: 0.82rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    color: var(--gray-900);
}

.status-time:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.status-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.status-section textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-900);
    resize: vertical;
    margin-bottom: 8px;
}

.status-section textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.status-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-form-row input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 6px 8px;
    font-size: 0.85rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-900);
}

.status-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-entry {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.status-entry .status-msg {
    font-size: 0.9rem;
    color: var(--gray-900);
}

.status-entry .status-meta {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* --- Rules & Past Cards --- */
.rules-card,
.past-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--gray-200);
}

.rules-card summary,
.past-card summary {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 2px 0;
    list-style: none;
}

.rules-card summary::-webkit-details-marker,
.past-card summary::-webkit-details-marker {
    display: none;
}

.rules-card ul {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.rules-card li {
    margin-bottom: 4px;
    padding-left: 2px;
}

.hospital-info p:first-child,
.hospital-info h4:first-child {
    margin-top: 8px;
}

.hospital-info p,
.hospital-info h4 {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.hospital-info h4 {
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hospital-info a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.hospital-info a:hover {
    text-decoration: underline;
}

.hospital-info ul {
    margin-top: 4px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.hospital-info li {
    margin-bottom: 3px;
    padding-left: 2px;
}

/* --- Footer --- */
footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--gray-500);
    padding: 12px 0 8px;
}

/* --- Skeleton / Loading --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.2s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 400px) {
    body {
        padding: 0 8px 32px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .form-row label {
        width: auto;
    }

    .form-row input[type="time"] {
        width: 100%;
    }
}

/* --- Dark Mode --- */
body.dark {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-500: #9ca3af;
    --gray-700: #d1d5db;
    --gray-900: #f9fafb;
    --blue-light: #1e3a5f;
    --green-light: #064e3b;
    --red-light: #7f1d1d;
    --yellow-light: #78350f;
    --red: #fca5a5;
    --green: #86efac;
    --yellow: #fde68a;
}

body.dark .timeline-container,
body.dark .booking-form,
body.dark .visits-section,
body.dark .rules-card,
body.dark .past-card,
body.dark .mini-month,
body.dark .nav-arrow,
body.dark .mm-nav {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

body.dark .form-row input[type="text"],
body.dark .form-row input[type="time"],
body.dark .form-row input[type="date"] {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

body.dark .autocomplete-dropdown {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

body.dark .autocomplete-item:hover,
body.dark .autocomplete-item.active {
    background: var(--blue-light);
}

body.dark .visit-card {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

body.dark .tab {
    background: var(--gray-100);
}

body.dark .tab:hover:not(.active) {
    background: var(--gray-200);
}

body.dark .btn-small {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

body.dark .btn-small:hover {
    background: var(--gray-200);
}

body.dark .cancel-btn,
body.dark .release-btn {
    background: var(--gray-100);
}

body.dark .timeline {
    background: var(--gray-200);
}

body.dark .status-section {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

body.dark .status-section textarea,
body.dark .status-form-row input[type="text"],
body.dark .status-time {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

body.dark .status-entry {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

body.dark .status-select {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

body.dark .btn-ics:disabled {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-500);
}

body.dark .btn-ics:enabled {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
}

body.dark .btn-ics:enabled:hover {
    background: var(--green);
    color: white;
}

body.dark .autocomplete-item {
    color: var(--gray-700);
}

body.dark .mm-day {
    color: var(--gray-700);
}

body.dark .mm-day-header {
    color: var(--gray-500);
}

body.dark .form-row label {
    color: var(--gray-700);
}

body.dark .section-desc,
body.dark .status-hint {
    color: var(--gray-500);
}

body.dark .empty-msg {
    color: var(--gray-500);
}

body.dark .hospital-info a {
    color: #93c5fd;
}

body.dark .hospital-info h4 {
    color: var(--gray-500);
}

body.dark .hospital-info p,
body.dark .hospital-info li {
    color: var(--gray-700);
}

body.dark .rules-card summary,
body.dark .past-card summary {
    color: var(--gray-500);
}

body.dark .timeline-container h3,
body.dark .visits-section h3,
body.dark .booking-form h3,
body.dark .status-section h3 {
    color: var(--gray-500);
}

body.dark .visit-card .info .time,
body.dark .visit-card .info .note-line {
    color: var(--gray-500);
}

body.dark .visitor-count {
    color: var(--gray-500);
}

body.dark .form-message.error {
    background: var(--red-light);
    color: var(--red);
}

body.dark .form-message.success {
    background: var(--green-light);
    color: var(--green);
}

body.dark .form-message.warning {
    background: var(--yellow-light);
    color: var(--yellow);
}

body.dark .status-radio {
    color: var(--gray-700);
}

body.dark .details > summary {
    color: var(--gray-500);
}

body.dark .timeline-empty,
body.dark .status-bar,
body.dark footer {
    color: var(--gray-500);
}

body.dark .visit-card .past-label {
    color: var(--gray-500);
}
@media print {
    body {
        background: white;
        max-width: 100%;
        padding: 0;
    }

    header, .tabs, .date-nav, .mini-month, .booking-form,
    .rules-card summary, footer, .cancel-btn, .release-btn,
    .btn-small, .conn-dot, .form-message {
        display: none !important;
    }

    .timeline-container,
    .visits-section,
    .past-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .timeline-block {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .visit-card {
        border-bottom: 1px solid #eee;
        background: none;
    }

    .rules-card, .past-card {
        border: none;
        padding: 0;
    }

    .rules-card ul {
        font-size: 0.8rem;
    }
}
