.swipe-page { --swipe-ink: #17231b; --swipe-green: #173b2a; display: grid; gap: 24px; color: var(--swipe-ink); }
.swipe-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 8px 0 2px; }
.swipe-header h1 { margin: 4px 0 5px; font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -.055em; }
.swipe-header p { margin: 0; color: #68726b; }
.swipe-eyebrow { color: #4f785e; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.swipe-primary, .swipe-secondary { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.swipe-primary { background: var(--swipe-green); color: white; box-shadow: 0 8px 20px rgba(23,59,42,.16); }
.swipe-secondary { border-color: #d3d9d4; background: white; color: #334139; }
.swipe-primary:disabled { opacity: .58; cursor: wait; }
.swipe-workspace { min-width: 0; display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 22px; }
.board-rail { min-width: 0; align-self: start; display: grid; gap: 4px; border: 1px solid #dde2dd; border-radius: 14px; background: #f1f3ef; padding: 10px; }
.board-rail-title { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px 9px; color: #657168; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.board-rail-title button, .board-menu { border: 0; border-radius: 7px; background: transparent; color: #647068; font: inherit; cursor: pointer; }
.board-rail-title button { width: 30px; height: 30px; font-size: 19px; }
.board-link { min-width: 0; width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-radius: 8px; background: transparent; padding: 8px 9px; color: #58645c; font: inherit; font-size: 13px; font-weight: 720; text-align: left; cursor: pointer; }
.board-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-link b { color: #929b94; font-size: 11px; }
.board-link:hover { background: white; }
.board-link.active { background: var(--swipe-green); color: white; }
.board-link.active b { color: #d0e4d6; }
.board-list { display: grid; gap: 3px; margin-top: 5px; border-top: 1px solid #dce1dc; padding-top: 7px; }
.board-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.board-menu { height: 31px; font-size: 12px; }
.swipe-content { min-width: 0; }
.swipe-filter-bar { display: grid; grid-template-columns: auto 160px 150px minmax(180px, 1fr); gap: 9px; align-items: center; margin-bottom: 18px; border: 1px solid #dde2df; border-radius: 13px; background: white; padding: 9px; box-shadow: 0 8px 24px rgba(28,39,31,.035); }
.scope-toggle { display: flex; border-radius: 9px; background: #edf0ed; padding: 3px; }
.scope-toggle button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; padding: 7px 11px; color: #657068; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.scope-toggle button.active { background: white; color: #16241b; box-shadow: 0 2px 7px rgba(20,32,23,.1); }
.swipe-filter-bar select, .swipe-filter-bar input { width: 100%; min-height: 42px; border: 1px solid #d5dbd6; border-radius: 9px; background: white; padding: 8px 10px; color: #243029; font: inherit; font-size: 13px; }
.swipe-results-meta { display: flex; justify-content: space-between; margin: 0 2px 11px; color: #7b857e; font-size: 12px; }
.swipe-results-meta strong { color: #39463e; }
.swipe-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.swipe-card { min-width: 0; overflow: hidden; border: 1px solid #dce1dd; border-radius: 15px; background: white; box-shadow: 0 8px 28px rgba(26,38,29,.05); }
.swipe-preview { position: relative; aspect-ratio: 4 / 3; display: grid; overflow: hidden; background: #e8ece8; color: inherit; text-decoration: none; }
.swipe-preview img, .swipe-preview video { width: 100%; height: 100%; object-fit: cover; }
.source-preview { display: grid; place-content: center; justify-items: center; gap: 5px; background: radial-gradient(circle at 50% 35%, #fff 0, #eef1ed 70%); }
.source-preview > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--swipe-green); color: white; font-size: 24px; font-weight: 850; }
.source-preview b { font-size: 14px; }
.source-preview small { max-width: 90%; overflow: hidden; color: #7a857d; text-overflow: ellipsis; white-space: nowrap; }
.play-mark { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: #173b2a; transform: translate(-50%,-50%); }
.swipe-card-body { display: grid; gap: 8px; padding: 14px; }
.swipe-card-kicker, .swipe-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.swipe-card-kicker span, .swipe-tags span { border-radius: 999px; background: #eef2ee; padding: 4px 7px; color: #557060; font-size: 10px; font-weight: 800; }
.swipe-card h2 { margin: 0; font-size: 17px; line-height: 1.28; letter-spacing: -.015em; overflow-wrap: anywhere; }
.swipe-source { overflow: hidden; color: #557263; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.swipe-card p { display: -webkit-box; margin: 1px 0; overflow: hidden; color: #68736b; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.swipe-card footer { display: grid; gap: 10px; margin-top: 4px; border-top: 1px solid #edf0ed; padding-top: 10px; }
.swipe-card footer > div:first-child { display: grid; gap: 2px; }
.swipe-card footer strong { font-size: 11px; }
.swipe-card footer span { color: #89918b; font-size: 10px; }
.swipe-card-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.swipe-card-actions a, .swipe-card-actions button { border: 1px solid #d7dcd8; border-radius: 7px; background: white; padding: 5px 8px; color: #4f5d54; font: inherit; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.swipe-card-actions .danger-link { margin-left: auto; color: #a44a3e; }
.swipe-empty, .swipe-loading { min-height: 410px; display: grid; place-content: center; justify-items: center; color: #79837c; text-align: center; }
.swipe-empty > div { font-size: 42px; color: #3c7653; }
.swipe-empty h2 { margin: 8px 0 4px; color: #1e2b23; font-size: 24px; }
.swipe-empty p { max-width: 440px; margin: 0 0 18px; line-height: 1.5; }
.swipe-alert { border: 1px solid #e5bdb7; border-radius: 10px; background: #fff4f2; padding: 10px 13px; color: #963d31; font-size: 13px; }
.swipe-alert button { border: 0; background: transparent; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.swipe-modal-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; overflow-y: auto; background: rgba(16,25,19,.62); padding: 22px; backdrop-filter: blur(3px); }
.swipe-modal { width: min(100%, 650px); max-height: calc(100vh - 44px); overflow-y: auto; border-radius: 18px; background: #fbfcfb; box-shadow: 0 32px 90px rgba(9,19,12,.3); }
.swipe-modal > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e2e6e3; background: white; padding: 19px 22px 15px; }
.swipe-modal header span { color: #538065; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.swipe-modal h2 { margin: 2px 0 0; font-size: 25px; }
.swipe-modal header button { width: 38px; height: 38px; border: 1px solid #d9dedb; border-radius: 50%; background: white; color: #516057; font-size: 25px; cursor: pointer; }
.swipe-modal-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin: 17px 22px 0; border-radius: 10px; background: #e9edea; padding: 4px; }
.swipe-modal-tabs button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #6e7971; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.swipe-modal-tabs button.active { background: white; color: #1d2d23; box-shadow: 0 2px 8px rgba(18,32,22,.09); }
.swipe-modal form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 19px 22px 22px; }
.swipe-modal label { display: grid; gap: 5px; color: #46534b; font-size: 12px; font-weight: 780; }
.swipe-modal label b { color: #aa4337; }
.swipe-modal input, .swipe-modal select, .swipe-modal textarea { width: 100%; min-height: 44px; border: 1px solid #cfd6d1; border-radius: 9px; background: white; padding: 9px 11px; color: #1d2a22; font: inherit; font-size: 14px; }
.swipe-modal textarea { resize: vertical; }
.swipe-modal label small { color: #879089; font-weight: 500; }
.field-wide, .swipe-modal form > footer, .swipe-form-status { grid-column: 1 / -1; }
.upload-drop { border: 1px dashed #aebbb1; border-radius: 11px; background: #f4f7f4; padding: 14px; }
.upload-drop input { border: 0; background: transparent; padding: 6px 0; }
.swipe-form-status { min-height: 18px; margin: -2px 0; color: #a43d31; font-size: 12px; }
.swipe-modal form > footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e4e8e5; padding-top: 15px; }
.swipe-view-tabs { display:flex; gap:4px; width:max-content; margin-top:15px; border-radius:10px; background:#edf0ed; padding:3px; }
.swipe-view-tabs button { min-height:36px; border:0; border-radius:8px; background:transparent; padding:7px 14px; color:#68736b; font:inherit; font-size:12px; font-weight:850; cursor:pointer; }
.swipe-view-tabs button.active { background:#fff; color:#17231b; box-shadow:0 2px 8px rgba(18,32,22,.09); }
.format-library { min-width:0; display:grid; gap:18px; }
.format-library-head { display:flex; align-items:end; justify-content:space-between; gap:28px; border:1px solid #dde2df; border-radius:14px; background:#fff; padding:16px 18px; }
.format-library-head > div { display:grid; gap:3px; }
.format-library-head span { color:#4f785e; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.format-library-head strong { font-size:16px; }
.format-library-head p { max-width:520px; margin:0; color:#707b73; font-size:12px; line-height:1.45; }
.format-library-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; align-items:start; }
.format-family-card { min-width:0; overflow:hidden; border:1px solid #dce1dd; border-radius:15px; background:#fff; box-shadow:0 8px 28px rgba(26,38,29,.04); }
.format-family-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e8ece9; background:#f6f8f5; padding:13px 15px; }
.format-family-card > header h2 { margin:0; font-size:16px; }
.format-family-card > header span { color:#77827a; font-size:11px; }
.format-family-card > div { display:grid; }
.format-library-card { min-width:0; display:grid; gap:10px; border-bottom:1px solid #edf0ed; padding:15px; }
.format-library-card:last-child { border-bottom:0; }
.format-library-card > div:first-child > span { color:#4f785e; font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.format-library-card h3 { margin:3px 0 4px; font-size:15px; }
.format-library-card p { margin:0; color:#6f7972; font-size:12px; line-height:1.45; }
.format-rich-tags { display:flex; flex-wrap:wrap; gap:5px; }
.format-rich-tags span { border-radius:999px; background:#edf2ee; padding:4px 7px; color:#52705d; font-size:10px; font-weight:750; }
.format-library-card > section { display:grid; gap:5px; border-radius:10px; background:#f7f8f6; padding:10px; }
.format-library-card > section strong { font-size:11px; }
.format-library-card > section ul { display:grid; gap:4px; margin:0; padding-left:18px; }
.format-library-card > section a { color:#38604a; font-size:11px; }
.format-library-card > footer { display:flex; flex-wrap:wrap; gap:6px; }
.format-library-card > footer button { min-height:34px; border:1px solid #d6ddd8; border-radius:8px; background:#fff; padding:6px 9px; color:#46564c; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.format-library-card > footer button:first-child { border-color:#bfd0c3; background:#eef5ef; color:#244b33; }
.source-status.ready{background:#dff3e3!important;color:#246a36!important}.source-status.pending,.source-status.inspecting{background:#fff0d2!important;color:#7a570d!important}.source-status.blocked,.source-status.failed{background:#fde1df!important;color:#922d26!important}.source-inspection-summary{display:grid;gap:6px;border:1px solid #dce5de;border-radius:10px;background:#f7faf7;padding:10px}.source-inspection-summary>b{font-size:12px}.source-inspection-summary>span{color:#65736a;font-size:11px;line-height:1.4}.source-inspection-summary>div{display:flex;gap:6px;flex-wrap:wrap}.source-inspection-summary button{border:1px solid #ccd9cf;border-radius:7px;background:#fff;padding:6px 8px;color:#31513c;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.source-inspection-summary button:disabled{cursor:not-allowed;opacity:.55}.inspection-modal{width:min(100%,980px)}.inspection-status-panel{margin:18px 22px 0;border:1px solid #dce5de;border-radius:11px;background:#f5f8f5;padding:13px}.inspection-status-panel.ready{border-color:#acd8b4;background:#f0faf2}.inspection-status-panel.failed,.inspection-status-panel.blocked{border-color:#edb7b0;background:#fff4f2}.inspection-status-panel p{margin:4px 0 0;color:#66736a;font-size:12px}.inspection-contact{display:block;width:calc(100% - 44px);max-height:420px;object-fit:contain;margin:16px 22px 0;border:1px solid #dce2dd;border-radius:10px;background:#101411}.inspection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 22px}.inspection-grid article{min-width:0;max-height:260px;overflow:auto;border:1px solid #e1e6e2;border-radius:10px;background:#fff;padding:11px}.inspection-grid article>span{color:#52725d;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.inspection-grid p,.inspection-grid ol{margin:7px 0 0;color:#4f5e54;font-size:12px;line-height:1.45}.inspection-grid ol{padding-left:18px}.inspection-modal>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e2e6e3;background:#fff;padding:14px 22px}
@media (max-width: 1120px) { .swipe-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swipe-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swipe-search { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .swipe-header { align-items: start; }
  .swipe-header h1 { font-size: 38px; }
  .swipe-workspace { grid-template-columns: 1fr; gap: 12px; }
  .board-rail { display: flex; overflow-x: auto; }
  .board-rail-title { flex: 0 0 auto; }
  .board-list { display: contents; }
  .board-row { flex: 0 0 auto; display: flex; }
  .board-link { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .swipe-card-grid, .format-library-grid { grid-template-columns: 1fr; }
  .format-library-head { display:grid; gap:8px; }
  .swipe-modal-backdrop { align-items: end; padding: 0; }
  .swipe-modal { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 520px) { .swipe-header { display: grid; } .swipe-header .swipe-primary { width: 100%; } .swipe-filter-bar, .swipe-modal form { grid-template-columns: 1fr; } .swipe-search, .field-wide, .swipe-modal form > footer, .swipe-form-status { grid-column: auto; } .scope-toggle button { flex: 1; } }
