#fiani-gincana-app {
  --fg-ink: #132a32;
  --fg-muted: #687b82;
  --fg-line: #dce5e6;
  --fg-bg: #f4f7f6;
  --fg-card: #ffffff;
  --fg-brand: #087f73;
  --fg-brand-dark: #075f58;
  --fg-accent: #f3b83f;
  --fg-danger: #b83d46;
  --fg-shadow: 0 8px 26px rgba(24, 50, 57, .07);
  color: var(--fg-ink);
  background: var(--fg-bg);
  min-height: 100vh;
  font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
#fiani-gincana-app *, #fiani-gincana-app *::before, #fiani-gincana-app *::after { box-sizing: border-box; }
#fiani-gincana-app button, #fiani-gincana-app input, #fiani-gincana-app select, #fiani-gincana-app textarea { font: inherit; }
#fiani-gincana-app button { color: inherit; }
#fiani-gincana-app button:focus-visible, #fiani-gincana-app input:focus-visible, #fiani-gincana-app select:focus-visible, #fiani-gincana-app textarea:focus-visible { outline: 3px solid rgba(8,127,115,.22); outline-offset: 2px; }
.fiani-gincana-page .entry-title { display: none !important; }
.fiani-gincana-page .entry-content, .fiani-gincana-page .site-main { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.fiani-gincana-page #content { padding: 0 !important; }
.fiani-gincana-page #fiani-gincana-app { margin: 0 !important; }
.fg-modal-open { overflow: hidden; }

.fg-loading, .fg-fatal { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 32px; }
.fg-loading span { width: 34px; height: 34px; margin: auto; border: 3px solid #d8e5e3; border-top-color: var(--fg-brand); border-radius: 50%; animation: fg-spin .75s linear infinite; }
@keyframes fg-spin { to { transform: rotate(360deg); } }

.fg-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0, #e1eeea 0, var(--fg-bg) 38%); }
.fg-login-card { width: min(430px, 100%); padding: 42px; border: 1px solid var(--fg-line); border-radius: 18px; background: #fff; box-shadow: var(--fg-shadow); text-align: center; }
.fg-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: white; background: var(--fg-brand); border-radius: 12px; font-weight: 900; font-size: 20px; }
.fg-login-card .fg-brand-mark { margin: 0 auto 15px; }
.fg-kicker { color: var(--fg-brand); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.fg-login-card h1 { margin: 5px 0 2px; font-size: clamp(27px, 5vw, 36px); line-height: 1.14; text-transform: uppercase; }
.fg-login-card > p { margin: 0 0 27px; color: var(--fg-muted); }
.fg-login-card label, .fg-dialog label { display: grid; gap: 6px; text-align: left; color: #40565d; font-size: 13px; font-weight: 650; }
.fg-login-card input, .fg-dialog input, .fg-dialog select, .fg-dialog textarea, .fg-filter-panel select { width: 100%; border: 1px solid #cbd9db; border-radius: 9px; background: #fff; color: var(--fg-ink); padding: 10px 12px; min-height: 43px; }
.fg-login-card input:focus, .fg-dialog input:focus, .fg-dialog select:focus, .fg-dialog textarea:focus, .fg-filter-panel select:focus { border-color: var(--fg-brand); box-shadow: 0 0 0 3px rgba(8,127,115,.09); outline: none; }
.fg-login-card form { display: grid; gap: 14px; }
.fg-login-card small { display: block; margin-top: 18px; color: var(--fg-muted); }

.fg-app { min-height: 100vh; padding: 0 22px 28px; }
.fg-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; margin: 0 -22px; padding: 12px 24px; border-bottom: 1px solid var(--fg-line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.fg-brand { display: flex; align-items: center; gap: 12px; }
.fg-brand span { display: block; color: var(--fg-brand); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.fg-brand h1 { margin: 1px 0 0; font-size: 20px; line-height: 1.15; text-transform: uppercase; }
.fg-header-actions { display: flex; align-items: center; gap: 8px; }
.fg-overview-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--fg-line); border-radius: 10px; color: #355158; background: white; cursor: pointer; }
.fg-overview-button:hover { color: var(--fg-brand-dark); border-color: #a9cac5; background: #edf7f5; }
.fg-overview-button > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: white; background: var(--fg-brand); font-size: 12px; font-weight: 800; }
.fg-overview-button b { font-size: 12px; }
.fg-overview-button em { min-width: 25px; padding: 2px 6px; border-radius: 999px; color: #547078; background: #edf2f2; font-size: 10px; font-style: normal; font-weight: 750; text-align: center; }
.fg-search { position: relative; display: block; }
.fg-search span { position: absolute; top: 8px; left: 11px; font-size: 22px; color: var(--fg-muted); transform: rotate(-15deg); }
.fg-search input { width: min(240px, 25vw); min-height: 42px; padding: 8px 12px 8px 37px; border: 1px solid var(--fg-line); border-radius: 10px; background: var(--fg-bg); color: var(--fg-ink); }
.fg-icon-button { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 11px; border: 1px solid var(--fg-line); border-radius: 10px; background: white; cursor: pointer; font-weight: 750; }
.fg-icon-button:hover, .fg-icon-button.active { color: var(--fg-brand); border-color: #a9cac5; background: #edf7f5; }
.fg-menu-wrap { position: relative; }
.fg-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 220px; padding: 6px; border: 1px solid var(--fg-line); border-radius: 12px; background: white; box-shadow: var(--fg-shadow); }
.fg-menu button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.fg-menu button:hover { background: var(--fg-bg); }
.fg-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; max-width: 1500px; margin: 21px auto 15px; color: var(--fg-muted); }
.fg-summary strong { margin-right: 8px; color: var(--fg-ink); font-size: 16px; }
.fg-summary i { color: #afbec1; font-style: normal; }
.fg-admin-warning { max-width: 1500px; margin: 18px auto; padding: 12px 14px; border: 1px solid #ecd49e; border-radius: 9px; background: #fff8e7; }
.fg-filter-panel { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto; align-items: end; gap: 12px; max-width: 1500px; margin: 0 auto 15px; padding: 14px; border: 1px solid var(--fg-line); border-radius: 12px; background: white; }
.fg-filter-panel label { display: grid; gap: 5px; color: var(--fg-muted); font-size: 12px; font-weight: 650; }
.fg-filter-panel .fg-check { display: flex; align-items: center; min-height: 43px; gap: 8px; white-space: nowrap; }
.fg-filter-panel .fg-check input { width: 17px; height: 17px; accent-color: var(--fg-brand); }
.fg-mobile-tabs { display: none; }

.fg-board { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 16px; max-width: 1500px; margin: auto; align-items: start; }
.fg-column { min-width: 0; padding: 12px; border: 1px solid var(--fg-line); border-radius: 14px; background: #eaf0ef; }
.fg-column > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 35px; padding: 0 3px 9px; }
.fg-column > header > div { display: flex; align-items: center; gap: 8px; }
.fg-column h2 { margin: 0; font-size: 13px; letter-spacing: .045em; text-transform: uppercase; }
.fg-column > header b { min-width: 25px; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.72); text-align: center; font-size: 12px; }
.fg-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #879a9d; }
.status-preparation .fg-status-dot { background: var(--fg-accent); }
.status-ready .fg-status-dot { background: var(--fg-brand); }
.fg-card-list { display: grid; gap: 10px; min-height: 42px; border-radius: 9px; transition: background .15s; }
.fg-card-list.drag-over { background: rgba(8,127,115,.08); }
.fg-card { overflow: hidden; border: 1px solid #d8e2e3; border-radius: 11px; background: white; box-shadow: 0 2px 8px rgba(24,50,57,.035); cursor: pointer; transition: transform .14s, box-shadow .14s, opacity .14s; }
.fg-card:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(24,50,57,.08); }
.fg-card.dragging { opacity: .45; transform: rotate(1deg); }
.fg-card-cover { display: block; width: 100%; height: 112px; object-fit: cover; }
.fg-card-content { padding: 12px; }
.fg-type { display: inline-flex; align-items: center; min-height: 21px; padding: 2px 7px; border-radius: 5px; color: #476069; background: #eef3f3; font-size: 10px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.fg-type.type-test { color: #805a10; background: #fff4d9; }
.fg-type.type-purchase { color: #7a4b6e; background: #f7eaf4; }
.fg-type.type-communication { color: #315f8e; background: #eaf2fb; }
.fg-card h3 { margin: 8px 0 12px; font-size: 15px; line-height: 1.32; }
.fg-card-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: var(--fg-muted); font-size: 12px; }
.fg-card-meta span { white-space: nowrap; }
.fg-due.soon { color: #8b610a; font-weight: 700; }
.fg-due.overdue { color: var(--fg-danger); font-weight: 750; }
.fg-empty, .fg-list-empty { padding: 18px 10px; color: var(--fg-muted); text-align: center; font-size: 13px; }
.fg-add { width: 100%; margin-top: 9px; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: #456066; text-align: left; cursor: pointer; font-weight: 650; }
.fg-add:hover { color: var(--fg-brand-dark); background: rgba(255,255,255,.7); }
.fg-footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1500px; margin: 16px auto 0; color: var(--fg-muted); font-size: 12px; }
.fg-footer button { padding: 0; border: 0; background: transparent; cursor: pointer; }

.fg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid var(--fg-line); border-radius: 9px; background: white; cursor: pointer; font-weight: 720; }
.fg-button:hover { border-color: #b7c9cb; background: #f8faf9; }
.fg-button.primary { color: white; border-color: var(--fg-brand); background: var(--fg-brand); }
.fg-button.primary:hover { background: var(--fg-brand-dark); }
.fg-button.danger { color: var(--fg-danger); border-color: #efdadd; background: #fffafb; }
.fg-button.small { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.fg-button.wide { width: 100%; }
.fg-link-button { padding: 7px 4px; border: 0; background: transparent; color: var(--fg-brand-dark); cursor: pointer; font-size: 13px; font-weight: 700; }
.fg-link-button.danger { color: var(--fg-danger); }

.fg-overlay { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 24px; color: #132a32; background: rgba(12,31,37,.55); backdrop-filter: blur(3px); }
.fg-dialog { position: relative; overflow: auto; width: min(700px, 100%); max-height: calc(100vh - 48px); padding: 28px; border-radius: 16px; background: white; box-shadow: 0 22px 70px rgba(6,25,31,.28); }
.fg-dialog h2 { margin: 4px 0 22px; font-size: 25px; line-height: 1.2; }
.fg-dialog h3 { margin: 0; font-size: 15px; }
.fg-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef3f3; cursor: pointer; font-size: 23px; line-height: 1; }
.fg-dialog-close:hover { background: #e1e9e8; }
.fg-dialog form { display: grid; gap: 14px; }
.fg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-create-dialog { width: min(820px, 100%); }
.fg-people-field { min-width: 0; margin: 0; padding: 11px; border: 1px solid #cbd9db; border-radius: 10px; }
.fg-people-field legend { padding: 0 5px; color: #40565d; font-size: 13px; font-weight: 650; }
.fg-people-field legend small { color: #687b82; font-weight: 400; }
.fg-people-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.fg-people-picker label { display: block; cursor: pointer; }
.fg-people-picker input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.fg-people-picker span { display: block; padding: 7px 11px; border: 1px solid #d5e0e1; border-radius: 999px; background: white; color: #40565d; font-size: 12px; font-weight: 650; }
.fg-people-picker input:checked + span { border-color: #087f73; color: #075f58; background: #e8f6f3; box-shadow: inset 0 0 0 1px #087f73; }
.fg-card-people { margin: -8px 0 20px; background: #fafcfc; }
.fg-create-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-draft-section { min-width: 0; padding: 12px; border: 1px solid #dce5e6; border-radius: 10px; background: #fafcfc; }
.fg-draft-section > header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fg-draft-section > header small { color: #687b82; }
.fg-draft-section ul { display: grid; gap: 6px; min-height: 34px; margin: 0 0 9px !important; padding: 0 !important; list-style: none !important; }
.fg-draft-section li[data-draft-item] { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 7px 6px 9px; border-radius: 7px; background: white; }
.fg-draft-section li > span { min-width: 0; overflow-wrap: anywhere; }
.fg-draft-section li > div { display: flex; flex: 0 0 auto; }
.fg-draft-section li button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.fg-draft-section li button:hover { background: #edf3f2; }
.fg-list-empty.compact { min-height: 0; margin: 0; padding: 7px; }
.fg-create-image { position: relative; cursor: pointer; }
.fg-create-image > input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.fg-create-image-box { display: grid; place-content: center; min-height: 137px; padding: 14px; border: 1.5px dashed #b8cbcb; border-radius: 10px; background: #f9fbfa; text-align: center; }
.fg-create-image-box:hover { border-color: var(--fg-brand); background: #f0f8f6; }
.fg-create-image-box b { color: var(--fg-brand-dark); }
.fg-create-image-box small { color: var(--fg-muted); font-weight: 400; }
.fg-create-image-box em { overflow: hidden; max-width: 250px; margin-top: 8px; color: #536a70; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.fg-dialog textarea { resize: vertical; line-height: 1.5; }
.fg-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.fg-identity { width: min(470px, 100%); text-align: center; }
.fg-identity > p { color: var(--fg-muted); }
.fg-identity form { margin-top: 18px; }

.fg-card-dialog { width: min(1120px, 100%); padding: 27px 30px 20px; }
.fg-card-dialog-head { padding-right: 44px; }
.fg-title-input { margin-top: 8px; padding: 4px 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; font-size: clamp(23px, 3vw, 31px) !important; font-weight: 800 !important; line-height: 1.18; }
.fg-card-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 20px 0; padding: 14px; border-radius: 11px; background: var(--fg-bg); }
.fg-card-detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, .8fr); gap: 21px; }
.fg-card-main { min-width: 0; }
.fg-detail-section { margin-bottom: 16px; padding: 17px; border: 1px solid var(--fg-line); border-radius: 12px; background: white; }
.fg-detail-section > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.fg-detail-section > header small, .fg-detail-section > header b { color: var(--fg-muted); font-size: 11px; }
.fg-image-preview { display: block; overflow: hidden; width: 100%; max-height: 330px; padding: 0; border: 0; border-radius: 9px; background: #edf1f1; cursor: zoom-in; }
.fg-image-preview img { display: block; width: 100%; max-height: 330px; object-fit: contain; }
.fg-inline-actions { display: flex; align-items: center; gap: 13px; margin-top: 10px; }
.fg-upload-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 37px; padding: 7px 11px; border: 1px solid var(--fg-line); border-radius: 8px; background: white; cursor: pointer; color: var(--fg-ink) !important; }
.fg-upload-button input, .fg-image-drop input { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; pointer-events: none; }
.fg-image-drop { position: relative; display: grid !important; place-items: center; min-height: 145px; padding: 20px; border: 1.5px dashed #b8cbcb; border-radius: 10px; background: #f9fbfa; cursor: pointer; text-align: center !important; }
.fg-image-drop:hover { border-color: var(--fg-brand); background: #f0f8f6; }
.fg-image-drop > span { color: var(--fg-brand); font-size: 30px; }
.fg-image-drop small { color: var(--fg-muted); }
.fg-description { min-height: 135px; }
.fg-progress { overflow: hidden; height: 7px; margin-bottom: 12px; border-radius: 10px; background: #e5eceb; }
.fg-progress span { display: block; height: 100%; border-radius: inherit; background: var(--fg-brand); }
.fg-materials { display: grid; gap: 7px; margin: 0 0 12px !important; padding: 0 !important; list-style: none !important; }
.fg-materials > li:not(.fg-list-empty) { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 39px; padding: 6px 7px 6px 9px; border-radius: 8px; background: var(--fg-bg); }
.fg-materials.drag-over, .fg-overview-list.drag-over { outline: 2px dashed rgba(8,127,115,.32); outline-offset: 4px; }
.fg-drag-handle { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 29px; padding: 0; border: 0; border-radius: 6px; color: #789097; background: transparent; cursor: grab; font-size: 18px; line-height: 1; touch-action: none; }
.fg-drag-handle:hover { color: var(--fg-brand-dark); background: white; }
.fg-drag-handle:active { cursor: grabbing; }
.fg-materials .fg-task-priority { width: 88px; min-height: 31px; padding: 4px 6px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.fg-materials .fg-material-status { width: 96px; min-height: 31px; padding: 4px 6px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.fg-task-priority.priority-urgent { color: #9b2934; border-color: #edc4c8; background: #fff2f3; }
.fg-task-priority.priority-high { color: #8a5c0a; border-color: #ead19e; background: #fff8e8; }
.fg-task-priority.priority-normal { color: #246477; border-color: #bdd9e1; background: #f0f8fa; }
.fg-task-priority.priority-low { color: #5e7075; border-color: #d5dfe1; background: #f6f8f8; }
.fg-material-status.material-acquire { color: #8a5c0a; border-color: #ead19e; background: #fff8e8; }
.fg-material-status.material-have { color: #07655d; border-color: #b8ddd7; background: #e9f7f4; }
.fg-material-status.material-reserved { color: #315f8e; border-color: #bfd4ea; background: #eef5fc; }
.fg-materials label { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; color: var(--fg-ink); cursor: pointer; }
.fg-materials > li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fg-materials input { width: 17px !important; min-height: 17px !important; padding: 0 !important; accent-color: var(--fg-brand); }
.fg-materials input:checked + span { color: var(--fg-muted); text-decoration: line-through; }
.fg-materials li > div { display: flex; flex: 0 0 auto; }
.fg-materials li > div button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.fg-materials li > div button:hover { background: white; }
.fg-inline-form { display: grid !important; grid-template-columns: 1fr auto; gap: 8px !important; }
.fg-add-task-form { grid-template-columns: minmax(0,1fr) 105px auto; }
.fg-add-material-form { grid-template-columns: minmax(0,1fr) 115px auto; }
.fg-comments { display: grid; gap: 10px; margin-bottom: 13px; }
.fg-comment { padding: 12px; border-radius: 9px; background: var(--fg-bg); }
.fg-comment header { display: flex; justify-content: space-between; gap: 10px; }
.fg-comment time { color: var(--fg-muted); font-size: 11px; }
.fg-comment p { margin: 8px 0; }
.fg-comment > div { display: flex; gap: 9px; }
.fg-comment > div button { padding: 0; border: 0; background: transparent; color: var(--fg-brand-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.fg-card-side { min-width: 0; }
.fg-activity { display: grid; gap: 4px; }
.fg-activity article, .fg-global-history article { display: grid; grid-template-columns: 11px 1fr; gap: 9px; }
.fg-activity article > span, .fg-global-history article > span { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #a8bbb9; }
.fg-activity p, .fg-global-history p { margin: 0 0 11px; color: #4c6167; font-size: 12px; }
.fg-activity time, .fg-global-history small { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 10px; }
.fg-side-actions { display: grid; gap: 8px; }
.fg-dialog-footer { display: flex; justify-content: space-between; gap: 14px; padding-top: 5px; color: var(--fg-muted); font-size: 10px; }
.fg-settings-dialog { width: min(620px, 100%); }
.fg-settings-dialog hr { margin: 24px 0; border: 0; border-top: 1px solid var(--fg-line); }
.fg-people-admin { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.fg-people-admin > span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px 6px 11px; border: 1px solid #d5e0e1; border-radius: 999px; background: #f8fbfa; font-size: 13px; }
.fg-people-admin button { display: grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 50%; background: #e7eeee; cursor: pointer; }
.fg-person-form { margin-top: 10px; }
.fg-identity-empty { margin-top: 18px; padding: 13px; border: 1px solid #ecd49e; border-radius: 9px; color: #6d561f; background: #fff8e7; }
.fg-admin-list-dialog { width: min(820px, 100%); }
.fg-admin-card-list { display: grid; gap: 8px; }
.fg-admin-card-list article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--fg-line); border-radius: 9px; }
.fg-admin-card-list small { display: block; color: var(--fg-muted); }
.fg-global-history { display: grid; gap: 8px; }
.fg-overview-dialog { width: min(980px, 100%); }
.fg-overview-summary { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: -10px 0 18px; color: var(--fg-muted); }
.fg-overview-summary p { margin: 0; }
.fg-show-completed { margin-top: 7px; padding: 0; border: 0; color: var(--fg-brand-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.fg-show-completed:hover { text-decoration: underline; }
.fg-overview-summary small { text-align: right; }
.fg-overview-list { display: grid; gap: 8px; min-height: 60px; border-radius: 10px; }
.fg-overview-row { display: grid; grid-template-columns: 30px 22px minmax(0,1fr) auto auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; border: 1px solid var(--fg-line); border-radius: 10px; background: #fbfcfc; transition: border-color .15s, opacity .15s; }
.fg-overview-row:hover { border-color: #b9cecf; }
.fg-overview-row.dragging { opacity: .42; }
.fg-overview-row > input[type="checkbox"] { width: 18px; min-height: 18px; padding: 0; accent-color: var(--fg-brand); }
.fg-material-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--fg-brand-dark); background: #e5f2f0; font-size: 12px; }
.fg-overview-content { min-width: 0; }
.fg-overview-content strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.fg-overview-content button { display: inline; margin-top: 3px; padding: 0; border: 0; color: var(--fg-brand-dark); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; }
.fg-overview-content button:hover { text-decoration: underline; }
.fg-overview-status { padding: 4px 8px; border-radius: 999px; color: #526970; background: #edf2f2; font-size: 10px; font-weight: 750; white-space: nowrap; }
.fg-overview-status.status-preparation { color: #77550b; background: #fff5d9; }
.fg-overview-status.status-ready { color: #07655d; background: #e6f5f2; }
.fg-overview-row .fg-task-priority { width: 98px; min-height: 34px; padding: 5px 7px; font-size: 11px; }
.fg-overview-row .fg-material-status { width: 105px; min-height: 34px; padding: 5px 7px; font-size: 11px; }
.fg-overview-row.is-completed .fg-overview-content strong { color: var(--fg-muted); text-decoration: line-through; }
.fg-lightbox { cursor: zoom-out; }
.fg-lightbox img { max-width: min(1200px, 94vw); max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 15px 55px rgba(0,0,0,.35); }
.fg-lightbox .fg-dialog-close { color: white; background: rgba(0,0,0,.48); }
.fg-toast { position: fixed; z-index: 100000; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 44px)); padding: 12px 16px; border-radius: 10px; color: white; background: #173f3b; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(15px); transition: .2s; }
.fg-toast.show { opacity: 1; transform: translateY(0); }
.fg-toast.is-error { background: #87343b; }

@media (max-width: 930px) {
  .fg-card-controls { grid-template-columns: 1fr 1fr; }
  .fg-card-detail-grid { grid-template-columns: 1fr; }
  .fg-filter-panel { grid-template-columns: repeat(2, 1fr); }
  .fg-overview-button b { display: none; }
}
@media (max-width: 780px) {
  .fg-app { padding: 0 13px 18px; }
  .fg-header { position: relative; flex-wrap: wrap; margin: 0 -13px; padding: 12px 14px; }
  .fg-header-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; }
  .fg-brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
  .fg-brand h1 { font-size: 16px; }
  .fg-search { order: 4; flex-basis: 100%; width: 100%; }
  .fg-search input { width: 100%; }
  .fg-summary { margin-top: 15px; font-size: 12px; }
  .fg-summary strong { width: 100%; }
  .fg-mobile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 0; padding: 4px; border-radius: 10px; background: #e3eae9; }
  .fg-mobile-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 43px; padding: 7px 4px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 720; }
  .fg-mobile-tabs button.active { background: white; box-shadow: 0 2px 7px rgba(0,0,0,.07); }
  .fg-mobile-tabs b { font-size: 10px; color: var(--fg-muted); }
  .fg-board { display: block; }
  .fg-column { display: none; }
  .fg-column.mobile-active { display: block; }
  .fg-filter-panel { grid-template-columns: 1fr; }
  .fg-filter-panel .fg-check { min-height: 35px; }
  .fg-footer { flex-direction: column; }
  .fg-overlay { align-items: end; padding: 0; }
  .fg-dialog { width: 100%; max-height: 95vh; padding: 24px 17px; border-radius: 17px 17px 0 0; }
  .fg-card-dialog { height: 100vh; max-height: 100vh; border-radius: 0; }
  .fg-card-controls { grid-template-columns: 1fr 1fr; }
  .fg-dialog-footer { flex-direction: column; }
  .fg-overview-summary { align-items: flex-start; flex-direction: column; }
  .fg-overview-summary small { text-align: left; }
  .fg-overview-row { grid-template-columns: 28px 20px minmax(0,1fr) auto; }
  .fg-overview-row .fg-overview-status { grid-column: 3; justify-self: start; }
  .fg-overview-row .fg-task-priority { grid-column: 4; grid-row: 1 / span 2; }
  .fg-overview-row .fg-material-status { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 500px) {
  .fg-header-actions { gap: 5px; }
  .fg-overview-button { min-width: 39px; min-height: 39px; padding: 6px; }
  .fg-overview-button > span { width: 21px; height: 21px; }
  .fg-overview-button em { display: none; }
  .fg-icon-button { min-width: 39px; height: 39px; }
  .fg-card-controls, .fg-form-grid, .fg-create-lists { grid-template-columns: 1fr; }
  .fg-inline-form, .fg-add-task-form, .fg-add-material-form { grid-template-columns: 1fr !important; }
  .fg-comment header { flex-direction: column; gap: 1px; }
  .fg-admin-card-list article { grid-template-columns: 1fr; }
  .fg-dialog-actions { flex-direction: column-reverse; }
  .fg-dialog-actions .fg-button { width: 100%; }
  .fg-materials > li:not(.fg-list-empty) { flex-wrap: wrap; }
  .fg-materials .fg-task-priority { margin-left: 36px; }
  .fg-materials .fg-material-status { margin-left: 36px; }
  .fg-overview-row { grid-template-columns: 26px 20px minmax(0,1fr); gap: 7px; }
  .fg-overview-row .fg-overview-status { grid-column: 3; }
  .fg-overview-row .fg-task-priority { grid-column: 3; grid-row: auto; width: 100%; max-width: 130px; }
  .fg-overview-row .fg-material-status { grid-column: 3; grid-row: auto; width: 100%; max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  #fiani-gincana-app *, #fiani-gincana-app *::before, #fiani-gincana-app *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
