/* ============================================================
   Aplicativos: Files · Settings · Sigeon Browser · Notepad · Calculator
   ============================================================ */

/* ------------------------------------------------------------------
   FILE EXPLORER
   ------------------------------------------------------------------ */
.fx-crumbs {
  display: flex; align-items: center; gap: 0.15rem;
  flex: 1; min-width: 0;
  height: 1.95rem; padding: 0 0.55rem;
  border-radius: var(--r-sm);
  background: var(--field);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fx-crumb {
  font-size: 0.75rem; color: var(--text-dim);
  padding: 0.15rem 0.35rem; border-radius: var(--r-xs);
  white-space: nowrap;
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease);
}
.fx-crumb:hover { background: var(--hover); color: var(--text); }
.fx-crumb:last-child { color: var(--text); font-weight: 550; }
.fx-sep { color: var(--text-mute); font-size: 0.7rem; flex: none; }

.fx-nav {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; padding: 0.42rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: 0.78rem; color: var(--text-dim);
  text-align: left;
  transition: background var(--t2) var(--ease), color var(--t2) var(--ease);
}
.fx-nav svg { width: 1.05rem; height: 1.05rem; flex: none; }
.fx-nav:hover { background: var(--hover); color: var(--text); }
.fx-nav.active { background: var(--accent-soft); color: var(--text); font-weight: 550; }
.fx-side-title { padding: 0.6rem 0.6rem 0.35rem; }

.fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
  gap: 0.3rem;
  padding: 0.7rem;
}
.fx-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.3rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-align: center;
  transition: background var(--t2) var(--ease), transform var(--t2) var(--ease),
    border-color var(--t2) var(--ease);
  animation: popIn 220ms var(--ease-out) backwards;
}
.fx-item:hover { background: var(--hover); }
.fx-item.sel { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.fx-item:active { transform: scale(0.96); }
.fx-item .ico { width: 2.5rem; height: 2.5rem; }
.fx-item .nm {
  font-size: 0.72rem; line-height: 1.25; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

/* lista */
.fx-list { padding: 0.35rem; }
.fx-lhead, .fx-row {
  display: grid; grid-template-columns: 1fr 7rem 5.5rem;
  gap: 0.5rem; align-items: center;
  padding: 0.4rem 0.6rem; border-radius: var(--r-sm);
  font-size: 0.75rem;
}
.fx-lhead { color: var(--text-mute); font-size: 0.7rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.fx-row { transition: background var(--t1) var(--ease); animation: fadeIn 200ms var(--ease) backwards; }
.fx-row:hover { background: var(--hover); }
.fx-row.sel { background: var(--accent-soft); }
.fx-row .nm { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.fx-row .ico { width: 1.35rem; height: 1.35rem; flex: none; }
.fx-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fx-empty { padding: 3.5rem 1rem; text-align: center; color: var(--text-mute); }
.fx-empty svg { width: 3rem; height: 3rem; margin: 0 auto 0.7rem; opacity: 0.4; }

/* visualizador de imagem */
.fx-viewer {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--solid) 92%, transparent);
  backdrop-filter: blur(10px);
  animation: fadeIn var(--t2) var(--ease);
}
.fx-viewer .frame { flex: 1; display: grid; place-items: center; padding: 1.2rem; min-height: 0; }
.fx-viewer .art {
  width: min(100%, 30rem); aspect-ratio: 4 / 3;
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
  background-size: cover; background-position: center;
  animation: popIn var(--t3) var(--ease-out);
}

/* ------------------------------------------------------------------
   SETTINGS
   ------------------------------------------------------------------ */
.st-side { width: 13rem; }
.st-profile { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.6rem 0.9rem; }
.st-profile .av { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; color: #fff; flex: none; }
.st-profile .av svg { width: 1.25rem; height: 1.25rem; }
.st-profile .n { font-size: 0.8rem; font-weight: 600; }
.st-profile .e { font-size: 0.68rem; color: var(--text-mute); }

.st-avatar {
  width: 3rem; height: 3rem; flex: none; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center;
}
.st-avatar svg { width: 1.5rem; height: 1.5rem; }
.st-appicon { width: 2.2rem; flex: none; }

.st-page { padding: 1.1rem 1.4rem 2rem; animation: riseIn var(--t3) var(--ease-out); }
.st-title { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.15rem; }
.st-sub { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.2rem; }
.st-group { margin-bottom: 1.6rem; }
.st-group > .tag { display: block; margin-bottom: 0.55rem; }

.st-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 0.95rem;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.4rem;
  transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.st-item:hover { background: var(--hover); }
.st-item > svg:first-child { width: 1.15rem; height: 1.15rem; color: var(--text-dim); flex: none; }
.st-item .t { font-size: 0.8rem; font-weight: 550; }
.st-item .d { font-size: 0.7rem; color: var(--text-mute); }
.st-item .ctl { margin-left: auto; flex: none; display: flex; align-items: center; gap: 0.6rem; }
.st-item .ctl input[type="range"] { width: 8.5rem; }
.st-item.column { flex-direction: column; align-items: stretch; gap: 0.6rem; }

.st-seg { display: flex; gap: 0.25rem; padding: 0.2rem; background: var(--raise-2); border-radius: var(--r-sm); }
.st-seg button {
  padding: 0.35rem 0.75rem; border-radius: var(--r-xs);
  font-size: 0.74rem; color: var(--text-dim);
  transition: background var(--t2) var(--ease), color var(--t2) var(--ease);
}
.st-seg button.on { background: var(--solid); color: var(--text); box-shadow: var(--shadow-1); }

.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.6rem; }
.wall-opt {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.wall-opt:hover { transform: translateY(-2px) scale(1.02); }
.wall-opt.on { border-color: var(--accent); }
.wall-opt .nm {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  text-align: left;
}
.wall-opt .chk {
  position: absolute; top: 0.35rem; right: 0.35rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.6);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--spring);
}
.wall-opt .chk svg { width: 0.65rem; height: 0.65rem; }
.wall-opt.on .chk { opacity: 1; transform: none; }

/* ---- seletor de estilo do sistema (Settings › Personalization) ---- */
.shell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.shell-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 0.75rem;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.shell-opt:hover { background: var(--hover); }
.shell-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.shell-opt .s-name { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; }
.shell-opt .s-desc { font-size: 0.7rem; color: var(--text-mute); line-height: 1.4; }
.shell-opt .l-check {
  position: absolute; top: 0.6rem; right: 0.6rem;
  color: var(--accent); opacity: 0;
  transition: opacity var(--t2) var(--ease);
}
.shell-opt .l-check svg { width: 1rem; height: 1rem; }
.shell-opt.on .l-check { opacity: 1; }

/* miniatura do estilo */
.shell-opt .preview {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a2350, #123a4a);
  overflow: hidden;
  border: 1px solid var(--line);
}
.shell-opt .preview.glass { border-radius: 6px; }
.shell-opt .p-win {
  position: absolute; left: 14%; top: 16%; width: 58%; height: 46%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.shell-opt .preview.glass .p-win { border-radius: 5px; }
.shell-opt .p-bar { display: block; height: 22%; background: rgba(255, 255, 255, 0.3); }
.shell-opt .p-tb {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  display: flex; align-items: center; gap: 3px;
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.55);
}
.shell-opt .preview.glass .p-tb {
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  left: 6%; right: 6%; bottom: 5%; border-radius: 4px;
}
.shell-opt .p-dot { width: 5px; height: 5px; background: rgba(255, 255, 255, 0.75); }
.shell-opt .preview.glass .p-dot { border-radius: 50%; }

/* ---- seletor de idioma (Settings › Language) ---- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.5rem; }
.lang-opt {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--raise);
  border: 1px solid var(--line);
  transition: background var(--t2) var(--ease), border-color var(--t2) var(--ease),
    transform var(--t2) var(--ease);
}
.lang-opt:hover { background: var(--hover); transform: translateY(-2px); }
.lang-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.lang-opt .l-code {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--raise-2);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-dim);
}
.lang-opt.on .l-code { background: var(--accent-grad); color: #fff; }
.lang-opt .l-native { display: block; font-size: 0.82rem; font-weight: 550; }
.lang-opt .l-name { display: block; font-size: 0.68rem; color: var(--text-mute); }
.lang-opt .l-check { flex: none; opacity: 0; color: var(--accent); transition: opacity var(--t2) var(--ease); }
.lang-opt .l-check svg { width: 1rem; height: 1rem; }
.lang-opt.on .l-check { opacity: 1; }

.accent-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.accent-dot {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px var(--solid);
  transition: transform var(--t2) var(--spring), border-color var(--t2) var(--ease);
}
.accent-dot:hover { transform: scale(1.12); }
.accent-dot.on { border-color: var(--text); }

.about-hero {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.3rem; border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a3) 18%, transparent));
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
}
.about-hero .mark { width: 3.6rem; height: 3.6rem; flex: none; }
.about-hero .nm { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.06em; }
.about-hero .vs { font-size: 0.75rem; color: var(--text-dim); }
.about-table { display: grid; grid-template-columns: 10rem 1fr; gap: 0.15rem 1rem; font-size: 0.78rem; }
.about-table dt { color: var(--text-mute); padding: 0.35rem 0; }
.about-table dd { margin: 0; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------
   SIGEON BROWSER
   ------------------------------------------------------------------ */
.br-tabs {
  display: flex; align-items: center; gap: 0.2rem; flex: none;
  padding: 0.35rem 0.4rem 0;
  background: var(--raise);
  overflow-x: auto; scrollbar-width: none;
}
.br-tabs::-webkit-scrollbar { display: none; }
.br-tab {
  display: flex; align-items: center; gap: 0.45rem;
  height: 2rem; padding: 0 0.5rem 0 0.65rem;
  min-width: 6rem; max-width: 11rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 0.74rem; color: var(--text-dim);
  transition: background var(--t2) var(--ease), color var(--t2) var(--ease);
  animation: popIn var(--t2) var(--ease-out);
}
.br-tab:hover { background: var(--hover); }
.br-tab.on { background: var(--solid); color: var(--text); box-shadow: 0 -1px 0 var(--line) inset; }
.br-tab .fav { width: 0.85rem; height: 0.85rem; flex: none; }
.br-tab .tl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-tab .x {
  width: 1.15rem; height: 1.15rem; border-radius: var(--r-xs);
  display: grid; place-items: center; flex: none; opacity: 0.55;
  transition: background var(--t1) var(--ease), opacity var(--t1) var(--ease);
}
.br-tab .x:hover { background: var(--active); opacity: 1; }
.br-tab .x svg { width: 0.55rem; height: 0.55rem; }
.br-newtab { width: 1.75rem; height: 1.75rem; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--text-dim); flex: none; transition: background var(--t2) var(--ease); }
.br-newtab:hover { background: var(--hover); color: var(--text); }
.br-newtab svg { width: 0.8rem; height: 0.8rem; }

.br-bar { display: flex; align-items: center; gap: 0.35rem; flex: none; padding: 0.4rem 0.5rem; background: var(--solid); border-bottom: 1px solid var(--line); }
.br-url {
  display: flex; align-items: center; gap: 0.5rem;
  flex: 1; min-width: 0; height: 2rem; padding: 0 0.75rem;
  border-radius: var(--r-pill);
  background: var(--field);
  border: 1px solid var(--line);
  transition: border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.br-url:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.br-url svg { width: 0.85rem; height: 0.85rem; color: var(--text-mute); flex: none; }
.br-url input { flex: 1; min-width: 0; background: none; border: 0; font-size: 0.76rem; }

.br-view { flex: 1; min-height: 0; overflow: auto; background: var(--solid); position: relative; }
.br-page { animation: fadeIn var(--t3) var(--ease); min-height: 100%; }
.br-page.full { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.br-loading {
  position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent-grad);
  transform-origin: left;
  animation: brLoad 550ms var(--ease-out) forwards;
}
@keyframes brLoad { from { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }

/* páginas simuladas */
.pg { padding: 2rem 1.6rem; max-width: 48rem; margin: 0 auto; }
.pg-home { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; min-height: 100%; padding: 2.5rem 1.5rem; text-align: center; }
.pg-home .mark { width: 3.4rem; height: 3.4rem; }
.pg-home .wordmark { font-size: 1.6rem; font-weight: 300; letter-spacing: 0.18em; padding-left: 0.18em; }
.pg-search {
  display: flex; align-items: center; gap: 0.6rem;
  width: min(30rem, 100%); height: 2.75rem; padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--field); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--t2) var(--ease), border-color var(--t2) var(--ease);
}
.pg-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pg-search svg { width: 1rem; height: 1rem; flex: none; color: var(--text-mute); }
.pg-search input { flex: 1; min-width: 0; background: none; border: 0; }
.pg-links {
  display: grid; gap: 0.6rem; justify-content: center;
  width: min(32rem, 100%);
  grid-template-columns: repeat(auto-fit, minmax(5rem, 5.5rem));
}
.pg-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 0.75rem 0.4rem; border-radius: var(--r-md);
  background: var(--raise); border: 1px solid var(--line);
  font-size: 0.7rem; color: var(--text-dim);
  transition: transform var(--t2) var(--ease), background var(--t2) var(--ease), color var(--t2) var(--ease);
}
.pg-link:hover { transform: translateY(-3px); background: var(--hover); color: var(--text); }
.pg-link svg { width: 1.3rem; height: 1.3rem; }

.pg h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.pg h2 { font-size: 1rem; font-weight: 600; margin: 1.4rem 0 0.5rem; }
.pg p { font-size: 0.83rem; color: var(--text-dim); margin-bottom: 0.7rem; line-height: 1.65; }
.pg ul.bullets { list-style: disc; padding-left: 1.2rem; color: var(--text-dim); font-size: 0.83rem; }
.pg ul.bullets li { margin-bottom: 0.3rem; }

.res { display: block; width: 100%; text-align: left; padding: 0.75rem; border-radius: var(--r-md); margin-bottom: 0.35rem; transition: background var(--t2) var(--ease); }
.res:hover { background: var(--hover); }
.res .u { font-size: 0.7rem; color: var(--text-mute); }
.res .t { font-size: 0.92rem; color: var(--accent); font-weight: 550; }
.res .s { font-size: 0.78rem; color: var(--text-dim); }

.pg-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; min-height: 100%; padding: 3rem 1.5rem; text-align: center; }
.pg-404 svg { width: 3rem; height: 3rem; color: var(--text-mute); }

/* ---- páginas externas dentro de um iframe ---- */
.ext-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ext-bar {
  display: flex; align-items: center; gap: 0.55rem; flex: none;
  padding: 0.35rem 0.6rem;
  background: var(--raise); border-bottom: 1px solid var(--line);
  font-size: 0.72rem; color: var(--text-dim);
}
.ext-bar svg { width: 0.9rem; height: 0.9rem; flex: none; }
.ext-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
[data-theme="dark"] .ext-frame { background: #101218; }
.ext-hint {
  display: none; align-items: center; gap: 0.7rem; flex: none;
  padding: 0.5rem 0.7rem;
  background: var(--raise); border-top: 1px solid var(--line);
  font-size: 0.72rem; color: var(--text-dim);
}
.ext-hint.show { display: flex; animation: riseIn var(--t3) var(--ease-out); }

.news-card { display: flex; gap: 0.9rem; padding: 0.85rem; border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 0.6rem; background: var(--raise); }
.news-card .thumb { width: 5.5rem; height: 3.6rem; border-radius: var(--r-sm); flex: none; background-size: cover; }
.news-card .t { font-size: 0.85rem; font-weight: 600; }
.news-card .s { font-size: 0.74rem; color: var(--text-dim); }
.news-card .m { font-size: 0.66rem; color: var(--text-mute); margin-top: 0.25rem; }

/* ------------------------------------------------------------------
   NOTEPAD
   ------------------------------------------------------------------ */
.np-wrap { display: flex; flex: 1; min-height: 0; }
.np-side { width: 12rem; flex: none; border-right: 1px solid var(--line); background: var(--raise); display: flex; flex-direction: column; }
.np-docs { flex: 1; overflow-y: auto; padding: 0.35rem; }
.np-doc {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.45rem 0.55rem; border-radius: var(--r-sm);
  font-size: 0.76rem; text-align: left; color: var(--text-dim);
  transition: background var(--t2) var(--ease), color var(--t2) var(--ease);
}
.np-doc:hover { background: var(--hover); color: var(--text); }
.np-doc.on { background: var(--accent-soft); color: var(--text); }
.np-doc svg { width: 0.95rem; height: 0.95rem; flex: none; }
.np-doc .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-doc .del { opacity: 0; transition: opacity var(--t2) var(--ease); }
.np-doc:hover .del { opacity: 0.7; }
.np-area {
  flex: 1; width: 100%; min-height: 0; resize: none;
  padding: 1rem 1.15rem;
  background: transparent; border: 0;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--text);
}
.np-area::placeholder { color: var(--text-mute); }
.np-name { flex: 1; min-width: 0; max-width: 16rem; height: 1.9rem; font-size: 0.76rem; }
.np-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------------------------------------------
   CALCULATOR
   ------------------------------------------------------------------ */
.calc { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0.6rem; gap: 0.5rem; }
.calc-disp {
  flex: none; padding: 0.9rem 0.85rem 0.7rem;
  border-radius: var(--r-md);
  background: var(--raise);
  border: 1px solid var(--line);
  text-align: right;
  overflow: hidden;
}
.calc-hist { font-size: 0.75rem; color: var(--text-mute); min-height: 1.15rem; font-variant-numeric: tabular-nums; }
.calc-out {
  font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  word-break: break-all;
  transition: transform var(--t2) var(--spring);
}
.calc-out.bump { animation: bump 180ms var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.04); } }

.calc-pad { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 0.4rem; min-height: 0; }
.ck {
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--raise);
  border: 1px solid var(--line);
  font-size: 1rem; font-weight: 500;
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease),
    border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}
.ck:hover { background: var(--hover); border-color: var(--line-strong); }
.ck:active, .ck.press { transform: scale(0.94); background: var(--active); }
.ck.fn { color: var(--text-dim); font-size: 0.85rem; }
.ck.op { color: var(--accent); font-weight: 600; }
.ck.eq { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px -6px var(--accent); }
.ck.eq:hover { filter: brightness(1.08); background: var(--accent-grad); }
.ck svg { width: 1.05rem; height: 1.05rem; }

/* ------------------------------------------------------------------
   SIGEON STORE
   ------------------------------------------------------------------ */
.store-badge {
  margin-left: auto; flex: none;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  display: grid; place-items: center;
}

.store-hero {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.3rem; margin-bottom: 1.4rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a2) 24%, transparent), color-mix(in srgb, var(--a3) 16%, transparent));
  border: 1px solid var(--line);
}
.store-hero .mark { width: 3.2rem; height: 3.2rem; flex: none; }
.store-hero .h-title { font-size: 1.15rem; font-weight: 650; }
.store-hero .h-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.2rem; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.6rem; }
.store-card {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.9rem;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background var(--t2) var(--ease), transform var(--t2) var(--ease),
    border-color var(--t2) var(--ease);
  animation: popIn var(--t3) var(--ease-out) backwards;
}
.store-card:hover { background: var(--hover); transform: translateY(-2px); border-color: var(--line-strong); }
.store-card .s-ico { width: 2.9rem; flex: none; }
.store-card .s-name { font-size: 0.86rem; font-weight: 620; }
.store-card .s-meta { font-size: 0.68rem; color: var(--text-mute); margin-bottom: 0.3rem; }
.store-card .s-desc { font-size: 0.75rem; color: var(--text-dim); line-height: 1.45; }
.store-card .s-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem;
  flex: none; padding-left: 0.3rem;
}
.s-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-mute);
}
.s-progress {
  display: block; width: 4.2rem; height: 0.3rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.3); overflow: hidden;
}
.s-progress i {
  display: block; height: 100%; width: 0; border-radius: 999px; background: #fff;
  animation: sProg 1.1s var(--ease-out) forwards;
}
@keyframes sProg { to { width: 100%; } }

/* ------------------------------------------------------------------
   TERMINAL
   ------------------------------------------------------------------ */
.term {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0.85rem 1rem;
  background: #0b0d13;
  color: #d7dcea;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  cursor: text;
}
.term-row { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: #5cf2c0; font-weight: 600; }
.term-line { display: flex; align-items: baseline; gap: 0.5rem; }
.term-input {
  flex: 1; min-width: 0;
  background: none; border: 0; color: #d7dcea;
  font-family: var(--mono); font-size: 0.78rem;
  caret-color: #5cf2c0;
}
.term-err { color: #ff8080; }
.term-ok { color: #5cf2c0; }
.term-dim { color: #6f778f; }
.term-dir { color: #7fb8ff; font-weight: 600; }
.term-file { color: #d7dcea; }
.term-key { color: #ffcf6b; font-weight: 600; }
.term-fetch { display: flex; gap: 1.4rem; align-items: flex-start; }
.term-art { color: #8b5cff; margin: 0; font-family: var(--mono); }
.term-help { display: flex; gap: 0.8rem; }
.term-help b { flex: none; min-width: 10.5rem; color: #d7dcea; font-weight: 600; }

/* ------------------------------------------------------------------
   MONITOR DO SISTEMA
   ------------------------------------------------------------------ */
.tm-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  padding: 0.8rem; flex: none;
  border-bottom: 1px solid var(--line);
  background: var(--raise);
}
.tm-meter { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.74rem; }
.tm-track { height: 0.4rem; border-radius: 999px; background: var(--raise-2); overflow: hidden; }
.tm-track i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--accent-grad);
  transition: width var(--t4) var(--ease);
}
.tm-rows { padding: 0.4rem; }
.tm-head, .tm-row {
  display: grid; grid-template-columns: 1fr 9rem 5rem 6rem 6rem;
  gap: 0.5rem; align-items: center;
  padding: 0.45rem 0.6rem; border-radius: var(--r-sm);
  font-size: 0.75rem;
}
.tm-head { color: var(--text-mute); font-size: 0.68rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.tm-row { transition: background var(--t1) var(--ease); }
.tm-row:hover { background: var(--hover); }
.tm-row .nm { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.tm-row .ico { width: 1.4rem; height: 1.4rem; flex: none; }
.tm-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------
   SIGEON PAINT
   ------------------------------------------------------------------ */
.divider-v { width: 1px; height: 1.3rem; background: var(--line); flex: none; margin: 0 0.15rem; }
.ibtn.on { background: var(--accent-soft); color: var(--accent); }
.paint-stage { flex: 1; min-height: 0; padding: 0.6rem; display: flex; }
.paint-canvas {
  flex: 1; width: 100%; height: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  cursor: crosshair;
  touch-action: none;
}
.paint-colors { display: flex; gap: 0.25rem; }
.paint-swatch {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform var(--t2) var(--spring), border-color var(--t2) var(--ease);
}
.paint-swatch:hover { transform: scale(1.15); }
.paint-swatch.on { border-color: var(--text); }
.paint-picker {
  width: 1.6rem; height: 1.6rem; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-xs);
  background: none; cursor: pointer;
}

/* ------------------------------------------------------------------
   RELÓGIO
   ------------------------------------------------------------------ */
.clock-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.6rem 1.2rem; min-height: 100%;
}
.clock-big {
  font-size: clamp(2.4rem, 12vw, 3.6rem); font-weight: 200;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.clock-big.done { color: var(--accent); animation: bump 500ms var(--ease) 3; }
.clock-date { font-size: 0.82rem; color: var(--text-dim); }
.clock-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.5rem; width: 100%; margin-top: 0.6rem; }
.clock-zone { text-align: center; padding: 0.7rem 0.4rem; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.clock-zone .z-city { font-size: 0.72rem; color: var(--text-dim); }
.clock-zone .z-time { font-size: 1.15rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.clock-zone .z-off { font-size: 0.64rem; color: var(--text-mute); }
.clock-laps { width: 100%; max-width: 20rem; max-height: 9rem; overflow-y: auto; }
.clock-lap { display: flex; justify-content: space-between; padding: 0.4rem 0.2rem; font-size: 0.78rem; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------
   FOTOS
   ------------------------------------------------------------------ */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; padding: 0.7rem; }
.photo-cell {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
  animation: popIn var(--t3) var(--ease-out) backwards;
}
.photo-cell:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-2); }
.photo-cell .ph-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.4rem 0.5rem; text-align: left;
  font-size: 0.68rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.photo-viewer {
  position: absolute; inset: 0; z-index: 6;
  display: none; flex-direction: column;
  background: color-mix(in srgb, var(--solid) 94%, transparent);
  backdrop-filter: blur(12px);
}
.photo-viewer.show { display: flex; animation: fadeIn var(--t2) var(--ease); }
.ph-frame { flex: 1; min-height: 0; display: flex; align-items: center; gap: 0.5rem; padding: 1rem; }
.ph-art {
  flex: 1; height: 100%;
  border-radius: var(--r-md);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-2);
  animation: popIn var(--t3) var(--ease-out);
}
.ph-nav {
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raise-2); border: 1px solid var(--line); color: var(--text);
  transition: background var(--t2) var(--ease), transform var(--t2) var(--spring);
}
.ph-nav:hover { background: var(--hover); transform: scale(1.08); }
.ph-nav svg { width: 1.1rem; height: 1.1rem; }

/* ------------------------------------------------------------------
   SIGEON MUSIC
   ------------------------------------------------------------------ */
.mp-player {
  width: 19rem; flex: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.55rem; padding: 1.2rem 1rem;
  border-right: 1px solid var(--line);
  background: var(--raise);
}
.mp-art {
  width: 100%; aspect-ratio: 1; max-width: 12rem;
  border-radius: var(--r-lg);
  background-size: cover;
  box-shadow: var(--shadow-2);
  transition: background-image var(--t3) var(--ease);
}
.mp-title { font-size: 0.95rem; font-weight: 620; text-align: center; }
.mp-artist { font-size: 0.75rem; color: var(--text-dim); }
.mp-viz { display: flex; align-items: flex-end; gap: 2px; height: 1.5rem; opacity: 0.25; transition: opacity var(--t3) var(--ease); }
.mp-viz.on { opacity: 1; }
.mp-viz i {
  width: 3px; height: 30%; border-radius: 2px;
  background: var(--accent-grad);
}
.mp-viz.on i { animation: viz 900ms var(--ease) infinite alternate; }
@keyframes viz { from { height: 15%; } to { height: 100%; } }
.mp-seekrow { display: flex; align-items: center; gap: 0.5rem; width: 100%; }
.mp-t { font-size: 0.66rem; color: var(--text-mute); width: 2.2rem; text-align: center; }
.mp-seek { flex: 1; }
.mp-ctls { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.2rem; }
.mp-ctl svg { width: 1.2rem; height: 1.2rem; }
.mp-play {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 6px 20px -8px var(--accent);
  transition: transform var(--t2) var(--spring), filter var(--t2) var(--ease);
}
.mp-play:hover { filter: brightness(1.1); transform: scale(1.06); }
.mp-play:active { transform: scale(0.94); }
.mp-play svg { width: 1.3rem; height: 1.3rem; }
.mp-list { flex: 1; min-width: 0; overflow-y: auto; padding: 0.4rem; }
.mp-row {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.5rem 0.6rem; border-radius: var(--r-sm);
  text-align: left;
  transition: background var(--t2) var(--ease);
}
.mp-row:hover { background: var(--hover); }
.mp-row.on { background: var(--accent-soft); }
.mp-thumb { width: 2.2rem; height: 2.2rem; flex: none; border-radius: var(--r-sm); background-size: cover; }
.mp-row .n { display: block; font-size: 0.78rem; }
.mp-row .a { display: block; font-size: 0.68rem; color: var(--text-mute); }
.mp-eq { display: none; align-items: flex-end; gap: 2px; height: 0.8rem; }
.mp-eq.show { display: flex; }
.mp-eq i { width: 2px; height: 40%; border-radius: 2px; background: var(--accent); animation: viz 700ms var(--ease) infinite alternate; }
.mp-eq i:nth-child(2) { animation-delay: 140ms; }
.mp-eq i:nth-child(3) { animation-delay: 280ms; }

@media (max-width: 760px) {
  /* a barra do Paint tem muitos controles: quebra em linhas */
  .paint-bar { flex-wrap: wrap; row-gap: 0.4rem; }
  .paint-bar .grow { flex-basis: 100%; height: 0; }
  .paint-bar .btn span { display: none; }
  .paint-bar .divider-v { display: none; }

  .store-grid { grid-template-columns: 1fr; }
  .store-card { flex-wrap: wrap; }
  .tm-summary { grid-template-columns: 1fr; }
  .tm-head, .tm-row { grid-template-columns: 1fr 4.5rem 5rem; }
  .tm-head span:nth-child(2), .tm-row span:nth-child(2),
  .tm-head span:nth-child(5), .tm-row > button { display: none; }
  .mp-player { width: 100%; }
  .app-split:has(.mp-player) { flex-direction: column; }
  .np-side { width: 9.5rem; }
  .st-side { width: 9.5rem; }
  .st-page { padding: 0.9rem 0.9rem 1.6rem; }
  /* em telas estreitas o controle desce para a própria linha,
     em vez de espremer o texto */
  .st-item { flex-wrap: wrap; }
  .st-item .grow { flex: 1 1 100%; }
  .st-item .ctl { margin-left: 0; }
  .st-item .ctl input[type="range"] { width: 8rem; }
  .pg { padding: 1.4rem 1rem; }
  .fx-lhead, .fx-row { grid-template-columns: 1fr 5rem; }
  .fx-lhead span:nth-child(3), .fx-row span:nth-child(3) { display: none; }
}
