/* styles.css */
/* Version v1.81 @ 1:30 PM 28/5/25 - Added styles for custom Leaflet timezone band toggle control. */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #000; /* Fallback color */
    background-image: url('tileBG.jpg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-header-container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    background-image: url('ceiling.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-container h1 {
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    background-color: rgba(26, 26, 26, 0.85);
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 1em;
    width: auto;
    margin-right: 0.5em;
    vertical-align: middle;
}

.main-content-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.overlay-content-host {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0px;
}

#map-background-container,
#meetingPlannerContainer {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    border: none;
    overflow: hidden;
    flex-shrink: 0;
}

.screen-frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

#map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
}

.leaflet-container:focus {
    outline: 0;
}

#meetingPlannerContainer {
    background-color: transparent;
    box-sizing: border-box;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plannerContentWrapper {
    position: relative;
    z-index: 2;
    width: 93%;
    height: 93%;
    background-color: rgba(20, 20, 20, 0.95);
    padding: 10px;
    box-sizing: border-box;
    color: #f0f0f0;
    overflow-y: auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}


.app-controls-strip {
    position: relative;
    width: auto;
    max-width: 550px;
    background-color: rgba(26, 26, 26, 0.85);
    color: #f0f0f0;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 1;
    min-width: 0;
}


#searchResultsAppControls {
    position: fixed;
    z-index: 1050;
    max-height: 150px;
    overflow-y: auto;
    background: #333;
    color: #ccc;
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}
#searchResultsAppControls div {
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
#searchResultsAppControls div:hover,
#searchResultsAppControls div.search-result-item-hover {
    background-color: #444;
    color: #ffffff;
    font-weight: bold;
}

#modalBackdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: transparent;
    z-index: 2000;
    display: none;
}
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(40, 40, 40, 0.98);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 2010;
    display: none;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

#map-spacer-for-clocks {
    width: 100%;
    flex-shrink: 0;
}

.clocks-container-wrapper {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    background-color: transparent;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0px;
    padding-bottom: 15px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: flex-start;
}

.clocks-container-wrapper::-webkit-scrollbar {
    display: none;
}
.clocks-container-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


#clocks {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 0;
    gap: 15px;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.screen-base-wrapper {
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    margin-top: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

#screenBaseImage {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px;
    position: relative;
    z-index: 0;
    cursor: pointer;
}

.app-controls-strip > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-controls-strip label {
    color: #f0f0f0;
}
.app-controls-strip input[type="text"],
.app-controls-strip select {
    background: #2c2c2c;
    color: #f0f0f0;
    border: 1px solid #444;
    padding: 8px 10px;
    font-size: 0.9em;
}

.app-controls-strip button.app-control-button,
#plannerDateControls button,
.modal-icon-button {
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    font-size: 1.2em;
}
.app-controls-strip button.app-control-button:hover,
#plannerDateControls button:hover,
.modal-icon-button:hover {
    background-color: #2d3748;
}

.app-controls-strip button.app-control-button.app-control-button-selected {
    background-color: #2c5282;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}


.button-icon {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

#mapViewBtn, #plannerViewBtn {
    font-size: 1.4em;
    width: 38px;
    height: 38px;
    padding: 0;
    line-height: 38px;
}

.app-controls-strip input[type="text"]#citySearchAppControls {
    min-width: 100px;
    flex-grow: 1;
    flex-shrink: 1;
}
#currentBreakpointDisplayAppControls {
    display: none;
}

.custom-modal h3 {
    margin-top: 0;
    color: #64b5f6;
    text-align: center;
    margin-bottom: 15px;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close-btn:hover {
    color: #fff;
}

#instructionsModalContent ul {
    list-style-type: disc;
    padding-left: 20px;
}
#instructionsModalContent li {
    margin-bottom: 8px;
}


label { margin-right: 8px; font-size: 0.9em; }
select, input[type="text"], input[type="number"], input[type="checkbox"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2c2c2c;
    color: #f0f0f0;
    font-size: 0.9em;
    margin-bottom: 0;
    vertical-align: middle;
}
input[type="checkbox"] {
    padding: initial;
    margin-right: 5px;
}
input[type="text"]::placeholder { color: #888; }

.map-position-controls-wrapper select {
    flex-grow: 1;
}
.map-position-controls-wrapper input[type="checkbox"] {
    flex-grow: 0;
}


.clock {
    background-color: transparent;
    padding: 15px 8px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    position: relative;
    display: flex; flex-direction: column; transition: transform 0.2s ease-in-out, width 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 15;
    box-sizing: border-box;
    border: 1px solid transparent;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.clock:hover { transform: translateY(-3px); }

.clock canvas {
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none;
}

.digital-clock-display {
    position: relative;
    background-image: url('digitalface.png');
    background-color: transparent;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.digital-time-text {
    color: #00E5E5;
    font-family: 'Orbitron', 'Consolas', 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: calc(var(--digital-font-base-size, 200px) / 8.5);
    white-space: nowrap;
    padding: 5px;
    z-index: 1;
}


.clock-info strong { font-size: 1.15em; }
.clock-info span { font-size: 0.85em; color: #aaa; }
.clock input.add-person-input {
    width: calc(100% - 10px);
    margin-top: 10px;
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}
.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e57373;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: background-color 0.2s, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
    z-index: 20;
}
.close-btn:hover { background: #ef5350; }

.clock-display-toggle-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    transition: opacity 0.2s;
    z-index: 20;
    padding: 0;
}
.clock-display-toggle-btn:hover {
    opacity: 0.7;
}


.people-list {
    margin-top: 8px;
    font-size: 1.0em;
    text-align: left;
    user-select: auto;
}
.people-list.people-list-centered {
    text-align: center !important;
}
.people-list div.person-row {
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.people-list .person-name {
    color: #000000;
}
.people-list.people-list-centered div.person-row {
    justify-content: center;
}
.people-list button.remove-person-btn {
    background: none;
    border: none;
    color: #ffab91;
    cursor: pointer;
    font-size: 0.9em;
    padding: 2px 4px;
}
.people-list button.remove-person-btn:hover { color: #ff7043; }

.city-name-label-on-map {
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    white-space: nowrap;
    pointer-events: none;
    z-index: 650;
}

.timezone-band-label {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 10px;
    text-shadow: 0 0 3px #000000, 0 0 3px #000000;
    pointer-events: none;
    white-space: nowrap;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}
.leaflet-pane > .leaflet-tooltip-pane {
    z-index: 640;
}


.element-hidden {
    display: none !important;
}
.button-hidden {
    display: none !important;
}
.clock-shadow-hidden {
    box-shadow: none !important;
    filter: none !important;
}

.page-footer {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto 0 auto;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
    background-color: rgba(10, 10, 10, 0.7);
    border-top: 1px solid #333;
    border-radius: 8px 8px 0 0;
    position: relative;
    flex-shrink: 0;
}

.page-footer p {
    margin: 5px 0;
}

.footer-download-text {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.footer-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.footer-badge img {
    max-height: 40px;
    width: auto;
    margin: 5px;
    border-radius: 4px;
    transition: opacity 0.2s ease-in-out;
}

.footer-badge img:hover {
    opacity: 0.85;
}

.modal-download-text {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.modal-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}


/* --- START MEETING PLANNER STYLES (Merged) --- */
#meetingPlannerContainer table.meeting-planner-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#meetingSuggestionBox {
    padding: 10px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(45, 45, 45, 0.95);
    border: 1px solid #555;
    border-radius: 6px;
    text-align: left;
    line-height: 1.4;
    color: #f0f0f0;
    font-size: 0.9em;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
}

#meetingSuggestionBox strong {
    color: #82c9ff;
}

.city-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.city-detail {
  white-space: nowrap;
  font-size: 0.95em;
}

#meetingSuggestionBox span,
#meetingSuggestionBox em,
#meetingSuggestionBox div {
    color: #f0f0f0;
}

#meetingSuggestionBox em {
    font-size: 0.9em;
    color: #bbb;
}

.suggestion-box-btn,
.add-to-calendar-btn.copy-btn {
    font-size: 0.85em;
    padding: 5px 10px;
    background-color: #5a6678;
}
.suggestion-box-btn:hover,
.add-to-calendar-btn.copy-btn:hover {
    background-color: #3d4758;
}


#meetingPlannerContainer table.meeting-planner-table tbody {
    display: table-row-group;
}

#meetingPlannerContainer table.meeting-planner-table tr.planner-table-row {
}

#meetingPlannerContainer table.meeting-planner-table tr.planner-table-row td {
}

#meetingPlannerContainer table.meeting-planner-table th,
#meetingPlannerContainer table.meeting-planner-table td {
    padding: 8px;
    border: 1px solid #444;
    text-align: center;
    white-space: nowrap;
    color: #f0f0f0;
    box-sizing: border-box;
}

#meetingPlannerContainer table.meeting-planner-table td.your-time-cell {
    text-align: left;
    white-space: nowrap;
    font-weight: bold;
    background-color: #282828;
    color: #f0f0f0;
}

#meetingPlannerContainer table.meeting-planner-table td.your-time-cell .planner-row-btn {
    margin-left: 4px;
    vertical-align: middle;
    font-size: 0.9em;
    padding: 3px 5px;
}
.rocket-indicator {
    margin-left: 5px;
    font-size: 0.9em;
}


#meetingPlannerContainer table.meeting-planner-table th {
    color: #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 45px;
    padding: 8px;
    border: 1px solid #555;
    background-color: #2a2a2a !important;
}

#meetingPlannerContainer table.meeting-planner-table th:first-child {
    text-align: left;
}

#meetingPlannerContainer .planner-date-header {
    font-weight: bold;
    text-align: center;
    border-top: 2px solid #666;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 45px;
    z-index: 9;
    height: 30px;
    box-sizing: border-box;
    background-color: #1a1a1a !important;
}
#meetingPlannerContainer .planner-date-header td {
    color: #e0e0e0;
    padding: 6px;
    border: 1px solid #555;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    background-color: transparent !important;
}

.planner-table-row:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    cursor: pointer;
}

.planner-row-selected {
    background-color: rgba(74, 85, 104, 0.5) !important;
}
.planner-row-selected td {
    background-color: inherit !important;
}

.status-weekend { background-color: rgba(50, 50, 50, 0.5); }
.status-green { background-color: rgba(76, 175, 80, 0.3); }
.status-orange { background-color: rgba(255, 152, 0, 0.3); }
.status-off_hours { background-color: rgba(244, 67, 54, 0.3); }
.status-error { background-color: #555; color: #fdd !important; }


.planner-day-indicator {
    font-size: 0.8em;
    opacity: 0.8;
}

.no-cities-message {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

#plannerDateControls {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgb(30,30,30) !important;
    padding: 8px 10px;
    border-radius: 4px 4px 0 0;
    position: relative;
    flex-shrink: 0;
}
#plannerDateControls label {
    white-space: nowrap;
    margin-right: 5px;
}
#plannerDateControls input[type="date"] {
   flex-grow: 0;
   width: 130px;
   min-width: 120px;
}

#plannerDateControls button#togglePlannerFullscreenBtn {
    margin-left: auto;
}


button.planner-fullscreen-btn {
    margin-left: auto;
}


body.planner-active-fullscreen {
    overflow: hidden !important;
}

#meetingPlannerContainer.planner-fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 3000 !important;
    background-color: rgba(10, 10, 10, 0.98);
    padding: 0;
    display: flex;
    flex-direction: column;
}

#meetingPlannerContainer.planner-fullscreen-mode #plannerScreenFrameImage {
    display: none !important;
}

#meetingPlannerContainer.planner-fullscreen-mode #plannerContentWrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 10px;
    box-sizing: border-box;
    background-color: rgba(20, 20, 20, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#meetingPlannerContainer.planner-fullscreen-mode #plannerDateControls {
    border-radius: 0;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(40,40,40,1) !important;
    z-index: 120 !important;
    box-sizing: border-box !important;
    height: 58px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #444 !important;
}

body.planner-active-fullscreen .page-header-container,
body.planner-active-fullscreen .clocks-container-wrapper,
body.planner-active-fullscreen .screen-base-wrapper,
body.planner-active-fullscreen .page-footer {
    display: none !important;
}


/* --- STICKY HEADER FULLSCREEN STYLES --- */
#meetingPlannerContainer.planner-fullscreen-mode table.meeting-planner-table thead tr:first-child {
    position: sticky !important;
    top: 58px !important;
    z-index: 110 !important;
    background-color: #2a2a2a !important;
}

#meetingPlannerContainer.planner-fullscreen-mode .planner-date-header {
    position: sticky !important;
    top: 103px !important;
    z-index: 105 !important;
    background-color: #1a1a1a !important;
}

#meetingPlannerContainer.planner-fullscreen-mode table.meeting-planner-table thead tr:first-child th,
#meetingPlannerContainer.planner-fullscreen-mode .planner-date-header td {
    background-color: transparent !important;
    position: static !important;
}
/* --- END MEETING PLANNER STYLES --- */

#meetingPlannerContainer.planner-fullscreen-mode #togglePlannerFullscreenBtn {
    flex-shrink: 0;
}

.settings-divider {
    height: 1px;
    background-color: #555;
    margin: 15px 0;
}
.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.radio-group input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}
.radio-group label.radio-label {
    font-size: 0.9em;
    color: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 0;
}
.clock-size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.clock-size-controls .modal-icon-button {
    padding: 4px 6px;
    font-size: 1em;
}
.clock-size-controls .button-icon {
    height: 1em;
}

/* Styles for the custom Leaflet timezone band toggle control */
.leaflet-control-timezone-bands {
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    line-height: 26px; /* Adjust for border */
    text-align: center;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
.leaflet-control-timezone-bands:hover {
    background-color: #f4f4f4;
}
.leaflet-control-timezone-bands-active {
    background-color: #c7e4ff; /* Light blue when active */
    color: #0056b3;
}


@media (max-width: 640px) {

    .main-content-area {
        max-width: 100%;
    }

    .page-header-container {
        padding: 10px 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .page-header-container h1 {
        font-size: 1.4em;
        padding: 6px 10px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 10px;
        margin-right: 0;
    }
    .app-controls-strip {
        width: 100%;
        max-width: none;
        flex-shrink: 0;
        flex-wrap: nowrap !important;
        gap: 8px;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
        z-index: 5;
        justify-content: flex-start !important;
        min-width: 0;
    }
    .app-controls-strip::-webkit-scrollbar {
        display: none;
    }


    .app-controls-strip > div {
        width: auto;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .app-controls-strip input[type="text"]#citySearchAppControls {
        flex: 0 0 120px !important;
        font-size: 0.9em;
        box-sizing: border-box;
    }
    .app-controls-strip select {
        font-size: 0.9em;
        padding: 8px;
        flex-shrink: 0;
    }

    .app-controls-strip button.app-control-button,
    #plannerDateControls button {
        padding: 6px 8px;
        flex-shrink: 0;
    }

    .app-controls-strip #mapViewBtn,
    .app-controls-strip #plannerViewBtn {
        font-size: 1.4em;
        width: 38px;
        height: 38px;
        padding: 0;
        line-height: 38px;
    }

    #openLayoutModalBtn img.button-icon,
    #jumpToDateBtn img.button-icon,
    #togglePlannerFullscreenBtn img.button-icon {
        height: 1.2em;
    }


    #plannerDateControls {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px;
    }
    #plannerDateControls label {
        flex-shrink: 0;
    }
    #plannerDateControls input[type="date"] {
        flex: 0 1 130px;
        margin-bottom: 0;
    }
    #plannerDateControls button#jumpToDateBtn {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    #plannerDateControls button:not(.planner-fullscreen-btn):not(#jumpToDateBtn) {
        width: auto;
        margin-bottom: 0;
    }

    button.planner-fullscreen-btn {
        flex-shrink: 0;
        margin-top: 0;
        margin-left: auto;
    }

    #meetingPlannerContainer table.meeting-planner-table th {
    }
    #meetingPlannerContainer table.meeting-planner-table .planner-date-header {
    }
    #meetingPlannerContainer table.meeting-planner-table td {
        padding: 6px;
    }
    .add-to-calendar-btn.planner-row-btn {
        font-size: 0.9em;
        padding: 2px 4px;
        margin-left: 2px !important;
    }
    #meetingPlannerContainer table.meeting-planner-table td.your-time-cell {
        min-width: 100px;
    }


    .map-position-controls-wrapper { flex-direction: column; gap: 8px; }
    .map-position-controls-wrapper div { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 300px;}
    .map-position-controls-wrapper label { flex-basis: 50%; text-align: right;}
    .map-position-controls-wrapper input[type="number"],
    .map-position-controls-wrapper select,
    .map-position-controls-wrapper input[type="checkbox"] { flex-basis: 45%; }


    .map-position-controls-wrapper .clock-size-controls {
        flex-basis: 45%;
        justify-content: flex-start;
    }
    .map-position-controls-wrapper .radio-group {
        justify-content: flex-start;
        gap: 10px;
    }
    .map-position-controls-wrapper .radio-group label.radio-label {
        flex-basis: auto;
    }


    .clock-info {
        font-size: calc(var(--clock-info-base-font-size, 0.8em) * 1.1);
    }
    .digital-time-text {
        font-size: calc(var(--digital-font-base-size, 130px) / 7.5);
    }

    .page-footer {
        margin-top: 15px;
        font-size: 0.9em;
        padding: 10px;
        width: 100%;
    }

    .footer-badges-container {
        gap: 5px;
    }
    .footer-badge img {
        max-height: 35px;
    }
}
