#gstc-app.gstc {
	--gstc-blue: #4a5866; /* soft slate */
	--gstc-green: #4f7d63; /* muted sage */
	--gstc-green-bg: #f2f7f3;
	--gstc-red: #a65d57; /* dusty brick */
	--gstc-line: #e3e6ea;
	--gstc-muted: #6b7480;
	max-width: 640px;
	margin: 0 auto;
	padding: 8px 0 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2b3138;
	box-sizing: border-box;
}
#gstc-app *, #gstc-app *::before, #gstc-app *::after { box-sizing: border-box; }
#gstc-app button { font: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; line-height: 1.3; text-decoration: none; text-shadow: none; box-shadow: none; outline-offset: 2px; min-width: 0; height: auto; }
#gstc-app .gstc-person, #gstc-app .gstc-site, #gstc-app .gstc-cal-day { width: 100%; }
#gstc-app h2, #gstc-app h3, #gstc-app p { font-family: inherit; text-transform: none; letter-spacing: normal; }
#gstc-app button:disabled { cursor: default; }

#gstc-app .gstc-head { background: #f6f7f8; color: #2b3138; border: 1px solid var(--gstc-line); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
#gstc-app .gstc-add { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
#gstc-app .gstc-input { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--gstc-line); border-radius: 12px; font-size: 17px; }
#gstc-app .gstc-input:focus { border-color: var(--gstc-blue); outline: none; }
#gstc-app .gstc-flash { font-size: 16px; padding: 10px 14px; border-radius: 10px; background: var(--gstc-green-bg); color: var(--gstc-green); margin: 0 0 14px; }
#gstc-app .gstc-flash.is-error { background: #f8eeed; color: var(--gstc-red); }
#gstc-app .gstc-sub { font-size: 16px; color: var(--gstc-muted); margin: 18px 0 10px; font-weight: 600; }
#gstc-app .gstc-toggle { width: 100%; }
#gstc-app .gstc-toggle-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; }
#gstc-app .gstc-pill { flex: none; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: #eceff2; color: var(--gstc-muted); }
#gstc-app .gstc-pill.is-on { background: #e1ede4; color: var(--gstc-green); }
#gstc-app .gstc-company { font-size: 20px; font-weight: 600; }
#gstc-app .gstc-now { font-size: 15px; color: var(--gstc-muted); margin-top: 2px; }
#gstc-app .gstc-title { font-size: 24px; margin: 0 0 12px; }
#gstc-app .gstc-info { font-size: 17px; margin: 0 0 14px; color: var(--gstc-muted); }
#gstc-app .gstc-optional { margin-top: 22px; }
#gstc-app .gstc-section { margin-top: 28px; }
#gstc-app .gstc-empty { font-size: 17px; color: var(--gstc-muted); }

#gstc-app .gstc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
#gstc-app .gstc-person {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
	min-height: 84px; padding: 14px 16px; border: 1px solid var(--gstc-line); border-radius: 14px; background: #fff; color: inherit;
}
#gstc-app .gstc-person:hover, #gstc-app .gstc-person:focus-visible { border-color: var(--gstc-blue); outline: none; }
#gstc-app .gstc-person.is-in { border-color: #cfe0d4; background: var(--gstc-green-bg); box-shadow: inset 4px 0 0 var(--gstc-green); }
#gstc-app .gstc-person-name { font-size: 19px; font-weight: 600; }
#gstc-app .gstc-person-status { font-size: 14px; color: var(--gstc-muted); }
#gstc-app .gstc-person.is-in .gstc-person-status { color: var(--gstc-green); }

#gstc-app .gstc-back { background: none; border: 0; color: var(--gstc-blue); padding: 6px 0; margin-bottom: 8px; font-size: 16px; }
#gstc-app .gstc-sites { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
#gstc-app .gstc-site {
	display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px;
	padding: 14px 16px; border: 1px solid var(--gstc-line); border-radius: 12px; background: #fff; color: inherit;
}
#gstc-app .gstc-site.is-picked { border-color: var(--gstc-green); background: var(--gstc-green-bg); box-shadow: inset 0 0 0 1px var(--gstc-green); }
#gstc-app .gstc-site-name { font-size: 18px; font-weight: 600; }
#gstc-app .gstc-site-addr { font-size: 14px; color: var(--gstc-muted); }

#gstc-app .gstc-big { display: block; width: 100%; min-height: 64px; border: 0; border-radius: 14px; font-size: 20px; font-weight: 600; color: #fff; }
#gstc-app .gstc-in { background: var(--gstc-green); }
#gstc-app .gstc-out { background: var(--gstc-red); }
#gstc-app .gstc-ok { background: var(--gstc-blue); margin-top: 18px; }
#gstc-app .gstc-big:disabled { opacity: .55; }

#gstc-app .gstc-done { text-align: center; padding: 24px 8px; }
#gstc-app .gstc-done-icon {
	width: 64px; height: 64px; line-height: 64px; margin: 0 auto 12px; border-radius: 50%;
	background: var(--gstc-green-bg); color: var(--gstc-green); font-size: 34px; font-weight: 600;
}
#gstc-app .gstc-done.is-error .gstc-done-icon { background: #f8eeed; color: var(--gstc-red); }
#gstc-app .gstc-done-msg { font-size: 20px; margin: 0; }
#gstc-app .gstc-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding: 12px; border: 1px solid var(--gstc-line); border-radius: 12px; background: #fafafa; }
#gstc-app .gstc-owner-label { font-size: 13px; color: var(--gstc-muted); width: 100%; }
#gstc-app .gstc-manage { flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border: 1px solid #cfd4da; border-radius: 22px; background: #fff; color: #2b3138; font-size: 16px; font-weight: 500; }

/* Owner calendar */
#gstc-app .gstc-cal { margin-top: 32px; }
#gstc-app .gstc-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
#gstc-app .gstc-cal-title { margin: 0; text-align: center; font-size: 20px; }
#gstc-app .gstc-cal-arrow { flex: 0 0 auto; min-width: 64px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--gstc-line); border-radius: 20px; background: #fff; color: var(--gstc-blue); font-size: 14px; }
#gstc-app .gstc-cal-arrow:last-child { text-align: right; }
#gstc-app .gstc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
#gstc-app .gstc-cal-dow { font-size: 12px; color: var(--gstc-muted); text-align: center; padding: 2px 0 4px; }
#gstc-app .gstc-cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; padding: 6px 2px; border: 1px solid var(--gstc-line); border-radius: 10px; background: #fff; color: inherit; overflow: hidden; }
#gstc-app .gstc-cal-day:disabled { opacity: .35; }
#gstc-app .gstc-cal-day.has-work { background: var(--gstc-green-bg); border-color: #d6e6da; }
#gstc-app .gstc-cal-day.is-today .gstc-cal-num { text-decoration: underline; text-underline-offset: 3px; }
#gstc-app .gstc-cal-day.is-picked { border-color: var(--gstc-green); box-shadow: inset 0 0 0 1px var(--gstc-green); }
#gstc-app .gstc-cal-num { font-size: 15px; font-weight: 600; }
#gstc-app .gstc-cal-count { font-size: 11px; color: var(--gstc-green); line-height: 1.2; text-align: center; }
#gstc-app .gstc-cal-names { display: none; }
#gstc-app .gstc-cal-list { margin-top: 14px; }
#gstc-app .gstc-cal-row { padding: 10px 0; border-bottom: 1px solid var(--gstc-line); }
#gstc-app .gstc-cal-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#gstc-app .gstc-cal-name { font-size: 17px; font-weight: 600; }
#gstc-app .gstc-cal-hours { font-size: 17px; font-weight: 600; color: var(--gstc-green); white-space: nowrap; }
#gstc-app .gstc-cal-shift { font-size: 14px; color: var(--gstc-muted); margin-top: 2px; }
#gstc-app .gstc-cal-shift.is-auto { color: var(--gstc-red); }
#gstc-app .gstc-cal-total { padding: 10px 0; font-weight: 600; }
/* Wider screens: show first names and hours inside each day. */
@media (min-width: 600px) {
	#gstc-app .gstc-cal-day { align-items: flex-start; min-height: 86px; padding: 6px; }
	#gstc-app .gstc-cal-count { display: none; }
	#gstc-app .gstc-cal-names { display: flex; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.25; color: var(--gstc-green); text-align: left; width: 100%; }
	#gstc-app .gstc-cal-names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Owner: "Remind to sign in" under each person in Everyone else */
#gstc-app .gstc-person-wrap { display: flex; flex-direction: column; gap: 6px; }
#gstc-app .gstc-remind { align-self: flex-start; min-height: 34px; padding: 5px 14px; border: 0; border-radius: 17px; background: var(--gstc-blue); color: #fff; font-size: 14px; font-weight: 600; }
#gstc-app .gstc-remind:hover:not(:disabled) { background: #3b4753; }
#gstc-app .gstc-remind.is-sent { background: var(--gstc-green-bg); color: var(--gstc-green); }
#gstc-app .gstc-remind:disabled { cursor: default; }
#gstc-app .gstc-remind-note { font-size: 13px; color: var(--gstc-muted); padding: 0 4px; }
#gstc-app .gstc-remind-note.is-error { color: var(--gstc-red); }

/*
 * Theme-proof colours. Some themes force their own button colours with
 * !important (e.g. red text, red background on hover or tap). These keep the
 * time clock's colours in every state: normal, hover, focus and pressed.
 */
#gstc-app button, #gstc-app button:hover, #gstc-app button:focus, #gstc-app button:active { background-image: none !important; text-shadow: none !important; }
#gstc-app .gstc-person, #gstc-app .gstc-person:hover, #gstc-app .gstc-person:focus, #gstc-app .gstc-person:active,
#gstc-app .gstc-site, #gstc-app .gstc-site:hover, #gstc-app .gstc-site:focus, #gstc-app .gstc-site:active,
#gstc-app .gstc-cal-day, #gstc-app .gstc-cal-day:hover, #gstc-app .gstc-cal-day:focus, #gstc-app .gstc-cal-day:active,
#gstc-app .gstc-manage, #gstc-app .gstc-manage:hover, #gstc-app .gstc-manage:focus, #gstc-app .gstc-manage:active,
#gstc-app .gstc-cal-arrow, #gstc-app .gstc-cal-arrow:hover, #gstc-app .gstc-cal-arrow:focus, #gstc-app .gstc-cal-arrow:active { background-color: #fff !important; color: #2b3138 !important; }
#gstc-app .gstc-cal-arrow, #gstc-app .gstc-cal-arrow:hover, #gstc-app .gstc-cal-arrow:focus, #gstc-app .gstc-cal-arrow:active { color: var(--gstc-blue) !important; }
#gstc-app .gstc-person.is-in, #gstc-app .gstc-person.is-in:hover, #gstc-app .gstc-person.is-in:focus, #gstc-app .gstc-person.is-in:active,
#gstc-app .gstc-site.is-picked, #gstc-app .gstc-site.is-picked:hover, #gstc-app .gstc-site.is-picked:focus, #gstc-app .gstc-site.is-picked:active,
#gstc-app .gstc-cal-day.has-work, #gstc-app .gstc-cal-day.has-work:hover, #gstc-app .gstc-cal-day.has-work:focus, #gstc-app .gstc-cal-day.has-work:active { background-color: var(--gstc-green-bg) !important; }
#gstc-app .gstc-person:hover, #gstc-app .gstc-person:focus-visible, #gstc-app .gstc-site:hover, #gstc-app .gstc-cal-day:hover:not(:disabled) { border-color: #9aa5b1 !important; }
#gstc-app .gstc-person-name, #gstc-app .gstc-site-name, #gstc-app .gstc-cal-num, #gstc-app .gstc-cal-name { color: #2b3138 !important; }
#gstc-app .gstc-person-status, #gstc-app .gstc-site-addr { color: var(--gstc-muted) !important; }
#gstc-app .gstc-person.is-in .gstc-person-status, #gstc-app .gstc-cal-count, #gstc-app .gstc-cal-names, #gstc-app .gstc-cal-names span, #gstc-app .gstc-cal-hours { color: var(--gstc-green) !important; }
#gstc-app .gstc-toggle-row, #gstc-app .gstc-cal-shift { color: inherit !important; }
#gstc-app .gstc-pill { color: var(--gstc-muted) !important; }
#gstc-app .gstc-pill.is-on { color: var(--gstc-green) !important; }
#gstc-app .gstc-big, #gstc-app .gstc-big:hover, #gstc-app .gstc-big:focus, #gstc-app .gstc-big:active { color: #fff !important; }
#gstc-app .gstc-in, #gstc-app .gstc-in:hover, #gstc-app .gstc-in:focus, #gstc-app .gstc-in:active { background-color: var(--gstc-green) !important; }
#gstc-app .gstc-out, #gstc-app .gstc-out:hover, #gstc-app .gstc-out:focus, #gstc-app .gstc-out:active { background-color: var(--gstc-red) !important; }
#gstc-app .gstc-ok, #gstc-app .gstc-ok:hover, #gstc-app .gstc-ok:focus, #gstc-app .gstc-ok:active { background-color: var(--gstc-blue) !important; }
#gstc-app .gstc-remind, #gstc-app .gstc-remind:focus, #gstc-app .gstc-remind:active { background-color: var(--gstc-blue) !important; color: #fff !important; }
#gstc-app .gstc-remind:hover:not(:disabled) { background-color: #3b4753 !important; color: #fff !important; }
#gstc-app .gstc-remind.is-sent, #gstc-app .gstc-remind.is-sent:hover, #gstc-app .gstc-remind.is-sent:focus { background-color: var(--gstc-green-bg) !important; color: var(--gstc-green) !important; }
#gstc-app .gstc-back, #gstc-app .gstc-back:hover, #gstc-app .gstc-back:focus, #gstc-app .gstc-back:active { background-color: transparent !important; color: var(--gstc-blue) !important; border: 0 !important; }
#gstc-app .gstc-cal-day:disabled, #gstc-app .gstc-cal-day:disabled:hover { background-color: #fff !important; }
#gstc-app .gstc-big:disabled, #gstc-app .gstc-big:disabled:hover { opacity: .7 !important; color: #fff !important; }

/* Hover / tap colour for the boxes (soft sage), so it's clear they can be tapped. */
#gstc-app .gstc-person, #gstc-app .gstc-site, #gstc-app .gstc-cal-day, #gstc-app .gstc-manage, #gstc-app .gstc-cal-arrow { transition: background-color .15s, border-color .15s, box-shadow .15s; }
#gstc-app .gstc-person:hover:not(:disabled), #gstc-app .gstc-person:active:not(:disabled), #gstc-app .gstc-person:focus-visible,
#gstc-app .gstc-site:hover:not(:disabled), #gstc-app .gstc-site:active:not(:disabled), #gstc-app .gstc-site:focus-visible,
#gstc-app .gstc-cal-day:hover:not(:disabled), #gstc-app .gstc-cal-day:active:not(:disabled),
#gstc-app .gstc-manage:hover:not(:disabled), #gstc-app .gstc-manage:active:not(:disabled),
#gstc-app .gstc-cal-arrow:hover:not(:disabled), #gstc-app .gstc-cal-arrow:active:not(:disabled) {
	background-color: #e6f0e9 !important; border-color: var(--gstc-green) !important; box-shadow: 0 2px 8px rgba(79, 125, 99, .15) !important;
}
#gstc-app .gstc-person.is-in:hover:not(:disabled), #gstc-app .gstc-person.is-in:active:not(:disabled), #gstc-app .gstc-cal-day.has-work:hover:not(:disabled) { background-color: #dcebe0 !important; }
