body {
   margin: 0;
   padding: 0;
   font-family: Helvetica, Verdana, sans-serif;
}

a.site-title {
   margin-right: 1rem;
   text-decoration: none;
   color: black;
}

header {
   background-color: #DDDDDD;
}

header > form {
   display: inline-block;
}

header.authenticated {
   background-color: #AAFFAA;
}

footer {
   font-size: 80%;
   text-align: center;
}

div#content {
   margin: 0 1rem;
}

div#content h1 {
   padding: 0;
   margin: 1rem 0;
}

div#flash.error, div#flash.ok {
   text-align: center;
}

div#flash.error {
   background-color: red;
   color: white;
}

div#flash.ok {
   background-color: green;
   color: white;
}

div.send-box {
   max-width: 500px;
}

div.send-box ul, div.download ul {
   list-style-type: none;
}

div.send-box li, div.download li {
   margin: 0.5rem 0;
}

div.send-box li.send {
   text-align: center;
}

div.send-box textarea {
   width: 100%;
   min-height: 4rem;
}

div.send-box input {
   width: 100%;
}

div.attachments {
   border: 1px solid gray;
   width: 100%;
   padding: 0.7rem 0.4rem;
}

div.attachments ol {
   list-style-position: outside;
}

li.attachment {
   font-family: monospace;
}

li.attachment button {
   color: red;
}

#multifiles { display: none }

div.progress {
   height: 1rem;
   display: block;
}

div.progress div.bar {
   height: 1rem;
   background-color: blue;
   width: 0%;
   display: block;
}

div.download {
   padding: 0.1rem 0.7rem 2rem 0.7rem;
   margin: 1rem 1rem;
}

div.download form {
   font-size: 200%;
   text-align: center;
}

div.download input, div.download button {
   font-size: 90%;
}

div.download h2 {
   text-align: center;
}

div.preferred {
   background-color: #e8ffe8;
}

div.preferred h2 {
   color: darkgreen;
}

div.preferred button {
   background-color: green;
   color: white;
   border-color: darkgreen;
}

div.refrain {
   background-color: #ffe8e8;
}

div.refrain h2 {
   color: darkred;
}

div.refrain button {
   background-color: red;
   color: white;
   border-color: darkred;
}

div.download button {
   border-radius: 5px;
   padding: 0.3rem 0.7rem;
}

span.code {
   background-color: #ccf;
   padding: 0.2rem 0.4rem;
   border-radius: 5px;
   font-family: monospace;
}

div#content-download h1 {
   text-align: center;
}

ul.tabs {
   list-style-type: none;
   margin: 0;
   text-align: center;
}

ul.tabs > li {
   display: inline-block;
   background: #eee;
   margin: 0 0.3em;
   padding: 0.3rem 1rem;
   background: #bbf;
   cursor: pointer;
}

ul.tabs > li.tab-active {
   background: #e8ffe8;
   border: 1px solid green;
   /* border-bottom: 1px solid #e8ffe8; */
   background: #44f;
   color: white;
}

div.alternatives {
   /*
   background-color: #aaf;
   border: 1px solid #aaf;
   border: 1px solid #ddd;
   background-color: #ddd;
   background-color: transparent;
   margin: 0;
   padding: 0;
   */
}

p.goto-dec {
   text-align: center;
}

  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #111827;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
  }

  .logo {
    font-weight: 800;
    text-decoration: none;
    color: #111827;
    font-size: 18px;
  }

  .user {
    font-size: 14px;
    color: #374151;
  }

  main {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .subtitle {
    color: #6b7280;
    margin-bottom: 24px;
  }

  .card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
  }

  .grid {
    display: grid;
    gap: 14px;
  }

  h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    font-size: 15px;
  }

  .btn-primary {
    background: #6366f1;
    color: white;
  }

  .btn-primary:hover {
    background: #4f46e5;
  }

  .btn-secondary {
    background: #e5e7eb;
    background: #ffa500;
    color: white;
  }

  .btn-secondary:hover {
    background: #d1d5db;
  }

  .warning {
    color: #b45309;
    color: darkred;
    /* font-size: 13px; */
    margin-bottom: 10px;
  }

  span.code {
    font-family: monospace;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
  }

  label.code {
    font-size: 70%;
  }

  input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #fafafa;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  input:focus {
    border-color: #6366f1;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
  }

  .footer {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 12px;
    color: #9ca3af;
  }

  .goto-dec {
      font-size: 110%;
  }

  .goto-dec button {
      color: darkred;
      font-weight: bold;
      cursor: pointer;
  }

  input.pass {
      width: 90%;
  }
