/* Staff Time Tracker – staff page. Scoped to .stt-app so themes are not affected. */
.stt-app {
	--stt-ink: #1d2b3a;
	--stt-muted: #667384;
	--stt-line: #e2e6eb;
	--stt-soft: #f4f6f8;
	--stt-on: #17784a;
	--stt-on-soft: #e7f4ed;
	--stt-break: #a85f00;
	--stt-break-soft: #fdf3e2;
	--stt-off: #8a95a3;
	--stt-danger: #b42318;
	--stt-radius: 10px;
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	color: var(--stt-ink);
	font-size: 16px;
	line-height: 1.5;
}
.stt-app *, .stt-app *::before, .stt-app *::after { box-sizing: inherit; }
.stt-app h2, .stt-app h3, .stt-app p { margin: 0; }
.stt-app .stt-muted { color: var(--stt-muted); font-size: 0.875em; }

/* Header */
.stt-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.stt-hello { font-size: 1.5em; font-weight: 700; letter-spacing: -0.01em; }
.stt-link { color: var(--stt-muted); font-size: 0.9em; text-decoration: underline; text-underline-offset: 3px; }

/* Messages */
.stt-msg { padding: 12px 16px; border-radius: var(--stt-radius); margin-bottom: 16px; font-size: 0.95em; border: 1px solid; }
.stt-msg-info { background: var(--stt-soft); border-color: var(--stt-line); }
.stt-msg-success { background: var(--stt-on-soft); border-color: #b9dfc9; color: #0f5434; }
.stt-msg-warn { background: var(--stt-break-soft); border-color: #f0d3a2; color: #6e3f00; }
.stt-msg-error { background: #fdecea; border-color: #f4c3bd; color: #8a1c12; }

/* The clock – the one bold element: a status rail on the left that changes with state */
.stt-clock {
	position: relative;
	background: #fff;
	border: 1px solid var(--stt-line);
	border-left: 10px solid var(--stt-off);
	border-radius: var(--stt-radius);
	padding: 28px 28px 24px;
	transition: border-color 0.25s ease;
}
.stt-mode-on { border-left-color: var(--stt-on); }
.stt-mode-break { border-left-color: var(--stt-break); }
.stt-state { font-weight: 600; font-size: 0.95em; color: var(--stt-off); display: flex; align-items: center; gap: 8px; }
.stt-mode-on .stt-state { color: var(--stt-on); }
.stt-mode-break .stt-state { color: var(--stt-break); }
.stt-mode-on .stt-state::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
	animation: stt-pulse 2s ease-in-out infinite;
}
@keyframes stt-pulse { 50% { opacity: 0.25; } }
.stt-timer {
	font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
	font-size: clamp(2.75rem, 11vw, 4.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 6px 0 10px;
}
.stt-mode-off .stt-timer { color: #b8c0ca; }
.stt-mode-break .stt-timer { color: var(--stt-muted); }
.stt-sub { color: var(--stt-muted); font-size: 0.95em; }
.stt-sub [data-timer] { font-variant-numeric: tabular-nums; color: var(--stt-break); font-weight: 600; }
.stt-task { margin-top: 4px; font-weight: 600; }

/* Controls */
.stt-controls { margin-top: 22px; display: grid; gap: 14px; }
.stt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stt-field { display: grid; gap: 6px; font-size: 0.9em; font-weight: 600; }
.stt-field em { font-weight: 400; font-style: normal; color: var(--stt-muted); }
.stt-app .stt-field input, .stt-app .stt-field textarea {
	width: 100%; font: inherit; font-weight: 400; color: var(--stt-ink);
	padding: 11px 13px; border: 1px solid #cdd3db; border-radius: 8px; background: #fff; margin: 0;
}
.stt-app .stt-field input:focus, .stt-app .stt-field textarea:focus { outline: 2px solid var(--stt-ink); outline-offset: 1px; border-color: var(--stt-ink); }

.stt-app .stt-btn {
	appearance: none; font: inherit; font-weight: 600; cursor: pointer;
	border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; line-height: 1.2;
	background: var(--stt-soft); color: var(--stt-ink); text-transform: none; letter-spacing: normal; box-shadow: none;
}
.stt-app .stt-btn:focus-visible { outline: 3px solid #7aa7d9; outline-offset: 2px; }
.stt-app .stt-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stt-app .stt-btn-big { padding: 14px 26px; font-size: 1.05em; min-width: 150px; }
.stt-app .stt-btn-small { padding: 6px 12px; font-size: 0.875em; background: var(--stt-ink); color: #fff; margin-left: auto; white-space: nowrap; }
.stt-app .stt-btn-primary { background: var(--stt-on); color: #fff; }
.stt-app .stt-btn-primary:hover:not(:disabled) { background: #10633c; }
.stt-app .stt-btn-danger { background: #fff; color: var(--stt-danger); border-color: #e7b4ae; }
.stt-app .stt-btn-danger:hover:not(:disabled) { background: #fdecea; }
.stt-app .stt-btn-ghost { background: #fff; border-color: #cdd3db; }
.stt-app .stt-btn-ghost:hover:not(:disabled) { background: var(--stt-soft); }

/* Pre-clock-in checklist */
.stt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stt-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--stt-soft); font-size: 0.9em; }
.stt-check-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c0ca; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.stt-check.is-ok .stt-check-mark { background: var(--stt-on); border-color: var(--stt-on); color: #fff; }
.stt-check-text { flex: 1; }
.stt-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-size: 0.9em; }

/* Totals */
.stt-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stt-totals > div { background: var(--stt-soft); border-radius: var(--stt-radius); padding: 14px 18px; }
.stt-total { font-size: 1.4em; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Lists */
.stt-block { margin-top: 28px; }
.stt-block h3 { font-size: 1em; font-weight: 700; margin-bottom: 10px; }
.stt-recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stt-line); }
.stt-recent li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--stt-line); font-size: 0.95em; align-items: baseline; }
.stt-recent-task { grid-column: 2; grid-row: 2; font-size: 0.875em; }
.stt-recent strong { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }
.stt-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stt-shot { display: block; color: inherit; text-decoration: none; font-size: 0.8em; }
.stt-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; border: 1px solid var(--stt-line); display: block; }
.stt-shot span { display: flex; justify-content: space-between; padding-top: 4px; color: var(--stt-muted); }
.stt-privacy summary { cursor: pointer; font-weight: 600; font-size: 0.95em; }
.stt-privacy ul { margin: 10px 0; padding-left: 1.2em; font-size: 0.9em; }
.stt-privacy li { margin: 4px 0; }

/* Sign-in + notices */
.stt-login, .stt-notice { background: #fff; border: 1px solid var(--stt-line); border-radius: var(--stt-radius); padding: 28px; max-width: 420px; }
.stt-login-title { font-size: 1.3em; margin-bottom: 16px !important; }
.stt-login form p { margin: 0 0 14px; }
.stt-login label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 4px; }
.stt-login .login-remember label { display: inline; font-weight: 400; }
.stt-login input[type="text"], .stt-login input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #cdd3db; border-radius: 8px; font: inherit; }
.stt-login input[type="submit"] { background: var(--stt-ink); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 520px) {
	.stt-clock { padding: 22px 18px 18px; border-left-width: 7px; }
	.stt-app .stt-btn-big { flex: 1; min-width: 0; }
	.stt-recent li { grid-template-columns: 1fr auto; }
	.stt-recent li .stt-muted { grid-column: 1; }
	.stt-recent-task { grid-column: 1; grid-row: auto; }
	.stt-recent strong { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.stt-mode-on .stt-state::before { animation: none; }
	.stt-clock { transition: none; }
}
