/* FIA Collections – minimal black & white styling that inherits the site font. */
.fia-col-host { position: relative; }
.fia-col-imgwrap { display: block; width: fit-content; max-width: 100%; margin-inline: inherit; }
.fia-col-imgwrap img { display: block; }

.fia-col-btn {
	position: absolute; top: 10px; right: 10px; z-index: 5;
	font: inherit; font-size: 12px; line-height: 1; letter-spacing: .02em; text-transform: lowercase;
	padding: 7px 11px; border: 1px solid #000; border-radius: 999px;
	background: #fff; color: #000; cursor: pointer;
	opacity: 0; transform: translateY(-2px); transition: opacity .15s, transform .15s, background .15s, color .15s;
}
.fia-col-host:hover .fia-col-btn, .fia-col-btn:focus-visible, .fia-col-btn.is-saved { opacity: 1; transform: none; }
.fia-col-btn:hover, .fia-col-btn.is-saved { background: #000; color: #fff; }
@media (hover: none) { .fia-col-btn { opacity: 1; transform: none; } }

/* dialog */
.fia-col-overlay {
	position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.35);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.fia-col-panel {
	background: #fff; color: #000; width: 100%; max-width: 380px; max-height: 80vh; overflow: auto;
	border: 1px solid #000; font-size: 14px; text-transform: lowercase;
}
.fia-col-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #000; }
.fia-col-panel-title { font-weight: 600; }
.fia-col-x { font: inherit; font-size: 22px; line-height: 1; background: none; border: 0; cursor: pointer; color: inherit; padding: 0 4px; }
.fia-col-panel-body { padding: 14px 16px 16px; }
.fia-col-panel-body p { margin: 0 0 14px; }

.fia-col-list { list-style: none; margin: 0 0 14px; padding: 0; }
.fia-col-list li + li { margin-top: 6px; }
.fia-col-row {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; font: inherit; text-align: left;
	background: #fff; color: #000; border: 1px solid #ddd; cursor: pointer;
}
.fia-col-row:hover { border-color: #000; }
.fia-col-row.is-in { border-color: #000; }
.fia-col-row:disabled { opacity: .5; }
.fia-col-thumb { flex: 0 0 40px; height: 40px; background: #eee; overflow: hidden; }
.fia-col-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fia-col-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fia-col-row-state { font-size: 12px; padding: 4px 9px; border: 1px solid #000; border-radius: 999px; }
.fia-col-row.is-in .fia-col-row-state { background: #000; color: #fff; }

.fia-col-new { display: flex; gap: 8px; margin: 0 0 14px; }
.fia-col-input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid #000; background: #fff; color: #000; border-radius: 0; }
.fia-col-cta {
	display: inline-block; font: inherit; font-size: 13px; text-transform: lowercase; text-decoration: none;
	padding: 8px 14px; border: 1px solid #000; background: #000; color: #fff; cursor: pointer; border-radius: 0;
}
.fia-col-cta.is-ghost { background: #fff; color: #000; }
.fia-col-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fia-col-link { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fia-col-link.is-danger { color: #b00; }
.fia-col-muted { color: #777; font-size: 13px; }

.fia-col-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100001; transform: translate(-50%, 10px); opacity: 0;
	background: #000; color: #fff; padding: 10px 16px; font-size: 13px; text-transform: lowercase; transition: opacity .2s, transform .2s;
	max-width: calc(100vw - 32px);
}
.fia-col-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* saved page */
.fia-col-app { text-transform: lowercase; }
.fia-col-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.fia-col-tools { display: flex; gap: 16px; }
.fia-col-app .fia-col-new { max-width: 420px; margin-bottom: 28px; }
.fia-col-empty { padding: 40px 0; }

.fia-col-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.fia-col-board { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.fia-col-cover { display: grid; aspect-ratio: 3 / 4; background: #eee; overflow: hidden; gap: 2px; }
.fia-col-cover.is-trio { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fia-col-cover.is-trio img:first-child { grid-row: 1 / 3; }
.fia-col-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fia-col-board:hover .fia-col-board-name { text-decoration: underline; }
.fia-col-board-name { margin-top: 6px; font-weight: 600; }
.fia-col-board-title { margin: 0 0 20px; }

.fia-col-items { columns: 4 220px; column-gap: 16px; }
.fia-col-item { position: relative; break-inside: avoid; margin: 0 0 16px; }
.fia-col-item img { width: 100%; height: auto; display: block; }
.fia-col-item figcaption { font-size: 12px; margin-top: 6px; }
.fia-col-noimg { display: block; padding: 40px 12px; background: #eee; }
.fia-col-remove {
	position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
	font: inherit; font-size: 18px; line-height: 1; border: 1px solid #000; background: #fff; color: #000; cursor: pointer;
	opacity: 0; transition: opacity .15s;
}
.fia-col-item:hover .fia-col-remove, .fia-col-remove:focus-visible { opacity: 1; }
@media (hover: none) { .fia-col-remove { opacity: 1; } }

/* The site's custom CSS forces `color: #000 !important` on every element.
   These higher-specificity overrides keep white-on-black states readable. */
.fia-col-btn:hover:not(#fia-a):not(#fia-b), .fia-col-btn:hover:not(#fia-a):not(#fia-b) *,
.fia-col-btn.is-saved:not(#fia-a):not(#fia-b), .fia-col-btn.is-saved:not(#fia-a):not(#fia-b) *,
.fia-col-cta:not(.is-ghost):not(#fia-a):not(#fia-b),
.fia-col-row.is-in .fia-col-row-state:not(#fia-a):not(#fia-b),
.fia-col-toast.fia-col-toast:not(#fia-a):not(#fia-b) { color: #fff !important; }
.fia-col-muted.fia-col-muted:not(#fia-a):not(#fia-b) { color: #777 !important; }
.fia-col-link.is-danger:not(#fia-a):not(#fia-b) { color: #b00 !important; }

/* sign up / log in */
.fia-col-auth { text-transform: lowercase; }
.fia-col-intro { margin: 0 0 18px; font-size: 14px; line-height: 1.45; }
.fia-col-authform { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fia-col-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .02em; }
.fia-col-field .fia-col-input { font-size: 16px; padding: 10px 12px; text-transform: none; }
.fia-col-field .fia-col-input:focus { outline: 2px solid #000; outline-offset: 1px; }
.fia-col-field small { font-size: 11px; }
.fia-col-wide { width: 100%; padding: 12px 14px; font-size: 14px; }
.fia-col-cta:disabled { opacity: .6; cursor: default; }
.fia-col-error { margin: 0; min-height: 0; font-size: 13px; }
.fia-col-error:empty { display: none; }
.fia-col-error.fia-col-error:not(#fia-a):not(#fia-b) { color: #b00 !important; }
.fia-col-switch { margin: 16px 0 0; font-size: 13px; }
.fia-col-switch + .fia-col-switch { margin-top: 6px; }
.fia-col-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fia-col-authpage { max-width: 380px; margin: 40px auto; border: 1px solid #000; padding: 28px 24px; }

/* ===== modern sign up / log in ===== */
.fia-auth-overlay { background: rgba(0,0,0,0); backdrop-filter: blur(0); transition: background .25s, backdrop-filter .25s; }
.fia-auth-overlay.is-open { background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.fia-auth-sheet {
	position: relative; display: flex; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.25);
	opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.fia-auth-overlay.is-open .fia-auth-sheet { opacity: 1; transform: none; }
.fia-auth-sheet.has-media { max-width: 760px; }
.fia-auth-media { flex: 0 0 44%; background: #f2f2f2; }
.fia-auth-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.fia-auth-pane { flex: 1; padding: 44px 36px 36px; display: flex; align-items: center; }
.fia-auth-close {
	position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.9); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s;
}
.fia-auth-close:hover { background: #eee; }

.fia-auth { width: 100%; text-transform: lowercase; }
.fia-auth-step { animation: fia-auth-in .3s cubic-bezier(.2,.8,.2,1); }
@keyframes fia-auth-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.fia-auth-title { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.fia-auth-sub { font-size: 15px; line-height: 1.45; margin: 0 0 24px; }
.fia-auth .fia-auth-sub:not(#fia-a):not(#fia-b), .fia-auth .fia-auth-fine:not(#fia-a):not(#fia-b), .fia-auth .fia-auth-hint:not(#fia-a):not(#fia-b), .fia-auth .fia-auth-label:not(#fia-a):not(#fia-b) { color: #6b6b6b !important; }
.fia-auth-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }

.fia-auth-field { position: relative; display: block; }
.fia-auth-input {
	width: 100%; box-sizing: border-box; height: 58px; padding: 24px 64px 8px 18px; font: inherit; font-size: 16px; text-transform: none;
	background: #f4f4f4; border: 1.5px solid transparent; border-radius: 16px; outline: 0; transition: border-color .15s, background .15s, box-shadow .15s;
}
.fia-auth-input:hover { background: #efefef; }
.fia-auth-input:focus { background: #fff; border-color: #000; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.fia-auth-label {
	position: absolute; left: 19px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none;
	transition: top .15s, font-size .15s, transform .15s;
}
.fia-auth-input:focus + .fia-auth-label, .fia-auth-input:not(:placeholder-shown) + .fia-auth-label { top: 16px; transform: none; font-size: 12px; }
.fia-auth-eye {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: 13px;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px;
}

.fia-auth-btn {
	position: relative; height: 54px; border: 0; border-radius: 999px; background: #000; font: inherit; font-size: 16px; font-weight: 500;
	text-transform: lowercase; cursor: pointer; margin-top: 4px; transition: transform .1s, opacity .15s, background .15s;
}
.fia-auth .fia-auth-btn:not(#fia-a):not(#fia-b), .fia-auth .fia-auth-btn:not(#fia-a):not(#fia-b) span { color: #fff !important; }
.fia-auth-btn:hover { background: #222; }
.fia-auth-btn:active { transform: scale(.98); }
.fia-auth-btn.is-busy { opacity: .7; cursor: default; }

.fia-auth-chip {
	display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 4px 0 20px; padding: 7px 8px 7px 14px;
	border: 1px solid #e3e3e3; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; text-transform: none; cursor: pointer;
}
.fia-auth-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fia-auth-chip-edit { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #f2f2f2; text-transform: lowercase; }
.fia-auth-chip:hover .fia-auth-chip-edit { background: #e6e6e6; }

.fia-auth-hint { display: flex; align-items: center; gap: 8px; margin: -2px 0 0 4px; font-size: 13px; }
.fia-auth-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfcfcf; transition: background .2s; }
.fia-auth-hint.is-ok .fia-auth-dot { background: #1a7f37; }
.fia-auth-err { margin: 0 0 0 4px; font-size: 13px; }
.fia-auth-err:empty { display: none; }
.fia-auth .fia-auth-err:not(#fia-a):not(#fia-b) { color: #c0172b !important; }
.fia-auth-fine { margin: 18px 0 0; font-size: 12px; line-height: 1.45; }
.fia-auth-fine a { text-decoration: underline; text-underline-offset: 3px; }

.fia-auth-card { max-width: 420px; margin: 48px auto; padding: 40px 32px 32px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 48px rgba(0,0,0,.08); border: 1px solid #efefef; }

@media (max-width: 640px) {
	.fia-auth-overlay { align-items: flex-end; padding: 0; }
	.fia-auth-sheet, .fia-auth-sheet.has-media { max-width: none; border-radius: 24px 24px 0 0; flex-direction: column; transform: translateY(40px); }
	.fia-auth-media { flex: none; height: 180px; }
	.fia-auth-media img { min-height: 0; }
	.fia-auth-pane { padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); }
	.fia-auth-card { margin: 24px 0; padding: 32px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.fia-auth-sheet, .fia-auth-overlay, .fia-auth-step { transition: none; animation: none; }
}
