/* PM: the suite's bar (vendor/suite.css) on top, then one strip and the sheet filling the rest of the window. */

:root {
   --pm-bg: #ffffff;
   --pm-ink: #181213;
   --pm-muted: #645c59;
   --pm-line: #e8e4e3;
   --pm-soft: #f7f5f4;
   --pm-accent: #00485a;
   --pm-warn: #b3261e;
   --pm-ok: #1b7f5c;
   color-scheme: light;
}
:root[data-theme="dark"] {
   --pm-bg: #140f10;
   --pm-ink: #ffffff;
   --pm-muted: #a8a09d;
   --pm-line: #2e2627;
   --pm-soft: #1d1718;
   --pm-accent: #83a3ac;
   --pm-warn: #ff8a80;
   --pm-ok: #67d1a6;
   color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
   margin: 0;
   display: flex;
   flex-direction: column;
   background: var(--pm-bg);
   color: var(--pm-ink);
   font: 300 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
[hidden] { display: none !important; }

.rr42-slot { display: flex; align-items: center; gap: 8px; }
.rr42-slot [hidden] { display: none; }
.pm-signin { color: var(--rr42-bar-ink, var(--pm-ink)); font-size: 14px; text-decoration: none; padding: 6px 12px; border: 1px solid var(--pm-line); border-radius: 999px; }
.pm-signin:hover { border-color: var(--pm-muted); }

.pm { flex: 1; min-height: 0; display: flex; flex-direction: column; }
[data-panel] { display: none; }
.pm[data-state="loading"] [data-panel="loading"],
.pm[data-state="signin"] [data-panel="signin"],
.pm[data-state="noaccess"] [data-panel="noaccess"],
.pm[data-state="error"] [data-panel="error"] { display: block; }
.pm[data-state="app"] [data-panel="app"] { display: flex; }

.pm-panel { max-width: 560px; margin: 12vh auto 0; padding: 0 24px; }
.pm-panel h1 { margin: 0 0 8px; font-size: 28px; font-weight: 300; letter-spacing: -.01em; }
.pm-panel p { margin: 0 0 16px; color: var(--pm-muted); }

.pm-button {
   display: inline-block; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
   background: var(--pm-ink); color: var(--pm-bg); font: inherit; font-size: 14px; text-decoration: none;
}
.pm-button:hover { opacity: .88; }
.pm-link {
   padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
   color: var(--pm-accent); text-decoration: none; white-space: nowrap;
}
.pm-link:hover { text-decoration: underline; }

.pm-app { flex: 1; min-height: 0; flex-direction: column; }
.pm-strip {
   display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
   padding: 8px 20px; border-bottom: 1px solid var(--pm-line); background: var(--pm-soft); font-size: 13px;
}
.pm-strip__status { margin: 0; color: var(--pm-muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-strip__status strong { color: var(--pm-ink); font-weight: 400; }
.pm-dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--pm-muted); }
.pm-dot[data-on="true"] { background: var(--pm-ok); }
.pm-dot[data-on="error"] { background: var(--pm-warn); }
.pm-strip__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.pm-late { color: var(--pm-warn); }

.pm-notice { margin: 0; padding: 8px 20px; font-size: 13px; background: var(--pm-soft); border-bottom: 1px solid var(--pm-line); }
.pm-notice[data-kind="bad"] { color: var(--pm-warn); }
.pm-notice[data-kind="good"] { color: var(--pm-ok); }

.pm-attention { padding: 6px 20px 10px; border-bottom: 1px solid var(--pm-line); max-height: 34vh; overflow: auto; }
.pm-attention ul { margin: 0; padding: 0; list-style: none; }
.pm-attention li { display: grid; grid-template-columns: 9em 1fr auto; gap: 12px; padding: 6px 0; border-top: 1px solid var(--pm-line); font-size: 13px; }
.pm-attention li:first-child { border-top: 0; }
.pm-attention .when { color: var(--pm-muted); }
.pm-attention .when[data-kind="overdue"] { color: var(--pm-warn); }
.pm-attention .who { color: var(--pm-muted); text-align: end; }
.pm-attention small { display: block; color: var(--pm-muted); }
@media (max-width: 640px) { .pm-attention li { grid-template-columns: 1fr; gap: 2px; } .pm-attention .who { text-align: start; } }

.pm-zoom { display: inline-flex; align-items: center; gap: 6px; }
.pm-zoom button { min-inline-size: 1.4em; text-align: center; }
.pm-zoom [data-zoom-label] { color: var(--pm-muted); min-inline-size: 3em; }

/* The sheet is drawn larger than the window and scaled down, so Google's own layout (and its scrolling) stays as it is
 * while more of it fits: --z is the zoom, the frame is 1/z times the space it has. */
.pm-frame { position: relative; flex: 1; min-height: 360px; overflow: hidden; background: var(--pm-bg); }
.pm-sheet {
   position: absolute; inset-block-start: 0; inset-inline-start: 0; border: 0; background: var(--pm-bg);
   inline-size: calc(100% / var(--z, 1)); block-size: calc(100% / var(--z, 1));
   transform: scale(var(--z, 1)); transform-origin: 0 0;
}
