:root {
	--page-bg: #f4f1e8;
	--work-bg: #ffffff;
	--accent: #0f4d25;
	--accent-dark: #073517;
	--gold: #c9a53d;
	--border: #d8cfb8;
	--text: #1d211c;
	--muted: #5f665d;
	--header-h: 72px;
	--footer-h: 86px;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html,
body {
	height: 100%;
	margin: 0;
}

body {
	background: var(--page-bg);
	color: var(--text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
}

.app-shell {
	display: grid;
	grid-template-rows: var(--header-h) minmax(0, 1fr) var(--footer-h);
	height: 100%;
	min-height: 100%;
}

.page-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--border);
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 72px;
	position: relative;
}

.env-badge {
	align-items: center;
	background: var(--accent);
	color: #fff;
	display: flex;
	font-size: 11px;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	left: 0;
	line-height: 1;
	position: absolute;
	text-orientation: upright;
	top: 0;
	writing-mode: vertical-rl;
	width: 14px;
}

.icon-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--accent);
	cursor: pointer;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin-left: 20px;
	padding: 0;
	width: 48px;
}

.menu-button {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	margin-left: 0;
	margin-right: 20px;
	justify-self: end;
}

.icon-button svg {
	height: 28px;
	width: 28px;
}

.logo-link {
	align-items: center;
	display: inline-flex;
	justify-self: center;
}

.logo {
	display: block;
	height: 56px;
	object-fit: contain;
	width: auto;
}

.menu-wrap {
	position: relative;
}

.menu {
	background: transparent;
	border: 0;
	box-shadow: none;
	display: none;
	list-style: none;
	margin: 0;
	min-width: 220px;
	padding: 0;
	position: absolute;
	top: 48px;
	z-index: 10;
}

.menu::before {
	background: #fff;
	border: 1px solid var(--border);
	bottom: 0;
	box-shadow: 0 10px 24px rgba(31, 42, 25, .18);
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 6px;
	z-index: -1;
}

.menu-hover-spacer {
	background: transparent;
	border: 0;
	height: 6px;
	margin: 0;
	padding: 0;
}

.menu-wrap.menu-open .menu {
	display: block;
}

@media (hover: hover) and (pointer: fine) {
	.menu-wrap:focus-within .menu,
	.menu-wrap:hover .menu {
		display: block;
	}
}

.account-menu {
	left: 20px;
}

.nav-menu {
	right: 20px;
}

.menu a,
.menu span {
	color: var(--text);
	display: block;
	padding: 9px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.menu a:hover,
.menu a:focus {
	background: #edf5e9;
	outline: none;
}

.menu .separator {
	border-top: 1px solid var(--border);
	margin: 6px 0;
}

.page-content {
	background: var(--page-bg);
	min-height: 0;
	overflow: hidden;
	padding: 32px;
}

.work-area {
	background: var(--work-bg);
	border: 1px solid var(--border);
	box-shadow: 0 18px 36px rgba(31, 42, 25, .12);
	margin: 0 auto;
	max-height: 100%;
	min-width: 40%;
	overflow-y: auto;
	padding: 32px 40px;
	width: max-content;
	max-width: 100%;
}

.page-title {
	align-items: center;
	display: flex;
	gap: 20px;
	margin-bottom: 16px;
}

.detail-title-photo {
	background: transparent;
	border: 0;
	cursor: zoom-in;
	height: 150px;
	margin-left: auto;
	padding: 0;
	width: 150px;
}

.rx-rotate-button {
	margin-left: 8px;
}

.rx-rotate-left {
	margin-left: auto;
}

.rx-rotate-left + .detail-title-photo,
.detail-title-photo + .rx-rotate-right {
	margin-left: 8px;
}

.detail-title-photo img {
	display: block;
	height: 100%;
	image-orientation: from-image;
	object-fit: contain;
	width: 100%;
}

.photo-viewer-backdrop {
	background: rgba(29, 33, 28, .55);
	inset: 0;
	padding: 16px;
	position: fixed;
	z-index: 1100;
}

.photo-viewer {
	background: #fff;
	border: 1px solid var(--border);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
	margin: 0 auto;
	max-width: 1100px;
}

.photo-viewer-toolbar {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--border);
	display: flex;
	gap: 10px;
	padding: 8px;
	position: sticky;
	top: 0;
	z-index: 2;
}

.photo-viewer-toolbar input {
	width: 180px;
}

.photo-viewer-toolbar .secondary-button:last-child {
	margin-left: auto;
}

.photo-viewer-box {
	background: var(--page-bg);
	overflow: auto;
	padding: 16px;
}

.photo-viewer-box img {
	display: block;
	margin: auto;
	max-height: none;
	max-width: none;
	transform-origin: center center;
}

.page-mark {
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 auto;
	height: 72px;
	justify-content: center;
	overflow: hidden;
	width: 72px;
}

.page-mark img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

h1 {
	color: var(--accent);
	font-size: 32px;
	line-height: 1.1;
	margin: 0 0 8px;
}

h2,
h3,
h4,
h5,
h6 {
	color: var(--accent);
}

p {
	color: var(--muted);
	line-height: 1.45;
	margin: 0;
	max-width: 58ch;
}

.template-list {
	border-collapse: collapse;
	margin-top: 24px;
	min-width: 520px;
	width: 100%;
}

.template-list th {
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	padding: 9px 12px;
	text-align: left;
}

table th {
	background: var(--accent);
	color: #fff;
	font-weight: 700;
}

.template-list td {
	border-bottom: 1px solid var(--border);
	padding: 11px 12px;
}

.primary-button,
.secondary-button {
	background: var(--accent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	margin-top: 24px;
	padding: 12px 18px;
}

.primary-button {
	background: var(--accent);
	color: #fff;
	font-weight: 700;
}

.primary-button:hover,
.primary-button:focus {
	background: var(--accent-dark);
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.page-footer {
	align-content: center;
	background: var(--page-bg);
	color: var(--muted);
	display: grid;
	font-size: 14px;
	justify-items: center;
	line-height: 1.35;
	text-align: center;
}

.page-footer a {
	color: var(--accent);
}

.terms-work-area {
	width: min(920px, 100%);
}

.terms-content h1,
.terms-content h2 {
	color: var(--accent);
}

.terms-content h1 {
	font-size: 32px;
	margin: 0 0 18px;
}

.terms-content h2 {
	font-size: 20px;
	margin: 28px 0 10px;
}

.terms-content p,
.terms-content li {
	color: var(--text);
	line-height: 1.5;
	max-width: 86ch;
}

.terms-content p {
	margin: 0 0 12px;
}

.terms-content ul {
	margin: 0 0 14px 24px;
	padding: 0;
}


.user-menu-label {
	background: var(--accent);
	color: #fff !important;
	font-weight: 700;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
	background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	border: 1px solid #767676;
	border-radius: 0;
	color: var(--text);
	font: inherit;
}

.data-form {
	display: grid;
	gap: 0;
	margin-top: 20px;
}

.data-form label {
	align-items: center;
	display: grid;
	grid-template-columns: 150px max-content;
	margin: 8px 0 0;
}

.data-form label span {
	font-weight: 700;
	text-align: right;
}

.data-form input,
.data-form select {
	font: inherit;
	margin-left: 24px;
	padding: 4px;
	height: calc(1.2em + 10px);
	width: 20ch;
}

.data-form select {
	padding-right: 24px;
}

.data-form .textarea-label {
	align-items: start;
	display: block;
}

.data-form .textarea-label span {
	display: block;
	margin: 0 0 6px 174px;
	text-align: left;
}

.data-form textarea {
	box-sizing: border-box;
	font: inherit;
	margin-left: 174px;
	padding: 4px;
}

.form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}

.secondary-button {
	background: #fff;
	border: 1px solid var(--border);
	color: var(--accent);
	text-decoration: none;
}

.passkey-button {
	background: var(--accent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	justify-self: center;
	margin-top: 22px;
	order: 2;
	padding: 12px 18px;
}

.admin-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.admin-icon-link {
	align-items: center;
	border: 1px solid var(--border);
	color: var(--accent);
	display: inline-flex;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
}

.admin-icon-link:hover,
.admin-icon-link:focus {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.admin-icon-link img {
	height: 42px;
	width: 42px;
}

.admin-icon-link span {
	font-weight: 700;
}

.dashboard-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	margin-top: 20px;
	min-width: 320px;
}

.dashboard-tile {
	align-items: center;
	border: 1px solid var(--border);
	color: var(--accent);
	display: flex;
	flex-direction: column;
	font-weight: 700;
	gap: 8px;
	padding: 14px 12px;
	text-align: center;
	text-decoration: none;
}

.dashboard-tile:hover,
.dashboard-tile:focus {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.dashboard-tile img {
	height: 86px;
	width: 86px;
}

.food-app,
.rx-app {
	min-width: min(720px, calc(100vw - 96px));
	position: relative;
}

.food-app.image-drop-active,
.rx-app.image-drop-active {
	outline: 2px dashed var(--accent);
	outline-offset: 8px;
}

.food-toolbar,
.rx-toolbar {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.rx-toolbar .rx-photo-actions {
	margin: 0 0 0 auto;
}

.image-processing {
	align-items: center;
	background: rgba(255, 255, 255, .88);
	border: 1px solid var(--border);
	display: flex;
	font-weight: 700;
	gap: 10px;
	inset: 0;
	justify-content: center;
	position: absolute;
	z-index: 20;
}

.image-processing[hidden] {
	display: none;
}

.processing-spinner {
	animation: processing-spin .8s linear infinite;
	border: 4px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	height: 28px;
	width: 28px;
}

@keyframes processing-spin {
	to { transform: rotate(360deg); }
}

.food-add-button,
.rx-add-button,
.rx-photo-button {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.food-add-button svg,
.rx-add-button svg,
.rx-photo-button svg,
.rx-rotate-button svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
}

.rx-voice-flow {
	max-width: 880px;
	min-width: min(760px, calc(100vw - 112px));
}

.rx-voice-nav {
	display: flex;
	justify-content: space-between;
	margin: -8px 0 14px;
}

.rx-voice-nav button {
	background: transparent;
	border: 0;
	color: #1753bd;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 4px 0;
}

.rx-voice-hint,
.rx-voice-step {
	background: #fff;
	border: 1px solid #c9d8f6;
	border-radius: 8px;
	box-shadow: 0 8px 18px rgba(31, 42, 25, .08);
	margin: 0 0 14px;
	padding: 16px 20px;
}

.rx-voice-hint {
	align-items: center;
	display: grid;
	gap: 4px 16px;
	grid-template-columns: 42px minmax(0, 1fr);
}

.rx-voice-hint span {
	color: #1f63c8;
	grid-row: 1 / span 2;
}

.rx-voice-hint svg,
.rx-voice-mic svg {
	fill: none;
	height: 34px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 34px;
}

.rx-voice-hint strong,
.rx-voice-hint b {
	color: #071342;
}

.rx-voice-step {
	opacity: .64;
	transform: translateY(0);
	transition: opacity .22s ease, transform .22s ease;
}

.rx-voice-step.is-active {
	opacity: 1;
	transform: translateY(-1px);
}

.rx-voice-step h2 {
	align-items: center;
	color: #071342;
	display: flex;
	font-size: 22px;
	gap: 12px;
	margin: 0 0 14px;
}

.rx-voice-step h2 span {
	align-items: center;
	background: #1f63c8;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.rx-voice-entry-row {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) 92px;
}

.rx-voice-entry-row label {
	display: block;
	position: relative;
}

.rx-voice-entry-row textarea {
	border: 1px solid #b8c3d6;
	border-radius: 8px;
	font: inherit;
	line-height: 1.35;
	height: auto;
	min-height: calc(2.7em + 40px);
	overflow: hidden;
	padding: 12px 14px 28px;
	resize: none;
	width: 100%;
}

.rx-voice-entry-row small {
	bottom: 8px;
	color: #737b91;
	position: absolute;
	right: 14px;
}

.rx-voice-mic {
	align-items: center;
	background: #e7eeff;
	border: 1px solid #9cb8fb;
	border-radius: 50%;
	color: #1f63c8;
	cursor: pointer;
	display: inline-flex;
	height: 82px;
	justify-content: center;
	width: 82px;
}

.rx-voice-mic.is-listening {
	background: #dff4e6;
	color: #0f7f33;
}

.rx-voice-actions,
.rx-voice-review-actions {
	display: flex;
	justify-content: space-between;
}

.rx-voice-actions .primary-button,
.rx-voice-actions .secondary-button,
.rx-voice-review-actions .primary-button,
.rx-voice-review-actions .secondary-button {
	min-width: 160px;
}

.rx-voice-arrow {
	color: #071342;
	font-size: 34px;
	line-height: 1;
	margin: -4px 0 8px;
	text-align: center;
}

.rx-voice-analysis {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: center;
	min-height: 56px;
}

.rx-voice-spinner {
	animation-play-state: paused;
	visibility: hidden;
}

.rx-voice-step-analysis.is-active .rx-voice-spinner {
	animation-play-state: running;
	visibility: visible;
}

.rx-voice-review-form {
	margin-top: 16px;
}

.rx-voice-review-form input[name="instructions_sig"] {
	width: 42ch;
}

.rx-voice-save-button {
	background: #0f9237;
}

.rx-voice-private {
	color: #737b91;
	margin: 8px auto 0;
	text-align: center;
}

#food-photo-input,
#rx-photo-input,
#rx-extra-photo-input {
	display: none;
}


.food-camera-backdrop,
.rx-camera-backdrop {
	align-items: center;
	background: rgba(0, 0, 0, .62);
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 1000;
}

.food-camera-panel,
.rx-camera-panel {
	background: #fff;
	border: 1px solid var(--border);
	max-width: min(760px, calc(100vw - 24px));
	padding: 8px;
}

.food-camera-video,
.rx-camera-video {
	background: #000;
	display: block;
	max-height: min(70vh, 520px);
	max-width: 100%;
}

.food-camera-actions,
.rx-camera-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 8px;
}

.food-list,
.rx-list {
	border: 1px solid #9f9f9f;
}

.food-row,
.rx-row {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #9f9f9f;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	padding: 4px;
}

.food-row:nth-child(even),
.rx-row:nth-child(even) {
	background: var(--page-bg);
}

.food-row:last-child,
.rx-row:last-child {
	border-bottom: 0;
}

.food-card,
.rx-card {
	background: transparent;
	border: 0;
	color: var(--text);
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 2px;
	padding: 4px;
	text-align: left;
}

.food-card-title,
.rx-card-title {
	font-weight: 700;
}

.food-card-meta,
.rx-card-meta,
.empty-list {
	color: var(--muted);
	font-size: 14px;
}

.food-delete-button,
.rx-delete-button {
	justify-self: end;
}

.rx-photo {
	display: block;
	max-height: 360px;
	max-width: min(680px, 100%);
	object-fit: contain;
}

.food-fields {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	margin: 12px 0;
	max-width: min(680px, 100%);
}

.food-fields dt {
	font-weight: 700;
	margin: 4px 24px 4px 0;
	text-align: right;
	text-transform: capitalize;
}

.food-fields dd {
	margin: 4px 0;
}

.food-detail pre {
	background: var(--page-bg);
	border: 1px solid var(--border);
	font-family: Consolas, "Courier New", monospace;
	max-width: min(680px, 100%);
	overflow: auto;
	padding: 8px;
	white-space: pre-wrap;
}

.config-form input[name="AppName"] {
	width: 28ch;
}

.config-form input[name="ShortAppName"] {
	width: 18ch;
}

.config-form input[type="color"] {
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	height: 34px;
	padding: 2px;
	width: 8ch;
}

.config-form input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

.config-form input[type="color"]::-webkit-color-swatch {
	border: 0;
	border-radius: 2px;
}

.config-form input[type="color"]::-moz-color-swatch {
	border: 0;
	border-radius: 2px;
}

.config-field {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	font-weight: 400;
	margin-left: 24px;
	text-align: left;
}

.config-field input {
	margin-left: 0;
}

.color-control {
	align-items: center;
	display: inline-flex;
}

.config-form .color-control input[type="color"] {
	margin-left: 0;
	margin-top: 0;
}

.color-code {
	font-family: Consolas, "Courier New", monospace;
	font-weight: 700;
	margin-left: 10px;
	text-align: left;
}

.config-form input.color-code-input {
	font-family: "Courier New", monospace;
	width: calc(7ch + 10px);
}

.restore-original-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--accent);
	cursor: pointer;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.restore-original-button svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2;
	width: 20px;
}

.user-list {
	border: 1px solid #9f9f9f;
	margin-top: 20px;
	min-width: 720px;
}

.user-card {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #9f9f9f;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(128px, 1fr) minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(102px, .8fr) 112px;
	padding: 4px;
}

.user-card:nth-child(even) {
	background: var(--page-bg);
}

.user-add-card {
	align-items: center;
	background: #fff;
}

.user-add-card .user-actions {
	align-self: end;
}

.user-card:last-child {
	border-bottom: 0;
}

.user-cell span {
	color: var(--muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
}

.user-cell strong {
	font-size: 14px;
}

.user-cell label {
	display: block;
	margin: 0;
}

.user-cell input,
.user-cell select {
	box-sizing: border-box;
	background: var(--page-bg);
	border: 1px solid var(--accent);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	padding: 0;
}

.user-cell select {
	padding-right: 20px;
}

.user-add-card .user-cell:nth-child(3) input {
	width: 14ch;
}

.user-add-card .user-cell:nth-child(4) input {
	width: 24ch;
}

.user-add-card .user-cell:nth-child(5) select {
	width: 14ch;
}

.user-add-card .user-cell:nth-child(6) select {
	width: 10ch;
}

.user-actions {
	align-items: center;
	justify-self: end;
	display: inline-flex;
	gap: 4px;
}

.user-actions form {
	margin: 0;
}

.row-icon-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--accent);
	cursor: pointer;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.row-delete-button {
	color: #a82020;
}

.row-icon-button svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
}

.add-user-button {
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	height: 24px;
	line-height: 1;
	margin: 0;
	padding: 0 8px;
	white-space: nowrap;
}

.user-edit-form input,
.user-edit-form select {
	width: 20ch;
}

.login-form .login-fields {
	order: 1;
}

.login-form .form-actions {
	order: 3;
}

.login-form .account-prompt {
	order: 4;
}

.account-prompt {
	margin-top: 18px;
	text-align: right;
}

.account-prompt a {
	color: var(--accent);
	font-weight: 700;
}

.create-account-form input {
	width: 20ch;
}

.login-fields {
	display: grid;
	justify-content: center;
	margin-top: 20px;
	width: 100%;
}

.login-fields label {
	grid-template-columns: 120px max-content;
}

.login-form .login-fields {
	margin-left: auto;
	margin-right: auto;
	width: max-content;
}

.login-form .password-control input {
	margin-left: 0;
}

.password-reset-fields {
	display: grid;
	grid-template-columns: max-content;
}

.password-reset-fields input {
	margin-left: 0;
	width: 20ch;
}

.password-control {
	display: inline-flex;
	margin-left: 24px;
}

.unmask-button {
	background: #fff;
	border: 1px solid var(--border);
	border-left: 0;
	cursor: pointer;
	padding: 4px 8px;
}

.password-match {
	grid-column: 2;
	margin: 8px 0 0 24px;
}

.match-ok {
	color: #0f6b2f;
}

.match-bad {
	color: #a82020;
}

.primary-button:disabled {
	background: #8b9488;
	cursor: not-allowed;
}

.recovery-fields input {
	width: 25ch;
}

.preferences-form select {
	width: 18ch;
}

.preferences-form label {
	grid-template-columns: max-content max-content;
}

.preferences-form label span {
	white-space: nowrap;
}

.feedback-form {
	width: min(680px, 100%);
}

.feedback-form > label,
.feedback-form-row {
	margin: 8px 0 0 8px;
}

.feedback-form input[type="email"] {
	width: 28ch;
}

.feedback-form textarea {
	height: auto;
	min-height: 8.5em;
	overflow-y: auto;
	width: calc(100% - 182px);
}

.feedback-form input[type="file"] {
	display: none;
}

.feedback-file-control {
	margin-left: 24px;
}

.feedback-file-button {
	font: inherit;
	margin: 0;
	padding: 4px 10px;
}

.radio-field {
	align-items: center;
	display: grid;
	grid-template-columns: 150px max-content;
}

.feedback-prompt {
	font-weight: 700;
	text-align: right;
}

.radio-options {
	display: inline-flex;
	gap: 18px;
	margin-left: 24px;
}

.radio-options label {
	align-items: center;
	display: inline-flex;
	margin: 0;
}

.radio-options input {
	margin: 0 6px 0 0;
	width: auto;
}

.feedback-form .textarea-label {
	margin: 8px 0 0;
}

.feedback-form .textarea-label span {
	margin-left: 182px;
}

.feedback-form textarea {
	margin-left: 182px;
}

.feedback-file-list {
	border: 1px solid #9f9f9f;
	color: var(--muted);
	font-size: 14px;
	margin: 8px 0 0 182px;
	max-width: 52ch;
}

.feedback-file-list:empty {
	border: 0;
}

.feedback-file-card {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #9f9f9f;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) max-content max-content;
	padding: 4px;
}

.feedback-file-card:nth-child(even) {
	background: var(--page-bg);
}

.feedback-file-card:last-child {
	border-bottom: 0;
}

.feedback-file-card strong {
	color: var(--text);
	overflow-wrap: anywhere;
}

.login-form .form-actions {
	justify-content: flex-end;
}

.login-form .account-prompt {
	margin-top: 36px;
	text-align: center;
}

.form-message {
	margin: 0 0 16px;
	padding: 10px 12px;
}

.form-error {
	background: #fff1f1;
	border: 1px solid #c85656;
	color: #7f1d1d;
}

.form-message ul {
	margin: 0 0 0 18px;
	padding: 0;
}

@media (max-width: 640px) {
	.app-shell {
		grid-template-rows: var(--header-h) minmax(0, 1fr);
	}

	.page-footer {
		display: none;
	}

	.page-content {
		padding: 0;
	}

	.work-area {
		border: 0;
		box-shadow: none;
		height: 100%;
		min-width: 100%;
		padding: 16px;
		width: 100%;
	}

	.logo {
		height: 48px;
		max-width: 180px;
	}

	.icon-button {
		height: 44px;
		margin-left: 18px;
		width: 44px;
	}

	.menu-button {
		margin-right: 12px;
	}

	.page-title {
		align-items: flex-start;
		gap: 14px;
	}

	.page-mark {
		height: 54px;
		width: 54px;
	}

	h1 {
		font-size: 26px;
	}

	.template-list {
		min-width: 0;
	}

	.passkey-button {
		margin-top: 20px;
		order: 0;
	}

	.data-form label {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.data-form label span {
		text-align: left;
	}

	.data-form .textarea-label span {
		margin-left: 0;
	}

	.data-form input,
	.data-form textarea,
	.data-form select {
		margin-left: 0;
		margin-top: 6px;
		width: 100%;
	}

	.feedback-file-list {
		margin-left: 0;
		max-width: none;
	}

	.feedback-file-control {
		margin-left: 0;
		margin-top: 6px;
	}

	.feedback-form {
		width: 100%;
	}

	.feedback-form > label,
	.feedback-form-row {
		margin-left: 0;
	}

	.radio-field {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.feedback-prompt {
		text-align: left;
	}

	.radio-options {
		margin-left: 0;
		margin-top: 6px;
	}

	.config-field {
		margin-left: 0;
		margin-top: 6px;
	}

	.config-field input {
		margin-top: 0;
	}


	.config-form input.color-code-input {
		width: calc(7ch + 10px);
	}

	.admin-actions {
		flex-direction: column;
	}

	.dashboard-grid {
		min-width: 0;
	}

	.user-list {
		min-width: 0;
	}

	.user-card {
		grid-template-columns: 1fr max-content;
	}

	.user-actions {
		grid-column: 2;
		grid-row: 1 / span 4;
	}

	.food-toolbar,
	.rx-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.rx-voice-flow {
		min-width: 0;
		width: 100%;
	}

	.rx-voice-hint {
		grid-template-columns: 34px minmax(0, 1fr);
		padding: 14px;
	}

	.rx-voice-hint b {
		line-height: 1.35;
	}

	.rx-voice-step {
		padding: 14px;
	}

	.rx-voice-entry-row {
		grid-template-columns: minmax(0, 1fr) 76px;
	}

	.rx-voice-mic {
		height: 72px;
		width: 72px;
	}

	.rx-voice-actions,
	.rx-voice-review-actions {
		flex-direction: column;
		gap: 10px;
	}

	.rx-voice-actions .primary-button,
	.rx-voice-actions .secondary-button,
	.rx-voice-review-actions .primary-button,
	.rx-voice-review-actions .secondary-button {
		min-width: 0;
		width: 100%;
	}

	.rx-voice-review-form input[name="instructions_sig"] {
		width: 100%;
	}
}


@media (min-width: 641px) and (max-width: 1180px) and (orientation: landscape) {
	.app-shell {
		grid-template-rows: var(--header-h) minmax(0, 1fr);
	}

	.page-footer {
		display: none;
	}
}

@media print {
	.menu-wrap,
	.env-badge {
		display: none !important;
	}

	.page-content {
		overflow: visible;
	}

	.work-area {
		max-height: none;
		overflow: visible;
	}
}


.password-reset-form {
	width: 100%;
}

.password-reset-form .login-fields {
	justify-content: center;
	width: 100%;
}

.password-reset-form .login-fields label {
	grid-template-columns: 140px max-content;
}

.password-reset-form .password-match {
	grid-column: 1;
	margin-left: 164px;
}

.password-reset-form .form-actions {
	justify-content: flex-end;
}

.terms-work-area,
.work-area {
	overflow-x: hidden;
}

.reset-account-label {
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	grid-column: 1;
	margin: 0 0 12px 0;
	padding: 8px 10px;
	width: max-content;
}

.passkey-manager {
	min-width: min(620px, calc(100vw - 112px));
}

.passkey-manager h2 {
	color: var(--accent);
	font-size: 30px;
	margin: 22px 0 12px;
}

.passkey-actions {
	justify-content: flex-start;
	margin-top: 0;
}

.passkey-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.passkey-list li {
	align-items: center;
	border: 1px solid var(--border);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin: 0 0 8px;
	padding: 10px 12px;
}

.passkey-list strong,
.passkey-list span {
	display: block;
}

.passkey-list span {
	color: var(--muted);
	font-size: 13px;
	margin-top: 3px;
}

.delete-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: #a82020;
	cursor: pointer;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	padding: 0;
	width: 42px;
}

.delete-button svg {
	fill: none;
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 22px;
}

.dialog-open {
	overflow: hidden;
}

.app-dialog-backdrop {
	align-items: center;
	background: rgba(29, 33, 28, .42);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 18px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1000;
}

.app-dialog {
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: 0 18px 36px rgba(31, 42, 25, .22);
	max-width: min(420px, 100%);
	padding: 22px 24px;
	width: 100%;
}

.app-dialog h2 {
	color: var(--accent);
	font-size: 22px;
	margin: 0 0 10px;
}

.app-dialog p {
	color: var(--text);
	margin: 0;
}

.app-dialog-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}

.app-dialog .primary-button,
.app-dialog .secondary-button {
	margin-top: 0;
}

@media (max-width: 640px) {
	.page-title {
		display: grid;
		grid-template-columns: 54px minmax(0, 1fr);
		row-gap: 16px;
	}

	.page-title .detail-title-photo {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
		margin: 0;
	}

	.page-title .rx-rotate-button {
		grid-column: 1 / -1;
		grid-row: 2;
		align-self: center;
		justify-self: center;
		margin: 0;
	}

	.page-title .rx-rotate-left {
		transform: translateX(-100px);
	}

	.page-title .rx-rotate-right {
		transform: translateX(100px);
	}

	.rx-toolbar {
		justify-content: center;
	}

	.passkey-manager {
		min-width: 0;
	}

	.passkey-list li {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}
}

.rx-photo-actions {
	display: flex;
	gap: 8px;
	margin: 12px 0;
}

.rx-extra-photos {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.rx-extra-photos img {
	background: var(--page-bg);
	max-height: 160px;
	max-width: 180px;
	object-fit: contain;
}

.rx-extra-photos img:not([src]),
.rx-extra-photos img[src=""] {
	display: none;
}
