/* 49Books Forms — plain, theme-friendly styling. Accent = logo orange #f6ae42 (dark text on it). */
.fb49f {
	--fb49f-accent: #f6ae42;
	--fb49f-border: #cfc8bd;
	--fb49f-muted: #6b6259;
	--fb49f-error: #b3261e;
	--fb49f-bg-soft: #fbf6ef;
	max-width: 760px;
	margin: 0 auto 2.5em;
	text-align: start;
	box-sizing: border-box;
}
.fb49f *, .fb49f *::before, .fb49f *::after { box-sizing: border-box; }
.fb49f-rtl { text-align: right; }
.fb49f-ltr { text-align: left; }
.fb49f-ltr input[dir="rtl"], .fb49f-ltr textarea[dir="rtl"] { text-align: right; }

.fb49f-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 1.4em;
	padding: 0;
}
.fb49f-langs a {
	display: inline-block;
	padding: .3em .8em;
	border: 1px solid var(--fb49f-border);
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: .92em;
	line-height: 1.5;
}
.fb49f-langs a:hover, .fb49f-langs a:focus-visible { border-color: var(--fb49f-accent); }
.fb49f-langs a.is-current { background: var(--fb49f-accent); border-color: var(--fb49f-accent); color: #1d1d1d; font-weight: 600; }

.fb49f-heading { margin: 0 0 .4em; }

/* Two paths on /send-manuscript/: large choice buttons, side by side (stacked on phones). */
.fb49f-path-prompt { margin-bottom: .7em; }
.fb49f-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 2em; }
.fb49f-path {
	display: flex; flex-direction: column; gap: .4em;
	padding: 1.1em 1.3em;
	border: 2px solid var(--fb49f-border);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	line-height: 1.4;
	transition: border-color .15s ease, background-color .15s ease;
}
.fb49f-path strong { font-size: 1.15em; }
.fb49f-path span { font-size: .92em; color: var(--fb49f-muted); }
.fb49f-path:hover, .fb49f-path:focus-visible { border-color: var(--fb49f-accent); color: inherit; }
.fb49f-path.is-current { border-color: var(--fb49f-accent); background: var(--fb49f-accent); color: #1d1d1d; }
.fb49f-path.is-current span { color: #3a2f22; }
@media (max-width: 600px) { .fb49f-paths { grid-template-columns: 1fr; } }
.fb49f-chosen { scroll-margin-top: 120px; }

/* Terms (from the API): light background, orange accent; scrolls inside the box on desktop only. */
.fb49f-terms {
	margin: 0 0 2em;
	padding: 1.1em 1.4em;
	background: var(--fb49f-bg-soft);
	border: 1px solid #efe3cf;
	border-inline-start: 5px solid var(--fb49f-accent);
	border-radius: 8px;
}
.fb49f-terms h3 { margin: 0 0 .6em; font-size: 1.2em; }
.fb49f-terms h4 { margin: 1em 0 .35em; font-size: 1em; }
.fb49f-terms ul { margin: 0; padding-inline-start: 1.3em; }
.fb49f-terms li { margin: 0 0 .35em; }
.fb49f-terms:focus-visible { outline: 2px solid var(--fb49f-accent); outline-offset: 2px; }
@media (min-width: 768px) { .fb49f-terms { max-height: 360px; overflow-y: auto; } }

/* Services: a grid of checkboxes. */
.fb49f-checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2em 1em; }
.fb49f-checks label { display: flex; gap: .55em; align-items: flex-start; font-weight: normal; margin: 0 0 .4em; cursor: pointer; }
.fb49f-checks input { margin: .3em 0 0; flex: none; width: 1.1em; height: 1.1em; }
.fb49f .fb49f-field.is-hidden { display: none; }
.fb49f .fb49f-field input[type="number"] { max-width: 240px; }
.fb49f-intro { margin: 0 0 1.6em; color: var(--fb49f-muted); }

.fb49f-field { margin: 0 0 1.2em; padding: 0; border: 0; min-width: 0; }
.fb49f-field > label, .fb49f-field > legend, .fb49f-other > label {
	display: block;
	font-weight: 600;
	margin: 0 0 .35em;
	padding: 0;
}
.fb49f-other { margin-top: .7em; }
.fb49f-req { color: var(--fb49f-error); }

.fb49f input[type="text"], .fb49f input[type="email"], .fb49f input[type="tel"], .fb49f input[type="url"], .fb49f input[type="date"], .fb49f input[type="number"], .fb49f input[type="file"],
.fb49f input[type="password"], .fb49f input[type="search"], .fb49f input:not([type]),
.fb49f select, .fb49f textarea {
	width: 100%;
	max-width: 100%;
	padding: .6em .75em;
	border: 1px solid var(--fb49f-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.45;
	margin: 0;
}
.fb49f input[type="file"] { padding: .5em; background: var(--fb49f-bg-soft); }
/* The theme (trx_addons) wraps selects in .select_container and gives them a white border and a smaller font.
   Match the text inputs exactly; keep room for the theme's arrow on the end side. */
.fb49f .fb49f-field select,
.fb49f .fb49f-field .select_container select {
	height: auto;
	padding: .6em .75em;
	padding-inline-end: 2.6em;
	border: 1px solid var(--fb49f-border);
	border-radius: 6px;
	background-color: #fff;
	font: inherit;
	line-height: 1.45;
}
.fb49f .fb49f-field .select_container { width: 100%; font-size: inherit; line-height: inherit; }
.fb49f .has-error select, .fb49f .has-error .select_container select { border-color: var(--fb49f-error); }
.fb49f textarea { resize: vertical; min-height: 5em; }
.fb49f input:focus, .fb49f .fb49f-field select:focus, .fb49f textarea:focus {
	outline: 2px solid var(--fb49f-accent);
	outline-offset: 1px;
	border-color: var(--fb49f-accent);
}
.fb49f input[readonly], .fb49f input:disabled { background: #f3f1ee; color: var(--fb49f-muted); }
.fb49f-rtl input[dir="ltr"] { text-align: left; }

.fb49f-help { margin: .35em 0 0; font-size: .88em; color: var(--fb49f-muted); }
.fb49f-warn { margin: .35em 0 0; font-size: .92em; color: var(--fb49f-error); font-weight: 600; }
.fb49f-file-msg { margin: .35em 0 0; color: var(--fb49f-error); font-weight: 600; }

.fb49f-accept { margin-top: -.6em; }
.fb49f-radios label, .fb49f-consent label {
	display: flex;
	gap: .55em;
	align-items: flex-start;
	font-weight: normal;
	margin: 0 0 .4em;
	cursor: pointer;
}
.fb49f-radios input, .fb49f-consent input { margin: .3em 0 0; flex: none; width: 1.1em; height: 1.1em; }
.fb49f-consent { padding: .8em 1em; background: var(--fb49f-bg-soft); border-radius: 6px; }

.fb49f .has-error input, .fb49f .has-error select, .fb49f .has-error textarea { border-color: var(--fb49f-error); }
.fb49f .has-error > label, .fb49f .has-error > legend { color: var(--fb49f-error); }

.fb49f-errors {
	margin: 0 0 1.5em;
	padding: .9em 1.1em;
	border: 1px solid var(--fb49f-error);
	border-inline-start-width: 5px;
	border-radius: 6px;
	background: #fdf1f0;
	color: #5f1510;
}
.fb49f-errors p { margin: 0 0 .3em; }
.fb49f-errors ul { margin: 0; padding-inline-start: 1.2em; }
.fb49f-errors a { color: inherit; }
.fb49f-errors:focus { outline: none; }

.fb49f-success {
	margin: 0 0 1.5em;
	padding: 1.2em 1.4em;
	border: 1px solid #b9d8b4;
	border-inline-start-width: 5px;
	border-radius: 6px;
	background: #f1f8ef;
}
.fb49f-success h2 { margin: 0 0 .6em; }
.fb49f-success p { margin: 0 0 .5em; }
.fb49f-code { font-size: 1.5em; font-weight: 700; letter-spacing: .03em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.fb49f-emailed { font-weight: 600; }

.fb49f-actions { margin: 1.6em 0 0; }
.fb49f-btn, .fb49f .fb49f-btn {
	display: inline-block;
	padding: .8em 1.8em;
	border: 0;
	border-radius: 6px;
	background: var(--fb49f-accent);
	color: #1d1d1d;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}
.fb49f-btn:hover, .fb49f-btn:focus-visible { background: #e89c2c; color: #1d1d1d; }
.fb49f-btn:disabled { opacity: .6; cursor: wait; }
.fb49f-btn-light, .fb49f .fb49f-btn.fb49f-btn-light { background: #fff; border: 1px solid var(--fb49f-accent); }
.fb49f .fb49f-btn.fb49f-btn-light:hover, .fb49f .fb49f-btn.fb49f-btn-light:focus-visible { background: var(--fb49f-bg-soft); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.fb49f-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -10000px; }

.fb49f-sending[hidden] { display: none; }
.fb49f-sending {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(255, 255, 255, .85);
}
.fb49f-sending-box {
	max-width: 420px;
	padding: 1.6em 1.8em;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .15);
	text-align: center;
}
.fb49f-sending-box p { margin: .9em 0 0; }
.fb49f-spinner {
	display: inline-block;
	width: 38px;
	height: 38px;
	border: 4px solid #f1e3cc;
	border-top-color: var(--fb49f-accent);
	border-radius: 50%;
	animation: fb49f-spin .9s linear infinite;
}
@keyframes fb49f-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fb49f-spinner { animation-duration: 3s; } }

.fb49f-stage-top { display: flex; flex-wrap: wrap; gap: .3em 1.2em; align-items: baseline; justify-content: space-between; margin-bottom: 1em; }
.fb49f-userline { margin: 0; font-size: .92em; color: var(--fb49f-muted); }

/* Staff work report (/report/). */
.fb49f-tabs { display: flex; gap: 0; margin: 0 0 1.4em; border-bottom: 2px solid #efe3cf; }
.fb49f-tabs a {
	padding: .55em 1.1em;
	margin-bottom: -2px;
	border-bottom: 3px solid transparent;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.fb49f-tabs a.is-current { border-bottom-color: var(--fb49f-accent); }
.fb49f-tabs a:hover, .fb49f-tabs a:focus-visible { border-bottom-color: #f3cf96; }
.fb49f-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb49f-twocol label { display: block; font-weight: 600; margin: 0 0 .35em; }
.fb49f-searched { margin: 0 0 1em; color: var(--fb49f-muted); }
.fb49f .fb49f-linkbtn, .fb49f-linkbtn {
	padding: .2em .6em;
	margin-inline-start: .4em;
	border: 1px solid var(--fb49f-border);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: .9em;
	font-weight: 600;
	line-height: 1.5;
	height: auto;
	min-height: 0;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.fb49f .fb49f-linkbtn:hover, .fb49f .fb49f-linkbtn:focus-visible { border-color: var(--fb49f-accent); background: var(--fb49f-bg-soft); color: inherit; }
.fb49f-books legend { font-size: 1.15em; }
.fb49f-others { margin: 1em 0 .5em; font-weight: 600; }
.fb49f-book {
	display: flex;
	gap: .7em;
	align-items: flex-start;
	margin: 0 0 .6em;
	padding: .8em 1em;
	border: 1px solid var(--fb49f-border);
	border-radius: 8px;
	background: #fff;
	font-weight: normal;
	cursor: pointer;
}
.fb49f-book.is-best { border-width: 2px; border-color: var(--fb49f-accent); background: var(--fb49f-bg-soft); }
.fb49f-book:has(input:checked) { border-color: var(--fb49f-accent); box-shadow: 0 0 0 1px var(--fb49f-accent); }
.fb49f-book input { margin: .35em 0 0; flex: none; width: 1.15em; height: 1.15em; }
.fb49f-book-body { display: flex; flex-direction: column; gap: .15em; min-width: 0; overflow-wrap: anywhere; }
.fb49f-book-body strong { font-size: 1.05em; }
.fb49f-book-extra { color: var(--fb49f-muted); font-size: .92em; }
.fb49f-book-none { background: transparent; border-style: dashed; color: var(--fb49f-muted); }
.fb49f-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; unicode-bidi: isolate; }
.fb49f-mine { list-style: none; margin: 0; padding: 0; }
.fb49f-mine-item { margin: 0 0 .8em; padding: .8em 1em; border: 1px solid var(--fb49f-border); border-radius: 8px; }
.fb49f-mine-item p { margin: 0 0 .3em; }
.fb49f-mine-meta { font-size: .9em; color: var(--fb49f-muted); }
.fb49f-mine-book { overflow-wrap: anywhere; }
.fb49f-mine-item summary { cursor: pointer; color: var(--fb49f-muted); }
.fb49f-mine-text { margin: .4em 0; white-space: normal; overflow-wrap: anywhere; }
.fb49f-mine-label { margin-top: .6em !important; font-weight: 600; }
.fb49f-badge { display: inline-block; padding: 0 .5em; border-radius: 4px; background: #fdf1f0; color: #5f1510; font-size: .85em; }
.fb49f-success h3 { margin: 0 0 .6em; }

@media (max-width: 600px) {
	.fb49f-twocol { grid-template-columns: 1fr; gap: 0; }
	.fb49f-twocol > div { margin-bottom: 1em; }
	.fb49f-tabs a { flex: 1; text-align: center; padding: .55em .4em; }
	.fb49f-btn { width: 100%; text-align: center; }
	.fb49f-actions .fb49f-btn + .fb49f-btn { margin-top: .6em; }
	.fb49f-langs a { font-size: .88em; padding: .25em .65em; }
}

/* ================================================================== staff dashboard (v1.6) */
.fb49d .fb49d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75em; margin: 1.6em 0 0; }
.fb49d .fb49d-tile { display: flex; flex-direction: column; gap: .25em; padding: .9em 1em; border: 1px solid var(--fb49f-border); border-radius: 10px; background: #fff; color: #1d1d1d; text-decoration: none; min-height: 5.2em; }
.fb49d .fb49d-tile:hover, .fb49d .fb49d-tile:focus-visible { border-color: var(--fb49f-accent); background: var(--fb49f-bg-soft); }
.fb49d .fb49d-tile-title { font-weight: bold; font-size: 1.05em; }
.fb49d .fb49d-tile-desc { color: var(--fb49f-muted); font-size: .9em; line-height: 1.5; }
.fb49d .fb49d-count { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--fb49f-error); color: #fff; font-size: .8em; text-align: center; line-height: 1.6; }
.fb49d .fb49d-alert { border: 1px solid #f3cf96; background: var(--fb49f-bg-soft); border-radius: 10px; padding: .7em 1em; margin: 0 0 1em; }
.fb49d .fb49d-alert h3, .fb49d .fb49d-block h3 { margin: 0 0 .4em; font-size: 1.05em; }
.fb49d .fb49d-list { margin: 0; padding: 0; padding-inline-start: 1.2em; }
.fb49d .fb49d-list li { margin: .25em 0; }
.fb49d .fb49d-tasks, .fb49d .fb49d-pays, .fb49d .fb49d-news, .fb49d .fb49d-msgs, .fb49d .fb49d-threads, .fb49d .fb49d-guides { list-style: none; margin: 0; padding: 0; }
.fb49d .fb49d-task, .fb49d .fb49d-pay, .fb49d .fb49d-newsitem { border: 1px solid var(--fb49f-border); border-inline-start: 5px solid var(--fb49f-border); border-radius: 8px; padding: .7em .9em; margin: 0 0 .7em; background: #fff; }
.fb49d .fb49d-task.is-doing { border-inline-start-color: var(--fb49f-accent); }
.fb49d .fb49d-task.is-done, .fb49d .fb49d-pay.is-paid { border-inline-start-color: #3a8a4a; }
.fb49d .fb49d-task.is-cancelled { opacity: .65; }
.fb49d .fb49d-task.is-overdue { border-inline-start-color: var(--fb49f-error); background: #fdf6f5; }
.fb49d .fb49d-red { color: var(--fb49f-error); font-weight: bold; }
.fb49d .fb49d-task-head { margin: 0 0 .35em; line-height: 1.7; }
.fb49d .fb49d-pill { display: inline-block; padding: 0 .55em; border-radius: 999px; font-size: .82em; background: #eee; color: #333; white-space: nowrap; }
.fb49d .fb49d-pill.is-todo { background: #efe9df; }
.fb49d .fb49d-pill.is-doing { background: #fde7c4; color: #5a3b00; }
.fb49d .fb49d-pill.is-done { background: #dcefdf; color: #1f5a2a; }
.fb49d .fb49d-pill.is-cancelled { background: #e6e6e6; color: #555; }
.fb49d .fb49d-pill.is-overdue { background: var(--fb49f-error); color: #fff; }
.fb49d .fb49d-meta { display: flex; flex-wrap: wrap; gap: .2em 1.4em; margin: 0 0 .4em; font-size: .93em; }
.fb49d .fb49d-meta div { display: flex; gap: .35em; }
.fb49d .fb49d-meta dt { color: var(--fb49f-muted); margin: 0; }
.fb49d .fb49d-meta dt::after { content: ':'; }
.fb49d .fb49d-meta dd { margin: 0; }
.fb49d .fb49d-text { white-space: normal; line-height: 1.75; margin: .3em 0; }
.fb49d .fb49d-inline { display: inline; margin: 0; }
.fb49d .fb49d-status-label { display: inline-flex; align-items: center; gap: .4em; margin: .3em 0 0; }
.fb49d .fb49d-status-label select { width: auto; min-width: 9em; }
.fb49d .fb49d-small { padding: .3em .8em; font-size: .9em; }
.fb49d .fb49d-js-hide { display: none; }
.fb49d .fb49d-task-tools { margin: .45em 0 0; font-size: .92em; }
.fb49d .fb49d-quiet { color: var(--fb49f-muted); }
.fb49d .fb49d-date { color: var(--fb49f-muted); font-size: .88em; }
.fb49d .fb49d-threads li { border-bottom: 1px solid #efe3cf; }
.fb49d .fb49d-threads a { display: block; padding: .6em .2em; color: #1d1d1d; text-decoration: none; }
.fb49d .fb49d-threads li.is-unread a { font-weight: bold; background: var(--fb49f-bg-soft); }
.fb49d .fb49d-msg { max-width: 88%; margin: 0 0 .7em; padding: .55em .8em; border-radius: 10px; background: #f3efe8; }
.fb49d .fb49d-msg.is-own { margin-inline-start: auto; background: #fde7c4; }
.fb49d .fb49d-msg-meta { margin: 0 0 .2em; font-size: .85em; color: var(--fb49f-muted); }
.fb49d .fb49d-thread-title { margin: .2em 0; }
.fb49d .fb49d-check { display: inline-flex; align-items: center; gap: .35em; margin: .2em 0; margin-inline-end: 1.2em; font-weight: normal; }
.fb49d .fb49d-people .fb49d-check { min-width: 12em; }
.fb49d .fb49d-people .fb49d-all { display: flex; font-weight: bold; }
.fb49d .fb49d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7em; margin: 0 0 1.2em; }
.fb49d .fb49d-stat { border: 1px solid var(--fb49f-border); border-radius: 8px; padding: .6em .8em; background: #fff; }
.fb49d .fb49d-stat p { margin: .1em 0; }
.fb49d .fb49d-stat-label { font-weight: bold; }
.fb49d .fb49d-stat-n { font-size: 1.35em; font-weight: bold; }
.fb49d .fb49d-newsitem.is-unread { border-inline-start-color: var(--fb49f-accent); }
.fb49d .fb49d-newsitem h3 { margin: 0; font-size: 1.05em; }
.fb49d .fb49d-guides li { padding: .5em 0; border-bottom: 1px solid #efe3cf; }
.fb49d .fb49d-assign { margin: 0 0 1.2em; }
.fb49d .fb49d-assign > summary { list-style: none; cursor: pointer; display: inline-block; }
.fb49d .fb49d-assign > summary::-webkit-details-marker { display: none; }
.fb49d .fb49d-assign[open] > summary { margin-bottom: .8em; }
.fb49d .fb49d-filters { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: flex-end; margin: 0 0 .8em; padding: .7em; background: var(--fb49f-bg-soft); border-radius: 8px; }
.fb49d .fb49d-filters label { display: flex; flex-direction: column; gap: .2em; font-size: .92em; }
.fb49d .fb49d-filters label.fb49d-check { flex-direction: row; }
.fb49d .fb49d-filters select, .fb49d .fb49d-filters input[type=search] { min-width: 10em; width: auto; }
.fb49d .fb49d-done > summary { cursor: pointer; margin: 1em 0 .6em; font-weight: bold; }
.fb49d-offer, .fb49f .fb49d-offer { margin: .8em 0; padding: .7em .9em; border: 1px dashed var(--fb49f-accent); border-radius: 8px; background: #fff; }
.fb49d-offer form { display: block; margin: .4em 0; }
@media (max-width: 600px) {
  .fb49d .fb49d-grid { grid-template-columns: 1fr 1fr; gap: .5em; }
  .fb49d .fb49d-tile { padding: .7em .75em; min-height: 4.6em; }
  .fb49d .fb49d-tile-desc { font-size: .82em; }
  .fb49d .fb49d-msg { max-width: 100%; }
  .fb49d .fb49d-filters label, .fb49d .fb49d-filters select, .fb49d .fb49d-filters input[type=search] { width: 100%; }
}/* Selects outside .fb49f-field (task status, team filters): same fix for the theme's .select_container. */
.fb49d .fb49d-status-label select, .fb49d .fb49d-status-label .select_container select,
.fb49d .fb49d-filters select, .fb49d .fb49d-filters .select_container select {
  height: auto; padding: .45em .7em; padding-inline-end: 2.6em; border: 1px solid var(--fb49f-border);
  border-radius: 6px; background-color: #fff; font: inherit; line-height: 1.45; text-indent: 0; min-width: 11.5em;
}
.fb49d .fb49d-status-label .select_container, .fb49d .fb49d-filters .select_container { width: auto; font-size: inherit; line-height: inherit; }
@media (max-width: 600px) {
  .fb49d .fb49d-filters .select_container, .fb49d .fb49d-filters .select_container select { width: 100%; }
}/* RTL: the theme's .select_container draws its arrow and a ~51px white mask (::before) on the RIGHT edge,
   which is where RTL text starts — keep the text clear of it (applies to /report/, /stage/ and /dashboard/). */
.fb49f select, .fb49f .select_container select,
.fb49f .fb49f-field select, .fb49f .fb49f-field .select_container select {
  padding-right: 3.5em !important; padding-left: .75em !important; /* the theme sets it with higher weight */
}
.fb49d .fb49d-filters input[type=search] { border: 1px solid var(--fb49f-border); border-radius: 6px; padding: .45em .7em; background: #fff; font: inherit; }

/* v1.7: notify colleagues on /report/ */
.fb49f .fb49d-notify { border: 1px solid var(--fb49f-border); border-radius: 8px; padding: .6em .9em; background: #fff; }
.fb49f .fb49d-notify > summary { cursor: pointer; font-weight: bold; }
.fb49f .fb49d-notify .fb49d-check { display: inline-flex; align-items: center; gap: .35em; min-width: 12em; margin: .25em 0; margin-inline-end: 1.2em; font-weight: normal; }
.fb49f .fb49f-transl { margin-top: .8em; }

/* v1.8: five languages. The theme's select mask sits on the RIGHT in both directions (see above, now for all). */
.fb49f.fb49f-ltr { direction: ltr; }
.fb49f.fb49f-rtl { direction: rtl; }
.fb49f-langs { display: flex; flex-wrap: wrap; gap: .4em; justify-content: flex-start; }
.fb49f-langs a { white-space: nowrap; }
.fb49f-langpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8em; margin: 1.2em 0; }
.fb49f-langpick-item { display: flex; flex-direction: column; gap: .3em; padding: 1em 1.1em; border: 1px solid var(--fb49f-border); border-radius: 10px; background: #fff; color: #1d1d1d; text-decoration: none; }
.fb49f-langpick-item[dir="rtl"] { text-align: right; }
.fb49f-langpick-item[dir="ltr"] { text-align: left; }
.fb49f-langpick-item:hover, .fb49f-langpick-item:focus-visible { border-color: var(--fb49f-accent); background: var(--fb49f-bg-soft); }
.fb49f-langpick-name { font-size: 1.35em; font-weight: bold; }
.fb49f-langpick-q { font-weight: bold; }
.fb49f-langpick-help { color: var(--fb49f-muted); font-size: .9em; line-height: 1.55; }
.fb49f .fb49f-mono, .fb49f [dir="ltr"] { unicode-bidi: isolate; }

/* v1.10: corrected / cancelled reports */
.fb49f-mine-item.is-cancelled { opacity: .7; }
.fb49f-mine-item.is-cancelled .fb49f-mine-book strong { text-decoration: line-through; }
.fb49f-badge-cancel { background: #b3261e; color: #fff; }
.fb49f-redit { margin-top: .5em; }
.fb49f-redit .fb49f-btn { padding: .35em .9em; font-size: .9em; }

/* v1.11: staff portal guide */
.fb49d-guide { line-height: 1.8; }
.fb49d-guide h2 { font-size: 1.35em; margin: 0 0 .6em; }
.fb49d-guide h3 { font-size: 1.1em; margin: 1.4em 0 .4em; }
.fb49d-guide ol, .fb49d-guide ul { margin: .3em 0 .8em; padding-inline-start: 1.6em; }
.fb49d-guide li { margin: .2em 0; }
.fb49d-guide-stages { columns: 2 16em; }
.fb49d-guide-pin h3 { margin: 0; }
.fb49d-msg-buttons .fb49f-btn { margin: 0 0 .4em; }

/* owner 2026-10-19 (contrast, WCAG AA): the author portal, /join/ and the other portal pages inside the shop theme take
   the theme's light grey text (#797979, 3.99:1) and red links (4.15:1) — here dark text and navy links instead. */
.fb49p-pub, .fb49a-portal, .fb49p-pub .fb49f-field > label, .fb49p-pub summary { color: #2B2724; }
.fb49p-pub a:not(.fb49f-btn):not(.is-current), .fb49a-portal a:not(.fb49f-btn):not(.is-current) { color: #1A4480; }
.fb49p-pub .fb49f-langs a:not(.is-current) { color: #2B2724; border-color: #8F8A84; }
.fb49p-pub .fb49f-help, .fb49p-pub .fb49f-intro, .fb49a-portal .fb49f-help { color: #5A534C; }
.fb49p-pub .fb49tr-line, .fb49p-pub .fb49tr-n { opacity: 1; color: #4A4540; }
.fb49p-pub .fb49tr-name { color: #2B2724; }
.fb49p-pub .fb49tr-tile.is-wait .fb49tr-c { color: #66615B; border-color: #8F8A84; }
.fb49p-pub .fb49tr-tile.is-now .fb49tr-c { color: #7A5D00; }
.fb49p-pub .fb49tr-tile.is-done .fb49tr-c, .fb49p-pub .fb49tr-tile.is-done .fb49tr-ok { color: #1F7A45; border-color: #1F7A45; }
.fb49p-pub input, .fb49p-pub select, .fb49p-pub textarea { color: #2B2724 !important; }
html body .sc_layouts_cart .sc_layouts_cart_items_short, html body .sc_layouts_cart_items_short.sc_layouts_cart_items_short_empty { color: #1A4480 !important; } /* the cart count on the orange dot (shop header on /join/) */
.fb49legal-formline { opacity: 1 !important; color: #2B2724; }
.fb49legal-formline a { color: #1A4480 !important; }

/* the author's size proposal (p-size.php) */
.fb49sz-author { margin: 14px 0; }
.fb49sz-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.fb49sz-sizes legend { grid-column: 1 / -1; }
.fb49sz-sizes input[type=text] { max-width: 12em; display: inline-block; width: auto; margin-inline-start: 6px; }

/* Work report: one book search (owner 2026-10-18) */
.fb49f-findres { list-style: none; margin: 6px 0 0; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid #e5dccd; border-radius: 8px; }
.fb49f-findres li + li { border-top: 1px solid #efe8dc; }
.fb49f-findhit { display: block; width: 100%; text-align: start; background: none; border: 0; padding: 9px 10px; font: inherit; font-size: 15px; cursor: pointer; overflow-wrap: anywhere; color: inherit; }
.fb49f-findhit:hover, .fb49f-findhit:focus { background: #f7f2ea; outline: none; }
.fb49f-chosen { margin: 8px 0 0; padding: 8px 10px; background: #eef6ea; border-radius: 8px; overflow-wrap: anywhere; }
.fb49f-nlbox { margin-top: 8px; }
.fb49f-nlbox input { margin-bottom: 8px; }
