/* The Plantner Cloud link pages (#102). System fonts only: no third-party resources. */

:root {
  color-scheme: light dark;
  --accent: #1F881B; /* the app's PrimaryGreen */
  --background: #F2F5F0;
  --card: #FFFFFF;
  --text: #1C1C1E;
  --secondary: #5B6157;
  --border: #D5DBD1;
  --problem: #A8261E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101310;
    --card: #1B1F1A;
    --text: #F1F3F0;
    --secondary: #A7AEA4;
    --border: #353B33;
    --problem: #FF8E86;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
  background: var(--background);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

h1 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

#prompt {
  color: var(--secondary);
}

#status[data-tone="done"] {
  font-weight: 600;
}

#status[data-tone="problem"] {
  color: var(--problem);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

button {
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

#toggle {
  flex: none;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

#submit {
  width: 100%;
  margin-bottom: 16px;
  padding: 13px;
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}

button:disabled,
input:disabled {
  opacity: 0.55;
  cursor: default;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}
