/* 5OFFICE - the launcher page.
 *
 * The only page in the suite that is a page rather than an application, so it
 * is allowed to breathe: a header, a row of app cards, and three panels that
 * answer the questions someone arriving actually has - what is here, what did
 * I write last, and where is any of it stored.
 */

body.suite {
  overflow: auto;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(52, 101, 164, .14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(245, 121, 0, .10), transparent 55%),
    var(--chrome);
}

body.suite .app-root {
  height: auto;
  min-height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ------------------------------------------------------------------ */
/* header                                                             */
/* ------------------------------------------------------------------ */

.suite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 0 26px;
}

.suite-brand { display: flex; align-items: flex-start; gap: 14px; }

.suite-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(52, 101, 164, .34);
}

.suite-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: .04em;
}

.suite-head p {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
}

.suite-actions { display: flex; gap: 8px; align-items: center; }

/* ------------------------------------------------------------------ */
/* app cards                                                          */
/* ------------------------------------------------------------------ */

.suite-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  background: var(--chrome-hi);
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(20, 30, 45, .06);
}

.app-card.is-soon { opacity: .72; }

.app-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  color: var(--card-accent);
}

.app-title { display: flex; align-items: baseline; gap: 8px; }
.app-title h2 { margin: 0; font-size: 18px; letter-spacing: .03em; }
.app-sub { color: var(--ink-soft); font-size: 12.5px; }

.app-after {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.app-blurb { margin: 0; color: var(--ink-soft); }

.app-points {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-card .dlg-btn { margin-top: auto; }

.app-soon {
  margin-top: auto;
  padding: 5px 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ */
/* panels                                                             */
/* ------------------------------------------------------------------ */

.suite-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

.suite-panel {
  padding: 16px 18px 18px;
  background: var(--chrome-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.suite-panel h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
}

.suite-panel p { margin: 0 0 10px; }
.suite-panel p:last-child { margin-bottom: 0; }
.suite-panel a { color: var(--accent); }
.suite-panel code {
  font-family: var(--mono-font);
  font-size: 12px;
  background: var(--chrome-lo);
  padding: 1px 4px;
  border-radius: 3px;
}

.suite-note { color: var(--ink-faint); font-size: 12.5px; }

.recent-list { display: flex; flex-direction: column; }

.recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: var(--hover); }
.recent-icon { color: var(--accent); display: flex; flex: 0 0 auto; }
.recent-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { color: var(--ink-faint); font-size: 11.5px; }

.storage-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.storage-name { font-weight: 600; }
.storage-value { color: var(--ink-soft); }

.storage-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--chrome-lo);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  margin: 10px 0 8px;
}
.storage-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tango-green), var(--tango-orange));
}

/* ------------------------------------------------------------------ */
/* footer                                                             */
/* ------------------------------------------------------------------ */

.suite-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 2px 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}
.suite-foot a { color: var(--accent); }
.suite-foot-sep { opacity: .6; }
