:root {
  color-scheme: dark only;
  --cwi-black: #0a0a0a;
  --cwi-black-soft: #141414;
  --cwi-panel: #1a1a1a;
  --cwi-border: #2a2a2a;
  --cwi-white: #ffffff;
  --cwi-gray: #8a8a8a;
  --cwi-gray-dim: #5f5f5f;
  --cwi-green: #6fbf3a;
  --cwi-green-dim: #4f8f22;
  --radius: 0;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cwi-black);
  color: var(--cwi-white);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

body {
  padding-bottom: 40px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--cwi-panel);
  border-bottom: 1px solid var(--cwi-border);
}

.brand-col { display: flex; flex-direction: column; gap: 8px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 18px;
  color: var(--cwi-white);
}

.brand .brand-logo { height: 24px; width: auto; display: block; }
.brand .txt { color: var(--cwi-gray); font-weight: 600; font-size: 14px; }

.user-badge {
  display: inline-flex;
  align-items: center;
  background: #000000;
  color: var(--cwi-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 9px;
}

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--cwi-white);
  cursor: pointer;
  transition: color .15s;
}
.icon-btn:hover { color: var(--cwi-gray); }

.bell-btn.active { color: var(--cwi-green); }
.bell-btn .dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 0;
  background: var(--cwi-green);
  box-shadow: 0 0 6px var(--cwi-green);
  display: none;
}
.bell-btn.active .dot { display: block; }

.notif-wrap { position: relative; }

.notif-dropdown {
  position: fixed;
  top: calc(var(--topbar-h, 65px) + 8px);
  right: 14px;
  width: 320px;
  max-width: calc(100vw - 28px);
  max-height: 420px;
  background: var(--cwi-panel);
  border: 1px solid var(--cwi-border);
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.notif-dropdown[hidden] { display: none; }

.notif-dropdown-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #000000;
  border-bottom: 1px solid var(--cwi-border);
  font-size: 13px; font-weight: 700; color: var(--cwi-white);
}
.notif-toggle-btn {
  background: none; border: 1px solid var(--cwi-gray); color: var(--cwi-white);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 9px; cursor: pointer;
}
.notif-toggle-btn:hover { border-color: var(--cwi-green); color: var(--cwi-green); }
.notif-toggle-btn:disabled { opacity: .5; cursor: default; }

.notif-list { overflow-y: auto; }
.notif-empty { color: var(--cwi-gray-dim); font-size: 12.5px; padding: 20px 14px; text-align: center; }

.notif-item { padding: 10px 14px; border-bottom: 1px solid var(--cwi-border); }
.notif-item:last-child { border-bottom: none; }
.notif-item-title { font-size: 12.5px; font-weight: 700; color: var(--cwi-green); margin-bottom: 2px; }
.notif-item-body { font-size: 12.5px; color: var(--cwi-white); line-height: 1.4; }
.notif-item-time { font-size: 10.5px; color: var(--cwi-gray-dim); margin-top: 4px; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 18px 60px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 14px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cwi-white);
}

.section-title .dot { width: 8px; height: 8px; border-radius: 0; }
.dot-in_creazione { background: var(--cwi-green); box-shadow: 0 0 8px var(--cwi-green); }
.dot-prossime { background: var(--cwi-gray); }
.dot-concluse { background: var(--cwi-white); }

.section-title .count {
  color: var(--cwi-white);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.empty-hint {
  color: var(--cwi-gray-dim);
  font-size: 13px;
  padding: 10px 2px 4px;
}

/* ---------- Grid view ---------- */
.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  background: var(--cwi-panel);
  border: 1px solid var(--cwi-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}

.card:hover { border-color: var(--cwi-gray-dim); transform: translateY(-2px); }

.card .cover-link { display: block; }

.card .cover-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  background: #ffffff;
  border-bottom: 1px solid var(--cwi-border);
}
.card:has(> .btn-aggiorna-bar) .cover-box { border-bottom: none; }

.card .cover {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card .cover-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: #ffffff;
  border-bottom: 1px solid var(--cwi-border);
}
.card:has(> .btn-aggiorna-bar) .cover-fallback { border-bottom: none; }

.card .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--cwi-black-soft);
}

.card .icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: var(--cwi-black-soft);
  border-radius: 0;
  border: 1px solid var(--cwi-border);
  flex-shrink: 0;
}

.card .name-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.card .name { font-weight: 700; font-size: 15px; }
.card .desc { color: var(--cwi-gray); font-size: 13px; line-height: 1.45; flex: 1; }

.name-toggle {
  background: none;
  border: none;
  color: var(--cwi-white);
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.card-controls { display: none; gap: 4px; flex-shrink: 0; }
.card-controls.show { display: flex; }
.card-ctrl-icon {
  background: #000000;
  border: 1px solid var(--cwi-border);
  color: var(--cwi-gray);
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
}
.card-ctrl-icon:hover { color: var(--cwi-green); border-color: var(--cwi-green); }
.delete-app-trigger:hover { color: #e8664a; border-color: #e8664a; }

.card-tag-bar {
  background: #000000;
  border-bottom: 1px solid var(--cwi-border);
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cwi-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tag-bar b { font-weight: 800; color: var(--cwi-white); }
.card-tag-bar.priority-alta { color: #e8664a; }
.card-tag-bar.priority-media { color: var(--cwi-white); }
.card-tag-bar.priority-bassa { color: var(--cwi-gray-dim); }

.create-app-delete-btn {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  background: none;
  border: 1px solid #e8664a !important;
  color: #e8664a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.create-app-delete-btn:hover { background: #e8664a; color: #08140a; }

.progress-bar {
  height: 6px;
  background: var(--cwi-black-soft);
  border-radius: 0;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: var(--cwi-green);
  box-shadow: 0 0 10px var(--cwi-green), 0 0 20px rgba(111,191,58,.5);
  animation: progress-pulse 1.6s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

.progress-label { font-size: 11px; color: var(--cwi-gray-dim); display: flex; justify-content: space-between; align-items: center; }

.progress-edit { display: flex; align-items: center; gap: 2px; color: var(--cwi-gray-dim); }
.progress-input {
  width: 34px;
  background: var(--cwi-black-soft);
  border: 1px solid var(--cwi-border);
  color: var(--cwi-white);
  font-size: 11px;
  text-align: right;
  padding: 2px 3px;
}
.progress-input:focus { outline: none; border-color: var(--cwi-green); }
.progress-input::-webkit-outer-spin-button,
.progress-input::-webkit-inner-spin-button { margin: 0; }

/* ---------- Aggiorna (Link), al posto del banner sotto la copertina ---------- */
.btn-aggiorna-bar {
  width: 100%;
  padding: 8px 0;
  background: var(--cwi-green);
  border: none;
  border-bottom: 1px solid var(--cwi-border);
  color: var(--cwi-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  display: block;
  text-align: center;
  transition: background .15s;
}
.btn-aggiorna-bar:hover { background: #7ecf46; }
.btn-aggiorna-bar:active { transform: scale(0.99); }
.btn-aggiorna-bar.done { background: var(--cwi-gray-dim); color: var(--cwi-white); cursor: default; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 18vh;
}

.login-card {
  width: 100%;
  max-width: 250px;
  text-align: center;
}

.login-card .login-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
}

.login-card input {
  width: 100%;
  padding: 14px 12px;
  margin-bottom: 8px;
  background: var(--cwi-black-soft);
  border: none;
  border-radius: 0;
  color: var(--cwi-white);
  font-size: 13px;
  box-sizing: border-box;
}
.login-card input:focus { outline: none; }

.password-field { position: relative; }
.password-field input { padding-right: 40px; margin-bottom: 0; }
.password-field { margin-bottom: 8px; }
#password-toggle {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--cwi-gray);
  cursor: pointer;
}
#password-toggle:hover { color: var(--cwi-white); }
#password-toggle svg[hidden] { display: none; }
.login-card input::placeholder { color: var(--cwi-white); opacity: .7; }

.login-card button {
  width: 100%;
  padding: 14px;
  margin-top: 5px;
  background: var(--cwi-green);
  border: none;
  border-radius: 0;
  color: #08140a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-sizing: border-box;
}
.login-card button:hover { background: #7ecf46; }

.login-error { color: #e8664a; font-size: 12.5px; margin-bottom: 10px; }

@media (max-width: 480px) {
  .grid-view { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .brand span.txt { display: none; }
}

/* ---------- Ticker per-card (ultime modifiche del progetto) ---------- */
.card-ticker {
  overflow: hidden;
  background: #000000;
  border-bottom: 1px solid var(--cwi-border);
  padding: 6px 0;
}
.card-ticker[hidden] { display: none; }

.card-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: card-ticker-scroll 18s linear infinite;
}

.ticker-item { color: var(--cwi-white); font-size: 11.5px; padding: 0 16px 0 0; }
.ticker-item b { color: var(--cwi-green); font-weight: 700; }

@keyframes card-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Chat (vista dedicata dentro il pager) ---------- */
.chat-modal {
  width: 100%;
  height: 100%;
  background: var(--cwi-panel);
  display: flex;
  overflow: hidden;
  touch-action: pan-y;
}

.chat-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--cwi-border);
  display: flex;
  flex-direction: column;
  background: var(--cwi-black-soft);
  touch-action: pan-y;
}

.chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #000000;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
  color: var(--cwi-white);
  border-bottom: 1px solid var(--cwi-border);
}

.chat-close-btn { width: 26px; height: 26px; }

.chat-categories { flex: 1; overflow-y: auto; padding: 6px 0; touch-action: pan-y; }

.chat-cat-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px; justify-content: flex-start;
  background: none; border: none;
  color: var(--cwi-white);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 14px;
  cursor: pointer;
}
.chat-cat-head .dot { width: 8px; height: 8px; border-radius: 0; flex-shrink: 0; }
.chat-cat-arrow { margin-left: auto; transition: transform .15s; color: var(--cwi-gray-dim); }
.chat-cat.open .chat-cat-arrow { transform: rotate(180deg); }

.chat-cat-list { display: none; flex-direction: column; }
.chat-cat.open .chat-cat-list { display: flex; }

.chat-cat-empty { color: var(--cwi-gray-dim); font-size: 12px; padding: 4px 14px 10px; }

.chat-channel-btn {
  text-align: left;
  background: none;
  border: none;
  color: var(--cwi-white);
  font-size: 13px;
  padding: 8px 14px 8px 22px;
  cursor: pointer;
}
.chat-channel-btn:hover { background: var(--cwi-panel); }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; touch-action: pan-y; }

.chat-main-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px;
  background: #000000;
  border-bottom: 1px solid var(--cwi-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--cwi-white);
}

.chat-back-btn { display: none; width: 26px; height: 26px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; touch-action: pan-y; }

.chat-empty-hint { color: var(--cwi-gray-dim); font-size: 13px; margin: auto; text-align: center; }

.chat-day-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.chat-day-divider::before, .chat-day-divider::after { content: ""; flex: 1; height: 1px; background: var(--cwi-border); }
.chat-day-divider span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cwi-gray-dim); white-space: nowrap; }

.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }

.chat-bubble {
  position: relative;
  max-width: 78%;
  background: var(--cwi-black-soft);
  border: 1px solid var(--cwi-border);
  padding: 8px 11px;
}

.chat-bubble-meta {
  display: inline-block;
  background: #000000;
  color: var(--cwi-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 2px 7px;
  margin-bottom: 5px;
}
.chat-bubble-text-inline, .chat-attachment-caption { font-size: 13.5px; color: var(--cwi-white); white-space: pre-wrap; word-break: break-word; display: block; }
.chat-attachment-caption { font-size: 12px; margin-top: 4px; opacity: .85; }
.chat-bubble-time {
  display: inline-block;
  background: #000000;
  color: var(--cwi-white);
  font-size: 9px;
  padding: 2px 6px;
  margin-top: 5px;
}

.chat-attachment { margin: 2px 0; }
.chat-attachment img { max-width: 100%; max-height: 220px; cursor: pointer; display: block; border: 1px solid var(--cwi-border); }
.chat-attachment a { color: var(--cwi-green); text-decoration: none; font-size: 13px; }

.chat-msg-controls {
  position: absolute; top: -12px; right: 0;
  display: none; gap: 3px; z-index: 2;
}
.chat-bubble:hover .chat-msg-controls { display: flex; }
.chat-ctrl-btn {
  background: #000000; border: 1px solid var(--cwi-border);
  color: var(--cwi-gray); cursor: pointer;
  padding: 3px 5px; display: inline-flex; align-items: center;
}
.chat-ctrl-btn:hover { color: var(--cwi-green); border-color: var(--cwi-green); }

.chat-attach-btn {
  background: none; border: none; color: var(--cwi-white);
  cursor: pointer; padding: 0 8px; display: flex; align-items: center;
  flex-shrink: 0;
}
.chat-attach-btn:hover { color: var(--cwi-gray); }
.chat-attach-btn:disabled { opacity: .4; cursor: default; }

.chat-send-btn {
  background: none; border: none; color: var(--cwi-green);
  cursor: pointer; padding: 0 12px 0 4px; display: flex; align-items: center;
  flex-shrink: 0;
}
.chat-send-btn:hover { color: #7ecf46; }
.chat-send-btn:disabled { opacity: .4; cursor: default; }

.chat-edit-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.chat-edit-overlay[hidden] { display: none; }
.chat-edit-box {
  background: var(--cwi-panel); border: 1px solid var(--cwi-border);
  padding: 20px; width: 300px; max-width: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-edit-box h4 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cwi-green); }
.chat-edit-box input {
  background: var(--cwi-black-soft); border: 1px solid var(--cwi-border);
  color: var(--cwi-white); padding: 9px 10px; font-size: 14px;
}
.chat-edit-actions { display: flex; gap: 8px; margin-top: 16px; }
.chat-edit-actions button { flex: 1; padding: 9px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border: none; }
#chat-edit-save { background: var(--cwi-green); color: #08140a; }
#chat-edit-cancel { background: none; color: var(--cwi-gray); border: 1px solid var(--cwi-border) !important; }

.chat-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
}
.chat-lightbox[hidden] { display: none; }
.chat-lightbox img { max-width: 92%; max-height: 92%; object-fit: contain; }
.chat-lightbox-close { position: absolute; top: 16px; right: 20px; color: var(--cwi-white); font-size: 30px; cursor: pointer; }

.chat-input-row { display: flex; align-items: center; background: #000000; border-top: 1px solid var(--cwi-border); }
.chat-input-row textarea {
  flex: 1;
  min-width: 0;
  background: #000000;
  border: none;
  outline: none;
  resize: none;
  padding: 17px 14px;
  margin: 0;
  color: var(--cwi-white);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 18px;
  box-sizing: border-box;
  max-height: 214px; /* 10 righe (18px*10) + padding verticale */
  overflow-y: auto;
  scrollbar-width: none; /* Firefox: nessuno scrollbar visibile */
}
.chat-input-row textarea::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.chat-input-row textarea::placeholder { color: var(--cwi-gray-dim); }
.chat-input-row textarea:disabled { opacity: .5; }
.chat-input-row textarea:focus { border: none; outline: none; box-shadow: none; }

.chat-modal { position: relative; }
.chat-sidebar { position: absolute; inset: 0; width: 100%; z-index: 2; }
.chat-main { position: absolute; inset: 0; z-index: 1; transform: translateX(100%); transition: transform .2s; background: var(--cwi-panel); }
.chat-main.active { transform: translateX(0); z-index: 3; }
.chat-back-btn { display: flex; }

@media (min-width: 760px) {
  .chat-sidebar { position: static; width: 280px; }
  .chat-main { position: static; transform: none; }
  .chat-back-btn { display: none; }
}

/* ---------- Pager: 3 viste scorrevoli (Chat | Home | Portfolio) ---------- */
html, body { height: 100%; overscroll-behavior-y: contain; }
body { padding-bottom: 0; }

.pager {
  position: fixed;
  top: var(--topbar-h, 65px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--cwi-black);
}

.pager-track {
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
  touch-action: pan-y;
}

.view {
  width: 33.3333%;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pager-dots {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(0,0,0,.6);
}

.pager-dots .pdot {
  width: 6px; height: 6px;
  background: var(--cwi-gray-dim);
  cursor: pointer;
  border: none;
  padding: 0;
}
.pager-dots .pdot.active { background: var(--cwi-green); }

/* ---------- Portfolio ---------- */
.view-portfolio, .view-home { background: var(--cwi-panel); }

.portfolio-head, .home-head {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 18px;
  background: #000000;
  border-bottom: 1px solid var(--cwi-border);
  font-weight: 800;
  font-size: 18px;
  color: var(--cwi-white);
  letter-spacing: .3px;
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.create-app-btn {
  background: var(--cwi-green);
  color: var(--cwi-white);
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  letter-spacing: .02em;
}
.create-app-btn:hover { background: #7ecf46; }

.create-app-box { width: 320px; }
.create-app-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--cwi-gray); margin: 10px 0 5px; }
.create-app-label:first-of-type { margin-top: 0; }
.create-app-select {
  width: 100%;
  background: var(--cwi-black-soft);
  border: 1px solid var(--cwi-border);
  color: var(--cwi-white);
  padding: 9px 10px;
  font-size: 14px;
}
#create-app-cover {
  width: 100%;
  color: var(--cwi-gray);
  font-size: 12.5px;
}
.create-app-error { color: #e8664a; font-size: 12px; margin-top: 10px; }

.portfolio-grid {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 18px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portfolio-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--cwi-border);
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
  transition: transform .25s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .3px;
}
.portfolio-card.big-logo img { padding: 2px; }

.portfolio-empty { color: var(--cwi-gray-dim); font-size: 13px; padding: 40px 18px; text-align: center; }
