#phc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* === Login notice === */
#phc-login-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #1e40af;
}

/* === Log Panel === */
#phc-log-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.phc-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem;
}

/* === Tabs === */
.phc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.phc-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    /*border: 1px solid #d1d5db;*/
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.phc-tab:first-child {
    border-radius: 6px 0 0 0;
}

.phc-tab:last-child {
    border-radius: 0 6px 0 0;
}

.phc-tab.active {
    color: #000 !important;
    font-weight: 600;
}

.phc-tab[data-tab="individual"].active {
    background: #faf8f8;
    /*border-color: #89785C;*/
    /*border-bottom: none;*/
}

.phc-tab[data-tab="group"].active {
    background: #fafafa;
    /*border-color: #89785C;*/
    /*border-bottom: none;*/
}

/* === Forms === */
.phc-form {
    display: none;
    padding: 1.5rem;
    /*border: 1px solid #89785C;*/
    /*border-top: none;*/
    /*border-right: none;*/
    border-radius: 0 0 6px 6px;
}
.phc-form.active { display: block; }

#phc-form-individual.active {
    background: #faf8f8;
}

#phc-form-group.active {
    background: #fafafa;
}

.phc-form-row { margin-bottom: 1rem; }

.phc-form-row label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
}

.phc-form-row .req { color: #dc2626; }

.phc-form-row input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    box-sizing: border-box;
    transition: border-color .15s;
}

.phc-form-row input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.phc-form-row--double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.phc-duration-preview {
    font-size: .85rem;
    color: #4b5563;
    background: #fafafa;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: .5rem .75rem;
    margin-bottom: 1rem;
    min-height: 2.25rem;
}

.phc-btn {
    background: #89785C !important;
    color: #fff;
    padding: .6rem 1.5rem;
    border: none;
    border-radius: 6px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.phc-btn:hover:not(:disabled) { background: #000 !important; }
.phc-btn:disabled { opacity: .6; cursor: not-allowed; }

.phc-message { margin-top: .75rem; font-size: .9rem; min-height: 1.4em; }
.phc-message.phc-success { color: #16a34a; }
.phc-message.phc-error   { color: #dc2626; }

/* Modal overlay */
.phc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.phc-modal-overlay[hidden] {
    display: none;
}

/* Modal box */
.phc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.phc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.phc-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

.phc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.phc-modal-close:hover {
    background: #f3f4f6;
    color: #111;
}

.phc-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

/* Summary bar at top of modal */
.phc-modal-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    gap: 1.5rem;
}

.phc-modal-summary strong {
    color: #111;
}

/* Individual entry cards */
.phc-entry-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.phc-entry-card:last-child {
    margin-bottom: 0;
}

.phc-entry-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.phc-entry-dot--individual { background: #E8DFD0; }
.phc-entry-dot--group      { background: #C5D8DC; }

.phc-entry-info {
    flex: 1;
}

.phc-entry-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 0.2rem;
}

.phc-entry-meta {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Welcome block */
.tp-welcome {
    margin-bottom: 1.5rem;
}

.tp-welcome-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.5rem;
}

.tp-edit-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: underline;
}

.tp-edit-link:hover {
    color: #111;
}

/* Personal stats */
.phc-my-stats {
    margin-bottom: 2rem;
}

.phc-my-stats-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1rem;
}

.phc-my-stats-boxes {
    display: flex;
    gap: 1rem;
}

.phc-my-stat-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.phc-my-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.phc-my-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Personal entry list */
.phc-my-entries {
    margin-top: 2rem;
}

.phc-my-entries-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1rem;
}

.phc-my-entries-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phc-my-entry-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.phc-my-entry-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.phc-my-entry-dot--individual { background: #E8DFD0 !important; }
.phc-my-entry-dot--group      { background: #C5D8DC !important; }

.phc-my-entry-info {
    flex: 1;
}

.phc-my-entry-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 0.2rem;
}

.phc-my-entry-meta {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
}

.phc-my-entry-hours {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    white-space: nowrap;
}

.phc-my-entries-empty {
    color: #6b7280;
    font-size: 0.9rem;
}

.phc-my-entries-empty a {
    color: #3b82f6;
    text-decoration: underline;
}

/* city/state edits */
.phc-location-row {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.phc-location-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.phc-location-value {
    color: #111;
    /*font-size: 0.95rem;*/
}
.phc-location-edit {
    font-size: 0.78rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}

.phc-location-edit:hover { color: #111; }

.phc-location-inputs-inner {
    display: flex;
    gap: 0.75rem;
    max-width: 320px;
}

.phc-location-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phc-location-field input {
    width: 100%;
}

.phc-location-field:first-child {
    flex: 2;
}

.phc-location-field:last-child {
    flex: 1;
}

.phc-location-field small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.phc-calendar-key {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
	margin-bottom: 1.25rem;
    font-family: 'Corporate A Regular', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #3a3a3a;
}

.phc-key-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phc-key-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.phc-key-dot--individual {
    background-color: #E8DFD0;
}

.phc-key-dot--group {
    background-color: #C5D8DC;
}

.phc-key-text {
    font-family: 'Corporate A Regular', serif;
    letter-spacing: 0.08em;
}

/* homepage stats */
.phc-stat--hours {
	font-family: 'Corporate A Regular', serif !important;
	font-size: 55px !important;
	color: #89785C !important;
	font-weight: 700 !important;
	display: inline-block !important;
	text-align: center !important;
}

.phc-stat--prayed {
	font-family: 'Corporate A Regular', serif !important;
	font-size: 25px !important;
	font-weight: 600 !important;
	}